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
b6ef130e3596b5503b179410617565f6f160c110
542
py
Python
radiator_fritz_o365_sync/runner.py
ykorzikowski/python-fritz-office-365-sync
2044aa3d6cbdf9ceddd82f96380336ad2addb6f4
[ "Apache-2.0" ]
1
2019-06-10T18:16:15.000Z
2019-06-10T18:16:15.000Z
radiator_fritz_o365_sync/runner.py
ykorzikowski/python-fritz-office-365-sync
2044aa3d6cbdf9ceddd82f96380336ad2addb6f4
[ "Apache-2.0" ]
null
null
null
radiator_fritz_o365_sync/runner.py
ykorzikowski/python-fritz-office-365-sync
2044aa3d6cbdf9ceddd82f96380336ad2addb6f4
[ "Apache-2.0" ]
null
null
null
import time import logging from conf.conf import CONFIG as conf from radiator_fritz_o365_sync.core import Core if __name__ == "__main__": if conf['DEBUG_LOGGING']: logging.basicConfig(level=logging.DEBUG) else: logging.basicConfig(level=logging.INFO) logging.info("started radiator_fritz_o3...
31.882353
125
0.712177
70
542
5.271429
0.542857
0.070461
0.092141
0.113821
0
0
0
0
0
0
0
0.013575
0.184502
542
16
126
33.875
0.821267
0
0
0
0
0
0.300738
0.04428
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
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
b6f270a52582701b2438e8f5f06782608df3c80d
292
py
Python
desafios resolvidos/des067.py
EduardoWS/desafios-de-python
1f64115827c6928c3e597c769b0cdb196ae9aa44
[ "MIT" ]
2
2021-04-02T23:15:57.000Z
2021-04-10T22:04:13.000Z
desafios resolvidos/des067.py
EduardoWS/desafios-de-python
1f64115827c6928c3e597c769b0cdb196ae9aa44
[ "MIT" ]
null
null
null
desafios resolvidos/des067.py
EduardoWS/desafios-de-python
1f64115827c6928c3e597c769b0cdb196ae9aa44
[ "MIT" ]
null
null
null
def linha(): print() print('=' * 80) print() linha() while True: num = int(input('Digite um número para ver sua tabuada [0 para sair]: ')) print() if num == 0: break for c in range(1, 11): print(f'{num} x {c:>2} = {num*c:>2}') print() linha()
18.25
77
0.503425
44
292
3.340909
0.659091
0.136054
0
0
0
0
0
0
0
0
0
0.044554
0.308219
292
15
78
19.466667
0.683168
0
0
0.428571
0
0
0.277397
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.071429
0.428571
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
b6fd6ab7151331ed524666ce7d0926b124f4fd20
141,003
py
Python
utils.py
FK2469/Big-Data-Final-Project
1970dea3146a7e6d61557dc4f322c64556f0cbdd
[ "Apache-2.0" ]
1
2019-12-16T18:37:19.000Z
2019-12-16T18:37:19.000Z
utils.py
FK2469/Big-Data-Final-Project
1970dea3146a7e6d61557dc4f322c64556f0cbdd
[ "Apache-2.0" ]
null
null
null
utils.py
FK2469/Big-Data-Final-Project
1970dea3146a7e6d61557dc4f322c64556f0cbdd
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import re COLOR_LIST = ['ABSOLUTE ZERO', 'ACID GREEN', 'AERO', 'AERO BLUE', 'AFRICAN VIOLET', 'AIR FORCE BLUE', 'AIR SUPERIORITY BLUE', 'ALABAMA CRIMSON', 'ALICE BLUE', 'ALIEN ARMPIT', 'ALIZARIN CRIMSON', 'ALLOY ORANGE', 'ALMOND', 'AMARANTH', 'AMARANTH DEEP PURPLE', 'AMARANT...
91.56039
120
0.596739
15,188
141,003
5.512312
0.389452
0.001648
0.00559
0.005733
0.024187
0.017702
0.01548
0.007859
0.004778
0.004778
0
0.003191
0.242222
141,003
1,539
121
91.619883
0.780344
0.000369
0
0.005694
0
0.000712
0.621025
0.000993
0
0
0
0
0
1
0.036299
false
0.00427
0.000712
0.034875
0.074733
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8e064b31ca78aba4ff4a53acd5eed4aca8ce5ae0
1,277
py
Python
ycyc/tests/base/test_resources.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
22
2015-07-21T03:15:36.000Z
2021-02-23T07:58:03.000Z
ycyc/tests/base/test_resources.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2016-03-20T12:06:07.000Z
2018-01-16T10:34:19.000Z
ycyc/tests/base/test_resources.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2015-05-08T00:55:38.000Z
2017-02-25T03:30:14.000Z
#!/usr/bin/env python # encoding: utf-8 import re from unittest import TestCase from ycyc.base import resources class TestRegex(TestCase): def pattern_equal_rex(self, pattern): return re.compile(pattern.rstrip("$") + "$") def test_num_less_than(self): with self.assertRaises(Va...
23.218182
77
0.531715
160
1,277
4.01875
0.425
0.283048
0.051322
0.065319
0.077761
0
0
0
0
0
0
0.091811
0.368833
1,277
54
78
23.648148
0.705955
0.028191
0
0
0
0
0.001688
0
0
0
0
0
0.075
1
0.075
false
0
0.075
0.025
0.2
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
8e0c5af9bbc4321ccdd9981c8d9c51da7f3627fc
1,475
py
Python
modules/SIGA/formats/windows/prefetch/prefetch_file_info_23.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
56
2019-02-07T06:21:45.000Z
2022-03-21T08:19:24.000Z
modules/SIGA/formats/windows/prefetch/prefetch_file_info_23.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
5
2020-05-25T17:29:00.000Z
2021-12-13T20:49:08.000Z
modules/SIGA/formats/windows/prefetch/prefetch_file_info_23.py
naaya17/carpe
fa2e3cfebe20f8839c985e5b9b78b538800172a1
[ "Apache-2.0" ]
31
2019-03-13T10:23:49.000Z
2021-11-04T12:14:58.000Z
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild from pkg_resources import parse_version from modules.SIGA.kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO if parse_version(ks_version) < parse_version('0.7'): raise Exception("Inc...
42.142857
118
0.707119
211
1,475
4.554502
0.388626
0.106139
0.156087
0.145682
0.301769
0.264308
0.223725
0
0
0
0
0.022766
0.195932
1,475
34
119
43.382353
0.787521
0.065085
0
0
1
0
0.060364
0
0
0
0
0
0
1
0.076923
false
0
0.076923
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
8e20b0aeeb4dda2d794833aebeb0a2cfa361617e
660
py
Python
mongo.py
oursonvie/douban
79a2c8820dbe39d5e5e4bec578aca5b4c009eda0
[ "Apache-2.0" ]
null
null
null
mongo.py
oursonvie/douban
79a2c8820dbe39d5e5e4bec578aca5b4c009eda0
[ "Apache-2.0" ]
null
null
null
mongo.py
oursonvie/douban
79a2c8820dbe39d5e5e4bec578aca5b4c009eda0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # mongodb module # import mongo driver from pymongo import MongoClient from bson.objectid import ObjectId client = MongoClient() db = client['douban_test'] def resetCollection(): db.temp.drop() def insert_cd(cd): cds = db.cd_detail cd_id = cds.insert_one(cd).inserted_id ...
18.857143
45
0.607576
88
660
4.340909
0.477273
0.041885
0.104712
0.08377
0.104712
0
0
0
0
0
0
0.004132
0.266667
660
35
46
18.857143
0.785124
0.169697
0
0
0
0
0.033149
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
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
8e2174c5ace2f2d41716b083956eb81bf26cce79
3,913
py
Python
store/models.py
fobiero/jewelley-Store
02aafb0fbe2d320b1be837b3de44cafe5ff5a419
[ "MIT" ]
null
null
null
store/models.py
fobiero/jewelley-Store
02aafb0fbe2d320b1be837b3de44cafe5ff5a419
[ "MIT" ]
null
null
null
store/models.py
fobiero/jewelley-Store
02aafb0fbe2d320b1be837b3de44cafe5ff5a419
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class Address(models.Model): user = models.ForeignKey(User, verbose_name="User", on_delete=models.CASCADE) locality = models.CharField(max_length=150, verbose_name="Nearest Location") city = models.CharField...
43
114
0.729619
483
3,913
5.695652
0.213251
0.139949
0.065431
0.053435
0.614322
0.563795
0.509269
0.43366
0.417666
0.417666
0
0.008135
0.151802
3,913
90
115
43.477778
0.820729
0.019934
0
0.352113
0
0
0.141701
0
0
0
0
0
0
1
0.070423
false
0
0.028169
0.070423
0.760563
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
8e218939f297533b481139d2e3f09c44e88a3b59
656
py
Python
src/anodb/common.py
0k/anodb
fe87872a81d87e0e3e9880e03e3680ec9e24d02d
[ "BSD-2-Clause" ]
1
2016-11-08T20:12:29.000Z
2016-11-08T20:12:29.000Z
src/anodb/common.py
0k/anodb
fe87872a81d87e0e3e9880e03e3680ec9e24d02d
[ "BSD-2-Clause" ]
null
null
null
src/anodb/common.py
0k/anodb
fe87872a81d87e0e3e9880e03e3680ec9e24d02d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import psycopg2 import psycopg2.extras from kids.cache import cache from kids.cmd import BaseCommand class DbCommand(BaseCommand): @cache @property def _connection(self): try: return psycopg2.connect(dsn="") except (TypeError, psycopg2.OperationalErro...
23.428571
80
0.63872
66
656
6.30303
0.666667
0.067308
0.076923
0
0
0
0
0
0
0
0
0.012526
0.269817
656
27
81
24.296296
0.85595
0.032012
0
0.210526
0
0
0.193038
0
0
0
0
0
0
1
0.105263
false
0.052632
0.210526
0.052632
0.473684
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
8e248429cc270b87929a44c4b9882e2c127435ce
301
py
Python
src/nerven/writer/__init__.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
1
2017-09-04T18:19:44.000Z
2017-09-04T18:19:44.000Z
src/nerven/writer/__init__.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
null
null
null
src/nerven/writer/__init__.py
olorin/nerven
7f082854cb2b1d4545bd61d68229f15e1167e237
[ "MIT" ]
null
null
null
from writers import * have_edf = False try: from edflib import _edflib as edf have_edf = True from EdfWriter import EdfWriter except ImportError: print("Can't find edflib, EDF output disabled.") backends = { 'raw' : RawWriter, } if have_edf: backends['edf'] = EdfWriter
17.705882
52
0.677741
39
301
5.128205
0.589744
0.105
0
0
0
0
0
0
0
0
0
0
0.239203
301
16
53
18.8125
0.873362
0
0
0
0
0
0.149502
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.076923
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
8e26bf2b44c29ee0aac1402ef0b63abbe3847b4f
2,499
py
Python
run_aligner.py
lucylw/pathhier
56178260f499bab60bab0061f05101c92922c45c
[ "MIT" ]
1
2019-09-24T12:36:09.000Z
2019-09-24T12:36:09.000Z
run_aligner.py
lucylw/pathhier
56178260f499bab60bab0061f05101c92922c45c
[ "MIT" ]
2
2021-03-22T17:12:14.000Z
2021-12-13T19:37:13.000Z
run_aligner.py
lucylw/pathhier
56178260f499bab60bab0061f05101c92922c45c
[ "MIT" ]
null
null
null
import argparse from pathhier.pw_aligner import PWAligner def bootstrap(args): print('Bootstrapping mode') aligner = PWAligner(args.kb, args.pw) aligner.bootstrap_model(args.num_iter) def train(args): print('Training mode') aligner = PWAligner(args.kb, args.pw) aligner.train_model(args.outp...
29.05814
111
0.765906
369
2,499
4.878049
0.135501
0.125
0.226667
0.088889
0.472778
0.457222
0.438889
0.113333
0.07
0
0
0
0.105242
2,499
86
112
29.05814
0.805009
0
0
0.104478
0
0
0.1136
0
0
0
0
0
0
1
0.074627
false
0
0.029851
0
0.104478
0.074627
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
8e30a74a6933de3cd85c29145abe9bee57252910
4,130
py
Python
robot.py
dews/gameRobot
a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3
[ "MIT" ]
null
null
null
robot.py
dews/gameRobot
a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3
[ "MIT" ]
null
null
null
robot.py
dews/gameRobot
a16847666d882a2e1c66bf9fd6ee4f09a20fe6d3
[ "MIT" ]
null
null
null
#! /usr/bin/env python import sys import time import re import os import subprocess import matchImage import screenshot try: sys.path.insert(0, os.path.join( os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src')) except: pass from com.dtmilano.android.adb.adbclient import AdbClient from com.dtmilano.android....
28.881119
84
0.496852
442
4,130
4.608597
0.300905
0.108493
0.141384
0.065292
0.380461
0.338243
0.21944
0.206186
0.206186
0.16593
0
0.0452
0.394673
4,130
142
85
29.084507
0.7696
0.029782
0
0.362832
0
0
0.100575
0.006005
0
0
0
0
0
0
null
null
0.00885
0.079646
null
null
0.097345
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
8e3657aaf944fd65d2c7064ea7ea7a1668b42283
1,729
py
Python
mgt/datamanagers/time_shift/dictionary_generator.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
12
2021-07-22T12:13:27.000Z
2022-02-13T09:09:08.000Z
mgt/datamanagers/time_shift/dictionary_generator.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
9
2021-06-26T10:43:16.000Z
2021-12-03T17:25:10.000Z
mgt/datamanagers/time_shift/dictionary_generator.py
wingedsheep/music-generation-tools
02656eb75781925451f51d4ead7d8b6003bdeb29
[ "MIT" ]
null
null
null
from mgt.datamanagers.data_manager import Dictionary class DictionaryGenerator(object): @staticmethod def create_dictionary() -> Dictionary: """ Creates a dictionary for a REMI-like mapping of midi events. """ dictionary = [{}, {}] def append_to_dictionary(word): ...
32.622642
84
0.608444
228
1,729
4.47807
0.359649
0.08619
0.193928
0.064643
0.143976
0.143976
0.143976
0.143976
0.143976
0.111655
0
0.053454
0.296703
1,729
52
85
33.25
0.786184
0.32273
0
0.12
0
0
0.080844
0
0
0
0
0
0
1
0.08
false
0
0.04
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
8e36fbd8aa9ae0ddcce47cd2bafdaba3a5ff3f41
671
py
Python
binarysearch.io/254_course_scheduling.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/254_course_scheduling.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/254_course_scheduling.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, courses): n = len(courses) def helper(start): visited[start] = 1 for v in courses[start]: if visited[v]==1: return True elif visited[v]==0: if helper(v): ...
27.958333
43
0.375559
63
671
4
0.412698
0.119048
0
0
0
0
0
0
0
0
0
0.019672
0.545455
671
24
44
27.958333
0.806557
0.043219
0
0.277778
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
8e394c95259347ff8c0656e41ed67cf8d45dc5b3
1,132
py
Python
edfi_performance/tasks/volume/class_period.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
null
null
null
edfi_performance/tasks/volume/class_period.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
10
2021-03-20T05:02:17.000Z
2022-03-30T17:19:35.000Z
edfi_performance/tasks/volume/class_period.py
Ed-Fi-Exchange-OSS/Ed-Fi-X-ODS-Performance
05678a2c8c314d69a5e6b9ed3040800835b91582
[ "Apache-2.0" ]
1
2022-03-25T09:09:32.000Z
2022-03-25T09:09:32.000Z
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. from locust import task from edfi_performance.api.cl...
45.28
104
0.64841
121
1,132
5.950413
0.61157
0.033333
0.079167
0.041667
0.216667
0.216667
0.216667
0.216667
0.216667
0.216667
0
0.029448
0.280035
1,132
24
105
47.166667
0.852761
0.226148
0
0
0
0
0.105747
0
0
0
0
0
0
0
null
null
0
0.25
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
8e420cab5481f07610940e5050c253f709dc1bcc
972
py
Python
tests/test_sepby_parser.py
SalihTasdelen/paco
48614571f82f5ad395ca730c0ebd0285ed4e8d0b
[ "MIT" ]
2
2021-09-14T20:05:49.000Z
2021-09-19T09:20:13.000Z
tests/test_sepby_parser.py
SalihTasdelen/paco
48614571f82f5ad395ca730c0ebd0285ed4e8d0b
[ "MIT" ]
9
2021-09-14T21:06:58.000Z
2021-09-19T19:27:43.000Z
tests/test_sepby_parser.py
SalihTasdelen/paco
48614571f82f5ad395ca730c0ebd0285ed4e8d0b
[ "MIT" ]
null
null
null
import unittest from paco.combinators import SepBy from paco.atomic import (Char, Regex) class TestSepByParser(unittest.TestCase): def setUp(self): self.integer = Regex(r'[1-9][0-9]*') self.comm = Char(',') << Regex(r' *') self.rule = SepBy(self.integer, self.comm) def test_empty(self...
32.4
68
0.585391
125
972
4.528
0.312
0.185512
0.222615
0.091873
0.381625
0.381625
0.332155
0.332155
0.332155
0.332155
0
0.038728
0.256173
972
30
69
32.4
0.744122
0
0
0.24
0
0
0.051387
0
0
0
0
0
0.28
1
0.16
false
0
0.12
0
0.32
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
8e4f3bdbc4404723ef6cc0980b55e0b3c4949d54
6,462
py
Python
labelord/web.py
HalfDeadPie/labelord_halfdeadpie
d7d33c520926c6919a330e62a6336841ce881853
[ "CC0-1.0" ]
null
null
null
labelord/web.py
HalfDeadPie/labelord_halfdeadpie
d7d33c520926c6919a330e62a6336841ce881853
[ "CC0-1.0" ]
null
null
null
labelord/web.py
HalfDeadPie/labelord_halfdeadpie
d7d33c520926c6919a330e62a6336841ce881853
[ "CC0-1.0" ]
null
null
null
import flask from flask import request from flask import render_template from .web_support import * from .cli import cli ##################################################################### # STARING NEW FLASK SKELETON (Task 2 - flask) #check the config class LabelordWeb(flask.Flask): """ The class represent...
32.80203
124
0.567162
774
6,462
4.586563
0.280362
0.019718
0.020282
0.014366
0.025352
0
0
0
0
0
0
0.004777
0.319715
6,462
197
125
32.80203
0.802775
0.331786
0
0.072917
0
0
0.073511
0
0
0
0
0.020305
0
1
0.09375
false
0.010417
0.0625
0
0.364583
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
8e4fccf68571d5510548720c824de63476efbe28
3,123
py
Python
shared_ndarray/shared_ndarray.py
gerdlanger/shared_ndarray
66fad5f5d8c2f495f01a091321390c5bd07a6b33
[ "MIT" ]
null
null
null
shared_ndarray/shared_ndarray.py
gerdlanger/shared_ndarray
66fad5f5d8c2f495f01a091321390c5bd07a6b33
[ "MIT" ]
null
null
null
shared_ndarray/shared_ndarray.py
gerdlanger/shared_ndarray
66fad5f5d8c2f495f01a091321390c5bd07a6b33
[ "MIT" ]
null
null
null
"""A pickleable wrapper for sharing NumPy ndarrays between processes using multiprocessing shared memory.""" import numpy as np import multiprocessing.shared_memory as shm class SharedNDArray: """Creates a new SharedNDArray, a pickleable wrapper for sharing NumPy ndarrays between processes using multiprocess...
34.7
108
0.659622
403
3,123
5.032258
0.364764
0.04142
0.041913
0.055227
0.18146
0.164694
0.087771
0.087771
0.087771
0.087771
0
0.000887
0.277618
3,123
89
109
35.089888
0.89805
0.602626
0
0.076923
0
0
0.001045
0
0
0
0
0
0
1
0.269231
false
0
0.076923
0.038462
0.5
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
8e51c56c0672cb95c89059857a5ddad8b2c3be32
2,678
py
Python
delphin_6_automation/database_interactions/db_templates/delphin_entry.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
2
2017-11-08T18:37:36.000Z
2018-01-09T12:10:58.000Z
delphin_6_automation/database_interactions/db_templates/delphin_entry.py
ribuild/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
111
2018-02-26T08:25:44.000Z
2021-03-31T19:17:19.000Z
delphin_6_automation/database_interactions/db_templates/delphin_entry.py
thp44/delphin_6_automation
12024381fc1042b46314c55d88b6349229ea33b7
[ "MIT" ]
3
2017-11-06T10:01:25.000Z
2018-02-14T09:45:28.000Z
__author__ = "Christian Kongsgaard" __license__ = "MIT" # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules: import mongoengine from datetime import datetime # RiBuild Modules: import delphin_6_automation.database_interactions.d...
40.575758
120
0.731889
260
2,678
7.25
0.334615
0.097613
0.037135
0.06366
0.331034
0.292838
0.209019
0.209019
0.209019
0.082759
0
0.005474
0.113144
2,678
65
121
41.2
0.788211
0.122479
0
0.05
0
0
0.009846
0
0
0
0
0
0
1
0
false
0
0.175
0
0.95
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
f3d5aaf201371bb0244186b456ecda6337fdf3e9
16,268
py
Python
UI/design.py
das747/SerialMonitor
e4392ade58746304a1c8539558c00bcb22c222d4
[ "MIT" ]
null
null
null
UI/design.py
das747/SerialMonitor
e4392ade58746304a1c8539558c00bcb22c222d4
[ "MIT" ]
null
null
null
UI/design.py
das747/SerialMonitor
e4392ade58746304a1c8539558c00bcb22c222d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'design.ui' # # Created by: PyQt5 UI code generator 5.13.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWin...
58.1
115
0.715761
1,953
16,268
5.727087
0.113159
0.025034
0.016898
0.019759
0.505051
0.42852
0.34886
0.211354
0.153152
0.139562
0
0.019076
0.168613
16,268
279
116
58.308244
0.807911
0.011065
0
0.120301
1
0
0.073938
0
0
0
0
0
0
1
0.007519
false
0
0.003759
0
0.015038
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
f3d67db17757042e7a3fdb056ed590b583dd2765
1,413
py
Python
TM1py/Objects/Server.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
113
2019-03-12T19:42:39.000Z
2022-03-31T22:40:05.000Z
TM1py/Objects/Server.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
459
2019-01-25T09:32:18.000Z
2022-03-24T21:57:16.000Z
TM1py/Objects/Server.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
107
2019-01-31T15:08:34.000Z
2022-03-16T14:58:38.000Z
# -*- coding: utf-8 -*- from typing import Dict class Server: """ Abstraction of the TM1 Server :Notes: contains the information you get from http://localhost:5895/api/v1/Servers no methods so far """ def __init__(self, server_as_dict: Dict): self.name = server_as_...
48.724138
94
0.71196
169
1,413
5.544379
0.431953
0.153682
0.230523
0.057631
0.123799
0
0
0
0
0
0
0.007909
0.194621
1,413
29
95
48.724138
0.815466
0.11465
0
0
0
0
0.199836
0.097862
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
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
f3db2d74e6379af99076d5325609f914b7dc2550
396
py
Python
torchsketch/utils/general_utils/get_filenames_and_classes.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
182
2020-03-25T01:59:11.000Z
2022-03-29T08:58:47.000Z
torchsketch/utils/general_utils/get_filenames_and_classes.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
5
2020-03-25T13:16:50.000Z
2022-02-19T09:51:39.000Z
torchsketch/utils/general_utils/get_filenames_and_classes.py
songyzh/torchsketch
42bca1b31ab9699d9b6d77a102b1f46bba82fb33
[ "MIT" ]
17
2020-03-25T12:40:49.000Z
2022-03-28T06:34:40.000Z
import os def get_filenames_and_classes(dataset_dir): class_names = [] for filename in os.listdir(dataset_dir): path = os.path.join(dataset_dir, filename) if os.path.isdir(path): class_names.append(filename) class_names_to_ids = dict(zip(sorted(class_names), ...
26.4
81
0.669192
55
396
4.509091
0.509091
0.282258
0.096774
0.120968
0
0
0
0
0
0
0
0
0.232323
396
15
82
26.4
0.815789
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
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
f3db9477703e654034fb7a11df498a6226760521
10,230
py
Python
Peach/Fixups/checksums.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
Peach/Fixups/checksums.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
Peach/Fixups/checksums.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
''' A few standard fixups. ''' # # Copyright (c) 2008-2009 Michael Eddington # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
28.98017
103
0.669501
1,254
10,230
5.330941
0.238437
0.048168
0.021391
0.033059
0.455647
0.417203
0.413762
0.373972
0.346746
0.31623
0
0.017817
0.220919
10,230
352
104
29.0625
0.820954
0.157087
0
0.515419
0
0
0.082655
0.002712
0
0
0.006199
0
0
0
null
null
0.022026
0.030837
null
null
0.008811
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
f3dcb3d37a3093776b33a24743ff50bf9af0177e
424
py
Python
KnowledgeMapping/spark/9_neo4j.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
8
2018-05-22T01:11:33.000Z
2020-03-19T01:44:55.000Z
KnowledgeMapping/spark/9_neo4j.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
null
null
null
KnowledgeMapping/spark/9_neo4j.py
nickliqian/ralph_doc_to_chinese
be120ce2bb94a8e8395630218985f5e51ae087d9
[ "MIT" ]
3
2018-07-25T09:31:53.000Z
2019-09-14T14:05:31.000Z
from pyspark import SparkContext from pyspark.sql import SQLContext sc = SparkContext("local", appName="mysqltest") sqlContext = SQLContext(sc) df = sqlContext.read.format("jdbc").options( url="jdbc:neo4j://192.168.10.74:7687?password=123456&" "useUnicode=true&characterEncoding=utf-8&useJDBCCompliantTimez...
32.615385
85
0.75
51
424
6.235294
0.764706
0.069182
0
0
0
0
0
0
0
0
0
0.060686
0.106132
424
12
86
35.333333
0.778364
0
0
0
0
0
0.441038
0.398585
0
0
0
0
0
1
0
false
0.1
0.2
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
0
0
0
0
1
0
0
0
0
0
1
f3e06164915256f36fca82c703e4de70113e02d2
435
py
Python
blasy/tests/test_blasy.py
bristi/blasy
40f775a27093abb1a061c206ecf41c96fc4d5d69
[ "MIT" ]
1
2018-04-02T15:45:06.000Z
2018-04-02T15:45:06.000Z
blasy/tests/test_blasy.py
bristi/blasy
40f775a27093abb1a061c206ecf41c96fc4d5d69
[ "MIT" ]
1
2017-08-15T19:30:34.000Z
2017-08-15T19:30:34.000Z
blasy/tests/test_blasy.py
bristi/blasy
40f775a27093abb1a061c206ecf41c96fc4d5d69
[ "MIT" ]
1
2021-03-05T04:22:29.000Z
2021-03-05T04:22:29.000Z
import os from blasy.blasy import PluginManager class TestLoadingPlugin: # TODO: recursive, category def test_can_find_plugins_from_dir(self): pm = PluginManager(plugin_info_ext="testplug") test_dir = os.path.dirname(__file__) test_data_dir = os.path.join(test_dir, "data") ...
18.913043
54
0.685057
54
435
5.185185
0.611111
0.05
0.064286
0
0
0
0
0
0
0
0
0.002959
0.222989
435
22
55
19.772727
0.825444
0.057471
0
0
0
0
0.029484
0
0
0
0
0.045455
0.1
1
0.1
false
0
0.2
0
0.4
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
f3e3a4591a7d09631abd69eea4307f0ec1434bae
388
py
Python
pineboolib/q3widgets/qtoolbar.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
null
null
null
pineboolib/q3widgets/qtoolbar.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T22:00:48.000Z
2017-11-11T19:34:32.000Z
pineboolib/q3widgets/qtoolbar.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
1
2017-10-30T20:16:38.000Z
2017-10-30T20:16:38.000Z
"""Qtoolbar module.""" # -*- coding: utf-8 -*- from PyQt5 import QtWidgets # type: ignore class QToolBar(QtWidgets.QToolBar): """QToolBar class.""" _label: str def setLabel(self, l: str) -> None: """Set label.""" self._label = l def getLabel(self) -> str: """Get label.""" ...
19.4
43
0.574742
43
388
5.116279
0.55814
0.081818
0
0
0
0
0
0
0
0
0
0.006993
0.262887
388
19
44
20.421053
0.762238
0.231959
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.875
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
f3f5cc4a0ccf0a79d51d0b2a0cf1e027b9163484
3,403
py
Python
TM1py/Services/SecurityService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
null
null
null
TM1py/Services/SecurityService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
null
null
null
TM1py/Services/SecurityService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
1
2022-01-17T10:02:44.000Z
2022-01-17T10:02:44.000Z
# -*- coding: utf-8 -*- import json from TM1py.Objects.User import User from TM1py.Services.ObjectService import ObjectService class SecurityService(ObjectService): """ Service to handle Security stuff """ def __init__(self, rest): super().__init__(rest) def create_user(self, user): ...
30.936364
97
0.602116
423
3,403
4.673759
0.156028
0.060698
0.054628
0.060192
0.5478
0.51998
0.425898
0.394537
0.394537
0.23824
0
0.010097
0.272407
3,403
109
98
31.220183
0.788368
0.221275
0
0.25
0
0
0.112142
0.04511
0
0
0
0
0
1
0.208333
false
0
0.0625
0
0.458333
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
6d0142ba12685833e59d4f8ae23b3f1ed8f036b8
547
py
Python
Tools/TestRailImporter/lib/testrail_importer/testrail_tools/testrail_settings.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
11
2021-07-08T09:58:26.000Z
2022-03-17T17:59:26.000Z
Tools/TestRailImporter/lib/testrail_importer/testrail_tools/testrail_settings.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
29
2021-07-06T19:33:52.000Z
2022-03-22T10:27:49.000Z
Tools/TestRailImporter/lib/testrail_importer/testrail_tools/testrail_settings.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
4
2021-07-06T19:24:43.000Z
2022-03-31T12:42:27.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT Settings file for the TestRailImporter tool. """ TESTRAIL_STATUS_IDS = { # For more info see http://docs.gurock.c...
26.047619
100
0.689214
83
547
4.385542
0.759036
0
0
0
0
0
0
0
0
0
0
0.029412
0.191956
547
20
101
27.35
0.794118
0.585009
0
0
0
0
0.410959
0
0
0
0
0
0
1
0
false
0.181818
0
0
0
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
6d0faf99612a39efea2286911fd280d2f1a7457e
498
py
Python
tests/ea/selection/selector/select/select_1/conftest.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
tests/ea/selection/selector/select/select_1/conftest.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
tests/ea/selection/selector/select/select_1/conftest.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
import pytest from pytest_lazyfixture import lazy_fixture # Fixtures must be visible for lazy_fixture() calls. from .fixtures import * # noqa @pytest.fixture( params=( lazy_fixture('above_average'), lazy_fixture('best'), lazy_fixture('filter_batches'), lazy_fixture('filter_molecu...
23.714286
52
0.676707
56
498
5.732143
0.5
0.308411
0.105919
0
0
0
0
0
0
0
0
0
0.214859
498
20
53
24.9
0.820972
0.110442
0
0
0
0
0.186364
0
0
0
0
0
0
1
0.0625
false
0
0.1875
0.0625
0.3125
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
6d12f8e23ea7988b0a3cadd4416213ee8d1a089c
1,613
py
Python
setup.py
twkiiim/sleemo
46c416577033567b5b15fdd2018775f8692c4c70
[ "MIT" ]
36
2020-10-28T23:00:53.000Z
2022-01-02T02:57:32.000Z
setup.py
twkiiim/sleemo
46c416577033567b5b15fdd2018775f8692c4c70
[ "MIT" ]
null
null
null
setup.py
twkiiim/sleemo
46c416577033567b5b15fdd2018775f8692c4c70
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import shutil import sys import sleemo from setuptools import Command, find_packages, setup if sys.argv[-1] == "publish": os.system("python setup.py upload") sys.exit() class UploadCommand(Command): user_options = [] def initialize_options(self): pass def final...
26.442623
87
0.636702
187
1,613
5.358289
0.57754
0.03992
0.027944
0.037924
0.041916
0
0
0
0
0
0
0.003182
0.220707
1,613
60
88
26.883333
0.793954
0.012399
0
0.042553
0
0
0.297739
0
0
0
0
0
0
1
0.06383
false
0.06383
0.106383
0
0.212766
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
6d15c2c7c26e6757a3db50ee5364f4723a124e10
552
py
Python
Python/5.3.6 switch var/program.py
jonasclaes/Provil_2018_2019
a2c2566467f0b68585ee4434279ad263e438eed9
[ "MIT" ]
null
null
null
Python/5.3.6 switch var/program.py
jonasclaes/Provil_2018_2019
a2c2566467f0b68585ee4434279ad263e438eed9
[ "MIT" ]
null
null
null
Python/5.3.6 switch var/program.py
jonasclaes/Provil_2018_2019
a2c2566467f0b68585ee4434279ad263e438eed9
[ "MIT" ]
null
null
null
print("------------------------------------") print("********* Woorden switchen *********") print("------------------------------------") # Input temperatuur in Celsius woord1 = input("Woord 1: ") woord2 = input("Woord 2: ") # Output print() print("Woord 1: " + woord1.upper()) print("Woord 2: " + woord2.upper()) prin...
21.230769
45
0.550725
62
552
4.903226
0.403226
0.131579
0.105263
0.138158
0.394737
0.394737
0.394737
0.394737
0.394737
0.394737
0
0.033543
0.13587
552
25
46
22.08
0.603774
0.166667
0
0.666667
0
0
0.427313
0.15859
0
0
0
0
0
1
0
false
0
0
0
0
0.733333
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
6d1f6ddbb8852327d74ab70fe9777c05e7220bdc
520
py
Python
DQM/GEM/python/gemEfficiencyAnalyzerCosmics_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
DQM/GEM/python/gemEfficiencyAnalyzerCosmics_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
DQM/GEM/python/gemEfficiencyAnalyzerCosmics_cff.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2022-02-27T06:12:26.000Z
2022-02-27T06:12:26.000Z
import FWCore.ParameterSet.Config as cms from DQM.GEM.gemEfficiencyAnalyzer_cfi import * gemEfficiencyAnalyzerCosmics = gemEfficiencyAnalyzer.clone( isCosmics = True, ) gemEfficiencyAnalyzerCosmicsTwoLeg = gemEfficiencyAnalyzerCosmics.clone( muonTag = 'muons', name = 'Cosmic 2-Leg STA Muon', folder = ...
27.368421
72
0.759615
47
520
8.382979
0.659574
0.167513
0.203046
0.081218
0.147208
0.147208
0
0
0
0
0
0.011312
0.15
520
18
73
28.888889
0.880091
0
0
0
0
0
0.184615
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
6d225d735b9ff7a4788af45181cc105beada4347
1,875
py
Python
src/emqx/exproto/ex_proto.py
WangScaler/emqx-exproto-python-sdk
be99ef7e9f2367e8609d959e0218342a90f3a77e
[ "Apache-2.0" ]
1
2021-02-07T06:22:41.000Z
2021-02-07T06:22:41.000Z
src/emqx/exproto/ex_proto.py
WangScaler/emqx-exproto-python-sdk
be99ef7e9f2367e8609d959e0218342a90f3a77e
[ "Apache-2.0" ]
null
null
null
src/emqx/exproto/ex_proto.py
WangScaler/emqx-exproto-python-sdk
be99ef7e9f2367e8609d959e0218342a90f3a77e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 EMQ Technologies Co., Ltd. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
35.377358
76
0.704
250
1,875
5.22
0.44
0.045977
0.033716
0.082759
0.08659
0.061303
0.061303
0
0
0
0
0.011486
0.210667
1,875
52
77
36.057692
0.87027
0.329067
0
0.275862
0
0
0
0
0
0
0
0.019231
0
1
0.172414
false
0
0.172414
0
0.586207
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
6d28719fb49c4fa8dd0e0aa1e6c21468c7d0876e
5,059
py
Python
deskwid/deskwidutils.py
jayrambhia/DeskWid
a595bb986f92b2edaa7777de70a7eda127ec85d4
[ "Apache-2.0" ]
1
2019-01-11T09:03:48.000Z
2019-01-11T09:03:48.000Z
deskwid/deskwidutils.py
jayrambhia/DeskWid
a595bb986f92b2edaa7777de70a7eda127ec85d4
[ "Apache-2.0" ]
null
null
null
deskwid/deskwidutils.py
jayrambhia/DeskWid
a595bb986f92b2edaa7777de70a7eda127ec85d4
[ "Apache-2.0" ]
null
null
null
''' Author : Jay Rambhia email : jayrambhia777@gmail.com Git : https://github.com/jayrambhia gist : https://gist.github.com/jayrambhia ============================================= Name : deskwidutils Repo : DeskWid Git : https://github.com/jayrambhia/DeskWid version 0.1 ''' # Copyright (c) 2012 Jay Rambhia ...
30.660606
83
0.621862
656
5,059
4.707317
0.275915
0.056995
0.037889
0.049223
0.226036
0.135039
0.110427
0.057642
0.036917
0.036917
0
0.002812
0.226725
5,059
164
84
30.847561
0.786554
0.209725
0
0.33913
0
0
0.158863
0
0
0
0
0
0
0
null
null
0
0.008696
null
null
0.052174
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
6d2de6a928ed563f9b300b4a6d216f76f2668995
4,173
py
Python
tests/test_emclpy.py
tlester/emclpy
9c0d5613f27312a2ce7443084ce4f688e9697e42
[ "Apache-2.0" ]
null
null
null
tests/test_emclpy.py
tlester/emclpy
9c0d5613f27312a2ce7443084ce4f688e9697e42
[ "Apache-2.0" ]
null
null
null
tests/test_emclpy.py
tlester/emclpy
9c0d5613f27312a2ce7443084ce4f688e9697e42
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_emclpy ---------------------------------- Tests for `emclpy` module. """ import unittest import os import time import emclpy # Environments for testing. # Set url appropriately before running tests. testing_environment = {'dev': 'https://localhost:7799/em', ...
29.595745
79
0.614426
480
4,173
5.16875
0.21875
0.084643
0.068521
0.080613
0.442563
0.419589
0.350262
0.319629
0.289803
0.269649
0
0.00801
0.252097
4,173
140
80
29.807143
0.786927
0.044812
0
0.453704
0
0
0.098365
0.005283
0
0
0
0
0.157407
1
0.12037
false
0.12963
0.046296
0
0.175926
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
6d33ed4bf0856987ecf28d039e240d4925c02662
1,585
py
Python
example/nl_caliper_push.py
periscope-ps/unis
b43b66f84fe91218d23c79dbf9e20fcec870ce74
[ "BSD-3-Clause" ]
2
2015-06-27T14:41:39.000Z
2017-05-18T18:33:02.000Z
example/nl_caliper_push.py
periscope-ps/unis
b43b66f84fe91218d23c79dbf9e20fcec870ce74
[ "BSD-3-Clause" ]
18
2015-12-16T21:42:09.000Z
2021-09-29T15:55:39.000Z
example/nl_caliper_push.py
periscope-ps/unis
b43b66f84fe91218d23c79dbf9e20fcec870ce74
[ "BSD-3-Clause" ]
2
2017-09-01T15:35:21.000Z
2019-07-19T02:57:05.000Z
# ============================================================================= # periscope-ps (unis) # # Copyright (c) 2012-2016, Trustees of Indiana University, # All rights reserved. # # This software may be modified and distributed under the terms of the BSD # license. See the COPYING file for details. # # T...
30.480769
91
0.498423
160
1,585
4.86875
0.68125
0.043646
0.020539
0.023107
0.025674
0
0
0
0
0
0
0.095238
0.271293
1,585
51
92
31.078431
0.579221
0.307886
0
0
0
0
0.325946
0.028624
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.064516
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
6d347df7e80fd8ff6aa6a6c8ae4cf72c399fe2d5
1,882
py
Python
models/user.py
eoh-uiuc/volunteer-api
40ac3004287271df5cbdcbce72652bbedbb4e5ba
[ "MIT" ]
null
null
null
models/user.py
eoh-uiuc/volunteer-api
40ac3004287271df5cbdcbce72652bbedbb4e5ba
[ "MIT" ]
null
null
null
models/user.py
eoh-uiuc/volunteer-api
40ac3004287271df5cbdcbce72652bbedbb4e5ba
[ "MIT" ]
null
null
null
import jwt import datetime class User: def __init__(self, uid, pass_hash, name, phone, society, timeslots=[], **kwargs): self.uid = uid self.pass_hash = pass_hash self.name = name self.phone = phone self.society = society self.timeslots = timeslots def add_times...
30.354839
98
0.55898
201
1,882
5.114428
0.343284
0.061284
0.021401
0.029183
0.180934
0.085603
0.085603
0.085603
0.085603
0
0
0.003965
0.329968
1,882
61
99
30.852459
0.811261
0.056323
0
0.045455
0
0
0.093842
0
0
0
0
0
0
1
0.181818
false
0.068182
0.045455
0.068182
0.431818
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
6d40745ff626b44846cb618de366f32d71f4eef1
4,089
py
Python
scripts/build/contractor.py
imagovrn/environment
1177dc5ec2fa9fddd99233a09f1dd1682f582fe0
[ "MIT" ]
null
null
null
scripts/build/contractor.py
imagovrn/environment
1177dc5ec2fa9fddd99233a09f1dd1682f582fe0
[ "MIT" ]
null
null
null
scripts/build/contractor.py
imagovrn/environment
1177dc5ec2fa9fddd99233a09f1dd1682f582fe0
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding:utf8 -*- import sys import re import argparse COLOR_RE = r"\x1B\[[0-9;]+m" NINJA_PROGRESS_RE = r"\[[ 0-9]+%\]" FILENAME_RE = r'[a-zA-Z0-9_.-]+' PATH_RE = r'[a-zA-Z0-9_.-\/]+' STOP_COLOR = '\x1B[0m' CXX_MATCH = re.compile( r'(?P<color>%s)%s.*Building (?:C|CXX) object' % (COLOR_RE...
33.516393
112
0.60944
535
4,089
4.429907
0.256075
0.034177
0.037975
0.050633
0.175949
0.126582
0.057806
0.048523
0
0
0
0.005762
0.235999
4,089
121
113
33.793388
0.752881
0.009538
0
0.123711
0
0.020619
0.171443
0.047184
0
0
0
0
0
1
0.061856
false
0.072165
0.030928
0.010309
0.164948
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
6d42e7cce33ca5092d6e9ff3f5845d4db855d293
1,204
py
Python
scripts/figures/features_importance.py
fepegar/cast-coursework
8c2b2b140bcf5199d073d8cbc6c5197b5de009c9
[ "MIT" ]
1
2018-05-08T16:27:07.000Z
2018-05-08T16:27:07.000Z
scripts/figures/features_importance.py
fepegar/cast-coursework
8c2b2b140bcf5199d073d8cbc6c5197b5de009c9
[ "MIT" ]
null
null
null
scripts/figures/features_importance.py
fepegar/cast-coursework
8c2b2b140bcf5199d073d8cbc6c5197b5de009c9
[ "MIT" ]
1
2018-05-08T16:27:14.000Z
2018-05-08T16:27:14.000Z
#!/usr/bin/env python3 """ Adapted from http://scikit-learn.org/stable/auto_examples/ensemble/plot_forest_importances.html """ from pathlib import Path import numpy as np import matplotlib.pyplot as plt from sklearn.externals import joblib repo_dir = Path(__file__).parents[2] figures_dir = repo_dir / 'latex' / 'fig...
25.617021
95
0.675249
172
1,204
4.610465
0.52907
0.068096
0
0
0
0
0
0
0
0
0
0.010742
0.149502
1,204
46
96
26.173913
0.763672
0.163621
0
0
0
0
0.114458
0
0
0
0
0
0
1
0
false
0
0.322581
0
0.322581
0.064516
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
6d43ae5d64864352c921b37f2f9d792c637b9683
2,538
py
Python
src/letter_values.py
physicalattraction/kerstpuzzel
1ce27b411bebf8e88ec18529f6913932da307ad4
[ "MIT" ]
null
null
null
src/letter_values.py
physicalattraction/kerstpuzzel
1ce27b411bebf8e88ec18529f6913932da307ad4
[ "MIT" ]
null
null
null
src/letter_values.py
physicalattraction/kerstpuzzel
1ce27b411bebf8e88ec18529f6913932da307ad4
[ "MIT" ]
null
null
null
import string from utils import clean_word # {'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, 'I': 9, # 'J': 10, 'K': 11, 'L': 12, 'M': 13, 'N': 14, 'O': 15, 'P': 16, 'Q': 17, 'R': 18, # 'S': 19, 'T': 20, 'U': 21, 'V': 22, 'W': 23, 'X': 24, 'Y': 25, 'Z': 26, ' ': 0} letter_to_value = {letter: index ...
31.725
97
0.608353
428
2,538
3.310748
0.261682
0.080452
0.147495
0.191955
0.402964
0.372618
0.372618
0.372618
0.343684
0.220889
0
0.063444
0.217494
2,538
79
98
32.126582
0.65005
0.519701
0
0
0
0
0.022243
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.24
0.36
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
6d443126b20e2adaf1d8e9a3fc62ff09bffbb95c
194
py
Python
docs/conf.py
bsafdi/NPTFit
bb21439905d07e25fcf3351b321616f3ed2fcbd3
[ "MIT" ]
8
2017-01-17T20:00:53.000Z
2020-12-07T03:31:47.000Z
docs/conf.py
bsafdi/NPTFit
bb21439905d07e25fcf3351b321616f3ed2fcbd3
[ "MIT" ]
1
2017-06-22T02:59:33.000Z
2017-06-22T02:59:33.000Z
docs/conf.py
bsafdi/NPTFit
bb21439905d07e25fcf3351b321616f3ed2fcbd3
[ "MIT" ]
16
2016-11-23T05:06:36.000Z
2022-02-05T01:25:15.000Z
import sys, os from datetime import datetime extensions = ['sphinx.ext.mathjax'] source_suffix = '.rst' master_doc = 'index' project = 'NPTFit' pygments_style = 'sphinx' html_logo = 'NPT.png'
17.636364
35
0.731959
26
194
5.307692
0.884615
0
0
0
0
0
0
0
0
0
0
0
0.139175
194
10
36
19.4
0.826347
0
0
0
0
0
0.237113
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
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
0
0
1
6d44cea2924b60a18e26c585e2dc154491a9d756
17,456
py
Python
lacebuilder/lacebuilder.py
brobertson/lacebuilder
56bf8c9ae074db5f4a50562d58e5c70b563c1170
[ "BSD-3-Clause" ]
1
2021-01-26T15:22:59.000Z
2021-01-26T15:22:59.000Z
lacebuilder/lacebuilder.py
brobertson/lacebuilder
56bf8c9ae074db5f4a50562d58e5c70b563c1170
[ "BSD-3-Clause" ]
4
2021-01-30T20:23:22.000Z
2021-05-25T21:31:12.000Z
lacebuilder/lacebuilder.py
brobertson/lacebuilder
56bf8c9ae074db5f4a50562d58e5c70b563c1170
[ "BSD-3-Clause" ]
null
null
null
"""Main module.""" from . import ( accuracySvgAndTotals, assess_hocr_dir, fix_kraken_hocr, dehyphenate, generate_spellcheck_file, spellcheck_hocr, ) def generate_image_xar(image_dir, output_dir, metadata_file, verbose, clobber): import glob, os, shutil, tempfile from halo import Halo ...
38.534216
235
0.657482
2,269
17,456
4.831203
0.172323
0.025543
0.018245
0.032841
0.414797
0.321383
0.285623
0.252053
0.230524
0.199872
0
0.003
0.236137
17,456
452
236
38.619469
0.819109
0.116865
0
0.287356
1
0.017241
0.178945
0.038957
0
0
0
0.002212
0
1
0.028736
false
0.002874
0.063218
0.005747
0.114943
0.100575
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
6d462d7b50219ad3dd992124d8bf8209d5b81050
1,673
py
Python
rakuten_ws/compat.py
SalemHarrache/rakuten-ws
268a6c48c74150841b6e88b27eed867e12415f8b
[ "MIT" ]
11
2016-11-07T12:57:21.000Z
2022-03-29T05:32:41.000Z
rakuten_ws/compat.py
SalemHarrache/rakuten-ws
268a6c48c74150841b6e88b27eed867e12415f8b
[ "MIT" ]
4
2018-05-17T14:06:50.000Z
2020-09-08T13:36:10.000Z
rakuten_ws/compat.py
SalemHarrache/rakuten-ws
268a6c48c74150841b6e88b27eed867e12415f8b
[ "MIT" ]
5
2017-07-29T11:28:38.000Z
2020-04-08T07:05:04.000Z
# -*- coding: utf-8 -*- import sys # Syntax sugar. _ver = sys.version_info #: Python 2.x? is_py2 = (_ver[0] == 2) #: Python 3.x? is_py3 = (_ver[0] == 3) #: Python 3.3.x is_py33 = (is_py3 and _ver[1] == 3) #: Python 3.4.x is_py34 = (is_py3 and _ver[1] == 4) #: Python 3.5.x is_py35 = (is_py3 and _ver[1] == 5) #: P...
19.682353
61
0.609085
226
1,673
4.39823
0.287611
0.018109
0.028169
0.033199
0.167002
0.130785
0.056338
0
0
0
0
0.033884
0.276748
1,673
84
62
19.916667
0.787603
0.119546
0
0.163265
0
0
0.008276
0
0
0
0
0
0
1
0.122449
false
0.020408
0.163265
0.102041
0.489796
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
1
0
0
0
1
6d49fe1f2ab79c7c0ac2c752959548a961ba3f3a
1,760
py
Python
infobip/util/exception.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
null
null
null
infobip/util/exception.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
null
null
null
infobip/util/exception.py
ubidreams/infobip-api-python-client
3e585bf00565627bd7da46a2c8f10b860faaeb8b
[ "Apache-2.0" ]
1
2020-04-08T19:03:26.000Z
2020-04-08T19:03:26.000Z
__author__ = 'mstipanov' class ApiRequestErrorDetails(object): messageId = "" text = "" variables = "" additionalDescription = "" def __init__(self, text=""): self.text = text def __str__(self): return "ApiRequestErrorDetails: {" \ "messageId = \"" + str(self.m...
36.666667
110
0.455682
90
1,760
8.6
0.222222
0.090439
0.042636
0.062016
0
0
0
0
0
0
0
0
0.430682
1,760
48
111
36.666667
0.772455
0
0
0.166667
0
0
0.172629
0.057354
0
0
0
0
0
1
0.166667
false
0
0
0.083333
0.527778
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
6d52d96a35c0f4bcafba300db507abe78719806c
377
py
Python
StudyHub/GG/urls.py
NimVrod/StudyHub
82729151b4a604adb5a368833480d37049d3630a
[ "CC0-1.0" ]
null
null
null
StudyHub/GG/urls.py
NimVrod/StudyHub
82729151b4a604adb5a368833480d37049d3630a
[ "CC0-1.0" ]
null
null
null
StudyHub/GG/urls.py
NimVrod/StudyHub
82729151b4a604adb5a368833480d37049d3630a
[ "CC0-1.0" ]
null
null
null
from django.urls import path from . import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ path('', views.index, name='index'), path('section/<int:section_id>', views.detail, name='section'), path('userinfo/<int:user_id>', views.user_info, name='userinfo'),...
31.416667
69
0.70557
52
377
5.038462
0.403846
0.114504
0.10687
0
0
0
0
0
0
0
0
0
0.129973
377
11
70
34.272727
0.79878
0
0
0
0
0
0.214854
0.122016
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
6d53ba5f724f72765a936474f6ea95f751204569
363
py
Python
setup.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
setup.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
setup.py
roman-kutlak/argulib
97670e5c64e49de1fe3a344fdface9bc74559cfa
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='argulib', version='0.1', packages=['test', 'argulib'], url='https://github.com/roman-kutlak/argulib', license='BSD', author='Roman Kutlak', author_email='kutlak.roman@gmail.com', description='A simple library for formal argumentation', insta...
22.6875
60
0.644628
41
363
5.658537
0.780488
0.094828
0
0
0
0
0
0
0
0
0
0.006897
0.201102
363
15
61
24.2
0.793103
0
0
0
0
0
0.404959
0.060606
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
6d57132e104b7cd36f9f27427930647469536805
53,899
py
Python
rero/Modules/admin.py
voqz/rerobot
dd4617980ab4bd36fd1e29a019f37e31c8d43382
[ "Apache-2.0" ]
6
2017-05-18T16:17:30.000Z
2018-11-30T01:33:23.000Z
rero/Modules/admin.py
kokhouse/rerobot
dd4617980ab4bd36fd1e29a019f37e31c8d43382
[ "Apache-2.0" ]
1
2017-05-19T04:02:30.000Z
2017-05-20T12:52:29.000Z
rero/Modules/admin.py
kokhouse/rerobot
dd4617980ab4bd36fd1e29a019f37e31c8d43382
[ "Apache-2.0" ]
1
2018-04-19T20:14:29.000Z
2018-04-19T20:14:29.000Z
# coding=utf-8 """ Copyright 2017 Luxory (@LXYcs) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
38.145081
120
0.503089
5,545
53,899
4.75239
0.097205
0.037037
0.049636
0.077869
0.72856
0.709358
0.670537
0.645871
0.600334
0.561779
0
0.004298
0.37843
53,899
1,412
121
38.172096
0.782282
0.032412
0
0.592912
0
0
0.194741
0.00441
0
0
0
0.002833
0
1
0
false
0.011494
0.009579
0
0.103448
0.003831
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
6d578cb0041d3fe10ca7f055155726f5309b6545
691
py
Python
i3pystatus/__init__.py
MaicoTimmerman/i3pystatus
dbfc94575b287420159434df2bb00fedeebeb2ed
[ "MIT" ]
null
null
null
i3pystatus/__init__.py
MaicoTimmerman/i3pystatus
dbfc94575b287420159434df2bb00fedeebeb2ed
[ "MIT" ]
null
null
null
i3pystatus/__init__.py
MaicoTimmerman/i3pystatus
dbfc94575b287420159434df2bb00fedeebeb2ed
[ "MIT" ]
1
2019-08-15T10:35:54.000Z
2019-08-15T10:35:54.000Z
from pkgutil import extend_path from i3pystatus.core import Status from i3pystatus.core.modules import Module, IntervalModule from i3pystatus.core.settings import SettingsBase from i3pystatus.core.util import formatp import logging import os h = logging.FileHandler(".i3pystatus-" + str(os.getpid()), delay=True) log...
20.323529
70
0.743849
80
691
6.2
0.45
0.141129
0.145161
0
0
0
0
0
0
0
0
0.011885
0.147612
691
33
71
20.939394
0.830221
0
0
0
0
0
0.096961
0
0
0
0
0
0
1
0.043478
false
0
0.347826
0
0.391304
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
6d58ade9d6c8e16cccc62d62ee0c224a2b7a6379
21,697
py
Python
tug_examination/tug_reporter/scripts/rules.py
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
tug_examination/tug_reporter/scripts/rules.py
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
tug_examination/tug_reporter/scripts/rules.py
annajohny/sdp
2f66e226fc335ae357001d07fbc74d30ab469509
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import subprocess import smtplib from email.mime.text import MIMEText from tug_python_utils import YamlHelper from observation_store import ObservationWithNumber from observation_store import ObservationWithString from observation_store import ObservationContainer from diagnosis_store import Diagn...
50.224537
119
0.700926
2,263
21,697
6.298277
0.068493
0.088402
0.142005
0.095699
0.694871
0.636919
0.610328
0.583807
0.579317
0.579317
0
0
0.22911
21,697
431
120
50.341067
0.852146
0.000922
0
0.435393
0
0
0.050517
0.005075
0
0
0
0
0
0
null
null
0.014045
0.02809
null
null
0.005618
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
6d5fa97058b789ff7828da6266afd2026e919446
10,360
py
Python
scripts/bin/gamepad_teleop.py
mehrdad-shokri/spartan
854b26e3af75910ef57b874db7853abd4249543e
[ "BSD-3-Clause-Clear" ]
32
2017-09-09T12:02:02.000Z
2022-01-26T10:46:31.000Z
scripts/bin/gamepad_teleop.py
mehrdad-shokri/spartan
854b26e3af75910ef57b874db7853abd4249543e
[ "BSD-3-Clause-Clear" ]
235
2017-06-06T18:14:17.000Z
2020-10-01T15:09:21.000Z
scripts/bin/gamepad_teleop.py
mehrdad-shokri/spartan
854b26e3af75910ef57b874db7853abd4249543e
[ "BSD-3-Clause-Clear" ]
32
2017-06-09T15:27:59.000Z
2021-07-13T02:58:58.000Z
import unittest import subprocess import psutil import sys import os import numpy as np import time import socket # Using pygame for gamepad interface import pygame # ROS import rospy import actionlib import sensor_msgs.msg import geometry_msgs.msg import trajectory_msgs.msg import rosgraph import std_srvs.srv import ...
34.533333
174
0.650386
1,391
10,360
4.584472
0.222142
0.014113
0.013172
0.015054
0.197742
0.110867
0.075427
0.041242
0.03544
0.03544
0
0.043953
0.248938
10,360
299
175
34.648829
0.775607
0.084556
0
0.100457
0
0
0.058674
0.012686
0
0
0
0
0
0
null
null
0
0.118721
null
null
0.03653
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
6d61f00646d0f85ffeb89cd1e6df2f3508f4c71a
465
py
Python
src/setup.py
julitopower/CMakeCythonIntegration
d5c0518702fc8f9d67cf0f46d224c68299d6184b
[ "MIT" ]
1
2018-01-16T04:14:45.000Z
2018-01-16T04:14:45.000Z
src/setup.py
julitopower/CMakeCythonIntegration
d5c0518702fc8f9d67cf0f46d224c68299d6184b
[ "MIT" ]
null
null
null
src/setup.py
julitopower/CMakeCythonIntegration
d5c0518702fc8f9d67cf0f46d224c68299d6184b
[ "MIT" ]
null
null
null
from distutils.core import setup, Extension import os setup (name = 'stdoutwriter', version = '0.1', description = 'Python wrapper for libmtester', packages=[''], package_dir={'':''}, package_data={'':['stdoutwriter.so']} ) setup (name = 'adder', version = '0.1', ...
25.833333
53
0.548387
44
465
5.704545
0.522727
0.071713
0.071713
0.159363
0.59761
0.59761
0.59761
0.59761
0.59761
0.59761
0
0.011799
0.270968
465
17
54
27.352941
0.728614
0
0
0.5
0
0
0.223656
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
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
ed92a993a1067cc4abe99d0620a1ab1d0769b4f2
1,037
py
Python
backend/kaos_backend/util/docker.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
98
2019-10-17T14:46:53.000Z
2021-12-29T08:28:43.000Z
backend/kaos_backend/util/docker.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
78
2019-10-17T16:14:34.000Z
2020-02-10T13:31:49.000Z
backend/kaos_backend/util/docker.py
aalhour/kaos
321f596413ae0faea1aa86534eee9449cc53e287
[ "Apache-2.0" ]
11
2019-10-17T15:41:33.000Z
2021-08-29T20:07:14.000Z
import boto3 from kaos_backend.constants import DOCKER_REGISTRY, REGION, CLOUD_PROVIDER def get_login_command(): if CLOUD_PROVIDER == 'AWS': # ecr = boto3.client('ecr', region_name=REGION) # # raw_auth_data = ecr.get_authorization_token()['authorizationData'][0]['authorizationToken'] ...
35.758621
127
0.688525
129
1,037
5.286822
0.434109
0.095308
0.065982
0.079179
0.285924
0.285924
0.285924
0.285924
0.285924
0.285924
0
0.010651
0.185149
1,037
28
128
37.035714
0.79645
0.204436
0
0.294118
0
0.058824
0.22439
0
0
0
0
0
0
1
0.176471
false
0.058824
0.117647
0
0.470588
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
0
0
0
1
0
0
0
0
0
1
ed936e6900c10d340b59b2c2400785328e2cf908
2,881
py
Python
sdc/datatypes/sdc_typeref.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
540
2017-06-19T16:29:24.000Z
2019-05-21T09:30:07.000Z
sdc/datatypes/sdc_typeref.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
389
2019-10-30T18:56:46.000Z
2022-03-09T08:21:36.000Z
sdc/datatypes/sdc_typeref.py
dlee992/sdc
1ebf55c00ef38dfbd401a70b3945e352a5a38b87
[ "BSD-2-Clause" ]
36
2017-06-19T16:29:15.000Z
2019-04-26T09:22:39.000Z
# ***************************************************************************** # Copyright (c) 2021, Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions ...
45.015625
91
0.711211
358
2,881
5.600559
0.49162
0.02394
0.014963
0.025436
0.141646
0.06783
0.06783
0.06783
0.06783
0.06783
0
0.003381
0.178757
2,881
63
92
45.730159
0.844041
0.605345
0
0
0
0
0.014663
0
0
0
0
0.015873
0
1
0.15
false
0
0.3
0
0.6
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
ed95f0f95f770aaf46509f2d730c7f3623b5917a
73,489
py
Python
ooiservices/app/uframe/status_tools.py
asascience-open/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
2
2015-02-28T00:20:30.000Z
2015-04-30T12:40:31.000Z
ooiservices/app/uframe/status_tools.py
asascience-open/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
266
2015-01-02T21:29:25.000Z
2020-01-23T16:00:11.000Z
ooiservices/app/uframe/status_tools.py
oceanobservatories/ooi-ui-services
a3254b612b5831e5e34beaf93000228826c1ed5a
[ "Apache-2.0" ]
13
2015-02-04T21:13:34.000Z
2016-10-18T14:39:36.000Z
#!/usr/bin/env python """ Asset Management - Status: Supporting functions. """ __author__ = 'Edna Donoughe' from flask import current_app from ooiservices.app.uframe.stream_tools import get_stream_list from ooiservices.app.uframe.common_tools import (operational_status_values, get_array_locations) from ooiservices.ap...
38.63775
129
0.540299
7,989
73,489
4.80035
0.063087
0.032386
0.029153
0.018983
0.534368
0.446128
0.384772
0.339452
0.299113
0.273403
0
0.012356
0.350216
73,489
1,902
130
38.63775
0.790752
0.105621
0
0.49481
0
0
0.166028
0.009954
0
0
0
0
0
0
null
null
0.00173
0.014706
null
null
0.103806
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
ed9b3606bf74a0fd847a7823625cbc614c4af29c
534
py
Python
shopifier/admin/migrations/0004_auto_20161221_1923.py
vkuryachenko/Django-Shopy
6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80
[ "BSD-3-Clause" ]
1
2016-09-04T06:42:47.000Z
2016-09-04T06:42:47.000Z
shopifier/admin/migrations/0004_auto_20161221_1923.py
vkuryachenko/Django-Shopy
6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80
[ "BSD-3-Clause" ]
3
2016-04-20T05:31:47.000Z
2016-08-12T14:26:27.000Z
shopifier/admin/migrations/0004_auto_20161221_1923.py
vkuryachenko/Django-Shopy
6acd4bdcd5d5ad6a3cdf8a12c1d4fe126e777f80
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-12-21 13:23 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shopifier_admin', '0003_auto_20161221_1920'), ] ...
24.272727
88
0.655431
61
534
5.57377
0.754098
0.076471
0.123529
0.158824
0.188235
0
0
0
0
0
0
0.07767
0.228464
534
21
89
25.428571
0.747573
0.125468
0
0
1
0
0.112069
0.049569
0
0
0
0
0
1
0
false
0
0.214286
0
0.428571
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
eda092824d96be447279a731917c915df85653f9
326
py
Python
tests/testapp/urls.py
matthiask/django-keyed-urls
b195ffd24c1c259485744cc0c1b824f4dd867ac0
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/urls.py
matthiask/django-keyed-urls
b195ffd24c1c259485744cc0c1b824f4dd867ac0
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/urls.py
matthiask/django-keyed-urls
b195ffd24c1c259485744cc0c1b824f4dd867ac0
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, patterns, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), ) urlpatterns += i18n_patterns( '', url(r'^ku/', include('keyed_urls.urls'...
18.111111
51
0.696319
42
326
5.333333
0.404762
0.133929
0.125
0.160714
0
0
0
0
0
0
0
0.021739
0.153374
326
17
52
19.176471
0.789855
0
0
0.166667
0
0
0.079755
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
eda093c8edb9b08a5bbe118296aa63449ff7b51d
623
py
Python
py/Help Your Granny.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
3
2018-03-16T14:52:40.000Z
2020-12-04T10:12:07.000Z
py/Help Your Granny.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
null
null
null
py/Help Your Granny.py
aadithpm/code-a-day
18d7c1847e14d32d33d09d29f8847b6252c6e9e6
[ "Unlicense" ]
5
2017-06-30T05:35:00.000Z
2019-07-13T08:05:30.000Z
""" https://www.codewars.com/kata/help-your-granny/solutions/python/me/best_practice """ import math def tour(friends, friend_towns, home_to_town_distances): d = 0 last_d = 0 friend_towns = [[friend,town] for friend,town in friend_towns if friend in friends] for f,t in friend_towns: if t in home...
31.15
87
0.577849
93
623
3.591398
0.408602
0.131737
0.11976
0.227545
0.242515
0.125749
0
0
0
0
0
0.011737
0.316212
623
19
88
32.789474
0.7723
0.128411
0
0.125
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
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
eda292bb5e498767575a521c35aae12bdf2caf5b
4,330
py
Python
dftimewolf/config.py
berggren/dftimewolf
0ef4bfe32fcda6acc9ea6e81d5186afb5c7d3275
[ "Apache-2.0" ]
null
null
null
dftimewolf/config.py
berggren/dftimewolf
0ef4bfe32fcda6acc9ea6e81d5186afb5c7d3275
[ "Apache-2.0" ]
null
null
null
dftimewolf/config.py
berggren/dftimewolf
0ef4bfe32fcda6acc9ea6e81d5186afb5c7d3275
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Small module to load user configuration parameters.""" from __future__ import unicode_literals import json import sys class Config(object): """Class that handles DFTimewolf's configuration parameters.""" _recipe_classes = {} _collector_classes = {} _processor_classes = {} _expo...
25.621302
79
0.69261
513
4,330
5.668616
0.247563
0.062586
0.02923
0.025791
0.219739
0.177785
0.093191
0.036451
0.036451
0.036451
0
0.001189
0.223095
4,330
168
80
25.77381
0.863258
0.469284
0
0.245902
0
0
0.036464
0
0
0
0
0
0
1
0.213115
false
0
0.04918
0
0.491803
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
eda69f93c650117620ba356e13d40e35699b0935
1,356
py
Python
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st09TASK09_20210206_conditional.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st09TASK09_20210206_conditional.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st09TASK09_20210206_conditional.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
''' Вероятно, вы помните задачу про школьницу Вику, которая в свой день рождения принесла в школу N шоколадных конфет, чтобы отпраздновать вместе с одноклассниками. За день до столь знаменательного праздника Вика пошла в магазин, чтобы купить N конфет, однако обнаружила, что поштучно их купить нельзя. Конфеты, которые ...
27.12
121
0.755162
212
1,356
4.759434
0.495283
0.024777
0.044599
0.019822
0.079286
0
0
0
0
0
0
0.016029
0.171829
1,356
49
122
27.673469
0.882458
0.865044
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eda772d66d96b7074ae6215fdcce5bc3ca3f6e79
568
py
Python
test_something.py
VictorKazankov/ironpython_training
2ee13f35e9da9e172a5ac3b693ab3d81002023af
[ "Apache-2.0" ]
null
null
null
test_something.py
VictorKazankov/ironpython_training
2ee13f35e9da9e172a5ac3b693ab3d81002023af
[ "Apache-2.0" ]
null
null
null
test_something.py
VictorKazankov/ironpython_training
2ee13f35e9da9e172a5ac3b693ab3d81002023af
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import clr import os.path project_dir = os.path.dirname(os.path.abspath(__file__)) import sys sys.path.append(os.path.join(project_dir, "TestStack.White.0.13.3\\lib\\net40\\")) sys.path.append(os.path.join(project_dir, "Castle.Core.3.3.0\\lib\\net40-client\\")) clr.AddReferenceByName("TestStack...
25.818182
84
0.728873
80
568
5.0625
0.5375
0.074074
0.064198
0.074074
0.162963
0.162963
0.162963
0.162963
0
0
0
0.023529
0.102113
568
21
85
27.047619
0.770588
0.098592
0
0
0
0
0.235756
0.145383
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.416667
0.083333
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
edaf8d7d7d7b8b43e1c8a02e3a632b5e43317aed
2,772
py
Python
seqtables/xarray_mods/st_commons.py
costas821/seqtables
e4632898a912050fcd769d90e359fd6bee6d412b
[ "MIT" ]
7
2017-07-24T18:06:23.000Z
2021-06-03T18:34:54.000Z
seqtables/xarray_mods/st_commons.py
cchrysostomou/seqtables
e4632898a912050fcd769d90e359fd6bee6d412b
[ "MIT" ]
6
2018-07-10T18:28:40.000Z
2021-06-01T23:15:45.000Z
seqtables/xarray_mods/st_commons.py
costas821/seqtables
e4632898a912050fcd769d90e359fd6bee6d412b
[ "MIT" ]
2
2017-01-13T19:03:16.000Z
2018-02-28T21:02:09.000Z
import warnings import numpy as np def unique_variable(name, variables, compat='broadcast_equals'): # type: (Any, List[Variable], str) -> Variable """Return the unique variable from a list of variables or raise MergeError. Parameters ---------- name : hashable Name for this variable. ...
29.806452
111
0.583694
329
2,772
4.829787
0.404255
0.045312
0.064191
0.066079
0.045941
0
0
0
0
0
0
0.00847
0.318543
2,772
92
112
30.130435
0.832716
0.304834
0
0.166667
0
0
0.108301
0
0
0
0
0.01087
0.020833
1
0.041667
false
0
0.041667
0
0.166667
0.020833
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
edb11f53a770a33cbacb8c88de6ff90de32ac3ef
771
py
Python
meiduo_mall/meiduo_mall/utils/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/utils/views.py
ZHD165/Django_-
f89c80a22c5065b46900a20bd505614b5bcb2e6e
[ "MIT" ]
null
null
null
from django import http def my_decorator(func): '''自定义的装饰器:判断是否登录,如果登录,执行func ,未登录,返回json''' # request.user表示请求的用户对象,如果是未登录用户: user 为 匿名用户,如果是登录用户: user 为 登录用户 def wrapper(request, *args, **kwargs): if request.user.is_authenticated: # 如果用户登录, 则进入这里,正常执行 return func(request...
26.586207
70
0.587549
82
771
5.45122
0.646341
0.089485
0.076063
0
0
0
0
0
0
0
0
0.010989
0.291829
771
28
71
27.535714
0.807692
0.252918
0
0
0
0
0.028571
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.642857
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
edb619514650ade544491cde8632ff78c9aad88d
953
py
Python
code/debugging-example-pleistocene-overkill.py
Vegpathology/phyto-data-viz
8a6047de30b48932b73f287930520bb4ea7c7b9d
[ "CC-BY-4.0" ]
60
2015-08-21T12:00:46.000Z
2022-02-22T01:26:41.000Z
code/debugging-example-pleistocene-overkill.py
Vegpathology/phyto-data-viz
8a6047de30b48932b73f287930520bb4ea7c7b9d
[ "CC-BY-4.0" ]
560
2015-08-17T20:39:52.000Z
2022-02-04T15:45:04.000Z
code/debugging-example-pleistocene-overkill.py
Vegpathology/phyto-data-viz
8a6047de30b48932b73f287930520bb4ea7c7b9d
[ "CC-BY-4.0" ]
134
2015-08-17T13:19:08.000Z
2022-03-11T11:56:25.000Z
import numpy as np def mean_mass(masses): """Return the mean of a list of masses""" mean_mass = np.mean(masses) return mean_mass all_data = np.genfromtxt('MOMv3.3.txt', delimiter='\t', dtype=None, names=['continent', 'status', 'order', 'family', '...
35.296296
81
0.668416
119
953
5.12605
0.369748
0.065574
0.068852
0.052459
0.088525
0.088525
0
0
0
0
0
0.005242
0.19937
953
27
82
35.296296
0.794233
0
0
0
0
0
0.108434
0
0
0
0
0
0
0
null
null
0
0.047619
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
edb93d8508301fc889fffb6cc423f33762cc2c0c
390
py
Python
Plot/corr_matrix2heatmap.py
tbonewmy/python_gadgets
fd1b45155a5764de00e422d33fe61aa88c212638
[ "MIT" ]
null
null
null
Plot/corr_matrix2heatmap.py
tbonewmy/python_gadgets
fd1b45155a5764de00e422d33fe61aa88c212638
[ "MIT" ]
null
null
null
Plot/corr_matrix2heatmap.py
tbonewmy/python_gadgets
fd1b45155a5764de00e422d33fe61aa88c212638
[ "MIT" ]
null
null
null
# Generate a mask for the upper triangle mask = np.zeros_like(corr, dtype=np.bool) mask[np.triu_indices_from(mask)] = True # Set up the matplotlib figure f, ax = plt.subplots(figsize=(20, 18)) # Draw the heatmap with the mask and correct aspect ratio sns.heatmap(corr, mask=mask, cmap="YlGnBu", vmax=.30, cente...
39
64
0.692308
63
390
4.222222
0.761905
0.045113
0
0
0
0
0
0
0
0
0
0.02795
0.174359
390
10
65
39
0.798137
0.315385
0
0
1
0
0.047059
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
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
edbcd4a667d062a56d0baabd77f0e94275ec8b41
3,679
py
Python
maximum-equal-frequency.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
maximum-equal-frequency.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
maximum-equal-frequency.py
windard/leeeeee
0107a5f95746592ca4fe78d2b5875cf65b1910e7
[ "MIT" ]
null
null
null
# coding=utf-8 class Solution(object): def _maxEqualFreq(self, nums): """ :type nums: List[int] :rtype: int """ # Time Limit max_length = 0 frequency = {} for n in nums: frequency[n] = frequency.get(n, 0) + 1 if self.check_fre...
30.915966
111
0.485186
483
3,679
3.600414
0.136646
0.152961
0.010351
0.023002
0.543416
0.410006
0.361702
0.242668
0.242668
0.181139
0
0.06264
0.392498
3,679
118
112
31.177966
0.715436
0.060071
0
0.426829
0
0
0.002462
0
0
0
0
0
0
0
null
null
0
0
null
null
0.04878
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
edca59daccf362700b2643674ce17dee1c64b4f2
4,408
py
Python
examples/plot_cartesian_pose_coupling_dual_dmp.py
maotto/movement_primitives
b79c78a5a0667cc24a26b7b6cc64a5762d8f4dd4
[ "BSD-3-Clause" ]
17
2021-11-17T15:36:16.000Z
2022-03-26T08:49:25.000Z
examples/plot_cartesian_pose_coupling_dual_dmp.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
9
2021-12-01T10:33:04.000Z
2022-03-23T12:41:39.000Z
examples/plot_cartesian_pose_coupling_dual_dmp.py
DavidYaonanZhu/movement_primitives
ce355837f06cb5fada24be7259cb0305e8ea5d91
[ "BSD-3-Clause" ]
8
2021-11-25T03:53:40.000Z
2022-03-31T03:19:25.000Z
""" =================================== Pose Coupling of Dual Cartesian DMP =================================== A dual Cartesian DMP is learned from an artificially generated demonstration and replayed with and without a coupling of the pose of the two end effectors. The red line indicates the DMP without coupling te...
39.357143
85
0.698276
730
4,408
4.021918
0.268493
0.021117
0.019414
0.020436
0.448229
0.44346
0.36376
0.328338
0.30654
0.30654
0
0.057748
0.143603
4,408
111
86
39.711712
0.72
0.108893
0
0.094118
1
0
0.064829
0.035988
0
0
0
0
0
1
0
false
0
0.105882
0
0.105882
0.011765
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
edcbdfa99986cfdb61b70398c82adef9ee96accf
4,815
py
Python
chapters/chapter_4/utils/pizza_inventory.py
ChrisDancel/head_first_design_patterns_python
a85526c94c33cf04aaba4bf408b9ab49c492811b
[ "MIT" ]
null
null
null
chapters/chapter_4/utils/pizza_inventory.py
ChrisDancel/head_first_design_patterns_python
a85526c94c33cf04aaba4bf408b9ab49c492811b
[ "MIT" ]
null
null
null
chapters/chapter_4/utils/pizza_inventory.py
ChrisDancel/head_first_design_patterns_python
a85526c94c33cf04aaba4bf408b9ab49c492811b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod # NOTE - not making Pizza class as an ABC as we want subclasses to inherent current print messages that are linked # to each method class Pizza: def __init__(self): self.name = None self.dough = None self.sauce = None self.veggies = [] ...
25.887097
114
0.663759
439
4,815
6.979499
0.252847
0.086162
0.06658
0.088773
0.36064
0.295692
0.295692
0.295692
0.258812
0.042428
0
0.001368
0.241122
4,815
185
115
26.027027
0.837165
0.054413
0
0.449153
0
0
0.130884
0.030136
0
0
0
0
0
1
0.20339
false
0
0.008475
0.008475
0.364407
0.033898
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
edcf44dd69f51524c48719bdd6173cc53ea30997
1,238
bzl
Python
build/deps.bzl
filmil/gotopt2
6eeeeb74c6dcd1a94a0daccccbda09b3ba7b2e51
[ "Apache-2.0" ]
1
2019-03-13T02:51:05.000Z
2019-03-13T02:51:05.000Z
build/deps.bzl
filmil/gotopt2
6eeeeb74c6dcd1a94a0daccccbda09b3ba7b2e51
[ "Apache-2.0" ]
12
2019-03-13T02:51:42.000Z
2019-11-19T05:54:30.000Z
build/deps.bzl
filmil/gotopt2
6eeeeb74c6dcd1a94a0daccccbda09b3ba7b2e51
[ "Apache-2.0" ]
null
null
null
# Declaring the gotopt2 dependencies load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_bats//:deps.bzl", "bazel_bats_dependencies") # Include this into any dependencies that want to compile gotopt2 from source. ...
29.47619
79
0.651858
143
1,238
5.41958
0.454545
0.077419
0.082581
0.049032
0.123871
0
0
0
0
0
0
0.072025
0.226171
1,238
41
80
30.195122
0.736952
0.159128
0
0.129032
0
0
0.44058
0.236715
0
0
0
0
0
1
0.032258
true
0
0.129032
0
0.16129
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
edd12de4529aa3e2794304493295cff48694c140
1,113
py
Python
registration/migrations/0010_vat_integration.py
OpenGeoLabs/gismentors-registration
caea938691fa8ec4331d1aa81bb820ac42734eea
[ "MIT" ]
1
2018-05-19T22:47:36.000Z
2018-05-19T22:47:36.000Z
registration/migrations/0010_vat_integration.py
OpenGeoLabs/gismentors-registration
caea938691fa8ec4331d1aa81bb820ac42734eea
[ "MIT" ]
33
2018-09-05T12:54:04.000Z
2020-10-12T07:31:50.000Z
registration/migrations/0010_vat_integration.py
OpenGeoLabs/gismentors-registration
caea938691fa8ec4331d1aa81bb820ac42734eea
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-07-29 16:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registration', '0009_automatic_earlydate'), ] operations = [ migrations.AlterField( model_name='courseevent', name='...
38.37931
215
0.569632
127
1,113
4.88189
0.456693
0.019355
0.120968
0.140323
0.508065
0.485484
0.427419
0.190323
0.190323
0.190323
0
0.048628
0.279425
1,113
28
216
39.75
0.724439
0.040431
0
0.409091
1
0.090909
0.390244
0.12758
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
edd9e0e640a356a81c0df17ea3e8c734b36a0bd1
974
py
Python
the_real_script/constants.py
rnogueras/the_real_script
eb6c1b36b9954ac443d1a7243b63a69e606752dc
[ "Apache-2.0" ]
null
null
null
the_real_script/constants.py
rnogueras/the_real_script
eb6c1b36b9954ac443d1a7243b63a69e606752dc
[ "Apache-2.0" ]
null
null
null
the_real_script/constants.py
rnogueras/the_real_script
eb6c1b36b9954ac443d1a7243b63a69e606752dc
[ "Apache-2.0" ]
null
null
null
import numpy as np C_BASE_SCALES = { "cromatic": np.arange(12), "diatonic": (0, 2, 4, 5, 7, 9, 11), "melodic minor": (0, 2, 3, 5, 7, 9, 11), "harmonic minor": (0, 2, 3, 5, 7, 8, 11), } NOTES = ("C", "Db", "D", "Eb", "E", "F", "F#", "G", "Ab", "A", "Bb", "B") DEGREES = ("I", "II", "III", "IV", "V", "VI"...
24.974359
86
0.433265
157
974
2.656051
0.458599
0.033573
0.021583
0.028777
0.105516
0.047962
0
0
0
0
0
0.132956
0.274127
974
38
87
25.631579
0.45686
0.042094
0
0
0
0
0.18986
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eddb3ef63e18f8ffa99db3d91510d5e005e59218
7,771
py
Python
Distributed_ML/Text_Classification/preprocessing.py
jrclimer/Projects
6023f8309685d1a273d7e89993863c89ad85dfb5
[ "MIT" ]
27
2016-11-18T11:15:58.000Z
2021-02-26T05:46:37.000Z
Distributed_ML/Text_Classification/preprocessing.py
imsrgadich/Projects_shang
a9d4395a98a79fb0a700a99168cd358ab7494fdf
[ "MIT" ]
1
2022-01-21T16:09:40.000Z
2022-01-21T16:30:10.000Z
Distributed_ML/Text_Classification/preprocessing.py
imsrgadich/Projects_shang
a9d4395a98a79fb0a700a99168cd358ab7494fdf
[ "MIT" ]
22
2016-11-27T06:02:26.000Z
2021-09-22T13:40:55.000Z
from pyspark.sql import SparkSession from pyspark.sql.functions import udf from pyspark.sql.types import * from pyspark.rdd import RDD from pyspark.mllib.linalg import SparseVector, VectorUDT, Vectors from nltk.corpus import stopwords from nltk.stem.snowball import SnowballStemmer import re import numpy as np #data pr...
36.829384
200
0.575087
986
7,771
4.456389
0.245436
0.050979
0.032772
0.028675
0.302685
0.207556
0.207556
0.148384
0.116978
0.116978
0
0.006405
0.316948
7,771
211
201
36.829384
0.821402
0.052117
0
0.238095
0
0
0.067551
0.026883
0
0
0
0
0
0
null
null
0.015873
0.071429
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
eddb860a0ef28e8510e4ec24e93abe76ab7cc045
324
py
Python
2_condition.py
diewland/python-101
52e3d60784791254b05b83a70e1de04d0470ede3
[ "MIT" ]
null
null
null
2_condition.py
diewland/python-101
52e3d60784791254b05b83a70e1de04d0470ede3
[ "MIT" ]
null
null
null
2_condition.py
diewland/python-101
52e3d60784791254b05b83a70e1de04d0470ede3
[ "MIT" ]
null
null
null
# calculate grade score = 75 grade = None if score >= 80: grade = 'A' elif score >= 70: grade = 'B' elif score >= 60: grade = 'C' elif score >= 50: grade = 'D' else: grade = 'F' print "Score %d => Grade %s" % ( score, grade ) # find max a = 10 b = 15 maxx = a if (a > b) else b print "max is %s" % m...
15.428571
47
0.540123
54
324
3.240741
0.462963
0.154286
0
0
0
0
0
0
0
0
0
0.061674
0.299383
324
20
48
16.2
0.709251
0.074074
0
0
0
0
0.114478
0
0
0
0
0
0
0
null
null
0
0
null
null
0.117647
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
eddd3decd6182a92299db91e4ea703b99df5fc8d
2,658
py
Python
apps/deployment/views/project.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
apps/deployment/views/project.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
apps/deployment/views/project.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
# @Time : 2019/2/27 14:39 # @Author : xufqing from rest_framework.viewsets import ModelViewSet from rest_framework.views import APIView from ..models import Project from ..serializers.project_serializer import ProjectSerializer, ProjectListSerializer from common.custom import CommonPagination, RbacPermission from r...
35.44
102
0.663657
273
2,658
6.249084
0.388278
0.028136
0.039859
0.023447
0.026964
0
0
0
0
0
0
0.005371
0.229496
2,658
74
103
35.918919
0.827637
0.034236
0
0.105263
0
0
0.071712
0
0
0
0
0
0
1
0.052632
false
0
0.210526
0
0.614035
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
edea784cd53c1180e0cf017e79257b1230a6ff50
525
py
Python
tests/getnet/services/token/test_card_number.py
7bruno/getnet-py
590db2f19e0c7f98ffdfbb27f4c6ffd7fb1f47ed
[ "MIT" ]
2
2021-04-09T20:17:41.000Z
2021-04-09T20:18:06.000Z
tests/getnet/services/token/test_card_number.py
7bruno/getnet-py
590db2f19e0c7f98ffdfbb27f4c6ffd7fb1f47ed
[ "MIT" ]
5
2019-11-24T16:24:11.000Z
2021-02-22T16:10:05.000Z
tests/getnet/services/token/test_card_number.py
7bruno/getnet-py
590db2f19e0c7f98ffdfbb27f4c6ffd7fb1f47ed
[ "MIT" ]
3
2020-07-25T23:00:59.000Z
2022-02-15T02:37:27.000Z
import unittest import pytest from getnet.services.token import CardNumber def test_invalid_card_number(): with pytest.raises(AttributeError): CardNumber("123", "123") def test_invalid_customer_id(): with pytest.raises(AttributeError): CardNumber("5155901222280001", "a" * 101) def test_g...
21.875
64
0.699048
56
525
6.303571
0.5
0.05949
0.07932
0.169972
0.226629
0
0
0
0
0
0
0.170561
0.184762
525
23
65
22.826087
0.654206
0
0
0.133333
0
0
0.211429
0
0
0
0
0
0.066667
1
0.2
false
0
0.2
0
0.4
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
eded7fd9dc6695ebb1c1b90bcec63c2258539efb
813
py
Python
stim/model/prey.py
iyor/stim
a84e9dced36de348b8d4b251c42c5a819f143c3b
[ "MIT" ]
null
null
null
stim/model/prey.py
iyor/stim
a84e9dced36de348b8d4b251c42c5a819f143c3b
[ "MIT" ]
null
null
null
stim/model/prey.py
iyor/stim
a84e9dced36de348b8d4b251c42c5a819f143c3b
[ "MIT" ]
null
null
null
from model.organism import Organism from pyglet.gl import * from util.draw import circle from util.vec import Vec import random class Prey(Organism): top_speed = 100 def __init__(self, x, y): super(Prey, self).__init__(x, y) self.lifespan = 20 self.reproduction_chance = 0.005 def...
24.636364
70
0.587946
112
813
4.151786
0.428571
0.068817
0.077419
0.064516
0
0
0
0
0
0
0
0.029617
0.293973
813
32
71
25.40625
0.780488
0
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.294118
0
0.588235
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
edf21882a29c3a1240807a7cfe6517e41e27b4de
155
py
Python
Python 3 exercises/44 python answers/Vetores 1) Localiza.py
Matheus-R-Sena/Python
c047288ad126e8d14c3186a912f1a1aa5a8a55d6
[ "MIT" ]
2
2022-03-18T00:04:42.000Z
2022-03-25T11:45:37.000Z
Python 3 exercises/44 python answers/Vetores 1) Localiza.py
Matheus-R-Sena/Python
c047288ad126e8d14c3186a912f1a1aa5a8a55d6
[ "MIT" ]
null
null
null
Python 3 exercises/44 python answers/Vetores 1) Localiza.py
Matheus-R-Sena/Python
c047288ad126e8d14c3186a912f1a1aa5a8a55d6
[ "MIT" ]
null
null
null
A = [] B = [] for i in range (10): A.append(int(input())) U = int(input()) for j in range (len(A)): if A[j] == U: B.append(j) print(B)
11.071429
26
0.470968
29
155
2.517241
0.517241
0.191781
0
0
0
0
0
0
0
0
0
0.018349
0.296774
155
13
27
11.923077
0.651376
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
1
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
0
0
1
edf32185afe8f7c7827291f47254c13d678f7e25
1,343
py
Python
mayan/apps/django_gpg/tests/mixins.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
null
null
null
mayan/apps/django_gpg/tests/mixins.py
darrenflexxu/Mayan-EDMS
6707365bfacd137e625ddc1b990168012246fa07
[ "Apache-2.0" ]
5
2021-03-19T22:56:45.000Z
2022-03-12T00:08:43.000Z
mayan/apps/django_gpg/tests/mixins.py
Sumit-Kumar-Jha/mayan
5b7ddeccf080b9e41cc1074c70e27dfe447be19f
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals from ..models import Key from .literals import TEST_KEY_PRIVATE_DATA class KeyAPIViewTestMixin(object): def _request_test_key_create_view(self): return self.post( viewname='rest_api:key-list', data={ 'key_data': TEST_KEY_PRIVATE_DATA ...
25.826923
56
0.602383
154
1,343
4.837662
0.233766
0.131544
0.169128
0.114094
0.581208
0.481879
0.300671
0.222819
0.222819
0.222819
0
0
0.311243
1,343
51
57
26.333333
0.805405
0
0
0.275
0
0
0.090097
0.032762
0
0
0
0
0
1
0.15
false
0
0.075
0.125
0.425
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
1
0
0
0
1
edfb2e676408f917363112a7795792444352a965
2,281
py
Python
newsletter/migrations/0001_initial.py
hbuyse/dj-newsletter
2c032466e648b3c844bea6aae379a5346d9ce677
[ "MIT" ]
null
null
null
newsletter/migrations/0001_initial.py
hbuyse/dj-newsletter
2c032466e648b3c844bea6aae379a5346d9ce677
[ "MIT" ]
null
null
null
newsletter/migrations/0001_initial.py
hbuyse/dj-newsletter
2c032466e648b3c844bea6aae379a5346d9ce677
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-24 13:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import markdownx.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USE...
41.472727
120
0.594476
228
2,281
5.785088
0.328947
0.108415
0.056861
0.066717
0.519333
0.519333
0.519333
0.519333
0.519333
0.519333
0
0.010876
0.274441
2,281
54
121
42.240741
0.786103
0.019728
0
0.319149
1
0
0.156222
0
0
0
0
0
0
1
0
false
0
0.085106
0
0.170213
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
6100eb6b5d84e3885f1436a1f2e952524c45c40d
1,298
py
Python
sherpa-seq-testing/generate_readme.py
LarsHH/reproducible-hyperparameter-optimization-jcgs-2019
5feffcfc9da4533f11acf09f1f850c3e7dd7b21a
[ "MIT" ]
1
2021-08-12T12:54:45.000Z
2021-08-12T12:54:45.000Z
sherpa-seq-testing/generate_readme.py
LarsHH/reproducible-hyperparameter-optimization-jcgs-2019
5feffcfc9da4533f11acf09f1f850c3e7dd7b21a
[ "MIT" ]
null
null
null
sherpa-seq-testing/generate_readme.py
LarsHH/reproducible-hyperparameter-optimization-jcgs-2019
5feffcfc9da4533f11acf09f1f850c3e7dd7b21a
[ "MIT" ]
null
null
null
import os welcome_text = """SHERPA: A Python Hyperparameter Optimization Library ==================================================== .. figure:: https://docs.google.com/drawings/d/e/2PACX-1vRaTP5d5WqT4KY4V57niI4wFDkz0098zHTRzZ9n7SzzFtdN5akBd75HchBnhYI-GPv_AYH1zYa0O2_0/pub?w=522&h=150 :figwidth: 100% :align: ...
37.085714
151
0.736518
157
1,298
6.063694
0.675159
0.081933
0
0
0
0
0
0
0
0
0
0.031532
0.144838
1,298
34
152
38.176471
0.826126
0
0
0
0
0.041667
0.778891
0.088598
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6104d64d93f3717e2f8f4792669ac57536e52cd8
303
py
Python
videos/urls.py
acuestap/smarttools_test
caa8760be4dfd502d31f5e396392d1d455ebdca8
[ "MIT" ]
null
null
null
videos/urls.py
acuestap/smarttools_test
caa8760be4dfd502d31f5e396392d1d455ebdca8
[ "MIT" ]
null
null
null
videos/urls.py
acuestap/smarttools_test
caa8760be4dfd502d31f5e396392d1d455ebdca8
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib.auth.decorators import login_required from . import views ''' urlpatterns = [ url(r'^$', views.manage_video), ] ''' urlpatterns = [ url(r'^(\w+)/(\d+)$', views.get_video_by_competition), url(r'^add/', views.add_video_by_competition), ]
20.2
58
0.683168
41
303
4.853659
0.536585
0.060302
0.150754
0
0
0
0
0
0
0
0
0
0.138614
303
14
59
21.642857
0.762452
0
0
0
0
0
0.07438
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
61091661043e1479d27b6e9c9893a3c36965cdf2
3,703
py
Python
accounts/helpers.py
eSketchers/django-accounts
3fd64099121f49c9dcade5bf90141ca128323197
[ "MIT" ]
3
2017-04-13T10:39:25.000Z
2017-04-22T11:36:48.000Z
accounts/helpers.py
eSketchers/django-accounts
3fd64099121f49c9dcade5bf90141ca128323197
[ "MIT" ]
null
null
null
accounts/helpers.py
eSketchers/django-accounts
3fd64099121f49c9dcade5bf90141ca128323197
[ "MIT" ]
null
null
null
from django.utils import timezone from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.response import Response from account.models import EmailConfirmation from django.contrib.sites.shortcuts import get_current_site from django.urls import reverse from django.utils....
32.2
121
0.676208
446
3,703
5.372197
0.284753
0.020033
0.021285
0.03005
0.171953
0.087646
0.038397
0
0
0
0
0.006954
0.223332
3,703
114
122
32.482456
0.826147
0
0
0.175824
0
0
0.062399
0.017018
0
0
0
0
0
1
0.087912
false
0.076923
0.142857
0.010989
0.307692
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
610cbf57e8446000de39f379e1b3b976f6e5933f
1,810
py
Python
algolearn/api/migrations/0010_quiz_theory.py
gda2048/algo_deep
8076028b14276d653896b045f60d7c41a404a030
[ "MIT" ]
8
2019-06-08T14:50:21.000Z
2019-12-19T19:04:01.000Z
algolearn/api/migrations/0010_quiz_theory.py
gda2048/algo_deep
8076028b14276d653896b045f60d7c41a404a030
[ "MIT" ]
7
2020-02-12T00:28:15.000Z
2022-02-10T09:29:22.000Z
algolearn/api/migrations/0010_quiz_theory.py
gda2048/algo_deep
8076028b14276d653896b045f60d7c41a404a030
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-10 13:39 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0009_auto_20190610_1339'), ] operations = [ migrations.C...
38.510638
108
0.558564
172
1,810
5.75
0.412791
0.088979
0.060667
0.081901
0.624874
0.592518
0.509606
0.509606
0.509606
0.509606
0
0.027559
0.298343
1,810
46
109
39.347826
0.751181
0.024862
0
0.45
1
0
0.155417
0.013046
0
0
0
0
0
1
0
false
0
0.075
0
0.15
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
610ee521ec8c66337bb5d6ffcbf837f47b0924b5
332
py
Python
Python/loops/multiplication_table.py
mdoprog/Warehouse
4afb88a32fc20b613d008b86371d505ddeb07e5a
[ "MIT" ]
null
null
null
Python/loops/multiplication_table.py
mdoprog/Warehouse
4afb88a32fc20b613d008b86371d505ddeb07e5a
[ "MIT" ]
null
null
null
Python/loops/multiplication_table.py
mdoprog/Warehouse
4afb88a32fc20b613d008b86371d505ddeb07e5a
[ "MIT" ]
null
null
null
# coding=utf8 # Entrada num = int (input("Informe um número entre 1 e 10 para ver a tabuada: ")) # Processamento while num < 1 or num > 10: num = int (input("Informe um número entre 1 e 10 para ver a tabuada: ")) print("Tabuada de {0}".format(num)) for i in range (0, 11): print("{0} X {1} = {2}".format(num, i,...
33.2
76
0.623494
60
332
3.45
0.516667
0.057971
0.10628
0.173913
0.483092
0.483092
0.483092
0.483092
0.483092
0.483092
0
0.064886
0.210843
332
10
77
33.2
0.725191
0.099398
0
0.333333
0
0
0.442568
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
6114d69e15208ff1dbed5b77523d277a0eac0ad5
705
py
Python
examples/occluded_reid/train.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
null
null
null
examples/occluded_reid/train.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
null
null
null
examples/occluded_reid/train.py
nataliamiccini/light-reid
1bd823849e4a40c9a17497bb7d7ec6097635f4d6
[ "MIT" ]
1
2021-06-24T13:10:40.000Z
2021-06-24T13:10:40.000Z
""" train a reid model given cfg path """ import argparse, ast import sys sys.path.append('../..') sys.path.append('.') import lightreid import yaml from cores import * # cfgs parser = argparse.ArgumentParser() parser.add_argument('--config_file', type=str, default='./configs/base_config.yaml', help='') args = parse...
19.583333
93
0.730496
97
705
5.185567
0.546392
0.027833
0.05169
0.091451
0.115308
0
0
0
0
0
0
0.001616
0.121986
705
35
94
20.142857
0.810985
0.321986
0
0
0
0
0.098468
0.056893
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
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
611b323ad8044e44399a81de06ee51305ba85de6
961
py
Python
hamlpy/test/test_templatize.py
ReidLitkauo/django-hamlpy
8df9a5d86c3f29689fe7e16968f62c4757186cb6
[ "MIT" ]
1
2020-02-26T22:31:08.000Z
2020-02-26T22:31:08.000Z
hamlpy/test/test_templatize.py
ReidLitkauo/django-hamlpy
8df9a5d86c3f29689fe7e16968f62c4757186cb6
[ "MIT" ]
null
null
null
hamlpy/test/test_templatize.py
ReidLitkauo/django-hamlpy
8df9a5d86c3f29689fe7e16968f62c4757186cb6
[ "MIT" ]
null
null
null
from django.test import SimpleTestCase class TemplatizeTest(SimpleTestCase): def test_templatize(self): from django.utils.translation import templatize # test regular Django tags output = templatize('{% trans "Foo" %}{% blocktrans %}\nBar\n{% endblocktrans %}', origin='test.html') ...
40.041667
110
0.632674
119
961
5.10084
0.277311
0.098847
0.118616
0.144975
0.500824
0.500824
0.500824
0.500824
0.500824
0.500824
0
0
0.206035
961
23
111
41.782609
0.795544
0.120708
0
0.333333
0
0
0.35
0.028571
0
0
0
0
0.5
1
0.083333
false
0
0.166667
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
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
6121bc882e02324e024f8df28df5690aa8d708d3
3,459
py
Python
TemplateScripts/Leadership.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
1
2019-05-02T20:57:10.000Z
2019-05-02T20:57:10.000Z
TemplateScripts/Leadership.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
null
null
null
TemplateScripts/Leadership.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
null
null
null
import xlsxwriter, re from openpyxl import load_workbook from openpyxl.styles import Border, Side, PatternFill, Font, GradientFill, Alignment class Staff: name = "" gender = "" ethnicity = "" picture = "" #open xlsx file wb = load_workbook(filename='Consolidated Leadership Info.xlsx') ws = wb['Sheet1'...
38.433333
115
0.684591
441
3,459
5.362812
0.285714
0.165751
0.236786
0.065962
0.138689
0.030444
0
0
0
0
0
0.02413
0.161318
3,459
90
116
38.433333
0.791107
0.052038
0
0.026667
0
0
0.214196
0
0
0
0
0
0
1
0
false
0
0.04
0
0.106667
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
6123efc8219941de6abd87b3057c2a0bec4189ef
588
py
Python
vvcontact/admin.py
synw/django-vvcontact
34863561936c564aae75e34353b5e585c165f50d
[ "MIT" ]
1
2017-10-13T21:10:35.000Z
2017-10-13T21:10:35.000Z
vvcontact/admin.py
synw/django-vvcontact
34863561936c564aae75e34353b5e585c165f50d
[ "MIT" ]
null
null
null
vvcontact/admin.py
synw/django-vvcontact
34863561936c564aae75e34353b5e585c165f50d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib import admin from vvcontact.models import Email from vvcontact.forms import EmailAdminForm @admin.register(Email) class EmailAdmin(admin.ModelAdmin): form = EmailAdminForm search_fields = ('message', 'subject') date_hierarchy = 'created' list_display = ('em...
30.947368
68
0.680272
64
588
6.109375
0.625
0.143223
0
0
0
0
0
0
0
0
0
0.002114
0.195578
588
19
69
30.947368
0.824524
0.035714
0
0
0
0
0.128975
0
0
0
0
0
0
1
0.071429
false
0
0.214286
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
61244f1dd627bb15f1f9fa4382034c4cfe54027b
8,843
py
Python
apps/user/tests/test_views.py
yangnibal/backend
08fe8dc91f5a2790dc6cc5025fed963dded4e783
[ "MIT" ]
null
null
null
apps/user/tests/test_views.py
yangnibal/backend
08fe8dc91f5a2790dc6cc5025fed963dded4e783
[ "MIT" ]
null
null
null
apps/user/tests/test_views.py
yangnibal/backend
08fe8dc91f5a2790dc6cc5025fed963dded4e783
[ "MIT" ]
null
null
null
from rest_framework.test import APITestCase from apps.user.models import UserRole, User class TestUserRegistration(APITestCase): ENDPOINT = '/api/users/register' def test_user_registration_should_success(self): """ this function tests the user registration with following processes: 1....
34.952569
156
0.575483
935
8,843
5.305882
0.162567
0.05644
0.061681
0.09353
0.674259
0.635356
0.602096
0.559968
0.535376
0.520863
0
0.049889
0.335859
8,843
252
157
35.09127
0.794824
0.258623
0
0.487179
0
0
0.120954
0
0
0
0
0
0.160256
1
0.083333
false
0.096154
0.012821
0
0.128205
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
6124e097980f0b97a3286129103a740d37ee4025
4,115
py
Python
users/forms.py
alstn2468/Nomad_Coder_Django_Challenge
93be1c89d153bf4e1256a46e12ff02860251748e
[ "MIT" ]
null
null
null
users/forms.py
alstn2468/Nomad_Coder_Django_Challenge
93be1c89d153bf4e1256a46e12ff02860251748e
[ "MIT" ]
null
null
null
users/forms.py
alstn2468/Nomad_Coder_Django_Challenge
93be1c89d153bf4e1256a46e12ff02860251748e
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import password_validation from django.contrib.auth.forms import UserChangeForm as BaseUserChangeForm from users.models import User class LoginForm(forms.Form): email = forms.EmailField( widget=forms.EmailInput( attrs={"placeholder": "...
30.257353
91
0.532928
361
4,115
5.939058
0.285319
0.041045
0.05597
0.058769
0.33209
0.272388
0.25653
0.19403
0.135261
0.135261
0
0
0.360146
4,115
135
92
30.481481
0.81428
0
0
0.350877
0
0
0.170352
0
0
0
0
0
0
1
0.04386
false
0.254386
0.035088
0
0.192982
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
6127dc34133787e492d603ea2f12fec15af60219
1,611
py
Python
file_path/proc_suffixes_file.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
file_path/proc_suffixes_file.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
file_path/proc_suffixes_file.py
daineseh/python_code
1c2c45a62329fbc87ed9a486b3382b112948ba73
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re import sys SUFFIX_PAT = re.compile(r'_\d\d?$') SUFFIXED_LIST = [] def is_suffixed_file(dir_path, file_name): base_name, ext_name = os.path.splitext(file_name) pos = base_name.rfind('_') if pos == -1: return False match_obj = SUFFIX_PAT.match(base_n...
21.48
73
0.625698
237
1,611
3.991561
0.308017
0.051797
0.05814
0.079281
0.221987
0.17759
0.133192
0
0
0
0
0.004255
0.270639
1,611
74
74
21.77027
0.800851
0.012415
0
0.196078
0
0
0.08239
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.117647
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
b614dc6c1942c360adf5ad3e0aa48307def2489b
1,054
py
Python
scripts/gtfGet.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2016-01-12T15:12:18.000Z
2022-02-10T21:57:39.000Z
scripts/gtfGet.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
5
2015-01-20T04:22:50.000Z
2018-10-02T19:39:12.000Z
scripts/gtfGet.py
jeffhsu3/genda
5adbb5b5620c592849fa4a61126b934e1857cd77
[ "BSD-3-Clause" ]
1
2022-03-04T06:49:39.000Z
2022-03-04T06:49:39.000Z
""" From a list of identifiers extracts the GTF file with only those entries Usage: python gtfGet [options] <ID.list> <GTF_FILE> """ import optparse, sys, csv from pySeq.parsing.gtfTools import parseID def main(): p = optparse.OptionParser(__doc__) p.add_option("-D", "--debug", action="store_true", dest="...
27.025641
78
0.607211
149
1,054
4.154362
0.52349
0.025848
0.06462
0.035541
0
0
0
0
0
0
0
0.008434
0.212524
1,054
38
79
27.736842
0.737349
0
0
0
0
0
0.191721
0
0
0
0
0
0
0
null
null
0.037037
0.074074
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
b61666ca2dd2dac719116d6b161ba854f0c722d6
776
py
Python
Scripts/likes.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
null
null
null
Scripts/likes.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
2
2021-06-01T21:52:33.000Z
2021-12-13T19:44:00.000Z
Scripts/likes.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
1
2015-10-14T12:16:07.000Z
2015-10-14T12:16:07.000Z
def likes(names): if len(names) == 0: return "no one likes this" elif len(names) == 1: return "%s likes this" % names[0] elif len(names) == 2: return "%s and %s like this" % (names[0], names[1]) elif len(names) == 3: return "%s, %s and %s like this" % (names[0], names[1]...
43.111111
85
0.569588
118
776
3.745763
0.245763
0.108597
0.090498
0.095023
0.158371
0.158371
0.113122
0.113122
0.113122
0
0
0.023179
0.221649
776
17
86
45.647059
0.708609
0.380155
0
0
0
0
0.242105
0
0
0
0
0
0
0
null
null
0
0
null
null
0.083333
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
b61882189b960482e5e972889d8a36e389cd6bd6
566
py
Python
guessing_number_improved.py
kwadjooe/Learning_Python
35ec05fb2207081f7d9d1a207322e4763e553e95
[ "MIT" ]
null
null
null
guessing_number_improved.py
kwadjooe/Learning_Python
35ec05fb2207081f7d9d1a207322e4763e553e95
[ "MIT" ]
null
null
null
guessing_number_improved.py
kwadjooe/Learning_Python
35ec05fb2207081f7d9d1a207322e4763e553e95
[ "MIT" ]
null
null
null
name = input("Please enter your name: ") print("{0}, Please guess a number between 0 and 10: ".format(name)) guess = int(input()) if guess != 5: if guess < 5 : print("Please guess higher") else: print("Please guess lower") guess = int(input()) if guess == 5: print("Well done, {0...
28.3
72
0.607774
83
566
4.144578
0.493976
0.116279
0.069767
0.087209
0.122093
0.122093
0
0
0
0
0
0.023364
0.243816
566
19
73
29.789474
0.780374
0
0
0.3125
0
0
0.457597
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4375
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
b6250694dae3300e64d947d70e340f237b09d637
12,098
py
Python
openstack/regression/lib/cinder.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
openstack/regression/lib/cinder.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
openstack/regression/lib/cinder.py
rpratap-bot/ceph-qe-scripts
8a7090d6707a8e7b927eabfc9c9212f343a35bc4
[ "MIT" ]
null
null
null
import os import cinderclient.exceptions as c_exceptions from cinderclient.v2 import client as c_client import log class CinderReturnStack(object): def __init__(self): pass class CinderAuth(object): def __init__(self): self.os_username = os.environ['OS_USERNAME'] self.os_api_key = o...
27.371041
115
0.584146
1,271
12,098
5.391031
0.088906
0.04174
0.025686
0.059107
0.323847
0.262843
0.207093
0.207093
0.193082
0.145797
0
0.000248
0.334187
12,098
441
116
27.433107
0.850403
0.010415
0
0.261682
0
0
0.060749
0
0
0
0
0
0
0
null
null
0.009346
0.018692
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
b62c6b2122359d9d0de4de14230ad37ec489c41a
780
py
Python
day1/aoc1.py
Jamiewu2/advent-of-code-2021
fb76fac598476cc50d22abc49e368bbf7f9a65eb
[ "MIT" ]
null
null
null
day1/aoc1.py
Jamiewu2/advent-of-code-2021
fb76fac598476cc50d22abc49e368bbf7f9a65eb
[ "MIT" ]
null
null
null
day1/aoc1.py
Jamiewu2/advent-of-code-2021
fb76fac598476cc50d22abc49e368bbf7f9a65eb
[ "MIT" ]
null
null
null
def do_the_thing(): with open("input.txt", "r") as f: nums = list(map(int, f.readlines())) if len(nums) < 3: return 0 count = 0 for i in range(len(nums)-3): if nums[i] < nums[i+3]: count += 1 return count # # windo...
19.5
44
0.380769
86
780
3.27907
0.44186
0.106383
0.070922
0.070922
0
0
0
0
0
0
0
0.031008
0.503846
780
40
45
19.5
0.697674
0.282051
0
0
0
0
0.033272
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
b62cf88053bc05986aea65e8dcbaa743df563b3d
850
py
Python
pybots/src/geometry/helpers.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/geometry/helpers.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/geometry/helpers.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
1
2021-09-24T17:08:30.000Z
2021-09-24T17:08:30.000Z
""" A collection of geometrical helper things that don't fit in any other module """ import itertools import numpy def unit_vector(index): """ Generate a unit vector Arguments: index: the index of the unit vector to generate Returns: n_hat: numpy (3,) array that is zeros except for a one ...
24.285714
80
0.602353
127
850
3.976378
0.448819
0.031683
0.035644
0.035644
0.049505
0.049505
0
0
0
0
0
0.020101
0.297647
850
34
81
25
0.825796
0.484706
0
0
1
0
0.077957
0
0
0
0
0
0.076923
1
0.153846
false
0
0.153846
0
0.461538
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
b6329ff050349a95c60fb5291747cfdd19a72ab5
752
py
Python
libs/models.py
CaptainBoggle/bakerbot
ef93c8e636b0f1ee514a0b1cef2ab43b315d974e
[ "MIT" ]
null
null
null
libs/models.py
CaptainBoggle/bakerbot
ef93c8e636b0f1ee514a0b1cef2ab43b315d974e
[ "MIT" ]
2
2021-06-19T11:09:02.000Z
2021-06-19T11:21:21.000Z
libs/models.py
CaptainBoggle/bakerbot
ef93c8e636b0f1ee514a0b1cef2ab43b315d974e
[ "MIT" ]
null
null
null
from libs.wikipedia import Wikipedia from libs.mangadex import Mangadex from libs.wolfram import Wolfram from discord.ext import commands from libs.jisho import Jisho import wavelink import aiohttp class Bakerbot(commands.Bot): def __init__(self, *args, **kwargs) -> None: super().__init__(*args, **kwargs...
34.181818
80
0.730053
97
752
5.536082
0.360825
0.122905
0.104283
0.134078
0.1527
0.1527
0.1527
0.1527
0
0
0
0
0.164894
752
21
81
35.809524
0.855096
0.050532
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.4375
0
0.5625
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
b63480efabde818efdeecf93030cd51e05cd1617
1,040
py
Python
user/login_check.py
eshaohu/Archives-Management
8fcd31909d923ab17694c538ecbae04e2a55e15f
[ "Apache-2.0" ]
1
2021-12-07T14:06:53.000Z
2021-12-07T14:06:53.000Z
user/login_check.py
eshaohu/Archives-Management
8fcd31909d923ab17694c538ecbae04e2a55e15f
[ "Apache-2.0" ]
null
null
null
user/login_check.py
eshaohu/Archives-Management
8fcd31909d923ab17694c538ecbae04e2a55e15f
[ "Apache-2.0" ]
1
2021-12-13T15:45:05.000Z
2021-12-13T15:45:05.000Z
from django.shortcuts import redirect from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from functools import wraps # session登录认证 def login_required(fn): @wraps(fn) def wrapper(request, *args, **kwargs): if request.session.get('user') is None: if reque...
38.518519
110
0.604808
113
1,040
5.522124
0.371681
0.070513
0.108974
0.060897
0.5
0.5
0.5
0.5
0.5
0.5
0
0.007895
0.269231
1,040
27
111
38.518519
0.813158
0.010577
0
0.48
0
0
0.093385
0
0
0
0
0
0
1
0.12
false
0
0.16
0
0.6
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
b6349372b65be65d04e6c57480167fd468f985d8
4,839
py
Python
diplomacy_research/proto/diplomacy_tensorflow/core/framework/tensor_description_pb2.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
39
2019-09-06T13:42:24.000Z
2022-03-18T18:38:43.000Z
diplomacy_research/proto/diplomacy_tensorflow/core/framework/tensor_description_pb2.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
9
2019-09-19T22:35:32.000Z
2022-02-24T18:04:57.000Z
diplomacy_research/proto/diplomacy_tensorflow/core/framework/tensor_description_pb2.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
8
2019-10-16T21:09:14.000Z
2022-02-23T05:20:37.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: diplomacy_tensorflow/core/framework/tensor_description.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message f...
52.597826
746
0.825997
589
4,839
6.393888
0.24618
0.136219
0.061073
0.076474
0.501062
0.420871
0.396707
0.331386
0.291556
0.237387
0
0.03212
0.079975
4,839
91
747
53.175824
0.813792
0.05683
0
0.277778
1
0.027778
0.289601
0.265029
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
b63a4f102823ab607e3315956a6405552f6bb3e8
426
py
Python
harvesttext/__init__.py
buvta/HarvestText
fae00fff2088f43a379726ef83d5c85567a9cd74
[ "MIT" ]
null
null
null
harvesttext/__init__.py
buvta/HarvestText
fae00fff2088f43a379726ef83d5c85567a9cd74
[ "MIT" ]
null
null
null
harvesttext/__init__.py
buvta/HarvestText
fae00fff2088f43a379726ef83d5c85567a9cd74
[ "MIT" ]
null
null
null
#coding=utf-8 #!/usr/bin/env python import pickle from .harvesttext import HarvestText from .resources import * __version__ = '0.8.1.5' def saveHT(htModel,filename): with open(filename, "wb") as f: htModel.prepared = False htModel.hanlp_prepared = False pickle.dump(htModel,f) def loadHT(f...
20.285714
38
0.657277
59
426
4.661017
0.59322
0.087273
0.116364
0.174545
0
0
0
0
0
0
0
0.015106
0.223005
426
20
39
21.3
0.81571
0.075117
0
0
0
0
0.028133
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.428571
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
b63c5823e3f35464adf9b3d28a13ac7db41e97d7
7,650
py
Python
manage.py
hunter125555/burnleyffc2025
583877765b70436ab5c7b94663f1a76479489d69
[ "MIT" ]
null
null
null
manage.py
hunter125555/burnleyffc2025
583877765b70436ab5c7b94663f1a76479489d69
[ "MIT" ]
null
null
null
manage.py
hunter125555/burnleyffc2025
583877765b70436ab5c7b94663f1a76479489d69
[ "MIT" ]
null
null
null
import os import json import argparse import requests from collections import Counter, OrderedDict from angular_flask.core import mongo from angular_flask import app from angular_flask import helper teamList = ['Arsenal', 'Brighton', 'Bournemouth', 'Burnley', 'Chelsea', 'Crystal Palace', 'Everton', 'Huddersfield', '...
35.747664
259
0.697908
1,047
7,650
4.909265
0.242598
0.02179
0.023346
0.039689
0.229961
0.197276
0.128988
0.116537
0.100973
0.093774
0
0.037776
0.14183
7,650
213
260
35.915493
0.745164
0.016209
0
0.194737
0
0
0.19309
0
0
0
0
0
0
0
null
null
0.005263
0.047368
null
null
0.089474
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