repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
gmsardane/Gens_Python_Codes
16,106,127,374,353
631367a6706eb2b86549f62adf6c0d8fbb319973
9925fc7003da8282374cf31e689968b5a1e9ebd4
/dist.py
82861798db1ddbe53aa8692c017159f97b5e1664
[]
no_license
https://github.com/gmsardane/Gens_Python_Codes
8e88e9c69f692962e34d62b4a9f3ce4a8937934b
5c88dc054e0695469bf1224b74abc8d7f920c420
refs/heads/master
2021-06-29T16:47:30.335005
2016-09-12T03:55:16
2016-09-12T03:55:16
29,333,860
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__all__ = ["d2NdWdz"] import numpy as np import math #def d2NdWdz(data, p): ## Norm: # Nweak = p[1] * (1.0 + np.array(data[:,0]))**(p[3]) #as a function of z: Here p[1] = Nweak at z=0 ## Strong component # argstr = (1.0 + np.array(data[:,0]))**(-p[6]) / p[2] # #Nstr = (1.0-p[1]) (1.0 + np.array(data[:,0...
UTF-8
Python
false
false
1,440
py
16
dist.py
15
0.53125
0.4625
0
40
34.95
105
syurskyi/Python_Topics
18,150,531,806,524
de6b14c57c6bb5e86a8d2f188864c17901408bc2
e23a4f57ce5474d468258e5e63b9e23fb6011188
/120_design_patterns/003_factories/examples/abstract_factory/8-Abstract Factory Pattern/AbstractFactory/autos/ford/lincoln.py
008a2d42887135fae4ee314eae84c5c4bdd1093b
[]
no_license
https://github.com/syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
false
2023-02-16T03:08:10
2019-11-09T02:58:47
2022-11-03T01:22:28
2023-02-16T03:08:09
198,671
2
2
33
Python
false
false
from autos.abs_auto import AbsAuto class LincolnMKS(AbsAuto): def start(self): print('Lincoln MKS running smoothly.') def stop(self): print('Lincoln MKS shutting down.')
UTF-8
Python
false
false
195
py
15,362
lincoln.py
14,734
0.671795
0.671795
0
7
26.857143
46
TrendingTechnology/facerec-bias-bfw
11,759,620,496,092
487094171dd52567f6907671c9f14575a1ce604a
0d6e501171f47c1c45c3fb0f037bdf0159f2a344
/code/facebias/metrics.py
252b2590c1a478dd19ad560e57e924fc5a9f7753
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/TrendingTechnology/facerec-bias-bfw
ed618c330ef5b951fdcd580c6a729b96bbeb9167
66fd920c451bea18ca0bd592b851b51f7308ed6a
refs/heads/master
2023-05-31T00:07:55.883487
2021-06-15T02:46:56
2021-06-15T02:46:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from numpy import greater_equal from sklearn.metrics import ( accuracy_score, confusion_matrix, f1_score, precision_score, recall_score, roc_curve, ) # @author Joseph P. Robinson # @date 18 January 2020 class Metrics: """ Calculate pair-wise metrics. UPDATE: N...
UTF-8
Python
false
false
6,612
py
32
metrics.py
16
0.555656
0.55127
0
226
28.256637
83
reidarwood/trader-joes
11,836,929,902,108
11552d1789f0211105efe5f6dc800babdf724e87
36491be4945b9a99bc1708cfb3cd38380a62e573
/code/historic.py
c3ca55020fe3a0e7f4c8d960dbc72e9256b5696c
[]
no_license
https://github.com/reidarwood/trader-joes
5d6527d9abd74121ff0a7dcdcd386baca440dd77
03f3c242bd6ccd82f1672eea7faf2509028f07a1
refs/heads/main
2023-02-01T05:13:02.899497
2020-12-10T20:31:39
2020-12-10T20:31:39
312,739,824
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import tensorflow as tf class Historic(tf.keras.Model): def __init__(self): """ The Model class predicts future stock market prices given historic data """ super(Historic, self).__init__() self.learning_rate = 0.001 self.optimizer = tf.keras.optimi...
UTF-8
Python
false
false
2,417
py
433
historic.py
4
0.640877
0.617294
0
55
42.945455
166
HAR0070/Python-Assignment
661,424,999,649
4bd5e4d208db41f00914a55c7bb5567def667a94
859e7115ad360786156d5e7a2a5644e7c2c0face
/Assigning elements to different lists.py
c841553bf302f6e092e454ca5a4d7cbf32389883
[]
no_license
https://github.com/HAR0070/Python-Assignment
2885d955f637b1d962ef36254050fc6ab765ebcb
07e2b39f3974d469bf5d76a86437fa77e946f91f
refs/heads/master
2022-11-12T12:17:04.436562
2020-06-26T00:39:33
2020-06-26T00:39:33
271,654,806
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
if __name__=='__main__' : list = [1,2,3,4,4,5,5,6] print(list[2]) Name_list = ['file','edit','format','run'] print(Name_list[2]) List_list = [2,3,4] List_list.append(list) List_list.append(Name_list) List_list.extend(list) print(List_list)
UTF-8
Python
false
false
290
py
5
Assigning elements to different lists.py
3
0.527586
0.482759
0
12
22.166667
46
Junxieshiguan/python-0515
10,411,000,739,896
8fca3b01c080442a81619fdad1fa63a57b8bba16
c170929f60f9a90100ab6730944ec034f60b2201
/junxieshiguan/day01/print.py
dfec9f6cf2fa10383805c1294532ccf214f2053f
[]
no_license
https://github.com/Junxieshiguan/python-0515
22046210ab5c7573a2ad7b541e2d5f9b2ad963de
fd07ccbff640a846ce21ece6cc902909368ede95
refs/heads/master
2020-03-17T08:35:32.510419
2018-05-15T03:47:03
2018-05-15T03:47:03
133,443,952
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
hello_world.py print("Hellow python world")
UTF-8
Python
false
false
44
py
20
print.py
19
0.772727
0.772727
0
2
21
28
bbowles98/michiganseniors
12,412,455,489,957
9b7b411e60c2f98671c5741b1e9dd0774d3151fb
72fe0bbbef0e5d170abacc7d458115089ecdf0f5
/django_project/django_project/urls.py
0322b0c2e2542bcf5df411a28d12f657539233c4
[]
no_license
https://github.com/bbowles98/michiganseniors
4535b9f11771ea78fd18bf6f73066d938e949723
789df8102791f2c1a5d229b2378bb031f04d1da2
refs/heads/master
2022-12-11T05:56:34.235382
2019-12-10T15:18:33
2019-12-10T15:18:33
208,288,231
1
0
null
false
2022-05-25T02:39:23
2019-09-13T15:03:31
2019-12-10T15:18:47
2022-05-25T02:39:22
311,525
1
0
6
Makefile
false
false
"""django_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
UTF-8
Python
false
false
1,885
py
65
urls.py
43
0.698143
0.693369
0
45
40.888889
79
callhub/ivr-poll
14,989,435,871,050
4a317518a6701dc5b782f22f5eeacb9c0becf430
98d45c5858eedaae4d8a7ce952473f0a439c810d
/polls/models.py
7d9b021126bd1e9f9104e8f16d4dbc41aa1d1e77
[]
no_license
https://github.com/callhub/ivr-poll
d88e4fdf6f3dd40e8ba1392138357edb714aedb7
b25b209e545cfdfc7d066dcb4f0329f0ec3d866d
refs/heads/master
2018-03-20T05:49:35.963771
2016-09-03T13:51:36
2016-09-03T13:51:36
67,189,019
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import uuid from django.db import models from django.contrib.auth.models import User # Create your models here. class Poll(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) created_at = models.DateTimeField(auto_now_add=True) updated_...
UTF-8
Python
false
false
2,195
py
11
models.py
6
0.692027
0.682916
0
56
38.196429
79
Strongc/python_utils
12,670,153,549,781
5b427db86a2324219d0ee7eecd3083f3e08a52b2
1125b680b076f7bb5f4399eb02225c44d5259b95
/yuncode/match.py
f828b9b3a84cd1dfd03193832c85b53fb399ba4d
[]
no_license
https://github.com/Strongc/python_utils
4d6a402415951ff37faea66dcdb182650f3e700f
1ca5da5b901432da635660167a026493318d807a
refs/heads/master
2021-01-20T03:47:34.182060
2017-03-23T09:24:01
2017-03-23T09:24:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# conding = utf-8 import yunCode filepath = u'image/' filename = u'14713478019.png' def findCode(filename) code = yunCode.yunDamaFunction(filename) return code
UTF-8
Python
false
false
181
py
92
match.py
88
0.685083
0.618785
0
9
17.888889
44
jloehel/xii
9,818,295,284,604
fa8376b13ce332a68dacd8a722c4d195e8a2543e
2742aa8e1953df047c76cd2618f266115ceb940d
/src/xii/builtin/commands/stop/__init__.py
ea6666d87f9069d69ae533a174081080b976da51
[ "Apache-2.0" ]
permissive
https://github.com/jloehel/xii
ee9b511bf1c34e0fdd6d02d65b3f519878ee67aa
6941c08e3948262c8291c5e611932fed3915372b
refs/heads/master
2021-01-21T06:59:46.029775
2017-02-27T12:41:42
2017-02-27T12:52:18
83,302,324
1
0
null
true
2017-02-27T11:20:54
2017-02-27T11:20:54
2016-09-14T11:22:11
2017-02-27T07:39:39
588
0
0
0
null
null
null
from stop import StopCommand
UTF-8
Python
false
false
29
py
51
__init__.py
48
0.862069
0.862069
0
1
28
28
japeto/secure-file-storage-app
5,712,306,544,504
15e92c722c063256478d344222f29821680605a8
a7ecee7422ac104e33e0fef2d175d77c66ac2472
/api/file_manager/user/migrations/0005_alter_userhistory_login_time.py
7f920eb31a88fa08dcdf095bf670c1e3c0203701
[]
no_license
https://github.com/japeto/secure-file-storage-app
023e1f50c91b7e8c5ef19cc4c3c67955f3d53bd0
8d1059ad747993cd044e8f84bdb602a433923845
refs/heads/master
2023-05-06T05:39:19.441292
2021-05-29T09:16:11
2021-05-29T09:16:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2 on 2021-05-02 12:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0004_alter_userhistory_email'), ] operations = [ migrations.AlterField( model_name='userhistory', name='login_...
UTF-8
Python
false
false
403
py
40
0005_alter_userhistory_login_time.py
29
0.600496
0.555831
0
18
21.388889
58
MaryanneNjeri/pythonModules
16,965,120,851,983
e1d5dcea56db06f67e54ec24b529539834fc5e19
52b5773617a1b972a905de4d692540d26ff74926
/.history/coins_20200607122802.py
097d20449a97a09f723a624fad8bc63a16bae8e9
[]
no_license
https://github.com/MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def change(amount,coins):
UTF-8
Python
false
false
30
py
867
coins_20200607122802.py
867
0.666667
0.666667
0
1
25
25
paihengxu/Twitter-noisy-self-report
10,136,122,832,529
57d1a902ccb897ba15d1e3d504e43ea56d0ef34a
2067ef638eccf65c803256d3c90adef7e41ec419
/scripts/iama/iama.py
6edbd26d3f2624f676856ed1330a989f65f077e9
[]
no_license
https://github.com/paihengxu/Twitter-noisy-self-report
b828313382c2c8e3a3a4b227e633572098e2e34b
67fae81363be0d87a26fdcde8b6642af07885a08
refs/heads/master
2020-09-16T16:29:00.107427
2020-08-13T07:01:37
2020-08-13T07:01:37
223,829,548
0
0
null
false
2020-06-01T21:46:23
2019-11-25T00:10:59
2020-01-25T19:35:56
2020-06-01T21:46:22
4,148
0
0
0
Python
false
false
#!/usr/bin/env python # encoding: utf-8 import json, gzip, nltk, re, io, os import argparse import glob import time from nltk.tokenize import TweetTokenizer from collections import defaultdict QUERY = {'i am', 'i\'m', 'ima'} COLLECT_TAG = 'adj' OUTDIR = '/tmp/outdir/' RESULT_OUTDIR = '/result/outdir/' # nltk.download...
UTF-8
Python
false
false
9,792
py
15
iama.py
12
0.509702
0.500306
0
216
44.333333
137
ritalrw/TAF
2,259,152,817,273
77b4f2dc5e844921677971fea741a347857b1e09
7568d16711c583440f32a528dbdc91f715a6028b
/pytests/rebalance_new/rebalance_base.py
69f1656758cda69bd5c9a3d84e0c4432afffc787
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/ritalrw/TAF
f164e960bc0792e8ea4efe160880a08f357512c1
7c175b861564fcf5b7c427e6c514c2b737484085
refs/heads/master
2022-04-20T11:14:03.513369
2020-04-22T12:53:12
2020-04-22T16:44:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from Cb_constants import CbServer from basetestcase import BaseTestCase from bucket_utils.bucket_ready_functions import BucketUtils from couchbase_helper.document import View from couchbase_helper.documentgenerator import doc_generator from couchbase_helper.durability_helper import DurabilityHelper from me...
UTF-8
Python
false
false
28,389
py
24
rebalance_base.py
24
0.567227
0.563775
0
554
50.243682
109
LaMemeBete/TP-INFORMATIQUE
11,957,188,966,771
c343cc77cb0af392a6eed283d775059a228b2821
1027c297b91a90e2d2a4ba45ce5d842e3ac73acd
/tp-5.py
50adee5156c0b2c24adeff42088d50ae4baf049a
[]
no_license
https://github.com/LaMemeBete/TP-INFORMATIQUE
293c3ff8bb6ff26eb547895e8d943afc2ba7bff9
807fd941cc37a1933e89478995adcc26e7b63042
refs/heads/master
2021-01-17T18:43:41.686779
2016-11-25T14:46:51
2016-11-25T14:46:51
71,565,641
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def suppression_second(c, s): return s.replace(c, ''); def suppression(c, s): strSum = ''; for i in range(0,len(s)): if(s[i] != c): strSum += s[i]; return strSum; def suppression_debut(c, s): strSum = ''; booleanCheck = False; for i in range(0,len(s)): if(boolean...
UTF-8
Python
false
false
1,316
py
14
tp-5.py
12
0.473404
0.452888
0
57
22.087719
55
BurnFaithful/KW
10,943,576,704,413
4a2182952f4d2fbc83681387894820d10a709f29
914ca4921c114c917267214e0987ebecf30b3510
/Programming_Practice/Python/Base/Bigdata_day1007/PG13.py
977532c50a68599c25c6d3d5ae8aa92656173d54
[]
no_license
https://github.com/BurnFaithful/KW
52535030ea57f1489a0d108d599b66ffee50a1f4
15deb50449b8f902f623f20b97448c0f473a9342
refs/heads/master
2022-12-20T16:06:01.827398
2020-09-12T08:51:23
2020-09-12T08:51:23
294,897,186
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# BMI = 몸무게 / 키 * 키 height = int(input("키가 몇 cm입니까? ")) weight = int(input("몸무게가 몇 kg입니까? ")) height = height / 100 bmi = weight / (height * height) if bmi <= 18.5: print(f"당신의 BMI는 {bmi:.2f}로 저체중입니다.") elif bmi > 18.5 and bmi <= 22.9: print(f"당신의 BMI는 {bmi:.2f}로 정상입니다.") elif bmi >= 23.0 and bmi <= 24.9: ...
UTF-8
Python
false
false
640
py
521
PG13.py
322
0.58502
0.520243
0
17
28.117647
42
Upasna4/Training
10,831,907,530,794
14d3884e012d4ac7776e8edf36781bc17720b360
55965f592cb7e915cd68bd371ee1a6ad2a6e0247
/amit.py
5a3cabdd64be6b33d236149856b4726d10e06efb
[]
no_license
https://github.com/Upasna4/Training
2b5b57fc3e5229304860f153db93d912a44472bf
33c6eeb565c422e40ea88d50af787f58b9f0da6d
refs/heads/master
2020-08-05T03:50:36.280910
2019-10-02T16:36:09
2019-10-02T16:36:09
212,383,151
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mysql.connector import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import random con = mysql.connector.connect(host='localhost', user='root', password='amit', database='db_new1') obj = con.cursor() print("Hi welcome to the website") print("1. Login ") print("2. S...
UTF-8
Python
false
false
2,124
py
211
amit.py
140
0.607345
0.582863
0
61
33.836066
148
phpactor/phpactor
996,432,436,088
f70c9b8f86690d4c9c97c4e4bddbe4c5b2adb595
b625daaf38b69a9a4704e95e9f2d1260ec9e53ab
/doc/_ext/phpactor.py
f08c62950531bf18ad19a1971aee5370bbdcc835
[ "MIT" ]
permissive
https://github.com/phpactor/phpactor
cfa238ef2eaed57852d922668eca39d2b31eeed6
2f0909c94967fc711ccf43451974e8a51d084a13
refs/heads/master
2023-08-17T20:03:53.997351
2023-08-12T15:59:21
2023-08-12T15:59:21
43,064,439
1,090
147
MIT
false
2023-09-11T12:32:19
2015-09-24T12:07:36
2023-09-08T17:02:00
2023-09-11T12:32:19
8,484
1,041
113
198
PHP
false
false
from docutils import nodes from docutils.parsers.rst import Directive from docutils.parsers.rst import directives class GitHubRepoDirective(Directive): """Directive for Github Repositories.""" required_arguments = 1 optional_arguments = 0 final_argument_whitespace = False has_content = False ...
UTF-8
Python
false
false
1,078
py
2,070
phpactor.py
1,884
0.62987
0.621521
0
39
26.641026
102
elliotwoods/Rulr-2.0
4,647,154,620,212
1ae7e5250f3d3843d201c05ff212b952723f701c
f7e5ac230cb265989f6cb113b83db83463996976
/rulr/Utils/_Exports.py
914ee52098776694f05c1b726cb186354febedc4
[ "MIT" ]
permissive
https://github.com/elliotwoods/Rulr-2.0
0c0aa8146e58d448931dd6a6c10a0b536449b2fd
125503a8d58c4fcfbec9a32ca4a2cc7d9f3ec825
refs/heads/master
2022-12-11T12:35:12.678020
2020-08-25T13:18:19
2020-08-25T13:18:19
140,419,572
6
0
MIT
false
2022-06-21T21:43:20
2018-07-10T11:04:46
2020-08-26T17:02:44
2022-06-21T21:43:19
1,146
5
0
8
JavaScript
false
false
import sys import traceback import weakref import numpy as np BASIC_TYPES = [int, float, dict, list, str, bool] CUSTOM_EXPORTS = [np.ndarray] EXPORTABLE_PROPERTY_TYPES = BASIC_TYPES + CUSTOM_EXPORTS exported_objects = {} def format_exception(exception): # Get the traceback info exc_tb = sys.exc_info...
UTF-8
Python
false
false
4,670
py
85
_Exports.py
67
0.718415
0.717131
0
143
30.671329
134
FaisalWant/ObjectOrientedPython
5,772,436,058,123
5894c4d5a41e483c74e63a6a156a621e66b5ca7d
2ea3e35f00e8044b69d3fb5341394ad33eac62a7
/regex/OrConditional.py
b7736e8921d424372fb8c8cb3f9f6a7ebae0f195
[]
no_license
https://github.com/FaisalWant/ObjectOrientedPython
3a3f28ed038bfb8991fd21b3ac8ebe962a3abf93
ce38d92bf94fbeca577b4724363e5db6d857ab40
refs/heads/master
2023-02-05T03:14:54.926386
2019-07-08T09:15:15
2019-07-08T09:15:15
113,368,669
0
0
null
false
2023-01-25T23:32:31
2017-12-06T21:23:28
2019-07-08T09:28:40
2023-01-25T23:32:31
18,803
0
0
6
Python
false
false
#OrConditional.py import re randStr= "1. Dog 2. Cat 3.Turtle" regex= re.compile(r"\d\.\s(Dog|Cat)") matches=re.findall(regex, randStr) for i in matches: print(i)
UTF-8
Python
false
false
163
py
137
OrConditional.py
123
0.705521
0.687117
0
7
22.285714
37
nursix/drkcm
9,878,424,805,191
7bcc72e665024d6583d4abd7c7a2843f67a6cb58
7a3e9d88b21ef7e4b73d0632e08546d65a9df2ca
/modules/templates/locations/BA/config.py
c11b46230373b0dfd3ea6c66e68db240b057e5c3
[ "MIT" ]
permissive
https://github.com/nursix/drkcm
64eeb8ead30784d379d64a0ba2bc2c93bcafb8ca
7ec4b959d009daf26d5ca6ce91dd9c3c0bd978d6
refs/heads/master
2023-09-04T10:07:52.596460
2023-09-04T00:43:45
2023-09-04T00:43:45
97,222,001
3
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from gluon import current def config(settings): """ Template settings for Bosnia and Herzegovina - designed to be used in a Cascade with an application template """ #T = current.T # Pre-Populate settings.base.prepopulate.append("locations/BA") # Restrict to specific country/c...
UTF-8
Python
false
false
1,197
py
798
config.py
617
0.650794
0.63325
0
35
33.2
79
tiyd-python-2015-01/freeshelf
6,030,134,112,179
e46638f012bd953cfcc46566180343ea4438bd1f
3474e2251e4b8f00794c0407b10cf8f8e33b2efe
/freeshelf/__init__.py
8df93fefba23d61d4cb571c05860cab2b1236d56
[]
no_license
https://github.com/tiyd-python-2015-01/freeshelf
d97b1d80687fd50445e4c46326a8b68357e8409a
17082f0f1764521118b84fb86aaf538c57ae4fd4
refs/heads/master
2016-09-05T18:16:51.135820
2015-03-03T18:34:17
2015-03-03T18:34:17
31,000,557
1
4
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask.ext.wtf import CsrfProtect from .extensions import ( db, migrate, debug_toolbar, bcrypt, login_manager, config, ) from . import models from .views.users import users from .views.books import books from .views.api import api SQLALCHEMY_DATABASE_URI = "postgr...
UTF-8
Python
false
false
863
py
29
__init__.py
18
0.69409
0.692932
0
42
19.571429
58
martinsbalodis/scrapy-couchdb
9,405,978,413,502
be3403da09435c5c58e8f6f86a71702f01841eae
1acf4d1753b15f4ed995c010a426ec284c4fc7c0
/scrapycouchdb.py
878bc9a362a1f20aaa220ea362faab86b24657f4
[ "Apache-2.0" ]
permissive
https://github.com/martinsbalodis/scrapy-couchdb
6efee369a13a49b89a0cb3dbd456c2c851f3b47d
d4f7ead1fa8ba6aa2f5323f5fa1215ec5ef34f7f
refs/heads/master
2021-01-17T22:17:00.495344
2012-12-19T20:12:52
2012-12-19T20:12:52
7,041,749
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import couchdb from scrapy.conf import settings from scrapy import log import datetime from w3lib.http import headers_dict_to_raw, headers_raw_to_dict from scrapy.http import Headers from scrapy.responsetypes import responsetypes from urlparse import urlparse class CouchDBPipeline(object): def __init__(self): ...
UTF-8
Python
false
false
3,688
py
3
scrapycouchdb.py
2
0.569414
0.568872
0
102
35.166667
78
GlenMue/polar_curve_scetching_turtle.py
2,379,411,908,688
c3320f3b21dc0fa455c8acd217d41cce9816d0bd
95b17a60616a31a7db59b59f153c7eedf93fb387
/polar_curve_scetching_turtle.py
558a44276dffb86d4c98a7e5bc5097d08d042b02
[]
no_license
https://github.com/GlenMue/polar_curve_scetching_turtle.py
13288a5832a5b5d48a9270ca21ae519fe1dbca4a
c2dda65696eb55e387020dc39f307c1784e50836
refs/heads/main
2023-08-19T12:33:19.520907
2021-10-18T18:47:39
2021-10-18T18:47:39
418,626,981
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from turtle import* from math import * import matplotlib.pyplot as plt ø = 0 speed(0) hideturtle() ex = [] why = [] while ø <= 360: ç = radians(ø) const = ç-radians(360) if ø <= 360: r = (sqrt(2))+(2*sin(ç)) if ø == 0: penup() x = r*cos(ç) y = r*sin(ç)...
UTF-8
Python
false
false
1,439
py
1
polar_curve_scetching_turtle.py
1
0.408351
0.353149
0
66
20.409091
42
kalolad1/cosmos
6,794,638,288,000
b95c624134ab81053e8436abf3d46aac6595a30f
0f13dfcb2484228d4e0d5bfe12f3cfe1f1f51cc6
/main/migrations/0023_providerprofile.py
419516a997e6bea3b98eadaa540f644d79aa403a
[]
no_license
https://github.com/kalolad1/cosmos
e00462b6f98aa06ebbfb7818c6f0e6340cc6fed0
b6d757895132b9b3c8c6682c11efadf993d5905b
refs/heads/master
2023-04-05T16:30:43.414232
2021-03-30T15:01:21
2021-03-30T15:01:21
266,000,890
0
0
null
false
2021-03-20T00:10:11
2020-05-22T02:35:27
2020-12-14T16:17:45
2021-03-20T00:10:11
4,663
1
0
5
TypeScript
false
false
# Generated by Django 3.0.6 on 2020-07-05 22:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('main', '0022_auto_20200703_1828'), ] operations = [ ...
UTF-8
Python
false
false
1,063
py
148
0023_providerprofile.py
90
0.619003
0.584196
0
27
38.37037
154
guimedeiros1/adapt_recommender
6,751,688,624,565
c2eb5557664d0ebfabf00f36edde680e7b468f98
a93bf5489fd98ab84921a04ca8b493db65fcafa3
/venv/lib/python3.6/abc.py
9fffc289a0b335cd5d313ee953de7c64b3573538
[]
no_license
https://github.com/guimedeiros1/adapt_recommender
702bb2e80966bb14066765179d76afb63b07941f
c57a9df4abae66d77b8316f39e8ff5ee837a511d
refs/heads/master
2021-03-27T20:53:59.239760
2018-01-05T13:39:55
2018-01-05T13:39:55
102,633,258
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/home/guilherme/anaconda3/lib/python3.6/abc.py
UTF-8
Python
false
false
46
py
81
abc.py
57
0.826087
0.76087
0
1
46
46
daniel-reich/ubiquitous-fiesta
13,048,110,677,633
84412d85468e8ac801419667b2a448714ee43a3d
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/J9fCHDa3yYJWnK3A7_18.py
e889484c3fe4ba38fddec6e16f8efd2c806a7f3f
[]
no_license
https://github.com/daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def is_happy(n): return True if s(n) == 1 else False if s(n) == 4 else is_happy(s(n)) def s(n): return sum([int(x)**2 for x in str(n)])
UTF-8
Python
false
false
142
py
38,088
J9fCHDa3yYJWnK3A7_18.py
38,088
0.577465
0.556338
0
4
34
70
Dmitri-2/BCPNN-Sim-Python
21,209
7506db452863783961542dbf0dfde5fd1c962b5c
e272b512e8ff6fd4733534b9ad8d083205f9b6b8
/Neuron.py
a6a175c7add4f7b699cdd712549ce3cbebb3004f
[]
no_license
https://github.com/Dmitri-2/BCPNN-Sim-Python
ebc7cf999119b53d3229b8c2f3f471753ef45266
0ca025910daae20fadfd66e33e863c527adb8c64
refs/heads/master
2023-01-14T22:37:04.369070
2020-11-16T17:58:18
2020-11-16T17:58:18
273,996,611
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import numpy as np import math import random import sys class Neuron: ## Only takes the number of inputs it should expect def __init__(self, numOfInputs, initialProbability): self.value = 0 # e.g "activity" self.bias = 0 self.probability = initialProbability ...
UTF-8
Python
false
false
8,801
py
8
Neuron.py
6
0.600614
0.578343
0
248
34.479839
141
ChrisThor/Gate-To-Gods
326,417,544,871
d02d2003b54fad35e1ea8e05f1fe0ccf6f2f0c88
82f4a0f00ad629eef5bb6a736ee4e63983a33914
/readchar/readchar_windows.py
8637a2efd65fa086df88312ed1d613cf01dae1c2
[]
no_license
https://github.com/ChrisThor/Gate-To-Gods
0df5efee2f22427b2b5e089efdec3b44c4137bde
c66e09b38475831673dcd40bc51878b7fd4b43d2
refs/heads/master
2020-09-07T16:12:54.382595
2019-12-18T13:18:50
2019-12-18T13:18:50
220,838,620
0
0
null
false
2019-12-03T17:10:11
2019-11-10T19:21:26
2019-12-03T14:10:50
2019-12-03T17:10:10
109
1
0
4
Python
false
false
# -*- coding: utf-8 -*- # Initially taken from: # http://code.activestate.com/recipes/134892/#c9 # Thanks to Stephen Chappell # Licenced under MIT-Licence: """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 th...
UTF-8
Python
false
false
1,787
py
34
readchar_windows.py
29
0.72244
0.70901
0.002238
47
37.021277
118
jbsam2/algo_problem
2,619,930,071,745
9dc0f22f00c95cca8ab6c5df161d0eed636d42ad
cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5
/kakao/2018/kakao2018_5.py
5e72f610892dc2e33c1d050a008fa921d6f74bbd
[]
no_license
https://github.com/jbsam2/algo_problem
141c17003e88a69afdeea93a723e7f27c4626fdc
18f2cab5a9af2dec57b7fd6f8218badd7de822e4
refs/heads/master
2023-05-18T10:03:00.408300
2021-06-02T10:36:50
2021-06-02T10:36:50
282,104,637
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def solution(str1, str2): a=b=0;c=[0]*676;d=[0]*676 for i in range(len(str1)-1): if str1[i].isalpha() and str1[i+1].isalpha(): c[((ord(str1[i])&31)-1)*26+(ord(str1[i+1])&31)-1]+=1 for i in range(len(str2)-1): if str2[i].isalpha() and str2[i+1].isalpha(): d[((ord(str2[...
UTF-8
Python
false
false
457
py
592
kakao2018_5.py
587
0.522976
0.396061
0
10
44.8
64
rlworkgroup/garage
455,266,540,773
606a0177b559425a3d1e9aba0cd60553645831ac
6181fcd4a266d963a0ee85971768c97922ca77cd
/src/garage/examples/tf/te_ppo_point.py
5afd0f63528bb69172b84de31371a2d0106d0ff8
[ "MIT" ]
permissive
https://github.com/rlworkgroup/garage
5d215bbecb3a4e74b504988d6684a7b04df69a80
2d594803636e341660cab0e81343abbe9a325353
refs/heads/master
2023-08-21T22:58:49.338034
2023-01-04T06:06:27
2023-01-04T06:06:27
136,846,372
1,832
363
MIT
false
2023-09-11T11:36:40
2018-06-10T21:31:23
2023-09-10T08:30:15
2023-05-04T14:44:22
60,358
1,729
296
232
Python
false
false
#!/usr/bin/env python3 """This is an example to train Task Embedding PPO with PointEnv.""" # pylint: disable=no-value-for-parameter import click import numpy as np import tensorflow as tf from garage import wrap_experiment from garage.envs import PointEnv from garage.envs.multi_env_wrapper import MultiEnvWrapper, roun...
UTF-8
Python
false
false
5,728
py
506
te_ppo_point.py
437
0.566515
0.55412
0
174
31.91954
79
abdhk383/bitbonn
5,128,190,989,781
cf1c67df861d630332c6656ef8cafad3bb19573d
7496428cdc7a0e51c5720ca449987995ae7b64b7
/MyCode/features/colorsift.py
06360167fd263d9202128e5f873f15fa2c30e58e
[]
no_license
https://github.com/abdhk383/bitbonn
11155c9184e4266abeefb8dcf62662e69b3ecf39
82201c53f0d51b3f7988d2ef23a990b6abe471b6
refs/heads/master
2016-05-26T02:17:11.680546
2012-12-21T16:13:43
2012-12-21T16:13:43
3,581,614
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 import tempfile,os from MyCode.features import DescriptorIO from MyCode.utils.spatial import * import scipy def get_colorsift(im_arr,pSize=None,steps=6): binary_software = '/home/eweiwi/bin/colorDescriptor' #import ipdb; ipdb.set_trace() tmp_im = 'tmp_im.jpg' cv2.imwrite(tmp...
UTF-8
Python
false
false
1,890
py
102
colorsift.py
85
0.660847
0.639153
0
54
34
167
Axaxa1/2048
1,047,972,046,941
bff263fc32685305829b695ae48eb87e1e26ed61
f22696356c32a570a2e590b965d15268567c83ad
/mon_module/mon_module/pool.py
35c9ec80c8a8d0fb5db5f89078699d1b2123cdc7
[ "MIT" ]
permissive
https://github.com/Axaxa1/2048
19aea8b2b0113eb28ca088024473f2b2364dc565
b4a6dd1c4262ad99389abb79de13f217574ef370
refs/heads/master
2020-09-03T15:15:51.089249
2019-11-12T21:29:59
2019-11-12T21:29:59
219,495,556
0
1
null
false
2019-11-12T21:30:01
2019-11-04T12:23:16
2019-11-12T20:53:14
2019-11-12T21:30:00
58
0
1
0
Python
false
false
import random from Game import * from Ai import * from multiprocessing import Pool from statistics import mean def monteCarloPoolMove(jeu,nsim,pool): #pool sur les parties random averages = [0,0,0,0] test = game() for firstMove in range(4): test.copyGame(jeu) if not(test.g...
UTF-8
Python
false
false
1,154
py
25
pool.py
21
0.512132
0.493934
0
50
21.08
47
mutiangua/EIS2020
1,872,605,759,400
af3e3c67b4a4f3d14f40e81b59f309f3d7e17364
14b5679d88afa782dc5d6b35878ab043089a060a
/students/LiRuomeng/6.5/PUB1.py
a00187e4b90bc52107fefd4154d3e14688efa77a
[]
no_license
https://github.com/mutiangua/EIS2020
c541ef32623f67f9277945cd39cff3c02f06e4dd
92aa2711b763a2c93be238825c445bf2db8da391
refs/heads/master
2022-11-18T05:21:47.567342
2020-07-11T10:11:21
2020-07-11T10:11:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from MXMqtt import MXMqtt MQTTHOST = "mqtt.16302.com" MQTTPORT = 1883 mqtt = MXMqtt(MQTTHOST,MQTTPORT) mqtt.SUB("lrm1") mqtt.SUB("zkx") mqtt.SUB("oys1552") mqtt.SUB("gch") mqtt.SUB("wzy") mqtt.SUB("mooc12345") while True: msg = mqtt.returnMsg() if msg != None: print(msg)
UTF-8
Python
false
false
316
py
967
PUB1.py
466
0.610759
0.550633
0
17
16.352941
32
mbreyes/spikelearn
249,108,119,464
88cf8b4a33ccbc4150a1f9bb76c185147c53539d
1d09d529180daaa7167509ee1a5b3087c8e9875a
/spikelearn/models/shuffle_decoding.py
d665702901c281bb1f99ee98d1737daaf3b194d3
[ "MIT" ]
permissive
https://github.com/mbreyes/spikelearn
de43d85a101dde11553d8cd760262aa97b16fc8a
060206558cc37c31493f1c9f01412d90375403cb
refs/heads/master
2022-03-14T20:15:49.284035
2019-11-18T19:07:18
2019-11-18T19:07:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import GroupShuffleSplit, cross_val_predict, GroupKFold from sklearn.base import clone, TransformerMixin from sklearn.preprocessing import MinMaxScaler, StandardScaler, RobustScaler from sklearn.pipeline import Pipeline from sklearn.metrics import conf...
UTF-8
Python
false
false
22,446
py
129
shuffle_decoding.py
70
0.550343
0.547492
0
633
34.459716
117
PhysicsOfMobility/ridesharing_topology_dependence
18,743,237,292,516
030b3d1b4ceb0341f1ab9597689021a2e024423e
67c0b3b04b0929a5f6f36b90707a28d35a67cbf3
/toysimulations/test_simulator.py
84d823b8541e4d3506284b2b4ae98b5f6773c280
[ "BSD-3-Clause" ]
permissive
https://github.com/PhysicsOfMobility/ridesharing_topology_dependence
2c93b322a69d0dbe056216d578892c45fcc82720
43e78ecd2a23bbe9bcdfc5fe86547dd4662d56d5
refs/heads/master
2022-07-28T18:02:20.673591
2021-08-23T20:35:52
2021-10-12T09:18:09
235,116,234
1
2
BSD-3-Clause
false
2022-06-22T00:51:35
2020-01-20T14:10:02
2022-06-10T09:14:04
2022-06-22T00:51:34
2,839
0
0
3
Jupyter Notebook
false
false
import unittest import networkx as nx from toysimulations import ZeroDetourBus, Stop, Request class TestZeroDetourBus(unittest.TestCase): def setUp(self): G = nx.cycle_graph(10) self.bus = ZeroDetourBus(G, req_gen=None, initpos=0) def test_interpolation(self): ground_truths = [#curtim...
UTF-8
Python
false
false
5,559
py
20
test_simulator.py
9
0.487498
0.455298
0
135
40.185185
90
vhsw/CodeMasters_Tourney
7,275,674,600,794
cedd4566df1dd7e40af2ec8d0642d3382294b4bf
9a43d3cc69dc218436d1184e8cab3a4918a72c20
/Python 3/candies.py
22230855eda2aa5d45d938399fc464a7ffe9e1f6
[]
no_license
https://github.com/vhsw/CodeMasters_Tourney
aa584b2fe9b3c1aab939db6fcc811d9e0970e7be
3c1207e2b76d91cd1eb743a16dd967794a59b60a
refs/heads/master
2020-03-17T17:34:45.904107
2018-05-23T09:29:29
2018-05-23T09:29:29
133,793,828
0
0
null
false
2018-05-22T11:58:19
2018-05-17T09:53:58
2018-05-22T11:53:02
2018-05-22T11:58:19
56
0
0
0
Python
false
null
# n children have got m pieces of candy. # They want to eat as much candy as they can, # but each child must eat exactly the same amount of candy as any other child. # Determine how many pieces of candy will be eaten by all the children together. # Individual pieces of candy cannot be split. def candies(n, m) : ret...
UTF-8
Python
false
false
336
py
130
candies.py
130
0.729167
0.729167
0
9
36.333333
80
vinissimus/opencoverage
18,038,862,643,366
7fedd02ca2b5e9af3ee2b971b8b89390d349e9a7
660f6959397989922bd63ceecde45c0e049a0972
/tests/utils.py
79aa3182d1c90db628017812e0cff004f4da8f03
[ "MIT" ]
permissive
https://github.com/vinissimus/opencoverage
32d681da899b0ad6b9b6d1b048174d4a5706a73f
38f7ecda318135925f45dbad7465c5fae84ed54d
refs/heads/master
2023-02-20T03:47:26.170714
2021-01-22T11:43:40
2021-01-22T11:43:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from opencoverage.parser import parse_raw_coverage_data _data_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data") def read_data(name): with open(os.path.join(_data_dir, name), "rb") as fi: return fi.read() async def add_coverage(db, organization, repo, branch, commit, cov...
UTF-8
Python
false
false
554
py
11
utils.py
7
0.66065
0.66065
0
21
25.380952
77
jflondonog/ProyectoIntegrador1
9,277,129,366,200
004eebf40b533cfb6550c06d2ad07c2834aed740
31f4acb23698834e0cbbb397aaabb90d3b60e080
/EverGreen.py
8fe93c2e331d7dfc527a8ae689e907f7710a443c
[]
no_license
https://github.com/jflondonog/ProyectoIntegrador1
371bf9a40af05da6ffc32a859882240832b4161f
29f1fd4430c814b12ec39a7d28533eab442bc503
refs/heads/master
2020-07-08T12:00:23.775515
2019-08-22T00:00:13
2019-08-22T00:00:13
203,666,590
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, jsonify, request from flask_cors import CORS from datetime import datetime import statistics as stats app = Flask(__name__) CORS(app) tipo_medicion = { 'sensor' : 'DS18B20', 'variable' : 'Temperatura', 'unidades' : 'Centigrados'} mediciones = [ {'fecha' : '2019-08-20 15:38:43'...
UTF-8
Python
false
false
2,471
py
2
EverGreen.py
1
0.571429
0.488871
0
79
29.227848
95
alexp25/wdn-model-experiments
11,269,994,211,226
bd8aaa4b8b4423dfeb728b4e35fbadbef2a024f8
0cf5412f69633a98d0e7b93fa58ea5a86b050c85
/eval_results_cross_check.py
6b16604836cb2e90e2088051e48acfc3577751d5
[]
no_license
https://github.com/alexp25/wdn-model-experiments
ec46bae7e88e4c658116d1fde6a6a4ffd904a516
26031c10561743bd0dfd019f6c3aa9c9673c1621
refs/heads/master
2023-04-13T08:37:13.954049
2020-07-01T17:12:46
2020-07-01T17:12:46
248,577,407
0
0
null
false
2023-03-25T00:06:02
2020-03-19T18:33:33
2020-07-01T17:13:01
2023-03-25T00:05:58
121,900
0
0
1
Python
false
false
from modules import graph from modules.graph import Timeseries, CMapMatrixElement import numpy as np from os import listdir from os.path import isfile, join import json from typing import List import yaml # import copy with open("config.yml", "r") as f: config = yaml.load(f) elements: List[CMapMatrixElement] ...
UTF-8
Python
false
false
1,999
py
116
eval_results_cross_check.py
28
0.605803
0.582791
0
96
19.822917
114
SummerZm/LeafxuTool
17,892,833,761,272
441843cb0cb9ad899126c94db30670858d45567c
4adab20021c687380f89f125d40f2469c93d4b7b
/Python/Excel/read.py
4fe03f5e2af518132ff3ece6b10d2678b1044390
[]
no_license
https://github.com/SummerZm/LeafxuTool
9d8009a93578e713074946b1dd073272cc021f08
f162da13ef1666b2d1b74291ab36bb0c20a2da88
refs/heads/master
2021-11-23T05:38:41.016030
2021-11-12T09:33:13
2021-11-12T09:33:13
221,664,883
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import xdrlib ,sys import xlrd #打开excel文件 def open_excel(file= 'test.xlsx'): data = xlrd.open_workbook(file) return data #根据名称获取Excel表格中的数据 参数:file:Excel文件路径 colnameindex:表头列名所在行的索引 ,by_name:Sheet1名称 def excel_table_byname(file='C:/Users/LB/Desktop/Python/test.xlsx', co...
UTF-8
Python
false
false
1,229
py
38
read.py
5
0.614018
0.610069
0
36
26.194444
103
PhonieZ/coding_things
7,241,314,898,845
f16b3cce9a188a1628b6111a7dc647976f2d7b3b
cfd4fbc65f63ca209ebd969c6c502fbc6643d8b2
/Year 9 Computing Code/Spring Exam Things/roll thing.py
e78612bb45477c1fa583e8d7230f5d4f4fe7c87b
[ "MIT" ]
permissive
https://github.com/PhonieZ/coding_things
e03f5dff307365a617fa6041e12e455309d1f644
38e2148a2f607c7793efaa609731d1c066f0be00
refs/heads/main
2023-06-12T17:22:44.617329
2022-08-03T09:54:31
2022-08-03T09:54:31
383,204,236
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random roll_total=1 roll=random.randint(1,6) while roll != 6: print("You rolled a "+str(roll)) roll_total = roll_total+1 roll = random.randint(1,6) if roll_total==1: print("It took you "+str(roll_total)+" roll until you rolled a 6") else: print("It took you "+str(roll_total)+" rolls until you...
UTF-8
Python
false
false
334
py
96
roll thing.py
77
0.658683
0.628743
0
11
29.363636
71
mehdibenamorr/entitykb
13,546,326,889,070
61cc2057cf48edd59512276583223a69614648cb
f3248eb4020f60590443778df0c2148cad730445
/src/entitykb/contrib/email/__init__.py
bb8bdb2dbf47c82d322b8e12098b3f420fdab407
[ "MIT" ]
permissive
https://github.com/mehdibenamorr/entitykb
1b380a94df333253fd9e19653fe1d4f3f9400d1e
61cf346a24f52fd8c1edea8827a816284ed6ecaf
refs/heads/master
2023-06-28T02:31:40.074794
2021-07-28T14:35:54
2021-07-28T14:35:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .model import Email from .resolvers import EmailResolver __all__ = ("Email", "EmailResolver")
UTF-8
Python
false
false
100
py
153
__init__.py
112
0.73
0.73
0
4
24
36
SarthakU/DailyProgrammer
18,932,215,847,912
7f6551bd52ea6b3c016843d5a6dc67955554f468
dff48edafc9562dee11691d7e6c89179c480be54
/Python/Daily044_difficult/PrimeNumberThingy.py
0d37670e9bb6bb938f98f8b908400dd3f59c6810
[]
no_license
https://github.com/SarthakU/DailyProgrammer
62feb30d3df9ef9e6ca333dda1ccff8794c6e48d
00e655ef5621f0bce5ebd9de129b1983824271e1
refs/heads/master
2023-08-18T21:31:45.147102
2023-08-17T21:00:00
2023-08-17T21:00:00
25,544,739
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
## PRIME NUMBER THINGY ## ## challenge #44 (difficult) ## http://www.reddit.com/r/dailyprogrammer/comments/srp5q/4252012_challenge_44_difficult/ ## ## ## sarthak7u@gmail.com ## from sys import argv lower_limit = int(argv[1]);upper_limit = int(argv[2]) + lower_limit prime_list = [] prime_sum = 0 count = 0 for i in xran...
UTF-8
Python
false
false
860
py
155
PrimeNumberThingy.py
87
0.572093
0.533721
0
33
25.060606
90
dr-dos-ok/Code_Jam_Webscraper
317,827,589,133
8a7593fbb595651a5f165899d0774c66826ec7e5
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_156/868.py
5a482ed92b9707937e84ab5069efd79872cd3e9a
[]
no_license
https://github.com/dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from math import floor, ceil MAX_POSSIBLE_PANCAKES = 1000 pancake_holder = [0 for i in range(MAX_POSSIBLE_PANCAKES+1)] class Diner: __slots__ = ["eaters", "max_pancake"] def __init__(self, num_eaters, eaters): self.eaters = pancake_holder[:] self.max_pancake = 0 for plate in...
UTF-8
Python
false
false
2,463
py
60,747
868.py
60,742
0.507105
0.494113
0
84
28.321429
68
fyxcc/seleniumPython
13,134,010,028,511
0bcfe6ca5e53cca0f0e8e141d382420783b7c028
073692946ee7f532f5d5e5162a0550cbb60810b5
/case/login_ddt_case.py
0b7008af21f57b9b26921772409787da0061b31c
[]
no_license
https://github.com/fyxcc/seleniumPython
9dba3a6a02b2121a580be28ad6a382aba5150839
57e20f98d6d8faf595b8eeb105b3b355b9dba7bb
refs/heads/master
2021-05-18T11:37:30.192541
2020-07-03T03:10:56
2020-07-03T03:10:56
251,228,930
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import sys sys.path.append('D:/pythonWork/autoTest') import ddt import unittest import time import os import HTMLTestRunner from selenium import webdriver from business.login_business import LoginBusiness from util.excel_util import ExcelUtil # 获取数据 ex = ExcelUtil(excel_path=r"D:\pythonWork\autoTest\d...
UTF-8
Python
false
false
3,113
py
51
login_ddt_case.py
48
0.624672
0.620547
0
88
29.306818
99
jdad24/Computer-Vision---Hand-Tracking
9,887,014,747,482
fa86833253a0dce92986596115b39caa8688289c
dbe8f2f550c3cdf29e1446de33f21c1742023258
/handdetector.py
cfa052ec6c1f64f7dc6c470ed76b2b8a97e4bd71
[]
no_license
https://github.com/jdad24/Computer-Vision---Hand-Tracking
84fbdc3b53b5f1255f59a11617ec3b3146be0b3b
4b549b15c2f6cb3fa878912572c6bcad1cfd6c68
refs/heads/master
2020-06-18T23:59:28.945436
2019-07-12T02:56:41
2019-07-12T02:56:41
196,498,254
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Import OpenCV import cv2 # Will perform hand detection class HandDetector: def __init__(self, handCascadePath): # Loading the hand detector classifier into memory self.handCascade = cv2.CascadeClassifier(handCascadePath) def detect(self, image, scaleFactor = 1.1, minNeighbors = 5, minSize = (30, 30)): # D...
UTF-8
Python
false
false
557
py
3
handdetector.py
2
0.748654
0.7307
0
18
30
82
wj2016/py3
5,909,875,009,908
6d01aa57b658a90aebe797a582845dbb5267bc79
1901457fdd8eeb8ec99eb0d0a90977d684cb46f4
/NetworkProgramming/simple_tcp_client.py
4b49d9957f3978bed688fecda09574fcdea66a8f
[]
no_license
https://github.com/wj2016/py3
6730ab7d9e6d72dbd4d698c500d4320e779698ea
f4cd6aeb98560d797ad4b19ad2a508812f7d20cf
refs/heads/master
2018-02-07T14:20:40.143725
2017-09-07T19:16:27
2017-09-07T19:16:27
95,907,659
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import socket def run_simple_tcp_client(): try: mysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) addr = ("127.0.0.1", 5050) mysocket.connect(addr) mysocket.sendall(b"Hello, simple TCP client\r\n") except ConnectionRefusedError: print("Can not connect to serve...
UTF-8
Python
false
false
599
py
94
simple_tcp_client.py
82
0.614357
0.597663
0
20
29
68
ozcnsimge/physiological-multi-emorec
6,047,313,982,388
91274e42c3b6c9168207684c562044536df8110f
1392f314b3609ed27af3e2a8f0afe97d217b1b3f
/classifier/fcn.py
aa49de7f6a550f055a78d728e3f7d3160e2352f7
[]
no_license
https://github.com/ozcnsimge/physiological-multi-emorec
3683ab406d2a190d2ef7ea94b8e0b7606712c6b5
7a115442adeeb4bcc9a188a77cb672e9f8330b9c
refs/heads/master
2023-08-11T09:26:56.455925
2021-09-11T12:45:52
2021-09-11T12:45:52
403,412,302
8
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import keras from classifier.classifier import get_multipliers, Classifier, focal_loss class ClassifierFcn(Classifier): def build_model(self, input_shapes, nb_classes, hyperparameters): input_layers = [] channel_outputs = [] drop_rate = .25 l2_lambda = .001 filters_multip...
UTF-8
Python
false
false
2,789
py
31
fcn.py
27
0.629258
0.609179
0
57
47.929825
120
Epic1121/Comp-Sci-Coursework
12,309,376,292,638
2d89586647c9a3cf6aff18bcc71a9927bbde8be4
82acee8bad192bc47b528270ee65c7b862ee30e3
/CPCW Flask/flaskr/blog.py
9ebf59194f425fe3a747b68972fb9e6b34991b77
[]
no_license
https://github.com/Epic1121/Comp-Sci-Coursework
5410852b43a7864cd890aa538a88f1dabcc81c93
61f9a230c4851a6f6e4ea03e4abf082e7b45a624
refs/heads/master
2023-04-28T18:33:31.624287
2021-05-21T10:55:17
2021-05-21T10:55:17
348,408,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for ) from werkzeug.exceptions import abort from flaskr.auth import login_required from flaskr.db import get_db from flaskr import model bp = Blueprint('blog', __name__) @bp.route('/') def index(): """ finds all posts, and ...
UTF-8
Python
false
false
3,351
py
4
blog.py
2
0.561325
0.559236
0
135
23.822222
107
AdilAdilovich/work-with-strings
25,769,834,748
5ce0792ae62aeded7dec554b0068d2f7e1c4a214
c76ed30aa19b9bce9d2b6c0da07e2dec8f47b2ce
/Main.py
1cac7feb73370b1a880244333731b074cabb1e53
[]
no_license
https://github.com/AdilAdilovich/work-with-strings
81355366213d8b5ea32e81ef9acf24a57863f9b7
c849265d97b0f5bff67e310dd47b96cc3c9d1161
refs/heads/master
2020-11-27T20:06:47.485607
2019-12-22T15:10:05
2019-12-22T15:10:05
229,586,206
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import re import sys from PyQt5 import QtGui from PyQt5.QtWidgets import * from PyQt5.uic import loadUi class Main(QDialog): def __init__(self): super(Main, self).__init__() loadUi('uis/main.ui', self) self.setWindowTitle('Работа со строками в Pytho...
UTF-8
Python
false
false
2,050
py
3
Main.py
1
0.508964
0.498506
0
67
28.970149
121
tezmen/yametrika-api
9,440,338,140,430
19d93e51abe72c4add63f0aa6fe8cb71c3ea34b5
e2a39876afefa50275642a52409bb0135f3ccaad
/yametrikapy/tests/test_yametrikapy.py
d614e96a200e78a354266b40a2499e7a31579fc6
[ "MIT" ]
permissive
https://github.com/tezmen/yametrika-api
845895c771c683cbe43f5d0a2281d99a52253886
d6537ee3246a9e2c6f43cff1c6710c616595fcf5
refs/heads/master
2020-04-13T08:29:46.164975
2019-10-25T22:54:36
2019-10-25T22:54:36
163,082,586
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import unittest import time from io import StringIO from os.path import basename from yametrikapy import Metrika try: from . import secret_settings except ImportError: class secret_settings: MAIN_USER_LOGIN = '' MAIN_CLIENT_ID = '' MAIN_CLIENT_SECRET = '' MAIN...
UTF-8
Python
false
false
15,928
py
6
test_yametrikapy.py
4
0.664716
0.639985
0
376
41.263298
147
patcoronel/praise
4,303,557,278,318
7c7d789281908e5f745b52d75fbc8ee4ed8829db
fb5d4164474309b43c9099fa14d524f67db37572
/praise/lyrics/migrations/0003_auto_20150623_0857.py
140908314730c2c95c9d0501c14d22e4f4bbe16a
[]
no_license
https://github.com/patcoronel/praise
0e52bbae651a6caacf489c923aa7f308c491b8ab
404ca098a01dcb522d6b91e35a90a175b7f24436
refs/heads/master
2018-01-07T15:38:00.873632
2015-07-11T07:17:13
2015-07-11T07:17:13
37,776,223
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.postgres.fields class Migration(migrations.Migration): dependencies = [ ('lyrics', '0002_auto_20150623_0741'), ] operations = [ migrations.AlterField( ...
UTF-8
Python
false
false
713
py
15
0003_auto_20150623_0857.py
10
0.614306
0.587658
0
25
27.52
138
jacob414/flexirest
14,834,817,074,486
1f816b044fb4c601b2a462109b235ac59f72d2c5
6872ab0d2636bde1af1eff36d80c913d20db67d9
/flexirest/main.py
d6c471febe6c43874cfba11a8a3151fffd44c278
[]
no_license
https://github.com/jacob414/flexirest
1b9b3233041b6b56772485c0bd1812f4cb44f948
211934a99286cc0465d7692e934b745a373bc124
refs/heads/master
2022-02-22T05:51:28.672246
2019-10-25T13:51:43
2019-10-25T13:51:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import with_statement import os import sys import optparse import imp import errno import platform from functools import partial import flexirest from flexirest.cli import (dispatch, DefaultAction, ShowVersion, SilentExit, UnknownSubcommand) from flexirest.io import Buffer...
UTF-8
Python
false
false
6,064
py
29
main.py
22
0.585422
0.582619
0
208
28.153846
80
david-sherman/statelegislators
14,018,773,302,456
40f086eba4d035bb24e9c1b1461e3a555d98933a
add3bd52c2114f8efd259e50ca4f2d21e02e31d5
/statelegislators.py
8b4a379019fd436d11fc2f8411b98108ac0e8f8c
[ "MIT" ]
permissive
https://github.com/david-sherman/statelegislators
cf6b46e498b4d3e6b65514afb2226f7441d9953b
f77e83503bf64dfa6c65d21d93cebd6243dc457b
refs/heads/master
2021-07-20T17:36:17.830698
2018-05-04T17:02:33
2018-05-04T17:02:33
120,516,720
4
0
MIT
false
2021-06-01T21:49:12
2018-02-06T20:05:03
2019-01-14T19:01:48
2021-06-01T21:49:11
148
3
0
2
Python
false
false
import requests from urllib.parse import quote from time import sleep import json import sys class openstates(): headers = None base_url = "https://openstates.org/api/v1/" def __init__(self, api_key): self.headers = {'X-API-KEY': api_key} def fetch(self, url): result = requests.get(u...
UTF-8
Python
false
false
6,653
py
53
statelegislators.py
1
0.594018
0.589809
0
163
39.809816
150
zains97/se-project-ainak
11,330,123,761,147
48a7fc4fb8658be783afc136611a49ac4df65681
06c5ffef598aaa1ec3f0f56d1a4a51ea47597fec
/website/ainak/recommend_system/migrations/0044_auto_20201006_1645.py
8a7186556d391a1570f257b75b69faf1cb8b02cb
[]
no_license
https://github.com/zains97/se-project-ainak
81895ec5ae68de060ab367a0ee0115a0a485190a
de17684a66c3ec3ac8ae5ce968c9745503166a93
refs/heads/main
2023-04-08T16:23:25.172505
2021-04-12T08:47:55
2021-04-12T08:47:55
357,113,274
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.5 on 2020-10-06 11:45 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('recommend_system', '0043_auto_20201006_1632'), ] operations = [ migrations.RemoveField( ...
UTF-8
Python
false
false
1,333
py
75
0044_auto_20201006_1645.py
55
0.55964
0.536384
0
46
27.978261
121
PidronBatol/pythonProjectFriday
12,498,354,848,251
1b31f7d4d14277ab57e36091630a15526fe18d16
b4944cb28290e959be45648f1766882e801b0ebb
/main.py
94a4e8957df46191ff2c9c922d245c7361ada1e1
[]
no_license
https://github.com/PidronBatol/pythonProjectFriday
6dd816bf89bbbaccfc6bc9ee4e22b00ee7a46c61
78be2d022b1b303acae3eb9ca84dea21ad42b562
refs/heads/master
2023-04-27T16:18:03.490906
2021-05-21T21:35:49
2021-05-21T21:35:49
369,658,361
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print('Version control') print(2+3)
UTF-8
Python
false
false
37
py
1
main.py
1
0.702703
0.648649
0
3
11.333333
24
yangboyubyron/DS_Recipes
10,599,979,289,019
7a4eeddf9a40401529bab92c056d6524f0baf9fc
d473a271deb529ed2199d2b7f1c4c07b8625a4aa
/Stats_and_Math/BasicPlottingSlope.py
e42ddb2f00b191a18dbcffe25fc7fd1dcb3b94e8
[]
no_license
https://github.com/yangboyubyron/DS_Recipes
e674820b9af45bc71852ac0acdeb5199b76c8533
5436e42597b26adc2ae2381e2180c9488627f94d
refs/heads/master
2023-03-06T05:20:26.676369
2021-02-19T18:56:52
2021-02-19T18:56:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Math for Modelers Session#1 Python Module #2 # Reading assignment "Think Python" either 2nd or 3rd edition: # 2nd Edition Chapter 2, Chapter 3 (3.1-3.3), and Chapter 8 (8.1-8.2) # 3rd Edition Chapter 2, Chapter 3 (pages 23-25). and Chapter 8 (pages 85-88) # Also review the handouts dealing with numpy and Matp...
UTF-8
Python
false
false
4,016
py
496
BasicPlottingSlope.py
335
0.736803
0.708416
0
102
38.323529
81
shiv4m/hough_transformation
13,460,427,520,123
f5f8e27a82f0c5dca7eacc631d2512b797c9d778
22f99f5e0705219fca1c695d1bf04e15df6c3fe7
/task3_bonus.py
306c231c2e7d85c1c206709f6e6323fec14be252
[]
no_license
https://github.com/shiv4m/hough_transformation
d16611ba276ce5cca0c59845038fb7d431894cdd
e73180da1877493ace8af02773d8ebc4d5a8f9bd
refs/heads/master
2020-05-02T16:39:18.107962
2019-03-27T21:27:25
2019-03-27T21:27:25
178,075,686
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import cv2 import math def detect_circles(edgeImage): circleList = [] sine = [] cosine = [] for theta in range(0, 360): sine.append(np.sin(theta * np.pi/180)) cosine.append(np.cos(theta * np.pi/180)) r = [i for i in range(24, 19, -1)] abrSpace = np.zeros([edgeImage.shape[0], ed...
UTF-8
Python
false
false
1,803
py
3
task3_bonus.py
2
0.570715
0.509706
0
52
32.711538
111
UWCoffeeNCode/barista
1,022,202,234,535
b0d47d73f1fead798bcdec338b23bcb5d0823313
de94c60833f69229821cae90a9f1a7ef87eb2f5a
/barista/migrations/0006_auto_20201028_1444.py
b5de7adc60ed3eed876f3072d339a17c22fb370a
[ "MIT" ]
permissive
https://github.com/UWCoffeeNCode/barista
0d17e9d9d9eec8a1864579686ba7a632bb0c3b87
edfbfada463d3b2b2e93f2f58673a13541a3e2f8
refs/heads/master
2023-01-06T11:20:08.018123
2020-10-30T05:27:49
2020-10-30T05:47:03
307,414,356
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.2 on 2020-10-28 19:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('barista', '0005_auto_20201028_1319'), ] operations = [ migrations.AlterField( model_name='user', name='is_verified',...
UTF-8
Python
false
false
509
py
20
0006_auto_20201028_1444.py
14
0.636542
0.575639
0
18
27.277778
170
qayrat-sultan/FS-mini-project
3,985,729,662,779
1462818bc7ab1908d244e59f2901cf537c5b8e54
6739c0e9d566bacb25ff31ff4637506aa4295a76
/main.py
d316c045f1b1916ecb909d055a2b3f8b031b3349
[ "MIT" ]
permissive
https://github.com/qayrat-sultan/FS-mini-project
ed3d28304968c586bc7aec7157f486201094ee3b
c2477305ba521fbdda1fc7d6dee8ba131aa4055e
refs/heads/main
2023-07-19T23:37:15.109077
2021-08-31T08:18:45
2021-08-31T08:18:45
434,164,317
1
0
MIT
true
2021-12-02T09:50:17
2021-12-02T09:50:16
2021-08-31T08:18:48
2021-09-01T15:43:04
6,034
0
0
0
null
false
false
""" This is the runner file of the application It creates the login widget """ import sys from PySide6.QtWidgets import QApplication from widgets import LoginWidget # runner if __name__ == '__main__': app = QApplication(sys.argv) app.setStyle('Fusion') window = LoginWidget() window.show() app.exe...
UTF-8
Python
false
false
324
py
35
main.py
23
0.685185
0.682099
0
17
18.058824
42
rajeshyogeshwar/exchange_calendars
2,774,548,923,446
b9e7b2883dfc94eb0c85f833b7c3a6823bbd2768
255625c09652dc3b595282f02fe142f9c11adcfc
/tests/test_bvmf_calendar.py
bfe1ba7c3009472c8b7bb0a3ffff1a4dfef32841
[ "Apache-2.0" ]
permissive
https://github.com/rajeshyogeshwar/exchange_calendars
89fce34e136cfcdbc33e4846d02faf31cc986924
a5f2ca17fc4a9195bc56b4b783420b4e9b999fc5
refs/heads/master
2023-08-25T15:19:45.196733
2021-10-06T23:05:30
2021-10-07T07:38:47
415,899,232
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from exchange_calendars.exchange_calendar_bvmf import BVMFExchangeCalendar from .test_exchange_calendar import ExchangeCalendarTestBaseNew class TestBVMFCalendar(ExchangeCalendarTestBaseNew): @pytest.fixture(scope="class") def calendar_cls(self): yield BVMFExchangeCalendar @pytest....
UTF-8
Python
false
false
2,526
py
39
test_bvmf_calendar.py
32
0.585907
0.482581
0
64
38.46875
88
Mallika2000/Face-Recognition
11,759,620,501,691
880bbcde45e1eeb62be0aa7110d0a408d962ed28
944c7bd26fc3ef41d04998a7edc9e9c32d203c50
/Face Recognition.py
7c18671d9b2205bedcfa44c7cf7086f8c87a4a78
[]
no_license
https://github.com/Mallika2000/Face-Recognition
1316f2052ceef7fe0e9e7d987031ccec287543ef
f23aad437c5e2a743346550a88d8d6a5b075cdbe
refs/heads/main
2023-07-27T21:26:09.380131
2021-08-22T10:32:15
2021-08-22T10:32:15
398,772,325
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np import face_recognition imgV = face_recognition.load_image_file('Images/bts-jungkook.jpg') imgV = cv2.cvtColor(imgV,cv2.COLOR_BGR2RGB) imgVTest = face_recognition.load_image_file('Images/BTS-RM.jpg') imgVTest = cv2.cvtColor(imgVTest,cv2.COLOR_BGR2RGB) faceLoc = face_recognition.face_loca...
UTF-8
Python
false
false
1,121
py
1
Face Recognition.py
1
0.763604
0.704728
0
30
36.366667
114
ab-natcap/idb-scripts
11,330,123,768,655
da0387b11d198b1c1ea483125a31b98ed62cf281
7bf56c0bba5a6b73ca04fda3e51cdd32e24bb29c
/sargassum/reclass_sum_and_nodata_count.py
a8678cc1010ca4d202193f0e640533cefa9d4a62
[]
no_license
https://github.com/ab-natcap/idb-scripts
b1b0b18053c8966b4b0d9ebf9f68dd67be14835d
77c630954694c3fe94c30c33312c679b1797b0eb
refs/heads/master
2022-08-28T17:28:55.339014
2022-08-26T23:02:35
2022-08-26T23:02:35
232,914,050
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" reclass_sum_and_nodata_count.py Author: Doug Denu Date: 2022-01-05 From https://gist.github.com/dcdenu4/f0c7c93da397e03768d548162fb2c8f2 """ import os import sys import logging import glob import numpy from osgeo import gdal from osgeo import osr import pygeoprocessing logging.basicConfig( level=logging.DE...
UTF-8
Python
false
false
8,084
py
71
reclass_sum_and_nodata_count.py
25
0.660317
0.647204
0
219
35.917808
117
codacy-badger/yt-media
16,303,695,877,318
3116aa4ec38fdb4c126c3f9a78a1128a5eaadb2d
430c308333dcbdc2b0ffd73bee0ff6ecccad0043
/smorest_sfs/extensions/sqla/softdelete.py
0fd9534bbe86d44c911530b3ce91a2be72363931
[]
no_license
https://github.com/codacy-badger/yt-media
375a2a4833fa6aaa838c0810099fbcc7af9c263a
05256238fe45cd38b5335fe885e45781deebbfaa
refs/heads/master
2021-05-20T00:54:32.928724
2020-04-01T08:20:44
2020-04-01T08:20:44
252,116,474
0
0
null
true
2020-04-01T08:29:30
2020-04-01T08:29:29
2020-04-01T08:20:58
2020-04-01T08:20:55
599
0
0
0
null
false
false
# Copyright 2019 RedLotus <ssfdust@gmail.com> # Author: RedLotus <ssfdust@gmail.com> # # 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 # # Unles...
UTF-8
Python
false
false
2,278
py
58
softdelete.py
55
0.645777
0.638056
0
65
32.876923
86
Mishka1012/Lesson-19
2,508,260,906,849
61975be0dd469d5ae76bb4ec0994e5c90adbfd25
58d8b440b9f2a515c07d31db0794b2cca4714fee
/classificator/userflow/views.py
939dab257bd70a1bee3dcbc3621bc5a9b52cad95
[]
no_license
https://github.com/Mishka1012/Lesson-19
5d38bd2b65303fb4aefaec5bf6f1e8e8c017ab6a
35f3b90db596f8ab1aa6b555d24a35557871ada0
refs/heads/master
2023-06-05T23:49:21.230780
2021-06-27T14:12:08
2021-06-27T14:12:08
380,756,815
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from .forms import CreateUserForm, UpdateProfileForm, UpdateUserForm from django.contrib import messages from django.contrib.auth import authenticate, login, logout from .decorators import unauthenticated_user, allowed_users @allowed_users(allowed_roles=['user']) def upda...
UTF-8
Python
false
false
2,205
py
15
views.py
12
0.660317
0.656689
0
66
32.424242
101
dankvul/adjust_test
3,126,736,206,569
d9d261e4da9ecb856f2acacd6f0db95668da964b
118a1bfb5a97b9143b0607ee865bfb797d50ca91
/backend/main.py
4a8483aaafe52bbb0a398f7eeec0e7484b263fbf
[]
no_license
https://github.com/dankvul/adjust_test
d1dcc2fe1e4525268906a6255dd04d9c7bf3582f
5275712a228be348e239675dc59d57c41e0b3628
refs/heads/master
2023-04-13T16:11:31.159531
2021-04-26T20:58:30
2021-04-26T20:58:30
361,883,076
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fastapi import FastAPI from starlette.middleware import cors from api.routes import api_router from core.utils import exception_handlers from database.db_events import close_db_connection, test_db_connection from config import * docs_config = ( { "docs_url": "/api/docs/", "redoc_url": "/api/r...
UTF-8
Python
false
false
886
py
17
main.py
15
0.638826
0.638826
0
43
19.581395
70
tarpeyd12/pylon
5,995,774,376,977
def3fa5949af1c9184b7376f77ed1f4b4d110b99
80ce0a1103d437eb3b0b9daf4635ee82a03fff99
/pylon/archiveCode/Data/code/pylonsupport/classes/simulation.py
fc04e14efed01a0478ba5c44a8fc4bc4a58e8a62
[]
no_license
https://github.com/tarpeyd12/pylon
51f1f623fff4a2f6556a257963c16a57e4e6d869
9072968c60a0cb855730a633d5f0e017f6fbb2aa
refs/heads/master
2021-01-10T02:49:18.012035
2018-03-02T10:04:28
2018-03-02T10:04:28
47,670,575
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
try: import pylon import _pylon import _pylon_calc import _pylon_draw import math from pylonclasses import * from objects import * from position import * except ImportError: print 'Importing failure for the required modules in \"classes.simulation.py\".' print _pylon.exit(-1) quit() class Simulation: ...
UTF-8
Python
false
false
2,567
py
260
simulation.py
210
0.714453
0.711726
0
107
22.953271
116
eduardonery1/PLIMM-Bank
2,894,807,957,671
186efd5d97d8e2842d77ffc42c1f27bfbd1a2404
4b8d49f0a01fdc9a367a188448b1f872c93152a7
/swagger_server/models/card_block_request.py
163bf679cedf49e566cee705f69cf0bf60394638
[]
no_license
https://github.com/eduardonery1/PLIMM-Bank
c2db258073eaf57d13e23940921b84012b05612e
ac2f7cc0d94cb3f3665f45a1cbdc25479fcbd17c
refs/heads/master
2023-01-30T16:02:24.571895
2020-12-13T20:56:58
2020-12-13T20:56:58
321,154,663
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server.models.source_audit import SourceAudit # noqa: F401,E501 from swagger_server import util clas...
UTF-8
Python
false
false
4,734
py
118
card_block_request.py
117
0.62336
0.612357
0
149
30.718121
141
Rhytham/face-detection-and-recognition-using-KNN
10,531,259,844,144
692dc0d868bd78ecd7ddcb0e361b3752ec0b1c8f
307d95f3933b1425b0da2677efc3eefe9a28c83d
/detect.py
1b8fad5572ee8ca0d6166761e48221661ce859f3
[ "Apache-2.0" ]
permissive
https://github.com/Rhytham/face-detection-and-recognition-using-KNN
d974b0796df1ad7fed5f9d85961820cb3f61df91
29e1ba8df5f9fca141a88f6246bfe5114d1d8492
refs/heads/master
2020-07-25T21:02:36.695224
2019-09-14T10:30:40
2019-09-14T10:30:40
208,423,299
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np from os import path cap = cv2.VideoCapture(0) classifier = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") name = input("Enter your name : ") counter = 30 face_list = [] while True: ret, frame = cap.read() if ret: gray = cv2.cvtColor(...
UTF-8
Python
false
false
1,439
py
3
detect.py
2
0.529534
0.510076
0
66
19.772727
73
jmgc/pyston
85,899,395,570
2f5f569468ca7126718a4ac3a997aa73550ace5f
43c24c890221d6c98e4a45cd63dba4f1aa859f55
/microbenchmarks/sre_optimize_unicode.py
8c99da77a79f9dab8f436f98bf584dc0dd124cfc
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
https://github.com/jmgc/pyston
c8e4df03c33c6b81d20b7d51a781d9e10148238e
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
refs/heads/master
2020-12-11T07:51:58.968440
2020-09-11T14:38:38
2020-09-11T14:38:38
39,242,644
0
0
NOASSERTION
true
2020-09-11T14:38:39
2015-07-17T08:09:31
2020-07-30T23:21:24
2020-09-11T14:38:38
23,735
0
0
0
Python
false
false
import sre_compile import sre_constants def identity(o): return o charset = [(sre_constants.RANGE, (128, 65535))] for i in xrange(100): sre_compile._optimize_unicode(charset, identity) # print sre_compile._optimize_charset(charset, identity)
UTF-8
Python
false
false
257
py
1,040
sre_optimize_unicode.py
963
0.719844
0.677043
0
11
22.363636
60
804173948/100Days-Public
6,648,609,385,571
ea879df8d664a224956a9234054df61414837e47
4ddddff9162f1b7ced548e3351c8d4fb7e26bd6c
/Server/QuestionGetterTest/rename.py
dc3fe96af5b41bdb7248404bf1d9e67643998ae5
[]
no_license
https://github.com/804173948/100Days-Public
78e804412ae45bb945f7f18dcefb5e32da4bf1c7
ebbe30d8f88c182c4d1dcfbf73b9695887de4245
refs/heads/master
2020-05-22T07:51:12.185206
2019-05-13T16:26:48
2019-05-13T16:26:48
186,271,633
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, re """ rename pictures for _, _, files in os.walk('pictures'): for file in files: name = os.path.splitext(file)[0] ext = os.path.splitext(file)[1] if ext != '.png': num = int(ext[4:]) new_name = str(num)+name+'.png' print("file: "+file+" new: "+new_name) os.system('COPY pictures\\'+...
UTF-8
Python
false
false
821
py
131
rename.py
20
0.565164
0.546894
0
30
26.366667
74
mesosphere/cloudkeeper
7,541,962,608,966
f3eb3df11a20a2d71d852bc37a85de58438dbac1
516f05f5abd5d92dd84753d34bef704b3dd4dffe
/plugins/gcp/resoto_plugin_gcp/resources/billing.py
c7b723175a6e0dfb0afccbb23e52ffb8a555cac5
[ "Apache-2.0" ]
permissive
https://github.com/mesosphere/cloudkeeper
604a7aa97ba01f8ab6eaae9378a1c26748e74bcd
b06fedc4da7046ebff0ae3f439fb4d71a49ece6a
refs/heads/main
2023-06-07T09:54:16.909012
2023-06-07T08:17:01
2023-06-07T08:17:01
255,744,821
99
13
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from typing import ClassVar, Dict, Optional, List, Type, cast from attr import define, field from resoto_plugin_gcp.gcp_client import GcpApiSpec from resoto_plugin_gcp.resources.base import GcpResource, GcpDeprecationStatus, GraphBuilder from resotolib.baseresources import ModelReference...
UTF-8
Python
false
false
11,876
py
805
billing.py
481
0.633799
0.632705
0
294
39.394558
119
Kotletta-TT/cbot-cm-sim-consumer-megafon
12,661,563,594,198
45eb363eab15d905519e5217c791bf030c0e060d
e66b04814b2f6c4840bea072b4e335fda463c364
/db/db_helper.py
7c05b88180eeedee0e00d71b38f74e62a326f054
[]
no_license
https://github.com/Kotletta-TT/cbot-cm-sim-consumer-megafon
26a2fb2f1c8ad609dd061544c407c33fde3a7317
17bcfe6226e0d8da45983396862f5d1586f21f1c
refs/heads/master
2023-02-26T11:52:01.905618
2021-02-05T15:03:51
2021-02-05T15:03:51
336,256,558
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from sqlalchemy import create_engine from sqlalchemy.engine.url import URL from sqlalchemy.orm import sessionmaker sys.path.insert(0, '..') from config.conf import DB_DRIVER, DB_USER, DB_PASS, DB_HOST, DB_PORT, DB_NAME # Есть косяк, для создания/применения миграции необходимо перед config ставить точку url...
UTF-8
Python
false
false
612
py
11
db_helper.py
7
0.756856
0.751371
0
15
35.533333
113
frankmalcolmkembery/conjure-up
979,252,566,938
b989009be61fcc783cef4e33ac57d7340f04e8ee
d41456d49124025f97c1bce47112e9a58d81789d
/test/test_controllers_summary_tui.py
dc44de5a3953dfd1ee301cd9d2adfc1304d0894d
[ "MIT" ]
permissive
https://github.com/frankmalcolmkembery/conjure-up
13bad0d4016f72f8efd1f84a73adc9b3c7f5c3f3
891f089dbaa0de43c737aed587d1871612dd39a7
refs/heads/master
2020-05-30T13:57:00.156316
2016-08-30T22:43:42
2016-08-30T22:43:42
67,026,271
1
1
null
true
2016-08-31T10:04:24
2016-08-31T10:04:24
2016-08-17T05:21:47
2016-08-30T22:43:44
1,108
0
0
0
null
null
null
#!/usr/bin/env python # # tests controllers/summary/tui.py # # Copyright 2016 Canonical, Ltd. import unittest from unittest.mock import patch, MagicMock, sentinel from conjureup.controllers.summary.tui import SummaryController class SummaryTUIRenderTestCase(unittest.TestCase): def setUp(self): self.u...
UTF-8
Python
false
false
1,082
py
154
test_controllers_summary_tui.py
129
0.669131
0.665434
0
37
28.243243
76
bing1100/pinball
13,950,053,796,694
808603b3b60eab3209b5484898dd2b1452b2d9fa
24870303ba0b04896cc40184d51a4efb82c9a32b
/generate_pinball_poincare.py
d5393b06399792e93037172fcb1659203bb4770c
[]
no_license
https://github.com/bing1100/pinball
2588d195621cb6910de8fcd88226d2088f9e858c
022dc73a825f6e7f7f4948811e175d595bd7941e
refs/heads/master
2021-08-23T18:27:03.396192
2017-12-06T02:13:15
2017-12-06T02:13:15
111,614,163
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pinball as pinball import poincare as poincare import mpmath as mp # Global variables for the cd and cr ratio CD_CR_RATIO = 2.5 STEP_X = 0.01 STEP_Y = mp.pi / 360 MAX_REFLECTIONS = 2 domain_x = [0, 1] domain_y = [-mp.pi/2 , mp.pi/2] global_intervals = [] def frange (start, stop, incr): i = start ...
UTF-8
Python
false
false
1,096
py
4
generate_pinball_poincare.py
4
0.57573
0.558394
0
53
19.45283
69
kelvincjr/shared
14,474,039,808,108
2a5b0224d0b5830ac0deca8a85c74a5fd009f9d3
caa06eca3eef2549d5088f6487201f734b35822e
/gaiic2022/ark-nlp-main_nezha/ark_nlp/factory/predictor/base/__init__.py
ddab79b0ef8e5949272ea89d0227e465d7a3c046
[ "Apache-2.0" ]
permissive
https://github.com/kelvincjr/shared
f947353d13e27530ba44ea664e27de51db71a5b6
4bc4a12b0ab44c6847a67cbd7639ce3c025f38f8
refs/heads/master
2023-06-23T19:38:14.801083
2022-05-17T09:45:22
2022-05-17T09:45:22
141,774,490
6
1
null
false
2023-06-12T21:30:07
2018-07-21T02:22:34
2023-01-30T12:41:49
2023-06-12T21:30:06
619,370
5
1
5
Python
false
false
from ark_nlp.factory.predictor.base._predictor import Predictor from ark_nlp.factory.predictor.base._sequence_classification import SequenceClassificationPredictor from ark_nlp.factory.predictor.base._token_classification import TokenClassificationPredictor
UTF-8
Python
false
false
258
py
488
__init__.py
255
0.875969
0.875969
0
3
85
99
LordSir101/GameThing
17,875,653,913,556
a873a22ed3687e7d84bab796752d34acacee91c5
dd5649ce310e655d46526ba961242f93569fd071
/player.py
4ac88f37243ebbba28fde6be281bd6af23d479e1
[]
no_license
https://github.com/LordSir101/GameThing
783820e0d040a82c075c9271c0d3f8c788c316d3
97cdd5191cc4f7a64803f57a5fd8cde9be952a19
refs/heads/master
2022-11-04T23:10:41.077602
2020-06-22T20:25:47
2020-06-22T20:25:47
257,407,091
0
0
null
false
2020-06-22T20:25:48
2020-04-20T21:23:25
2020-05-03T19:27:46
2020-06-22T20:25:48
677
0
0
0
Python
false
false
from pygame import image, Color import pygame class Player: def __init__(self, width, height): # load images for pacman animation self.folder = "animations/pacman_move/" self.imgs_alive = [pygame.image.load(self.folder+"pacman1.png"), pygame.image.load(self.folder+"pacma...
UTF-8
Python
false
false
10,756
py
7
player.py
6
0.550205
0.538025
0
254
41.346457
123
zhanglizhijakezlz/spider
19,499,151,536,239
ba16c7f2cf9fb3a17940be0e167cbbafecdfa386
96c827f306c8cbc5ff166957011d83c177fa3977
/com/bsandxpath/xpathandbs1.py
c2650a44ff351fe9f93c14afc279acc96fe1d731
[]
no_license
https://github.com/zhanglizhijakezlz/spider
012ac18e33c0e42c0758e724d48668072997f966
2e025335f051efc38397286cc24bb47b0b727586
refs/heads/master
2020-08-01T15:45:49.351162
2019-09-26T08:22:56
2019-09-26T08:22:56
211,037,487
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re from bs4 import BeautifulSoup from lxml import etree import requests class SpiderCompare(object): def __init__(self): self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36' ' (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537...
UTF-8
Python
false
false
1,885
py
26
xpathandbs1.py
25
0.540526
0.520666
0
58
31.137931
103
BrandonTheBuilder/robohooker
19,499,151,563,117
b9bfa0e4e3c4b968fe4935121255be4ed517646c
42dd6a165721688964dfed4b21bf7280b2865b51
/src/track_fish/src/fish_hole.py
7ca794b57d6098970c5dd319573423a317690f4c
[]
no_license
https://github.com/BrandonTheBuilder/robohooker
8205cf708cd5752481966227f169f694e387dd3d
3bd1674888f643f923cf8e43153b16bc479d813d
refs/heads/master
2016-09-13T11:30:41.843158
2016-06-03T13:25:17
2016-06-03T13:25:17
56,011,153
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from point import Point from collections import deque import numpy as np import cv2 DEQUE_SIZE = 10 CASCADE_CLASSIFIER = '../../fish_detective/training/harr_fish/cascade.xml' whiteLower =(0,225,50) whiteUpper =(180,255,255) HARR_CUTOFF = 1.0 # ANGLE_TOLERANCE = 0.01 LOCATION_TOLERANCE = 100 class FishHole(object): ...
UTF-8
Python
false
false
3,426
py
51
fish_hole.py
20
0.493287
0.460595
0
87
38.206897
89
simonguichandut/GR-envelope
2,413,771,642,731
fe7530bd2a13d975a52732679563cfcc882be114
531a382c3cdd982315b630db78b19cc72afe6964
/env_GR_FLD.py
fb9f39c5a2456df7f267ddf894fd296031fc2730
[]
no_license
https://github.com/simonguichandut/GR-envelope
31dc8618d2d1b6136defdc503fba4950adcc680f
cdb0286ffded5cd2e8e2aaef7bd77439397bb17d
refs/heads/master
2021-06-20T15:57:29.193166
2021-03-01T18:52:44
2021-03-01T18:52:44
190,279,912
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Main code to calculate expanded envelopes ''' import sys from scipy.optimize import brentq from scipy.integrate import solve_ivp from scipy.interpolate import interp1d from collections import namedtuple import numpy as np import IO import physics from scipy.interpolate import InterpolatedUnivariateSpline as IUS ...
UTF-8
Python
false
false
29,051
py
234
env_GR_FLD.py
14
0.556125
0.525455
0
767
36.874837
168
vasanthkumarbalu/nordcloudflaskappsql
10,514,079,941,083
57d01eecb640b1fe5c31d51aeeee5204577e9160
82f1d52a9a92e719ffca57819b8687c1eb4a339d
/notejam/__init__.py
b1ea5edcd73c6d8277c78cedc182fa2173fdbf1e
[]
no_license
https://github.com/vasanthkumarbalu/nordcloudflaskappsql
0310bfaf98cc4df3969eda89aa25dd6760a3950a
374165dc40665e4117019edb3fc1e1ac0a655885
refs/heads/master
2022-02-12T17:46:28.116758
2020-02-28T14:38:23
2020-02-28T14:38:23
243,147,635
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib.parse from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_mail import Mail from flask_bcrypt import Bcrypt from notejam.config import ( Config, DevelopmentConfig, ProductionConfig, TestingConfig) import os from_env = {'productio...
UTF-8
Python
false
false
1,193
py
3
__init__.py
2
0.741827
0.739313
0
40
28.825
161
DesislavaDimitrova/HackBulgaria
9,320,079,070,655
cc7db70787ba20436a97b58252cf6b9704200a61
4c564648faf5c67bee83950f96aa2d5d71773794
/week0/1-Python-simple-problems-set /20.Sum_matrix.py
13ce358f70366eab03083c21823aff4445990fbb
[]
no_license
https://github.com/DesislavaDimitrova/HackBulgaria
54d3d06dd22b456c6ba430c68adc275844bf2497
a3dbbba5bf722a956d8a6c64d6cbd4751952f150
refs/heads/master
2021-01-01T19:10:45.533168
2014-12-05T18:39:01
2014-12-05T18:39:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Summing of all numbers in a matrix def sum_matrix(m): sum = 0 for index, item in enumerate(m): for nested_index, nested_item in enumerate(item): sum += nested_item return sum
UTF-8
Python
false
false
185
py
39
20.Sum_matrix.py
39
0.702703
0.697297
0
8
22.125
51
skyu0221/660-iot
14,199,161,888,373
a8e116f6f782eb784b5525b16ec53793504f40e7
d800543b0f9395fa5202767970d138ee25721977
/backend-server/sensors/migrations/0005_remove_device_create_by.py
ee11e4fa997d24c7a21096bbddc94813fc8896da
[ "Apache-2.0" ]
permissive
https://github.com/skyu0221/660-iot
7139479ee0a609ded65b8f143e63e5e51a6f3042
d31f973c93871bfa8122f1b83364d0147d402e9e
refs/heads/master
2021-05-23T17:52:55.660400
2021-01-19T20:03:24
2021-01-19T20:03:24
253,407,930
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.4 on 2020-04-02 08:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sensors', '0004_auto_20200402_0246'), ] operations = [ migrations.RemoveField( model_name='device', name='create_by', ...
UTF-8
Python
false
false
331
py
30
0005_remove_device_create_by.py
22
0.58006
0.486405
0
17
18.470588
47
patilanup246/Projects
8,933,532,022,187
5ca3ab6d0552890f67a5685cf7c55f03b162e864
b8d9bba87ffb1c6945fb1c9268a986587e672785
/old/Hariharan_Arumugam/temp_sample.py
bd72a6feb76818db043c43342e60e960b8151247
[]
no_license
https://github.com/patilanup246/Projects
4f510f5965a2b5c1ca72dd94e70f53e14c7dac59
b41aaa052a9f211065c184b7a0e167c089aefbc5
refs/heads/master
2021-02-28T00:14:01.330374
2018-09-01T12:26:29
2018-09-01T12:26:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests url = "https://api.skrapp.io/api/v2/find" headers = { 'host': "api.skrapp.io", 'connection': "keep-alive", 'accept': "*/*", 'origin': "chrome-extension://gklkbifnmojjpmbkojffeamiblineife", 'x-access-key': "1730948352cO9GcaTqbVFTsblIrR6VLpdbGmVsHxJt", 'user-agent': "Mozilla/5....
UTF-8
Python
false
false
765
py
333
temp_sample.py
333
0.67451
0.619608
0
24
30.875
134
skechung/TraffBot
13,572,096,681,452
b4246a471f8fbf8e12b214aab0e91b547b2c8686
d8058fa14df1e3553a334f22d3a27cfa3fb8e9da
/src/server/app/routes/weather.py
cc0bcb5ce31526b2be6342d04fa254f027f04f39
[]
no_license
https://github.com/skechung/TraffBot
e2eff71ba1cd2746a11ed445575dd8db4a8f3770
b10d34944eec90b1d8d65d9cb9c9ab34fab5fa6b
refs/heads/main
2023-04-23T08:38:57.408703
2021-05-16T04:51:40
2021-05-16T04:51:40
360,354,842
0
0
null
false
2021-05-16T04:51:41
2021-04-22T01:20:48
2021-05-16T03:27:52
2021-05-16T04:51:40
26,511
2
5
0
Jupyter Notebook
false
false
from flask import Blueprint, jsonify, request from config import WEATHER_API_KEY import requests weather_blueprint = Blueprint('weather', __name__) @weather_blueprint.route('/weather', methods=['GET']) def weather(): """Fetches weather data for performing predictions """ latitude = request.args.get('...
UTF-8
Python
false
false
605
py
26
weather.py
12
0.700826
0.697521
0
19
30.842105
138
Tinsae/Big-Data-Training
6,098,853,597,316
7e24f0eb7b8705cc392f93f758cecc0304bec9d4
61adcee473d10f337c1ef60be26c015bef7bacae
/Module 3_ Python Function, OOP, Modules/Case studies/answers/CA1/q (9).py
255db7398a11d5c7965b106627efe1e66deb2ec1
[]
no_license
https://github.com/Tinsae/Big-Data-Training
958e05d00bba79bdd54dc878066bc9b4269f85ba
eef40671ba0d0d7175d7484b1f63498dbf7fbf22
refs/heads/master
2020-06-19T07:40:47.938905
2019-08-24T20:42:34
2019-08-24T20:42:34
196,621,366
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#9 rows, cols = input().split(",") rows = int(rows) cols = int(cols) table = [[x * y for y in range(cols)] for x in range(rows)] print(table)
UTF-8
Python
false
false
141
py
64
q (9).py
33
0.624113
0.617021
0
6
22.666667
59
ChenyangTang/bark-ml
15,925,738,736,996
ebb6fc308796c22d7766cc59587dd2fc2cb84ce3
022f7fd0cb1687bab60d536b411de3405b84ef38
/configurations/sac_highway_uniform/configuration.py
4db6b101f1a38d474b878b52293c5ad743fb0845
[ "MIT" ]
permissive
https://github.com/ChenyangTang/bark-ml
c73e66145ec1798d151dda06a6de69375a763a19
1d2ab1957bf49929e27d718dd4bd3912162197b8
refs/heads/master
2020-08-04T06:56:48.425173
2020-02-10T15:50:41
2020-02-10T15:50:41
212,046,188
0
0
MIT
true
2019-10-01T08:23:37
2019-10-01T08:23:37
2019-09-23T21:36:39
2019-09-24T08:41:03
222
0
0
0
null
false
false
from absl import app from absl import flags import tensorflow as tf from tf_agents.environments import tf_py_environment import sys sys.path.append("/home/chenyang/bark/modules/runtime/scenario/scenario_generation") from modules.runtime.scenario.scenario_generation.uniform_vehicle_distribution \ import UniformVehic...
UTF-8
Python
false
false
3,606
py
33
configuration.py
23
0.671936
0.666112
0
93
37.784946
85
dzx1026/yzj
3,204,045,652,868
831184a4ef50b37ec2ce8e96613da3ee005b9eaf
21ad86c915d8a6a5b066a8c52cff1cb828427f91
/Common.py
d1e67f1e26674427a193431a0c172065d6b47dc3
[]
no_license
https://github.com/dzx1026/yzj
b761ae7f1dcbbc848bf8d20a55d52bcc932f5b5d
3298848a15748d442a6df7c67dbaca262b258d52
refs/heads/master
2020-05-07T16:52:10.477293
2019-04-11T03:05:32
2019-04-11T03:05:32
180,703,087
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 保存一下通用的变量 ''' HOST = 'https://mo.hnrbi.com/' EID = '15854738' #轻应用使用 APPID = '500102236' APPID_SECRET = '2JNjyAIMoD4FZFh6Ubkd' #获取人员信息key MODIFYPERSON_SECRET='AxWP9zTxG95WlOYIAYWjSsKbsfEmUNrr' #报表秀秀使用的参数 REPORT_APPID='SP15854738' REPORT_SECRET='sSbvXTG4BffiHIzexc18YzAJPrvoRQ' AESKEY='f7E1eaTKGluPd7Ty'
UTF-8
Python
false
false
368
py
7
Common.py
6
0.780645
0.66129
0
16
18.3125
54
shashman95/archive
2,207,613,233,810
f4507f3ea2966d161208f8234425320828e5096d
69963c3bb4776940852d6cb2a9dc555a25ffeff7
/pyweb/src/pyweb/core/request.py
914b0eb000fecb27f66aca9be07f511b082d5d4f
[]
no_license
https://github.com/shashman95/archive
5e7ea033169f873482c20602d7f77b522ef056e2
f043c08e32393725b8d9c50a1ecf24486527a578
refs/heads/master
2021-01-17T23:34:42.779622
2012-08-19T20:23:39
2012-08-19T20:23:39
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope tha...
UTF-8
Python
false
false
1,595
py
24
request.py
15
0.659561
0.657053
0
37
42.108108
90
eunsu-park/solar_magnetogram_denoising
9,869,834,861,160
a5770f726f0215911544a7258af1f65e9d82e86f
f06d6fa5ea0a8c3ab2fd5b56d10f02fd3ae2a15e
/OtherVersions/Diffusion/utils/others.py
555fa7fea35ba50ebd0dafebc98f96fa5c33cd0e
[ "MIT" ]
permissive
https://github.com/eunsu-park/solar_magnetogram_denoising
d7ef6fd665325a6cd372b6953d5bad367ab2f697
09689b2ca2b97cc987937075a5800d0eeaab3953
refs/heads/master
2023-04-14T01:14:15.482608
2023-03-20T01:50:56
2023-03-20T01:50:56
204,967,204
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch.nn as nn def get_loss_function(loss_type): if loss_type == "l1" : loss_function = nn.L1Loss() elif loss_type == "l2" : loss_function = nn.MSELoss() elif loss_type == "huber": loss_function = nn.HuberLoss() else : raise NotImplementedError() ...
UTF-8
Python
false
false
340
py
31
others.py
27
0.576471
0.567647
0
13
24.307692
38
iamthedkr/AIVN-Course-2019
6,193,342,875,581
8db631485f6290d5a78649943dc4ee2ad33ad5e9
621ab137d9dff34932360a9b18069bb1e3e96b13
/Week6/1. Đọc và xử lý dữ liệu dùng Numpy/2.Iris(text-data)/2.Iris.py
d9d24c6b4aef6f208f6f8a90ca8722509b2cd10b
[]
no_license
https://github.com/iamthedkr/AIVN-Course-2019
edfc3c8e300c688a2f9cb97aa71f8906e69c0243
61bd8877d92a6a867f45e9d4b68e45d199af080d
refs/heads/master
2020-09-14T16:01:54.159863
2019-11-17T10:13:06
2019-11-17T10:13:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import numpy.core.defchararray as np_f # Bộ dữ liệu Iris có chứa cột species ở dạng chuỗi. Do đó, cần chuyển dạng này sang dạng số # Lấy các đặc trưng và lưu vào biến X X = np.genfromtxt('iris.csv', delimiter=',', dtype='float', usecols=[0, 1, 2, 3], skip_header=1) print(X.shape) # Lấy species và ...
UTF-8
Python
false
false
833
py
122
2.Iris.py
64
0.692308
0.682861
0
24
29.875
96
mike-lloyd03/miCRM_API
17,377,437,716,953
4fcf81fa7e8519bd52db171c886a184de6eea342
e3bac6ba8448d20f3630e685f21589dfa3600453
/app/routes.py
4b063971da751cc45fe4e0a227fedd9ea2634376
[]
no_license
https://github.com/mike-lloyd03/miCRM_API
a378530a03028768ed84a5161824029ed3d708a3
086ef68f1dd24a471eefad0ac47f18cf7d695899
refs/heads/master
2022-12-14T07:19:10.156611
2020-08-26T07:51:07
2020-08-26T07:51:07
289,204,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import request from app import app from app.models import Contact from app import db @app.route('/') def index(): return 'This is a functional app!' @app.route('/create-contact', methods=['GET']) def create_contact(): new_contact = Contact( first_name=request.args.get('first-name'), ...
UTF-8
Python
false
false
630
py
10
routes.py
9
0.666667
0.666667
0
24
25.25
73
Mubai-Liu/Machine_Personality
19,378,892,465,546
31fe31bf20cd5c5a04a4f2c8e7bc87029a0cc650
ca4319c9db6a9a59db778b85788a80099b62849b
/Gamedata.py
7ca17f2a4117489e4c700b392a2f1433d9b0ab28
[]
no_license
https://github.com/Mubai-Liu/Machine_Personality
0272c1883325e2aa52fd3348703818bdd595ad68
e1e526031d264e5479920bf93c86569d6cadfe0b
refs/heads/master
2021-01-09T00:14:02.660970
2020-02-28T17:27:34
2020-02-28T17:27:34
242,185,162
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import urllib.request import pandas as pd import matplotlib.pyplot as plt import numpy as np import csv from time import sleep from random import randint # csv file name filename = "Dota_buff.csv" api = dota2api.Initialise("54699EC1DAEC662D994DAADE57148354", raw_mode = True) rows = [] ...
UTF-8
Python
false
false
1,902
py
11
Gamedata.py
3
0.679811
0.653523
0
85
21.364706
103
firezdog/CodingDojoPython
14,955,076,132,237
873d6c4a5f239698e973e8597b8bbe25c0702701
b77ceed7e5b54783452b681aedcc3364bef0a755
/PythonFundamentals/drawStars.py
36422bb2f0ec25f509df7e4c358fc8c29a948b55
[]
no_license
https://github.com/firezdog/CodingDojoPython
05ff37f733881cd967d6463ca3b11acd0f8781c5
8f3f8387cd4b5027752e78900fdbd4a77b522f02
refs/heads/master
2021-04-26T23:36:59.505275
2018-03-11T03:22:25
2018-03-11T03:22:25
123,827,779
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def drawStars(lst): i = 0 while i < len(lst): if type(lst[i]) == str: i += 1 continue if i + 1 < len(lst) and type(lst[i+1]) == str: char = lst[i+1].lower()[0] else: char = "*" j = 0 string = "" while j <...
UTF-8
Python
false
false
474
py
27
drawStars.py
21
0.371308
0.343882
0
19
23.052632
56
kuThang/py100
16,183,436,773,069
a2bb7a535c597fa06d861030d0e1627e258d8d6f
2356a6ce91b7de5134117675f2714f166c7143c9
/d7_binary_addition.py
d2f261cebf13a9518c2a89d599582620a32ef1da
[ "Apache-2.0" ]
permissive
https://github.com/kuThang/py100
89029dd4ede3900f55374014fdd82bcc64f29b4f
d808b8d8de7a97c4c00fa20e35a8bab1c56bd966
refs/heads/master
2020-05-23T01:58:01.344550
2019-07-16T00:07:47
2019-07-16T00:07:47
186,593,259
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from itertools import zip_longest T = [(0,0), (1,0), (1,0), (0,1), (1,0), (0,1), (0,1), (1,1)] def add1(x,y): x = list(map(int, reversed(x))) y = list(map(int, reversed(y))) sum=[] print(x) print(y) v, t = T[0] for a, b in zip_longest(x, y, fillvalue=0): v, t = T[t * 4 + a * ...
UTF-8
Python
false
false
1,228
py
16
d7_binary_addition.py
13
0.55456
0.440554
0
51
23.098039
70
Bagnis-Gabriele/Robotic-hand
14,912,126,469,766
d584fe310b30a69dd518d60fd9ddb776ff3830db
e07f790e0b0b31f37a33af6cf2d57c2acd7fd8f9
/definitive_code/muse/program.py
0c2e7290e2ca70b533ac82044d64ca22e0ca468b
[]
no_license
https://github.com/Bagnis-Gabriele/Robotic-hand
77e0b29a2cc95d10542e369926051d81980c0327
c5a54e5ac765885785222880ed1c9276c67e3079
refs/heads/master
2021-06-30T18:25:34.037343
2021-05-13T08:52:11
2021-05-13T08:52:11
232,750,125
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" BAGNIS GABRIELE PCTO project of ITIS MARIO DELPOZZO CUNEO """ import numpy as np import pandas as pd from pylsl import StreamInlet, resolve_byprop import time, utils, csv, winsound import login_user as user from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier cla...
UTF-8
Python
false
false
2,450
py
28
program.py
20
0.655918
0.644082
0
76
31.157895
110
WayupKG/Online_Reception
3,032,246,936,769
4053e1a3187ec6424c0716dc3c049301dd783ec4
e5a51d6f51a0bc1c21ec1bfa833b7e604a888b75
/Home/admin.py
eef90cbe387ee337cb72a5565d51bd33893ecc0d
[]
no_license
https://github.com/WayupKG/Online_Reception
6ac9342a826749981ac908275bc43842d5cdf3df
56fa3167da966df974439e44c19af08ab5cfdff8
refs/heads/master
2023-07-29T01:43:24.055123
2020-05-19T14:15:09
2020-05-19T14:15:09
265,198,745
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Specialty @admin.register(Specialty) class SpecialtyAdmin(admin.ModelAdmin): list_display = ('title', 'publish')
UTF-8
Python
false
false
171
py
43
admin.py
17
0.77193
0.77193
0
7
23.571429
39
mrahjoo/Solar-for-Industry-Process-Heat
1,829,656,112,391
17652e0da4917a98edb0aaa6e03aa2e1c762da8d
5db5bd1bcdfb3d8e7d221bd2d47e29138f0ba3e9
/Results analysis/tech_opp/extra_elec_emissions.py
d602ca58f101d76aec0059581ce95135a3149b05
[]
no_license
https://github.com/mrahjoo/Solar-for-Industry-Process-Heat
c848c979db43e8d36ce740f43fcfd25074d06e89
84de5160779c5d9727e87d3a44a18c83986650b6
refs/heads/master
2023-03-28T08:13:33.207324
2021-03-05T05:02:13
2021-03-05T05:02:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import numpy as np import os class electricity(): """ Class containing methods used to calculate electricity emission factors (MTCO2e/MWh) by county from EPA eGRID data. """ def __init__(self): self.data_wd = '../tech_op...
UTF-8
Python
false
false
11,736
py
167
extra_elec_emissions.py
82
0.560838
0.549761
0
324
35.216049
125
kishipro/EmptyClassroomMap
12,893,491,848,508
6a855b28f12d169e21a3c87f136ea71989cc7b46
826fc320232bb435753ef58b4b24a921f52b602c
/map/migrations/0001_initial.py
d22a95c934f046d784340a18d77367dd09f6cd01
[]
no_license
https://github.com/kishipro/EmptyClassroomMap
22826201eb4a4241695fc2116c336b5cdae9fb4e
13ce3a931049a2be6e7fbd189d4625bf424db2a7
refs/heads/master
2020-07-28T16:02:43.703295
2019-11-05T12:49:08
2019-11-05T12:49:08
209,457,929
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.5 on 2019-09-24 06:42 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Building...
UTF-8
Python
false
false
5,792
py
18
0001_initial.py
9
0.522916
0.509744
0
121
44.801653
209