hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
ee94d094c8672652b05c69199d8310c5213ad891
19,114
py
Python
asyncflow.py
jacobunna/asyncflow
0b2eaf90aea96e92e4a66bc8f27d62b8e8dd661e
[ "MIT" ]
2
2020-06-13T21:43:35.000Z
2020-11-12T20:12:30.000Z
asyncflow.py
jacobunna/asyncflow
0b2eaf90aea96e92e4a66bc8f27d62b8e8dd661e
[ "MIT" ]
null
null
null
asyncflow.py
jacobunna/asyncflow
0b2eaf90aea96e92e4a66bc8f27d62b8e8dd661e
[ "MIT" ]
null
null
null
"""AsyncFlow executes functions concurrently while respecting dependencies between them. AsyncFlow generates "flows" which can be executed using asyncio_, trio_ or curio_. .. _asyncio: https://docs.python.org/3/library/asyncio.html .. _trio: https://trio.readthedocs.io/en/stable/ .. _curio: https://curio.readthedocs....
29.680124
85
0.610181
2,143
19,114
5.297713
0.15399
0.013389
0.00872
0.013741
0.322998
0.261076
0.209108
0.191227
0.15573
0.137761
0
0.000959
0.291096
19,114
643
86
29.726283
0.8369
0.280737
0
0.328402
1
0
0.039291
0.007981
0
0
0
0
0
1
0.100592
false
0.014793
0.04142
0.023669
0.304734
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ee9f38e15a1ba201a6c2c7e4871940451761cced
2,219
py
Python
utils/fetchOTP.py
Anwit/VaccineSlotBooker
826351ce69b0cada4f6884f98f67ea76688792c6
[ "MIT" ]
null
null
null
utils/fetchOTP.py
Anwit/VaccineSlotBooker
826351ce69b0cada4f6884f98f67ea76688792c6
[ "MIT" ]
null
null
null
utils/fetchOTP.py
Anwit/VaccineSlotBooker
826351ce69b0cada4f6884f98f67ea76688792c6
[ "MIT" ]
null
null
null
import datetime import imaplib import email import traceback from email.header import decode_header # ------------------------------------------------- # # Utility to read email from Gmail Using Python # # ------------------------------------------------ import time from email import utils import pytz SMTP_SERVER = "...
29.586667
109
0.552952
257
2,219
4.638132
0.424125
0.053691
0.032718
0.045302
0.050336
0.050336
0.050336
0
0
0
0
0.019417
0.30374
2,219
74
110
29.986486
0.752104
0.116719
0
0
0
0
0.097386
0
0
0
0
0
0
1
0.075472
false
0.075472
0.150943
0.018868
0.320755
0.037736
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ee9f7ff84b46d064da30152868469af6e5699471
1,002
py
Python
tests/unitTests/titleShieve.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
1
2018-09-09T08:34:02.000Z
2018-09-09T08:34:02.000Z
tests/unitTests/titleShieve.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
null
null
null
tests/unitTests/titleShieve.py
Los-Phoenix/Word2vec_LP
c645bdc08bb81d5b70afe3f3e0b6a1549c1a1802
[ "MIT" ]
null
null
null
#coding:utf-8 #把wikititle import os import sys, getopt reload(sys) sys.setdefaultencoding('utf-8') maxLength = 10000 def is_chinese(uchar): """判断一个unicode是否是汉字""" if uchar >= u'\u4e00' and uchar <= u'\u9fa5': return True else: return False #这个脚本将读取wikiTitle #每一行:先分掉' ' 再做strip #再取全是汉字的...
17.892857
63
0.617764
126
1,002
4.84127
0.571429
0.052459
0
0
0
0
0
0
0
0
0
0.037037
0.245509
1,002
55
64
18.218182
0.769841
0.10978
0
0
0
0
0.105263
0.030409
0
0
0
0
0
0
null
null
0
0.0625
null
null
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eea06d63a57a7d497654ed4c2b58a212c027acdd
502
py
Python
createsub.py
huuhoa/autosplitmp3
8345c45413527f74380de5268674e9a133359f27
[ "MIT" ]
2
2020-01-01T16:16:21.000Z
2020-01-01T16:53:21.000Z
createsub.py
huuhoa/autosplitmp3
8345c45413527f74380de5268674e9a133359f27
[ "MIT" ]
2
2020-01-02T00:44:29.000Z
2021-11-18T14:57:38.000Z
createsub.py
huuhoa/autosplitmp3
8345c45413527f74380de5268674e9a133359f27
[ "MIT" ]
1
2020-01-01T23:43:58.000Z
2020-01-01T23:43:58.000Z
import os import subprocess import glob import autosub import time def main(): for file in glob.glob('*.mp3'): print('generating subtitle for %s' % file) if os.path.exists(file.replace('.mp3', '.srt')): print('skip existing file: %s' % file) continue autosub.generat...
23.904762
56
0.591633
63
502
4.571429
0.555556
0.052083
0
0
0
0
0
0
0
0
0
0.010959
0.272908
502
20
57
25.1
0.778082
0.159363
0
0
0
0
0.164678
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.4
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
eea4742ab1f77f8b1999f2848e42c52b1fb26ede
11,787
py
Python
isitopen/controllers/enquiry.py
oki-archive/isitopen
828288ed4ede395aceeb96cd798eb028431dde06
[ "OML" ]
1
2018-08-01T07:10:24.000Z
2018-08-01T07:10:24.000Z
isitopen/controllers/enquiry.py
oki-archive/isitopen
828288ed4ede395aceeb96cd798eb028431dde06
[ "OML" ]
null
null
null
isitopen/controllers/enquiry.py
oki-archive/isitopen
828288ed4ede395aceeb96cd798eb028431dde06
[ "OML" ]
null
null
null
from isitopen.lib.base import * import pprint class EnquiryController(BaseController): def index(self): self._redirect_to_enquiry_list() def list(self): self._receive() c.enquiries = model.Enquiry.query.all() return render('enquiry/list.html') def view(self, id): ...
38.145631
125
0.569611
1,403
11,787
4.545973
0.135424
0.056444
0.0254
0.018815
0.468015
0.368924
0.278614
0.262465
0.204453
0.182502
0
0.003318
0.335115
11,787
308
126
38.269481
0.810514
0.070162
0
0.402256
0
0
0.067106
0.00192
0.003759
0
0
0.003247
0
0
null
null
0.011278
0.007519
null
null
0.003759
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eead0a6007ddfbf817cdc64c243f46394277339f
30,339
py
Python
PyQuante/FCI_PyQuante.py
simsta/pyquante-fullci
c301e07a8b9091251f99ab127b66732cfcd35278
[ "MIT" ]
2
2015-03-30T00:07:52.000Z
2015-05-01T19:16:22.000Z
PyQuante/FCI_PyQuante.py
simsta/pyquante-fullci
c301e07a8b9091251f99ab127b66732cfcd35278
[ "MIT" ]
null
null
null
PyQuante/FCI_PyQuante.py
simsta/pyquante-fullci
c301e07a8b9091251f99ab127b66732cfcd35278
[ "MIT" ]
null
null
null
""" Full CI based on determinants rather than on CSFs. The approach is the one introduced by Olsen J Chem Phys 89 2185 (1988) It is also described in the book Molecular electronic structure theory, by Helgaker, Olsen, Jorgensen. There it is called 'Minimal operator count (MOC) method' written by Simon Sala Nota...
33.013058
198
0.549359
3,929
30,339
4.069483
0.129804
0.015948
0.014072
0.009632
0.483082
0.411033
0.359685
0.305898
0.277941
0.26168
0
0.018876
0.359142
30,339
918
199
33.04902
0.803477
0.06279
0
0.26703
0
0
0.041691
0.001125
0
0
0
0
0.008174
0
null
null
0
0.032698
null
null
0.079019
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eeb79bc006044c52a98ab0933ae2ec8d4bc2a77c
3,488
py
Python
src/typeclasses/migrations/0005_auto__add_field_attribute_db_strvalue__add_field_attribute_db_category.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
2
2019-02-24T00:20:47.000Z
2020-04-24T15:50:31.000Z
src/typeclasses/migrations/0005_auto__add_field_attribute_db_strvalue__add_field_attribute_db_category.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
null
null
null
src/typeclasses/migrations/0005_auto__add_field_attribute_db_strvalue__add_field_attribute_db_category.py
reddcoin-project/ReddConnect
5c212683de6b80b81fd15ed05239c3a1b46c3afd
[ "BSD-3-Clause" ]
1
2019-01-05T15:51:37.000Z
2019-01-05T15:51:37.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Attribute.db_strvalue' db.add_column(u'typeclasses_attribute', 'db_strvalue', ...
50.550725
145
0.585436
395
3,488
4.972152
0.189873
0.069246
0.114053
0.162933
0.761202
0.671079
0.626273
0.439919
0.392566
0.369145
0
0.007647
0.212729
3,488
69
146
50.550725
0.707575
0.100631
0
0.108696
0
0
0.472506
0.224425
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.195652
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eeb89bb3a193f4c9704c20ba981287b437292483
877
py
Python
tools/license/find_text_all_file_dir.py
VanderChen/alcor-int
3c36f4bcc9d096fb39bcced0f6fd4d340a985526
[ "Apache-2.0" ]
7
2020-02-03T23:03:11.000Z
2020-02-21T19:54:35.000Z
tools/license/find_text_all_file_dir.py
VanderChen/alcor-int
3c36f4bcc9d096fb39bcced0f6fd4d340a985526
[ "Apache-2.0" ]
5
2020-02-06T23:08:11.000Z
2020-02-25T00:55:36.000Z
tools/license/find_text_all_file_dir.py
VanderChen/alcor-int
3c36f4bcc9d096fb39bcced0f6fd4d340a985526
[ "Apache-2.0" ]
1
2020-02-27T19:22:29.000Z
2020-02-27T19:22:29.000Z
import os user_input = input('What is the name of your directory: ') user_input = user_input.replace(" ", "").lower() rootdir = str(user_input) searchstring = input('What word are you trying to find?: ') for subdir, dirs, files in os.walk(rootdir): for file in files: file_location = os.path.join(subdi...
31.321429
73
0.538198
106
877
4.358491
0.490566
0.155844
0.056277
0.047619
0.082251
0
0
0
0
0
0
0
0.36146
877
27
74
32.481481
0.825
0.171038
0
0.111111
0
0
0.100968
0
0
0
0
0
0
1
0
false
0.111111
0.055556
0
0.055556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
eeba7880437e7219e0f246d2ca8a93aad347322b
652
py
Python
quick_sort.py
Tips-Lee/Interview
62c9eb8cefe49eb8b1beabe30ec5def66427ea60
[ "MIT" ]
1
2020-04-26T00:56:03.000Z
2020-04-26T00:56:03.000Z
quick_sort.py
Tips-Lee/Interview
62c9eb8cefe49eb8b1beabe30ec5def66427ea60
[ "MIT" ]
null
null
null
quick_sort.py
Tips-Lee/Interview
62c9eb8cefe49eb8b1beabe30ec5def66427ea60
[ "MIT" ]
null
null
null
from calculate_time import cal_time def split(li, left, right): tmp = li[left] i, j = left, right while i < j: while li[j] >= tmp and i < j: j -= 1 li[i] = li[j] while li[i] <= tmp and i < j: i += 1 li[j] = li[i] li[i] = tmp return i def __...
19.176471
38
0.51227
106
652
2.915094
0.292453
0.174757
0.213592
0.10356
0
0
0
0
0
0
0
0.025761
0.345092
652
34
39
19.176471
0.697892
0
0
0
0
0
0.012251
0
0
0
0
0
0
1
0.115385
false
0
0.038462
0
0.192308
0.038462
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eebfa4f4ec3947b93cdd23f4eaa054428d9a04e5
1,187
py
Python
legocollector/inventory/migrations/0004_auto_20190909_1140.py
ericziethen/legocollector
06aa984a5998979e7aa9c59e94a38633d653de55
[ "MIT" ]
1
2020-12-21T22:23:09.000Z
2020-12-21T22:23:09.000Z
legocollector/inventory/migrations/0004_auto_20190909_1140.py
ericziethen/legocollector
06aa984a5998979e7aa9c59e94a38633d653de55
[ "MIT" ]
150
2019-08-28T20:20:01.000Z
2020-07-12T07:09:05.000Z
legocollector/inventory/migrations/0004_auto_20190909_1140.py
ericziethen/legocollector
06aa984a5998979e7aa9c59e94a38633d653de55
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-09-09 01:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('inventory', '0003_auto_20190907_2104'), ] operations = [ migrations.AlterField( model_name='use...
37.09375
149
0.613311
121
1,187
5.876033
0.487603
0.056259
0.078762
0.123769
0.281294
0.281294
0.281294
0.281294
0.281294
0.281294
0
0.037037
0.249368
1,187
31
150
38.290323
0.760943
0.037911
0
0.08
1
0
0.169298
0.020175
0
0
0
0
0
1
0
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eecd66c77c6af332362abbe2a33f528a0fc86f4a
11,733
py
Python
spatialnde/pt_steps/spatialnde_interactive_perspective_transform.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
spatialnde/pt_steps/spatialnde_interactive_perspective_transform.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
spatialnde/pt_steps/spatialnde_interactive_perspective_transform.py
isuthermography/spatialnde
983de2e68139c33ab5eb8df59ac0aaa84bad096a
[ "Apache-2.0" ]
null
null
null
import sys, os import copy import numpy as np import posixpath import cv2 try: # py2.x from urllib import pathname2url from urllib import url2pathname from urllib import quote from urllib import unquote pass except ImportError: # py3.x from urllib.request import pathname2url from ...
35.44713
184
0.675445
1,501
11,733
5.141239
0.242505
0.008423
0.010885
0.010367
0.262667
0.163924
0.148892
0.143579
0.135027
0.110146
0
0.015511
0.208728
11,733
330
185
35.554545
0.815704
0.21333
0
0.280193
0
0
0.086985
0.018531
0
0
0
0.00303
0.004831
1
0.038647
false
0.120773
0.125604
0
0.21256
0.05314
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
eed11da50b86f933694e4c57d99067f96d4ac757
1,064
py
Python
nonebot_plugin_test/drivers/fastapi.py
nonebot/plugin-test
1244ba8dd4027257a326ebe3e25d07452f2c5c8a
[ "MIT" ]
32
2020-12-03T16:17:21.000Z
2022-03-27T02:17:10.000Z
nonebot_plugin_test/drivers/fastapi.py
nonebot/plugin-test
1244ba8dd4027257a326ebe3e25d07452f2c5c8a
[ "MIT" ]
11
2021-01-05T00:43:52.000Z
2022-03-05T14:31:38.000Z
nonebot_plugin_test/drivers/fastapi.py
nonebot/nonebot-test
1244ba8dd4027257a326ebe3e25d07452f2c5c8a
[ "MIT" ]
8
2021-01-21T15:48:38.000Z
2022-02-28T06:14:06.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pathlib import Path from nonebot.drivers.fastapi import Driver from fastapi.staticfiles import StaticFiles from nonebot_plugin_test import (TEST_HTML_PATH, TEST_WS_PATH, TEST_INFO_PATH, TEST_PLUGIN_PATH, TEST_MATCHER_PATH, ...
35.466667
83
0.725564
140
1,064
5.128571
0.328571
0.108635
0.05571
0.087744
0.103064
0.103064
0.103064
0
0
0
0
0.002307
0.18515
1,064
29
84
36.689655
0.825836
0.040414
0
0
0
0
0.017664
0
0
0
0
0
0
1
0.052632
false
0
0.315789
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
eed1205b6fae2149615ca027323cf495f1fcda36
1,300
py
Python
sydent/sms/types.py
clmnin/sydent
867c569aabd0163952a239900f1353199ff373e2
[ "Apache-2.0" ]
220
2015-02-04T21:31:04.000Z
2022-03-19T14:36:08.000Z
sydent/sms/types.py
clmnin/sydent
867c569aabd0163952a239900f1353199ff373e2
[ "Apache-2.0" ]
329
2015-09-22T09:44:05.000Z
2022-03-29T15:20:24.000Z
sydent/sms/types.py
clmnin/sydent
867c569aabd0163952a239900f1353199ff373e2
[ "Apache-2.0" ]
85
2015-05-19T08:54:36.000Z
2022-02-28T13:04:18.000Z
# See "Request body" section of # https://www.openmarket.com/docs/Content/apis/v4http/send-json.htm from typing_extensions import Literal, TypedDict TypeOfNumber = Literal[1, 3, 5] class _MessageRequired(TypedDict): type: Literal["text", "hexEncodedText", "binary", "wapPush"] content: str class Message(_Me...
24.074074
67
0.724615
146
1,300
6.390411
0.636986
0.042872
0.040729
0.051447
0
0
0
0
0
0
0
0.007421
0.170769
1,300
53
68
24.528302
0.858071
0.217692
0
0.071429
0
0
0.086224
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.964286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
eed85718e0c08e9ca7a736b14addd95e60b63eb1
9,868
py
Python
Numpy/Numpy Basics.py
Akshat-MS/DataScience-Learning
e3614eeb3aef9c6ba80b425f043b12bc09665d72
[ "MIT" ]
null
null
null
Numpy/Numpy Basics.py
Akshat-MS/DataScience-Learning
e3614eeb3aef9c6ba80b425f043b12bc09665d72
[ "MIT" ]
null
null
null
Numpy/Numpy Basics.py
Akshat-MS/DataScience-Learning
e3614eeb3aef9c6ba80b425f043b12bc09665d72
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # NumPy # # # In[32]: # NumPy is a library for scientific computations in Python. # Numpy is one of the packages you have to know if you're going to do data science with Python. # It is a Python library that provides support for large, multidimensional arrays along with ma...
23.835749
138
0.686056
1,680
9,868
3.989286
0.228571
0.014324
0.014772
0.009699
0.214115
0.170098
0.13026
0.094748
0.094748
0.068338
0
0.035152
0.169741
9,868
413
139
23.893462
0.782497
0.693758
0
0
0
0
0.119943
0
0
0
0
0
0
1
0
false
0
0.013699
0
0.013699
0.479452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
eed86269e6f5ca3ee982b8dadfb42748b359395b
435
py
Python
pynet/models/utils.py
akman-wyk/my_alexnet
868d53048165ce7f083b3b8549e9c969e3adaba8
[ "Apache-2.0" ]
8
2020-11-22T02:22:55.000Z
2022-03-16T12:18:03.000Z
pynet/models/utils.py
zjZSTU/PyNet
354c7ee88a712a1f5069d58a0be4a6cbfaeab861
[ "Apache-2.0" ]
null
null
null
pynet/models/utils.py
zjZSTU/PyNet
354c7ee88a712a1f5069d58a0be4a6cbfaeab861
[ "Apache-2.0" ]
4
2020-12-10T09:21:56.000Z
2021-04-19T02:25:01.000Z
# -*- coding: utf-8 -*- # @Time : 19-6-20 下午2:16 # @Author : zj import pickle def save_params(params, path='params.pkl'): with open(path, 'wb') as f: pickle.dump(params, f, -1) def load_params(path='params.pkl'): with open(path, 'rb') as f: param = pickle.load(f) return param if...
16.730769
43
0.563218
65
435
3.584615
0.569231
0.085837
0.137339
0.16309
0.266094
0.266094
0.266094
0
0
0
0
0.04321
0.255172
435
25
44
17.4
0.675926
0.14023
0
0
0
0
0.110811
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0.076923
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eed981749386a566194a24af36cfe8a0d5038cc5
23,585
py
Python
WanderingStarBroken.py
Xzya/CodeAbbeySolutions
0a37eb246c24c1d74a6ff6c2ccf525444c5e787a
[ "MIT" ]
2
2021-07-25T13:41:48.000Z
2022-03-02T21:07:39.000Z
WanderingStarBroken.py
Xzya/CodeAbbeySolutions
0a37eb246c24c1d74a6ff6c2ccf525444c5e787a
[ "MIT" ]
null
null
null
WanderingStarBroken.py
Xzya/CodeAbbeySolutions
0a37eb246c24c1d74a6ff6c2ccf525444c5e787a
[ "MIT" ]
5
2015-10-29T16:11:43.000Z
2022-03-13T12:50:32.000Z
#input # http://www.shodor.org/interactivate/activities/SimplePlot/ # http://en.wikipedia.org/wiki/Rotation_matrix # http://reference.wolfram.com/language/ref/RotationMatrix.html # http://www.wolframalpha.com/input/?i=RotationMatrix%5B90+Degree%5D # http://www.wolframalpha.com/input/?i=%7B%7B0%2C+-1%7D%2C+%7B1%2C+0%7D%...
35.626888
2,949
0.569387
4,167
23,585
3.104632
0.080394
0.01546
0.027827
0.029682
0.53691
0.503053
0.479168
0.460462
0.451496
0.449331
0
0.147754
0.192198
23,585
662
2,950
35.626888
0.531283
0.444393
0
0.265306
0
0
0
0
0
0
0
0.001511
0
1
0.12585
false
0
0.010204
0.034014
0.27551
0.017007
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eee69e790e157a8508806a45820784a4a474175c
10,763
py
Python
src/bilbyui/models.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
1
2020-10-26T02:35:26.000Z
2020-10-26T02:35:26.000Z
src/bilbyui/models.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
31
2020-05-04T05:57:45.000Z
2022-02-23T04:35:35.000Z
src/bilbyui/models.py
gravitationalwavedc/gwcloud_bilby
f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563
[ "MIT" ]
null
null
null
import datetime import os import uuid from django.conf import settings from django.db import models from django.utils import timezone from bilbyui.utils.jobs.request_file_list import request_file_list from bilbyui.utils.jobs.request_job_status import request_job_status from .utils.parse_ini_file import parse_ini_file...
34.944805
120
0.665242
1,485
10,763
4.73064
0.198653
0.01452
0.012527
0.011957
0.314875
0.250249
0.209822
0.209822
0.209822
0.209822
0
0.000886
0.265818
10,763
307
121
35.058632
0.88813
0.414847
0
0.34058
0
0
0.022727
0
0
0
0
0
0
1
0.144928
false
0
0.065217
0.036232
0.586957
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
eee8894a9ea1c1c84cd1517c3cf1624964bc9026
1,221
py
Python
monitoring/migrations/0001_initial.py
eewinkk/sdnantwr
3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b
[ "MIT" ]
null
null
null
monitoring/migrations/0001_initial.py
eewinkk/sdnantwr
3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b
[ "MIT" ]
null
null
null
monitoring/migrations/0001_initial.py
eewinkk/sdnantwr
3fc395a2ae268efd7db4d4d4e3424c0c4252ed5b
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-10 15:16 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Kegiatan', fields=[ ('id', models.BigAutoFi...
35.911765
117
0.587224
126
1,221
5.531746
0.428571
0.045911
0.120517
0.143472
0.596844
0.596844
0.596844
0.496413
0.496413
0.496413
0
0.022701
0.27846
1,221
33
118
37
0.768445
0.036855
0
0.538462
1
0
0.086031
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eee9892e0dbb86617b88172b09ea29be88bcb94c
5,481
py
Python
Gse/examples/decorator.py
lydiaxing/fprime
f6b3e03f89e9aca1614243c9896d4a72aa0cc726
[ "Apache-2.0" ]
2
2020-09-08T05:39:05.000Z
2021-05-04T14:58:51.000Z
Gse/examples/decorator.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
2
2019-02-27T03:17:15.000Z
2019-03-01T22:34:30.000Z
Gse/examples/decorator.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
3
2019-02-17T20:41:15.000Z
2019-02-26T21:06:50.000Z
''' Created on Dec 22, 2014 @author: reder ''' import functools import numbers # Simple function decorator example... def float_args_and_return(function): @functools.wraps(function) def wrapper(* args, ** kwargs): args = [float(arg) for arg in args] return float(function(* args, ** kwargs)) ...
27.681818
76
0.619595
688
5,481
4.821221
0.223837
0.045222
0.018993
0.014471
0.344588
0.292734
0.283992
0.237564
0.207416
0.207416
0
0.020459
0.268747
5,481
197
77
27.822335
0.807136
0.082832
0
0.348148
0
0
0.082593
0
0
0
0
0
0.007407
0
null
null
0.007407
0.014815
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eeecbbfcbebe272f1230ce5888130e65288de5e6
319
py
Python
setup.py
18F/prototype-headstart-prescreener
73edd86ebad2f56dd3461906dbed1679d4433bd7
[ "CC0-1.0" ]
null
null
null
setup.py
18F/prototype-headstart-prescreener
73edd86ebad2f56dd3461906dbed1679d4433bd7
[ "CC0-1.0" ]
1
2020-01-31T20:59:35.000Z
2020-01-31T20:59:35.000Z
setup.py
18F/prototype-headstart-prescreener
73edd86ebad2f56dd3461906dbed1679d4433bd7
[ "CC0-1.0" ]
1
2021-02-04T11:12:46.000Z
2021-02-04T11:12:46.000Z
from setuptools import find_packages, setup setup( name='Prototype Head Start Pre-Screener', version='0.0.1', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ 'flask', 'requests', 'python-dotenv', 'Flask-HTTPAuth' ], )
19.9375
45
0.62069
35
319
5.485714
0.828571
0.125
0
0
0
0
0
0
0
0
0
0.012658
0.257053
319
15
46
21.266667
0.797468
0
0
0
0
0
0.244514
0
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
eef97ab50074593774d4e9b96227b1996324b0d4
418
py
Python
Blog/blog/migrations/0007_auto_20190604_2126.py
Bruwald/DjangoBlog
e2698de7b5329b21f83d7f2e301232492b901ec0
[ "MIT" ]
null
null
null
Blog/blog/migrations/0007_auto_20190604_2126.py
Bruwald/DjangoBlog
e2698de7b5329b21f83d7f2e301232492b901ec0
[ "MIT" ]
null
null
null
Blog/blog/migrations/0007_auto_20190604_2126.py
Bruwald/DjangoBlog
e2698de7b5329b21f83d7f2e301232492b901ec0
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-05 00:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0006_auto_20190604_2108'), ] operations = [ migrations.AlterField( model_name='blog', name='blog_date', ...
22
84
0.614833
48
418
5.1875
0.729167
0.096386
0.096386
0
0
0
0
0
0
0
0
0.101639
0.270335
418
18
85
23.222222
0.714754
0.107656
0
0
1
0
0.132075
0.061995
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eefa86ae1444067fd6a37c0c9621b1e0d10af26d
265
py
Python
src/model/utils/semantic_relations_corpus_altlex.py
UKPLab/iwcs2017_disambiguation_causality_lexical_markers
9bae1b19326c22c9b928772d84c2dfe721ad8316
[ "Apache-2.0" ]
3
2019-02-07T11:45:46.000Z
2021-08-19T03:52:37.000Z
src/model/utils/semantic_relations_corpus_altlex.py
UKPLab/iwcs2017_disambiguation_causality_lexical_markers
9bae1b19326c22c9b928772d84c2dfe721ad8316
[ "Apache-2.0" ]
null
null
null
src/model/utils/semantic_relations_corpus_altlex.py
UKPLab/iwcs2017_disambiguation_causality_lexical_markers
9bae1b19326c22c9b928772d84c2dfe721ad8316
[ "Apache-2.0" ]
2
2018-07-29T15:18:12.000Z
2020-07-13T15:14:12.000Z
''' Created on 1 de jul. de 2016 @author: Eugenio Martínez Cámara ''' from enum import Enum, unique @unique class SemanticRelationsCorpusAltLex(Enum): ''' Semantic relations for the corpus SNLI ''' ALTLEX_NONCAUSAL = 0 ALTLEX_CAUSAL = 1
15.588235
42
0.679245
32
265
5.5625
0.8125
0
0
0
0
0
0
0
0
0
0
0.034653
0.237736
265
16
43
16.5625
0.846535
0.381132
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e10256ea1fb29dfcff5cd831f53b7405738c05e3
359
py
Python
tests/sampleapp/models.py
kevinlondon/django-rest-framework-client-gen
b93c6ba75aa48603ff3f6bd3581cb06887ce4c49
[ "0BSD" ]
null
null
null
tests/sampleapp/models.py
kevinlondon/django-rest-framework-client-gen
b93c6ba75aa48603ff3f6bd3581cb06887ce4c49
[ "0BSD" ]
null
null
null
tests/sampleapp/models.py
kevinlondon/django-rest-framework-client-gen
b93c6ba75aa48603ff3f6bd3581cb06887ce4c49
[ "0BSD" ]
null
null
null
from rest_framework import serializers class FooModel(object): pass class FooSerializer(serializers.Serializer): class Meta: model = FooModel email = serializers.EmailField() content = serializers.CharField(max_length=200) created = serializers.DateTimeField() class FooViewSet(object)...
18.894737
51
0.740947
35
359
7.514286
0.657143
0.136882
0
0
0
0
0
0
0
0
0
0.010274
0.18663
359
18
52
19.944444
0.890411
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e103799cd777f52f926702da4fa0887d63fbe2ca
4,012
py
Python
bin/genefusion2fasta.py
ChiLoveChuan/iTuNES-dev
de45fc26f7e98a121d0205d34d5e54cd9e710164
[ "MIT" ]
1
2018-11-21T06:09:14.000Z
2018-11-21T06:09:14.000Z
bin/genefusion2fasta.py
XIAOCHIZI/iTuNES-dev
de45fc26f7e98a121d0205d34d5e54cd9e710164
[ "MIT" ]
null
null
null
bin/genefusion2fasta.py
XIAOCHIZI/iTuNES-dev
de45fc26f7e98a121d0205d34d5e54cd9e710164
[ "MIT" ]
null
null
null
from pyfasta import Fasta from collections import deque import sys,getopt opts,args=getopt.getopt(sys.argv[1:],"hi:c:o:s:",["input_eric_file","score_cutoff","out_dir","sample_id"]) input_eric_file="" score_cutoff=0.5 out_dir="" sample_id="" USAGE=''' This script convert insertion VCF derived VEP result to fasta for...
31.100775
106
0.548106
601
4,012
3.439268
0.33777
0.05225
0.044025
0.020319
0.185776
0.079342
0.058055
0.058055
0
0
0
0.020246
0.249003
4,012
128
107
31.34375
0.665782
0.014457
0
0.157895
0
0.008772
0.237538
0.012971
0
0
0
0
0
0
null
null
0.026316
0.026316
null
null
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e106ba10f26fd9ff8c50a802f336fb1383d3fa60
3,673
py
Python
old_senate_scraper.py
JEbertPrime/Congress-Gift-Data
6eafd5da5f03092028f125a6811fa0dc911b7800
[ "MIT" ]
1
2018-03-10T20:18:57.000Z
2018-03-10T20:18:57.000Z
old_senate_scraper.py
JEbertPrime/Congress-Gift-Data
6eafd5da5f03092028f125a6811fa0dc911b7800
[ "MIT" ]
null
null
null
old_senate_scraper.py
JEbertPrime/Congress-Gift-Data
6eafd5da5f03092028f125a6811fa0dc911b7800
[ "MIT" ]
1
2018-03-10T21:54:35.000Z
2018-03-10T21:54:35.000Z
import csv import datetime import xml.etree.ElementTree as ET xml_file = input("what is the name of your file?\n") + '.xml' csv_file_name = input("What is your csv file name?\n") #See the house scraper for most of the stuff I didn't comment out here tree = ET.parse(xml_file) root = tree.getroot() #For debugging, and kn...
89.585366
1,877
0.698067
518
3,673
4.916988
0.262548
0.125638
0.094229
0.119356
0.583039
0.583039
0.583039
0.570082
0.52768
0.52768
0
0.001316
0.172339
3,673
40
1,878
91.825
0.836513
0.186768
0
0.142857
0
0
0.532079
0
0
0
0
0
0
1
0
false
0
0.107143
0
0.107143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e10f33c71577d96911afd128ea87f5b9c2af7458
8,491
py
Python
cnnpref/prefer_img_dgn_lbfgs.py
KamitaniLab/cnnpref
3fd0e2d64afa866d5b2ce1b72cf67a833c93321b
[ "MIT" ]
4
2019-04-19T15:09:41.000Z
2021-06-11T01:43:53.000Z
cnnpref/prefer_img_dgn_lbfgs.py
KamitaniLab/cnnpref
3fd0e2d64afa866d5b2ce1b72cf67a833c93321b
[ "MIT" ]
null
null
null
cnnpref/prefer_img_dgn_lbfgs.py
KamitaniLab/cnnpref
3fd0e2d64afa866d5b2ce1b72cf67a833c93321b
[ "MIT" ]
1
2020-09-29T02:51:36.000Z
2020-09-29T02:51:36.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- '''generate preferred image for the target uints''' # Author: Shen Guo-Hua <shen-gh@atr.jp> __author__ = 'sgh' # version: v1 # import import os import numpy as np import scipy.io as sio import PIL.Image import caffe from scipy.optimize import minimize...
37.737778
190
0.637499
1,196
8,491
4.30602
0.208194
0.03534
0.038058
0.023107
0.374369
0.346019
0.305825
0.238252
0.223495
0.209903
0
0.018296
0.266164
8,491
224
191
37.90625
0.808217
0.329643
0
0.226804
1
0
0.029277
0.004018
0
0
0
0
0
1
0.020619
false
0
0.082474
0
0.123711
0.010309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e1150d5687e424d2bcd8349c86b0323bfee60226
507
py
Python
gotissues/config.py
codeforamerica/gotissues
ce4536cb1beac69f2a886699888a8ccebe42cb14
[ "MIT" ]
8
2015-02-26T23:29:19.000Z
2015-11-15T07:28:16.000Z
gotissues/config.py
codeforamerica/gotissues
ce4536cb1beac69f2a886699888a8ccebe42cb14
[ "MIT" ]
30
2015-03-16T17:13:05.000Z
2015-08-20T00:55:15.000Z
gotissues/config.py
codeforamerica/gotissues
ce4536cb1beac69f2a886699888a8ccebe42cb14
[ "MIT" ]
4
2015-03-16T16:58:02.000Z
2021-04-16T10:22:01.000Z
# All of Got Issues config values import os import logging # Logging Setup logging.basicConfig(level=logging.INFO) # Variables GOOGLE_ANALYTICS_PROFILE_ID = "41226190" GOOGLE_SERVICE_ACCOUNT_EMAIL = os.environ["GOOGLE_SERVICE_ACCOUNT_EMAIL"] GOOGLE_SERVICE_ACCOUNT_SECRET_KEY = os.environ["GOOGLE_SERVICE_ACCOUNT_SECRE...
33.8
83
0.830375
73
507
5.369863
0.424658
0.137755
0.204082
0.127551
0.244898
0
0
0
0
0
0
0.017094
0.076923
507
15
84
33.8
0.820513
0.108481
0
0
0
0
0.273942
0.135857
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e11a98da92e46b1f9268383447a826ac9b8b555f
17,846
py
Python
watersnake/membership.py
bjhockley/watersnake
a06d2eb8dec0207ee329dc6ab574ba1a347e9522
[ "MIT" ]
null
null
null
watersnake/membership.py
bjhockley/watersnake
a06d2eb8dec0207ee329dc6ab574ba1a347e9522
[ "MIT" ]
null
null
null
watersnake/membership.py
bjhockley/watersnake
a06d2eb8dec0207ee329dc6ab574ba1a347e9522
[ "MIT" ]
null
null
null
""" Implementation of a protocol based on the SWIM protocol described in http://www.cs.cornell.edu/~asdas/research/dsn02-SWIM.pdf ("the paper") """ # Disable 'Too many instance attributes' pylint: disable=R0902 import random import itertools import watersnake.swimmsg as swimmsg import watersnake.swimprot...
41.025287
80
0.599798
2,128
17,846
4.763628
0.156485
0.063924
0.034527
0.023084
0.367466
0.256387
0.209924
0.178554
0.119266
0.073
0
0.001512
0.333016
17,846
434
81
41.119816
0.850122
0.110893
0
0.274021
0
0
0.039597
0.010076
0
0
0
0
0.010676
0
null
null
0.007117
0.014235
null
null
0.007117
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e11aeb85e6f3f891982c8c8464a686ceeaf9353a
2,892
py
Python
bin/munkistaging-pkgsinfo.py
ox-it/munki-staging
d88dddd35ae55a4db00b517d39378494caa0380d
[ "Apache-2.0" ]
24
2015-09-30T13:55:13.000Z
2021-02-23T14:51:18.000Z
bin/munkistaging-pkgsinfo.py
ox-it/munki-staging
d88dddd35ae55a4db00b517d39378494caa0380d
[ "Apache-2.0" ]
12
2015-09-29T09:08:50.000Z
2018-01-24T14:51:01.000Z
bin/munkistaging-pkgsinfo.py
ox-it/munki-trello
d88dddd35ae55a4db00b517d39378494caa0380d
[ "Apache-2.0" ]
4
2015-10-01T09:21:44.000Z
2016-08-11T12:27:16.000Z
#!/usr/bin/python # # This software is Copyright (c) 2015 University of Oxford # # This work is made avaiable to you under the terms of the Apache # License, Version 2.0; you may not use this source code except in # compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/...
34.023529
135
0.684993
381
2,892
5.112861
0.385827
0.073922
0.041068
0.014374
0.13347
0.106776
0.106776
0.106776
0.077002
0.077002
0
0.007114
0.222337
2,892
84
136
34.428571
0.859048
0.214385
0
0.27451
0
0
0.281153
0
0
0
0
0
0
0
null
null
0
0.078431
null
null
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e11bed49cfefcaf6e6ec1af259f1476a76ee9514
3,726
py
Python
src/mmw/apps/user/models.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
null
null
null
src/mmw/apps/user/models.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
null
null
null
src/mmw/apps/user/models.py
lsetiawan/model-my-watershed
4646ebb486cb7902dce1b13c9ada32e80d22fcf0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.utils import timezone from rest_framework.authtoken.models i...
32.4
72
0.699141
453
3,726
5.527594
0.335541
0.023962
0.028754
0.038339
0.166933
0.138578
0.085863
0.036741
0.036741
0
0
0.010544
0.21095
3,726
114
73
32.684211
0.841156
0.075416
0
0.064103
0
0
0.103175
0.006761
0
0
0
0
0
1
0.076923
false
0
0.115385
0.038462
0.705128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e11eb99e503409661b24b458e188f6d3e0b6c5ee
2,541
py
Python
mlops_manager/templates-old/app/default/__APP_NAME__/__APP_NAME__/config.py
axelmagn/vertex-mlops-template
0dbc939e8454ca7d0b7e146efae3d7bed3b90383
[ "Apache-2.0" ]
6
2021-06-25T09:37:23.000Z
2022-03-18T11:05:16.000Z
mlops_manager/templates-old/app/default/__APP_NAME__/__APP_NAME__/config.py
axelmagn/vertex-mlops-template
0dbc939e8454ca7d0b7e146efae3d7bed3b90383
[ "Apache-2.0" ]
null
null
null
mlops_manager/templates-old/app/default/__APP_NAME__/__APP_NAME__/config.py
axelmagn/vertex-mlops-template
0dbc939e8454ca7d0b7e146efae3d7bed3b90383
[ "Apache-2.0" ]
2
2022-03-19T13:53:44.000Z
2022-03-20T14:02:24.000Z
""" Contains configuration management logic, most importantly the 'Config' class and 'get_config' function. This module also manages a global configuration object, which may be initialized with 'init_global_config' and retrieved with 'get_config'. """ from typing import Any, Dict, Optional import yaml _CONFIG = Non...
30.987805
80
0.637151
316
2,541
4.949367
0.310127
0.063939
0.026854
0.024936
0.101023
0.051151
0
0
0
0
0
0
0.27745
2,541
81
81
31.37037
0.851852
0.415584
0
0.114286
0
0
0.000746
0
0
0
0
0
0
1
0.257143
false
0
0.057143
0.028571
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e12283b12f538f91d2e1dd3443c6d30947e2418c
313
py
Python
datauploader/metrics/__init__.py
nettorta/DataUploader
4e935c5781c308702e61ca7438e628fa8ec93ae2
[ "MIT" ]
null
null
null
datauploader/metrics/__init__.py
nettorta/DataUploader
4e935c5781c308702e61ca7438e628fa8ec93ae2
[ "MIT" ]
null
null
null
datauploader/metrics/__init__.py
nettorta/DataUploader
4e935c5781c308702e61ca7438e628fa8ec93ae2
[ "MIT" ]
null
null
null
from .metric import Metric from .aggregate import Aggregate from .histogram import Histogram from .event import Event from .distribution import Distribution available_metrics = { 'metric': Metric, 'aggregate': Aggregate, 'histogram': Histogram, 'event': Event, 'distribution': Distribution }
22.357143
38
0.738019
32
313
7.1875
0.28125
0
0
0
0
0
0
0
0
0
0
0
0.175719
313
14
39
22.357143
0.891473
0
0
0
0
0
0.130573
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e12b9b74542dfb3aadfebecfc0f45c53ad52d4d1
951
py
Python
script/nettoyageLib.py
nicolasleger/velibstats
850028cd6aa8ba86f7fe597433f8fc6aca211aa0
[ "MIT" ]
null
null
null
script/nettoyageLib.py
nicolasleger/velibstats
850028cd6aa8ba86f7fe597433f8fc6aca211aa0
[ "MIT" ]
null
null
null
script/nettoyageLib.py
nicolasleger/velibstats
850028cd6aa8ba86f7fe597433f8fc6aca211aa0
[ "MIT" ]
null
null
null
import pymysql from config import getMysqlConnection def nettoyerInstantanne(date): dateStr = date.strftime("%Y-%m-%d %H:%M:%S") mysql = getMysqlConnection() requete = mysql.cursor() requete.execute('DELETE FROM status WHERE idConso IN ( \ SELECT id FROM statusConso \ WHERE date < "'+dateStr+'"...
38.04
91
0.678233
105
951
6.142857
0.333333
0.085271
0.139535
0.193798
0.662016
0.494574
0.494574
0.27907
0.27907
0.27907
0
0
0.171399
951
25
92
38.04
0.818528
0
0
0.454545
0
0
0.25
0
0
0
0
0
0
1
0.136364
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0101514b764b9c203644a4737f026bb49a07f94e
1,930
py
Python
day3/main.py
BLannoo/Advent-of-Code-2021
b2d1ecd31c0fde345e29e02b0c07fa8623176e62
[ "MIT" ]
null
null
null
day3/main.py
BLannoo/Advent-of-Code-2021
b2d1ecd31c0fde345e29e02b0c07fa8623176e62
[ "MIT" ]
null
null
null
day3/main.py
BLannoo/Advent-of-Code-2021
b2d1ecd31c0fde345e29e02b0c07fa8623176e62
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List, Callable def silver(input_file_path: Path) -> int: diagnostic_report = input_file_path.read_text().split("\n") gamma_rate = silver_rate(diagnostic_report, least_common_bit) epsilon_rate = silver_rate(diagnostic_report, most_common_bit) return gamma_r...
25.733333
80
0.661658
251
1,930
4.780876
0.219124
0.28
0.1
0.076667
0.545833
0.436667
0.325
0.275
0.275
0.208333
0
0.006102
0.235751
1,930
74
81
26.081081
0.807458
0
0
0.192308
0
0
0.002073
0
0
0
0
0
0
1
0.134615
false
0
0.038462
0.038462
0.307692
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0101dafa24de16e9d10ee599556451fc61f2c581
3,359
py
Python
sfs/time/source.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
sfs/time/source.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
sfs/time/source.py
vishwesh-vishwesh/HiWi-job
8953eb744f6e03191b94869e833b44efe74f7bd8
[ "MIT" ]
null
null
null
"""Compute the sound field generated by a sound source. The Green's function describes the spatial sound propagation over time. .. include:: math-definitions.rst """ from __future__ import division import numpy as np from .. import util from .. import defs def point(xs, signal, observation_time, grid, c=None): ...
30.261261
78
0.625484
453
3,359
4.543046
0.333333
0.034985
0.01895
0.036443
0.402332
0.377065
0.377065
0.377065
0.377065
0.377065
0
0.008299
0.282525
3,359
110
79
30.536364
0.845643
0.58053
0
0
1
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
010d3844ee891e6f60943401f2d368c270103977
3,571
py
Python
src/zocalo/wrapper.py
rjgildea/python-zocalo
702d3fcdc79c385d8097715a6b03934caeb8243b
[ "BSD-3-Clause" ]
2
2019-10-16T02:24:11.000Z
2021-03-29T03:30:50.000Z
src/zocalo/wrapper.py
rjgildea/python-zocalo
702d3fcdc79c385d8097715a6b03934caeb8243b
[ "BSD-3-Clause" ]
116
2019-05-03T09:38:03.000Z
2022-03-22T17:52:03.000Z
src/zocalo/wrapper.py
stufisher/python-zocalo
d35f1316bcc34c32bd6a8c62e6eab2c3c1484443
[ "BSD-3-Clause" ]
3
2020-12-21T07:57:00.000Z
2021-12-10T15:48:52.000Z
import logging import threading import workflows.util import zocalo class BaseWrapper: def set_recipe_wrapper(self, recwrap): self.recwrap = recwrap def prepare(self, payload=""): if getattr(self, "recwrap", None): self.recwrap.send_to("starting", payload) def update(self, ...
30.262712
78
0.607673
394
3,571
5.314721
0.286802
0.08405
0.053486
0.066858
0.285578
0.285578
0.221585
0.221585
0.221585
0.179561
0
0.001943
0.279194
3,571
117
79
30.521368
0.811577
0.071689
0
0.209302
0
0
0.090492
0.01498
0
0
0
0
0
1
0.209302
false
0.011628
0.05814
0
0.325581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0112cdd248fe8e701a7c4b6b048a4dc6d5bbf04c
570
py
Python
users/admin.py
IEEE-VIT/enigma7-backend
4b8d3411b564cb3c4a2b7175819393042c214436
[ "MIT" ]
1
2021-06-01T18:11:46.000Z
2021-06-01T18:11:46.000Z
users/admin.py
IEEE-VIT/enigma7-backend
4b8d3411b564cb3c4a2b7175819393042c214436
[ "MIT" ]
null
null
null
users/admin.py
IEEE-VIT/enigma7-backend
4b8d3411b564cb3c4a2b7175819393042c214436
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User, UserOutreach, UserStatus, Logging admin.site.register(UserStatus) admin.site.register(UserOutreach) @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ('username', 'question_id', 'points', 'xp') search_fields = ('email', 'userna...
27.142857
68
0.708772
61
570
6.42623
0.491803
0.045918
0.086735
0.132653
0
0
0
0
0
0
0
0
0.135088
570
20
69
28.5
0.795132
0
0
0
0
0
0.189474
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
01149c644d554e131a67f1cd7b7d6f5732a9146c
211
py
Python
gse_infra_configuration/common/static_value.py
cynpna/gs-engine
6137d3c53621cfa044a90822c18bfceea16caa0a
[ "Apache-2.0" ]
13
2020-10-14T07:45:08.000Z
2021-10-01T08:19:56.000Z
gse_infra_configuration/common/static_value.py
cynpna/gs-engine
6137d3c53621cfa044a90822c18bfceea16caa0a
[ "Apache-2.0" ]
null
null
null
gse_infra_configuration/common/static_value.py
cynpna/gs-engine
6137d3c53621cfa044a90822c18bfceea16caa0a
[ "Apache-2.0" ]
17
2020-11-09T05:16:42.000Z
2021-12-28T08:04:33.000Z
import os KUBE_CONFIG_PATH = os.path.dirname(os.path.abspath(__file__)) NAMESPACE = 'gedge-default' DEFAULT_SUBNET = '10.255.0.0/24' DEFAULT_IMAGE = 'nginx' LOG_FILE = '/var/log/operation_interface/server.log'
26.375
61
0.767773
33
211
4.606061
0.69697
0.078947
0
0
0
0
0
0
0
0
0
0.046632
0.085308
211
8
62
26.375
0.740933
0
0
0
0
0
0.330189
0.183962
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0118bbd621593dfd2ab53101f08164527bfdaec9
1,740
py
Python
src/onegov/election_day/forms/upload/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day.forms.upload.common import ALLOWED_MIME_TYPES from onegov.election_day.forms.upload.common import MAX_FILE_SIZE from onegov.form import Form from onegov.form.fields import UploadField from onegov.form.validators import FileSizeLimit from onegov.form.validators import WhitelistedMimeType from wt...
28.52459
70
0.651724
163
1,740
6.674847
0.226994
0.055147
0.088235
0.220588
0.654412
0.599265
0.599265
0.599265
0.518382
0.518382
0
0
0.271264
1,740
60
71
29
0.858044
0
0
0.566038
0
0
0.037931
0
0
0
0
0
0
1
0
false
0
0.132075
0
0.245283
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0118efff11bec8f6a9a0a23b5c888c12a56f8a5f
310
py
Python
tests/drawBotScripts/appendGlyphWithFontVariations.py
roberto-arista/drawbot
c2a1b05396af8a3b030cc2facf17aaa68bc06e44
[ "BSD-2-Clause" ]
302
2015-01-10T21:13:26.000Z
2022-03-31T21:14:06.000Z
tests/drawBotScripts/appendGlyphWithFontVariations.py
roberto-arista/drawbot
c2a1b05396af8a3b030cc2facf17aaa68bc06e44
[ "BSD-2-Clause" ]
430
2015-04-10T12:48:47.000Z
2022-03-01T21:35:15.000Z
tests/drawBotScripts/appendGlyphWithFontVariations.py
roberto-arista/drawbot
c2a1b05396af8a3b030cc2facf17aaa68bc06e44
[ "BSD-2-Clause" ]
64
2015-01-26T04:12:30.000Z
2022-01-24T11:12:45.000Z
# https://github.com/typemytype/drawbot/issues/402 import drawBot drawBot.size(640, 160) fs = drawBot.FormattedString() fs.font("Skia") fs.fontSize(200) fs.fontVariations(wght=1) fs += "&" fs.appendGlyph("ampersand") fs.fontVariations(wght=2) fs.appendGlyph("ampersand") fs += "&" drawBot.text(fs, (10, 10))
19.375
50
0.722581
43
310
5.209302
0.581395
0.080357
0.178571
0.214286
0
0
0
0
0
0
0
0.06338
0.083871
310
15
51
20.666667
0.725352
0.154839
0
0.333333
0
0
0.092308
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0119f4d8641c2a97487527be8548d2e015deec4f
973
py
Python
dicebox/items/socks.py
CodeMouse92/dicebox
65a8197c630f480e4597fd839270c06d72a1ef16
[ "BSD-3-Clause" ]
5
2017-12-13T23:52:50.000Z
2021-01-29T13:51:08.000Z
dicebox/items/socks.py
CodeMouse92/dicebox
65a8197c630f480e4597fd839270c06d72a1ef16
[ "BSD-3-Clause" ]
1
2019-12-28T05:30:30.000Z
2019-12-28T05:30:30.000Z
dicebox/items/socks.py
CodeMouse92/dicebox
65a8197c630f480e4597fd839270c06d72a1ef16
[ "BSD-3-Clause" ]
1
2019-05-02T07:45:12.000Z
2019-05-02T07:45:12.000Z
""" Socks [dicebox 1.0] Pull a sock from a sock drawer. Author(s): Jason C. McDonald """ import random class SockDrawer: """ A collection of socks. """ def __init__(self, count=1): """ Initialize a drawer of socks. """ # The socks to be found in the drawer. ...
21.622222
72
0.517986
116
973
4.258621
0.534483
0.111336
0.097166
0
0
0
0
0
0
0
0
0.01092
0.341213
973
44
73
22.113636
0.75975
0.300103
0
0
0
0
0.073254
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0126c2cb86265ca3f664acf9497e5ed314170a1e
655
py
Python
apps/blog/admin.py
arineto/arineto-website
9fafede186ac6160a789d47811003cb8d32fe03e
[ "MIT" ]
null
null
null
apps/blog/admin.py
arineto/arineto-website
9fafede186ac6160a789d47811003cb8d32fe03e
[ "MIT" ]
null
null
null
apps/blog/admin.py
arineto/arineto-website
9fafede186ac6160a789d47811003cb8d32fe03e
[ "MIT" ]
null
null
null
from django.contrib import admin from apps.blog.models import Post, Tag, Comment from apps.blog.utils.admin import release_posts @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ('title', 'released', 'created_at', 'released_at') fields = ('title', 'slug', 'content', 'tags') prepopu...
24.259259
69
0.674809
76
655
5.671053
0.473684
0.037123
0.055684
0.116009
0
0
0
0
0
0
0
0
0.161832
655
26
70
25.192308
0.785064
0
0
0
0
0
0.152672
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
01300dfffe3532933f49fc3da8588541c4fa47f7
489
py
Python
modules/dad.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
3
2018-01-27T22:58:47.000Z
2018-02-01T21:06:56.000Z
modules/dad.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
null
null
null
modules/dad.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
null
null
null
from audiovisuaali import send from requests import get as rget from json import loads # Joke async def dad_joke(message, client, arguments): # Starting to fetch a joke response = loads(rget("https://icanhazdadjoke.com/slack").text) # Creating letter letter = "<@{}> **| {}**".format(message....
30.5625
92
0.668712
61
489
5.327869
0.655738
0.043077
0
0
0
0
0
0
0
0
0
0.005128
0.202454
489
15
93
32.6
0.828205
0.124744
0
0
0
0
0.181373
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
013033f6060388df14110f0f2814518a2f621894
256
py
Python
comment/urls.py
codingtruman/myblog
2ac4de2cd3f4d46e8cad43ba15093181dc9bb357
[ "MIT" ]
null
null
null
comment/urls.py
codingtruman/myblog
2ac4de2cd3f4d46e8cad43ba15093181dc9bb357
[ "MIT" ]
null
null
null
comment/urls.py
codingtruman/myblog
2ac4de2cd3f4d46e8cad43ba15093181dc9bb357
[ "MIT" ]
null
null
null
from django.urls import path, re_path from . import views APP_NAME = "comment" urlpatterns = [ path("post/<int:article_id>/", views.post_comment, name="post_comment"), re_path("delete/(\d+)/(\d+)/", views.delete_comment, name="delete_comment"), ]
28.444444
80
0.695313
36
256
4.722222
0.472222
0.070588
0
0
0
0
0
0
0
0
0
0
0.121094
256
9
81
28.444444
0.755556
0
0
0
0
0
0.287938
0.085603
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
013292a3e2ea9c098402bcefa19c86a3060700f7
2,456
py
Python
Ch3_Stacks_and_Queues/tests/test_CTCI_Ch3_Ex1.py
mtrdazzo/CTCI
30a82aed96b05fe21b7d337a138e4ec19950eb9d
[ "MIT" ]
null
null
null
Ch3_Stacks_and_Queues/tests/test_CTCI_Ch3_Ex1.py
mtrdazzo/CTCI
30a82aed96b05fe21b7d337a138e4ec19950eb9d
[ "MIT" ]
null
null
null
Ch3_Stacks_and_Queues/tests/test_CTCI_Ch3_Ex1.py
mtrdazzo/CTCI
30a82aed96b05fe21b7d337a138e4ec19950eb9d
[ "MIT" ]
null
null
null
from unittest import TestCase from CTCI.Ch3_Stacks_and_Queues.common.common import Empty, Full from CTCI.Ch3_Stacks_and_Queues.exercises.CTCI_Ch3_Ex1 import ThreeInOneStack class TestThreeInOneStack(TestCase): def setUp(self): self.stack = ThreeInOneStack() def tearDown(self): pass def t...
34.591549
77
0.613192
328
2,456
4.466463
0.158537
0.104437
0.040956
0.075085
0.724232
0.709215
0.635495
0.59727
0.538567
0.538567
0
0.017172
0.288681
2,456
70
78
35.085714
0.821408
0.093241
0
0.477273
0
0
0
0
0
0
0
0
0.318182
1
0.113636
false
0.022727
0.068182
0
0.204545
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0137d5304d70fe57cbfbb49ea493f5fb373e1baf
2,078
py
Python
users/adapter.py
Me2U-Afrika/Me2U
aee054afedff1e6c87f87494eaddf044e217aa95
[ "MIT" ]
null
null
null
users/adapter.py
Me2U-Afrika/Me2U
aee054afedff1e6c87f87494eaddf044e217aa95
[ "MIT" ]
4
2021-06-09T17:53:08.000Z
2022-01-13T02:48:51.000Z
users/adapter.py
Me2U-Afrika/Me2U
aee054afedff1e6c87f87494eaddf044e217aa95
[ "MIT" ]
null
null
null
# I managed to get this working by changing the code for adapter a little bit. # # adapter.py from allauth.socialaccount.adapter import DefaultSocialAccountAdapter from users.models import User from allauth.account.models import EmailAddress class MySocialAccountAdapter(DefaultSocialAccountAdapter): def pre_soci...
41.56
109
0.579403
210
2,078
5.609524
0.361905
0.091681
0.097623
0.114601
0.120543
0
0
0
0
0
0
0
0.349374
2,078
49
110
42.408163
0.871302
0.123677
0
0.210526
0
0
0.052951
0
0
0
0
0
0
1
0.026316
false
0.078947
0.078947
0
0.184211
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
013b9de8be02ad217334d5feffe59f25bfda6d95
1,602
py
Python
dataprep/eda/dtypes.py
Abhishek-pv/dataprep
9997fa3e46b82716caabeb697af012c8946136c5
[ "MIT" ]
1
2020-11-29T08:15:57.000Z
2020-11-29T08:15:57.000Z
dataprep/eda/dtypes.py
Abhishek-pv/dataprep
9997fa3e46b82716caabeb697af012c8946136c5
[ "MIT" ]
null
null
null
dataprep/eda/dtypes.py
Abhishek-pv/dataprep
9997fa3e46b82716caabeb697af012c8946136c5
[ "MIT" ]
null
null
null
""" Module for auxiliary type detection functions """ from enum import Enum, auto from typing import Any import numpy as np import pandas as pd CATEGORICAL_NUMPY_DTYPES = [np.bool, np.object] CATEGORICAL_PANDAS_DTYPES = [pd.CategoricalDtype, pd.PeriodDtype] CATEGORICAL_DTYPES = CATEGORICAL_NUMPY_DTYPES + CATEGORICAL...
26.262295
93
0.710986
214
1,602
5.168224
0.233645
0.075949
0.040687
0.045208
0.377939
0.377939
0.351718
0.351718
0.351718
0.351718
0
0.001572
0.205993
1,602
60
94
26.7
0.867925
0.184145
0
0.275862
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.137931
0
0.551724
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
013e3fba26704d06759e862d1dc140371f68f40e
9,715
py
Python
tests/transforms/imaging_test.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
tests/transforms/imaging_test.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
tests/transforms/imaging_test.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
import numpy as np import nibabel as nib import copy from eisen.transforms.imaging import CreateConstantFlags from eisen.transforms.imaging import RenameFields from eisen.transforms.imaging import FilterFields from eisen.transforms.imaging import ResampleNiftiVolumes from eisen.transforms.imaging import NiftiToNumpy f...
29.892308
99
0.595059
1,338
9,715
4.257848
0.081465
0.186765
0.093558
0.051606
0.706161
0.60646
0.472178
0.457609
0.399509
0.377743
0
0.048014
0.243232
9,715
324
100
29.984568
0.726877
0
0
0.383495
0
0
0.071163
0
0
0
0
0
0.427184
1
0.07767
false
0
0.053398
0
0.169903
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
013f036b6ed5138c730433173eb08d893659b374
2,600
py
Python
py_twitter_testbed.py
jdwinkler/trumpbot
aaf5e6bba4327f5d5ce0981582a2d0f7ae6a1100
[ "MIT" ]
null
null
null
py_twitter_testbed.py
jdwinkler/trumpbot
aaf5e6bba4327f5d5ce0981582a2d0f7ae6a1100
[ "MIT" ]
null
null
null
py_twitter_testbed.py
jdwinkler/trumpbot
aaf5e6bba4327f5d5ce0981582a2d0f7ae6a1100
[ "MIT" ]
null
null
null
import psycopg2 import psycopg2.extras import twitter import os def insert_tweet_into_db(timestamp, text): 'DY Mon DD HH24:MI:SS +0000 YYYY' def deconstruct_twitter_json(tweet_dict): time_created = tweet_dict['created_at'] text = tweet_dict['text'] return (time_created, text) def get_credentials(...
23.853211
88
0.636154
322
2,600
4.81677
0.36646
0.029014
0.036106
0.02579
0.094778
0.086396
0.059317
0.059317
0
0
0
0.011352
0.254615
2,600
108
89
24.074074
0.788958
0
0
0.031746
0
0
0.071538
0.008077
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0140c5e8cc2bae851a7f3b40c9ff616c82690cd3
415
py
Python
setup.py
SirDrone/CSV-Sanitizer
5212a70b2acf7de56439f2f0aff80187510af896
[ "MIT" ]
1
2019-09-26T15:54:49.000Z
2019-09-26T15:54:49.000Z
setup.py
SirDrone/CSV-Sanitizer
5212a70b2acf7de56439f2f0aff80187510af896
[ "MIT" ]
null
null
null
setup.py
SirDrone/CSV-Sanitizer
5212a70b2acf7de56439f2f0aff80187510af896
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='Sanitized_CSV_Creator', url='https://github.com/SirDrone/CSV-Sanitizer', author='Alexander Kirk', author_email='alexkirk95@gmail.com', packages=['sanitization_pack'], install_requires=['pandas'], version='1.1', license='SirDrone', description='Automatically creates sa...
27.666667
85
0.761446
52
415
5.961538
0.826923
0
0
0
0
0
0
0
0
0
0
0.010582
0.089157
415
14
86
29.642857
0.809524
0
0
0
0
0
0.503614
0.050602
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
01437227c7bdb2955ff8ce13dd8ddc23860a11f4
245
py
Python
programming-laboratory-I/eba2/z_inicial.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/eba2/z_inicial.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
programming-laboratory-I/eba2/z_inicial.py
MisaelAugusto/computer-science
d21335a2dc824b54ffe828370f0e6717fd0c7c27
[ "MIT" ]
null
null
null
# coding: utf-8 # Aluno: Misael Augusto # Matrícula: 117110525 # Problema: Z Inicial def z_inicial(lista): n = 0 for palavra in lista: if palavra[0].lower() == "z": n += 1 return n lista = raw_input().split() print z_inicial(lista)
14.411765
31
0.657143
38
245
4.157895
0.684211
0.151899
0.164557
0
0
0
0
0
0
0
0
0.066667
0.204082
245
16
32
15.3125
0.74359
0.310204
0
0
0
0
0.006098
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
01526ed914a4c3ca994e42a742c4fe1050393018
736
py
Python
Ej10.py
acasasaez/IntALG---indiv
e945fd3f61d7ef237fc09ed40a7803911aeceab0
[ "Apache-2.0" ]
null
null
null
Ej10.py
acasasaez/IntALG---indiv
e945fd3f61d7ef237fc09ed40a7803911aeceab0
[ "Apache-2.0" ]
null
null
null
Ej10.py
acasasaez/IntALG---indiv
e945fd3f61d7ef237fc09ed40a7803911aeceab0
[ "Apache-2.0" ]
null
null
null
Definir AREA (b: REAL,h: REAL) REAL #Comenzamos definiendo nuestra función precondicion b>0 h>0 #Nuestra función tiene que aplicar la fórmula del área del triánulo mult = b*h #Para esto comienza multiplicando la base por la altura (valores dados) area = mult/2 #y finalmente divide el res...
61.333333
266
0.763587
113
736
4.973451
0.610619
0.049822
0.035587
0.088968
0
0
0
0
0
0
0
0.006814
0.202446
736
11
267
66.909091
0.950596
0.796196
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0153a57021b06ed719519267419a2034c5f97516
13,912
py
Python
pylearn2/sandbox/cuda_convnet/filter_acts.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sandbox/cuda_convnet/filter_acts.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
pylearn2/sandbox/cuda_convnet/filter_acts.py
Menerve/pylearn2
ad7bcfda3294404aebd71f5a5c4a8623d401a98e
[ "BSD-3-Clause" ]
null
null
null
""" A theano / pylearn2 wrapper for cuda-convnet's convFilterActs function. """ __authors__ = "Ian Goodfellow" __copyright__ = "Copyright 2010-2012, Universite de Montreal" __credits__ = ["Ian Goodfellow", "David Warde-Farley"] __license__ = "3-clause BSD" __maintainer__ = "LISA Lab" __email__ = "pylearn-dev@googlegrou...
36.418848
130
0.617093
1,717
13,912
4.851485
0.250437
0.011525
0.011525
0.018727
0.218367
0.179952
0.137575
0.112845
0.077551
0.077551
0
0.011086
0.293272
13,912
381
131
36.514436
0.836147
0.226639
0
0.188119
0
0.009901
0.469842
0.055936
0
0
0
0.013123
0.024752
1
0.029703
false
0
0.039604
0
0.10396
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
01579b5fb78d4d5209fcadd57fa1cd7551441834
953
py
Python
django_amis_render/migrations/0005_auto_20211122_1201.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
django_amis_render/migrations/0005_auto_20211122_1201.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
django_amis_render/migrations/0005_auto_20211122_1201.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-22 04:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_amis_render', '0004_amisrenderapp'), ] operations = [ migrations.AddField( model_name='amisrenderapp', name='...
32.862069
155
0.647429
96
953
6.239583
0.572917
0.045075
0.100167
0.125209
0.308848
0.308848
0.185309
0
0
0
0
0.026316
0.242392
953
28
156
34.035714
0.803324
0.047219
0
0.318182
1
0
0.292494
0.15894
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
01589d3614f997783d92e62fc78765d014929963
1,282
py
Python
src/main.py
Los-Mangotes-SA/cool-compiler-2021
8bcad0135745e8ddf458de7a9408fc73322ce171
[ "MIT" ]
null
null
null
src/main.py
Los-Mangotes-SA/cool-compiler-2021
8bcad0135745e8ddf458de7a9408fc73322ce171
[ "MIT" ]
null
null
null
src/main.py
Los-Mangotes-SA/cool-compiler-2021
8bcad0135745e8ddf458de7a9408fc73322ce171
[ "MIT" ]
null
null
null
import parser import sys from typing import List from compiler_components.compiler_component import CompilerComponent from compiler_components.lexer import Lexer from compiler_components.cool_parser import Parser from compiler_components.semantic_checker import SemanticChecker from compiler_components.code_generator i...
31.268293
106
0.74259
146
1,282
6.267123
0.376712
0.177049
0.120219
0.056831
0
0
0
0
0
0
0
0.002918
0.198128
1,282
41
107
31.268293
0.88716
0.112324
0
0
0
0
0.011484
0
0
0
0
0.02439
0
1
0.037037
false
0
0.296296
0
0.407407
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
015933a3579d1cd7585fa27b06b851b0b3b6ac6d
1,356
py
Python
cooperativegames/tests/test_measurestools.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
2
2018-01-26T05:14:05.000Z
2021-01-27T03:56:45.000Z
cooperativegames/tests/test_measurestools.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
null
null
null
cooperativegames/tests/test_measurestools.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
1
2020-07-31T09:35:08.000Z
2020-07-31T09:35:08.000Z
""" Module of testing the functions programed in the module in measure cooperativegames tools. """ import numpy as np from cooperativegames.measures.cooperativegames_tools import all_subsets_it,\ winning_coalitions_it, get_critical_players, weight_coalition,\ all_subsets, _in_set from cooperativegames.measur...
27.12
79
0.693953
188
1,356
4.792553
0.382979
0.026637
0.059933
0.066593
0.204218
0.155383
0.097669
0
0
0
0
0.029439
0.198378
1,356
49
80
27.673469
0.799448
0.190265
0
0.153846
0
0
0
0
0
0
0
0
0.192308
1
0.038462
false
0.076923
0.115385
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
01599d44028577a5ae189ee79371f8d95c4893e3
423
py
Python
QUANTAXISTrade/QA_query.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
null
null
null
QUANTAXISTrade/QA_query.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
null
null
null
QUANTAXISTrade/QA_query.py
5267/QUANTAXIS
c3f38b805939e33309e2da7ea8cb32d245c3edfb
[ "MIT" ]
null
null
null
#coding=utf-8 from QA_trade_stock import QA_Stock,QA_Trade_stock_util import pymongo import csv,time,datetime st = QA_Stock() st.get_config() client = st.QA_trade_stock_login() st.QA_trade_stock_get_orders(client) holder=st.QA_trade_stock_get_holder(client) account=QA_Trade_stock_util.QA_get_account_assest(st,clien...
23.5
60
0.843972
74
423
4.418919
0.364865
0.149847
0.256881
0.146789
0.214067
0
0
0
0
0
0
0.002519
0.061466
423
18
61
23.5
0.821159
0.028369
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.083333
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
015add00bb9b64c8a0708d4f05661d59f154725a
845
py
Python
config/solvers.py
leoprover/tptp
a670c903bd81990a59ffa7ec19cc0666dd3b5c55
[ "BSD-3-Clause" ]
6
2019-08-15T13:12:13.000Z
2021-08-09T12:07:51.000Z
config/solvers.py
leoprover/tptp
a670c903bd81990a59ffa7ec19cc0666dd3b5c55
[ "BSD-3-Clause" ]
null
null
null
config/solvers.py
leoprover/tptp
a670c903bd81990a59ffa7ec19cc0666dd3b5c55
[ "BSD-3-Clause" ]
null
null
null
SOLVERS = ( { 'type': 'local', 'name': 'leo3', 'pretty-name': 'Leo III', 'version': '1.4', 'command': 'leo3 %s -t %d', }, { 'type': 'local', 'name': 'cvc4', 'command': 'cvc4 --output-lang tptp --produce-models --tlimit=%md %s', }, ...
23.472222
78
0.429586
82
845
4.426829
0.365854
0.14876
0.214876
0.057851
0.198347
0.170799
0.126722
0.126722
0
0
0
0.010811
0.343195
845
36
79
23.472222
0.643243
0
0
0.176471
0
0
0.507109
0.132701
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
015dbfdcf72896616ed28306b6e4698eaae0683a
262
py
Python
WS01/Week01/0507_request7.py
CoderDream/python-crawler
d1fbef55a19caedf0ec340c3b1ffb986385f1bd6
[ "MIT" ]
1
2021-12-05T06:40:05.000Z
2021-12-05T06:40:05.000Z
WS01/Week01/0507_request7.py
CoderDream/python-crawler
d1fbef55a19caedf0ec340c3b1ffb986385f1bd6
[ "MIT" ]
null
null
null
WS01/Week01/0507_request7.py
CoderDream/python-crawler
d1fbef55a19caedf0ec340c3b1ffb986385f1bd6
[ "MIT" ]
null
null
null
import requests if __name__ == "__main__": url = "http://python123.io/ws" pxs = {'http': 'http://user:pass@10.10.10.1:1234', 'https': 'https://10.10.10.1:4321'} r = requests.request('POST', url, proxies=pxs) print(r.text) # console
23.818182
54
0.583969
38
262
3.815789
0.657895
0.110345
0.082759
0.096552
0
0
0
0
0
0
0
0.119617
0.20229
262
11
55
23.818182
0.574163
0.026718
0
0
0
0
0.385827
0
0
0
0
0
0
1
0
false
0.142857
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
015ed30c7659f4cd8e67d03a5120cd1fdc260526
11,768
py
Python
mansikiFinisherMQBatch.py
ryunosinfx/MansikiForGimpfu
e902d5065bab21019a825993c9f063ea966bcd87
[ "MIT" ]
null
null
null
mansikiFinisherMQBatch.py
ryunosinfx/MansikiForGimpfu
e902d5065bab21019a825993c9f063ea966bcd87
[ "MIT" ]
6
2015-09-23T16:05:12.000Z
2015-10-07T13:54:42.000Z
mansikiFinisherMQBatch.py
ryunosinfx/MansikiForGimpfu
e902d5065bab21019a825993c9f063ea966bcd87
[ "MIT" ]
null
null
null
#!/usr/bin/python # coding: UTF-8 import sys,os,re,math,time,threading sys.path.insert(1, '/usr/lib/gimp/2.0/python') import gimpfu from gimpfu import * from os.path import expanduser from Queue import Queue import mansikiFinisherPDF #--------------------------------------------------------------------- first = sys.p...
37.839228
251
0.679215
1,370
11,768
5.743796
0.191241
0.024018
0.02135
0.027449
0.429025
0.392553
0.323675
0.260643
0.236371
0.197865
0
0.021107
0.158566
11,768
310
252
37.96129
0.773581
0.059908
0
0.286792
0
0
0.039154
0.011227
0
0
0
0
0
0
null
null
0.003774
0.022642
null
null
0.045283
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0166aa0d22c939dd84ace0f2de7fedc47e11355a
1,499
py
Python
test/test_nixie.py
willyneutron/retroclock
f9afd3bdab2ccff0c63722a3bf0fd264585c7a6b
[ "MIT" ]
2
2021-03-20T23:00:50.000Z
2021-04-23T19:53:30.000Z
test/test_nixie.py
willyneutron/retroclock
f9afd3bdab2ccff0c63722a3bf0fd264585c7a6b
[ "MIT" ]
null
null
null
test/test_nixie.py
willyneutron/retroclock
f9afd3bdab2ccff0c63722a3bf0fd264585c7a6b
[ "MIT" ]
null
null
null
import sys sys.path.append('../MCP23017/') import busio import board import time import signal import RPi.GPIO as GPIO from datetime import datetime from MCP23017_Nixie import MCP23017_Nixie_DigitController # GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.OUT, initial=GPIO.HIGH) # Signal handler def signal_handler...
29.98
75
0.75984
230
1,499
4.7
0.308696
0.277521
0.148011
0.055504
0.515264
0.480111
0.293247
0.239593
0
0
0
0.062694
0.138092
1,499
49
76
30.591837
0.773994
0.024683
0
0.054054
0
0
0.00823
0
0
0
0.026063
0
0
1
0.054054
false
0
0.216216
0
0.27027
0.081081
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
016937d06aaed0eee9dc50d30d6493669b492392
247
py
Python
scripts/sample.py
olizhu10/newsroom
0a6dccd21da28892cc089e0924c53e0723b42785
[ "Apache-2.0" ]
null
null
null
scripts/sample.py
olizhu10/newsroom
0a6dccd21da28892cc089e0924c53e0723b42785
[ "Apache-2.0" ]
null
null
null
scripts/sample.py
olizhu10/newsroom
0a6dccd21da28892cc089e0924c53e0723b42785
[ "Apache-2.0" ]
1
2019-10-04T03:24:35.000Z
2019-10-04T03:24:35.000Z
import json with open('../clustering/articleSummaryPairsFinal.json') as f: articles = json.load(f) dumplist = [] for i in range(10): dumplist.append(articles) with open('../clustering/sample.json', 'w+') as f: json.dump(dumplist, f)
22.454545
62
0.680162
34
247
4.941176
0.588235
0.095238
0.214286
0
0
0
0
0
0
0
0
0.009569
0.153846
247
10
63
24.7
0.794258
0
0
0
0
0
0.283401
0.275304
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
016a3c1c00f9a3e9c9172c0f0ee434b026617069
2,770
py
Python
flatpak_status/migrations/versions/03dcd7b05d63_add_extra_fields_to_updates_and_builds.py
kalev/flatpak-status
a3b494ec04d2daa0698f80ee6d01758f0edfaff7
[ "MIT" ]
null
null
null
flatpak_status/migrations/versions/03dcd7b05d63_add_extra_fields_to_updates_and_builds.py
kalev/flatpak-status
a3b494ec04d2daa0698f80ee6d01758f0edfaff7
[ "MIT" ]
null
null
null
flatpak_status/migrations/versions/03dcd7b05d63_add_extra_fields_to_updates_and_builds.py
kalev/flatpak-status
a3b494ec04d2daa0698f80ee6d01758f0edfaff7
[ "MIT" ]
1
2021-08-30T10:25:04.000Z
2021-08-30T10:25:04.000Z
"""Add extra fields to updates and builds Revision ID: 03dcd7b05d63 Revises: 8e089a7d484f Create Date: 2019-02-25 18:23:11.685427+00:00 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '03dcd7b05d63' down_revision = '8e089a7d484f' branch_labels = None depends_on...
42.615385
87
0.735018
404
2,770
4.767327
0.193069
0.087227
0.101765
0.11838
0.786085
0.751817
0.624091
0.543095
0.543095
0.543095
0
0.024442
0.143321
2,770
64
88
43.28125
0.787189
0.10361
0
0.318182
0
0
0.289644
0.050162
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.090909
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0173e75cf80eb8a1f74746da9e4d365f356bf461
513
py
Python
Carletproject/Carletapp/migrations/0014_vehiclelocation_point_location.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
null
null
null
Carletproject/Carletapp/migrations/0014_vehiclelocation_point_location.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
1
2021-04-07T17:14:12.000Z
2021-04-07T17:14:12.000Z
Carletproject/Carletapp/migrations/0014_vehiclelocation_point_location.py
shahparkhan/CarLet
4006ab5f13bf07fe8f9b4ab98e97dc6eb8ed851a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-19 15:49 import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Carletapp', '0013_auto_20210419_1452'), ] operations = [ migrations.AddField( model_name='veh...
25.65
125
0.654971
60
513
5.483333
0.716667
0.079027
0.097264
0.109422
0.182371
0.182371
0
0
0
0
0
0.092965
0.224172
513
19
126
27
0.733668
0.087719
0
0
1
0
0.165236
0.049356
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
01747ec900dd54051df4af86bcbe7ebbc4d9d393
333
py
Python
social_site/core/urls.py
pogginicolo98/agora-forum
b0c4ee184b50891311f8d35e2d5c46e99f9607bb
[ "MIT" ]
2
2021-07-04T16:11:00.000Z
2021-11-30T14:58:48.000Z
social_site/core/urls.py
pogginicolo98/agora-forum
b0c4ee184b50891311f8d35e2d5c46e99f9607bb
[ "MIT" ]
5
2021-07-07T07:23:33.000Z
2021-07-07T07:33:38.000Z
social_site/core/urls.py
pogginicolo98/agora-forum
b0c4ee184b50891311f8d35e2d5c46e99f9607bb
[ "MIT" ]
null
null
null
from django.urls import path from core import views urlpatterns = [ path('', views.Homepage.as_view(), name='homepage'), path('users/', views.UsersList.as_view(), name='users_list'), path('user/<slug:username>/', views.user_profile_view, name='user_profile'), path('search/', views.search_bar, name='sea...
33.3
80
0.693694
45
333
4.955556
0.466667
0.107623
0.089686
0
0
0
0
0
0
0
0
0
0.123123
333
9
81
37
0.763699
0
0
0
0
0
0.222222
0.063063
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
018311ae90bd443f1fad4b3f4d012740098eae98
2,149
py
Python
src/yea/config.py
wandb/yea
363561edac14356b0039ece80a0a9e1fdca11e15
[ "MIT" ]
null
null
null
src/yea/config.py
wandb/yea
363561edac14356b0039ece80a0a9e1fdca11e15
[ "MIT" ]
15
2021-07-18T00:09:26.000Z
2022-02-24T07:41:25.000Z
src/yea/config.py
wandb/yea
363561edac14356b0039ece80a0a9e1fdca11e15
[ "MIT" ]
null
null
null
"""Config class.""" import configparser import os import re from pathlib import Path class Config: def __init__(self): self._coverage_config_template = None self._coverage_source = None self._coverage_source_env = None self._cfname = None self._cfroot = None self._...
28.276316
87
0.562122
257
2,149
4.400778
0.299611
0.095491
0.111406
0.045977
0.099027
0.099027
0
0
0
0
0
0
0.338762
2,149
75
88
28.653333
0.795918
0.053048
0
0.096774
0
0
0.054241
0.011834
0
0
0
0.013333
0
1
0.096774
false
0
0.064516
0.032258
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
019028cba1a0c58a4e14e1ed0e6fa1442e0d5aad
577
py
Python
dracoon/logger.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
dracoon/logger.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
dracoon/logger.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
import logging def create_logger(log_file: str, log_level: int, log_stream: bool): logger = logging.getLogger('dracoon') formatter = logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s') if log_stream: stream_handler = logging.StreamHandler() stream_handler.setFormatte...
28.85
88
0.705373
65
577
6.061538
0.476923
0.098985
0.142132
0.172589
0.22335
0
0
0
0
0
0
0.006438
0.192374
577
20
89
28.85
0.839056
0
0
0
0
0
0.100346
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
019213adb9482c09f56486a3673c69c01f9b701f
17,428
py
Python
nbburntbuildings/ops.py
aalten77/nbburntbuildings
ad760d131cf55c349d8215bc11f8b57896317796
[ "MIT" ]
1
2018-10-24T03:17:31.000Z
2018-10-24T03:17:31.000Z
nbburntbuildings/ops.py
aalten77/nbburntbuildings
ad760d131cf55c349d8215bc11f8b57896317796
[ "MIT" ]
null
null
null
nbburntbuildings/ops.py
aalten77/nbburntbuildings
ad760d131cf55c349d8215bc11f8b57896317796
[ "MIT" ]
1
2021-04-14T08:35:56.000Z
2021-04-14T08:35:56.000Z
""""" GBDX Notebook: "Identifying Destroyed Buildings with Multispectral Imagery" Link: https://notebooks.geobigdata.io/hub/notebooks/5b47cfb82486966ea89b75fd?tab=code Author: Ai-Linh Alten Date created: 7/5/2018 Date last modified: 7/13/2018 Python Version: 2.7.15 """ import cPickle import fo...
36.384134
141
0.61843
2,285
17,428
4.599125
0.219256
0.018841
0.010467
0.012561
0.331716
0.297079
0.290418
0.266533
0.259872
0.251308
0
0.025073
0.23795
17,428
478
142
36.460251
0.766207
0.08538
0
0.369637
0
0.0033
0.159901
0.015727
0
0
0
0
0
0
null
null
0
0.072607
null
null
0.026403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
019a0f60050f3f9935665061438542141a0c83c0
361
py
Python
config/powerline-shell/keyfox-theme.py
keyfox/dotfiles
bbab8b2a6f469dfcb37d757344e62918ae361794
[ "MIT" ]
null
null
null
config/powerline-shell/keyfox-theme.py
keyfox/dotfiles
bbab8b2a6f469dfcb37d757344e62918ae361794
[ "MIT" ]
null
null
null
config/powerline-shell/keyfox-theme.py
keyfox/dotfiles
bbab8b2a6f469dfcb37d757344e62918ae361794
[ "MIT" ]
null
null
null
from powerline_shell.themes.default import DefaultColor from socket import gethostname HOSTNAME_FG_COLORS = { "nebula": 160, "yamabuki": 178, "GGEAR2018": 45, "pixen": 162, } HOSTNAME_FG_FALLBACK = DefaultColor.HOSTNAME_FG class Color(DefaultColor): HOSTNAME_FG = HOSTNAME_FG_COLORS.get(gethostname...
24.066667
91
0.742382
43
361
5.976744
0.604651
0.233463
0.124514
0
0
0
0
0
0
0
0
0.05178
0.144044
361
14
92
25.785714
0.779935
0
0
0
0
0
0.080556
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.363636
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d7047d873fbd3dc1cc0fb8175ae9427824c94ec
4,556
py
Python
proc10xG.snakemake.py
ucdavis-bioinformatics/ucdbioinfo_supernova_pipeline
0343d9d53e4cac2bba113fe1ac23561dd74aa7da
[ "Apache-2.0" ]
2
2019-06-24T15:17:50.000Z
2019-07-09T21:59:22.000Z
proc10xG.snakemake.py
ucdavis-bioinformatics/ucdbioinfo_supernova_pipeline
0343d9d53e4cac2bba113fe1ac23561dd74aa7da
[ "Apache-2.0" ]
null
null
null
proc10xG.snakemake.py
ucdavis-bioinformatics/ucdbioinfo_supernova_pipeline
0343d9d53e4cac2bba113fe1ac23561dd74aa7da
[ "Apache-2.0" ]
null
null
null
# HOW TO CALL THE SNAKEMAKE FILE: # snakemake -s proc10xG.snakemake.py -j 999 --cluster-config templates/cluster.json --cluster "sbatch -p {cluster.partition} -n {cluster.n} -t {cluster.time}" ## ucdbioinfo_supernova_pipeline proc10xG.slurm ## runs the process_10xReads.py script from the proc10xG repo ## https://g...
38.610169
277
0.566506
509
4,556
4.882122
0.233792
0.061167
0.042254
0.033803
0.311871
0.150503
0.078068
0.078068
0.078068
0.078068
0
0.036368
0.149034
4,556
118
278
38.610169
0.604591
0.147059
0
0.205882
0
0.029412
0.388668
0.027565
0
0
0
0.008475
0
0
null
null
0
0.058824
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6d753021eb3bf2ba0bec7eb243ef869a9ea289c8
2,521
py
Python
src/astrotk/bodies/bodies.py
ggarrett13/astrodynamics-toolkit
93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8
[ "MIT" ]
3
2018-12-09T18:33:03.000Z
2020-08-10T15:29:54.000Z
src/astrotk/bodies/bodies.py
ggarrett13/astrodynamics-toolkit
93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8
[ "MIT" ]
null
null
null
src/astrotk/bodies/bodies.py
ggarrett13/astrodynamics-toolkit
93008b5a4f8f4eacca0fc501fdf24eb8cdcb31c8
[ "MIT" ]
null
null
null
import astropy.units as u from astrotk.bodies.constants import * # Redefining the definition of AU from 149597870.7 to 149597870.66 for course AE4878 verification. u.AU = u.def_unit('AU', course_constants["AU"]["val"] * eval(course_constants["AU"]["unit"])) # Standard BaseClass structure for a point mass modeled gr...
31.123457
109
0.557715
279
2,521
4.731183
0.258065
0.204545
0.088636
0.15
0.274242
0.181818
0.181818
0.133333
0.133333
0.133333
0
0.014318
0.307418
2,521
80
110
31.5125
0.741695
0.166997
0
0.27451
0
0
0.079349
0
0
0
0
0
0
1
0.176471
false
0
0.039216
0.019608
0.392157
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d7a5c173a2326e5289211a7d89d3c9f1e7a8ad5
5,802
py
Python
src/masonite/authentication/Auth.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
null
null
null
src/masonite/authentication/Auth.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
null
null
null
src/masonite/authentication/Auth.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
null
null
null
import pendulum import uuid from ..routes import Route class Auth: def __init__(self, application, guard_config=None): self.application = application self.guards = {} self._guard = None self.guard_config = guard_config or {} self.options = {} def add_guard(self, name, ...
32.595506
88
0.553947
577
5,802
5.379549
0.159445
0.052191
0.05799
0.05799
0.454897
0.379832
0.346327
0.259987
0.243235
0.243235
0
0.000257
0.32868
5,802
177
89
32.779661
0.796662
0.04981
0
0.261538
0
0
0.156844
0.081686
0
0
0
0
0
1
0.107692
false
0.169231
0.023077
0.007692
0.261538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6d7c342ad56167d31b51f9ef9993307f359e065f
2,102
py
Python
20_misc/mike_w_zonalstats_maybe.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
20_misc/mike_w_zonalstats_maybe.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
20_misc/mike_w_zonalstats_maybe.py
pnorton-usgs/notebooks
17a38ecd3f3c052b9bd785c2e53e16a9082d1e71
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python [conda env:gis_38] # language: python # name: conda-env-gis_38-p...
20.407767
96
0.691246
310
2,102
4.522581
0.36129
0.028531
0.045649
0.036377
0.246077
0.21612
0.194009
0.194009
0.166904
0.166904
0
0.013714
0.16746
2,102
102
97
20.607843
0.787429
0.178402
0
0.163265
0
0
0.138889
0.112293
0
0
0
0
0
1
0
false
0
0.489796
0
0.489796
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6d80155b0bdb72b7f6c853e312098de61878b9e8
725
py
Python
app/main/views.py
NancyWachiuri/News-API
63d8323ca3988ed0c47089522211b8ba1db0eb80
[ "MIT" ]
null
null
null
app/main/views.py
NancyWachiuri/News-API
63d8323ca3988ed0c47089522211b8ba1db0eb80
[ "MIT" ]
null
null
null
app/main/views.py
NancyWachiuri/News-API
63d8323ca3988ed0c47089522211b8ba1db0eb80
[ "MIT" ]
null
null
null
from typing import List from app.models import Sources from app.models import Articles from flask import render_template,request,redirect,url_for from . import main from ..requests import get_articles, get_sources @main.route('/') def sources(): all_sources = get_sources() return render_template("sources....
21.323529
77
0.72
100
725
5.05
0.36
0.110891
0.118812
0.075248
0
0
0
0
0
0
0
0
0.168276
725
33
78
21.969697
0.837479
0.13931
0
0
0
0
0.090909
0.041667
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6d81ebb0dc88c5fd40a670d66244a5a37625ca2c
1,033
py
Python
stats/migrations/0004_auto_20150919_1748.py
lordzfc/wyborySam2014
89d16381c0f1d669719fe54f6895174b2fe82f64
[ "MIT" ]
3
2015-11-18T16:59:20.000Z
2017-03-17T17:13:29.000Z
stats/migrations/0004_auto_20150919_1748.py
lordzfc/wyborySam2014
89d16381c0f1d669719fe54f6895174b2fe82f64
[ "MIT" ]
null
null
null
stats/migrations/0004_auto_20150919_1748.py
lordzfc/wyborySam2014
89d16381c0f1d669719fe54f6895174b2fe82f64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('stats', '0003_auto_20150919_1741'), ] operations = [ migrations.AlterField( model_name='election', n...
29.514286
88
0.596321
101
1,033
5.920792
0.435644
0.133779
0.167224
0.19398
0.603679
0.603679
0.535117
0.535117
0.535117
0.535117
0
0.036536
0.284608
1,033
34
89
30.382353
0.772666
0.020329
0
0.535714
0
0
0.112871
0.047525
0
0
0
0
0
1
0
false
0
0.071429
0
0.178571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d88affe765a2cb0fead6b40581342cb25250386
229
py
Python
17.05.2022/with/with2.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
17.05.2022/with/with2.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
17.05.2022/with/with2.py
N0N4T0/python-codes
ac2b884f86749a8b179ff972cdb316ec4e005b32
[ "MIT" ]
null
null
null
# salva no copiateste.txt o mesmo conteudo do teste.txt with open('teste.txt', 'r') as arquivolido: with open('copiateste.txt', 'w') as arquivocriado: for linha in arquivolido: arquivocriado.write(linha)
32.714286
55
0.676856
31
229
5
0.645161
0.167742
0
0
0
0
0
0
0
0
0
0
0.213974
229
6
56
38.166667
0.861111
0.231441
0
0
0
0
0.143678
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6d8dbca5e43728ce6a9c723712590bd6be8747de
1,639
py
Python
src/hebphonics/models/user.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
null
null
null
src/hebphonics/models/user.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
11
2020-11-20T20:23:00.000Z
2021-01-28T14:23:19.000Z
src/hebphonics/models/user.py
ohizkiya/hebphonics
60f46f2fbec6704c4598dfccaa4326b1e17b133a
[ "MIT" ]
1
2021-01-01T20:06:01.000Z
2021-01-01T20:06:01.000Z
#!/usr/bin/env python # coding: utf-8 """User-related models.""" # lib from flask_dance.consumer.storage.sqla import OAuthConsumerMixin from flask_login import UserMixin # pkg from . import db, now, to_json class User(UserMixin, db.Model): """Represents an authorized user.""" id = db.Column(db.Integer, pri...
24.833333
64
0.61684
209
1,639
4.703349
0.358852
0.081384
0.101729
0.130214
0.341811
0.223805
0.177009
0.177009
0.115972
0.115972
0
0.006467
0.245272
1,639
65
65
25.215385
0.788197
0.186699
0
0.1875
0
0
0.019093
0
0
0
0
0
0
1
0.09375
false
0
0.09375
0
0.71875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
6d8de83dd97e4222c8f5166a4813f746f7cd4a67
3,089
py
Python
PJ/pj_JS_funkcije.py
Shahra/ip
f61349b55a62673ee37db6a24844d29af7e71e79
[ "Unlicense" ]
null
null
null
PJ/pj_JS_funkcije.py
Shahra/ip
f61349b55a62673ee37db6a24844d29af7e71e79
[ "Unlicense" ]
null
null
null
PJ/pj_JS_funkcije.py
Shahra/ip
f61349b55a62673ee37db6a24844d29af7e71e79
[ "Unlicense" ]
null
null
null
# 2010 K2-popravni Z1,Z2 from pj import * class JS(enum.Enum): FUNCTION = 'function' IME = 'ime_funkcije_ili_argumenta' O_OTV = '(' O_ZATV = ')' VAR = 'var' ZAREZ = ',' V_OTV = '{' V_ZATV = '}' KOMENTAR = '//' KOSACRTA = '/' TOČKAZAREZ = ';' NAREDBA = 'naredba' def js...
29.141509
69
0.558109
354
3,089
4.788136
0.268362
0.056637
0.066077
0.031858
0.097935
0.070796
0.070796
0.070796
0.070796
0.070796
0
0.003313
0.31596
3,089
105
70
29.419048
0.798864
0.107802
0
0.166667
0
0
0.194171
0.009472
0
0
0
0
0
1
0.071429
false
0.059524
0.011905
0.011905
0.333333
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6d919af6788ac5e00fa31e80c63b23ded1654004
726
py
Python
projTRMM.py
karttur/geoimagine03-projects
41774e9cdd266b39b09b35545b8a34c33fb10649
[ "BSD-3-Clause" ]
null
null
null
projTRMM.py
karttur/geoimagine03-projects
41774e9cdd266b39b09b35545b8a34c33fb10649
[ "BSD-3-Clause" ]
null
null
null
projTRMM.py
karttur/geoimagine03-projects
41774e9cdd266b39b09b35545b8a34c33fb10649
[ "BSD-3-Clause" ]
null
null
null
''' Created on 23 feb. 2018 @author: thomasgumbricht ''' from geoimagine.kartturmain.readXMLprocesses import ReadXMLProcesses, RunProcesses if __name__ == "__main__": verbose = True #TRMM_transfer_YYYYMMDD transfers the TRMM data #projFN = '/Users/thomasgumbricht/Dropbox/projects/geoimagine_mbp...
33
118
0.76584
80
726
6.7125
0.475
0.05959
0.145251
0.184358
0.435754
0.435754
0.435754
0.435754
0.435754
0.435754
0
0.060317
0.132231
726
22
119
33
0.792063
0.582645
0
0
0
0
0.116041
0.088737
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6da43ffe8afff6d79ef80be0ebcfa70700113cb8
1,309
py
Python
Python/DFSS.py
devgoyal04/DSA
3d0617b309804d89101acffacefdd47cb7d0b33b
[ "MIT" ]
71
2015-08-20T18:55:28.000Z
2019-05-21T13:08:32.000Z
Python/DFSS.py
devgoyal04/DSA
3d0617b309804d89101acffacefdd47cb7d0b33b
[ "MIT" ]
94
2016-10-02T11:01:12.000Z
2018-10-30T09:58:05.000Z
Python/DFSS.py
devgoyal04/DSA
3d0617b309804d89101acffacefdd47cb7d0b33b
[ "MIT" ]
144
2015-12-03T17:33:44.000Z
2018-10-31T15:47:35.000Z
#username = Lakshya1605 def DFSS(source_node): stack =[] visited[source_node] =True j=0 stack.append(source_node) while len(stack)!=0: source_node = stack[j] y = source_node flag =0 i =0; length =len(adjacency_list[y]) while(i!=length): x ...
27.270833
91
0.518717
168
1,309
3.863095
0.345238
0.09245
0.069337
0.049307
0.163328
0.086287
0.086287
0
0
0
0
0.02104
0.382735
1,309
47
92
27.851064
0.782178
0.016807
0
0.097561
0
0
0.136965
0
0
0
0
0
0
0
null
null
0
0
null
null
0.097561
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6da7063e86d1b88ed7574ec119a800c47281e78e
5,324
py
Python
create_mmirs_obs_summary_table.py
astrochun/MMTTools
7470bf03db3777ec90a50da42b653926291ebbe2
[ "MIT" ]
null
null
null
create_mmirs_obs_summary_table.py
astrochun/MMTTools
7470bf03db3777ec90a50da42b653926291ebbe2
[ "MIT" ]
30
2017-03-01T22:59:27.000Z
2021-07-10T21:43:09.000Z
create_mmirs_obs_summary_table.py
astrochun/MMTTools
7470bf03db3777ec90a50da42b653926291ebbe2
[ "MIT" ]
3
2017-04-27T14:09:49.000Z
2019-05-15T22:35:42.000Z
""" create_mmirs_obs_summary_table ==== Creates a table that summarizes observations from MMIRS. To be executed in a folder that is organized by UTC date. """ import sys, os from chun_codes import systime, match_nosort_str from os.path import exists from astropy.io import ascii as asc from astropy.io import fits i...
30.25
98
0.545079
657
5,324
4.280061
0.325723
0.029872
0.025605
0.011735
0.114509
0.060455
0.060455
0.060455
0.04623
0
0
0.026023
0.3071
5,324
175
99
30.422857
0.736243
0.014651
0
0.030612
0
0
0.111967
0
0
0
0
0
0
0
null
null
0
0.091837
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6db2d5ddd1e64fdadea3cb6cbea5a605fb568b5c
56,346
py
Python
r_statistics/r_pls.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
r_statistics/r_pls.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
r_statistics/r_pls.py
dmccloskey/r_statistics
459a50a376ba82914e6e27fbeb7e430d36029f76
[ "MIT" ]
null
null
null
from .r_dependencies import * from .r_base import r_base from math import sqrt class r_pls(r_base): def calculate_plsda_mixomics(self,data_I,factor_I= "sample_name_abbreviation", ncomp=5,max_iter=500, tol = 1e-3, near_zero_var = "TRUE", method_...
43.645236
179
0.488535
5,939
56,346
4.419768
0.077959
0.040535
0.019886
0.022782
0.730275
0.690579
0.65233
0.632938
0.61149
0.592251
0
0.009858
0.405867
56,346
1,290
180
43.67907
0.774233
0.236752
0
0.719194
0
0.007109
0.095238
0.014497
0
0
0
0.003101
0
1
0.027251
false
0
0.003555
0
0.056872
0.03436
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6db40d76522698079f270d1c8912cab23c683340
1,514
py
Python
coworker/main/management/commands/location_parse.py
flybackl/spacesmap
859f83e564af2c93f506b0fedd1397152e1ccfab
[ "MIT" ]
null
null
null
coworker/main/management/commands/location_parse.py
flybackl/spacesmap
859f83e564af2c93f506b0fedd1397152e1ccfab
[ "MIT" ]
null
null
null
coworker/main/management/commands/location_parse.py
flybackl/spacesmap
859f83e564af2c93f506b0fedd1397152e1ccfab
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from .base_parse import BaseParse from .config import logger from .browser import Browser from .utils import parse_table import re class LocationParse(BaseParse): def parse_main_info(self): res = {} res["name"] = self.main_soup.select_one("h2 span").text res...
32.212766
180
0.589168
184
1,514
4.706522
0.423913
0.096998
0.069284
0.103926
0.371824
0.21709
0.159353
0.159353
0.159353
0.159353
0
0.012856
0.280713
1,514
46
181
32.913043
0.782369
0.109643
0
0.416667
0
0
0.112603
0
0
0
0
0
0
1
0.027778
false
0.083333
0.166667
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
6db49510e9b50a382e561e8382567fc06260bc1b
2,177
py
Python
REST Server/fast/rest/migrations/0001_initial.py
khilanravani/smart-meter
76f15ca00bd424d698cca0acdbbda582a61eca39
[ "MIT" ]
2
2020-08-04T08:48:40.000Z
2021-08-19T18:44:19.000Z
REST Server/fast/rest/migrations/0001_initial.py
khilanravani/smart-meter
76f15ca00bd424d698cca0acdbbda582a61eca39
[ "MIT" ]
null
null
null
REST Server/fast/rest/migrations/0001_initial.py
khilanravani/smart-meter
76f15ca00bd424d698cca0acdbbda582a61eca39
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-04-05 18:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
38.875
121
0.558567
206
2,177
5.762136
0.354369
0.033698
0.047178
0.074136
0.42797
0.406066
0.406066
0.406066
0.37321
0.37321
0
0.014379
0.297198
2,177
55
122
39.581818
0.761438
0.019752
0
0.4375
1
0
0.099437
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6db85bb7009b462b9c07cd0886a6417c20d483e1
508
py
Python
museum-mineralogie/groupe-5/main.py
stvinho/TerrA-LigeriA-1
cbe3945263bd6f564107c313833b8c3188704710
[ "MIT" ]
1
2022-02-11T15:02:55.000Z
2022-02-11T15:02:55.000Z
museum-mineralogie/groupe-5/main.py
stvinho/TerrA-LigeriA-1
cbe3945263bd6f564107c313833b8c3188704710
[ "MIT" ]
null
null
null
museum-mineralogie/groupe-5/main.py
stvinho/TerrA-LigeriA-1
cbe3945263bd6f564107c313833b8c3188704710
[ "MIT" ]
6
2022-02-22T09:30:19.000Z
2022-03-14T17:19:08.000Z
from threading import Thread import subprocess import os if __name__ == '__main__': dirname = os.path.dirname(__file__) t1 = Thread(target=subprocess.run, args=([os.path.join(dirname,"env/Scripts/python"), os.path.join(dirname,"src/python/ardui.py")],)) t2 = Thread(target=subprocess.run, args=([os.path.jo...
28.222222
139
0.67126
72
508
4.569444
0.388889
0.091185
0.121581
0.206687
0.534954
0.534954
0.534954
0.534954
0.534954
0.534954
0
0.018476
0.147638
508
18
140
28.222222
0.741339
0
0
0
0
0
0.165029
0.041257
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6db9917d9661da716cb991917c1911fe07deea38
1,228
py
Python
src/bpyutils/util/jobs.py
boilpy/bpyutils
9f81c544abaf7b3221f3c6783f293c344bd94544
[ "MIT" ]
1
2022-02-01T04:50:22.000Z
2022-02-01T04:50:22.000Z
src/bpyutils/util/jobs.py
boilpy/bpyutils
9f81c544abaf7b3221f3c6783f293c344bd94544
[ "MIT" ]
2
2021-12-07T10:40:44.000Z
2021-12-23T13:42:07.000Z
src/bpyutils/util/jobs.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
null
null
null
# imports - standard imports import os, os.path as osp from functools import partial import sys # imports - module imports from bpyutils.config import PATH, Settings from bpyutils.util.imports import import_handler from bpyutils.util.system import popen from bpyutils.util._dict import merge_dict...
29.238095
96
0.656352
167
1,228
4.748503
0.323353
0.105927
0.100883
0.058008
0.211854
0.176545
0.105927
0
0
0
0
0.001037
0.214984
1,228
42
97
29.238095
0.821577
0.041531
0
0.068966
0
0
0.148085
0.017872
0
0
0
0
0
1
0.068966
false
0
0.413793
0
0.482759
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6dc7ce8e3c5c71c3e51d6c4d75de896d5ddd7104
6,738
py
Python
Prudential_life_insurance/w11_logreg_hierarchy.py
Costigun/kaggle_practice
a84ceec8a982c719126d26fd90e03dafb7e1e123
[ "MIT" ]
null
null
null
Prudential_life_insurance/w11_logreg_hierarchy.py
Costigun/kaggle_practice
a84ceec8a982c719126d26fd90e03dafb7e1e123
[ "MIT" ]
null
null
null
Prudential_life_insurance/w11_logreg_hierarchy.py
Costigun/kaggle_practice
a84ceec8a982c719126d26fd90e03dafb7e1e123
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """w11_LogReg_Hierarchy.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1GQGlQibsvHyTPEczCmzK-G7k8kQBHzAO ## Постановка задачи Загрузим данные, приведем их к числовым, заполним пропуски, нормализуем данные и оптимизируем п...
37.433333
254
0.678243
994
6,738
4.411469
0.295775
0.023945
0.024629
0.018244
0.267275
0.197491
0.114937
0.075257
0.060661
0.060661
0
0.024381
0.190413
6,738
179
255
37.642458
0.779285
0.131048
0
0.122951
1
0
0.098667
0
0
0
0
0
0
1
0.040984
false
0
0.057377
0
0.139344
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6dd2a5fd5b7807293789a7d9d2ececb1455c5e69
3,500
py
Python
doughmeter.py
sbma44/doughmeter
1bb79fac159715d1deb6978df0d28ed62fc12df1
[ "MIT" ]
null
null
null
doughmeter.py
sbma44/doughmeter
1bb79fac159715d1deb6978df0d28ed62fc12df1
[ "MIT" ]
null
null
null
doughmeter.py
sbma44/doughmeter
1bb79fac159715d1deb6978df0d28ed62fc12df1
[ "MIT" ]
null
null
null
#!/home/pi/.virtualenvs/doughmeter/bin/python import yahoofantasyfootball import time import datetime import settings import sys import os import simple_crypto TRAVIS = os.environ.get('CONTINUOUS_INTEGRATION', 'False').upper() == 'TRUE' def gametime(d=None): if d is None: d = datetime.datetime.now() ...
26.923077
149
0.537143
414
3,500
4.463768
0.345411
0.038961
0.045455
0.042208
0.135823
0.135823
0.035714
0.035714
0.035714
0
0
0.019018
0.354
3,500
129
150
27.131783
0.798319
0.047429
0
0.257732
0
0.010309
0.125118
0.027281
0
0
0
0
0
0
null
null
0.010309
0.092784
null
null
0.092784
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6dd4e42bf1ef917a26b5192b34fa0b3199b19892
19,314
py
Python
bootloader/waflib/Utils.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
bootloader/waflib/Utils.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
bootloader/waflib/Utils.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file from __future__ import with_statement import atexit, os, sys, errno, inspect, re, datetime, platform, base64, signal, functools, time try: import cPickle except ImportError: import pickle as ...
25.115735
120
0.56094
2,492
19,314
4.22191
0.179775
0.008079
0.010645
0.013972
0.206444
0.155879
0.132592
0.119095
0.110066
0.104173
0
0.0188
0.314228
19,314
768
121
25.148438
0.775538
0.005851
0
0.354839
1
0.003226
0.063916
0.005313
0
0
0.004219
0
0.001613
1
0.101613
false
0.022581
0.048387
0.017742
0.295161
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6dd773766cc39dbc500b0356325c45e3d50d178e
637
py
Python
admin/plugins/group_admin.py
yilin-lu/bungo-bot-DEPRECATED-
e628d99ac3e1558f2214aebf22eff772a7d2e70c
[ "MIT" ]
null
null
null
admin/plugins/group_admin.py
yilin-lu/bungo-bot-DEPRECATED-
e628d99ac3e1558f2214aebf22eff772a7d2e70c
[ "MIT" ]
null
null
null
admin/plugins/group_admin.py
yilin-lu/bungo-bot-DEPRECATED-
e628d99ac3e1558f2214aebf22eff772a7d2e70c
[ "MIT" ]
null
null
null
from nonebot import on_notice, NoticeSession from nonebot.log import logger from .utils import * @on_notice async def _(session: NoticeSession): logger.info('new notice: %s', session.event) @on_notice('group_decrease') async def _(session: NoticeSession): msg = await load_admin_data("group_decrease") awai...
28.954545
60
0.722135
85
637
5.176471
0.388235
0.072727
0.102273
0.190909
0.279545
0.118182
0
0
0
0
0
0
0.164835
637
22
61
28.954545
0.827068
0
0
0.368421
0
0
0.15674
0.032915
0
0
0
0
0
1
0
false
0
0.157895
0
0.263158
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6dd9eecf3ea452703c0059458ff025d034dde2d4
771
py
Python
second_test.py
iamNitin16/programming-assignment
d02b78879ed2a633216ce48f0ea791586a814995
[ "MIT" ]
null
null
null
second_test.py
iamNitin16/programming-assignment
d02b78879ed2a633216ce48f0ea791586a814995
[ "MIT" ]
null
null
null
second_test.py
iamNitin16/programming-assignment
d02b78879ed2a633216ce48f0ea791586a814995
[ "MIT" ]
null
null
null
import unittest from second import Second class TestSuiteForSecond(unittest.TestCase): """ Test for Second Program """ obj = Second() def testCONSTANTS(self): self.assertEqual(self.obj.SOURCE_LOCATION, [float(12.9611159), float(77.6362214)]) self.assertEqual(self.obj.INVITATION_DISTANCE, 101) self.assertEqu...
28.555556
84
0.763943
97
771
5.917526
0.474227
0.097561
0.099303
0.114983
0.261324
0.261324
0.149826
0.149826
0
0
0
0.069465
0.103761
771
27
85
28.555556
0.761216
0.029831
0
0
0
0
0.010796
0
0
0
0
0
0.315789
1
0.210526
false
0
0.105263
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
6dda18176d9e3e630aabbc643b33eba035baac9e
2,932
py
Python
quotable_queries.py
darth-dodo/Quotable
c951ad7460c81ff902d0e7621c6ca970966a104f
[ "MIT" ]
null
null
null
quotable_queries.py
darth-dodo/Quotable
c951ad7460c81ff902d0e7621c6ca970966a104f
[ "MIT" ]
null
null
null
quotable_queries.py
darth-dodo/Quotable
c951ad7460c81ff902d0e7621c6ca970966a104f
[ "MIT" ]
null
null
null
import pymongo from pprint import pprint def mongo_conn(db, collection): conn = pymongo.MongoClient('localhost', 27017) db_conn = conn[db] coll_conn = db_conn[collection] print coll_conn return coll_conn def list_and_count(coll_field, coll_conn, display_limit=10): a = list(coll_conn.aggregat...
29.616162
81
0.484311
328
2,932
4.033537
0.277439
0.072562
0.027211
0.036281
0.119426
0.090703
0.036281
0
0
0
0
0.016227
0.327422
2,932
98
82
29.918367
0.654665
0.310027
0
0.038462
0
0
0.114035
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.096154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6de17ee53d7b7043fe97312a756c705b4ac070d0
557
py
Python
conteudo/forms.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
conteudo/forms.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
conteudo/forms.py
chicosilva/csms
844c809748099829b91f7edfe859dc41067a988b
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from models import CodigoPromocional, New, Imagem from django import forms from django.forms.models import inlineformset_factory class CodigoPromocionalForm(forms.ModelForm): class Meta: model = CodigoPromocional fields = "__all__" class NoticiaForm(forms.ModelForm): cl...
26.52381
77
0.701975
59
557
6.389831
0.440678
0.111406
0.151194
0.183024
0.222812
0
0
0
0
0
0
0.004556
0.211849
557
21
77
26.52381
0.854214
0.037702
0
0.375
0
0
0.039252
0
0
0
0
0
0
1
0
false
0
0.1875
0
0.5625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6de5ad0ee8bd2c4142b598280e10088439048976
1,082
py
Python
src/twitter_app/util/const_util.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
null
null
null
src/twitter_app/util/const_util.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
1
2022-03-18T09:24:31.000Z
2022-03-26T23:34:44.000Z
src/twitter_app/util/const_util.py
silverag-corgi/twitter-lib-for-me
ee5e85ecbe87d91b7c7638225a806d4185fb6fd9
[ "MIT" ]
1
2022-03-27T10:12:46.000Z
2022-03-27T10:12:46.000Z
from typing import Final TWITTER_API_AUTH_INFO_FILE_PATH: Final[str] = \ 'config/twitter_api_auth_info.json' FOLLOWEE_FILE_PATH: Final[str] = \ './dest/followee/{0}_{1}.csv' FOLLOWER_FILE_PATH: Final[str] = \ './dest/follower/{0}_{1}.csv' LIST_MEMBER_FILE_PATH: Final[str] = \ './dest/list_...
23.521739
49
0.569316
129
1,082
4.426357
0.341085
0.112084
0.113835
0.140105
0.353765
0.21366
0.094571
0
0
0
0
0.012626
0.268022
1,082
45
50
24.044444
0.708333
0
0
0.205128
0
0
0.334619
0.141755
0
0
0
0
0
1
0
true
0
0.025641
0
0.025641
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6de98be56f906e6b0abad553e96961af9920de27
593
py
Python
how-tos/setup_environment/main.py
ValentinATA/sirius-sdk-python
b26aea94f6fc94980a4c9be6d2b8f2345c875964
[ "Apache-2.0" ]
9
2020-08-10T11:57:35.000Z
2022-03-18T21:45:36.000Z
how-tos/setup_environment/main.py
ValentinATA/sirius-sdk-python
b26aea94f6fc94980a4c9be6d2b8f2345c875964
[ "Apache-2.0" ]
3
2021-03-12T22:42:27.000Z
2021-05-18T11:46:01.000Z
how-tos/setup_environment/main.py
ValentinATA/sirius-sdk-python
b26aea94f6fc94980a4c9be6d2b8f2345c875964
[ "Apache-2.0" ]
7
2020-10-30T15:54:45.000Z
2022-02-28T06:59:59.000Z
import os import sys import json import asyncio import sirius_sdk sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from consts import * HUB_CONNECTION = AGENT1 async def open_connection(): is_connected = await sirius_sdk.ping() assert is_connected print('SDK has conne...
21.178571
82
0.733558
88
593
4.579545
0.568182
0.08933
0.069479
0
0
0
0
0
0
0
0
0.005952
0.150084
593
27
83
21.962963
0.793651
0
0
0
0
0
0.075885
0
0
0
0
0
0.055556
1
0
false
0
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
6ded81526ba4c77c4a1e88a520cc8971eb2c85e7
1,618
py
Python
rkqc/tools/equivalence_checker.py
ah744/ScaffCC_RKQC
b7f9adb330f667c007ee9de6c3c1319c55ccc65b
[ "BSD-2-Clause" ]
1
2022-02-05T23:28:35.000Z
2022-02-05T23:28:35.000Z
rkqc/tools/equivalence_checker.py
ah744/ScaffCC_RKQC
b7f9adb330f667c007ee9de6c3c1319c55ccc65b
[ "BSD-2-Clause" ]
null
null
null
rkqc/tools/equivalence_checker.py
ah744/ScaffCC_RKQC
b7f9adb330f667c007ee9de6c3c1319c55ccc65b
[ "BSD-2-Clause" ]
1
2022-02-05T23:42:06.000Z
2022-02-05T23:42:06.000Z
#!/home/adam/Documents/revkit-1.3/python #!/usr/bin/python # RevKit: A Toolkit for Reversible Circuit Design (www.revkit.org) # Copyright (C) 2009-2011 The RevKit Developers <revkit@informatik.uni-bremen.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gener...
31.72549
82
0.703337
254
1,618
4.448819
0.488189
0.029204
0.034513
0.050442
0.138053
0.090265
0
0
0
0
0
0.011905
0.169345
1,618
50
83
32.36
0.828869
0.511125
0
0
0
0
0.158031
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6df37f832b1f6b125142e43005aec802ff8e968e
572
py
Python
src/fractal/interpret/observed.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/interpret/observed.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
src/fractal/interpret/observed.py
jedhsu/fractal
97833ddc5063fae72352cf590738fef508c02f0c
[ "MIT" ]
null
null
null
##### ##### Statistics for games with ternary rewards ##### @dataclass class TernaryOutcomeStatistics: num_won: Int num_draw: Int num_lost: Int function TernaryOutcomeStatistics(rewards::AbstractVector{<:Number}) num_won = count(==(1), rewards) num_draw = count(==(0), rewards) num_lost = count(==(-1), ...
22.88
68
0.743007
66
572
6.257576
0.393939
0.058111
0.145278
0.062954
0.096852
0.096852
0
0
0
0
0
0.006036
0.131119
572
24
69
23.833333
0.82495
0.071678
0
0.133333
0
0
0
0
0
0
0
0
0.066667
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6df7c8784e3f719c85215b15c8362952c057dc35
10,841
py
Python
test/unittests/bgplvm_unittests.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2021-01-17T11:44:36.000Z
2021-01-17T11:44:36.000Z
test/unittests/bgplvm_unittests.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2020-07-19T20:47:02.000Z
2020-07-19T20:47:02.000Z
test/unittests/bgplvm_unittests.py
AndrewRLawrence/dp_gp_lvm
b0d4c776714f22e83de31127fbfbbd511f017dcd
[ "MIT" ]
1
2020-07-21T07:13:13.000Z
2020-07-21T07:13:13.000Z
""" This file defines unit tests for the Bayesian GP-LVM implementation. """ from src.distributions.log_normal import log_pdf from src.kernels.rbf_kernel import k_ard_rbf from src.models.gaussian_process import bayesian_gp_lvm from src.utils.types import NP_DTYPE, TF_DTYPE from test.unittests.kernel_unittests import k...
41.377863
120
0.617932
1,758
10,841
3.600114
0.118885
0.033971
0.022752
0.02133
0.674514
0.632959
0.571812
0.546532
0.530416
0.515879
0
0.010624
0.261968
10,841
261
121
41.536398
0.780402
0.170556
0
0.375
0
0
0.138966
0
0
0
0
0.02682
0.1875
1
0.070313
false
0.007813
0.0625
0
0.179688
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
6dfd4d42c8dadde47f8b3f17f0bea4ceb80b0e7e
1,673
py
Python
openstack/tests/unit/vpc/v1/test_quota.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
43
2018-12-19T08:39:15.000Z
2021-07-21T02:45:43.000Z
openstack/tests/unit/vpc/v1/test_quota.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
11
2019-03-17T13:28:56.000Z
2020-09-23T23:57:50.000Z
openstack/tests/unit/vpc/v1/test_quota.py
wangrui1121/huaweicloud-sdk-python
240abe00288760115d1791012d4e3c4592d77ad1
[ "Apache-2.0" ]
47
2018-12-19T05:14:25.000Z
2022-03-19T15:28:30.000Z
# Copyright 2018 Huawei Technologies Co.,Ltd. # # 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...
37.177778
81
0.687986
218
1,673
5.211009
0.504587
0.105634
0.06338
0.080986
0
0
0
0
0
0
0
0.010393
0.19486
1,673
44
82
38.022727
0.832962
0.337717
0
0
0
0
0.096804
0
0
0
0
0
0.56
1
0.08
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
a30573c023ce4b17bd6872eb9dab8152fe4e44e4
4,738
py
Python
RTRBM/rtrbm/mio.py
liuzc188/Convolutional-LSTM-in-Tensorflow-master
541eebf6a40d4e8f53d9789360a9ef794da2e35a
[ "Apache-2.0" ]
1
2019-04-04T09:25:03.000Z
2019-04-04T09:25:03.000Z
RTRBM/rtrbm/mio.py
liuzc188/Convolutional-LSTM-in-Tensorflow-master
541eebf6a40d4e8f53d9789360a9ef794da2e35a
[ "Apache-2.0" ]
null
null
null
RTRBM/rtrbm/mio.py
liuzc188/Convolutional-LSTM-in-Tensorflow-master
541eebf6a40d4e8f53d9789360a9ef794da2e35a
[ "Apache-2.0" ]
null
null
null
# Authors: Travis Oliphant, Matthew Brett """ Module for reading and writing matlab (TM) .mat files """ import os import sys from scipy.io.mio4 import MatFile4Reader, MatFile4Writer from mio5 import MatFile5Reader, MatFile5Writer __all__ = ['find_mat_file','mat_reader_factory','loadmat', 'savemat'] def find_mat_fi...
37.015625
82
0.597087
601
4,738
4.552413
0.312812
0.096491
0.02193
0.023392
0.075292
0.075292
0.030702
0.030702
0.030702
0.030702
0
0.006274
0.327142
4,738
127
83
37.307087
0.851945
0.008231
0
0.19403
0
0
0.080194
0
0
0
0
0
0
0
null
null
0.014925
0.059701
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1