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
ChunjingXiao/TwitterFacebook
16,114,717,311,306
4b3f3b6958ff937989316bd54f72425c3ea97a30
e8dc9bab61d14dba063d772ef1dbab31e8d0f69f
/01IdentifySameUser/4BothFacebookTwitterAllUpdate/extractFollowerLikes.py
93067bd881e31fa78447c3c9407c88daa1c76e79
[]
no_license
https://github.com/ChunjingXiao/TwitterFacebook
e02e9c4a779a49e2b0c5857631128b9649499bd2
a500ae440bb2d329747a11466a0467fe794deca2
refs/heads/master
2020-04-26T15:53:01.329542
2019-03-04T02:52:27
2019-03-04T02:52:27
173,660,286
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # update the #follower and #likes in findBothFacebookTwitterAll from the twitter profiles and facebook profiles # inFile: findBothFacebookTwitterAll # twitterID #followr FacebookID #likes Url # 40053156 28 rwilderjr 0 www.facebook.com/rwilderjr # 30693817 488 c...
UTF-8
Python
false
false
7,887
py
21
extractFollowerLikes.py
10
0.576465
0.543875
0
165
45.781818
273
jqsheng94/Twitter-API-Samples
9,552,007,299,229
646dc4f373e21b82964f06c5ec51dbb2904215a0
30466c096cc104a8d7cfdce87f5d9dfc72c9be24
/sentiment analysis for tweets.py
f935019de488324eedab5a7315084f68b0d76902
[]
no_license
https://github.com/jqsheng94/Twitter-API-Samples
bf42ad746960f255f1927b626cdee36fa18138db
8479021de2ba2e5df48a246ce22b154af9dc9c2b
refs/heads/master
2021-01-11T19:01:37.435533
2017-03-10T17:06:51
2017-03-10T17:06:51
79,296,739
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from TwitterAPI import TwitterAPI, TwitterRestPager import json import sys sys.path.append('./Alchemy') # path to alchemyapi_python's folder to make the import work from alchemyapi import AlchemyAPI alchemyapi = AlchemyAPI() CLIENT_SECRETS_FILE = "client_secret.json" with open(CLIENT_SECRETS_FILE) as json_data: ...
UTF-8
Python
false
false
1,376
py
20
sentiment analysis for tweets.py
19
0.56468
0.561773
0
45
29.444444
90
lyk19940625/MyRFBNet
12,627,203,867,547
3e0f8db4c1abe519e063777b7410d7953525f8d1
f6dd2dfdb5a374c4db12c15831475b0a641ceee4
/data/config.py
68347b8ad434d5dc7616204be88a376c2919684e
[ "MIT" ]
permissive
https://github.com/lyk19940625/MyRFBNet
a87a833c0dbfb454f0218cc2294d34d2206e0b1c
bf11967a91d9e75cead78bf9edc5cf067b73274c
refs/heads/master
2022-12-14T14:22:21.041078
2019-08-02T03:58:01
2019-08-02T03:58:01
197,345,302
42
10
MIT
false
2022-11-22T02:57:26
2019-07-17T08:11:46
2022-09-15T11:46:48
2022-11-22T02:57:23
8,525
31
11
11
Python
false
false
# config.py import os.path # gets home dir cross platform home = os.path.expanduser("~") ddir = os.path.join(home, "data/VOCdevkit/") # note: if you used our download scripts, this should be right VOCroot = ddir # path to VOCdevkit root dir # define yourself data set class label name CLASSES = ('__background__', 'r...
UTF-8
Python
false
false
1,253
py
32
config.py
21
0.52913
0.351157
0
52
23.096154
72
AdamZhouSE/pythonHomework
18,794,776,902,764
7144878b7e92d405de1dc2421e8d0999cc4c18aa
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2515/60661/261228.py
ce292a3e20722db0f6f458a03730123a7117984d
[]
no_license
https://github.com/AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
nums=eval(input()) m=eval(input()) l,r=max(nums),sum(nums) while l<r: mid=l+(r-l)//2 i,count,temp=0,1,0 while(i<len(nums)): temp+=nums[i] if temp>mid: temp=nums[i] count+=1 i+=1 #if count==m: # print(mid) # exit() if count<=m: r=m...
UTF-8
Python
false
false
357
py
45,079
261228.py
43,489
0.45098
0.431373
0
20
16.9
24
gkreder/tequila_mockingbird_2
17,729,625,025,614
4dafbe26326d7191f1a5f7850c9010632ee7ce0e
7a69c2fd074dbecbdf045a62a218d604f960d66c
/fitness_scores/jupyter/test.py
161e56ba0b7bea3b8edab00a27cb5a897a6dc0d3
[]
no_license
https://github.com/gkreder/tequila_mockingbird_2
36400523d43eebcd098a60b5a0919297b4a345b2
486d932d87673f420aef696c9b8e0bd4df253f19
refs/heads/master
2021-01-12T16:05:10.156621
2016-10-31T04:52:59
2016-10-31T04:52:59
71,934,059
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import fitness_lib import pickle import sys import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from operator import itemgetter AMINOTONUMBER_DATA = pickle.load(open('./input_output_files/input/aminotonumber.pkl', 'rb')) replicate = 'control' # file_name = './input_output_files...
UTF-8
Python
false
false
2,355
py
184
test.py
41
0.603822
0.592357
0
79
28.822785
110
tak8/chop-spec
5,162,550,697,750
c8637a70eef9f8eba4e0f510d4d145472dd372b2
aea97eb37915563148021ed37954ebab56cb7c7e
/pass-8.py
87204e1b54a7d4ab97fd97c4674973635e1a114a
[ "BSD-2-Clause" ]
permissive
https://github.com/tak8/chop-spec
8941a1c54f99137729fe9817136e3e2acc50e7b4
c813a7e664560a11db8be5669470f0ee11a37bb0
refs/heads/master
2021-07-06T05:08:09.603326
2013-11-07T17:32:50
2013-11-07T17:32:50
14,181,947
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # # Pass 8: Maps each text chunk ID to its original location in spec. # ############################################################################## # Copyright (C) 2013 Cable Television Laboratories, Inc. # Contact: http://www.cablelabs.com/ # # Redistribution and use in source and binary forms, w...
UTF-8
Python
false
false
2,109
py
9
pass-8.py
3
0.659554
0.651019
0
53
38.792453
78
dmikos/stepikCourse
11,725,260,757,292
4f87a5a57c8bbc04eff37e6d9aa8e5d012972a24
4b379051aa3430eb2d8931f6055772731dcb199d
/512-Python_основы_и_применение/24458/stepik-512_24458-step15.py
18b8cce88ecda3f32beeaafae65bf2fcaa86a1a8
[]
no_license
https://github.com/dmikos/stepikCourse
1416614ef51a4352374f37e86e3211c3b42cbaf6
3faeabfdc56cac597fb6b1495e7bb38a7f2a6816
refs/heads/master
2021-01-12T17:06:37.720050
2016-11-21T14:37:20
2016-11-21T14:37:20
69,057,420
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 #https://stepik.org/lesson/%D0%A4%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B8-%D0%B8-%D1%81%D1%82%D0%B5%D0%BA-%D0%B2%D1%8B%D0%B7%D0%BE%D0%B2%D0%BE%D0%B2-24459/step/15?course=Python-%D0%BE%D1%81%D0%BD%D0%BE%D0%B2%D1%8B-%D0%B8-%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5&unit=6764 def C(n...
UTF-8
Python
false
false
534
py
73
stepik-512_24458-step15.py
45
0.573034
0.41573
0
18
28.666667
287
dustine32/pthr_db_caller
8,864,812,501,370
70d90d6803108df7a91519925d10594a1d1bab06
2f7de5811985ce5e6bd15dc445baf601bff035df
/bin/format_xml_iba_to_gaf.py
f3a5a3efc2601bf0020d8fb2ebe2e1e7f00e4276
[]
no_license
https://github.com/dustine32/pthr_db_caller
78227d7317fbc0db8ec033e2390bed3d4168d8d9
70397a69612e1156ed7686a675341606c0443228
refs/heads/master
2021-11-08T17:39:29.950241
2021-10-20T22:54:21
2021-10-20T22:54:21
192,622,742
0
0
null
false
2021-03-25T22:41:38
2019-06-18T22:54:50
2020-11-25T20:54:58
2021-03-25T22:41:36
258
0
0
2
Python
false
false
#!/usr/bin/python3 import argparse import os from pthr_db_caller.models import paint, metadata parser = argparse.ArgumentParser() parser.add_argument('-f', '--file_xml') parser.add_argument('-g', '--go_aspect', help="Filepath to TSV of GO term ID -> GO aspect. " "E.g. 'G...
UTF-8
Python
false
false
4,044
py
23
format_xml_iba_to_gaf.py
18
0.550198
0.54451
0
75
52.92
118
suzuki-shunsuke/ansible-role-general-installer
15,453,292,379,268
fcebe641d4d10de2aa9c205aaba4cc4ef502762e
38e96590a2dd62da46eccfe544ff9063cc5cee76
/filter_plugins/is_archived.py
edc1ecc59df3e342f1325f24d78d2814b5ead342
[ "MIT" ]
permissive
https://github.com/suzuki-shunsuke/ansible-role-general-installer
eb888c1812c06359fadc9c904d6c1c65acbd31fe
21a91701aa64c7cd6df66cdadafaca0e4c06f5fa
refs/heads/master
2022-05-07T22:50:27.032947
2020-08-24T09:42:32
2020-08-24T09:42:32
116,222,452
1
2
MIT
false
2022-03-26T15:49:38
2018-01-04T06:18:02
2022-02-09T06:33:14
2022-03-26T15:49:38
120
1
1
14
Python
false
false
def is_archived(filename, suffixes): """ """ return any(filename.endswith(s) for s in suffixes) class FilterModule(object): def filters(self): return { "is_archived": is_archived}
UTF-8
Python
false
false
218
py
9
is_archived.py
2
0.605505
0.605505
0
10
20.8
54
orenrimer/django-password-manager
3,667,902,114,830
15917fc17f59032621076d8797b73c07af61ed36
79f294e8704ae6ff95ece9055e14bdc3b43b3506
/password_manager/accounts/urls.py
d340cafec8956a4986904f6f464952ad5a9a4204
[]
no_license
https://github.com/orenrimer/django-password-manager
d3d1377a22e6ee630b5f9f19097e3ff289651f33
88d642ec9e3d451bc1c868f8f1c6e09f77055d6c
refs/heads/main
2023-03-05T19:20:12.247894
2021-02-15T21:53:01
2021-02-15T21:53:01
333,854,208
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from .views import ( register_page_view, login_page_view, logout_view, account_page_view, must_authenticate_view, unauthorized_view, ) app_name = "accounts" urlpatterns = [ # Account management links path('register/', register_page_view, name="register"), ...
UTF-8
Python
false
false
629
py
28
urls.py
13
0.675676
0.675676
0
20
30.45
80
lg2461/NewSchoolSystem
3,719,441,702,092
7209c616c836949fe261657ef82ce6ead9fc64a2
266fa73b88b37b00629325fff79a56cb35f09591
/Main/migrations/0003_auto_20190515_1648.py
e07cf1e4c4d4352ab8812b5da88327e9b98062d1
[]
no_license
https://github.com/lg2461/NewSchoolSystem
6914204289fbe8ab21b5c696a9250ce2505265c4
47fe4137e5262c545a5def32e032d0e8f06b5ef3
refs/heads/master
2020-05-23T14:03:40.275289
2019-05-15T09:17:18
2019-05-15T09:17:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.7 on 2019-05-15 08:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Main', '0002_auto_20190515_1643'), ] operations = [ migrations.RemoveField( model_name='student', name='acc_type', )...
UTF-8
Python
false
false
966
py
26
0003_auto_20190515_1648.py
16
0.495859
0.463768
0
42
22
47
ricardobtxr/experiment-scripts
14,491,219,663,651
2f26e2a09105122d0a3a808a833837c42347b2dc
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf.0/gsn-edf_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=89/sched.py
00123b2ea4873d836bb6dc1848595a1daad95e86
[]
no_license
https://github.com/ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
-X FMLP -Q 0 -L 2 96 300 -X FMLP -Q 0 -L 2 70 400 -X FMLP -Q 0 -L 2 63 300 -X FMLP -Q 0 -L 2 59 250 -X FMLP -Q 0 -L 2 47 150 -X FMLP -Q 1 -L 2 45 175 -X FMLP -Q 1 -L 2 44 150 -X FMLP -Q 1 -L 2 42 300 -X FMLP -Q 1 -L 2 41 250 -X FMLP -Q 2 -L 1 38 250 -X FMLP -Q 2 -L 1 37 125 -X FMLP -Q ...
UTF-8
Python
false
false
476
py
6,754
sched.py
6,466
0.5
0.25
0
17
27
27
Feras-1998/graduation-project
17,282,948,439,126
8fcaaf8fa04f6d4e460b1729b0171ee9746f1735
895f5581d12379c507018f36c58b63920190f287
/ManageStore/migrations/0001_initial.py
ebeb93b0383979c7fd778b2e395b633f2db5b40e
[]
no_license
https://github.com/Feras-1998/graduation-project
c1a4d65449b573f5c10c4059d78b423f13ad9be8
b93e736ecc710d7ec1f31e4db30c3c5288a7bcf5
refs/heads/master
2023-03-19T12:06:53.199292
2021-03-21T17:56:55
2021-03-21T17:56:55
350,102,451
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.6 on 2021-02-06 22:02 import ManageStore.models from django.db import migrations, models import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ('ManageReview', '0001_initial'), ('ManageOffer', '0001_initial'), ...
UTF-8
Python
false
false
2,993
py
116
0001_initial.py
66
0.598396
0.579686
0
57
51.508772
241
stoic1979/django_autocomplete
17,497,696,795,851
5194a7111719cbfbbf26d61c6d5bd3705815a36c
d34a02058e33fe8af56b8c24821fc7d7cdb1aba6
/autocomp/views.py
1fc0219882b60c54022a8258c8c5986e9965a8af
[]
no_license
https://github.com/stoic1979/django_autocomplete
eec2b6297a28f41c460e115a50a48586a93e3a11
c32a3153b32a061855198a4043f0dce75ff4e720
refs/heads/master
2021-01-10T03:30:31.738947
2015-12-17T15:36:16
2015-12-17T15:36:16
47,451,546
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render_to_response from django.template import RequestContext from django.shortcuts import render from autocomp.forms import CustomerForm from autocomp.models import Customer from django.core import serializers from django.http import HttpResponse import json def home(request): c = {...
UTF-8
Python
false
false
1,172
py
11
views.py
7
0.698805
0.698805
0
39
28.923077
95
jose-ramirez/project_euler
13,855,564,537,775
6d7374cb650be9c9c4e85ebb0f6b04ce9c6901d7
6238cb85fb09c9960fa3e467fc155c5cac42fbcb
/sandbox/p148_sandboxing_2.py
20f31fe3da703fa9681133bcc1793ad365d33ca7
[]
no_license
https://github.com/jose-ramirez/project_euler
761afa2a28c623fd6ffcdc794cfb79e5b6b6a0d7
7ae482228191159b896ad87160c025aa22f6b3f9
refs/heads/master
2022-07-24T19:10:30.090282
2022-07-17T23:21:25
2022-07-17T23:21:25
15,190,382
0
0
null
false
2018-10-26T20:09:45
2013-12-14T18:20:56
2018-09-23T10:46:35
2018-10-26T20:09:45
247
0
0
0
Python
false
null
from functools import reduce def p_base(n, p): l = [] if n == 0: return [0] while n: l.append(n % p) n = n // p return l def T(m, p): b = p_base(m, p) inc_values = map(lambda x: x + 1, b) return reduce(lambda a, b: a * b, inc_values) # verifying everything is ok (s...
UTF-8
Python
false
false
1,316
py
98
p148_sandboxing_2.py
95
0.556231
0.5
0
45
28.266667
72
RobertSteinbach/EmailRulz
19,026,705,138,013
76567480c4a70dd6fa29c155145ff1ff16691f38
14ac07b191b6927817a4c5ed21c09d502182762f
/email_rulz.py
c6dd975449433596660afb11e89e321ecd439e21
[]
no_license
https://github.com/RobertSteinbach/EmailRulz
d9f2279bdb1456865340d42bcc27b2d9b05b2302
01521cf9dbbbe25deb7ebda196af2cb6f9f6e665
refs/heads/master
2023-04-20T05:16:40.174009
2021-05-11T16:12:08
2021-05-11T16:12:08
366,184,178
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://pypi.org/project/imap-tools/ IMAP Tools webpage from imap_tools import MailBox, AND, OR # Needs PIP INSTALL import imap_tools import imaplib import email.message import sqlite3 import time # for sleep import datetime import re # maybe import os # to get environment variables ...
UTF-8
Python
false
false
21,819
py
3
email_rulz.py
1
0.567762
0.562491
0
550
38.670909
124
locmai/FapPy
19,198,503,835,022
db4bf1fd50de0338d2a88ec1cf79cd3d714c4747
d5af6206f54d7b75759cfd2cd3e60310b86a13eb
/accounts/migrations/0002_auto_20180218_1651.py
a4d580f8e857f11b7c6424864cb50df455cdeb4b
[]
no_license
https://github.com/locmai/FapPy
6ab8e5019377abb5267be628c6bb774a41f21130
b93d54a52fe5f3093ec2494e94a1953e9c6c7104
refs/heads/master
2021-04-28T17:49:34.168069
2018-02-19T12:22:50
2018-02-19T12:22:50
121,861,295
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.2 on 2018-02-18 09:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('accounts', '0001_initial...
UTF-8
Python
false
false
1,114
py
34
0002_auto_20180218_1651.py
21
0.62298
0.605925
0
34
31.764706
151
couchemar/piter-united-itgm5-slides
10,746,008,212,024
4eb0b874cbc54b30bfc6f0b35df7275ca8198234
e3e72a6ffbf662b8c775b9dc0efd4d718694c95b
/my_math/my_math/__init__.py
fa2f805f1f79710b46bfe0d33756d852bfd56d85
[]
no_license
https://github.com/couchemar/piter-united-itgm5-slides
3c19c463ff7d28f02be2f9b8fdb4e49a2526b61a
93ed8570ad505c77edd26f66496156e591d85b2b
refs/heads/master
2021-01-10T13:14:26.898236
2015-06-05T21:46:35
2015-06-05T21:46:35
36,254,143
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from operator import add def plus(*args): return reduce(add, args)
UTF-8
Python
false
false
71
py
10
__init__.py
4
0.71831
0.71831
0
3
22.666667
28
mohamed-osama-aboelkheir/Toggl_to_Gcal
11,768,210,416,078
ca1509d3390970856864f5c2ec90eb2cc32a018a
78817a93e20218fb626da60c7f0b69e0be7443a2
/Toggl_to_Gcal.py
05ba05d55784e671089b1308ffb7d5dc914e3100
[]
no_license
https://github.com/mohamed-osama-aboelkheir/Toggl_to_Gcal
fc969b15739c9f5415cf79ce07390db4e9b6d53c
4ba2fc2d6e5e619c19a11292f6a677d6d83ff85c
refs/heads/master
2016-09-06T19:26:16.239860
2014-12-06T21:18:42
2014-12-06T21:18:42
27,649,341
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/python # # DESCRIPTION: # AUTHOR: Mohamed Osama (mohamed.osama.aboelkheir@gmail.com) # CREATED: Wed 26-Nov-2014 # LAST REVISED: Wed 26-Nov-2014 # ############## # DISCLAIMER # ############## # Anyone is free to copy, modify, use, or distribute this script for any purpose, and by any means. However, Pleas...
UTF-8
Python
false
false
3,194
py
6
Toggl_to_Gcal.py
4
0.687226
0.671259
0
90
34.477778
220
krummja/Anathema_v1
6,485,400,634,725
c5dfd57abba88c2164c5b3edc737aaed1ff71824
027fdb52e42dbf43c8a00eee977d3805edeb0aa0
/anathema/engine/core/options.py
853c7325bb8ececd5b404c59e66446a62713f6d0
[]
no_license
https://github.com/krummja/Anathema_v1
839b549bd8b9d07e2539d9c8fa26e602fe2d68fb
18b4ba93f4560bcd4adb571a5851d91106508c63
refs/heads/master
2023-05-09T14:22:48.484669
2021-05-17T01:36:20
2021-05-17T01:36:20
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tcod from tcod.tileset import Tileset from anathema.data import get_data class Options: CONSOLE_WIDTH: int = 110 CONSOLE_HEIGHT: int = 65 TILESET: Tileset = tcod.tileset.load_tilesheet(get_data("font_16.png"), 32, 8, tcod.tileset.CHARMAP_CP437) TITLE: str = "Anathema" VSYNC: bool = True ...
UTF-8
Python
false
false
463
py
95
options.py
88
0.673866
0.617711
0
17
26.235294
110
rwheeler-7864/simplenight-api
4,535,485,504,502
80856d76af0e051db96d11daef20d0da945319dc
e06c7fd594c52425ab7fc5498c07ae14daf9578b
/api/common/common_models.py
2910a4fa5443fc9b3d3c606f577ae8e2de9ebe08
[]
no_license
https://github.com/rwheeler-7864/simplenight-api
bc35560eca1e1c25092a1bcdc4af1633367413b8
602646911a0155df5b70991d1445c10cee18cd33
refs/heads/master
2023-03-12T03:10:51.516499
2021-02-25T20:40:44
2021-02-25T20:40:44
342,370,358
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from typing import List, Union, TypeVar, Type from pydantic.main import BaseModel class SimplenightModel(BaseModel): class Config: arbitrary_types_allowed = True class BusinessContact(SimplenightModel): name: str email: str website: str address: str phones: List[str] c...
UTF-8
Python
false
false
960
py
364
common_models.py
317
0.678125
0.677083
0
46
19.869565
88
dyseo/PublicLineService
19,447,611,918,458
c1997c772da5f71a2c9baeb0a646af778fc3a9e5
83884b21747856833fa9cafd267a81b59b2e4333
/LineService/f_LiffService.py
4998a657d1b04fee0da9aeef518d3183b923b206
[ "Apache-2.0" ]
permissive
https://github.com/dyseo/PublicLineService
7f05f4904f53a122ef03629d0063f7612021fe1f
fc305bcf3c2d2427f2cc5d424d2650fd947f042c
refs/heads/master
2021-01-16T01:34:30.104417
2020-03-17T06:14:15
2020-03-17T06:14:15
242,927,635
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Autogenerated by Frugal Compiler (3.7.1) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # from threading import Lock from frugal.middleware import Method from frugal.exceptions import TApplicationExceptionType from frugal.exceptions import TTransportExceptionType from frugal.processor impo...
UTF-8
Python
false
false
16,065
py
22
f_LiffService.py
20
0.568005
0.56564
0
488
31.918033
156
arcchang1236/Umbo_human_pose
16,063,177,712,369
43891c3ab2673bd6b9690d40aea42928e9a48c46
ac36a799cb32c382bd6ca55d17f861379c17e6cf
/3Dmodel/net/loss.py
4d6c17249b917886dd43d0792bd701f6bbbd5043
[]
no_license
https://github.com/arcchang1236/Umbo_human_pose
8d3b0d0b5be44fb49f3e13fc6ee118ae086e1f7e
630547653961365f733906e91a0dd787cb38161e
refs/heads/master
2020-04-23T06:09:32.943696
2019-04-04T12:21:10
2019-04-04T12:21:10
170,964,198
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import numpy as np # class JointsMSELoss(torch.nn.Module): # def __init__(self): # super(JointsMSELoss, self).__init__() # self.criterion = torch.nn.MSELoss().cuda() # def forward(self, output, target): # num_joints = output.size(0) # loss = torch.Tensor([0.]) # ...
UTF-8
Python
false
false
814
py
13
loss.py
13
0.594595
0.583538
0
27
29.185185
78
baagaard-usgs/geomodelgrids
1,374,389,575,031
cffab1bedea32addd6c64dd2e316f396200b5839
fb5b204943101746daf897f6ff6e0a12985543c3
/tests/experiment/test_fifo.py
f90a8f26c50571bade2b0866c62a849734c65b37
[ "LicenseRef-scancode-warranty-disclaimer", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
https://github.com/baagaard-usgs/geomodelgrids
911a31ba23ca374be44873fdeb1e36a70ff25256
7d0db3c4ca1a83fea69ceb88f6ceec258928251a
refs/heads/main
2023-08-03T07:52:25.727039
2023-07-27T21:56:19
2023-07-27T21:56:19
97,262,677
5
3
NOASSERTION
false
2023-03-23T03:34:45
2017-07-14T18:34:38
2023-03-15T02:21:09
2023-03-23T03:34:43
3,525
5
3
6
C++
false
false
#!/usr/bin/env python3 import os import numpy import threading FILENAME_IN = "test_in.txt" FILENAME_OUT = "test_out.txt" def writer(data): print("Starting writing") with open(FILENAME_IN, "w") as fout: numpy.savetxt(fout, data) print("Finished writing") return def processor(): print("Sta...
UTF-8
Python
false
false
1,289
py
246
test_fifo.py
120
0.664081
0.660978
0
60
20.483333
88
AnkitAutwn/Helo
19,378,892,462,959
a53492264f73cacc37d155272123f8fac77ed5db
fe617fd2067e7e9b228b9d4d34c9ebd1e6ef7483
/recognise/models.py
f9db2152867ef2c95860fe0248bfde278de0510c
[]
no_license
https://github.com/AnkitAutwn/Helo
a45132c5443b0dfa0d9f5b40d7712d29f22ff17d
46b3a50869d119e0911a278201e7633d279f0363
refs/heads/main
2023-02-04T05:55:33.343757
2020-12-29T10:58:50
2020-12-29T10:58:50
323,868,647
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from PIL import Image class Images(models.Model): name = models.CharField(max_length=50,default='') file = models.ImageField() def __str__(self): return self.name def save(self,*args,**kwargs): super().save(*args, **kwargs) img = Image.open(self.fi...
UTF-8
Python
false
false
489
py
22
models.py
18
0.599182
0.570552
0
18
26.222222
53
Msksgm/atcoder_msksgm_practice
15,109,694,949,473
e610635c046d2abf1d97e34eff67904bf470b2f7
a35b24c8c3c5bdf861f3cda9396f2fa6795ec929
/arc/037/B.py
d2f29c02dedf822408289a080d8c88f0829860d2
[]
no_license
https://github.com/Msksgm/atcoder_msksgm_practice
92a19e2d6c034d95e1cfaf963aff5739edb4ab6e
3ae2dcb7d235a480cdfdfcd6a079e183936979b4
refs/heads/master
2021-08-18T16:08:08.551718
2020-09-24T07:01:11
2020-09-24T07:01:11
224,743,360
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def dfs(vs): check = [] edges = [] for i in vs: print(i) while vs: h, w = vs.pop(0) edges.append(h) if w in check: continue else for v in vs: if v[0] == h: def main(): n, m = map(int, input().spl...
UTF-8
Python
false
false
470
py
234
B.py
231
0.393617
0.389362
0
28
15.75
60
liousAlready/NewDream_learning
6,004,364,281,590
03d87b33e5ea933c84086608ae8c07689623498c
b5479a025524c1387d3ba14f4fba7173f1d2df31
/老师の课堂代码/day10/day10_selenium3.py
0c844650fe18b590f0cb27843b107218f1632fcb
[]
no_license
https://github.com/liousAlready/NewDream_learning
063f5e225d62eec8285e69bb5ba3bff850096ca3
7b790f675419224bfdbe1542eddc5a638982e68a
refs/heads/master
2023-06-30T08:28:34.949464
2021-08-01T00:42:17
2021-08-01T00:42:17
391,489,851
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' @File : day10_selenium3.py @Time : 2021/5/16 10:57 @Author: luoman ''' import time # import lib from selenium import webdriver #selenium进行元素识别的方法 --- 7种方法 def demo1(): driver = webdriver.Chrome() #driver.get('http://www.xmxbbs.com') driver.get('http://www.baidu.com') # 1、通过id方法 #driver.find_e...
UTF-8
Python
false
false
4,592
py
189
day10_selenium3.py
179
0.66091
0.644737
0
88
40.465909
124
drachens/Tarea1-Cripto
7,696,581,406,602
47ff8d20eb8a630731d6e382142e037992dba8d0
d98bc8f1be790e61a3a6c2d007385cb3cbe7cc41
/Growbarato/singup_3.py
f4e1e1c68234eaac794aa4ef18d5f1aa5b190d3f
[]
no_license
https://github.com/drachens/Tarea1-Cripto
d62d26ea1c95f3baaa10494b647f4d4a539435c6
f859e53ba9236fa90df10aa78bf4c289ec863b89
refs/heads/main
2023-08-26T09:06:28.957529
2021-10-11T02:22:33
2021-10-11T02:22:33
415,752,738
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Firefox() def pass2048(repeticiones): r = open("../generate.txt","r") for linea in r: passw = linea.strip("\n") passw = passw*repeticiones return passw passw = pass2048(15) emailw="f...
UTF-8
Python
false
false
1,343
py
14
singup_3.py
8
0.696495
0.680835
0
34
38.323529
107
dennis-wei/korean_verb_lookup
17,403,207,486,686
a57eac21ed4653e361a0454806e57f631a2f1fa2
4382e64ada89bd24b6cc1135c731e0682146dac3
/verb_lokup.py
8408f1fabb33fe034ace3f31f6e27852053fbd47
[]
no_license
https://github.com/dennis-wei/korean_verb_lookup
522caf770237796129765f87f9496154cc66733c
373233328dfc67697b87dbbd12e8a3fb2aee7f32
refs/heads/master
2020-06-16T07:13:12.440727
2016-11-30T23:23:32
2016-11-30T23:23:32
75,236,004
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from urllib2 import urlopen from bs4 import BeautifulSoup import csv FILE_NAME = "verb_and_tense.txt" BASE_URL = "http://dongsa.net/?search=" with open(FILE_NAME, 'rb') as f: row_list = [] reader = csv.reader(f, delimiter = ",") for row in reader: row_list.append(row) ...
UTF-8
Python
false
false
824
py
4
verb_lokup.py
1
0.627427
0.621359
0
29
27.37931
76
adsofron/python-examples
17,197,049,082,547
b787b41c6544b6a7f01ee88a6e8f608613573deb
b44bc437f7b4b94f4e9f8f885feb68fe0198f47e
/print_grades.py
3699767f21316f13b4ea2c701a33a49ffe05d80f
[]
no_license
https://github.com/adsofron/python-examples
b7f3a7ce89a96b9fadbbf03b29b961954d68e8b9
8f0339824c13ce28eaa807a7fd8fa60deae20ba4
refs/heads/master
2021-01-24T00:02:56.509724
2018-02-25T16:20:33
2018-02-25T16:20:33
122,746,827
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def print_grades(grades_input): for i in range(len(grades_input)-1): print(grades_input[i]) print_grades(grades)
UTF-8
Python
false
false
188
py
41
print_grades.py
38
0.643617
0.478723
0
7
25.857143
66
Idomass/red_alert_analyzer
1,400,159,375,407
e3012b1f3a31d53ba176c4227932a757a88ba6a7
998429df0afad707a7c4217f5bee8edb3b669727
/analyzer.py
456f2c9d70de9f7b31276bd15d89fcf85fe90fd8
[]
no_license
https://github.com/Idomass/red_alert_analyzer
b2ad5ad81edf0e193ba9c845f23d8f15a30c0b99
3d4de19ec8b04813021f06adb9aaececd4f4d2d5
refs/heads/master
2023-04-25T07:24:03.220919
2021-05-14T15:15:13
2021-05-14T15:36:25
367,398,570
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python3 import argparse import datetime from oref_analyzer import OrefAnalyzer def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--language', dest='lang', default='en', choices=['en', 'he']) parser.add_argument('--location', help='Location to show history of red al...
UTF-8
Python
false
false
656
py
11
analyzer.py
7
0.66311
0.650915
0
20
31.8
97
oleg-chubin/let_me_play
14,680,198,229,779
c8bdab8c57df5640cdde6ecb5432be8819a21b84
2b6cbe0718b1074a2c9097ed7d15810a0a93d0c7
/let_me_auth/forms.py
cd338abd3dce8c4320ea03b83cbab0675c52672c
[ "Apache-2.0" ]
permissive
https://github.com/oleg-chubin/let_me_play
fcc297a65400a0863ccb91e146a5ed4b16151ce6
f567607c0d5d38b7519104c355e3738e01f8c6c9
refs/heads/develop
2020-12-24T05:53:49.724646
2017-09-24T20:50:41
2017-09-24T20:50:41
30,723,993
2
0
null
false
2017-09-24T20:50:42
2015-02-12T21:09:06
2017-09-02T19:24:39
2017-09-24T20:50:42
1,632
1
0
40
Python
null
null
''' Created on Jul 4, 2015 @author: oleg ''' import os import time from django import forms from django.contrib.gis import forms as geo_forms from django.utils.translation import ugettext_lazy as _ from leaflet.forms.widgets import LeafletWidget from floppyforms import widgets as floppyforms_widgets from let_me_auth...
UTF-8
Python
false
false
10,672
py
197
forms.py
84
0.603823
0.599138
0
286
36.314685
95
bijanagahi/Advent-Of-Code-2019
3,805,341,042,793
e3652f3c6f8885c154326a8442909110edd9741e
72696bc2548cf394267d2c8dc6c9bb5c2d48cc99
/Day4/day4_part1.py
11d7235327cdaffaadb29d2c7dd24ca3892d4515
[]
no_license
https://github.com/bijanagahi/Advent-Of-Code-2019
44d5f21e241b71a3be377099536237ea2d26829b
96884a81988090177828901d037230d9f6b44ef3
refs/heads/master
2020-09-27T18:50:09.990238
2019-12-22T20:17:03
2019-12-22T20:17:03
226,584,225
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://adventofcode.com/2019/day/4 # --- Day 4: Secure Container --- # # Authors: Bijan Agahi range_low = 347312 range_high = 805915 valid_passwords = 0 def validateGuess(guess): if not len(set(str(guess))) < 6: return False guess = str(guess) prev = guess[0] inc = int(guess[0]) flag = False for char in g...
UTF-8
Python
false
false
660
py
13
day4_part1.py
13
0.665152
0.628788
0
39
15.897436
41
baluneboy/pims
7,035,156,455,009
56ba407d83be67da5ccf5b4bfc04d146b582b566
00d7e9321d418a2d9a607fb9376b862119f2bd4e
/notable/note_config.py
4025ed7d24a5f52679c87c29f3389413822254f8
[ "MIT" ]
permissive
https://github.com/baluneboy/pims
92b9b1f64ed658867186e44b92526867696e1923
5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13
refs/heads/master
2021-11-16T01:55:39.223910
2021-08-13T15:19:48
2021-08-13T15:19:48
33,029,780
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from ConfigParser import SafeConfigParser from os.path import dirname, join, expanduser # NOTE: the files in config.read are optional, but with each that exists # subsequent one will override earlier one(s) on field-by-field basis """ GET THESE FILES IN PLACE TO SEE EXAMPLE OF LAYERED APP...
UTF-8
Python
false
false
1,368
py
725
note_config.py
626
0.644737
0.638889
0
48
27.520833
75
SAEONData/Open-Data-Platform
4,398,046,556,755
f928c104c79f29958ab0e81dc2d2d7a4937b433f
c44a3227d1c2b3a892a9a52438a324e675485ff7
/odp/job/publish/main.py
f575155d7f2a5f4027563c9fe4487d407f349aa9
[ "MIT" ]
permissive
https://github.com/SAEONData/Open-Data-Platform
4b87aece6a83befd82a67f97d4ae330380c1f947
50c52bf476fd5c82afdf44379805f8790bb20319
refs/heads/main
2022-11-07T00:30:38.697706
2022-11-04T15:09:37
2022-11-04T15:09:37
251,641,495
2
1
MIT
false
2022-09-20T12:35:56
2020-03-31T15:12:19
2022-09-01T16:26:02
2022-09-20T12:35:17
2,678
2
0
7
Python
false
false
#!/usr/bin/env python import logging import pathlib import sys from sqlalchemy import select rootdir = pathlib.Path(__file__).parent.parent.parent.parent sys.path.append(str(rootdir)) from odp.db import Session from odp.db.models import Catalog from odp.job.publish.datacite import DataCitePublisher from odp.job.pub...
UTF-8
Python
false
false
973
py
209
main.py
124
0.71223
0.71223
0
43
21.627907
72
SergioAnd95/SimpleMessage
876,173,337,370
7d040907a7bfb1949d912a7f3311a1991ecb5d9b
71d0c489fa0a5464bdaa290b72188db325dd0cdd
/chat/forms.py
6e425950af90e8ef8dd0354aab7d6b7de93891c9
[]
no_license
https://github.com/SergioAnd95/SimpleMessage
edf35d8bcfbad35a4da47785dcf9dc098f23d8ff
b062989bcf45eef6d5c79617b077e26a11351475
refs/heads/master
2021-01-15T10:35:03.765370
2017-08-08T22:07:47
2017-08-08T22:07:47
99,588,250
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from .models import Message class MessageForm(forms.ModelForm): class Meta: model = Message fields = ('text', ) widgets = { 'text': forms.Textarea(attrs={'placeholder': _('Текст сообщения')}) ...
UTF-8
Python
false
false
339
py
12
forms.py
6
0.630769
0.630769
0
13
24.076923
79
recuraki/PythonJunkTest
970,662,614,476
5d98d3cc411b0f77fd127c1e840cb8860daf3f4e
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/_codeforces/1203_a.py
b7730f5606b08663544fca268bcc56d0e9c0d21f
[]
no_license
https://github.com/recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): q = int(input()) for qq in range(q): n = int(input()) dat = list(map(int, input().split())) can1 = True can2 = True cur = dat[0] for i in ra...
UTF-8
Python
false
false
1,681
py
1,170
1203_a.py
1,143
0.475821
0.444776
0
78
20.474359
59
enterpreneur369/holbertonschool-higher_level_programming
9,191,230,046,819
df5d9ecf45fdf6db0c462fec0b8b7f0ede5b8304
c9ad6ad969de505b3c8471c6f46dfd782a0fb498
/0x04-python-more_data_structures/102-complex_delete.py
d0afc9a2d6047458a9a6dfeef497d8b4565c075d
[]
no_license
https://github.com/enterpreneur369/holbertonschool-higher_level_programming
002fd5a19b40c8b1db06b34c4344e307f24c17ac
dd7d3f14bf3bacb41e2116d732ced78998a4afcc
refs/heads/master
2022-06-20T00:57:27.736122
2020-05-06T14:26:10
2020-05-06T14:26:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 """complex_delete Function to delete some keys of the dictionary """ def complex_delete(a_dictionary, value): ks = [] for k, v in a_dictionary.items(): if a_dictionary[k] == value: ks.append(k) for k in ks: del a_dictionary[k] return (a_dictionary)
UTF-8
Python
false
false
315
py
169
102-complex_delete.py
136
0.603175
0.6
0
15
20
46
junnyhe/Code
11,948,599,049,418
da79eee371402f795ea1011704f3cb38394f5d75
c89d50f7554f2eb551e5a493b7b9614c478a8ac2
/deprecated/deprecated.src/step1_data_rollup_merge/step1d_merge_signal_threatmetrix.py
7f5d634a391985c95c7a7bad5ac1cf4c3c55ebef
[]
no_license
https://github.com/junnyhe/Code
c741d5f6b559ef0d4fbb37f8b67f5dd59d89b3d4
b698e4831bc240dbc1229c21c71ceb88733aabd2
refs/heads/master
2020-04-11T09:44:22.451742
2015-08-30T02:28:51
2015-08-30T02:28:51
31,276,029
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import csv import gzip import os import sys import time import datetime sys.path.append("/Users/junhe/Documents/workspace/fraud_model/src/model_tools") sys.path.append("/Users/junhe/Documents/workspace/fraud_model/src/csv_operations") import csv_ops from csv_ops import * day=datetime.date(2014,11,5) #start date nDays=...
UTF-8
Python
false
false
1,623
py
128
step1d_merge_signal_threatmetrix.py
88
0.716574
0.704868
0
39
40.641026
116
j-himanshu/Customs-Management-Project-Amigo-
12,549,894,462,064
bc51038907ddc1d3340bd9e2fcac7b2b304ad744
30961e982a8ad06000a85f54cc1bc5c14118602c
/cli.py
b11811570aa17da7bbb078484cef7eb9dc55f5b2
[]
no_license
https://github.com/j-himanshu/Customs-Management-Project-Amigo-
8fae16343eb72254d027f9f5968edc8361fb8f9b
204c2197b836df7ef71a9e0ba91b74ea753b04fa
refs/heads/master
2020-06-14T09:36:05.351647
2016-11-30T16:30:04
2016-11-30T16:30:04
75,204,786
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import Tkinter as tk import MySQLdb import traceback import os from server import * from query_box import query_box class CLI: def __init__(self, parent): self.parent=parent self.frame=tk.Frame(self.parent) self.entryvar=tk.StringVar() self.entry=tk.Entry(self.frame, t...
UTF-8
Python
false
false
2,530
py
28
cli.py
25
0.550593
0.533597
0
69
34.695652
138
tidebam/learn_torch
11,321,533,837,402
99deaf6dadd2589b483e75a224346bb4710bf18f
bd9b0dc2e5a6e285d693b8e32be46c3c4d039208
/dataloader.py
ec1738c43b55c3b5dc9da8705fa359ff789d8fdd
[]
no_license
https://github.com/tidebam/learn_torch
797bcb17ea12cb11cfb8bfa75a43963dac99baa5
d031332a916fd1cd9eea200f4b000c562cdf6594
refs/heads/master
2023-07-24T14:25:15.036345
2021-09-13T11:33:17
2021-09-13T11:33:17
405,808,895
0
0
null
false
2021-09-13T11:33:18
2021-09-13T02:32:53
2021-09-13T11:22:07
2021-09-13T11:33:17
11
0
0
0
Jupyter Notebook
false
false
import torchvision from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter dataset_transform = torchvision.transforms.Compose([ torchvision.transforms.ToTensor() ]) # Test Dataset test_set = torchvision.datasets.CIFAR10(root="./dataset", train=False, transform=dataset_transform, d...
UTF-8
Python
false
false
530
py
11
dataloader.py
10
0.78937
0.779528
0
15
32.933333
114
Subaru-PFS/ics_iicActor
137,438,988,498
e6771060e0fb41517c48d0548d74ee2ea61c5433
994023311ccdc9725995c7dcc44bea7e57bb823c
/python/ics/iicActor/utils/exception.py
76375e3ff1232a44741033c0a75e82450063ec6b
[]
no_license
https://github.com/Subaru-PFS/ics_iicActor
1bc3b38c8a01fd511849e0b13477d559936d5077
4de50d621193346af0933e85ecdc6fe8b82eed3e
refs/heads/master
2023-08-05T12:14:11.834484
2023-07-26T06:37:44
2023-07-26T06:37:44
204,379,110
0
0
null
false
2023-09-13T17:17:04
2019-08-26T02:20:20
2021-12-24T21:07:34
2023-09-13T17:17:00
670
0
0
0
Python
false
false
from ics.iicActor.utils.lib import stripQuotes class IicException(Exception): def __init__(self, reason="", className=""): self.reason = reason self.className = className Exception.__init__(self) def __str__(self): className = self.__class__.__name__ if not self.className else...
UTF-8
Python
false
false
1,678
py
48
exception.py
38
0.668653
0.668653
0
55
29.509091
85
EisenHao/Python_Learning
12,592,844,114,529
a1adfc5896f10a06ccc3421e932088bb510e595b
45ca5dba64c2f2beb8b0a2bd3579c9029f4035d3
/PythonApriori/ID3.py
76d5fd3aa951e3a8a03c5816a03f41ec6506b0ea
[]
no_license
https://github.com/EisenHao/Python_Learning
ffd1e04aad7bef131dd80b3a8303803c2bc15125
b10d42faa7df5e1cd9f7780cd0953a66079c79d3
refs/heads/master
2020-04-02T21:40:35.212240
2019-04-30T10:47:38
2019-04-30T10:47:38
154,807,867
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 # 数据挖掘与知识发现第5次作业-黎豪-18101223769: # 编程实现ID3决策树建立算法 # 天气因素有温度、湿度和刮风等,通过给出数据,使用决策树算法学习分类,输出一个人是运动和不运动与天气之间的规则树。 import matplotlib.pyplot as plt from math import log #计算log2() from pylab import * # 计算样本的信息期望 def calcH(dataSet): numOfRow = len(dataSet) #得到行数,数据量个数 #为所有的分类类目创建字典 # labelCounts: ...
UTF-8
Python
false
false
8,997
py
20
ID3.py
14
0.651204
0.6351
0
213
33.084507
97
raunak222/Water-Crisis
4,131,758,570,400
e8a41000b60069002c8d48d27696830b8aade88a
95869472de2cd0b2fa4fed0461860349370a9d4e
/Website/cgi-bin/first.cgi
3af556af7ae6f9fe62980af5efb18881dfbaf4cd
[]
no_license
https://github.com/raunak222/Water-Crisis
74e1df569a5ede10ec5d18909781cea486c745c1
cd7b5eaa96869c27a8c93e420523d48593478fea
refs/heads/master
2020-07-03T00:18:02.068301
2019-08-11T05:41:20
2019-08-11T05:41:20
201,722,023
0
0
null
true
2019-08-11T05:31:16
2019-08-11T05:31:16
2019-08-11T04:14:58
2019-08-11T04:14:56
1,302
0
0
0
null
false
false
#!/usr/bin/python3 import cgi #import os import cgitb # cgi trace back--->>To show common error in webbrowser cgitb.enable() import subprocess #import pandas as pd #import matplotlib.pyplot as plt print("content-type:text/html") print("") web_data=cgi.FieldStorage() # This will collect all the html code with data ...
UTF-8
Python
false
false
584
cgi
2
first.cgi
1
0.705479
0.655822
0
23
24.391304
87
janathent/GMM
18,073,222,383,127
3ec14033705fbd9e32de2a90ca9c6d35589b4216
5c91d522f97426ecba02cd6d9ec975b3783da141
/GenerateVideo.py
3aa1a81700ba4f0e17766ae810827fde3b3e609c
[]
no_license
https://github.com/janathent/GMM
530480e3591dfa3ab67e9e63611d782be9e5a545
3d5c56a944fe6576d0f73bb707a5210188487a08
refs/heads/main
2023-01-01T11:05:38.929969
2020-10-26T03:00:57
2020-10-26T03:00:57
305,720,968
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import glob import cv2 import numpy as np def generate_video_mog2(): img_list_mog2 = glob.glob('MOG2_OUTPUT/*.jpg') # 读取生成的图片 print(img_list_mog2) img_list_mog2 = sorted(img_list_mog2) img_list_wavingtress = sorted(glob.glob('WavingTrees/b*.bmp')) print(img_list_wavingtress) # 读取一张图片 img...
UTF-8
Python
false
false
2,670
py
6
GenerateVideo.py
5
0.637136
0.605583
0
80
29.875
79
xhr-git/TestCase-DSL
6,923,487,285,288
4c0fd5b688f60ee47a3e5e92a50f532dad3dd04b
c4f6a13c52ba5cdb6333f34cff4ffc0729eabeec
/auto.py
cafda1a388a24615201ff015744b674aff85e0c4
[]
no_license
https://github.com/xhr-git/TestCase-DSL
6d3ed613015ac9aa24cbed0367b5631a54f1addd
3b6d54f2182b8d889af06b17589ad20eb4cb2a75
refs/heads/main
2023-03-03T09:51:43.079772
2021-02-10T08:39:24
2021-02-10T08:39:24
337,663,765
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from TestStep.core.tc_to_TestStep import get_test_step import sys def __main(file: str, show_desc: bool = False): ret = 0 t = get_test_step(file, show_desc) print() print('-' * 50) print() if show_desc: t.show_desc() else: ret = t.do_test() if ret == 0: ...
UTF-8
Python
false
false
859
py
21
auto.py
20
0.46915
0.45518
0
40
20.45
54
polyeffects/digit_ui
6,236,292,516,263
7f0d9e4460e939281fe34139eee2a216aaad0c37
87d4fb8b77749dae1ae43e4d6055a712b8a974dd
/ingen.py
b06af0c83637be097cbd7c50780428f2580d7879
[]
no_license
https://github.com/polyeffects/digit_ui
558dfb8eb31a3354c5190b9c338679ecf61f0ad0
867e8d3ea386722a0a7bd6256db9ad8ec0798003
refs/heads/master
2023-08-28T18:51:30.254358
2023-07-28T03:42:00
2023-07-28T03:42:00
246,703,879
13
5
null
false
2022-12-14T14:43:15
2020-03-11T23:53:19
2022-12-12T21:14:30
2022-12-14T14:43:14
1,429
14
4
21
QML
false
false
#!/usr/bin/env python # Ingen Python Interface # Copyright 2012-2015 David Robillard <http://drobilla.net> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all cop...
UTF-8
Python
false
false
6,728
py
80
ingen.py
23
0.548157
0.54236
0
260
24.876923
83
Akash-Ubale/Complete-Machine-Learning
17,514,876,634,591
dd99b0d1fb55608fb0d33e797f5577fc56ab9609
1a98ae030a7ba6f1678be68e1c1e386074f54942
/11 Ensemble Techniques/EnsembleLearning_And_RandomForest/Random_forest_deployment/app.py
c92fdef66289ae67e18021d551695a459bdb567a
[]
no_license
https://github.com/Akash-Ubale/Complete-Machine-Learning
f1c2f59d085cd25ce88156c7e4118cd2bc91b530
ae27b564f4f98ec2e58015594e43b036ebe3b15a
refs/heads/master
2023-01-13T15:42:03.792871
2020-11-17T15:48:34
2020-11-17T15:48:34
297,038,736
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import pickle from wsgiref import simple_server from flask import Flask, request, app from flask import Response from flask_cors import CORS import pandas as pd app = Flask(__name__) CORS(app) app.config['DEBUG'] = True @app.route("/predict", methods=['POST']) def predictRoute(): try: if...
UTF-8
Python
false
false
1,481
py
50
app.py
5
0.55503
0.542201
0
56
24.482143
55
choiSUNJUNG/ai
9,792,525,443,778
4d883c0f2f33dca627aa6606f5d230cacc8cad91
a1965ac236a634861705adf4d97b8abbe2cf7650
/10_ai_softmax.py
a536e5e19c022d9a255e11ec7e81b085a47eea9f
[]
no_license
https://github.com/choiSUNJUNG/ai
e6c2d8356bd5f89c64a092a128f0011ed8ec0a5b
8d4b651680a38fc1c0c79aa7cd47e953795cfa61
refs/heads/main
2023-06-12T07:39:30.811088
2021-07-05T07:51:03
2021-07-05T07:51:03
376,518,686
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt def softmax(x): return np.exp(x) / np.sum(np.exp(x)) x = np.arange(-10, 10, 0.1) print(x) y = softmax(x) print(y) plt.plot(x, y) plt.title('Softmax Function') plt.show()
UTF-8
Python
false
false
238
py
9
10_ai_softmax.py
9
0.634454
0.609244
0
13
16.461538
40
yureistar/graphic_exodus
2,491,081,033,917
477bef10426a70eafa738a049f0dc8a6a6cfe35a
d8c8f036dabba93598451ca59744682f2d449eb4
/draw.py
53b8595e35f011c1a94eb30a42f46d0b4f5ca8e3
[]
no_license
https://github.com/yureistar/graphic_exodus
d191376554337fd8361517bb7420067383ae2ebf
81f312121f2a105ac3b57d50bec363fa8887c0c8
refs/heads/master
2021-01-23T00:48:27.923391
2017-06-12T15:47:17
2017-06-12T15:47:17
92,846,516
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from display import * from matrix import * from math import * from gmath import * def lighting(polygons, i, color, shadeType, ambient): I = [0,0,0] aC = 0.1 dC = 0.3 sC = 0.5 pointL = [[255,255,255], [0, 0, 0]] normal = calculate_normal(polygons,i) view = [250,250,0] if shadeType == 'fl...
UTF-8
Python
false
false
12,777
py
2
draw.py
1
0.447836
0.403538
0
427
28.908665
99
HongyuHe/leetcode-new-round
17,746,804,888,419
407df985075f4463b8d3da9380e8cb92d1e8aae9
2b44fc688cef32f96bfff7c97917788bd219788e
/trees/226_invert_bst.py
fa58af3931f8f6752402f8af6a6cf5d8b91bb633
[]
no_license
https://github.com/HongyuHe/leetcode-new-round
536725f77c764f7e32f062a20d8f6eed601e6b57
59c4af3b94771deb4f3c4a4fabbdc96c918312c8
refs/heads/main
2023-08-26T17:55:29.568825
2023-08-25T20:28:30
2023-08-25T20:28:30
231,279,414
7
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: queue = [root] while qu...
UTF-8
Python
false
false
1,044
py
108
226_invert_bst.py
107
0.476054
0.469349
0
34
29.735294
73
kel89/Schedule-Optimizer
10,746,008,198,788
6bb9a1facd3d55ba2112f42e21119bd0a3317985
905e8f033dad1dfd32eed18694b1893a3d6d88d1
/Requirement.py
1878c2d307d0258384d08dc7f0a4d9a1d6d277cf
[]
no_license
https://github.com/kel89/Schedule-Optimizer
1ea076427546ce266475ef117295b7405b7e9a2b
e684c3c893261e3003a33db951ecb3d25a97badc
refs/heads/master
2020-03-17T23:54:30.027554
2018-05-19T14:12:44
2018-05-19T14:12:44
134,067,277
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Kenneth Lipke # 3/27/2018 # Requirement.py """ Containts Requirement class, which stores grade level requirements """ import tkinter as tk class MiniRequirement(): """ Small version of Requirement, just has not tkinter relation so that it can be pickled """ def __init__(self, Req): """ Takes in an instan...
UTF-8
Python
false
false
2,058
py
12
Requirement.py
9
0.667153
0.654033
0
93
21.107527
81
rduplain/programming-contests
10,316,511,467,860
29f4cc6900362023533e80c9a3317de3029c5db9
662f30b53e92771f411e7a79a9e6cb7647fcbdb8
/filip/main.py
2eeac41bf5b917c253791915318082b699a455cf
[]
no_license
https://github.com/rduplain/programming-contests
e4581ce87e703324fac2dddeeac67af2fa62882e
903fa4722d25831a194abdc97936ca329b2ef410
refs/heads/master
2021-10-08T21:50:59.765305
2018-12-18T06:29:11
2018-12-18T06:29:11
108,608,895
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys def flip(s): return ''.join(reversed(s)) def filip(fd): x, y = fd.readline().strip().split(' ') x, y = int(flip(x)), int(flip(y)) return max((x, y)) def main(fd): print(filip(fd)) if __name__ == '__main__': main(sys.stdin)
UTF-8
Python
false
false
266
py
45
main.py
19
0.526316
0.526316
0
19
13
43
bissim/FLY-graph
10,471,130,314,213
9455cdd37abe5d8381407f1c07d7a66740f0e7d0
508467e2cc9f3172e34f5b965e6f2495b21fa35d
/python/tests/fly/graph/test_graph_connectivity.py
ae6082f8b958d2da912e395d86c932e1e1bb6bf2
[ "MIT" ]
permissive
https://github.com/bissim/FLY-graph
cfdf9fc25427842f99c4b76a2146315b1f370ca6
8bcc3226a525e6abafe64ac6c7b63584a7f8206e
refs/heads/master
2021-06-23T07:39:05.036245
2021-03-13T18:20:03
2021-03-13T18:20:03
205,849,337
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! python3 ''' Graph connectivity test ''' import unittest from unittest import main from fly.graph.graph import Graph from test_graph import GraphTestCase class GraphConnectivityTest(GraphTestCase): """ """ _TEST_TITLE = "GRAPH CONNECTIVITY TEST" def test_isConnected(self): """ """...
UTF-8
Python
false
false
384
py
61
test_graph_connectivity.py
35
0.632813
0.627604
0
24
15
43
vanhoefm/krackattacks-scripts
6,760,278,561,152
8cfb863a635a6d27bced7d57ef8abf345b47da56
4674b8088ffdf55905d44995f08a0792a3e4cd5c
/tests/hwsim/test_wpas_mesh.py
c3cfb7b0b46e0b10c2feb67c2339e1cd10c27127
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
https://github.com/vanhoefm/krackattacks-scripts
41daca791638a92aa4cfa68a582e46119037560e
4b78669686f74efe664c6543b1b5b1616b22f902
refs/heads/research
2022-10-29T20:21:11.512335
2022-10-16T18:44:41
2022-10-16T18:44:41
107,408,514
2,184
577
NOASSERTION
false
2021-07-06T12:43:49
2017-10-18T12:58:08
2021-07-04T15:45:56
2021-07-06T12:43:48
17,680
3,008
753
2
C
false
false
# wpa_supplicant mesh mode tests # Copyright (c) 2014, cozybit Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging logger = logging.getLogger() import os import struct import subprocess import time import hwsim_utils import hostapd from wpasuppli...
UTF-8
Python
false
false
85,944
py
420
test_wpas_mesh.py
145
0.609839
0.57392
0.000256
2,308
36.237435
196
tanmaymane18/zabbix-data-visualisation
5,677,946,770,278
e35e495e5611cb3e986662a7fc8f1eb382e63a53
ebc0a0905655c5850108d7e45c4602e8622fd52e
/app.py
333a1452a3a678bcca0e49e0c71af78bf4ac7b98
[]
no_license
https://github.com/tanmaymane18/zabbix-data-visualisation
bfa6ae500cfdce7d8796f53f319b1c8d104711ec
0212401e9c3806d51a345fd2b7cf42c25ece8d2e
refs/heads/master
2020-04-04T10:35:31.105925
2018-11-02T12:03:30
2018-11-02T12:03:30
155,860,256
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' importing required modules datetime for date data type dash, dash_core_compnents, dash_html are required to design the website dash.dependencies are required for managing input and output pymysql for connecting to database ''' import datetime as dt import dash from dash.dependencies ...
UTF-8
Python
false
false
11,223
py
2
app.py
1
0.516885
0.50646
0
204
54.004902
326
spkcspider/spkcspider
5,093,831,237,184
fa90a4672d2c88bee59a4a9c9b77063d7fa47d1d
3dd165cb7dbda01992c7b65b96c76b9a9945b344
/spkcspider/apps/spider_filets/migrations/0009_textfilet_push.py
db17467ad6a40fff16dc586312fc67d7ac84b6f6
[ "MIT" ]
permissive
https://github.com/spkcspider/spkcspider
41f6f4fc86e6a329c730883b4407c03b47c213ce
97e448b4da412acebd66c4469c7fcdd07bf90ed2
refs/heads/master
2023-01-27T12:47:47.118970
2020-12-04T17:01:39
2020-12-04T17:02:01
108,724,496
5
0
MIT
false
2020-12-04T17:12:19
2017-10-29T10:27:27
2020-12-04T17:11:41
2020-12-04T17:11:34
3,901
5
0
0
Python
false
false
# Generated by Django 2.1.5 on 2019-01-09 19:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spider_filets', '0008_auto_20181121_0749'), ] operations = [ migrations.AddField( model_name='textfilet', name='push...
UTF-8
Python
false
false
452
py
262
0009_textfilet_push.py
198
0.615044
0.54646
0
18
24.111111
111
cadeef/bear-exporter
14,697,378,120,972
3e44032794fecc9a514ae8d24a95f156bce4f57c
c7d97f228f78579d87be5f41a43e6688039095f7
/bear_exporter/note.py
575a352b2d81cabe23339c5021ca3af91df9957e
[]
no_license
https://github.com/cadeef/bear-exporter
c7201f62bfe9f076c1beccd47c999ecb87078130
ed3825c05c51776c2a091a9156e5ea4c76774bad
refs/heads/main
2023-02-04T09:07:49.066802
2020-12-26T03:22:34
2020-12-26T03:22:34
296,979,565
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from peewee import AutoField, BlobField, BooleanField, CharField, IntegerField from bear_exporter.base import AppleTimestampField, BaseModel class Note(BaseModel): archived = IntegerField(column_name="ZARCHIVED", null=True) archived_date = AppleTimestampField(column_name="ZARCHIVEDDATE", null=True) confl...
UTF-8
Python
false
false
3,367
py
14
note.py
12
0.71785
0.71785
0
64
51.609375
87
Starou/Python-Stub-Server
15,418,932,639,885
c18049149a77a8289bdc154f43bcb596ce1d7ae6
dd33ba6002a0b9740a45a8260ea672479820f91c
/setup.py
d03a4bed3e8d159fe9b24ca58acc530d07724f3a
[ "BSD-2-Clause-Views" ]
permissive
https://github.com/Starou/Python-Stub-Server
ff870f016e7429760afc6f9d4e7735cc3e2351e1
7e5451d091aa8f8990a81a6c0d2326b1ce2fac7c
refs/heads/master
2021-01-16T20:38:14.212499
2015-02-12T15:52:21
2015-02-12T15:52:21
30,700,494
0
0
null
true
2015-02-12T11:59:46
2015-02-12T11:59:46
2014-10-30T13:52:51
2013-06-11T20:50:23
137
0
0
0
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='stubserver', version='0.3.1', description='''A stub webserver used to enable blackbox testing of applications that call external web urls. For example, an application that consumes data from an external REST api. The usage pattern...
UTF-8
Python
false
false
567
py
2
setup.py
2
0.691358
0.684303
0
14
39.5
121
lyy8762/rabbit
15,650,860,829,309
582b5b54cb139c607588902de1723cd275b523ac
6fed38f6a1b3fd7ac563b45b0afdaa27869966b4
/demo/Demo/Lib/Project.py
6f92ac00cf5e9ec1346d13c3afba860fa1deb6f2
[]
no_license
https://github.com/lyy8762/rabbit
f1161002555c1906405a765a3656ed343a9b74d2
5bc95cb25feba70fb4f346b7c1e766cad25dd7fd
refs/heads/master
2019-07-22T17:40:16.061643
2018-12-13T16:21:14
2018-12-13T16:21:14
36,235,987
0
1
null
false
2015-05-26T01:29:06
2015-05-25T14:34:18
2015-05-25T14:37:54
2015-05-26T01:29:06
0
0
1
0
HTML
null
null
# -*- coding: utf-8 -*- from Common import * #***************************************************** # 作者 : David # 版本 : 1.0 # 功能说明: 取DB中的数据或固定值 # 参数说明: #***************************************************** def AppendCompareData(interfaceName, dbSheetData, i, num): print interfaceName cmd="sql="+in...
UTF-8
Python
false
false
17,264
py
30
Project.py
19
0.578897
0.569229
0
458
35.556769
169
srchamberlain/onda
25,425
f0e017c74d3fcaedf9a69e6ff21a7d3184e3631c
eb5614eb7089679f65be7c5a8f9748ce51087805
/data_extraction_layer/instrument_layer/pilatus_petra.py
61a72d1c85a3bd9c54bbbd9bacecbf855f4cc5dd
[]
no_license
https://github.com/srchamberlain/onda
92bcee63533f0249a3feea3f7dda8ce8a060738e
803271a5be3e98937541068692adfef96b14c00c
refs/heads/master
2021-01-16T23:11:14.180702
2016-09-25T15:32:57
2016-09-25T15:32:57
64,957,050
0
0
null
true
2016-08-04T18:11:55
2016-08-04T18:11:54
2016-07-06T09:41:35
2016-07-29T15:32:00
342
0
0
0
null
null
null
# This file is part of OnDA. # # OnDA 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. # # OnDA is distributed in the ...
UTF-8
Python
false
false
1,825
py
35
pilatus_petra.py
25
0.68274
0.668493
0
55
32.181818
105
slimat/spl-meter-with-RPi
11,536,282,180,202
cc58b6e91bbf697e788ea5f5a06512e323d5fcac
1b82f769bd8782379c9c27e6d118ed46f69cf97e
/testLCD_record5.py
61df7d16730a24dadf5265191dc00496d4c0e726
[ "MIT" ]
permissive
https://github.com/slimat/spl-meter-with-RPi
499486ddb6c92a6bfbecbfa4181af7c056bcf8a0
781c50b1985ed0e3dc6ff09e48059be95659ba8c
refs/heads/master
2021-01-06T09:24:16.984014
2020-01-31T04:27:43
2020-01-31T04:27:43
241,278,595
0
0
null
true
2020-02-18T05:15:50
2020-02-18T05:15:50
2020-01-31T04:27:45
2020-01-31T04:27:43
6,463
0
0
0
null
false
false
#!/usr/bin/env python import errno import spl_lib as spl from scipy.signal import lfilter import numpy import pyaudio import wave import numpy as np import os, time import RPi.GPIO as GPIO import sys from threading import Timer import smbus2 as smbus import subprocess import concurrent.futures as cf def get_path(base,...
UTF-8
Python
false
false
6,891
py
1
testLCD_record5.py
1
0.61515
0.589319
0
233
28.575107
101
etsaf/textbook-solutions
4,303,557,238,480
feb63183a272cc26f8efa82bb68abbde046f5c6b
411487aeac7b75acf970d8ef5a13003b3b8e658b
/5.3.1.py
791a7ef6fe0d38da022e0724163b601324809761
[]
no_license
https://github.com/etsaf/textbook-solutions
a4115559fe2a14419ef7e96d331833eb40eea009
3034d8088527191084dfd4b5a69495f990b9f585
refs/heads/main
2023-07-16T11:50:13.626606
2021-08-18T19:29:41
2021-08-18T19:29:41
397,710,796
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def flipBit(x): if (~x) == 0: return len(list(str(x))) prevLen = 0 currLen = 0 ans = 0 while x != 0: if (x & 1) == 1: prevZ = False currLen += 1 else: if x % 2 == 0: prevLen = 0 else: prevLen = cu...
UTF-8
Python
false
false
429
py
52
5.3.1.py
51
0.375291
0.342657
0
19
21.631579
45
AdamArutyunov/ParlAI
3,513,283,282,567
9843f89ea60a5b6e3a385d065646a59df87f041d
a608c62e3fe08f37db8422db821c59cc73062e44
/tests/nightly/gpu/test_unlikelihood.py
8d990b67c67666a1cd955bcd4257dbc40fff3d5a
[ "MIT" ]
permissive
https://github.com/AdamArutyunov/ParlAI
48cacd38f17f87c1da98c79fe19a8f72d127cc8d
06258ede9a7461439420e817f55796bf352543c2
refs/heads/master
2022-12-21T10:27:59.723515
2020-09-22T14:26:17
2020-09-22T14:26:17
284,688,333
1
4
MIT
true
2020-09-06T12:01:43
2020-08-03T12:00:47
2020-08-07T11:04:38
2020-09-06T12:01:43
60,350
0
0
0
Python
false
false
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import unittest import parlai.utils.testing as testing_utils """ Integration tests for the Dialogue Unlikelih...
UTF-8
Python
false
false
13,845
py
32
test_unlikelihood.py
24
0.535428
0.494763
0
366
36.827869
108
AlonsoIbarra/Arquitectura-Publica-Suscribe
11,261,404,268,065
ac6d28fcb50c5506fcf7cc6a87d5cd93ee402556
2c3d33d6f0a401e385efaa75febf326f8b05288e
/contexto/Usuario.py
333bd7f4ae5622e11d8488d8c74170a00ca7b10a
[]
no_license
https://github.com/AlonsoIbarra/Arquitectura-Publica-Suscribe
dc1eaa57072f1b02a68c6f25fed3449badb4d162
92d506b0d39cf6bf8ea57d422c1ab457ff5d0d28
refs/heads/master
2020-05-22T11:12:17.117140
2017-04-06T04:54:56
2017-04-06T04:54:56
84,692,944
1
1
null
true
2017-03-12T02:00:29
2017-03-12T02:00:29
2017-03-07T05:04:53
2017-03-07T05:04:51
9
0
0
0
null
null
null
class Usuario(): idUsuario = -1 nombre = "" contrasena = "" tipo = 0 def __init__(self): pass
UTF-8
Python
false
false
123
py
31
Usuario.py
28
0.471545
0.455285
0
8
14.375
23
chybot/crawler
17,798,344,509,404
d27c791c20928306626c24e1791fea5083e8f3ef
7254bcbd4c1d48c5fa3c818767af361a6bd7f651
/qyxx_all/guangdongs/CrawlerSzxy.py
4fc7ea61485783722e117316e58dd3ea3173e4fa
[]
no_license
https://github.com/chybot/crawler
16d939fa30da4fc83d49a80fda1e7269182db2fe
f04300e329768eb38e97b992f9fe065fa300e13d
refs/heads/master
2021-01-11T00:14:02.066929
2016-08-23T13:52:43
2016-08-23T13:52:43
70,574,730
1
0
null
true
2016-10-11T08:54:03
2016-10-11T08:54:02
2016-10-10T07:04:16
2016-08-23T13:54:51
1,659
0
0
0
null
null
null
# -*- coding: utf-8 -*- # Created by David on 2016/5/9. import sys import random import time import re import urlparse import PyV8 reload(sys) from qyxx_all.CrawlerBase import CrawlerBase from lxml import etree from qyxx_all.ModuleManager import Module,Event,Iterator,Adapter,Bypass,Sleep from qyxx_all.util.crawler_uti...
UTF-8
Python
false
false
5,747
py
217
CrawlerSzxy.py
205
0.63234
0.622524
0
123
44.552846
154
StaticSpark/uml-auto-assessment
7,705,171,362,269
111c0c4a1afb52eb847af00e18904784aa2c1916
f8cf23404754196df90ae270d0b62ad11973816b
/COutputComparisonStandardLibrary/p68/configuration.py
47c0aa243d10a7cfafbaa5754fe800598ffcbf2b
[]
no_license
https://github.com/StaticSpark/uml-auto-assessment
5d542b26bdb2605fbc39fea90f566ba591b57dab
f3764e0b7a11af5e28ee11ae298db92a31909fe2
refs/heads/master
2021-01-24T19:37:07.788987
2012-08-30T16:46:04
2012-08-30T16:46:04
67,462,941
1
0
null
true
2016-09-06T01:38:09
2016-09-06T01:38:09
2016-09-06T01:37:03
2012-09-10T19:44:25
10,936
0
0
0
null
null
null
substrings = ["day!", "great", "a", "is", "say,", "I", "This,"] compile_command = "gcc -ansi -Wall p68.c" number_of_test_cases = 1 # FORMAT: tests = [(stdin, args, reference_output_strings, files, hints), ...] tests = [("This, I say, is a great day!.", "./a.out", "day! great a is say, I This,", "", ""),]
UTF-8
Python
false
false
311
py
3,612
configuration.py
103
0.562701
0.553055
0
8
37.75
95
HarrisonMS/JsChallenges
3,178,275,833,354
0f6e53068a1e60f10960a557835b65adf50878e9
1b1cd03874cdec2bb1b9e8f5995d85aeb6c6e8e4
/Python/codewars/char_code_calc.py
33a9a6ae1e01005b2c1685d745ccd259ee24f5ae
[]
no_license
https://github.com/HarrisonMS/JsChallenges
db5c34070c7381bfa60c022a931cb8eaa3e1b5c4
4a3e8a1029cd8de494f9d65b38cb05e2efb6a130
refs/heads/master
2023-08-11T02:33:46.660908
2021-10-01T20:47:18
2021-10-01T20:47:18
262,849,169
0
0
null
false
2020-05-27T02:04:08
2020-05-10T18:22:30
2020-05-23T17:54:42
2020-05-27T02:04:08
5
0
0
0
JavaScript
false
false
def calc(x): with7s = '' char_ords = [ord(i) for i in x] for i in char_ords: with7s += str(i) without7s = with7s.replace("7", "1") return sum([int(i) for i in with7s]) - sum([int(i) for i in without7s]) def calc(x): total1 = "".join(str(ord(char)) for char in x) total2 = total1.repl...
UTF-8
Python
false
false
476
py
87
char_code_calc.py
86
0.571429
0.535714
0
16
28.8125
75
MFiveZJU/auditing-system
1,151,051,261,618
8dbba991193a1f1d7f76ea67f8b3f5ecd23cc5e4
5b67f8f0864bad7bc5d9b632f5ab5e8ac506f159
/auditor_management/views.py
1653da0cec31c4a8140a338172e1563713aec3e3
[]
no_license
https://github.com/MFiveZJU/auditing-system
60828b1841b49959c9f7f812d877f0e0150a2592
a7b3953bf2c57d6b2d1ba9b07e0d2e13762760b3
refs/heads/master
2020-12-29T00:42:04.389756
2015-05-27T05:32:30
2015-05-27T05:32:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.http import HttpResponseRedirect from auditor_management.forms.auditor_signup_form import AuditorSignupForm from auditor_management.forms.auditor_signin_form import AuditorSigninForm def index(request): # return HttpResponse("He...
UTF-8
Python
false
false
1,285
py
10
views.py
7
0.697276
0.696498
0
42
29.595238
91
eldt/Hackathon-GCP
2,345,052,182,617
9e0c6100d2a9f79567b5abbfed299e4ab46d1e73
8ed44a7f7ebad36990325bd211dd1a34508fb66b
/parents.py
1519d9559abf5231d5437493f2ea36d8f7946039
[]
no_license
https://github.com/eldt/Hackathon-GCP
b34e25cff40c6b7af8af4342392adad9246e1d90
15931a2c7b6e399f07a6c37e7affe8413629a545
refs/heads/master
2020-04-26T12:53:48.127571
2019-03-03T17:00:21
2019-03-03T17:00:21
173,563,909
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Checks if an input string is valid def userinput(string): IP = "" while(not(IP)): IP = str(input(string)) if(IP == ""): #Invalid word used print("nothing inputed, try again") elif(IP == "leave"): break return IP # Defines what a valid string is ...
UTF-8
Python
false
false
2,019
py
8
parents.py
7
0.491828
0.483903
0
64
29.546875
125
FreeRangeLobster/TheKraken
13,099,650,263,283
b5bfe47ce1ae2ed44deb0aa5c04c8d08af817944
6d1e52ea9108a8e63475c61b768ed9a5e61b683d
/SerialPort/serialportmain.py
9cd68672e106bb1ad03d8c0e3279578c82659b72
[]
no_license
https://github.com/FreeRangeLobster/TheKraken
43a0aa72479afaa9fbad14e81a4c5c220517f299
572ac3035f7fd558175654097aaf7b0127187adf
refs/heads/master
2020-07-01T19:04:20.932758
2019-11-15T15:27:27
2019-11-15T15:27:27
201,265,133
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import serialport.serialportwindow from PyQt5 import QtCore,QtGui import sys def main(): app = QtGui.QApplication(sys.argv) win = serialport.serialportwindow.SerialPortWindow() win.show() sys.exit(app.exec_()) if __name__ == '__main__': main()
UTF-8
Python
false
false
298
py
13
serialportmain.py
10
0.64094
0.634228
0
14
20.357143
56
chenwangwww/ppython
11,759,620,462,560
66be3b22424f6c74c7d8ec9775f9c62e52a46253
55bcc8b6d5eb2878405f71ad5559cc3c80f5edc9
/nlpAnylise/nlpctr.py
6356f211510c2267beaeef02d06e4180ddf28377
[ "Apache-2.0" ]
permissive
https://github.com/chenwangwww/ppython
2989026d5ef6d8a733e8b62ef6d4d7bcd2783b38
13a2f1193714133701743bfdf1a8add61a29dd4c
refs/heads/master
2023-05-03T01:15:01.828534
2021-05-13T06:13:55
2021-05-13T06:13:55
343,254,494
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ltp import LTP ltp = LTP() class NlpCtr(object): def __init__(self): pass def sdp_trans_res(self, strArr, sdpArr, posArr): tempstrArr = strArr[0] tempstrArr.insert(0, 'ROOT') tempposArr = posArr[0] tempposArr.insert(0, 'ROOT') tempsdpArr = sdpArr[0] ...
UTF-8
Python
false
false
11,163
py
63
nlpctr.py
54
0.47725
0.472245
0
310
33.812903
107
Kvansipto/Stepik_course_final_task
7,834,020,397,143
1404aba185e464bcfd025524bae61d63f7215958
660fed2c1a3b071c6c093a1f269aead78c506825
/pages/product_page.py
d3891535c1a1c17de5d7f4228b58acb2d3b9249a
[]
no_license
https://github.com/Kvansipto/Stepik_course_final_task
d492eac6b0fc1c66469531758798b8977baa1162
3c52b5557b116d1e20400ea592f1ca94bccf4589
refs/heads/main
2023-07-17T18:45:08.830084
2021-09-06T17:03:48
2021-09-06T17:03:48
401,321,833
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .base_page import BasePage from .locators import ProductPageLocators class ProductPage(BasePage): def add_to_bucket(self): basket_link = self.browser.find_element(*ProductPageLocators.BASKET_BUTTON) basket_link.click() def check_product_name(self): product_name = self.browser.fin...
UTF-8
Python
false
false
1,396
py
4
product_page.py
3
0.73
0.73
0
26
49
119
genericmoniker/git-split
9,835,475,132,423
0e5290e65020ddfa78c7734e71616571c13f5427
4141f242c4822596fb7fc8c26c972f9ac028d169
/gitsplit/config.py
558775e7a3f5a7757a94697d0d8efefe13b0f03e
[ "MIT" ]
permissive
https://github.com/genericmoniker/git-split
4a2f4793659c5477c7c7df424b09c8c36c5e684d
a46a496e44f3a365579d26359ec446e09fa8cbe5
refs/heads/master
2021-02-07T13:20:11.782293
2020-08-10T23:23:32
2020-08-10T23:23:32
244,031,170
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections from os import fspath from pathlib import Path import toml from ranges import Range, RangeSet class Config: """File split configuration.""" def __init__(self, data: collections.abc.Mapping, base_path: Path): """Create a configuration. :param data: configuration data. ...
UTF-8
Python
false
false
6,106
py
13
config.py
7
0.584343
0.583524
0
182
32.549451
87
xuewenG/future-star-backend
3,762,391,357,916
ea4283d139e616544e22fbb088bcd4c416840ee9
b0558353779c06e0c2aed7545ff10ba81014a244
/administrator/test/generate/privilege.py
7682aa9fbdb62e89fb5c97f50a4b33c2d2c26a95
[]
no_license
https://github.com/xuewenG/future-star-backend
02a1478722afc5d54989ddd1fcae3d55c730b7c7
9beb618820657668198282a2025cfcd6ac4be192
refs/heads/master
2023-05-30T14:31:05.180001
2020-08-14T17:17:37
2020-08-14T17:17:37
272,581,974
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" generate privilege :author: lishanZheng :date: 2020/01/06 """ import random from administrator.models import Privilege def get_privilege_data(): """ 生成权限数据 :author: lishanZheng :date: 2020/01/06 """ privilege_data = { 'enrollment': random.randint(1, 2), 'semester': rando...
UTF-8
Python
false
false
689
py
130
privilege.py
128
0.61435
0.566517
0
37
17.081081
58
Rehket/SF-CIDP
12,369,505,855,490
5fbfcfdcc7f91030c45a1c11226588c93931d14c
21e0a2c0f2f420f3ac18633b2e7998b7c3274be1
/gob/sfdx_commands.py
f4dda741ba5ef8d48bd7d3a7a91d2df50eb09540
[ "MIT" ]
permissive
https://github.com/Rehket/SF-CIDP
b0d310f7749388fb91d487c85bb8d99fda7e9e39
eff10e6eaa19ac1c9e67cb23421794a9ce5464f2
refs/heads/master
2020-05-16T02:39:59.549746
2019-06-05T01:38:20
2019-06-05T01:38:20
182,636,327
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pathlib import Path from typing import List, Dict from prefect import task as prefect_task, Flow from loguru import logger import json import os import subprocess import shutil working_dir = os.environ.get("WORKING_DIR", "working_dir") @prefect_task def pull_sfdc_code( username: str, dest_dir: str, metadata...
UTF-8
Python
false
false
5,849
py
11
sfdx_commands.py
7
0.577364
0.575483
0
204
27.671569
88
phsantosjr/dj_bank
7,172,595,434,199
86b00fc9f12fb801ca5308ce08731022b49a65dc
07444c8f3588da8a51d90f97da6f928bfd99be31
/conftest.py
e83730884f28e4b83f164abb836813f84610faac
[]
no_license
https://github.com/phsantosjr/dj_bank
610363f8b20494fd7188d7733cdee62c5984f7b9
84b9154b0132f1f13c5a2a2a7d6c40395dd977f6
refs/heads/master
2023-06-26T00:07:25.972046
2021-07-23T12:59:58
2021-07-25T12:58:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from rest_framework.test import APIClient @pytest.fixture(autouse=True) def enable_db_access_for_all_tests(db): pass @pytest.fixture def api_client(): return APIClient()
UTF-8
Python
false
false
196
py
15
conftest.py
11
0.744898
0.744898
0
12
15.333333
41
akshay4570/DBMS_PROJECT
15,865,609,210,531
e4c7cb01ca7a1e6b17f712102654f634fef298b2
8d24d6b4480f00e51bd9a3c863feedc56ab3f82c
/ecom/migrations/0007_order_shipping.py
9e02d4099062ecbfef21457fc74a77852b44dfce
[]
no_license
https://github.com/akshay4570/DBMS_PROJECT
5c35f1ac7eba639980b7af0c26ad0717b46dcbfb
44d016755230e99a7e1f0c2f5e3f89b6607c3c1b
refs/heads/master
2021-05-26T15:54:05.644065
2020-12-10T07:38:56
2020-12-10T07:38:56
254,126,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.6 on 2019-11-30 06:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ecom', '0006_delete_order'), ] operations = [ migrations.CreateModel( name='Shipping', ...
UTF-8
Python
false
false
1,466
py
28
0007_order_shipping.py
13
0.559345
0.537517
0
37
38.621622
114
BaderSZ/adventofcode2020
4,157,528,366,040
020962fc77ada5c9d6368e263ad026683d5a4c1a
ee62656f4cd66fc74f272045a259e0eb2d36f476
/day12/part2.py
612ba12f4bde4ee98bb2a68bc50c4e64a4715c31
[ "MIT" ]
permissive
https://github.com/BaderSZ/adventofcode2020
9be6d113ded14513f4cbea09122cc99d6119a9e7
dae705fd093bbd176021118f0898947cb4b02f84
refs/heads/main
2023-02-02T14:53:20.673481
2020-12-19T16:18:19
2020-12-19T16:18:19
317,454,681
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from enum import Enum inp = [] class Direction(Enum): north = "N" south = "S" east = "E" west = "W" class Rotation(Enum): left = "L" right = "R" class Move(Enum): forward = "F" class Waypoint(object): def __init__(self, pos_north=0, pos_east=0, unit_north=1, unit_east=10): ...
UTF-8
Python
false
false
2,061
py
30
part2.py
29
0.584182
0.57836
0
76
26.105263
76
bvldog/binsonworksweb
6,176,163,008,209
bebf136f3922e3df42847c4c8ee09d4a68da744e
8dcc6400dc819817789ebfc45ec05df9ff6025af
/mainPage/admin.py
2ee368e208b6150e51a7f46a3f7bd1da167b8257
[]
no_license
https://github.com/bvldog/binsonworksweb
fc19618a9b94361ff713b2eac471c2e8b9f7bc4f
8d99aa5773f1846a780cabf2c75b660d16fa48b0
refs/heads/master
2022-12-24T00:54:17.594420
2019-11-21T07:06:29
2019-11-21T07:06:29
223,095,042
0
0
null
false
2022-12-08T06:55:10
2019-11-21T05:25:51
2019-11-21T07:06:44
2022-12-08T06:55:10
4,900
0
0
3
HTML
false
false
from django.contrib import admin from .models import MainPage, About # Register your models here. admin.site.register(MainPage) admin.site.register(About)
UTF-8
Python
false
false
158
py
13
admin.py
9
0.797468
0.797468
0
8
18.75
35
agzuniverse/wireless-printing-app-backend
4,380,866,657,973
b3e134bee1d4d985e41a90b506b0d5071761f124
4dff65532f6d300602690c0996ee6f3cbb44b274
/backend/wireless_printing/serializers.py
0cd43e6e9538128377e39237c92c4d9edb3105af
[]
no_license
https://github.com/agzuniverse/wireless-printing-app-backend
9949fbcbc21f46749b49a1d3a75ff15ec60e1faf
1d86fd60a1c9ec6f4e325f59f8c7e8bc0b7585f6
refs/heads/master
2022-01-14T12:16:15.838106
2019-07-23T09:20:57
2019-07-23T09:25:48
145,246,927
0
2
null
false
2022-01-06T22:26:20
2018-08-18T19:23:24
2019-08-17T19:05:06
2022-01-06T22:26:20
57
0
2
6
Python
false
false
from rest_framework import serializers from .models import Test class TestSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Test fields = ('id', 'url', 'name', 'desc')
UTF-8
Python
false
false
212
py
11
serializers.py
8
0.693396
0.693396
0
8
25.5
61
AlanJohnM/SimPLe
14,276,471,307,090
f8003e8de06b247d88baa55b51127ab90f2806ca
a093c51e2addf9a0a61247ca63e855dafab0d694
/atari_utils/atari_utils/envs.py
11b3ec1289c4cc3424e3cf98ab0700c44b8c71a2
[ "MIT" ]
permissive
https://github.com/AlanJohnM/SimPLe
416960224dda6107f2195b1a3a27989cdb5eb01e
5277392321f993f319ff6683f4e64118bf010336
refs/heads/main
2023-04-13T23:39:41.774243
2021-05-01T09:59:57
2021-05-01T09:59:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 # See https://stackoverflow.com/questions/54013846/pytorch-dataloader-stucked-if-using-opencv-resize-method # See https://github.com/pytorch/pytorch/issues/1355 cv2.setNumThreads(0) import gym import torch from baselines.common import atari_wrappers from baselines.common.atari_wrappers import NoopResetEnv ...
UTF-8
Python
false
false
8,564
py
15
envs.py
14
0.5961
0.583606
0
272
30.485294
107
quintel/etdataset-public
1,254,130,486,407
58ff7e1e91ba05f58f35b198f10b73eba1bbb415
a921fefffab0fc1ebd661a6c88fd8248333331fa
/curves/demand/households/space_heating/script/heat_demand/__init__.py
502f06607464ab04f9847341f72fe4607a46860b
[]
no_license
https://github.com/quintel/etdataset-public
f2d1685f0da7c1f8023e8a536e21afa1252273b3
bef8f76c7e0ebc172646fef085c8705245998b2f
refs/heads/master
2023-07-25T04:54:52.661612
2023-07-10T13:35:52
2023-07-10T13:35:52
15,280,610
4
7
null
false
2022-12-27T16:17:17
2013-12-18T10:49:04
2021-12-21T15:36:12
2022-12-27T16:17:16
893,702
5
5
4
Python
false
false
from .heat_demand_profile_generator import generate_profiles
UTF-8
Python
false
false
61
py
2,813
__init__.py
108
0.852459
0.852459
0
1
60
60
kmcfar/DataScience
6,244,882,492,733
88b0f2d2bee70d9d543cfb7eaf7533a10440cc4e
bcfc72a9225d4ab2f22844064ef8f35b8cacc708
/Prepare_Data.py
22ae25c3c0874657933b12f1e590ca65728ae8b8
[]
no_license
https://github.com/kmcfar/DataScience
2387b6a893de7d7a94e9b3326b1e913b1813f689
3766881233c8cbe3bae2ef14725046f34841b400
refs/heads/master
2021-01-23T13:29:25.722232
2016-02-04T18:05:03
2016-02-04T18:05:03
33,470,850
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'kevinmcfarland' import xml.etree.ElementTree as ET import pprint import re import codecs import json problemchars = re.compile(r'[=\+/&<>;\'"\?%#$@\,\. \t\r\n]') CREATED = [ "version", "changeset", "timestamp", "user", "uid"] OSM_file = 'bellevue_washington.osm' #lists and dictionary for updating s...
UTF-8
Python
false
false
5,615
py
4
Prepare_Data.py
3
0.527337
0.525022
0
146
37.458904
126
sgcalle/hhrr
12,687,333,416,977
7af76b3479bf1e54b3a4e5dce53d9694858ff62f
67a0edf1f41c33c8167e7f45e30b675cc48efdbd
/stock_request/models/procurement_group.py
a439821d62893e2265a8dc6bbbcc1611e6614e5b
[]
no_license
https://github.com/sgcalle/hhrr
bfe8ff3b4cfa23a4f26191a1c594bf91c1f9427d
3f1e5f5357f530cb78b422f4ba4f74eb8ac5d05e
refs/heads/master
2021-07-16T18:53:06.580329
2021-03-17T08:28:35
2021-03-17T08:32:24
240,117,974
0
0
null
false
2021-03-17T08:32:24
2020-02-12T21:21:57
2020-05-07T09:33:34
2021-03-17T08:32:24
2,538
0
0
0
Python
false
false
#-*- coding:utf-8 -*- from odoo import models, fields, api class ProcurementGroup(models.Model): _inherit = "procurement.group" stock_request_id = fields.Many2one(string="Stock Request", comodel_name="stock.request")
UTF-8
Python
false
false
235
py
120
procurement_group.py
62
0.693617
0.685106
0
9
25.222222
62
ldirer/deploy-app-docker
2,190,433,351,986
62bd3f22d539d51dd94c7270dac1e0dc3402b8e7
4050d014c8d68a3f57065087e2db14b753831e23
/backend/settings.py
53bc28ca6dd49257b49a5638ce89898d0fc30941
[]
no_license
https://github.com/ldirer/deploy-app-docker
20ce675a57ca7593acd1a7df811ab656594b5066
b18c88df359918a082e1ec9a46b5af4546108da5
refs/heads/master
2022-01-11T09:37:37.018815
2018-03-22T16:14:40
2018-03-22T16:14:40
123,062,734
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os PRODUCTION = not os.environ['QUIZ_ENV'] == 'production' DEBUG = not PRODUCTION SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI', 'postgresql://postgres:postgres@db') SQLALCHEMY_TRACK_MODIFICATIONS = False
UTF-8
Python
false
false
234
py
30
settings.py
9
0.769231
0.769231
0
6
38
104
TaeJuneJoung/Algorithm
19,138,374,297,182
c3b7903ba55d249b582f9277649666e3888d0042
89e40bf548403e440c230e06fa6301021ec8b0c7
/sw_expert_academy/D4/p1486.py
1397c76c26723f6216fbe24ce92041d1cd813034
[]
no_license
https://github.com/TaeJuneJoung/Algorithm
b9cf5724501918c7302099b8194d26bd19512bd0
ecc2934a376c91ecec8bfd15af377d8a2973d71d
refs/heads/master
2020-06-19T13:50:14.720987
2019-08-04T14:35:43
2019-08-04T14:35:43
196,732,653
0
0
null
false
2019-08-04T14:35:44
2019-07-13T14:46:42
2019-07-13T16:37:07
2019-08-04T14:35:44
6,895
0
0
0
Python
false
false
def nPr(n, r, s, rs): if s >= H: if s not in res_set: res_set.add(s) else: return elif n == r or s+rs < H: return else: for i in range(n): if used[i] == 0: used[i] = 1 nPr(n, r+1, s+M[i], rs-M[i]) ...
UTF-8
Python
false
false
596
py
138
p1486.py
130
0.389262
0.374161
0
25
22.88
44
madkaye/ble-ls
16,501,264,394,752
391a1f7371136e341b32dd4d904b3d71ce45d5b1
0219da7170d81ca6c3c483542a17a3c01954a538
/ble-ls.py
932d7ca28f72197abf4059e103ed97f7d561a126
[ "MIT" ]
permissive
https://github.com/madkaye/ble-ls
699cee2a655414cb4026aa3fe57ea4584487b695
24260b316fc2512b9e3b15612384609fefbeba8f
refs/heads/master
2023-04-16T04:04:53.729433
2021-04-25T19:50:43
2021-04-25T19:50:43
361,523,436
5
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import datetime from bluepy import btle from bluepy.btle import Scanner, Peripheral, Characteristic, ScanEntry, UUID class BLELS: SCAN_TIMEOUT = 10 scanner = None publicdevices = [] def scan(self, duration=SCAN_TIMEOUT): try: print("scan: starting scan for ...
UTF-8
Python
false
false
4,704
py
2
ble-ls.py
1
0.434311
0.427509
0
118
38.762712
126
pierrrrrr/raspberrrrr
11,536,282,168,466
da0d9cf11be11abcb2e25230690889ca6dfa9735
f02fd314d2cd7a0bd897198af9264453f76165da
/core/utils.py
bb52cc42d4a0ea4ff8750dce643a085ff209f3af
[]
no_license
https://github.com/pierrrrrr/raspberrrrr
4c1d6422de1b26b53b9a43d87443a571c87181b5
c562f61238a0efb8a4557c1cd1e3b484c3c4b325
refs/heads/master
2021-01-01T05:39:55.104327
2013-08-08T22:03:22
2013-08-08T22:03:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function import time import functools from ctypes import Union, Structure sleep = time.sleep def _dump(structure, level=0, filling=' '): if level > 3: return for field, _ in structure._fields_: value = getattr(structure, field) print("{}{}: {!r}".format...
UTF-8
Python
false
false
1,309
py
12
utils.py
10
0.601986
0.596639
0
50
25.16
76
philgyford/django-url-namespace-example
16,527,034,157,703
36149421b56f4022de39b1b439c696da020c0431
6c632247c6d6cef9d017c0d2960808ddabe09362
/books/views.py
d612e018e3f6815cea15b2baad20931f0ca39db3
[ "BSD-3-Clause" ]
permissive
https://github.com/philgyford/django-url-namespace-example
2e926a1686e0885b75ee3264cd7238529054166c
e962d1dc537c2f6a1df6eb7fa55839aec0812fc7
refs/heads/master
2020-08-08T22:22:02.735531
2019-10-09T14:32:55
2019-10-09T14:32:55
213,933,582
3
0
null
false
2019-10-09T14:01:06
2019-10-09T13:59:44
2019-10-09T14:00:05
2019-10-09T14:01:06
0
0
0
0
Python
false
false
from django.http import HttpResponse def index(request): return HttpResponse("This is the Books Index page.") def detail(request, book_slug): return HttpResponse( 'This is the Book Detail page (for a book with the slug "{}").'.format( book_slug ) )
UTF-8
Python
false
false
293
py
6
views.py
4
0.634812
0.634812
0
13
21.538462
79
SmarT-Ouassine/CNN_architectures_pytorch
12,936,441,516,246
4891927abea8be9b3a079ea7f3f596e4ee7497f9
1e9c3380d62b4aaea105a541b2294d9eb243fb95
/dataset.py
4eec18c4c23aaf926237d28dae314e0fecb1efa4
[]
no_license
https://github.com/SmarT-Ouassine/CNN_architectures_pytorch
7ec2292feee17bd956ba55db9b6814e2f3b02257
c67ea5000c950f08b03d7bad3e9862040948d18a
refs/heads/main
2023-07-04T13:11:09.028674
2021-08-07T00:06:47
2021-08-07T00:06:47
449,676,976
2
0
null
true
2022-01-19T12:11:52
2022-01-19T12:11:51
2022-01-19T12:10:15
2021-08-07T00:06:54
12
0
0
0
null
false
false
from torchvision import datasets, transforms import torch import config import os import random from shutil import copyfile def prepare_datasets(): subdirs = ['train/', 'test/'] for subdir in subdirs: # create label subdirectories labeldirs = ['airplane/', 'car/', 'cat/', 'dog/', 'flower/', 'f...
UTF-8
Python
false
false
2,132
py
13
dataset.py
12
0.628518
0.603659
0
62
33.403226
101
eriker75/curso-django-channels
6,313,601,932,928
a23526f06c7d85a36f321a98185bd36fae08ed3b
b314a90dd6961bd63d89297a67a563ac7055c1bb
/chat/models.py
9457918b8ba8da12c8c79f60a9604775085bd142
[]
no_license
https://github.com/eriker75/curso-django-channels
c702279d265a2a6df868f3868e33f9ffe52dd5f9
39bf328b409888a6fe02b1b4aaac570484c17dc7
refs/heads/main
2023-03-20T09:47:56.047151
2020-12-23T19:57:27
2020-12-23T19:57:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User class Room(models.Model): name = models.CharField(max_length=60, unique=True) users = models.ManyToManyField(User, related_name='rooms_joined', blank=True) def __str__(self): return self.name
UTF-8
Python
false
false
296
py
13
models.py
11
0.695946
0.689189
0
9
30.888889
81
JayHsieh1104/LeetCode
16,106,127,368,261
d00d02124771991858418ce2aeb7543592bea51c
6444c6d6fc51868f46ab9b6874039392db88b05e
/041. First Missing Positive/solution3.py
fb61a84306ffcb8aa893cd48615582695f854f70
[]
no_license
https://github.com/JayHsieh1104/LeetCode
4268a9a8a6d0a7c57a38ebd1d2545131d4463d77
892e9e869628ed384c3e96216be850245b501cff
refs/heads/master
2021-06-20T18:13:19.081409
2021-04-04T11:22:52
2021-04-04T11:22:52
203,064,862
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def firstMissingPositive(self, nums: List[int]) -> int: is_one_existed = False for i in range(len(nums)): if nums[i] == 1: is_one_existed = True elif nums[i] > len(nums) or nums[i] < 1: nums[i] = 1 if not is_one_existed:...
UTF-8
Python
false
false
602
py
556
solution3.py
293
0.458472
0.438538
0
19
30.684211
64
xxtang/fspserver
8,194,797,603,535
a0f82ec0f4c41407014a28f1dbe08b73a32f1768
dacf40993c1e97a70d41a503e2dcdc56772803b6
/bsd_src/SConscript
ba38028136eba7aaee92ab5c09f71ec0421844b0
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
https://github.com/xxtang/fspserver
995b3f089006cab9301389c891dc36368fd6e30e
3458b8407d07d66396c3a2458841e25cdcee8ebc
refs/heads/master
2021-06-21T02:51:29.418695
2017-07-28T09:00:51
2017-07-28T09:00:51
98,630,149
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
Import(Split("env")) bsdfsp=env.StaticLibrary(target = 'bsdfsp', source = Split(''' cmp.c fnmatch.c glob.c operator.c print.c find.c function.c ls.c option.c util.c ''')) Export(Split("bsdfsp"))
UTF-8
Python
false
false
199
180
SConscript
41
0.688442
0.688442
0
8
23.875
62
thatandromeda/libpmp
7,129,645,741,262
84b9903b004949ebb4d637a2a49e50dd54911a48
a848b8c8a70f2f85eb6da114128953619009d917
/distributions/numeric.py
49de2818c354ea151b9328641b26c393407dde36
[ "Apache-2.0" ]
permissive
https://github.com/thatandromeda/libpmp
9de4a5fef33eecad1842dde88bbd154290cfa7ea
f5117eb3520b1551167b1c9adcc4de098ed32a63
refs/heads/master
2021-01-01T18:24:05.497619
2017-07-25T19:25:54
2017-07-25T19:25:54
98,325,149
0
0
null
true
2017-07-25T16:00:35
2017-07-25T16:00:34
2017-05-31T18:48:17
2017-07-25T15:24:29
74
0
0
0
null
null
null
# Copyright 2016 Grant Gould # # 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, ...
UTF-8
Python
false
false
2,810
py
22
numeric.py
17
0.635587
0.629181
0
81
33.691358
76
mylgcs/python
1,529,008,403,546
7c05804b4d8d9ff8d5609f804fe9cf77142eb5d6
f4e1c211d1fe21c3c83f671de15d62aa8b3b9120
/训练营day02/3_小明交换牌.py
e4c8dfc138b35148f786dde022387949b2fe1efe
[]
no_license
https://github.com/mylgcs/python
5f4cbe185c66a415ab3837c137efc43954f3f6fb
c700cfa6124b98914cf892d950c06612273c4c5b
refs/heads/master
2021-03-20T20:20:21.124169
2020-03-25T09:19:24
2020-03-25T09:19:24
247,230,409
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 小明手里有两张牌,左手红桃A,右手黑桃K,问小明交换双手的牌 # 之后,左右手的牌各是什么? # 先找对象 小明 两张牌 3个 小明 两只手 两张牌 5个 # 根据对象写类 # 牌的类,其对象是单张的牌 class Porke: def __init__(self): self.poker = None color = "" #牌的花色 num = "" #牌的打小 # 手的类,用于创建一只手 class Hand: porke:Porke #手里可以有一张牌 #人类,用于创建小明 class Human: # 字段描述人的特征 hand_left = ...
UTF-8
Python
false
false
1,591
py
19
3_小明交换牌.py
18
0.626073
0.615144
0
57
21.491228
86
raufer/text-classification-pytorch
17,935,783,452,108
50109b120f229f3c7e4bf540d1b190cb6d8dc520
9e9b0d26fe42dc6a9ac529d2b0b3ba56e5659d6d
/src/tokenizer/electra.py
b0fd6834899ed5f8354dc0c09fb0d9b3b1704999
[]
no_license
https://github.com/raufer/text-classification-pytorch
cbdde070bf8acd79d5f792467d9cc6ff922a55fc
262d2a0d32e19cdd69961012fdc9c02b4816ba44
refs/heads/main
2023-03-13T02:27:56.601614
2021-03-04T16:04:03
2021-03-04T16:04:03
317,555,513
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from transformers import PreTrainedTokenizer from transformers import ElectraTokenizer def make_electra_tokenizer() -> PreTrainedTokenizer: tokenizer = ElectraTokenizer.from_pretrained('google/electra-small-discriminator') return tokenizer if __name__ == '__main__': tokenizer = make_electra_tokenizer()...
UTF-8
Python
false
false
621
py
55
electra.py
52
0.727858
0.724638
0
20
30
86
azizs4h/HexagonLmsBackend
695,784,724,479
61a6651a00b4e67b6fa71d952e249d488a228d35
fff2f15a540c2d499f9e26d05772a06af02bad8c
/meet/models.py
62910930aaa5656a72b41d6bcb400e3b36464e31
[]
no_license
https://github.com/azizs4h/HexagonLmsBackend
9f462108c765e7aec57b550060461fa43abde7b7
6d8b4d2376a26cd65bded1e81122e2769ed7d50e
refs/heads/master
2023-06-05T03:10:38.902655
2021-06-16T15:51:46
2021-06-16T15:51:46
349,548,229
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from lesson.models import Lesson class Meet(models.Model): name = models.CharField(max_length=255) lesson = models.ForeignKey(Lesson, on_delete=models.CASCADE) meet_time = models.DateTimeField(blank=True, null=True, auto_now_add=True) def __str__(self): return sel...
UTF-8
Python
false
false
327
py
17
models.py
16
0.715596
0.706422
0
11
28.727273
78
Nastykiwi/git_ML_Project
14,370,960,606,800
2f8ef640746f8bf32c4c1427b4d39a4f92011c88
98c87c98ad5ffd4b0aa20efdfe5902f3d397262a
/Dataset_creation/macro_data_extraction.py
593ad4b4a885b528613c779362b87ffa05b63b6d
[]
no_license
https://github.com/Nastykiwi/git_ML_Project
091a5d83d2367bc99e8bc397ed25a33aa58b3477
2ade5c7f13f80111fae6da6176db9c764382de0d
refs/heads/master
2020-08-31T00:55:32.709070
2019-11-14T04:45:11
2019-11-14T04:45:11
218,538,980
0
0
null
false
2019-11-18T02:42:23
2019-10-30T13:52:41
2019-11-14T04:45:17
2019-11-18T02:42:22
126,198
0
0
0
Python
false
false
''' Code for macro data extraction Documentation: To come - 2019-10-24: .py creation by Théophile - 2019-10-30: ''' import pandas as pd import os from Util.util_data_mgnt import save_df_to_pickle ''' Ehrmann, M., & Fratzscher, M. (2004). Taking stock: Monetary policy transmission to equity markets. Journal of Mone...
UTF-8
Python
false
false
4,109
py
47
macro_data_extraction.py
6
0.717381
0.687439
0
109
36.697248
157
charliememory/detectron2
10,333,691,336,175
12100e1f4a5de539342da612b822aeb9e3f30707
f2cbd59703a1c1236a1733fd842ffbfb61e25015
/projects/DensePose/RAFT/infer.py
b683d46cc920c81c2159c786ccf59ceff829a3c0
[ "Apache-2.0" ]
permissive
https://github.com/charliememory/detectron2
d7646251d9b4314401158742c93501c1f3d384dc
a2a6220068e73c616ee4c84cb52ea023c0203fa0
refs/heads/master
2023-04-01T12:20:50.723293
2021-02-03T20:19:30
2021-02-03T20:19:30
297,756,654
0
0
Apache-2.0
true
2020-09-22T19:52:21
2020-09-22T19:52:20
2020-09-22T18:53:32
2020-09-22T13:38:55
3,337
0
0
0
null
false
false
import sys sys.path.append('core') from PIL import Image import argparse import os, pdb, imageio, tqdm import time import numpy as np import torch import torch.nn.functional as F import matplotlib.pyplot as plt import datasets from utils import flow_viz from utils import frame_utils from raft import RAFT from utils....
UTF-8
Python
false
false
3,304
py
91
infer.py
75
0.646792
0.636199
0
86
37.395349
112