blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
459e8127e4b5cb873a598644dc79c3d2708b3db1
a9c0a8d815b6453aca945849f3b402f75684bfcb
/project/api/services.py
95d316eb964a262ab8aa954303e31d09a23b1d26
[]
no_license
harrywang/my-flask-tdd-docker
4035b666a3366cd059a3a65c68c7c9ad9b637da3
362c33e7caa3bf35a62cff71f3c567c5e8de1fd2
refs/heads/master
2022-04-13T23:12:04.725775
2020-03-21T18:14:00
2020-03-21T18:14:00
248,801,429
0
0
null
null
null
null
UTF-8
Python
false
false
679
py
# project/api/services.py from project import db from project.api.models import User def get_all_users(): return User.query.all() def get_user_by_id(user_id): return User.query.filter_by(id=user_id).first() def get_user_by_email(email): return User.query.filter_by(email=email).first() def add_user...
[ "harryjwang@gmail.com" ]
harryjwang@gmail.com
55dfdc90e02123686986cc1acf673b300872d8e1
b2c3feb259d8cfefe64938aa029958c50387a4ec
/distributed/server.py
c8312838d2085883135141b19fb7c53a17b91623
[]
no_license
alexflint/tensorflow-experiments
0a7a5d73571bdf111ce37b4e9711df213e9d354e
3a95d0a869ddc9d6309bb8d6f5b06d3347748d0c
refs/heads/master
2023-07-07T01:43:06.937158
2018-08-12T19:17:03
2018-08-12T19:17:03
140,112,767
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
import tensorflow as tf server = tf.train.Server.create_local_server() print(server.target) server.join()
[ "alex.flint@gmail.com" ]
alex.flint@gmail.com
f9a7397aba99d47d53fd78c5c0b097fe73bfd768
fbb1550dc5437d672ed0137bd7711eba3290dee3
/students/Luyao_Xu/lesson01/activity/calculator/subtracter.py
328933552f5932496f2d61a3f2eb8b8bb3a1c036
[]
no_license
JavaRod/SP_Python220B_2019
2cc379daf5290f366cf92dc317b9cf68e450c1b3
5dac60f39e3909ff05b26721d602ed20f14d6be3
refs/heads/master
2022-12-27T00:14:03.097659
2020-09-27T19:31:12
2020-09-27T19:31:12
272,602,608
1
0
null
2020-06-16T03:41:14
2020-06-16T03:41:13
null
UTF-8
Python
false
false
110
py
class Subtracter: @staticmethod def calc(operand_1, operand_2): return operand_1 - operand_2
[ "xuluyao19931213@gmail.com" ]
xuluyao19931213@gmail.com
f999bc0811f3d15a0bf554e32cd623a97861a497
f9b047b25184787af88fd151f2a6226b6b342954
/investmentTornadoServer/server/corpora.py
6d0570a7cfa8308f2e0cc773ff1adf8306bb5b7b
[]
no_license
CallMeJiaGu/TonrnadoRecomendServer
4bfc3dd6d6a432321f80b12d66bb424fbc1a0911
54bb21191b16da27c20ce64ab14762bc777e30ca
refs/heads/master
2020-03-23T19:31:43.291995
2019-07-04T03:04:58
2019-07-04T03:04:58
141,984,920
8
3
null
null
null
null
UTF-8
Python
false
false
2,210
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Wu Yuanchao <151050012@hdu.edu.cn> import logConfig import logging import os import codecs logger = logging.getLogger() class CorporaWithTitle(): def __init__(self, cutedfile): self.f = cutedfile def __iter__(self): with c...
[ "646696382@qq.com" ]
646696382@qq.com
49d3fe6b4ad2a62850cc09fd55ce4e235e09ecce
71d304e88e996e695451be82cfb24029b4b2b9dd
/ghmm.py
98589df3885a5307a587e450b86b7e4dd1c99f84
[]
no_license
negar7918/GHMMs
7875ab232e36b05febac74c3261aca811a08d77a
ea75d0f3bd82c0e2e046d34debff4fd352637819
refs/heads/master
2021-07-20T13:34:37.444101
2020-06-09T17:53:39
2020-06-09T17:53:39
177,122,775
0
0
null
null
null
null
UTF-8
Python
false
false
5,871
py
# This is the implementation of the new method in the below paper published at AIME 2019: # "Gated Hidden Markov Models for Early Prediction of Outcome of Internet-based Cognitive Behavioral Therapy" # This implementation is intended for sequences up to length 150 and for longer ones, one should use log probabilities....
[ "negars@kth.se" ]
negars@kth.se
d7ce13d83dd278c415907caea2967729f60ed941
78a8c8a60b9ebb6c5e01528253971f8464acdc27
/python/problem79.py
be165c1f7339f7177c38ab3d2d5c3cc45a096b0d
[]
no_license
hakver29/project_euler
f1b2d19f0bf2c6b842256f961845424cd2dc696f
ab356a32d706759531cad7a1a6586534ff92c142
refs/heads/master
2021-06-03T13:39:22.758018
2020-12-01T23:42:35
2020-12-01T23:42:35
70,273,535
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
import pandas as pd import os path = './p079_keylog.txt' data = pd.read_csv(path, header=None) print(data) # First letter: [1,3,6,7] # Only 7 is always first: 7 # Second letter: [1,2,3,6] # 3 before 1 # 3 before 6 # 3 before 2 # Second letter: 3 # Third letter: [0, 1,2,6,7,8,9] # 1 before 9 2 8 6 0 # Third letter: ...
[ "haakongv@stud.ntnu.no" ]
haakongv@stud.ntnu.no
5edb0c8e55ee71407031f5baea3676bd34bf5368
28ae42f6a83fd7c56b2bf51e59250a31e68917ca
/tracpro/polls/migrations/0015_issue_region.py
ff1c2937af89c2c8ce646673002fd58356fd1f04
[ "BSD-3-Clause" ]
permissive
rapidpro/tracpro
0c68443d208cb60cbb3b2077977786f7e81ce742
a68a782a7ff9bb0ccee85368132d8847c280fea3
refs/heads/develop
2021-01-19T10:29:48.381533
2018-03-13T12:17:11
2018-03-13T12:17:11
29,589,268
5
10
BSD-3-Clause
2018-02-23T14:43:12
2015-01-21T12:51:24
Python
UTF-8
Python
false
false
575
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('groups', '0004_auto_20150123_0909'), ('polls', '0014_remove_response_is_complete'), ] operations = [ migrations.AddF...
[ "rowanseymour@gmail.com" ]
rowanseymour@gmail.com
adec15e7f10d62c6d1a6c1bca83ce174883b2551
69f47a6e77fc2a1363fc8713ed83d36209e7cf32
/deframed/default.py
997b289bd34920ff3704dc3d241fa7fbc6f6c50e
[]
no_license
smurfix/deframed
f1c4611c597809b53a138b70665430ed080a989d
9c1d4db2991cef55725ac6ecae44af60a96ff4f2
refs/heads/master
2022-07-20T14:08:35.938667
2022-07-14T07:05:43
2022-07-14T07:05:43
259,882,446
24
1
null
null
null
null
UTF-8
Python
false
false
2,184
py
""" This module contains the default values for configuring DeFramed. """ from .util import attrdict __all__ = ["CFG"] CFG = attrdict( logging=attrdict( # a magic incantation version=1, loggers=attrdict( #"asyncari": {"level":"INFO"}, ), root=attrdict( hand...
[ "matthias@urlichs.de" ]
matthias@urlichs.de
7d75a5e69d0aeff702d6fe53686e32f47cd01b4e
f1614f3531701a29a33d90c31ab9dd6211c60c6b
/test/menu_sun_integration/handlers/test_status_synchronizer_service.py
207c451856241312424ce76fdbb72a3f98062b7d
[]
no_license
pfpacheco/menu-sun-api
8a1e11543b65db91d606b2f3098847e3cc5f2092
9bf2885f219b8f75d39e26fd61bebcaddcd2528b
refs/heads/master
2022-12-29T13:59:11.644409
2020-10-16T03:41:54
2020-10-16T03:41:54
304,511,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,110
py
import json import os import responses import pytest from menu_sun_api.domain.model.customer.customer import Customer from menu_sun_api.domain.model.order.order import OrderStatusType from menu_sun_api.domain.model.order.order_repository import OrderRepository from menu_sun_api.domain.model.seller.seller import Integ...
[ "pfpacheco@gmail.com" ]
pfpacheco@gmail.com
dedc1e2d4474ac95a338056cb6ee689645ed4e0c
3607629e732c37f40231fe4c83e73ac087ed3fcf
/poc-todo/POC/APP/Task/migrations/0004_remove_usertasks_first_name.py
08ca53373c7ef5acfe15379664dd64b1b080bddd
[]
no_license
gout-tech/apis_cusat_connect
3d71f73a620b7fa489671f45cbce7cc7b6972f80
fd7114480592e81ead6e2efe932504629c2ff696
refs/heads/master
2022-05-29T14:10:10.326086
2020-02-25T04:18:38
2020-02-25T04:18:38
242,907,961
0
0
null
2022-04-22T23:06:17
2020-02-25T04:17:32
Python
UTF-8
Python
false
false
334
py
# Generated by Django 2.2.1 on 2019-08-12 13:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Task', '0003_usertasks_first_name'), ] operations = [ migrations.RemoveField( model_name='usertasks', name='first_name', ...
[ "goutham.hashrot@gmail.com" ]
goutham.hashrot@gmail.com
6d5e991fc2b55c73e9b32da5c9d0db6a146186b2
a22054032f23d84f34741532aaca5fe46e23a552
/run_app_dev.py
6fae0d484a2796685d1401726f30707b1548e9fc
[]
no_license
BearChao/transfer
622003bfb0b2b7c8da6287a65764c69ad81f3d9c
4159a596d0f5c728f6ce27568beb21c2ba321846
refs/heads/master
2021-05-23T06:08:01.183541
2018-05-28T14:39:30
2018-05-28T14:39:30
94,799,123
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os from app import create_app app = create_app(os.getenv('FLASK_CONFIG') or 'default') if __name__ == '__main__': app.run(host='0.0.0.0',debug=True)
[ "zynick@foxmail.com" ]
zynick@foxmail.com
811d4c6beed89125664d5495f5675efc4f51e2f2
3d18dbe77b052754e2a7a9bbaee9650a9fb410e2
/test/11-ignore-design-docs.py
ea7165e3f5b58d5a27a8d4f9da83c47858fcd920
[ "Apache-2.0" ]
permissive
apache/couchdb-mango
765ebceec2912acb9696fadf9ec8f3d244d604c6
312e2c45535913c190cdef51f6ea65066ccd89dc
refs/heads/master
2023-07-02T18:36:31.552696
2017-02-07T16:40:09
2017-03-31T17:25:17
30,287,956
39
23
Apache-2.0
2023-01-18T14:24:00
2015-02-04T08:00:05
Erlang
UTF-8
Python
false
false
1,106
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
[ "garren.smith@gmail.com" ]
garren.smith@gmail.com
9152ac03f49d6c145510fb642b234cac13c0b135
23e0f2433ae89295766a24d8d87626d18af6e84c
/problems/abc179_a.py
78c1867f75ae21403e67d3de6f63c06edac7d487
[]
no_license
chokoryu/atcoder
0d7ec486177e45abee847acde38d31d35c61df42
e0c0920a7a4d8a90fd6fb3cab7ab1e97a95b9084
refs/heads/master
2023-02-06T12:06:09.562394
2020-12-29T02:42:54
2020-12-29T02:42:54
283,260,970
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
from fractions import gcd from collections import Counter, deque, defaultdict from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort from itertools import accumulate, product, permutations, combinations def m...
[ "chokoryu@gmail.com" ]
chokoryu@gmail.com
6b10d9a5295db113b96722c8b92c968c83079333
ef821468b081ef2a0b81bf08596a2c81e1c1ef1a
/Python OOP/Decorators-Exercise/Cache.py
3630fbd6868ddb28d50316c5fea622d51b440ae5
[]
no_license
Ivaylo-Atanasov93/The-Learning-Process
71db22cd79f6d961b9852f140f4285ef7820dd80
354844e2c686335345f6a54b3af86b78541ed3f3
refs/heads/master
2023-03-30T20:59:34.304207
2021-03-29T15:23:05
2021-03-29T15:23:05
294,181,544
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
def cache(func): def wrapper(n): result = func(n) wrapper.log[n] = result return result wrapper.log = {} return wrapper @cache def fibonacci(n): if n < 2: return n else: return fibonacci(n - 1) + fibonacci(n - 2) fibonacci(3) print(fibonacci.log) fibonacc...
[ "ivailo.atanasov93@gmail.com" ]
ivailo.atanasov93@gmail.com
e6f8f51a840280d413cfe95488d13ed729fe6b2e
3c2bb35d04a2dd44e16366c6e52eb74ecf8ba87b
/linearsearch.py
27f9b69282c90729ee8439a664c1be6609b2dad0
[]
no_license
Brijesh-Pandey/Python-Programs-For-Noobs
7c871ebf01ce5f9e4cfa53b100b8f1b569f72a5d
1d7187986a26d3f7ebcf3699017ab242dd16b482
refs/heads/main
2023-08-18T01:46:22.533629
2021-10-09T20:06:30
2021-10-21T01:37:49
301,089,699
6
11
null
2021-05-18T09:27:14
2020-10-04T09:32:23
Python
UTF-8
Python
false
false
247
py
z=int(input("Enter element to be searched ")) li=[int(x) for x in input().split()] for i in range(len(li)): if li[i]==z: flag=1 break else: flag=0 if flag==1: print("Found at position ",+i+1 ) else: print("Not found") input()
[ "noreply@github.com" ]
Brijesh-Pandey.noreply@github.com
f37490ad07011a1845fa6775b2a3edffd1ff59fc
5141c8756e790847866c19d63744bd7c8033a51c
/docs/libs/reveal.js/3.7.0/plugin/multiplex/node_modules/bufferutil/build/config.gypi
508a69af90f898303ce883dba2be1aa581eebd58
[ "MIT" ]
permissive
al341801/EI1036_42
db6fceb4fdb9272b28f34c16ee520ce072c5810b
d1d2c1b86a134fc4c45ba4146002589f7bee27f3
refs/heads/master
2020-09-15T13:02:09.056697
2019-11-22T15:05:53
2019-11-22T15:05:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,286
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "asan": 0, "coverage": "false", "debug_devtools": "node", "debug_http2"...
[ "dllido@MacBook-Pro-de-Dolores.local" ]
dllido@MacBook-Pro-de-Dolores.local
faf55dcced2172399d37e25d66e39d89868333d0
280049c5d363df840e5a2184002e59625f0af61b
/datastructure11-balancedparanthesischeck.py
26c752c9dfffff64c23a2cf8d5095ae37812d617
[]
no_license
deesaw/DataSPython
853c1b36f7185752613d6038e706b06fbf25c84e
c69a23dff3b3852310f145d1051f2ad1dda6b7b5
refs/heads/main
2023-02-19T13:36:01.547293
2021-01-16T13:15:56
2021-01-16T13:15:56
330,166,053
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 6 12:17:58 2021 @author: deesaw """ def balance_check(s): # Check is even number of brackets if len(s)%2 != 0: return False # Set of opening brackets opening = set('([{') # Matching Pairs matches = set([ ('(',')'), ('[','...
[ "69420960+deesaw@users.noreply.github.com" ]
69420960+deesaw@users.noreply.github.com
61c547985ebd1624cef39b0279164ca64369bd8b
54a2ac1972aa12e97e1029dddac6908a0e457d1c
/ej22.py
d564606a9f466aa3698b9b3467e6bba2ad18706d
[]
no_license
bthecs/computacion-2
2e7b557ab365e74634772f58067b2bbe0ea5d1d3
69d54714da8f40fbef9a6635b4fe6b1b1638a11e
refs/heads/master
2023-03-18T22:38:21.953987
2019-12-11T15:42:25
2019-12-11T15:42:25
343,834,502
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
from multiprocessing import Queue, Lock import threading import time import os def thread_function(x,l,q): l.acquire() time.sleep(1) q.put("mi PID es: %d,Nombre: %s, Thread %d,Proceso: %d"%(os.getpid(),threading.current_thread().getName(),threading.get_ident(),x)) l.release() def mostrarCola(q): ...
[ "fl.gimenez@alumno.um.edu.ar" ]
fl.gimenez@alumno.um.edu.ar
22aa2617e351bbbaf035cb3b8ac08016c4632660
41278a3ab6c8b8f280e785b79c15377a2de56a2d
/guardian.py
680dbcc6516d80fb29ac29c6bda4d43391c6e140
[]
no_license
mayanand/restClient
1f0c70aad91d15c1a8d7f53bdc5c5c89ab6e5db8
927cffc1f2374760633da4bf6555801a80983469
refs/heads/master
2021-03-08T19:25:38.925946
2016-04-14T00:04:46
2016-04-14T00:04:46
56,193,486
5
0
null
null
null
null
UTF-8
Python
false
false
721
py
#!/usr/bin/env python from restapi import restAPI from image import imageDownloader class guardianRestAPI(restAPI): def __init__(self): restAPI.__init__(self) self.RESTendpoint = "http://content.guardianapis.com/search?q=%s&api-key=%s" self.apiKey = 'test' ...
[ "Mayank Anand" ]
Mayank Anand
fc140be5ed838830be722cb050742cde1b3cb053
87455bab2ddf7c9312453ca74689b133f3d6745d
/case_studies/npz/scripts/npz_narragansett_py.py
879eba3573907047de566834166742228e1a45bb
[]
no_license
maxEntropyProd/bayesian_cbiomes
dd87d7f88e127e5f0699d15ae0ec3f2380b9ba89
c3a2f2e60f2271a0a4843e9db6be2111b765efa1
refs/heads/master
2020-12-06T06:30:34.433777
2020-01-10T14:06:20
2020-01-10T14:06:20
232,373,541
0
0
null
2020-01-07T17:01:40
2020-01-07T17:01:39
null
UTF-8
Python
false
false
14,243
py
#!/usr/bin/env python # coding: utf-8 # # Confront the NPZ model with real data from Narrangansett Bay # # ## 1. A first look at the data # In[1]: import numpy as np # load data from CSV file datafile = 'data/data_npz_narragansett.csv' data = np.loadtxt(datafile, skiprows=1, delimiter=',') with ope...
[ "gregleebritten@gmail.com" ]
gregleebritten@gmail.com
b8fac3e471ae450389961aa1cb49b4834ce1d6cb
5b565e331073a8b29f997c30b58d383806f7d5a8
/pizzeria/11_env/bin/easy_install-3.7
242566d7d779997c369a8ea2a01c7db939a5250b
[]
no_license
jeongwook/python_work
f403d5be9da6744e49dd7aedeb666a64047b248d
bba188f47e464060d5c3cd1f245d367da37827ec
refs/heads/master
2022-04-02T23:16:57.597664
2020-01-21T08:29:48
2020-01-21T08:29:48
227,506,961
0
0
null
null
null
null
UTF-8
Python
false
false
288
7
#!/Users/jeongwook/Desktop/python/python_work/pizzeria/11_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jeongwook.yu@utexas.edu" ]
jeongwook.yu@utexas.edu
18b12259ea05cacdcb9d10fcdd104daa667751b6
4b59ace76840cbeb28f0fac19f128cd3959a7c3a
/catalog/api/v1/utility.py
4b15a94bb676733ffce5e82f091fc6cde3d1ce2c
[]
no_license
JoshuadeJong/ecommerce-microservice
2a8f4d2f091c459dc9bcb47c01904f21c478cf91
246c6d0eb014df2946874cafcddebea1e0eaa97d
refs/heads/master
2023-03-25T23:57:15.369285
2021-03-19T15:47:32
2021-03-19T15:47:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
def item2dict(item_id, item) -> dict: return { "id": item_id, "name": item.name, "description": item.description, "price": item.price, "stock": item.stock }
[ "joshuakdejong@gmail.com" ]
joshuakdejong@gmail.com
3ae6423a2a19cb9678453bb48e72fd82b6afb002
36a92a0af4e4fa2b8191ddb8b0f0b8ed15c2baca
/send-cookies.py
999fd98911a1e0cbd4ef3f5f1e1606a3e11aad21
[]
no_license
p4r7h/Python-script
043d6b70387f1834fac147e0ee88cfbb416ea205
45e0c39849c0a885b26db433cdfa94f885e1988b
refs/heads/main
2023-06-12T03:09:26.333375
2021-06-21T01:23:08
2021-06-21T01:23:08
344,584,712
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
import requests url = 'http://ptl-e1cf1322-eb626166.libcurl.so/pentesterlab' x = requests.get(url, cookies = {'key': 'please'}) print(x.text)
[ "noreply@github.com" ]
p4r7h.noreply@github.com
4069b0b957b7c70d0f9663a86dd1cecb18c73276
1069b21592cd0771d69618d292e0511ec98251d9
/visual_client10_9.py
09d08582ba82f4698edc446c1688a703a3d9fcb8
[]
no_license
12Dong/python-socket
6936fb6d7984c5948b31ce70837fab3437420b82
cdb754a104eb5a0ccdb260eea83a943ce67bf268
refs/heads/master
2021-08-24T14:06:05.261228
2017-12-10T04:42:05
2017-12-10T04:42:05
113,722,198
0
0
null
null
null
null
UTF-8
Python
false
false
4,415
py
# coding:utf-8 import socket import threading import sys from PyQt5.QtWidgets import QWidget,QApplication,QGridLayout,QLineEdit,QTextEdit,QLabel,QPushButton,QFrame from PyQt5 import QtCore,QtWidgets from PyQt5 import QtGui from PyQt5.QtGui import* from PyQt5.QtGui import QIcon host = 'localhost' port = 9999 username ...
[ "289663639@qq.com" ]
289663639@qq.com
82355523e5e347b9831a1ae711165e2ece5d664f
4aae80d02949928e859ea9536051f59ed14ec918
/apartment/house_summary.py
12793965147a94786cc6eaa2e1738a092d991116
[]
no_license
xli1234/PythonProject
a6c5c61b8fb86d8b9b7dc2d39d3784db3184a46b
e2555e8befd086ac98881a91630b1260cf6709f0
refs/heads/master
2020-07-31T05:46:11.688485
2019-10-08T02:04:42
2019-10-08T02:04:42
210,504,536
4
3
null
null
null
null
UTF-8
Python
false
false
535
py
import pandas as pd def summary_house(): df = pd.read_csv('apartment/house_cache.csv') zip_area = {15213: 'Oakland', 15217: 'Squirrel Hill', 15232: 'Shadyside'} house_count = list(df[['Zip', 'Street']].groupby('Zip').count().values.reshape(3)) house_area = list(df[['Zip', 'Street']].groupby('Zip').count().index) ...
[ "34395567+shenshopping@users.noreply.github.com" ]
34395567+shenshopping@users.noreply.github.com
09b1947d280f745d62a37740eb2545109fa7aba2
9ee0f0850d8743d08a2ecdf16e0e79ad58615908
/Arrendador/serializers.py
cabceb1ac480eb63740d2b5e64a3c8ee0f187ca9
[]
no_license
alexgrajales/plataforma-web-de-gesti-n-de-inmuebles-para-arrendatarios-independientes.
20fb4ebb60940cd9fa40010515e8116cb4418d39
ce335f05ff6f217a5c3b94022b51bf37b46adf5c
refs/heads/master
2022-11-04T08:01:14.427926
2017-12-01T22:16:56
2017-12-01T22:16:56
110,597,537
0
1
null
2022-10-05T04:58:51
2017-11-13T20:20:53
Python
UTF-8
Python
false
false
271
py
from rest_framework import serializers from rest_framework_mongoengine import serializers as mongoserializers from Arrendador.models import Arrendador class ArrendadorSerializer(mongoserializers.DocumentSerializer): class Meta: model = Arrendador fields = '__all__'
[ "alex-12-04@hotmail.com" ]
alex-12-04@hotmail.com
aab5b930200d680d23a2dbddf6c89da66a40ebc7
9460ee7136f277825b09e5f63675364461deacea
/GATE_Engine/libs/par/test/hierarchy.py
2f4e7fa88ecb974f8c8b074c616372ebccf3eb99
[ "MIT" ]
permissive
DocDonkeys/GATE_Engine
9c4a5376e10e20774c20ec3f069b973e754cb058
bb2868884c6eec0ef619a45b7e21f5cf3857fe1b
refs/heads/master
2020-07-27T09:18:46.947405
2019-12-30T16:16:11
2019-12-30T16:16:11
209,041,360
1
3
MIT
2020-02-19T16:32:08
2019-09-17T11:58:13
C++
UTF-8
Python
false
false
442
py
import json flare = json.load(open('flare.json')) print flare things = [] def traverse(node, parent): me = len(things) print '{:3} {}'.format(me, node['name']) things.append(parent) children = node.get('children', []) for child in children: traverse(child, me) traverse(flare, 0) for i...
[ "36265669+DidacRomero@users.noreply.github.com" ]
36265669+DidacRomero@users.noreply.github.com
36719882d3b660fcaa5d889e59fee49bb5b86525
a6ae6b2bb64b622338fc001b30a9f053717cc770
/toVOC/evaluation/evalute.py
ae710a548491b2f324491b17a26f860d2fca267c
[]
no_license
tianws/script
1bec9f549fd801b5848f33f243d32db5bdd61722
3ecf2bca42e8c6c7f6a964ddc42acc3e483387fc
refs/heads/master
2021-06-04T11:53:32.337079
2021-01-12T08:20:13
2021-01-12T08:20:13
98,512,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,534
py
#!/usr/bin/env python # coding=utf-8 from __future__ import division, unicode_literals import argparse import logging import phodopus import squirrel import sys if sys.version_info.major == 2: from pathlib2 import Path else: from pathlib import Path if __name__ == '__main__': logging.basicConfig( ...
[ "tianws@mapbar.com" ]
tianws@mapbar.com
f794cd1dae5cb4ed8da0fc22286c5a047b86c2fa
d8a541a2953c9729311059585bb0fca9003bd6ef
/Lists as stack ques/cups_and_bottles.py
efc8af013cd606d663a6539b7b98d2807e6c28fc
[]
no_license
grigor-stoyanov/PythonAdvanced
ef7d628d2b81ff683ed8dd47ee307c41b2276dd4
0a6bccc7faf1acaa01979d1e23cfee8ec29745b2
refs/heads/main
2023-06-10T09:58:04.790197
2021-07-03T02:52:20
2021-07-03T02:52:20
332,509,767
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
from collections import deque cups = deque(map(int, input().split())) bottles = list(map(int, input().split())) wasted_water = 0 while cups and bottles: current_cup = cups.popleft() while current_cup > 0 and bottles: current_bottle = bottles.pop() current_cup -= current_bottle if current_cu...
[ "76039296+codelocks7@users.noreply.github.com" ]
76039296+codelocks7@users.noreply.github.com
407664d79d63688fa1904fc5d1148aa5d8d4d2ce
d1b6ca6d310d646b64385ed87fed71ccec1cb6e3
/about_page.py
d42e1a4def82ac173833b9d7e2fa07e51909c25b
[]
no_license
skaushikk/USCIS-tracker
7053d5af295632c8c1fa4ca0579cbf56e33497a4
1f4219c311f1a99a682fca6789e7922747338d2a
refs/heads/main
2023-04-24T18:08:03.714906
2021-05-09T02:16:55
2021-05-09T02:16:55
361,353,468
1
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
import streamlit as st def app(): st.title('USCIS Case Status Analyzer') st.subheader('Check, Analyze and Predict USCIS Application Status') # st.markdown("<h3 style='text-align: right; color: gray;'>-- Kaushik Sirvole</h3>", unsafe_allow_html=True) with st.beta_expander("ABOUT", expanded=True): ...
[ "skaushikk@gmail.com" ]
skaushikk@gmail.com
dca0df86cf196077787b8351e77a52367efaf8ea
a0af94e54aaeaf0dfc373196c3bc7372926a7c7f
/colorize
aca3ecc24004252a087c462d6b1a71056603bbf5
[ "MIT" ]
permissive
cheshirex/colorize
7170f3ff250009bc4ca40e7740498328b3bf1ab0
c95049c312a422023e48b8e1522c57b4c2913446
refs/heads/main
2023-01-07T05:58:04.019437
2020-11-04T10:27:57
2020-11-04T10:27:57
309,968,575
0
0
null
null
null
null
UTF-8
Python
false
false
3,445
#!/usr/bin/env python # Tool to colorize output based on regular expressions, designed to work both # with ANSI escape sequences and with HTML color codes. Data to colorize is input # on STDIN, and result is output on STDOUT # Usage: # colorize <ansi|html> <color config filename> import sys import re html_escape_tab...
[ "noreply@github.com" ]
cheshirex.noreply@github.com
8e1418e4e26d871472531d0c334592b6736bee75
07f37b31c48ae80d32831fe6eb3f58b2e9f9a0f0
/tpcfit/models.py
872bf6829ff506949e0289d4396550c3a78be115
[]
no_license
hjosullivan/CMEEProject
2dcf970f2be47b43c81b78ac9dc754ef96199663
ee3dc452d9d61734f41eff94e2f4d0d896ed0cbe
refs/heads/master
2022-08-26T12:49:52.615471
2019-08-29T14:31:41
2019-08-29T14:31:41
160,700,900
0
0
null
2022-08-23T17:33:45
2018-12-06T16:20:56
Python
UTF-8
Python
false
false
18,125
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ models.py contains all available mathematical models to be fitted to thermal performance curves. NOTE: Currently only Sharpe-Schoolfield variants """ import numpy as np from lmfit import minimize, Minimizer, Parameters class ThermalModelsException(Exception): ""...
[ "noreply@github.com" ]
hjosullivan.noreply@github.com
2fb3b208f8422d53eb69c09474b9e669b7f9db6b
b30def8f44060e373dba0de9facb62964224d285
/config.py
97dc08977f3cd997b513264801ccb5c7cf5c2f98
[]
no_license
saakash309/Data-Processing-
1136e2612b7068d9fef695587070e2b98ebb7ff8
7857de4654c611689b422d8d6c88e61ba498a4c0
refs/heads/main
2023-09-04T20:30:49.225368
2021-11-23T06:04:45
2021-11-23T06:04:45
430,939,150
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
from configparser import ConfigParser from pprint import pprint #reading the config file class Data(): ''' Return a set of coulmns from a config file that will be displayed Path = path of the configuration file ''' def __init__(self,path) -> None: self.path = path def fields(...
[ "noreply@github.com" ]
saakash309.noreply@github.com
9c49e6ca3bd2a42e53334ed4c4c2dee500c889b3
ee1db6398a73882e750c86257b43390c5ec2a654
/fpm/setup.py
84cf025ee77323c37d5387470fd713ac4504e1a1
[ "MIT" ]
permissive
gscigala/packet-generation
c795131e202e59d16fc99eca61008b850df9c6c5
137b2853e57756a9ade1af2e95c8b2839f401121
refs/heads/master
2021-01-23T03:12:48.984559
2017-04-04T13:50:46
2017-04-04T13:50:46
86,057,836
0
0
null
null
null
null
UTF-8
Python
false
false
3,869
py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
[ "guillaume.scigala@smile.fr" ]
guillaume.scigala@smile.fr
65c81b2c37dfa24b81ae8c97d1e1d2f37c8af03a
b926393a43850799f57b59202796d128c5b611ab
/main.py
162002374fe6c83445e2d99937a3a90f3ac936c1
[]
no_license
apustovitin/sea-battle
0435e697b2143e80fdd04cbabbd5a51f18536c0c
2546d9f296a7bd3a8e84af3bd0439b21180d27f6
refs/heads/master
2023-01-18T18:03:27.210594
2020-12-01T14:09:33
2020-12-01T14:09:33
317,479,808
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
import curses import board_image from game import Game import random def moves_loop(game): if random.choice([False, True]): is_break, is_restart = game.computer_move() if is_break or is_restart: return is_break, is_restart while True: is_break, is_restart = game.player_move...
[ "apustovitin@gmail.com" ]
apustovitin@gmail.com
fa4752f737897f35e16ed0b252a1230746f6ee6d
7ff3ec2f2a6e093a63f09a30ec985c3564c79159
/Demo_2/Raspberry_Pi/Threading/Pi_Comms_Multi_Threading.py
7b0e7ee2d2290889fa410ff3a3ec584c98dfcb2e
[]
no_license
lkseattle/SEED_FALL_2020_T3-1
468dafe4193a6663d5dc6fa09ea7cfc9953f4455
b7e026fee1d6f77f62fd84547beebac3b76c2532
refs/heads/master
2023-01-10T21:47:24.578863
2020-11-10T09:34:58
2020-11-10T09:34:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,016
py
#Cameron Kramr #10/09/2020 #EENG 350 #Section A #Computer Vision #NOTE, this module requires pygame to be installed in order to run #The code in this file deals with communcicating with other devices outside of the raspberry pi. import multiprocessing as mp import termios import os import sys from enum import Enum fr...
[ "cameronkramr@mines.edu" ]
cameronkramr@mines.edu
e7402159b694a4820f2b00e2af214a79f9043612
e965225b5b16feb3a8264980cdeff83342e1167c
/pythontask.py
a4b01f83681283f4550677aedce2dd6b39d9b2de
[]
no_license
challapavankumar/Archeville-Super-Archy-Tournament-task
7b8631fe448f04f9ed335327e1a2457c3bc8e5cf
d646a830865f5607193ca883a217974fb4e5a641
refs/heads/main
2023-01-31T15:03:21.658700
2020-12-18T06:11:14
2020-12-18T06:11:14
322,502,956
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
rounds = int(input("No of rounds to play ")) scores={"A":50,"B":4,"C":3,"D":2,"E":1,"F":0} bonuscheck=[] bonusplayer=[] teams={"Gyrhuna":[{"Jaons Diak":0},{"Susu":0}], "Achni":[{"Milog":0},{"Tianlong":0}], "Bathar":[{"Pakhangba":0},{"Poubi Lai Paphal":0}]} teamno=len(teams) bonusteam=...
[ "noreply@github.com" ]
challapavankumar.noreply@github.com
3a605cd5f0f7781f3d75d4937b802eac9ac2dd09
4accbb2bb2f7cc2b6b5855afe52c1bb4561c8da6
/Unstructured Programs For Testing/CSVtoNumpy2.py
85b4f08e7b464e239c7ab173dd45a90b55e10ebf
[]
no_license
WrathTitan/DLNeuralNetwork
e993f37faca865c369138ea61b346f9a998ad690
c82ba35c1cf6cd20c573200d4c3f038e8f434d9e
refs/heads/master
2023-04-04T06:50:19.007794
2021-04-23T16:18:10
2021-04-23T16:18:10
307,389,978
0
0
null
2020-10-29T16:24:58
2020-10-26T13:57:02
Python
UTF-8
Python
false
false
565
py
import numpy as np import csv myarr=np.genfromtxt('superfilteredFinal.csv',delimiter=',') print(myarr) print(myarr.shape) print(myarr.T) print("Ended one file") mynewarr=np.genfromtxt('filteredFinal.csv',delimiter=',') awesomestuff=mynewarr[:,1:] print(awesomestuff) print(awesomestuff.shape) print(awesomestuff.T) #my...
[ "rishabhbhatt159@gmail.com" ]
rishabhbhatt159@gmail.com
1c6ff28e26ea56bf58d2d64410f7f7ccc128b1c3
a51854991671a4389902945578288da34845f8d9
/libs/Utility/__init__.py
413df21a5385589d95b5c2ec9bf735a694a5e504
[]
no_license
wuyou1102/DFM_B2
9210b4b8d47977c50d92ea77791f477fa77e5f83
69ace461b9b1b18a2269568110cb324c04ad4266
refs/heads/master
2020-04-13T18:54:20.045734
2019-06-17T12:46:23
2019-06-17T12:46:23
163,387,873
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# -*- encoding:UTF-8 -*- from libs.Utility import Logger import Alert as Alert import Random as Random from ThreadManager import append_thread from ThreadManager import is_alive from ThreadManager import query_thread from Common import * import ParseConfig as ParseConfig from Serial import Serial
[ "jotey@qq.com" ]
jotey@qq.com
d57c68ff01ec5c6b974091d91da38f8ac7708ec3
26371093460ea3026cdcd74e624b0c2d4b1d5892
/Staff.py
2fae3241689d94a0185840d38b2a6b21e9b9a6a3
[]
no_license
meyerkeaton/ktmcbk
0b636b1bc8e8be022f6423d88776191a606949c7
5bca15495ee1066658c59ae24c15be4028f8a4ff
refs/heads/main
2022-12-28T05:41:09.453076
2020-10-15T05:09:20
2020-10-15T05:09:20
304,215,581
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
import json import User class Staff(User.User): def update_course_db(self): with open('Data/courses.json', 'w') as fp: json.dump(self.all_courses, fp) def create_assignment(self,assignment_name, due_date, course): assignment = { assignment_name: { ...
[ "noreply@github.com" ]
meyerkeaton.noreply@github.com
b799cd1b2094b8b6d385a69a3678787901adbe06
471e1738186b51373aa73057d91bbdb2575be6d6
/anuario/pesquisador/admin.py
fd6fa9091a51a4000f772d4e4fb55386e31f74a4
[]
no_license
pixies/portal-anuario-pesquisa
1939c074ba9a70d715c0c48b07741364161a77b8
38873ec820ac75977ba2f989b1a472e1b9c62a4a
refs/heads/master
2021-01-12T17:49:37.337465
2016-09-29T17:10:05
2016-09-29T17:10:05
69,398,984
0
0
null
2016-09-27T21:11:15
2016-09-27T21:11:15
null
UTF-8
Python
false
false
209
py
from django.contrib import admin from .models import Pesquisador, Curso, Instituicao # Register your models here. admin.site.register(Pesquisador) #admin.site.register(Curso) #admin.site.register(Instituicao)
[ "eu@cflb.co" ]
eu@cflb.co
bcfca9b47c82bc52528894a9459bda4232f48196
f582461cc398909906a1ca65fa250105319289d8
/spider_main.py
986f58a635f53e9861335c7fe8c902f544f9017e
[]
no_license
ITT13021/baike_spider
d0dd637074c99cd7a1b9d703b4406939ed745fbd
2a2eea68dd94bf15ec1769986554514c53a28854
refs/heads/master
2021-07-04T12:33:37.377379
2017-09-27T01:49:00
2017-09-27T01:49:00
104,868,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,568
py
# coding=utf-8 from baike_spider import html_downloader from baike_spider import html_outputer from baike_spider import html_parser from baike_spider import url_manager class SpriderMain(object): def __init__(self): self.urls = url_manager.UrlManager() self.downloader = html_downloader.HtmlDownloa...
[ "473457683@qq.com" ]
473457683@qq.com
04a4e80f246a131d68d2616fcf175a178c694d71
d87d83049f28da72278ca9aa14986db859b6c6d6
/basic/coreFundamental/split_And_Join_And_strip/splitDemo.py
91db33efa0f6d30926f416fb183b4cd31e8ff63d
[]
no_license
MonadWizard/python-basic
6507c93dc2975d6450be27d08fb219a3fd80ed64
624f393fcd19aeeebc35b4c2225bb2fe8487db39
refs/heads/master
2021-07-21T16:12:58.251456
2020-10-12T19:46:21
2020-10-12T19:46:21
223,625,523
1
0
null
2019-11-23T18:01:43
2019-11-23T17:14:21
HTML
UTF-8
Python
false
false
1,046
py
s = 'this is a string of words' print(s.split()) print(""" """) print('That is also a string'.split()) print(""" """) print(s.split('i')) print(""" """) words = s.split() print(words) for w in words: print(w) # rsplit demo = "this is a fucked up" rsplitee =...
[ "monad.wizar.r@gmail.com" ]
monad.wizar.r@gmail.com
940dfcffd7da2f2431e4e7d093e93c7a44d5ca3b
9699ff2d4f407746c80c507f158da02f5ab9596a
/subversion/contrib/hook-scripts/enforcer/.svn/text-base/enforcer.svn-base
caacf749ddd37057e18c2fd432789b0043a5914f
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "X11" ]
permissive
AsherBond/MondocosmOS-Dependencies
7af67e41ae60b578800fc4184fa69a6b44da1715
bfd2554e6c2cfc4bc1ecb2b653594ca9f0448392
refs/heads/master
2021-01-23T13:53:07.122515
2011-10-03T13:22:43
2011-10-03T13:22:43
2,504,513
0
1
null
null
null
null
UTF-8
Python
false
false
17,260
#!/usr/bin/python # -*- coding:utf-8;mode:python;mode:font-lock -*- ## # Utility for Subversion commit hook scripts # This script enforces certain coding guidelines ## # Copyright (c) 2005 Wilfredo Sanchez Vega <wsanchez@wsanchez.net>. # All rights reserved. # # Permission to use, copy, modify, and distribute this sof...
[ "asherbond@asherbond.com" ]
asherbond@asherbond.com
653e1569defce82bd7cefae6b2b508f8851295a1
af4b590504660a302f53a6fd99a5cb2e1244b85f
/src/billing/models.py
d6325f0ceba818542cbc794137a9674a6eddcd9c
[]
no_license
qkhan/NewEcommerce
3216da9e80567f9c548efcac0dd00ee754399848
12f40adf071471bdc30d76e07bc563949c5f5d19
refs/heads/master
2020-03-09T22:59:24.568434
2018-04-11T06:52:10
2018-04-11T06:52:10
129,048,139
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
from django.conf import settings from django.db import models from accounts.models import GuestEmail from django.db.models.signals import pre_save, post_save User = settings.AUTH_USER_MODEL class BillingProfileManager(models.Manager): def new_or_get(self, request): user = request.user guest_email...
[ "qaisarkhan@Qaisars-iMac.local" ]
qaisarkhan@Qaisars-iMac.local
d8aac991213a5218618098233100d5a23603c036
9d48dc6e54f959285ed3ab15006d664d42db7c01
/assistant_module/get_energy.py
17e7b4311937c5f4041a66ce17b38da77f929ad5
[]
no_license
sandylaker/saradc_toolbox
d971936ec5b13fb467f991b351b30fccad00876a
b7b8f3d6c15a7c522cd89267739318c78e4d6a37
refs/heads/master
2020-03-27T11:42:29.520183
2018-09-15T21:03:47
2018-09-15T21:03:47
146,503,308
2
0
null
null
null
null
UTF-8
Python
false
false
12,098
py
import numpy as np from assistant_module.get_decision_path import get_decision_path def get_energy(n, switch='conventional', structure='conventional'): """ get the energy consumption of every code, each code represents the possible decision level before the last decision(a odd decimal integer). :param...
[ "lfc199471@gmail.com" ]
lfc199471@gmail.com
f6e865c5110f9052fdbb39331313e2ca555771da
9e1f6ccb24740e5dc51c71b76ffc3df4f561453e
/app.py
4451f01d8c4e516275d05abca23045fda760067c
[]
no_license
AbbieKent/Analyzing-Atlanta-Crime
2ed7ed191b757482c1d3f42fb96da53a921b09ee
872ecb801b1abec1f41dd732ee9d6f88d70f6072
refs/heads/main
2023-03-17T17:44:25.125117
2021-03-15T21:11:42
2021-03-15T21:11:42
348,123,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
from flask import Flask, render_template from flask import request, url_for, render_template, redirect import pandas as pd import numpy as np import pdb, os from os import environ import joblib from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.compose impo...
[ "arkent10@gmail.com" ]
arkent10@gmail.com
b9f5b0e85ced88524ab8f2e59229df6b0f93c821
e60a342f322273d3db5f4ab66f0e1ffffe39de29
/parts/zodiac/chameleon/__init__.py
60fbbb344ac3c226ff2ca2148893e72d3fc26add
[]
no_license
Xoting/GAExotZodiac
6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1
f60b2b77b47f6181752a98399f6724b1cb47ddaf
refs/heads/master
2021-01-15T21:45:20.494358
2014-01-13T15:29:22
2014-01-13T15:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
/home/alex/myenv/zodiac/eggs/Chameleon-2.13-py2.7.egg/chameleon/__init__.py
[ "alex.palacioslopez@gmail.com" ]
alex.palacioslopez@gmail.com
91f2e963910d164e1fa3ecf41f3875ae6dd1b8e6
4fc5c908df8c0aecb4943e798c9c71c542a96584
/samples/practice1_Milana.py
3d038dea120dcb17d2a350f9b410f72a73b176fa
[ "Apache-2.0" ]
permissive
Milana009/UNN_HPC_SCHOOL_2019_ML
84d51cdd7a499139a0297a76522350de74b7ff4c
d5bb7a8ab5f026f2bc4df896019ded5987040295
refs/heads/master
2020-09-13T07:58:32.456350
2019-11-19T23:04:02
2019-11-19T23:04:02
222,703,246
1
0
Apache-2.0
2019-11-19T13:31:23
2019-11-19T13:31:22
null
UTF-8
Python
false
false
1,157
py
import sys import cv2 import logging as log import argparse sys.path.append('../src') from imagefilter import ImageFilter def build_argparse(): parser=argparse.ArgumentParser() parser.add_argument('-i', '--input', help = 'your input', type = str) parser.add_argument('-w', '--width', help = 'your widt...
[ "Milana_Vagapova" ]
Milana_Vagapova
580dbd15bf43272f28e3f9bd42413a905510cd76
bef304291f5fe599f7a5b713d19544dc0cecd914
/todoapp/todo_list/forms.py
9fe1a617dd0f429fc6c8b3c1fa6885fee975c262
[]
no_license
coderj001/django-todo-and-air-quality
9ca847143ea86677a0d54026c060638fabf8c042
012ee15fa3cfbf1aa08ae4513c3bf4fa828b3ba3
refs/heads/master
2020-12-14T20:20:49.845722
2020-01-19T15:06:42
2020-01-19T15:06:42
234,855,834
0
1
null
null
null
null
UTF-8
Python
false
false
147
py
from django import forms from .models import ToDoList class ListForm(forms.ModelForm): class Meta: model=ToDoList fields=['item','completed']
[ "amirajubolchi001@gmail.com" ]
amirajubolchi001@gmail.com
aa43f40b58364ba1f55d60b52c75f3e4b4bbfeb9
7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a
/examples/adspygoogle/dfp/v201101/get_licas_by_statement.py
9086f2f5d7006a77c1a7b578138725bf4db3479b
[ "Apache-2.0" ]
permissive
hockeyprincess/google-api-dfp-python
534519695ffd26341204eedda7a8b50648f12ea9
efa82a8d85cbdc90f030db9d168790c55bd8b12a
refs/heads/master
2021-01-10T10:01:09.445419
2011-04-14T18:25:38
2011-04-14T18:25:38
52,676,942
0
0
null
null
null
null
UTF-8
Python
false
false
2,266
py
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138" ]
api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138
3fccf4fa9600a4a3e7b07d4b28660e603bcef30e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/triangle/0296cbe043e446b8b9365e20fb75c136.py
18e84ab880631f7510539ae77e9524b0eda2b632
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
621
py
# represents a triangle class Triangle(object): _kinds=["equilateral","isosceles","scalene"] def __init__(self,a,b,c): if a<=0 or b<=0 or c<=0: raise TriangleError("Triangles cannot have zero or negative side length.") if a+b<=c or a+c<=b or b+c<=a: raise TriangleError("Triangles must satisfy the t...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
6b2843c0a678ffe8be10b0d147adee1740dc58da
a5f8eb72e680a906f74ae53d2b6428fbb008320c
/31-zip.py
a48620bb23a58f1ecfdebf53d239f9cf71d077e5
[]
no_license
arn1992/Basic-Python
0588858aed632ac9e65e5618d5b57bcbe71c45bc
09b9bf2364ddd2341f95445e18868e2e0904604d
refs/heads/master
2020-06-28T18:35:32.394730
2016-12-15T07:21:33
2016-12-15T07:21:33
74,483,622
1
0
null
null
null
null
UTF-8
Python
false
false
127
py
first=['ratul','aminur','arn'] last=['tasneem','ishrar'] names=zip(first,last) for a,b in names: print(a,b)
[ "noreply@github.com" ]
arn1992.noreply@github.com
9b500090e5537a2b729caa78d0590d8753bbca89
b92adbd59161b701be466b3dbeab34e2b2aaf488
/.c9/metadata/environment/fb_post_learning/fb_post_clean_arch/views/delete_post/api_wrapper.py
34ca1ee1bb0f47da7e80c5643b393f16129c97b8
[]
no_license
R151865/cloud_9_files
7486fede7af4db4572f1b8033990a0f07f8749e8
a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4
refs/heads/master
2022-11-22T10:45:39.439033
2020-07-23T09:31:52
2020-07-23T09:31:52
281,904,416
0
1
null
2022-11-20T00:47:10
2020-07-23T09:08:48
Python
UTF-8
Python
false
false
480
py
{"filter":false,"title":"api_wrapper.py","tooltip":"/fb_post_learning/fb_post_clean_arch/views/delete_post/api_wrapper.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":17,"column":17},"end":{"row":17,"column":75},"isBackwards":true},"optio...
[ "r151865@rguktrkv.ac.in" ]
r151865@rguktrkv.ac.in
8c933fd456834988004265d8cb6e1a7801ec7b35
b013eb7ffc0c41e874c04a55065de96a9313ab17
/longest_path1.py
f3d3b164a7b8e8b0244d280f07fd701a95f4287a
[]
no_license
YuiGao/shortest_longest_path
69fcf5724cfb03e7a94f33b507fa25e7c41f69ed
111d85c2fa090b497cc2896ddf644a21ffc4e69f
refs/heads/master
2020-05-07T19:29:09.282219
2019-04-11T14:54:47
2019-04-11T14:54:47
180,815,191
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
nodes = ('A', 'B', 'C', 'D', 'E', 'F', 'G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') distances = { 'A':{'B':5,'C':6,'D':4,'E':7}, 'B':{'A':5,'F':2,'G':3}, 'C':{'A':6,'F':6,'G':4,'H':1}, 'D':{'A':4,'G':7,'H':3,'I':6}, 'E':{'A':7,'H':9,'I':1}, 'F':{'B':2,'C':6,'J...
[ "1205319351@qq.com" ]
1205319351@qq.com
d1877db7913e58c396ec934ebb1dc1c993bcbbb5
892dd32ee0be7135cd33c875b06dcc66307dcc99
/automation/MPTS/verifyIqn.py
b82a09a932deb898ea00bc911d3867e80a4c52da
[]
no_license
cloudbytestorage/devops
6d21ed0afd752bdde8cefa448d4433b435493ffa
b18193b08ba3d6538277ba48253c29d6a96b0b4a
refs/heads/master
2020-05-29T08:48:34.489204
2018-01-03T09:28:53
2018-01-03T09:28:53
68,889,307
4
8
null
2017-11-30T08:11:39
2016-09-22T05:53:44
Python
UTF-8
Python
false
false
5,429
py
import json import sys import time from time import ctime from cbrequest import configFile, executeCmd, executeCmdNegative, resultCollection, getoutput config = configFile(sys.argv); stdurl = 'https://%s/client/api?apikey=%s&response=%s&' %(config['host'], config['apikey'], config['response']) negativeFlag = 0 if len...
[ "karthik.s@cloudbyte.com" ]
karthik.s@cloudbyte.com
4327917009b231fd6cbcb15c547b3403e777d4b3
856762ba0c6c69f4b086689764fad0d019a50146
/图片颜色分割.py
9d7ada5b5d96e3196d6bf53313ed2f2350199158
[]
no_license
JonathanScoot/Events
bc9ec0194a972fe677693a1a8bff7539ff474bbf
795442eb56345b876847ce3c32ea4ea0631ddfb9
refs/heads/master
2020-04-30T13:37:13.664734
2019-03-21T03:33:32
2019-03-21T03:33:32
176,863,623
1
0
null
null
null
null
UTF-8
Python
false
false
234
py
import cv2 import numpy as np cap = cv2.imread('/Users/wangjie/Desktop/road1.jpg', 0) while True: displayimage = cv2.imshow('road', cap) k=cv2.waitKey(5) &0xFF if k==27: break cv2.destroyAllWindows() cv2.line()
[ "Jonathan@MacBook-Pro-2.lan" ]
Jonathan@MacBook-Pro-2.lan
8d311b4049baf3cfb4d2c9c41c06f410bd88211c
74e6ea749db5e989dcec9e85a6dadab44b73a91e
/restserver1/quickstart/svm.py
5aaf952eb9b89fe62df47c84fe7b73d10361507e
[]
no_license
torahss/restserver
94d373c31cc54aef32f3eeb24844c6c4af7be604
dadcb1c8c08b7af375bda3f9c2bca47a63a5b761
refs/heads/master
2023-02-02T12:48:38.672797
2020-12-21T12:50:16
2020-12-21T12:50:16
323,330,851
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
from sklearn.svm import SVC from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split import pandas as pd def svmRun(inputdata) : data = pd.read_csv('/var/www/restserver/quickstart/train.csv', header=0, index_col=0, squeeze=True) dataset = pd.DataFrame(data) t_data = ...
[ "sungsamhong@gmail.com" ]
sungsamhong@gmail.com
431bab8eea3abbc7fae959c140647f6a74cb2440
a266cfe89cf9c7347abf712e3b800468438448c2
/extra_addons/formio_data_api/__manifest__.py
1449bd63251da49b08f0d9e19d5075ac17b82eaf
[]
no_license
cialuo/project_template
db8b9f9c4115a6d44363a39e311363e8f3e7807f
2f875bdc5b730afeae3dd8dffafde852d0a44936
refs/heads/main
2023-03-09T17:50:55.398557
2021-02-24T00:17:59
2021-02-24T00:17:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
# Copyright Nova Code (http://www.novacode.nl) # See LICENSE file for full licensing details. { 'name': 'Forms | Data API', 'summary': 'Python API for Forms data (builder, form/submission).', 'version': '0.5', 'license': 'LGPL-3', 'author': 'Nova Code', 'website': 'https://www.novacode.nl', ...
[ "dungth@trobz.com" ]
dungth@trobz.com
d115bee72cd6afec3acc95c9eb09d4221573f345
9abebf3d5b197a20a16829035e8d3623220c7822
/Chapter3/BigOListIndex.py
d355aab09621e3116e41f59a31b87c89427a2f5c
[]
no_license
JoeVentrella/CS260
61e4e834f6c767d80cfe1e19460168f707e15bcd
a717f4b476b6e80f25cd74c8effc343624ec9b42
refs/heads/master
2020-08-08T04:19:33.906563
2019-12-15T01:54:40
2019-12-15T01:54:40
213,710,821
0
0
null
2019-10-08T17:57:35
2019-10-08T17:42:15
null
UTF-8
Python
false
false
765
py
import random import timeit exampleList = list(range(10000)) num = 10000 def bigOForListIndex(exampleList, n): """ Experiment to verify list index is O(1) """ for i in range(num): index = random.randint(0, num-1) exampleList[index] def main(): for n in range(1000000, 10000001, 100...
[ "ventrellajoe1@gmail.com" ]
ventrellajoe1@gmail.com
748f97751e80a2258b78d59ce4a378db9a54d1b5
b743a6b89e3e7628963fd06d2928b8d1cdc3243c
/bpl_client/Client.py
c9143098c648f30df369d458d22b99d0e6d61a3a
[ "MIT" ]
permissive
DuneRoot/bpl-cli
847248d36449181856e6cf34a18119cd9fc1b045
3272de85dd5e4b12ac5b2ad98bf1e971f3bf5c28
refs/heads/master
2020-03-25T17:42:06.339501
2019-02-20T19:20:26
2019-02-20T19:20:26
143,990,801
3
0
null
null
null
null
UTF-8
Python
false
false
1,781
py
""" BPL Client Usage: bpl-cli network config new bpl-cli network config use bpl-cli network config show bpl-cli network peers bpl-cli network status bpl-cli account create bpl-cli account status <address> bpl-cli account transactions <address> bpl-cli account send <amount> <recipient> bpl-cli accou...
[ "johnyob132@gmail.com" ]
johnyob132@gmail.com
cdf669514aaf2c1d7c33248746135d7b0232f29f
184ab7b1f5d6c4a4382cf4ffcf50bbad0f157ef1
/library/aht10/aht10_example.py
46df77a8a71666025fda1409a3c5b7ebdbed9497
[]
no_license
RT-Thread/mpy-snippets
fdd257bb9f44cdc92e52cd39cdc88a57d736fb26
9296d559da275f51845cb9c2f8e2010f66f72cc1
refs/heads/master
2023-06-14T02:20:05.449559
2020-06-03T02:34:47
2020-06-03T02:35:19
198,854,793
28
18
null
2020-05-06T11:32:46
2019-07-25T15:14:56
Python
UTF-8
Python
false
false
517
py
from machine import I2C, Pin from aht10 import AHT10 PIN_CLK = 54 # PD6, get the pin number from get_pin_number.py PIN_SDA = 33 # PC1 clk = Pin(("clk", PIN_CLK), Pin.OUT_OD) # Select the PIN_CLK as the clock sda = Pin(("sda", PIN_SDA), Pin.OUT_OD) # Select the PIN_SDA as the data line i2c = I2C(-1, clk, sda,...
[ "SummerGift@qq.com" ]
SummerGift@qq.com
7efbf28a97b17e623a9be0e1d817befa061257fc
fe061550aa4a6d894aba6fc91ec3f4a9c276ee5d
/ALCARAW_RECO/python/pdfSystematics_cff.py
25c61242fc5df1a2a7699333ce47b47e4d7cdd91
[]
no_license
ldcorpe/ECALELF
0f11c04c63cd4ef9c0fac9168d827c8b4d99eada
6f8196c6c455b9ff092007ea5d0e69fc6e68a517
refs/heads/master
2020-12-30T22:08:58.160533
2014-03-05T09:35:07
2014-03-05T09:35:07
17,245,358
0
0
null
2015-07-23T17:14:56
2014-02-27T10:37:42
C++
UTF-8
Python
false
false
727
py
import FWCore.ParameterSet.Config as cms # Produce PDF weights (maximum is 3) pdfWeights = cms.EDProducer("PdfWeightProducer", # Fix POWHEG if buggy (this PDF set will also appear on output, # so only two more PDF sets can be added in PdfSetNames if not "") ...
[ "shervin@cern.ch" ]
shervin@cern.ch
11b5246e31e2f5ef8ad5e9bcb8fdfabe438a1953
6defd2219720396842ac564e7d6bf4f5146eddda
/pycatenary.py
0918a0110a0feec62435cf74110d084ab14fdc9e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
fsanges/pyCatenary-NoElast
2e111d379d36582b6b1851d4e4eb2bc004f4dc25
5901b06a208b802f12990ca0ecdce8c975c4a0e5
refs/heads/master
2021-12-01T20:55:56.685777
2013-04-01T11:46:34
2013-04-01T11:46:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,660
py
# !usr/bin/env python # catenary calculation, re-written in python - NO Elasticity!!! import math import numpy as np import matplotlib.pyplot as plt from scipy.optimize import fsolve from inout import write_file def cat(a): # defining catenary function #catenary eq (math): a*sinh(L/(2*a)+atanh(d/S))+a*sinh(L/(2...
[ "deki.djokic@gmail.com" ]
deki.djokic@gmail.com
7f7434016d940893c9cb3b72ea218d424554329e
ea416617fdf6632081cb91fccfb2e8fa5965ad9e
/plan/migrations/0002_route.py
f4cf7c2b4ef825c3680cda2b86819c90200f91f0
[]
no_license
fergalpowell/final_year_project
249f8289ab84b5daba98a9f262e1a2637760cd49
568e8cb646ccf5b6a25c1368ffd2204d7d5f08ab
refs/heads/master
2021-09-13T17:29:26.868935
2018-05-02T15:03:14
2018-05-02T15:03:14
112,532,473
1
0
null
null
null
null
UTF-8
Python
false
false
698
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-04-17 11:22 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('plan', '0001_initial'), ] operations = [...
[ "fergal.powell@gmail.com" ]
fergal.powell@gmail.com
90352a180e75d18219b8cba394d4d2b8f03de187
aa0270b351402e421631ebc8b51e528448302fab
/sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_spark_configuration_operations.py
9d5b1194a4b1cae79ac490bbe3402239b826e729
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
33,298
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
ecf5f0f62c51ab6359317746fd5f24df8967cb26
d268ee5da12d4eecc7bf97f37ec71ae58fe5854d
/data_set_prep/dataset_prep_scr.py
0cc7adb12c263a0b1b7b24868476e42d26b4213b
[]
no_license
oiynick/rcnn_buildings
b5760727fc0063086362eaffe32e36e2fafc75e7
1be3d554e5e3a0bc13ed086c73f3a87f61e025d5
refs/heads/master
2020-04-28T08:57:19.537442
2019-03-21T12:54:29
2019-03-21T12:54:29
175,148,681
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
import numpy as np import shapely from aeronet import dataset as ds def one_sample(fp_json, fp_tif): # Read the JSON file and the TIF image av_features = ds.vector.FeatureCollection.read(fp_json) raster = ds.raster.Band(fp_tif) # Image sizing info and setting up the coordinates samples = raster....
[ "nikita.veliev@skoltech.ru" ]
nikita.veliev@skoltech.ru
75d75f75c5dfebdcd52ba31013c836708232536a
6e68d7f4bbd2cf2ecad7cdf6bbd07d6687f2685c
/preprocessing.py
a406884f0db4f90c620feac07d8ce7282e1b221b
[]
no_license
AbhinavJindl/sentiment_analysis
bd5a08345913d92cd5be0e61fe5095e196fb9d49
b2154a89f3c0bfa89318e8d280734ed25af1cc5f
refs/heads/master
2020-03-27T20:41:28.945916
2018-09-02T13:55:07
2018-09-02T13:55:07
147,086,857
0
0
null
null
null
null
UTF-8
Python
false
false
3,108
py
import random import pickle no_words = 5000 no_reviews = 1000 no_validation=1000 no_test=1000 forest_trees=50 forest_tree_features=2000 def add_noice(review_list_pos,review_list_neg,p): n=int((p/100)*len(review_list)/2) random.sample(review_list,n) def load(filename): file = open(filename,'rb') obj=pickle.load...
[ "2016csb1026@iitrpr.ac.in" ]
2016csb1026@iitrpr.ac.in
f5dff936815d2f26b852c4ae10f5bf7d9e9004b8
ed569623f4686688edac40c2dabde0206546316b
/tests/unit/models/company_test.py
00eea0a1fdd38459098b429e193dbf491738925e
[]
no_license
leobene/RadarMiles
34753114854f9dff7ee781060c2f99ec3a54d468
9810b04f29ba5a514dfcbfb0679f304f93842d37
refs/heads/master
2020-04-08T09:13:02.806563
2018-12-03T23:46:58
2018-12-03T23:46:58
159,213,641
1
0
null
null
null
null
UTF-8
Python
false
false
711
py
from models.company import CompanyModel from tests.base_test import BaseTest class CompetitionTest(BaseTest): def test_create_competition(self): company = CompanyModel('GOL') self.assertEqual(company.name, 'GOL', "The name of the company after creation does not equal the ...
[ "leobene@192.168.0.100" ]
leobene@192.168.0.100
7a01f23b1d83f8f97510a946715871ec8f1d5700
6d63fb09abb41f2c3f6ba66091b8c0507044104d
/py/liu.py
3d41ef1913f6c48a13f1ebb8c86ac5ac6a627c48
[]
no_license
buaaswf/backup-my-projects
dbc3d0c4ac5af38b4b8ce07be7978e3ff36cf75c
73577385da85fdd5899cb471220dd8334ca603bc
refs/heads/master
2021-04-15T03:44:06.248881
2018-03-22T08:58:36
2018-03-22T08:58:36
126,304,153
0
0
null
null
null
null
UTF-8
Python
false
false
16,242
py
#!/usr/bin/env python # encoding: utf-8 import numpy as np import sys from sklearn.metrics import classification_report sys.path.insert(0,"/home/s.li/2017/gpu4/caffe-segnet-cudnn5/python") import matplotlib.pyplot as plt import caffe import os import scipy.io import shutil from mnist_single_plot_roc import...
[ "noreply@github.com" ]
buaaswf.noreply@github.com
e27d03897ae226bf6eafffa5093cee07b628880d
a1dd6f2e13506b54120532c2ed093dc270eff4ac
/GridServices/TransactiveControl/TNT_Version1/TNSAgent/tns/transactive_record.py
3f466148e9947fe21eff8fd0e8fe6acc846f3d6b
[ "BSD-3-Clause" ]
permissive
shwethanidd/volttron-pnnl-applications-2
ec8cc01c1ffeff884c091617892fea6e84a3e46e
24d50729aef8d91036cc13b0f5c03be76f3237ed
refs/heads/main
2023-06-18T12:13:13.607951
2021-06-30T23:00:01
2021-06-30T23:00:01
359,586,385
0
0
BSD-3-Clause
2021-04-19T20:15:45
2021-04-19T20:15:45
null
UTF-8
Python
false
false
4,505
py
""" Copyright (c) 2020, Battelle Memorial Institute All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and...
[ "shwetha.niddodi@pnnl.gov" ]
shwetha.niddodi@pnnl.gov
4d1858de9f200007868855912c5cb09bbd0ff480
b99255c89683d4123a560a1eb6221b21013d917d
/path_manager/page/category_page.py
f51ce67d375f686b79ed3751f06300e58f94fc61
[ "MIT" ]
permissive
sweetcolor/internet_market_scraper
f7a89e8c54124aadfecaa89f1c84d6c73762ff8b
f7eb8c9ade2c0a956ba5d5b7e6173010c85afed6
refs/heads/master
2021-09-04T04:05:46.529150
2018-01-15T17:02:59
2018-01-15T17:02:59
115,523,578
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
from path_manager.page.page import Page class CategoryPage(Page): def __init__(self, link, parent_page): super().__init__(link, parent_page)
[ "sweet3color@gmail.com" ]
sweet3color@gmail.com
8dffd82bcaecce6cabc8c75ad494f05fdb50eb2c
463b1807820b9fa119e0c17afaa06840fef0e2a3
/TURTLE/Rainbow.py
c1cd2fce89f6b3134ecc681a44f9b1183f16a2cc
[]
no_license
ferdi-oktavian/Python
ad8aac711d5565739077a6e5358777807dd464d3
27ad83aeedb3e460927bfcf179bc4e4b1ed28366
refs/heads/main
2023-03-09T02:49:54.481087
2021-03-02T00:12:54
2021-03-02T00:12:54
343,593,542
1
0
null
null
null
null
UTF-8
Python
false
false
681
py
import turtle import colorsys def draw_one_color_arc(x, y, r, pensize, color): turtle.up();turtle.goto(x+r,y) turtle.down();turtle.seth(90) turtle.pensize(pensize);turtle.pencolor(color) turtle.circle(r,180) turtle.speed(0) turtle.hideturtle() turtle.bgcolor('light blue') t...
[ "noreply@github.com" ]
ferdi-oktavian.noreply@github.com
d9f0bd32c021cff6d85d2b4c86f7c6a119a3be14
0912be54934d2ac5022c85151479a1460afcd570
/Ch07_Code/GUI_MySQL.py
cf54d12400d1045cffa7dcdeaa05f864343ff849
[ "MIT" ]
permissive
actuarial-tools/Python-GUI-Programming-Cookbook-Third-Edition
6d9d155663dda4450d0b180f43bab46c24d18d09
8c9fc4b3bff8eeeda7f18381faf33c19e98a14fe
refs/heads/master
2023-01-31T13:11:34.315477
2020-12-15T08:21:06
2020-12-15T08:21:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,876
py
''' Created on May 29, 2019 @author: Burkhard ''' #====================== # imports #====================== import tkinter as tk from tkinter import ttk from tkinter import scrolledtext from tkinter import Menu from tkinter import Spinbox from Ch07_Code.ToolTip import ToolTip from threading import Thread...
[ "noreply@github.com" ]
actuarial-tools.noreply@github.com
dcad9b56560d0941b2a0e5ed5d3b3e2336da3c37
0785df5c1d893a23a77b73617c1b5c10e6ac238f
/local.py
7dd3a4cb48cf307e906381640d9a3d04ea3eccd3
[]
no_license
AnufrievaAnastasia/Project3
dd9482b2c1cb1722c4a1bcfd69f8c3f8210b7fbf
237bf9f9c04704a2e8a22ac4088d4ad805f8eeac
refs/heads/master
2020-08-23T05:03:21.903122
2019-10-21T11:21:05
2019-10-21T11:21:05
216,549,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
TXT_TASK = 'Игра "Правда или Ложь", на прохождение у вас только две попытки' TXT_ANS_1 = 'Самым твердым природным материалом на Земле является титан ' TXT_ANS_2 = 'В среднем около 10 лет человек проводит во сне ' TXT_ANS_3 = 'Стрекозы - самые быстролетающие насекомые ' TXT_ANS_4 = 'Фильм "Титаник" стоил дороже, чем стр...
[ "anufrieva_01@mail.ru" ]
anufrieva_01@mail.ru
86404a656d1321585c146107b8e2b33929d19370
809f119d53610261d71c5e9b5f620c41524868b1
/main.py
eb0ecb4bd43e420c3f19ab15dbdcc22cd75d1cd5
[]
no_license
HackerulGogu/SnakeImpact
d07c9866ec8b4320c393b24fbd47793e0c03a140
c6c65f9e1de5cc446a56340ac0462cc4ed362b75
refs/heads/master
2021-04-11T04:19:15.420141
2020-03-21T14:51:55
2020-03-21T14:51:55
248,991,501
0
0
null
null
null
null
UTF-8
Python
false
false
15
py
print('merge')
[ "novaialex44@gmail.com" ]
novaialex44@gmail.com
3c7e5c0670bdcf86f8a00bc3574132e66221f1ea
579f04eda7851cd89e04cd39ecf48a0d09f63244
/mandala/sketch_cat.pyde
4655f0ece0ab99fab7be7870be78a7ab91572cb4
[]
no_license
jralipe/ccs221
0f378492a380b292e35ff7ec27b4e37cb1992726
c70f7834c707c089d2ce01a54b9eda70f50c418f
refs/heads/master
2020-12-28T18:22:15.919736
2020-05-29T00:48:53
2020-05-29T00:48:53
238,438,446
3
27
null
2020-03-05T11:31:06
2020-02-05T11:52:29
Python
UTF-8
Python
false
false
3,287
pyde
#Nyancat by Maria Arlyn Fuerte #BSCS1A catx = 0 caty = 0 flag = True def setup(): size(900, 600) background(25, 25, 112) def draw(): global catx global caty global flag noStroke() background(25, 25, 112) fill(255, 0, 0) #RED rect(0, caty +150, 200...
[ "noreply@github.com" ]
jralipe.noreply@github.com
fc6660d4b5263329f3ba30e3115d2c3f11ba7cdc
36a5fb4183534c1f7e2523a80c510c4d59746fe9
/sgs/cmd_handlers.py
7bc5a5e76f1656a7f16962450eba8dd8fac19ae0
[]
no_license
morningbzy/SGS
85856ce313a404430fab7fffc5dfc5f9603feaab
23db709af3e56d6082c8283ea2fd6f0caf10e85e
refs/heads/master
2021-01-15T13:18:19.315256
2013-08-07T15:38:39
2013-08-07T15:38:39
10,073,280
2
1
null
null
null
null
UTF-8
Python
false
false
3,143
py
# -*- coding: UTF-8 -*- import logging import tornado.escape import tornado.auth import tornado.web from sgs.user import global_users from sgs.game import global_game from sgs.cmd import Cmd class BaseHandler(tornado.web.RequestHandler): def get_current_user(self): user_json = self.get_secure_cookie("us...
[ "morningbzy@gmail.com" ]
morningbzy@gmail.com
6e295f76fbefde92e0f7d98a4c2ea8a9eb480c01
71e6546941d2763946b69800dfb15679fab70d14
/image_process.py
7b0734e9d6eda4d01c3dc08c071991c44d18d957
[]
no_license
ruitengchang/private
510d58d1ca5ad5cc7ec7147f0ae00249f38da0a4
f9ac73cd1f21d4f1febc0abca627bb1fce2fe3a5
refs/heads/master
2020-06-05T17:12:34.768517
2019-06-18T09:52:55
2019-06-18T09:52:55
192,493,277
0
0
null
null
null
null
UTF-8
Python
false
false
5,368
py
import cv2 as cv import numpy as np import os def line_image(image): gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY) #cv.imshow("gray",gray) edges = cv.Canny(gray, 100, 500, apertureSize=3) #cv.imshow("canny",edges) # contours,hierarchy=cv.findContours(edges,cv.RETR_LIST,cv.CHAIN_APPROX_SIMPLE) #...
[ "noreply@github.com" ]
ruitengchang.noreply@github.com
405974db9681a1efc9bb65d55fa0ae64ee33d230
94470cf07f402b1c7824e92a852cd3203f94ac4a
/polls/apiviews.py
6f6ca88b9da4638cbf0f4888e4305f24fa9ffee5
[]
no_license
jbeltranleon/pollsapi_django_rest
c509bf0b0c1e2db870ed8a4aaa1647bf74c5f8cd
0855820541064ffd77dbd1c6e77f695d4f18e517
refs/heads/master
2020-04-14T17:55:02.364183
2019-01-04T16:01:46
2019-01-04T16:01:46
163,999,126
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from rest_framework import generics from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from .models import Poll, Choice from .serializers import PollSerializer, ChoiceSerializer,\ VoteSerializer class PollList(generics.ListCreateAPIView): q...
[ "jbeltranleon@gmail.com" ]
jbeltranleon@gmail.com
4aff36fdb71b2bbc4fd29e2773506848f06a1fd6
8a7d5d67052892dd5d2a748282958f6244d963c6
/google-cloud-sdk/lib/surface/app/domain_mappings/delete.py
32842caf145b27ecec1a4e5410e7656b9643a037
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KisleK/capstone
7d1d622bd5ca4cd355302778a02dc6d32ed00c88
fcef874f4fcef4b74ca016ca7bff92677673fded
refs/heads/master
2021-07-04T03:29:44.888340
2017-07-24T16:16:33
2017-07-24T16:16:33
93,699,673
0
2
null
2020-07-24T22:44:28
2017-06-08T02:34:17
Python
UTF-8
Python
false
false
1,812
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "kisle.kuhn1@gmail.com" ]
kisle.kuhn1@gmail.com
e2e44ffd1b8897513aaba446dd704ac14b2c5945
35dbd536a17d7127a1dd1c70a2903ea0a94a84c2
/src/sentry_plugins/sessionstack/client.py
2c50f1bafe960bbe0331c77cff05e234168642de
[ "Apache-2.0", "BUSL-1.1" ]
permissive
nagyist/sentry
efb3ef642bd0431990ca08c8296217dabf86a3bf
d9dd4f382f96b5c4576b64cbf015db651556c18b
refs/heads/master
2023-09-04T02:55:37.223029
2023-01-09T15:09:44
2023-01-09T15:09:44
48,165,782
0
0
BSD-3-Clause
2022-12-16T19:13:54
2015-12-17T09:42:42
Python
UTF-8
Python
false
false
4,683
py
import requests from sentry.http import safe_urlopen from sentry.utils import json from .utils import add_query_params, get_basic_auth, remove_trailing_slashes ACCESS_TOKEN_NAME = "Sentry" DEFAULT_SENTRY_SOURCE = "sentry" API_URL = "https://api.sessionstack.com" PLAYER_URL = "https://app.sessionstack.com/player" W...
[ "noreply@github.com" ]
nagyist.noreply@github.com
3a4928e43a8d2eb7a9e58b5e4c3c04eee176b3f5
0798277f2706998ab80442ac931579eb47f676e5
/bin/metric-markdown
ed615b4e0809a60c37d486fe5df8f258f20d47d9
[ "Apache-2.0" ]
permissive
isabella232/pulse-api-cli
49ed38b0694ab289802f69ee6df4911cf3378e3f
b01ca65b442eed19faac309c9d62bbc3cb2c098f
refs/heads/master
2023-03-18T00:23:15.295727
2016-05-13T15:44:08
2016-05-13T15:44:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
817
#!/usr/bin/env python # # Copyright 2015 BMC Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "davidg@boundary.com" ]
davidg@boundary.com
68ed6146980626889998a60eed343f5932d5d1a2
7e792f54abea89609fcc1317dbbc6b50012c56ec
/main.py
a360c9b3b6cb6ff0e81fd6148244159ed17ed374
[]
no_license
sylvanusm/Bert-abstractive-summarisation
067ba2a53ae8a2d5e99f5024c77f29b52eadd39d
4e56bf0b2188b9684f4b1c2d59e60c5f6b8c090e
refs/heads/main
2023-06-07T17:19:47.812248
2021-06-26T10:28:52
2021-06-26T10:28:52
380,363,935
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
from model.transformer import Summarizer from model.common_layer import evaluate from utils import config import torch import wandb import torch.nn as nn import torch.nn.functional as F from tqdm import tqdm import os import time import numpy as np from utils.data import get_dataloaders, InputExample, InputFeatures ...
[ "sylvanusmahe@Sylvanuss-MacBook-Pro.local" ]
sylvanusmahe@Sylvanuss-MacBook-Pro.local
63cf85af944332bdcc3cf505a3931ab50cb64c0f
600f361ac85c87dbc3a17cf3908dc0f4267a8c94
/quality-trim.py
2c2ac719751b4fb20d6f92a2f88d1c78ab76ac60
[]
no_license
LeeBergstrand/Bioinformatics_scripts
801f00ea5d4346daf00f92d331f4a87737280ddd
0cfab04ecf43cf4f0aeba2d713532190cfc5eed1
refs/heads/master
2021-01-15T15:23:43.455647
2015-05-05T05:25:55
2015-05-05T05:25:55
19,826,979
3
2
null
null
null
null
UTF-8
Python
false
false
1,170
py
#!/usr/bin/env python import sys import screed import gzip # python quality-trim.py <input fastq file> <output filtered fastq file> # MINLENGTH is the minimum lenth of read desired. NCALLS is the percentage of a read with 'N' base calls for which if read has greater, it will be removed. MINLENGTH = 30 filein = sy...
[ "carden24@mail.ubc.ca" ]
carden24@mail.ubc.ca
d31bf01470b66161944add4d5f0c467767484f48
1a7ac4eb338f53e96f92c84d560fd1707607bcc9
/ENV/bin/jupyter
3897bd35c4d09274ecf81879fcf8337d7d1c9519
[]
no_license
kuwar/data-science-python-1
cf3d04dbcf3e57fe6976be7e2f3371ee0eb3304f
2738d00cb339c250fdeca30ad84d9be7ca87e570
refs/heads/master
2022-10-18T09:15:56.181434
2019-09-10T06:39:44
2019-09-10T06:39:44
207,480,173
0
1
null
2022-10-13T06:11:52
2019-09-10T06:20:01
Python
UTF-8
Python
false
false
265
#!/home/saurav/Documents/GitHub/Python/second/ENV/bin/python3 # -*- coding: utf-8 -*- import re import sys from jupyter_core.command import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "skuwar@olivemedia.co" ]
skuwar@olivemedia.co
95d38eb622dd57ea6cf2bba55e5202edeb6e0e3b
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_679.py
798104fb95f83ba1ff04752dfd711df064cc3623
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
1,954
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() # !/usr/bin/dev python # -*- coding:utf-8 -*- """ reference: http://www.wooyun.org/bugs/wooyun-2015-0104157 http://www.beebeeto.com/pdb/poc-2015-0086/ """ import re import urllib import urllib2 import base64 import r...
[ "liyueke@huobi.com" ]
liyueke@huobi.com
9907349705be2a4fdbc48e95c52054b00ad85246
4efcfcaec6cc956d15a1ae966905911809c4de18
/Supervised Deep Learning/Artificial Neural Networks (ANN)/artificial_neural_network.py
72ded64f7630ebf2867544dae348d8c8a1fe4aa0
[ "BSD-3-Clause" ]
permissive
Nikhil-Xavier-DS/Deep-Learning-Algorithms-KERAS
9aa54eebaf688d83efa13767dd0e378339774e9c
7bbda3b1495d2e377abef2938c193afd34d95038
refs/heads/master
2020-03-28T09:00:22.535353
2018-09-09T08:30:32
2018-09-09T08:30:32
148,006,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,994
py
# Artificial Neural Network # Import libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Import Dataset dataset = pd.read_csv('Churn_Modelling.csv') X = dataset.iloc[:,3: 13].values y = dataset.iloc[:,13].values # Encoding categorical data from sklearn.preprocessing i...
[ "nikhilxavier@yahoo.com" ]
nikhilxavier@yahoo.com
f898a507fb5c8d1476d837dc594f7b5fa3b68cd6
b80b3b82bb1f4c4019e56bf6eed859d9e1ec024b
/python/tolower.py
4b443cc2001eef828e7353d23079405cbb61b962
[]
no_license
NotaCSstudent/leetcode
be484537f20302557411ed0a2d653703b4c86abe
13c3fc89e492209f70fcb8e7756c8553f5736a1e
refs/heads/main
2023-06-08T22:59:41.680890
2021-06-20T13:37:46
2021-06-20T13:37:46
372,983,624
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
class Solution: def toLowerCase(self, s: str) -> str: s = s.lower() return s
[ "noreply@github.com" ]
NotaCSstudent.noreply@github.com
31508bdac6628284abbbd3294418d6af5c325c67
b8d5270f2af049e795d02887fbe322054b82f600
/SC16IS750.py
28bdf44a54e2501340f0142873eca248d24d6733
[]
no_license
Harri-Renney/SC16IS750
1d73c42aa7fbec05413d7c2e7ea4fca2477e799c
8da36a31ca930ea88af2e73cce6ea163bda3ba25
refs/heads/master
2021-08-18T05:26:22.753747
2020-03-26T20:58:12
2020-03-26T20:58:12
141,274,557
1
1
null
null
null
null
UTF-8
Python
false
false
4,484
py
import smbus from enum import IntEnum class SC16IS750: self.DEVICE_ADDRESS = 0x9A CrystalFrequency = 0 class registers(IntEnum): RHR= 0x00 # Receive Holding Register (R) THR= 0x00 # Transmit Holding Register (W) IER= 0x01 # Interrupt Enable Register (R/W) F...
[ "harri.renney@blino.co.uk" ]
harri.renney@blino.co.uk
7f7bc5dacb84f4e18c258d76fd91a9bb8cc3af3b
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/12/23/12.py
da0396d4cf15e8267cd6d9041247bc41bc9c3b63
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,511
py
# -*- coding:utf-8 -*- import os, itertools curr_dir = os.path.dirname(os.path.abspath(__file__)) srcfilename = os.path.join(curr_dir, 'C-large.in') dstfilename = os.path.join(curr_dir, 'output.txt') def solve(numbers_): numbers = sorted(numbers_) memory = dict((k, [k]) for k in numbers) for r in xrange(2...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
db3d9f7ffa0daf93dc6ef9d1b818888be5ac8e5d
93afa6da4a41e6346079cf437aa11fe27ae84d93
/venv/bin/easy_install
c86211b025ea693cb90960dd17d613e34059f37e
[]
no_license
alexbatashev/rungekutta
20695e3d0706b7cfde2f7b4c0150e74122b4a6d5
7c71228b6bbbeebe0771b45e4d85c342f2d2fdd7
refs/heads/master
2020-05-05T06:56:03.982750
2019-04-07T08:29:28
2019-04-07T08:29:28
179,806,651
0
0
null
null
null
null
UTF-8
Python
false
false
454
#!/Users/aleksandrbatasev/PycharmProjects/rungekutta/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw...
[ "alexbatashev@outlook.com" ]
alexbatashev@outlook.com
04aaeca81365d84683d423d2113d3dca18c1ddb6
6451afeb63ae2be4974cab898e1f72d3d5633d72
/gmailsync/utils.py
fc8018f7c83296daadc1a88c73cf96d850af8835
[ "Apache-2.0" ]
permissive
albertoalcolea/gmailsync
f8fb8bd6bee3911482b6ef64f99d714682405938
cf2c1f074c24234284e1cfc2949341df1a9899ba
refs/heads/master
2022-05-02T22:40:46.881024
2022-04-14T17:08:28
2022-04-14T17:08:28
217,107,647
4
3
null
null
null
null
UTF-8
Python
false
false
504
py
import itertools import os def chunked(iterable, size): it = iter(iterable) while True: chunk = tuple(itertools.islice(it, size)) if not chunk: break yield chunk def expand_path(path): """ Convert relative paths to absolute paths expanding environment variables, a...
[ "albertoalcolea@gmail.com" ]
albertoalcolea@gmail.com
a99dbfd23d95657ed987f929ac6e3d4f7fd948f8
a64f122dd4df3e20bc3e25aca31bb11ec9d55977
/Assignment 3/ICA.py
507e0eba4db4d38a810c8e4fc5190d3e25708cc8
[]
no_license
mbrine555/gatech_ML
f9de5e1e1c29e40693030fcf3dce4797339f3ada
2a3dea874ac7710104fb891a5199afa9f3c046af
refs/heads/master
2020-04-16T10:39:44.328425
2019-04-10T11:54:37
2019-04-10T11:54:37
165,512,336
0
0
null
null
null
null
UTF-8
Python
false
false
3,002
py
#%% Imports import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.pipeline import Pipeline from helpers import nn_arch, nn_reg from sklearn.neural_network import MLPClassifier from sklearn.model_selection import GridSearchCV from sklearn.decomposition import FastICA out...
[ "briner.15@osu.edu" ]
briner.15@osu.edu
74d2f041b4f2ac6cdb869ee1926db295164b1264
4b6fc63aecf127806b34998cdaef0f7342514dcd
/Stress/SIGI_Fase_1/Defensor.py
0d84b621c51b08e4bfe546158149c1af5667da44
[ "CC0-1.0" ]
permissive
VictorAdad/sigi-api-adad
08365166f0443cc5f2c90fa792a63998e185f3f1
412511b04b420a82cf6ae5338e401b181faae022
refs/heads/master
2021-04-29T14:27:21.807529
2018-02-16T17:42:04
2018-02-16T17:42:04
121,772,079
0
0
null
null
null
null
UTF-8
Python
false
false
5,978
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from locust import HttpLocust, TaskSet, task from requests_toolbelt import MultipartEncoder from random import randrange import requests import mysql.connector from mysql.connector import errorcode import variables import time url = variables.url #cambiar formato de url...
[ "evomatik@localhost.localdomain" ]
evomatik@localhost.localdomain
839113b7423bd08946db266c62e3e63a9519e089
cbc5e5e32cdb04a16b3d2306f7d8dc265a86c47b
/py9/Test_Semaphore.py
0d640709f22e835dd46ded3338e1a7783df24eac
[]
no_license
github-ygy/python_leisure
9821bd9feb6b5f05e98fd09ed1be1be56f3f8e35
f58ee2668771b1e334ef0a0b3e3fc7f6aacb8ccf
refs/heads/master
2021-01-23T06:15:27.715836
2017-10-31T16:56:44
2017-10-31T16:56:44
102,496,812
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
#!/usr/bin/env python # author:ygy import threading, time def run(n): semaphore.acquire() #信号量计数 print("run the thread: %s" % n) time.sleep(1) print("off the thread:%s" % n) semaphore.release() #释放数量 # if __name__ == '__main__': semaphore = threading.BoundedSemaphore(5) # 最多允许5个线程同时运行 for ...
[ "ygyworkforit@163.com" ]
ygyworkforit@163.com
5fb5b8bd13952aead969b606c55f76af216ae318
29b2475e4647756078eb2772c0d6b570ace0d933
/elmhurst_college.py
b13050c2d896a6e9d557274798e999436820fcb5
[]
no_license
RDulepet19/Liberal-Arts-Index
a0f560b15d61940c63c8f4514d7a2a024bdfac8e
bc59811a8c0f0c27f56ebff25102977fea804260
refs/heads/master
2020-03-24T02:44:11.192802
2019-03-20T08:25:34
2019-03-20T08:25:34
142,388,394
0
0
null
null
null
null
UTF-8
Python
false
false
24,707
py
# coding: utf-8 # MIT License # # Copyright (c) 2018 Riya Dulepet <riyadulepet123@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitatio...
[ "noreply@github.com" ]
RDulepet19.noreply@github.com
0f9da5641c14d6d47418ae74359cbd602a3a8681
178eb0567fd21b65df6f95d7342d971fb253f91e
/AI/Classifiers/models/load.py
d0adbb5c1c02bded01575f019398c91e8808eb4a
[]
no_license
Zhaofan-Su/SemanticAnalysis
defacbcde5f6c541de9c4cfa37138a449c03ce60
f28813bf21d6170ffe826dd7edcad73cc244da9b
refs/heads/master
2020-05-07T11:59:15.138559
2019-04-23T00:53:45
2019-04-23T00:53:45
180,484,689
0
0
null
2019-04-17T02:46:54
2019-04-10T02:20:34
Python
UTF-8
Python
false
false
2,124
py
import os import torch import torch.nn.functional as F import datetime import torch.autograd as autograd import jieba.posseg as pseg from .fasttext import FastText import torchtext.data as data from .input import Dataset from torchtext.vocab import Vectors import os.path as path def _chinese_tokenizer(sentence): e...
[ "nee_11235@qq.com" ]
nee_11235@qq.com
a2996d418df380689d0ce270efb07b78628d4bc2
6f98d1667a5c9d55d0a74dcee77b5c3c777653a5
/source/ma20/analysis_stock.py
8f57162586da3109aaf4f8b18d1301f607c63bb7
[]
no_license
llzhi001/stock_strategy
55efec1ed95d9ba862fd71f705a5cca8ad3af751
237f9ccda0c806f06b99374a5680c5cb70c07899
refs/heads/master
2020-12-08T13:19:59.083121
2018-04-03T17:09:54
2018-04-03T17:09:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,643
py
# coding=utf-8 ''' Created on Nov 7, 2017-12:40:31 AM @author: yubangwei_pc ''' import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import tushare as ts from datetime import datetime # 考虑拟合20天均线,取导数? m20_para = {'not_rising_days':5, #连续not_rising_days多天不上涨,说明20天均线横盘或者下跌 'cons...
[ "qiuyemingchong@163.com" ]
qiuyemingchong@163.com
ec27f61e3c232a3694137ddddce91e9735b3c6fe
da9328c5a135429afeeedf099df62ed8cdf7bec2
/Train_new/urls.py
6818ea483abdb3d87d10679c0e98ce0a6868723d
[]
no_license
dbissa94/Train_new
1eb51e670e55ef1fc548f2dd18b1d0c7fbd483e3
079ecc335d39a8bbed2f561bd5a2951e4a7a67bb
refs/heads/master
2020-03-23T15:26:55.024702
2018-07-20T19:23:14
2018-07-20T19:23:14
141,748,975
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
"""Train_new URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "dbissa94@gmail.com" ]
dbissa94@gmail.com