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
1334729fc23128f2a204859eb9a2d2293fbde362
5,726
py
Python
bias/generate.py
marcinguy/bias
3d9324f8e8317b3cf9e77400bd0783d8fc9e93ec
[ "MIT" ]
78
2020-05-18T21:49:10.000Z
2022-02-26T20:03:39.000Z
bias/generate.py
marcinguy/bias
3d9324f8e8317b3cf9e77400bd0783d8fc9e93ec
[ "MIT" ]
15
2020-05-25T12:30:26.000Z
2022-01-11T08:56:00.000Z
bias/generate.py
marcinguy/bias
3d9324f8e8317b3cf9e77400bd0783d8fc9e93ec
[ "MIT" ]
18
2020-05-19T11:09:27.000Z
2021-12-21T14:39:45.000Z
# generate.py """ Takes: IF and OF and produces bias.py """ import json B_PATH = 'bias.py' BT_PATH = 'bias-template.py' IF_PATH = 'IF_PIXEL2.json' AF_PATH = 'AF.json' with open(BT_PATH, mode="r", encoding='utf-8') as BT_FP: bt = BT_FP.readlines() with open(IF_PATH, mode="r", encoding='utf-8') as IF_FP: IF ...
37.671053
73
0.494411
617
5,726
4.549433
0.139384
0.149626
0.185964
0.169576
0.315283
0.045957
0.04275
0.018169
0.018169
0.018169
0
0.026616
0.311037
5,726
151
74
37.92053
0.684918
0.013622
0
0.263158
1
0
0.240774
0.024485
0
0
0
0
0
1
0
false
0
0.007519
0
0.007519
0.255639
0
0
0
null
0
1
1
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
3
134e3d1b8f7ba9068a6c2ddcab8c9b979e756753
572
py
Python
creational/abstract_factory/main.py
plocinskipiotr/Design_Patterns
8e9433dccef7bb49d9fbe4f248cb93da465bd880
[ "MIT" ]
null
null
null
creational/abstract_factory/main.py
plocinskipiotr/Design_Patterns
8e9433dccef7bb49d9fbe4f248cb93da465bd880
[ "MIT" ]
null
null
null
creational/abstract_factory/main.py
plocinskipiotr/Design_Patterns
8e9433dccef7bb49d9fbe4f248cb93da465bd880
[ "MIT" ]
null
null
null
""" Main loop for abstract factory example """ from abstract_factory import UnitCreator if __name__ == '__main__': lst = list() unit_lst = [UnitCreator.create_unit(unit="MARINE"), UnitCreator.create_unit(unit="FIREBAT"), UnitCreator.create_unit(unit="WRIGHT"), Un...
30.105263
62
0.617133
59
572
5.694915
0.440678
0.303571
0.375
0.446429
0
0
0
0
0
0
0
0
0.265734
572
18
63
31.777778
0.8
0.066434
0
0
0
0
0.110266
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.076923
0
0
0
null
1
1
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
3
13617ab3761e6ef808b11fb4fd7def9a966934a7
452
py
Python
vralib/__init__.py
potapum/vrealize-pysdk
3b91b4a72a247fab7b247c77fc2dd1fadaf3ba74
[ "Apache-2.0" ]
19
2016-08-22T21:06:47.000Z
2021-06-02T12:21:27.000Z
vralib/__init__.py
potapum/vrealize-pysdk
3b91b4a72a247fab7b247c77fc2dd1fadaf3ba74
[ "Apache-2.0" ]
2
2018-07-12T08:40:31.000Z
2021-06-01T21:46:42.000Z
vralib/__init__.py
potapum/vrealize-pysdk
3b91b4a72a247fab7b247c77fc2dd1fadaf3ba74
[ "Apache-2.0" ]
16
2017-05-09T21:19:20.000Z
2021-06-02T12:21:59.000Z
""" vRealize Automation wrapper library. This library is used to help work with vRealize automation via the REST API It's a work in progress and largely a learning experience for the developer. Improvements are welcome! """ from . import classes, deployment, reservation from .classes import Session ...
22.6
80
0.776549
57
452
6.157895
0.666667
0.102564
0
0
0
0
0
0
0
0
0
0
0.183628
452
19
81
23.789474
0.95122
0.475664
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
3
13639816e040f36c04b0cc489b42523226cf4237
4,772
py
Python
src/main.py
linxi159/scGNGI
78f0fab769b429d1c1f04a4a9344f303b1177ce5
[ "Apache-2.0" ]
null
null
null
src/main.py
linxi159/scGNGI
78f0fab769b429d1c1f04a4a9344f303b1177ce5
[ "Apache-2.0" ]
null
null
null
src/main.py
linxi159/scGNGI
78f0fab769b429d1c1f04a4a9344f303b1177ce5
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import time import random from sklearn import metrics from scipy.stats.stats import pearsonr from scGNGI_model import scGNGI # [1] data preprocessing # df = pd.read_csv('./data/GSE75748/GSE75748_sc_cell_type_ec.csv', index_col=0) # dimension = (genes x cells) #df = pd.read_csv('...
4,772
4,772
0.682733
813
4,772
3.715867
0.182042
0.03244
0.044687
0.059583
0.617345
0.589209
0.534922
0.506786
0.457795
0.386296
0
0.061152
0.174141
4,772
1
4,772
4,772
0.705405
0.327326
0
0.212766
0
0
0.164665
0.094185
0
0
0
0
0
1
0
false
0
0.074468
0
0.074468
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
136dfa2a813e3e94738d0137e2e9a20bfd37f7b6
191
py
Python
api/serializers.py
Jarquevious/makewikiv1
dab499102a982e28975c54f3740286663d48c272
[ "MIT" ]
null
null
null
api/serializers.py
Jarquevious/makewikiv1
dab499102a982e28975c54f3740286663d48c272
[ "MIT" ]
6
2020-06-06T01:29:01.000Z
2021-06-10T19:50:05.000Z
api/serializers.py
Jarquevious/makewikiv1
dab499102a982e28975c54f3740286663d48c272
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from wiki.models import Page class PageSerializer(ModelSerializer): class Meta: model = Page fields = '__all__'
17.363636
54
0.727749
20
191
6.7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.219895
191
10
55
19.1
0.899329
0
0
0
0
0
0.037037
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
1
0
0
3
137a4d9aff3ed11aeabef749299ad6b20ad80c67
1,079
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/ViewDiscipline.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/ViewDiscipline.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/DB/__init___parts/ViewDiscipline.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
class ViewDiscipline(Enum,IComparable,IFormattable,IConvertible): """ Discipline of the view enum ViewDiscipline,values: Architectural (1),Coordination (4095),Electrical (8),Mechanical (4),Plumbing (16),Structural (2) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__...
26.975
215
0.676552
137
1,079
4.635037
0.364964
0.125984
0.132283
0.141732
0.20315
0.20315
0.20315
0.177953
0.177953
0.177953
0
0.011148
0.168675
1,079
39
216
27.666667
0.696767
0.443003
0
0.357143
0
0
0
0
0
0
0
0
0
1
0.357143
false
0.357143
0
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
1
0
0
1
0
0
3
13810712de3fc69a10697d2bd970e0637e36ebfd
433
py
Python
tests/unit_tests/testing_utils.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-20T21:33:56.000Z
2020-03-20T21:33:56.000Z
tests/unit_tests/testing_utils.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
1
2020-03-22T03:48:45.000Z
2020-03-22T03:48:45.000Z
tests/unit_tests/testing_utils.py
ZacharyATanenbaum/service_framework
b5dde4407998350d1b7ad09284110b986fd4e12a
[ "MIT" ]
null
null
null
""" Holds lots of fun testing utils """ import sys def remove_imported_object_module(imported_object): """ This method is needed to prevent python from returning the cached imported object. Otherwise, if the cached object has changed (such as deleting a key in one of the modules local dict variables)...
30.928571
71
0.736721
64
433
4.84375
0.734375
0.180645
0
0
0
0
0
0
0
0
0
0
0.207852
433
13
72
33.307692
0.90379
0.646651
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
1
0
1.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
0
0
1
0
0
1
0
1
0
0
3
138117abd20b07291eccff61b1f8d872e8f201b7
1,810
py
Python
Protheus_WebApp/Modules/SIGATAF/TAFA400TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGATAF/TAFA400TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGATAF/TAFA400TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest class TAFA400(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup('SIGATAF','09/03/2020','T1','D MG 01 ','84') inst.oHelper.Program('TAFA400') def test_TAFA400_CT001(self): cDtIni = '01/2020' cDtFim = '03/2020' ...
28.28125
65
0.712707
245
1,810
5.159184
0.297959
0.252373
0.27057
0.240506
0.512658
0.463608
0.458861
0.358386
0.355222
0.355222
0
0.08231
0.100552
1,810
64
66
28.28125
0.694103
0.396133
0
0.066667
0
0
0.170528
0
0
0
0
0
0.033333
1
0.1
false
0
0.066667
0
0.2
0
0
0
0
null
1
1
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
3
138350703f5ea72bb700bb2c7c051420a828c1da
238
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/test_{{cookiecutter.repo_name}}.py
ryanzhang/aproject
baeb4b1efb6fcb96654d4ecc4bf858d90e569d25
[ "MIT" ]
3
2016-04-21T01:49:15.000Z
2019-02-25T13:16:41.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/test_{{cookiecutter.repo_name}}.py
ryanzhang/aproject
baeb4b1efb6fcb96654d4ecc4bf858d90e569d25
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/test_{{cookiecutter.repo_name}}.py
ryanzhang/aproject
baeb4b1efb6fcb96654d4ecc4bf858d90e569d25
[ "MIT" ]
1
2022-01-27T04:19:31.000Z
2022-01-27T04:19:31.000Z
#!/usr/bin/env python from unittest import TestCase from {{ cookiecutter.repo_name }}.main import hello_world class HelloWordTestCase(TestCase): def test_hello_world(self): self.assertEqual('Hello World!', hello_world())
19.833333
57
0.739496
30
238
5.7
0.666667
0.233918
0
0
0
0
0
0
0
0
0
0
0.151261
238
11
58
21.636364
0.846535
0.084034
0
0
0
0
0.0553
0
0
0
0
0
0.2
0
null
null
0
0.4
null
null
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
1
0
0
0
1
0
0
0
0
3
138b68422d934428b66fc2ba29fdd92181edbfa9
2,522
py
Python
utils/traintest/losses.py
AlexMeinke/Provable-OOD-Detection
9a132aec994ff718c96b81885736ab866df60d87
[ "MIT" ]
21
2021-06-09T23:16:49.000Z
2022-02-18T13:12:06.000Z
utils/traintest/losses.py
AlexMeinke/Provable-OOD-Detection
9a132aec994ff718c96b81885736ab866df60d87
[ "MIT" ]
1
2021-11-30T16:58:08.000Z
2021-11-30T16:58:08.000Z
utils/traintest/losses.py
AlexMeinke/Provable-OOD-Detection
9a132aec994ff718c96b81885736ab866df60d87
[ "MIT" ]
1
2021-12-12T02:43:04.000Z
2021-12-12T02:43:04.000Z
import torch import torch.nn as nn import torch.nn.functional as F import math class GOODLoss(nn.Module): def __init__(self): super().__init__() def forward(self, ub_log_conf): return ((ub_log_conf)**2/2).log1p() class BinaryLoss(nn.Module): def __init__(self): s...
24.970297
118
0.604679
306
2,522
4.627451
0.251634
0.067797
0.069915
0.095339
0.463277
0.41596
0.364407
0.364407
0.364407
0.364407
0
0.012439
0.266852
2,522
101
119
24.970297
0.75338
0.047581
0
0.347826
0
0
0.029155
0
0
0
0
0
0
1
0.26087
false
0
0.057971
0.115942
0.57971
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
1
1
0
0
3
13a336af3a9c3a6a727f47686545f512e3308f75
307
py
Python
leetcode/179.Largest_Num/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/179.Largest_Num/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/179.Largest_Num/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
class LargerNumKey(str): def __lt__(x, y): return x+y > y+x class Solution: def largestNumber(self, nums): array = sorted(map(str, nums), key=LargerNumKey) # print(array) largest_num = "".join(array) return '0' if largest_num[0] == '0' else largest_num
25.583333
60
0.589577
41
307
4.243902
0.560976
0.172414
0
0
0
0
0
0
0
0
0
0.013575
0.28013
307
11
61
27.909091
0.773756
0.039088
0
0
0
0
0.006849
0
0
0
0
0
0
1
0.25
false
0
0
0.125
0.75
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
1
1
0
0
3
13a630cb31e839b1296079e06e417f2c2da7002d
271
py
Python
main/apps.py
olnikiforov/djangoProject
b8628da12ea6d462ab844e326663990a46f03c4d
[ "MIT" ]
null
null
null
main/apps.py
olnikiforov/djangoProject
b8628da12ea6d462ab844e326663990a46f03c4d
[ "MIT" ]
null
null
null
main/apps.py
olnikiforov/djangoProject
b8628da12ea6d462ab844e326663990a46f03c4d
[ "MIT" ]
null
null
null
"""All apps.""" from django.apps import AppConfig class MainConfig(AppConfig): """Class mainconfig.""" default_auto_field = 'django.db.models.AutoField' name = 'main' def ready(self): """Func for signals.""" import main.signals # noqa
20.846154
53
0.630996
31
271
5.451613
0.741935
0.16568
0.284024
0
0
0
0
0
0
0
0
0
0.225092
271
13
54
20.846154
0.804762
0.188192
0
0
0
0
0.146341
0.126829
0
0
0
0
0
1
0.166667
false
0
0.333333
0
1
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
1
0
1
0
0
3
13aefa9ebc9b683055ab03d8a09a018690a0265e
316
py
Python
solutions/151.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
2
2022-01-18T08:57:13.000Z
2022-01-18T15:49:06.000Z
solutions/151.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
solutions/151.py
pacokwon/leetcode
37c943d371c106d1e6f24e065700e5edd1c3f9f9
[ "MIT" ]
null
null
null
# Reverse Words in a String class Solution: def reverseWords(self, s: str) -> str: return ' '.join(reversed(s.strip().split())) # if __name__ == "__main__": # sol = Solution() # s = "the sky is blue" # s = " hello world " # s = " a good example " # print(sol.reverseWords(s))
24.307692
52
0.556962
40
316
4.2
0.75
0
0
0
0
0
0
0
0
0
0
0
0.28481
316
12
53
26.333333
0.743363
0.591772
0
0
0
0
0.008264
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
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
1
1
0
0
3
13bc98a68b1cfc14976f17cbc3b10af09942bcd7
316
py
Python
django_client_framework/models/fields/__init__.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-01-13T22:11:29.000Z
2021-01-13T22:11:29.000Z
django_client_framework/models/fields/__init__.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-04-12T02:04:59.000Z
2021-04-12T02:04:59.000Z
django_client_framework/models/fields/__init__.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-05-20T05:25:06.000Z
2021-05-20T05:25:06.000Z
from django.contrib.contenttypes.fields import * from django.contrib.postgres.fields import ArrayField, HStoreField from django.db.models import ForeignKey, JSONField, ManyToManyField from django.db.models.fields import * from .decimal import DecimalField, PriceField from .one_to_one_field import UniqueForeignKey
39.5
67
0.848101
40
316
6.625
0.525
0.150943
0.128302
0.135849
0
0
0
0
0
0
0
0
0.091772
316
7
68
45.142857
0.923345
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
13cc5f429f8951c53243999db6dfece264664aa4
122
py
Python
ehidemo/__init__.py
emillo/ehidemo
9f470a455a200382dcd0a3f0a79365cdcb33907f
[ "MIT" ]
null
null
null
ehidemo/__init__.py
emillo/ehidemo
9f470a455a200382dcd0a3f0a79365cdcb33907f
[ "MIT" ]
null
null
null
ehidemo/__init__.py
emillo/ehidemo
9f470a455a200382dcd0a3f0a79365cdcb33907f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Emiliano Grilli""" __email__ = 'emiliano.grilli@gmail.com' __version__ = '0.1.0'
20.333333
39
0.647541
15
122
4.466667
0.8
0.41791
0
0
0
0
0
0
0
0
0
0.037736
0.131148
122
5
40
24.4
0.59434
0.172131
0
0
0
0
0.454545
0.252525
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
13e00418ce788b64787a07e2b6a91e737142dd64
198
py
Python
Print Output Without a Newline.py
Shant-singh/videohash
6dbcde24c05b59f91a1b48f253a92fba5952086d
[ "MIT" ]
null
null
null
Print Output Without a Newline.py
Shant-singh/videohash
6dbcde24c05b59f91a1b48f253a92fba5952086d
[ "MIT" ]
null
null
null
Print Output Without a Newline.py
Shant-singh/videohash
6dbcde24c05b59f91a1b48f253a92fba5952086d
[ "MIT" ]
null
null
null
# print each statement on a new line print("Python") print("is easy to learn.") # new line print() # print both the statements on a single line print("Python", end=" ") print("is easy to learn.")
18
44
0.686869
33
198
4.121212
0.515152
0.198529
0.176471
0.191176
0.264706
0
0
0
0
0
0
0
0.176768
198
10
45
19.8
0.834356
0.434343
0
0.4
0
0
0.435185
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
3
13e5bc1d2734fb2b918d3528ab34b913eac2a8db
3,758
py
Python
tests/helpers/test_entityfilter.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
tests/helpers/test_entityfilter.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
tests/helpers/test_entityfilter.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2018-08-29T19:26:20.000Z
2020-01-19T11:58:22.000Z
"""The tests for the EntityFilter component.""" from homeassistant.helpers.entityfilter import generate_filter, FILTER_SCHEMA def test_no_filters_case_1(): """If include and exclude not included, pass everything.""" incl_dom = {} incl_ent = {} excl_dom = {} excl_ent = {} testfilter = generate_...
34.796296
77
0.694252
470
3,758
5.33617
0.148936
0.204147
0.077751
0.13756
0.726475
0.687799
0.657895
0.650319
0.626396
0.582536
0
0.003576
0.18148
3,758
107
78
35.121495
0.811769
0.112826
0
0.696203
1
0
0.248102
0.096568
0
0
0
0
0.417722
1
0.088608
false
0
0.012658
0
0.101266
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
1
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
b91779dc3c42c0f6c7fb88c609a8a92d183a71e4
2,052
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/ConnectionValidationWarning.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/ConnectionValidationWarning.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/ConnectionValidationWarning.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class ConnectionValidationWarning(object,IDisposable): """ Contains information about a specific connection validation problem. ConnectionValidationWarning(resolution: ConnectionResolution,reason: ConnectionWarning,part1: ElementId,part2: ElementId) """ def Dispose(self): """ Dispose(self: ConnectionV...
35.37931
215
0.72271
212
2,052
6.641509
0.334906
0.06392
0.034091
0.040483
0.328125
0.328125
0.328125
0.328125
0.213068
0.213068
0
0.003456
0.153996
2,052
57
216
36
0.807604
0.431774
0
0.380952
0
0
0
0
0
0
0
0
0
1
0.380952
false
0.380952
0
0
0.571429
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
1
0
0
1
0
0
3
b91b2436e626f173a60b649bec44b3fd87071bef
66
py
Python
notebooks/Skew_T/solutions/skewt_dewpoint_limits.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
1
2020-01-18T20:34:33.000Z
2020-01-18T20:34:33.000Z
notebooks/Skew_T/solutions/skewt_dewpoint_limits.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
null
null
null
notebooks/Skew_T/solutions/skewt_dewpoint_limits.py
DEVESHTARASIA/unidata-python-workshop
6ce194a0515effbd0cddb50c2302d5160494747e
[ "MIT" ]
1
2020-11-07T12:42:54.000Z
2020-11-07T12:42:54.000Z
skew.plot(p, Td, color='tab:green') skew.ax.set_xlim(-40, 60) fig
16.5
35
0.681818
14
66
3.142857
0.928571
0
0
0
0
0
0
0
0
0
0
0.066667
0.090909
66
4
36
16.5
0.666667
0
0
0
0
0
0.134328
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
b9347e7901fd2022831fd814fd185c2a2ace793b
399
py
Python
menpo/io/__init__.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/io/__init__.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/io/__init__.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
from .input import (import_image, import_images, import_landmark_file, import_landmark_files, import_pickle, import_pickles, import_builtin_asset, image_paths, landmark_file_paths, data_path_to, data_dir_path, ls_builtin...
49.875
69
0.654135
44
399
5.409091
0.477273
0.151261
0
0
0
0
0
0
0
0
0
0
0.303258
399
7
70
57
0.856115
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.714286
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
b942abf24265fb992c41aee6447c83a179632c84
134
py
Python
Python/Basic Data Types/Tuples.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
1
2021-12-28T15:45:25.000Z
2021-12-28T15:45:25.000Z
Python/Basic Data Types/Tuples.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
null
null
null
Python/Basic Data Types/Tuples.py
justchilll/HackerRank
948e5783007b0918b25bcef452a12c4dddb36fa6
[ "MIT" ]
null
null
null
N=int(input()) input_list=input().split() t=() for num in input_list: t=list(t) t.append(int(num)) t=tuple(t) print(hash(t))
14.888889
26
0.626866
26
134
3.153846
0.5
0.219512
0
0
0
0
0
0
0
0
0
0
0.149254
134
8
27
16.75
0.719298
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b942fd9bdf5ebe4b2c30fb78aad788e64632af64
2,535
py
Python
tests/test_generate_keys.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
3
2017-10-05T12:38:15.000Z
2019-07-05T11:01:21.000Z
tests/test_generate_keys.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
29
2017-07-26T10:43:47.000Z
2021-04-30T12:53:42.000Z
tests/test_generate_keys.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
3
2021-04-11T07:54:38.000Z
2021-04-29T13:46:30.000Z
import os from sdc.crypto.scripts.generate_keys import get_file_contents, get_public_key, get_private_key class TestGenerateKeys: @staticmethod def get_file(folder, filename): with open(os.path.join(folder, filename), 'r') as f: data = f.read() return data def test_get_file_...
48.75
152
0.605128
292
2,535
5.061644
0.219178
0.056834
0.070365
0.140731
0.772666
0.714479
0.688769
0.633965
0.633965
0.633965
0
0.032538
0.272584
2,535
51
153
49.705882
0.76898
0.092308
0
0.418605
1
0
0.390138
0.168047
0
0
0
0
0.139535
1
0.116279
false
0
0.046512
0
0.209302
0
0
0
0
null
0
0
0
0
1
0
0
0
1
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
3
b9446760a841cbaf21addadbe067e922083dd23f
291
py
Python
backend/apps/exam/views/level.py
xingxingzaixian/django-vue3.2-online-exam
1bf29174aee951238ee283df2796f47177e622ec
[ "MIT" ]
3
2022-03-27T12:58:23.000Z
2022-03-30T11:04:39.000Z
backend/apps/exam/views/level.py
xingxingzaixian/django-vue3.2-online-exam
1bf29174aee951238ee283df2796f47177e622ec
[ "MIT" ]
null
null
null
backend/apps/exam/views/level.py
xingxingzaixian/django-vue3.2-online-exam
1bf29174aee951238ee283df2796f47177e622ec
[ "MIT" ]
null
null
null
from rest_framework.viewsets import ModelViewSet from exam.models import TblExamLevel as Model from exam.serializers import ExamLevelSerializer as Serializer class ExamLevelViewset(ModelViewSet): queryset = Model.objects.all().order_by('-id') serializer_class = Serializer
32.333333
63
0.793814
33
291
6.909091
0.666667
0.070175
0
0
0
0
0
0
0
0
0
0
0.14433
291
9
64
32.333333
0.915663
0
0
0
0
0
0.010563
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
b953a718a10c1bdf27d04e1532a1eaa687036850
4,098
py
Python
fpldata/test.py
177arc/fpl-data
cfa9d8a93a8878ca5be1ff4946c4d9f0f1643197
[ "MIT" ]
5
2020-11-01T00:00:50.000Z
2021-08-13T07:44:51.000Z
fpldata/test.py
177arc/fpl-data
cfa9d8a93a8878ca5be1ff4946c4d9f0f1643197
[ "MIT" ]
17
2020-10-25T21:43:11.000Z
2022-01-03T15:18:41.000Z
fpldata/test.py
177arc/fpl-data
cfa9d8a93a8878ca5be1ff4946c4d9f0f1643197
[ "MIT" ]
null
null
null
import pandas as pd import datetime as dt from .manager import FPLManagerBase, Context from typing import Tuple, NoReturn, Dict from pandas.testing import assert_frame_equal # Define type aliases DF = pd.DataFrame class FPLManagerTest(FPLManagerBase): tests_path: str def __init__(self, tests_path): ...
49.97561
246
0.712299
644
4,098
4.156832
0.201863
0.067239
0.087411
0.077699
0.607023
0.537168
0.509526
0.485992
0.446022
0.416885
0
0.008782
0.166423
4,098
81
247
50.592593
0.774883
0.036603
0
0.034483
0
0
0.271736
0.183777
0
0
0
0
0.189655
1
0.258621
false
0
0.086207
0.137931
0.534483
0.017241
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
1
1
0
0
3
b98601f4f378df75a634146971f7b97960f0ae7d
175
py
Python
manage.py
jiakechong1991/redash-
9c28977e19a440ce75ac50413595aed3ee360bcd
[ "BSD-2-Clause" ]
null
null
null
manage.py
jiakechong1991/redash-
9c28977e19a440ce75ac50413595aed3ee360bcd
[ "BSD-2-Clause" ]
null
null
null
manage.py
jiakechong1991/redash-
9c28977e19a440ce75ac50413595aed3ee360bcd
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ CLI to manage redash. """ from redash.cli import manager if __name__ == '__main__': # ./manage.py database create_tables 使用的方式 manager()
15.909091
48
0.668571
24
175
4.541667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.188571
175
10
49
17.5
0.760563
0.485714
0
0
0
0
0.098765
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
1
0
1
0
0
0
0
3
b98eb6fc5cc584640b461864b6ff66f0a31096cf
26
py
Python
eway/__init__.py
ionata/python-eway
4248c99bd787c0de63c336eced8c5f8c34fa7f5a
[ "Apache-2.0" ]
2
2015-08-25T09:53:02.000Z
2019-06-27T13:59:19.000Z
eway/__init__.py
alexhayes/python-eway
2740aaab6c039a18f5dbdab65d065c8bdb37583f
[ "Apache-2.0" ]
null
null
null
eway/__init__.py
alexhayes/python-eway
2740aaab6c039a18f5dbdab65d065c8bdb37583f
[ "Apache-2.0" ]
null
null
null
VERSION = (0, 2, 'alpha',)
26
26
0.538462
4
26
3.5
1
0
0
0
0
0
0
0
0
0
0
0.090909
0.153846
26
1
26
26
0.545455
0
0
0
0
0
0.185185
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b9965b0e8f2284331e5fc4b32be5197d388db18f
123
py
Python
app/__init__.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
3
2020-12-24T12:01:13.000Z
2021-06-01T06:23:41.000Z
app/__init__.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
app/__init__.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
from seed.application import Application from .routes import router app = Application( router=router ).create_app()
13.666667
40
0.764228
15
123
6.2
0.533333
0
0
0
0
0
0
0
0
0
0
0
0.162602
123
8
41
15.375
0.902913
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
b9a557c5efa273c5542b4936a3c738c29250a565
2,546
py
Python
tests/traintest.py
pkienzle/msdnet
a4c5ac0764c282b894fbc9286000cdacc59b587a
[ "MIT" ]
null
null
null
tests/traintest.py
pkienzle/msdnet
a4c5ac0764c282b894fbc9286000cdacc59b587a
[ "MIT" ]
null
null
null
tests/traintest.py
pkienzle/msdnet
a4c5ac0764c282b894fbc9286000cdacc59b587a
[ "MIT" ]
null
null
null
import unittest import msdnet import numpy as np class TestTraining(unittest.TestCase): def test_regr_training(self): dil = msdnet.dilations.IncrementDilations(3) n = msdnet.network.MSDNet(10, dil, 1, 1, gpu=False) n.initialize() tgt_im = np.zeros((1,128,128), dtype=np.float32) ...
40.412698
94
0.612726
344
2,546
4.348837
0.241279
0.033422
0.040107
0.026738
0.782086
0.766043
0.735294
0.696524
0.696524
0.652406
0
0.04042
0.251767
2,546
63
95
40.412698
0.744882
0
0
0.576271
0
0
0.086376
0
0
0
0
0
0
1
0.033898
false
0
0.050847
0
0.101695
0
0
0
0
null
0
0
0
0
1
1
0
0
1
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
3
b9a83733d34afb0041c2b0aabd01e58997351d70
1,787
py
Python
python/week0/pattern.py
rohitd3/csp-python
5f3d661e0fb8b0a2be45f2f13ba8fef140d1fd6d
[ "MIT" ]
null
null
null
python/week0/pattern.py
rohitd3/csp-python
5f3d661e0fb8b0a2be45f2f13ba8fef140d1fd6d
[ "MIT" ]
2
2022-03-21T20:59:43.000Z
2022-03-28T21:17:03.000Z
python/week0/pattern.py
rohitd3/rohit-csp3-algo
5f3d661e0fb8b0a2be45f2f13ba8fef140d1fd6d
[ "MIT" ]
null
null
null
import time # terminal print commands ANSI_CLEAR_SCREEN = u"\u001B[2J" ANSI_HOME_CURSOR = u"\u001B[0;0H\u001B[2" OCEAN_COLOR = u"\u001B[44m\u001B[2D" COLOR = u"\u001B[31m\u001B[2D" RESET_COLOR = u"\u001B[0m\u001B[2D" # print ship with colors and leading spaces def pattern_print(position): print(ANSI_HOME_CURSOR...
36.469388
73
0.400112
149
1,787
4.308725
0.496644
0.141745
0.205607
0.218069
0.149533
0.149533
0.116822
0.076324
0.076324
0.076324
0
0.040799
0.355344
1,787
49
74
36.469388
0.516493
0.142138
0
0
0
0
0.530184
0.072178
0
0
0
0
0
1
0.060606
false
0
0.030303
0
0.090909
0.545455
0
0
0
null
0
1
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
1
0
3
b9ac0f27b9ba88739e692d4764c37b898ae0afe0
7,882
py
Python
ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/ctf-x86_64/test.py
1079278593/TreasureChest
8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8
[ "MIT" ]
null
null
null
ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/ctf-x86_64/test.py
1079278593/TreasureChest
8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8
[ "MIT" ]
null
null
null
ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/ctf-x86_64/test.py
1079278593/TreasureChest
8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import os import KernelCollection # This is the fixups-x86_64 test, but with __CTF inserted so that we can see that CTF doesn't impact the result # Note the ctf.txt file is 16k just to ensure that if its vm addr wasn't updated, we'd exceed the size of __LINKEDIT with the __CTF def check(kernel_c...
76.524272
311
0.682822
965
7,882
5.407254
0.172021
0.149674
0.269644
0.310464
0.705634
0.697202
0.640667
0.483519
0.321196
0.141817
0
0.098095
0.114057
7,882
102
312
77.27451
0.649148
0.192718
0
0.109589
0
0
0.358145
0.007097
0
0
0.101719
0
0.917808
1
0.013699
false
0
0.027397
0
0.041096
0
0
0
0
null
0
1
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
1
0
0
0
0
0
0
0
0
0
3
b9c367ffa98a4d75052086fd5717807eba4f8f73
654
py
Python
gofai/monte_carlo/utils.py
quasarbright/MachineLearning
137fffa6233b5c9629dc15d25494d9a6e63d9501
[ "MIT" ]
1
2021-01-23T13:49:36.000Z
2021-01-23T13:49:36.000Z
gofai/monte_carlo/utils.py
quasarbright/MachineLearning
137fffa6233b5c9629dc15d25494d9a6e63d9501
[ "MIT" ]
null
null
null
gofai/monte_carlo/utils.py
quasarbright/MachineLearning
137fffa6233b5c9629dc15d25494d9a6e63d9501
[ "MIT" ]
null
null
null
import random class Vector: def __init__(self, x, y): self.x = x self.y = y def __add__(self, other): return Vector(self.x+other.x, self.y+other.y) def __eq__(self, other): return self.x == other.x and self.y == other.y def __hash__(self): ...
22.551724
54
0.530581
97
654
3.319588
0.268041
0.108696
0.093168
0.093168
0.208075
0
0
0
0
0
0
0.00905
0.324159
654
29
55
22.551724
0.719457
0
0
0
0
0
0.012214
0
0
0
0
0
0
1
0.380952
false
0
0.047619
0.285714
0.809524
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
1
1
0
0
3
b9c9b98bbff258316a533f60bbb79ef963f5dc49
200
py
Python
hashcode/15671.py
noritersand/python-lab
9238d62cb2d8b574a8d3697ac7d8b51f1251bc4b
[ "Unlicense" ]
null
null
null
hashcode/15671.py
noritersand/python-lab
9238d62cb2d8b574a8d3697ac7d8b51f1251bc4b
[ "Unlicense" ]
null
null
null
hashcode/15671.py
noritersand/python-lab
9238d62cb2d8b574a8d3697ac7d8b51f1251bc4b
[ "Unlicense" ]
null
null
null
from bs4 import BeautifulSoup html_doc = '<a id="pickme" href="https://example.com">나를 찾아줘요 예에</a>' soup = BeautifulSoup(html_doc, 'html.parser') ele = soup.select_one('#pickme') print(ele['href'])
25
69
0.705
31
200
4.451613
0.709677
0.246377
0.289855
0
0
0
0
0
0
0
0
0.005587
0.105
200
7
70
28.571429
0.765363
0
0
0
0
0
0.39
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.2
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
b9fd53fec9e5cd8daa1c38eda4450f7a5f5b4270
367
py
Python
graphs/dfs.py
saketvikram/algorithms-ds-in-python
8b100182df8fcc4350b2458f2148481c7e0fb043
[ "MIT" ]
null
null
null
graphs/dfs.py
saketvikram/algorithms-ds-in-python
8b100182df8fcc4350b2458f2148481c7e0fb043
[ "MIT" ]
null
null
null
graphs/dfs.py
saketvikram/algorithms-ds-in-python
8b100182df8fcc4350b2458f2148481c7e0fb043
[ "MIT" ]
null
null
null
class Node: def __init__(self, name): self.children = [] self.name = name def addChild(self, name): self.children.append(Node(name)) return self def depthFirstSearch(self, array): # Write your code here. array.append(self.name) for child in self.children: ...
24.466667
40
0.626703
44
367
5.136364
0.431818
0.141593
0.106195
0.176991
0
0
0
0
0
0
0
0
0.275204
367
15
41
24.466667
0.849624
0.057221
0
0
0
0
0
0
0
0
0
0.066667
0
0
null
null
0
0
null
null
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
1
0
1
0
0
0
0
0
0
0
0
3
6a1683336950ccc2e23a4aba5b61c6cc04696b71
1,437
py
Python
celery/celery_Keeping_Results.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
celery/celery_Keeping_Results.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
celery/celery_Keeping_Results.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # If you want to keep track of the tasks' states, Celery needs to store or send # the states somewhere. There are several built-in backends to choose from: # SQLAlchemy/Django/ORM, Memcahed, Redis, RPC (RabbitMQ/AMQP), and - or define your own. # app = Celery('tasks', backend...
31.933333
97
0.720251
223
1,437
4.632287
0.61435
0.027106
0.027106
0.040658
0.046467
0
0
0
0
0
0
0.004163
0.164231
1,437
44
98
32.659091
0.855953
0.870564
0
0
0
0
0.242236
0.149068
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
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
1
0
0
0
1
0
0
0
3
6a1c5dfc4b00e4a8ea79c4e9136542792d562165
3,577
py
Python
Albert Bot Code/classes/main.py
Astroend/Albert-Bot-Estrategia-Do-Milhao
f367df1910dd632deb560479a1605d9120368e2f
[ "MIT" ]
4
2021-07-11T18:08:59.000Z
2022-02-11T04:09:15.000Z
Albert Bot Code/classes/main.py
Astroend/Albert-Bot
f367df1910dd632deb560479a1605d9120368e2f
[ "MIT" ]
1
2022-01-25T21:00:24.000Z
2022-01-25T21:00:24.000Z
Albert Bot Code/classes/main.py
Astroend/Albert-Bot
f367df1910dd632deb560479a1605d9120368e2f
[ "MIT" ]
2
2021-11-26T11:06:43.000Z
2022-01-05T14:43:04.000Z
from multiprocessing import Process from classes.account import Account from classes.graphics import Graphic from time import sleep class Main(Account, Graphic): def _process(self): self.check, status = self.stop() while self.check == True: print('rodando') self....
30.058824
113
0.541795
385
3,577
4.72987
0.18961
0.082372
0.099945
0.039539
0.27732
0.170236
0.077979
0.043932
0
0
0
0.011644
0.375734
3,577
119
114
30.058824
0.803851
0.067934
0
0.224719
0
0
0.007781
0
0
0
0
0
0
1
0.280899
false
0.044944
0.044944
0.157303
0.516854
0.022472
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
1
1
0
0
3
6a2805db383dbdd749fd3bd42ec90aaea66d5bfb
256
py
Python
AWS_Resources.py
Sandeephyd20/AWS_Learning
8aec478282544a95289692394402506a02f4a885
[ "MIT" ]
null
null
null
AWS_Resources.py
Sandeephyd20/AWS_Learning
8aec478282544a95289692394402506a02f4a885
[ "MIT" ]
null
null
null
AWS_Resources.py
Sandeephyd20/AWS_Learning
8aec478282544a95289692394402506a02f4a885
[ "MIT" ]
null
null
null
import boto3 import sys import os import time def get_ec2_region(my_region): ec2_con_re=boto3.resource('ec2',r,region_name=my_region) print(ec2_con_re) get_ec2_region if__name__ == '__get_ec2_region__': os.system('cls') main()
15.058824
60
0.714844
41
256
3.95122
0.487805
0.111111
0.222222
0
0
0
0
0
0
0
0
0.038278
0.183594
256
16
61
16
0.736842
0
0
0
0
0
0.094488
0
0
0
0
0
0
0
null
null
0
0.363636
null
null
0.090909
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
1
0
0
0
1
0
0
0
0
3
6a293f4198c0958fac8e4956be059fc294687f90
1,225
py
Python
regparser/grammar/utils.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/grammar/utils.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
regparser/grammar/utils.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
from pyparsing import alphanums, CaselessLiteral, getTokensEndLoc, Literal from pyparsing import Suppress, WordEnd, WordStart def keep_pos(source, location, tokens): """Wrap the tokens with a class that also keeps track of the match's location.""" return (WrappedResult(tokens, location, getTokensEndLoc())...
30.625
74
0.714286
154
1,225
5.558442
0.480519
0.035047
0.044393
0
0
0
0
0
0
0
0
0
0.19102
1,225
39
75
31.410256
0.863774
0.268571
0
0
0
0
0
0
0
0
0
0
0
1
0.35
false
0
0.1
0.2
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
6a3299fb80524f09e0c67f62499f4a511ab3e36f
47,137
py
Python
autoastro/profiles/mass_profiles/dark_mass_profiles.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
autoastro/profiles/mass_profiles/dark_mass_profiles.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
autoastro/profiles/mass_profiles/dark_mass_profiles.py
woodyZootopia/PyAutoAstro
6500b9746b3e73c3f3129fcbaa3a0419bb400915
[ "MIT" ]
null
null
null
from pyquad import quad_grid import numpy as np from scipy.integrate import quad from scipy.optimize import fsolve from astropy import cosmology as cosmo import inspect from numba import cfunc from numba.types import intc, CPointer, float64 from scipy import LowLevelCallable from scipy import special import autofit ...
33.148383
122
0.574496
5,670
47,137
4.5
0.065432
0.007368
0.037625
0.030649
0.782167
0.742857
0.713737
0.675446
0.638448
0.61552
0
0.032237
0.330717
47,137
1,421
123
33.17171
0.776531
0.129919
0
0.566891
0
0
0.014458
0.002033
0
0
0
0.001407
0
1
0.065448
false
0.000962
0.018287
0.018287
0.159769
0
0
0
0
null
0
0
0
0
1
1
0
0
1
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
3
6a35700ff1c0a084cc91d9ddfc41cba47da6cfe3
4,976
py
Python
rsl_comm_py/examples/example_shearwater_cregs_spi.py
RedshiftLabsPtyLtd/rsl_comm_py
e53b4e85079898c894dac25842a08bcc303edfbb
[ "MIT" ]
null
null
null
rsl_comm_py/examples/example_shearwater_cregs_spi.py
RedshiftLabsPtyLtd/rsl_comm_py
e53b4e85079898c894dac25842a08bcc303edfbb
[ "MIT" ]
null
null
null
rsl_comm_py/examples/example_shearwater_cregs_spi.py
RedshiftLabsPtyLtd/rsl_comm_py
e53b4e85079898c894dac25842a08bcc303edfbb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Author: Dr. Konstantin Selyunin # License: MIT # Date: 3 May 2020 import logging import sys from pathlib import Path from rsl_comm_py.shearwater_spi import ShearWaterSpiUsbIss if __name__ == '__main__': logging.basicConfig( level=logging.WARNING, format='[%(asctime)s.%(...
62.2
82
0.65414
757
4,976
3.745046
0.11889
0.116402
0.190476
0.110053
0.699118
0.360494
0
0
0
0
0
0.058394
0.2291
4,976
80
83
62.2
0.680657
0.01668
0
0
0
0
0.730266
0.369121
0
0
0
0
0
1
0
false
0
0.056338
0
0.056338
0.774648
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
6a367260893990fd933d315b722254b901fdc179
77
py
Python
event/__init__.py
dsa110/dsa110-event
c925c63d8b516906ed1afda3b79c18e3edc65e3c
[ "BSD-3-Clause" ]
null
null
null
event/__init__.py
dsa110/dsa110-event
c925c63d8b516906ed1afda3b79c18e3edc65e3c
[ "BSD-3-Clause" ]
null
null
null
event/__init__.py
dsa110/dsa110-event
c925c63d8b516906ed1afda3b79c18e3edc65e3c
[ "BSD-3-Clause" ]
null
null
null
__all__ = ['voevent', 'names', 'caltechdata', 'labels'] from event import *
19.25
55
0.662338
8
77
5.875
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
77
3
56
25.666667
0.712121
0
0
0
0
0
0.376623
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
dbf1073c085b6a576edc4bc2f7e2ffba14d2a53f
4,381
py
Python
test/util.py
ermekaitygulov/cpprb
8ac25ee69a1eee8edec98cca3c617ec7f48123f6
[ "MIT" ]
null
null
null
test/util.py
ermekaitygulov/cpprb
8ac25ee69a1eee8edec98cca3c617ec7f48123f6
[ "MIT" ]
null
null
null
test/util.py
ermekaitygulov/cpprb
8ac25ee69a1eee8edec98cca3c617ec7f48123f6
[ "MIT" ]
null
null
null
import os import unittest import gym import pyvirtualdisplay from cpprb import ReplayBuffer, create_env_dict, create_before_add_func display = pyvirtualdisplay.Display() display.start() @unittest.skipIf(os.getenv("GITHUB_ACTIONS"),"Skip on GitHub Actions") class TestEnv: def test_add(self): env_dict = c...
28.448052
71
0.687971
523
4,381
5.686424
0.217973
0.084734
0.172495
0.217888
0.479825
0.479825
0.479825
0.479825
0.458978
0.458978
0
0.011778
0.186031
4,381
153
72
28.633987
0.82221
0
0
0.276786
0
0
0.105455
0.022598
0
0
0
0
0.035714
1
0.258929
false
0
0.044643
0
0.5625
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
dbf896c3cfc83a4909ef590821d5bf1fae7133cd
169
py
Python
sales/urls.py
yzcmf/order_management_system
eb2c1daca2293d47a76918c988e78bb890fe5e01
[ "MIT" ]
null
null
null
sales/urls.py
yzcmf/order_management_system
eb2c1daca2293d47a76918c988e78bb890fe5e01
[ "MIT" ]
null
null
null
sales/urls.py
yzcmf/order_management_system
eb2c1daca2293d47a76918c988e78bb890fe5e01
[ "MIT" ]
null
null
null
from django.urls import path from sales.views import listorders, listcustomers urlpatterns = [ path('orders/', listorders), path('customers/', listcustomers) ]
21.125
49
0.733728
18
169
6.888889
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.153846
169
7
50
24.142857
0.867133
0
0
0
0
0
0.100592
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e024079d0f02b587ffccc9f8a43e831d262d50b6
1,292
py
Python
tests/test_fcns/test_fcnsattrzonelookupcache.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
null
null
null
tests/test_fcns/test_fcnsattrzonelookupcache.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
null
null
null
tests/test_fcns/test_fcnsattrzonelookupcache.py
akshatha-s13/mdssdk
615a5528d0af1201e8fe8f305c62b258e5433990
[ "Apache-2.0" ]
null
null
null
import unittest from mdssdk.fcns import Fcns import logging log = logging.getLogger(__name__) class TestFcnsAttrZoneLookupCache(unittest.TestCase): def __init__(self, testName, sw): super().__init__(testName) self.switch = sw def setUp(self) -> None: log.debug(self.switch.version) ...
34
84
0.702012
175
1,292
4.868571
0.285714
0.152582
0.228873
0.176056
0.429577
0.403756
0.347418
0.241784
0.194836
0.112676
0
0
0.200464
1,292
37
85
34.918919
0.824782
0
0
0
0
0
0.032508
0
0
0
0
0
0.214286
1
0.214286
false
0
0.107143
0
0.357143
0
0
0
0
null
0
1
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
1
0
0
0
0
0
0
0
3
e02d8d6e5fccc952e583faa57f0a51f0a7c257ca
1,511
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/EXT/blend_equation_separate.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.blend_equation_separate This module customises the behaviour of the OpenGL.raw.GL.EXT.blend_equation_separate to provide a more Python-friendly API Overview (from the spec) EXT_blend_func_separate introduced separate RGB and alpha blend factors. EXT_blend_minmax introduced a di...
39.763158
72
0.7955
211
1,511
5.57346
0.445498
0.061224
0.068027
0.102041
0.145408
0.106293
0.106293
0.076531
0.076531
0
0
0.003152
0.160159
1,511
38
73
39.763158
0.923562
0.7591
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
true
0
0.777778
0
1
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
1
0
1
0
0
3
e0458194844b2409c5e4f957836953c8d6bd5bd6
226
py
Python
tests/constants_test.py
Preocts/Egg_bot
ae182d10a576950dee6715906e91fe48b13b6608
[ "MIT" ]
1
2019-12-03T17:27:39.000Z
2019-12-03T17:27:39.000Z
tests/constants_test.py
Preocts/Egg_bot
ae182d10a576950dee6715906e91fe48b13b6608
[ "MIT" ]
10
2021-04-22T00:19:56.000Z
2021-07-30T02:59:49.000Z
tests/constants_test.py
Preocts/eggbot
ae182d10a576950dee6715906e91fe48b13b6608
[ "MIT" ]
null
null
null
"""Sanity checks against certain constants""" import pathlib from eggbot import constants def test_path_exists() -> None: """Watch for mistakes in path names""" assert pathlib.Path(constants.FilePaths.exts).is_dir
20.545455
56
0.743363
30
226
5.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.154867
226
10
57
22.6
0.863874
0.318584
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.5
0
0.75
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
1
0
1
0
0
0
0
3
e04691ffc479f7053779a7c12d42757647995118
1,366
py
Python
spec/helper.py
felixsch/receives
0d149e3a24c0377ac60d502736299c9f4348244a
[ "MIT" ]
null
null
null
spec/helper.py
felixsch/receives
0d149e3a24c0377ac60d502736299c9f4348244a
[ "MIT" ]
null
null
null
spec/helper.py
felixsch/receives
0d149e3a24c0377ac60d502736299c9f4348244a
[ "MIT" ]
null
null
null
import sys from contextlib import contextmanager from pytest import raises from mamba import description, describe, before, it, context from receives.context import Context if sys.version_info >= (3, 3): from unittest.mock import MagicMock else: from mock import MagicMock __all__ = ['raises', 'not_raises',...
20.69697
76
0.650073
158
1,366
5.525316
0.449367
0.041237
0.057274
0.061856
0.077892
0
0
0
0
0
0
0.01393
0.264275
1,366
65
77
21.015385
0.854726
0.055637
0
0.113636
0
0
0.107226
0
0
0
0
0
0.022727
1
0.204545
false
0
0.159091
0.136364
0.568182
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
1
1
0
0
3
e065d66e5bc79b002bceafa91ee2378bc695bb87
499
py
Python
server/processes/models/missing_scheduled_execution.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
server/processes/models/missing_scheduled_execution.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
6
2021-11-01T01:35:40.000Z
2022-02-11T03:33:06.000Z
server/processes/models/missing_scheduled_execution.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
import uuid from django.db import models class MissingScheduledExecution(models.Model): class Meta: abstract = True uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True) expected_execution_at = models.DateTimeField() schedule = models.CharField(max_length=1000) ...
26.263158
77
0.709419
56
499
6.178571
0.696429
0.069364
0.182081
0
0
0
0
0
0
0
0
0.01269
0.210421
499
18
78
27.722222
0.865482
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0.076923
0.153846
0
0.769231
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
1
0
0
1
0
0
3
e06f3b927b1b2ed83a93199103fde6d2815a9f00
230
py
Python
src/utils.py
mtanco/wave-template
4a64aa0ecc9e7c75ca06a5e65d188d2ae4e8e805
[ "Apache-2.0" ]
null
null
null
src/utils.py
mtanco/wave-template
4a64aa0ecc9e7c75ca06a5e65d188d2ae4e8e805
[ "Apache-2.0" ]
null
null
null
src/utils.py
mtanco/wave-template
4a64aa0ecc9e7c75ca06a5e65d188d2ae4e8e805
[ "Apache-2.0" ]
null
null
null
def phone_format(n): """Nicely format a number in US phone form""" n = str(n) return format(int(n[:-1]), ",").replace(",", "-") + n[-1] def title_format(x): spaces = x.replace("_", " ") return spaces.title()
23
61
0.552174
33
230
3.757576
0.545455
0.032258
0
0
0
0
0
0
0
0
0
0.011111
0.217391
230
9
62
25.555556
0.677778
0.169565
0
0
0
0
0.027027
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
0ed2d844752726ad3f1fae57aaa88bc0ff8a24f9
17,708
py
Python
metaworld/envs/mujoco/env_dict.py
mcgillmrl/metaworld_v1
800f9414792bc362ff9f90afd5c3a0eb447c657a
[ "MIT" ]
null
null
null
metaworld/envs/mujoco/env_dict.py
mcgillmrl/metaworld_v1
800f9414792bc362ff9f90afd5c3a0eb447c657a
[ "MIT" ]
null
null
null
metaworld/envs/mujoco/env_dict.py
mcgillmrl/metaworld_v1
800f9414792bc362ff9f90afd5c3a0eb447c657a
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np from metaworld.envs.mujoco.sawyer_xyz.sawyer_reach_push_pick_place import SawyerReachPushPickPlaceEnv from metaworld.envs.mujoco.sawyer_xyz.sawyer_door import SawyerDoorEnv from metaworld.envs.mujoco.sawyer_xyz.sawyer_hand_insert import SawyerHandInsertEnv from m...
49.88169
117
0.685848
1,810
17,708
6.5
0.102762
0.061878
0.079473
0.107522
0.788185
0.751976
0.745346
0.701062
0.61003
0.567701
0
0.012508
0.196352
17,708
354
118
50.022599
0.814208
0
0
0.598639
0
0
0.169299
0.011997
0
0
0
0
0
1
0.006803
false
0
0.180272
0
0.193878
0
0
0
0
null
0
0
0
0
1
1
1
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
3
0ee119e0ba20990316714ecf92ad346fa162a1e3
156
py
Python
EstruturaSequencial/02.py
TheCarvalho/atividades-wikipython
9163d5de40dbed0d73917f6257e64a651a77e085
[ "Unlicense" ]
null
null
null
EstruturaSequencial/02.py
TheCarvalho/atividades-wikipython
9163d5de40dbed0d73917f6257e64a651a77e085
[ "Unlicense" ]
null
null
null
EstruturaSequencial/02.py
TheCarvalho/atividades-wikipython
9163d5de40dbed0d73917f6257e64a651a77e085
[ "Unlicense" ]
null
null
null
''' 2. Faça um Programa que peça um número e então mostre a mensagem O número informado foi [número]. ''' num = int(input('Insira um número: ')) print(num)
26
97
0.698718
26
156
4.192308
0.769231
0.146789
0
0
0
0
0
0
0
0
0
0.007752
0.173077
156
5
98
31.2
0.837209
0.621795
0
0
0
0
0.352941
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
0ee483f2857eab60ff9b779a2ec522c73407dc35
182
py
Python
Mundo 1/ex027.py
lucashsbarros/Python_Curso
01f7b5c89636cacc774d38b39951ac2b73272c63
[ "MIT" ]
null
null
null
Mundo 1/ex027.py
lucashsbarros/Python_Curso
01f7b5c89636cacc774d38b39951ac2b73272c63
[ "MIT" ]
null
null
null
Mundo 1/ex027.py
lucashsbarros/Python_Curso
01f7b5c89636cacc774d38b39951ac2b73272c63
[ "MIT" ]
null
null
null
''' Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o ultimo nome separadamente. Ex: Ana Maria de Souza primeiro = Ana último = Souza '''
22.75
119
0.747253
30
182
4.533333
0.766667
0
0
0
0
0
0
0
0
0
0
0
0.192308
182
8
120
22.75
0.92517
0.945055
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
0ee5e984d481203ae4ff17d93f097fb5a070a466
2,515
py
Python
rsqueakvm/model/character.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
44
2015-02-08T09:38:46.000Z
2017-11-15T01:19:40.000Z
rsqueakvm/model/character.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
112
2015-02-08T09:34:40.000Z
2017-04-10T19:06:30.000Z
rsqueakvm/model/character.py
shiplift/RSqueakOnABoat
ac449758ddb7aef1721e65a13171547761dd6e39
[ "BSD-3-Clause" ]
7
2015-04-08T11:49:10.000Z
2017-01-19T06:36:27.000Z
from rsqueakvm import error from rsqueakvm.model.base import W_AbstractObjectWithIdentityHash from rsqueakvm.model.numeric import W_SmallInteger class W_Character(W_AbstractObjectWithIdentityHash): """Boxed char value.""" _attrs_ = ['value'] repr_classname = "W_Character" def __init__(self, value): ...
27.944444
77
0.635785
306
2,515
5.026144
0.267974
0.087776
0.039012
0.039012
0.153446
0.10143
0.10143
0.10143
0.10143
0.10143
0
0.008772
0.274751
2,515
89
78
28.258427
0.83443
0.052087
0
0.169231
0
0
0.018121
0
0
0
0
0
0.015385
1
0.292308
false
0
0.046154
0.138462
0.646154
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
1
1
0
0
3
0eeca23be025528857223440319756e2ff97bccd
4,014
py
Python
M101P/week3/homework_3_1/homework_3_1.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
null
null
null
M101P/week3/homework_3_1/homework_3_1.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
null
null
null
M101P/week3/homework_3_1/homework_3_1.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
null
null
null
import pymongo import json import collections import os from pprint import pprint class Orderable: def __init__(self): pass def equals(self, obj): return NotImplemented def less_than(self, obj): return NotImplemented def less_than_equal(self, obj): return self.le...
20.797927
95
0.630294
504
4,014
4.746032
0.21627
0.038043
0.070652
0.042642
0.265468
0.173077
0.117893
0.039298
0.039298
0.039298
0
0.002349
0.257598
4,014
192
96
20.90625
0.800336
0.005979
0
0.081818
0
0
0.083443
0
0
0
0
0
0
1
0.272727
false
0.009091
0.054545
0.209091
0.590909
0.072727
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
1
1
0
0
3
1601f41f285bca09a7bc88e465b3a97ab3951ce9
190
py
Python
api/hometask/urls.py
Pavel-qy/lx_classroom
dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5
[ "MIT" ]
null
null
null
api/hometask/urls.py
Pavel-qy/lx_classroom
dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5
[ "MIT" ]
null
null
null
api/hometask/urls.py
Pavel-qy/lx_classroom
dfa26c76bd934734cb3c0dc43a1fd42d56be4ad5
[ "MIT" ]
null
null
null
from . import views from django.urls import path urlpatterns = [ path('', views.HometaskList.as_view(), name='hometasks'), path('<int:pk>/', views.HometaskDetail.as_view()), ]
21.111111
61
0.663158
23
190
5.391304
0.652174
0.096774
0
0
0
0
0
0
0
0
0
0
0.163158
190
8
62
23.75
0.779874
0
0
0
0
0
0.094737
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
160aeb45495e6524e09a7725e30bd2a48155cb01
1,101
py
Python
manga_py/providers/truyen_vnsharing_site.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
manga_py/providers/truyen_vnsharing_site.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
manga_py/providers/truyen_vnsharing_site.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
from manga_py.provider import Provider from .helpers.std import Std class TruyenVnsharingSite(Provider, Std): def get_chapter_index(self) -> str: re = self.re.compile(r'_(\d+(?:\.\d+)?)[^\d]?') ch = self.chapter return '-'.join(re.search(ch).group(1).split('.')) def get_content(self)...
26.853659
75
0.573115
136
1,101
4.455882
0.455882
0.059406
0.056106
0.049505
0
0
0
0
0
0
0
0.002427
0.251589
1,101
40
76
27.525
0.73301
0.008174
0
0
0
0
0.144954
0.066055
0
0
0
0.025
0
1
0.25
false
0.035714
0.071429
0.071429
0.571429
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
1
0
0
0
0
1
0
0
3
160fa2955fbadcf81eeb1bdbbc7c0dda59f9bdd2
158
py
Python
qt__pyqt__pyside__pyqode/GIPHY__gif/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
qt__pyqt__pyside__pyqode/GIPHY__gif/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
qt__pyqt__pyside__pyqode/GIPHY__gif/config.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://developers.giphy.com/dashboard/ GIPHY_API_KEY = '<GIPHY_API_KEY>'
17.555556
49
0.683544
21
158
4.761905
0.809524
0.16
0.22
0
0
0
0
0
0
0
0
0.014388
0.120253
158
8
50
19.75
0.705036
0.575949
0
0
0
0
0.359375
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
16417e73b3b72162b4b249da4d4e302f89ee63b9
1,470
py
Python
Lib/fontTools/ttLib/__init__.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
38,667
2015-01-01T00:15:34.000Z
2022-03-31T22:57:03.000Z
Lib/fontTools/ttLib/__init__.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
1,192
2015-01-03T07:59:34.000Z
2022-03-31T13:22:26.000Z
Lib/fontTools/ttLib/__init__.py
odidev/fonttools
27b5f568f562971d7fbf64eeb027ea61e4939db4
[ "Apache-2.0", "MIT" ]
11,269
2015-01-01T08:41:17.000Z
2022-03-31T16:12:52.000Z
"""fontTools.ttLib -- a package for dealing with TrueType fonts. This package offers translators to convert TrueType fonts to Python objects and vice versa, and additionally from Python to TTX (an XML-based text format) and vice versa. Example interactive session: Python 1.5.2c1 (#43, Mar 9 1999, 13:06:43) [CW PPC...
24.915254
73
0.721088
201
1,470
5.253731
0.547264
0.170455
0.022727
0
0
0
0
0
0
0
0
0.033437
0.12517
1,470
58
74
25.344828
0.787714
0.710204
0
0
0
0
0.074699
0
0
0
0
0
0
1
0.1
false
0.1
0.5
0
0.7
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
0
0
0
1
1
0
1
0
0
3
16425cf8e99e9e7acecb6a4c7646849cbd4695ef
93
py
Python
sum_seq/python/sum_seq.py
menshikh-iv/sum_seq_bench_pytup
96b5d90a5da65716e06096f98b34f3d5b0316add
[ "MIT" ]
null
null
null
sum_seq/python/sum_seq.py
menshikh-iv/sum_seq_bench_pytup
96b5d90a5da65716e06096f98b34f3d5b0316add
[ "MIT" ]
null
null
null
sum_seq/python/sum_seq.py
menshikh-iv/sum_seq_bench_pytup
96b5d90a5da65716e06096f98b34f3d5b0316add
[ "MIT" ]
null
null
null
def sum_seq(n): result = 0 for i in range(n): result += i return result
13.285714
22
0.526882
15
93
3.2
0.733333
0.291667
0
0
0
0
0
0
0
0
0
0.017241
0.376344
93
6
23
15.5
0.810345
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
164774f87482aecd8b8b22908c0df0d211b6c298
27,546
py
Python
bitmovin_api_sdk/models/stream_infos_details.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/stream_infos_details.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/models/stream_infos_details.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.live_encoding_codec import LiveEncodingCodec from bitmovin_api_sdk.models.media_type import MediaType import pprint import six class StreamInfosDetail...
39.127841
202
0.669607
3,603
27,546
4.785457
0.041077
0.150331
0.108572
0.083517
0.858485
0.807447
0.72248
0.658392
0.654216
0.576963
0
0.000099
0.262942
27,546
703
203
39.183499
0.849136
0.365207
0
0.18125
0
0
0.142884
0.079975
0
0
0
0
0
1
0.1375
false
0
0.021875
0
0.24375
0.00625
0
0
0
null
0
0
0
1
1
1
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
3
165a93ba7ba8bb768ead6c3ee847c5341a19684e
809
py
Python
tethysext/atcore/tests/unit_tests/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
3
2020-11-05T23:50:47.000Z
2021-02-26T21:43:29.000Z
tethysext/atcore/tests/unit_tests/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
7
2020-10-29T16:53:49.000Z
2021-05-07T19:46:47.000Z
tethysext/atcore/tests/unit_tests/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
null
null
null
""" ******************************************************************************** * Name: model_database_connection.py * Author: nswain * Created On: June 07, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ import unittest from tethysext.atcore....
26.966667
96
0.559951
68
809
6.5
0.544118
0.058824
0.104072
0.18552
0.217195
0.217195
0
0
0
0
0
0.014925
0.171817
809
29
97
27.896552
0.644776
0.337454
0
0.4
0
0
0
0
0
0
0
0
0.133333
1
0.266667
false
0.133333
0.133333
0
0.466667
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
1
0
1
0
0
0
0
0
3
166153051f84a99e1703c003d79b6fde2de9e179
1,468
py
Python
stubs.min/System/ComponentModel/__init___parts/DefaultPropertyAttribute.py
denfromufa/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2017-07-07T11:15:45.000Z
2017-07-07T11:15:45.000Z
stubs.min/System/ComponentModel/__init___parts/DefaultPropertyAttribute.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/ComponentModel/__init___parts/DefaultPropertyAttribute.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class DefaultPropertyAttribute(Attribute,_Attribute): """ Specifies the default property for a component. DefaultPropertyAttribute(name: str) """ def Equals(self,obj): """ Equals(self: DefaultPropertyAttribute,obj: object) -> bool Returns whether the value of the given object is equal to ...
29.36
215
0.676431
184
1,468
5.065217
0.369565
0.021459
0.051502
0.061159
0.19206
0.19206
0.19206
0.19206
0.19206
0.121245
0
0.001732
0.213215
1,468
49
216
29.959184
0.805195
0.563352
0
0.375
0
0
0
0
0
0
0
0
0
1
0.375
false
0.375
0
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
1
0
1
0
0
1
0
0
3
166553be6c666a8244ca70b31c83e0f3cde69118
297
py
Python
projetoFinal/gestao_clientes/clientes/forms.py
CBressan/Django
9abcf23a5f8578357517bf33f91f744fc383e677
[ "Apache-2.0" ]
null
null
null
projetoFinal/gestao_clientes/clientes/forms.py
CBressan/Django
9abcf23a5f8578357517bf33f91f744fc383e677
[ "Apache-2.0" ]
null
null
null
projetoFinal/gestao_clientes/clientes/forms.py
CBressan/Django
9abcf23a5f8578357517bf33f91f744fc383e677
[ "Apache-2.0" ]
null
null
null
from django.forms import ModelForm from .models import Pessoa class PersonForm(ModelForm): class Meta: # dizemos ao Django qual modelo deverá ser usado para criar este formulário (model = Pessoa) model = Pessoa fields = ['first_name', 'last_name', 'age', 'salary', 'photo']
33
109
0.700337
38
297
5.421053
0.763158
0.106796
0
0
0
0
0
0
0
0
0
0
0.205387
297
8
110
37.125
0.872881
0.30303
0
0
0
0
0.160976
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
1678b01d25c5f01f3c37ee0b6880dad1a8ceb17d
415
py
Python
liaoxuefeng.com/011-Slice.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/011-Slice.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/011-Slice.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
# !/usr/bin/env python # coding: utf-8 l = ['Micheal', 'Sarah', 'Tracy', 'Bob', 'Jack'] print l r = [] n = 3 for i in range(n): r.append(l[i]) print r # Slice print l[0:3] print l[:3] print l[1:3] print l[-2:-1] l = range(100) print l print l[:10] print l[-10:] print l[10:20] # 前10个数,每两个取一个 print l[:10:...
8.645833
48
0.551807
83
415
2.759036
0.433735
0.31441
0.139738
0.113537
0.104803
0.104803
0
0
0
0
0
0.105263
0.221687
415
47
49
8.829787
0.603715
0.154217
0
0.095238
0
0
0.091176
0
0
0
0
0
0
0
null
null
0
0
null
null
0.714286
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
1
0
0
0
0
0
0
1
0
3
167b66d3c90bd03fb55f44987936f79390a63630
3,603
py
Python
scripts/signal_extraction.py
Tereshchenkolab/digitize-ecg-cli
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
6
2021-06-12T08:20:33.000Z
2022-03-01T15:32:35.000Z
scripts/signal_extraction.py
Tereshchenkolab/ecg-digitize
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
null
null
null
scripts/signal_extraction.py
Tereshchenkolab/ecg-digitize
fa5a17c5390a11ce07e39e6a8eecb56ed38b16a1
[ "MIT" ]
null
null
null
#!$HOME/.pyenv/shims/python # coding: utf-8 import os from pathlib import Path if 'PYTHONPATH' not in os.environ: print("Error: Run `source env.sh` to be able to run `/scripts/*.py`") exit(1) import ecgdigitize from ecgdigitize import visualization from ecgdigitize.image import BinaryImage, ColorImage, openI...
33.990566
163
0.710797
439
3,603
5.763098
0.339408
0.213439
0.237154
0.120949
0.413043
0.114229
0.07747
0.07747
0.07747
0.07747
0
0.172004
0.159312
3,603
106
163
33.990566
0.663255
0.095476
0
0.153846
0
0
0.50984
0.458487
0
0
0
0.009434
0
1
0.025641
false
0
0.089744
0
0.115385
0.025641
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
169b7339de537b5f93d986463af3d497660ae102
142
py
Python
app/parsing/schemas.py
krutikhinata/text-analysis-service
21ea77afb2d2d3f20bc12efabed33964bcc14b49
[ "MIT" ]
null
null
null
app/parsing/schemas.py
krutikhinata/text-analysis-service
21ea77afb2d2d3f20bc12efabed33964bcc14b49
[ "MIT" ]
null
null
null
app/parsing/schemas.py
krutikhinata/text-analysis-service
21ea77afb2d2d3f20bc12efabed33964bcc14b49
[ "MIT" ]
null
null
null
from pydantic import BaseModel class ParsedText(BaseModel): file_name: str file_extension: str file_size: int content: str
14.2
30
0.71831
18
142
5.5
0.722222
0.141414
0
0
0
0
0
0
0
0
0
0
0.232394
142
9
31
15.777778
0.908257
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.166667
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
16a2a985b6f3b59bfe10ee64932814411ad2bf99
83
py
Python
wikibase/__init__.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
2
2018-06-08T15:04:39.000Z
2018-08-01T12:26:31.000Z
wikibase/__init__.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
null
null
null
wikibase/__init__.py
M3zZ/heimdall
c5f8eadf4fdf13f7b7853401a2b14d382bf44c46
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- from os import path __wikipath__ = path.dirname(__file__)
16.6
37
0.686747
11
83
4.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0.014286
0.156627
83
4
38
20.75
0.685714
0.253012
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
16d1013400f0d5bfd6c05858a3438030b1f5ee36
869
py
Python
index_app/migrations/0002_auto_20211223_0422.py
mugwaneza/caets
005103f5eeda768ace9cde322f19c11f229768ba
[ "BSD-2-Clause" ]
null
null
null
index_app/migrations/0002_auto_20211223_0422.py
mugwaneza/caets
005103f5eeda768ace9cde322f19c11f229768ba
[ "BSD-2-Clause" ]
null
null
null
index_app/migrations/0002_auto_20211223_0422.py
mugwaneza/caets
005103f5eeda768ace9cde322f19c11f229768ba
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.2.7 on 2021-12-23 02:22 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('index_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='chat_keys', name='c...
28.966667
95
0.622555
91
869
5.747253
0.450549
0.126195
0.14914
0.166348
0.617591
0.617591
0.617591
0.617591
0.617591
0.617591
0
0.029734
0.264672
869
29
96
29.965517
0.788732
0.051784
0
0.478261
1
0
0.148418
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
1
0
0
0
0
0
1
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
3
16d901fdbcb99dd0d9e9a9432621ae0818c9a293
434
py
Python
OnlineCourseRegistration/users/migrations/0002_auto_20181116_0440.py
suhastanmay/Online-Course-Registration
aae4bc37a9dbb50aa0765ab5fc0fb379349188e9
[ "MIT" ]
null
null
null
OnlineCourseRegistration/users/migrations/0002_auto_20181116_0440.py
suhastanmay/Online-Course-Registration
aae4bc37a9dbb50aa0765ab5fc0fb379349188e9
[ "MIT" ]
null
null
null
OnlineCourseRegistration/users/migrations/0002_auto_20181116_0440.py
suhastanmay/Online-Course-Registration
aae4bc37a9dbb50aa0765ab5fc0fb379349188e9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-11-16 04:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='customuser', name='is_student', ), ...
19.727273
47
0.562212
42
434
5.690476
0.714286
0.175732
0.217573
0.251046
0.384937
0.384937
0.384937
0
0
0
0
0.064846
0.324885
434
21
48
20.666667
0.750853
0.103687
0
0.4
1
0
0.147287
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.266667
0
0
0
0
null
0
1
1
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
3
16e3238e80f2d095b3ca890122d91426d867a083
277
py
Python
src/opera/parser/tosca/void.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/void.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/void.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
from opera.parser.yaml.node import Node from .base import Base class Void(Base): """ Marker for parts of the document that should be parsed after initial semantic analysis. """ @property def bare(self): return Node(self.data, self.loc).bare
18.466667
72
0.66787
39
277
4.74359
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.245487
277
14
73
19.785714
0.885167
0.314079
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
bc430cc90177a51ac00d703b64734be3f539cabd
79
py
Python
contar.py
lucassilva973/primeirocodigo
bb425316b02089de0c3a5e958f926f0f844e890e
[ "MIT" ]
null
null
null
contar.py
lucassilva973/primeirocodigo
bb425316b02089de0c3a5e958f926f0f844e890e
[ "MIT" ]
null
null
null
contar.py
lucassilva973/primeirocodigo
bb425316b02089de0c3a5e958f926f0f844e890e
[ "MIT" ]
null
null
null
print("este programa conta de 1 a 10") for x in range(1,11): print(x)
15.8
38
0.607595
16
79
3
0.8125
0
0
0
0
0
0
0
0
0
0
0.103448
0.265823
79
4
39
19.75
0.724138
0
0
0
0
0
0.367089
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
bc5559eb9cc910855c46e491c48065222e2878f3
94
py
Python
selfdrive/hardware/__init__.py
JoeOIVOV/ArnePilot
82c71c6f5af1ba504b748940f22cc0ac98692662
[ "MIT" ]
116
2018-03-07T09:00:10.000Z
2020-04-06T18:37:45.000Z
selfdrive/hardware/__init__.py
JoeOIVOV/ArnePilot
82c71c6f5af1ba504b748940f22cc0ac98692662
[ "MIT" ]
49
2018-09-14T19:05:27.000Z
2020-03-30T11:46:54.000Z
selfdrive/hardware/__init__.py
JoeOIVOV/ArnePilot
82c71c6f5af1ba504b748940f22cc0ac98692662
[ "MIT" ]
143
2018-10-12T18:21:21.000Z
2020-04-06T00:16:36.000Z
import os EON = os.path.isfile('/EON') TICI = os.path.isfile('/TICI') PC = not (EON or TICI)
15.666667
30
0.638298
17
94
3.529412
0.529412
0.2
0.4
0
0
0
0
0
0
0
0
0
0.159574
94
5
31
18.8
0.759494
0
0
0
0
0
0.095745
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
bc5835d2e2eb5292591c840e80fa5cf3fc905690
5,158
py
Python
third_party/buildbot_8_4p1/buildbot/test/regressions/test_oldpaths.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
third_party/buildbot_8_4p1/buildbot/test/regressions/test_oldpaths.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
third_party/buildbot_8_4p1/buildbot/test/regressions/test_oldpaths.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
34.851351
79
0.731291
609
5,158
6.059113
0.272578
0.097561
0.095393
0.081301
0.311111
0.202981
0.063957
0.039024
0.039024
0.039024
0
0.003764
0.227414
5,158
147
80
35.088435
0.922208
0.226057
0
0.044944
0
0
0
0
0
0
0
0
0.303371
1
0.314607
false
0.033708
0.359551
0
0.685393
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
1
0
1
0
0
3
bc61071f0566f1d4abae6a75b945b6abf288c133
567
py
Python
h1st/trust/decision.py
Adatao/H1st
c6a92f303d150664fe49f7f41e23b473b4a5d17f
[ "Apache-2.0" ]
796
2020-08-13T07:28:45.000Z
2022-03-24T04:28:02.000Z
h1st/trust/decision.py
Adatao/H1st
c6a92f303d150664fe49f7f41e23b473b4a5d17f
[ "Apache-2.0" ]
67
2020-08-17T20:53:38.000Z
2022-03-29T04:42:43.000Z
h1st/trust/decision.py
Adatao/H1st
c6a92f303d150664fe49f7f41e23b473b4a5d17f
[ "Apache-2.0" ]
104
2020-08-16T06:03:30.000Z
2022-01-25T10:46:10.000Z
class Decision: """ A Decision is one that stores all relevant details pertaining to the decision that was made by the Model or Graph, the dataset that was used and the Model or Graph that was used to make the decision. For example, `what data was used to train the model`, `how many features were us...
31.5
81
0.686067
86
567
4.488372
0.476744
0.103627
0.051813
0.07772
0.098446
0
0
0
0
0
0
0
0.262787
567
17
82
33.352941
0.923445
0.617284
0
0.428571
0
0
0
0
0
0
0
0
0
1
0.428571
false
0.428571
0
0
0.571429
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
1
0
0
1
0
0
3
bc8480bfb43bedaee8fd38443b660cc791cf321c
49,450
py
Python
tensorflow/python/ops/parsing_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
26
2019-11-10T15:33:34.000Z
2022-03-24T19:56:57.000Z
tensorflow/python/ops/parsing_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/parsing_ops.py
lambdabaa/tensorflow
b7e7addbd06c3ba414565f1cd50d734a45f6e12d
[ "Apache-2.0" ]
6
2020-03-29T11:10:53.000Z
2021-06-14T05:39:14.000Z
# Copyright 2015 The TensorFlow Authors. 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 applica...
40.400327
119
0.70087
6,458
49,450
5.210437
0.087643
0.029421
0.017118
0.005349
0.761746
0.729591
0.710333
0.6695
0.628696
0.608517
0
0.008211
0.211911
49,450
1,223
120
40.433361
0.855226
0.575996
0
0.41844
0
0
0.074871
0.013949
0
0
0
0.003271
0.01182
1
0.042553
false
0
0.035461
0.002364
0.132388
0.002364
0
0
0
null
0
0
0
0
1
1
0
0
1
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
3
bc84f2e38952465c5dd8af04a15db723366cad73
155
py
Python
test/integration_test.py
pbecotte/digitalocean_volume_plugin
242e4d23890c5f7aec353dc17af374d201a7b463
[ "MIT" ]
1
2016-10-07T10:12:52.000Z
2016-10-07T10:12:52.000Z
test/integration_test.py
pbecotte/digitalocean_volume_plugin
242e4d23890c5f7aec353dc17af374d201a7b463
[ "MIT" ]
null
null
null
test/integration_test.py
pbecotte/digitalocean_volume_plugin
242e4d23890c5f7aec353dc17af374d201a7b463
[ "MIT" ]
null
null
null
import machine import docker m = machine.Machine(path="/usr/local/bin/docker-machine") client = docker.Client(**m.config(machine='default')) client.ping()
25.833333
57
0.754839
22
155
5.318182
0.545455
0
0
0
0
0
0
0
0
0
0
0
0.070968
155
5
58
31
0.8125
0
0
0
0
0
0.232258
0.187097
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
bcb3eace341e0a730ee06067585fd1ae0fba5939
809
py
Python
estateapp/models.py
michaelgabriel01/estate
334f95e90513696ac840a727930eaa31543fce8c
[ "MIT" ]
null
null
null
estateapp/models.py
michaelgabriel01/estate
334f95e90513696ac840a727930eaa31543fce8c
[ "MIT" ]
5
2020-06-05T19:28:24.000Z
2021-09-08T00:36:03.000Z
estateapp/models.py
michaelgabriel01/estate
334f95e90513696ac840a727930eaa31543fce8c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib import admin class Property(models.Model): description = models.CharField(max_length=255, blank=True) property_id = models.DecimalField(max_length=100, max_digits=10, decimal_places=2) price = models.CharField(max_len...
35.173913
86
0.749073
102
809
5.754902
0.5
0.107325
0.183986
0.245315
0.306644
0.122658
0.122658
0
0
0
0
0.034433
0.138443
809
22
87
36.772727
0.807747
0
0
0
0
0
0.056931
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.944444
0
0
0
0
null
0
1
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
1
0
0
3
bccc643d4130398abb16b2dffab8124de82a663c
329
py
Python
mabel/operators/disk/disk_stream_writer_operator.py
mabel-dev/mabel
ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a
[ "Apache-2.0" ]
null
null
null
mabel/operators/disk/disk_stream_writer_operator.py
mabel-dev/mabel
ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a
[ "Apache-2.0" ]
287
2021-05-14T21:25:26.000Z
2022-03-30T12:02:51.000Z
mabel/operators/disk/disk_stream_writer_operator.py
gva-jjoyce/mabel
eb99e02d0287b851e65ad9a75b5f4188805d4ec9
[ "Apache-2.0" ]
1
2021-04-29T18:18:20.000Z
2021-04-29T18:18:20.000Z
from ...flows.internals.base_writer_operator import BaseWriterOperator from ...data import StreamWriter # type:ignore from ...adapters.disk import DiskWriter class DiskStreamWriterOperator(BaseWriterOperator): def __init__(self, **kwargs): super().__init__(writer=StreamWriter, inner_writer=DiskWriter, *...
32.9
80
0.781155
34
329
7.235294
0.676471
0
0
0
0
0
0
0
0
0
0
0
0.115502
329
9
81
36.555556
0.845361
0.033435
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
bcd0271a5b7298854380268a2e5555c345843bcd
371
py
Python
main/SteeringPanel/steering_panel_demo/Simulation/steering_panel_demo.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SteeringPanel/steering_panel_demo/Simulation/steering_panel_demo.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/SteeringPanel/steering_panel_demo/Simulation/steering_panel_demo.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from .steering_panel_demo_steppables import VolumeSteeringSteppable from .steering_panel_demo_steppables import SurfaceSteeringSteppable import cc3d.CompuCellSetup as CompuCellSetup CompuCellSetup.register_steppable(steppable=VolumeSteeringSteppable(frequency=1)) CompuCellSetup.register_steppable(steppable=SurfaceStee...
37.1
82
0.897574
35
371
9.285714
0.457143
0.073846
0.104615
0.129231
0.227692
0.227692
0
0
0
0
0
0.008499
0.048518
371
9
83
41.222222
0.912181
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
bcd4b6f5e5b9e788094ea8fe3f5734139ab6899f
252
py
Python
ramda/binary.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
56
2018-08-06T08:44:58.000Z
2022-03-17T09:49:03.000Z
ramda/binary.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
28
2019-06-17T11:09:52.000Z
2022-02-18T16:59:21.000Z
ramda/binary.py
jakobkolb/ramda.py
982b2172f4bb95b9a5b09eff8077362d6f2f0920
[ "MIT" ]
5
2019-09-18T09:24:38.000Z
2021-07-21T08:40:23.000Z
from .n_ary import n_ary def binary(f): """Wraps a function of any arity (including nullary) in a function that accepts exactly 2 parameters. Any extraneous parameters will not be passed to the supplied function""" return n_ary(2, f)
28
83
0.722222
41
252
4.365854
0.731707
0.067039
0
0
0
0
0
0
0
0
0
0.010101
0.214286
252
8
84
31.5
0.893939
0.666667
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
3
bcd8f51e32a9ca7aa3f34e422600219e5a99fca6
3,530
py
Python
Operator_Components/Operator_CR/introspection.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
null
null
null
Operator_Components/Operator_CR/introspection.py
mydata-sdk/mydata-sdk-1.x
74064d7a42fc0435511eae6e77e49ddc7d9723f3
[ "MIT" ]
2
2018-04-21T04:09:46.000Z
2018-04-30T21:54:09.000Z
Operator_Components/Operator_CR/introspection.py
fititnt/mydata-sdk--hiit
19d7a2ddbc3b5a05665539fbcc7f461c13793e03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import traceback from json import dumps from DetailedHTTPException import error_handler, DetailedHTTPException from flask import Blueprint, current_app from flask_restful import Api, Resource from helpers import AccountManagerHandler from helpers import Helpers api_CR_blueprint ...
44.683544
128
0.659773
416
3,530
5.358173
0.252404
0.043069
0.071781
0.061911
0.729475
0.729475
0.696276
0.696276
0.696276
0.696276
0
0.004895
0.247592
3,530
78
129
45.25641
0.834337
0.031445
0
0.634921
0
0
0.222881
0.074985
0
0
0
0
0
1
0.063492
false
0.063492
0.126984
0
0.253968
0.047619
0
0
0
null
0
0
0
0
1
0
0
0
1
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
3
bcddf5ce0a13203ce42ed3712f80318b8539a2d9
176
py
Python
landingpage/core/forms.py
eltonjncorreia/edsistemas
5363d5ed453f20a86487193c8655269c929a8d4e
[ "MIT" ]
null
null
null
landingpage/core/forms.py
eltonjncorreia/edsistemas
5363d5ed453f20a86487193c8655269c929a8d4e
[ "MIT" ]
null
null
null
landingpage/core/forms.py
eltonjncorreia/edsistemas
5363d5ed453f20a86487193c8655269c929a8d4e
[ "MIT" ]
null
null
null
from django import forms from landingpage.core.models import Contato class ContatoForm(forms.ModelForm): class Meta: model = Contato fields = '__all__'
16
43
0.698864
20
176
5.95
0.75
0
0
0
0
0
0
0
0
0
0
0
0.238636
176
10
44
17.6
0.88806
0
0
0
0
0
0.039773
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
1
0
0
3
4c08800d7fb3d9df5313a736a1d8ce59dda5657f
191
py
Python
tritest.py
chengdezhi/language_model_for_typing
0e63e687e5a8e00b68c6a5cdb62e345588fc4b29
[ "MIT" ]
null
null
null
tritest.py
chengdezhi/language_model_for_typing
0e63e687e5a8e00b68c6a5cdb62e345588fc4b29
[ "MIT" ]
null
null
null
tritest.py
chengdezhi/language_model_for_typing
0e63e687e5a8e00b68c6a5cdb62e345588fc4b29
[ "MIT" ]
null
null
null
from data_utils import Vocabulary import datrie vocab = Vocabulary.from_file("1b_word_vocab.txt") trie = datrie.Trie.load("data/vocab_trie") print vocab.get_token(238) print trie.keys(u'F')
23.875
49
0.790576
32
191
4.53125
0.625
0
0
0
0
0
0
0
0
0
0
0.022989
0.089005
191
7
50
27.285714
0.810345
0
0
0
0
0
0.172775
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
3
4c2180e4c347956b30178846c85c5f8e4f1e78eb
226
py
Python
constructor exmaple.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
constructor exmaple.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
constructor exmaple.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
'''class Demo: def __init__(self,name,place,age): self.name=name self.place=place self.age=age def __str__(self): return self.name p1=Demo('ocean','pondicherry',21) print(p1)''' print()
20.545455
38
0.60177
31
226
4.129032
0.483871
0.1875
0
0
0
0
0
0
0
0
0
0.023256
0.238938
226
10
39
22.6
0.72093
0.933628
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
3
4c363f8eb69d4951a2cbcaf7b8441933ec9ff693
361
py
Python
papermerge/test/metaplugin/__init__.py
amo13/papermerge
d188acb01c7e2e7086d216cd496e65030d48ae52
[ "Apache-2.0" ]
1
2020-09-28T06:04:38.000Z
2020-09-28T06:04:38.000Z
papermerge/test/metaplugin/__init__.py
amo13/papermerge
d188acb01c7e2e7086d216cd496e65030d48ae52
[ "Apache-2.0" ]
null
null
null
papermerge/test/metaplugin/__init__.py
amo13/papermerge
d188acb01c7e2e7086d216cd496e65030d48ae52
[ "Apache-2.0" ]
1
2020-11-17T16:20:05.000Z
2020-11-17T16:20:05.000Z
""" A general meta plugin dummy """ class Dummy: SIMPLE_KEYS = [ 'label_key_1', 'label_key_2', ] def extract(self, hocr): result = { 'simple_keys': { 'label_key_1': 'value_1', 'label_key_2': 'value_2', }, 'comp_k...
15.695652
41
0.434903
36
361
4
0.555556
0.222222
0.208333
0.25
0.263889
0
0
0
0
0
0
0.029557
0.437673
361
22
42
16.409091
0.679803
0.074792
0
0
0
0
0.236196
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.285714
0
0
0
0
null
1
1
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
3
4c427a560f2358420101d98c6be3f96d9c60acbc
336
py
Python
sendbee_api/automation/models.py
sendbee/sendbee-python-api-client
28722161836d8756bb3debd039b26cda9a23b574
[ "MIT" ]
1
2021-03-28T23:07:20.000Z
2021-03-28T23:07:20.000Z
sendbee_api/automation/models.py
sendbee/sendbee-python-api-client
28722161836d8756bb3debd039b26cda9a23b574
[ "MIT" ]
1
2020-12-08T14:46:04.000Z
2020-12-08T14:46:04.000Z
sendbee_api/automation/models.py
sendbee/sendbee-python-api-client
28722161836d8756bb3debd039b26cda9a23b574
[ "MIT" ]
2
2020-03-05T18:52:44.000Z
2021-04-06T07:05:42.000Z
from sendbee_api.models import Model from sendbee_api.fields import TextField, BooleanField class ChatbotActivityStatus(Model): """Data model for chatbot status""" _conversation_id = TextField(index='conversation_id', desc='Conversation UUID') _chatbot_active = BooleanField(index='chatbot_active', desc='C...
37.333333
83
0.785714
39
336
6.564103
0.538462
0.085938
0.109375
0
0
0
0
0
0
0
0
0
0.119048
336
8
84
42
0.864865
0.08631
0
0
0
0
0.199336
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
4c5bc4a0773ab2eae2a4b2d757324569270406d2
206
py
Python
deepfigures/extraction/__init__.py
Julen-Lujambio/deepfigures_open
7a60f8649fcdb92840451c50e6131b3c513bd49a
[ "Apache-2.0" ]
null
null
null
deepfigures/extraction/__init__.py
Julen-Lujambio/deepfigures_open
7a60f8649fcdb92840451c50e6131b3c513bd49a
[ "Apache-2.0" ]
null
null
null
deepfigures/extraction/__init__.py
Julen-Lujambio/deepfigures_open
7a60f8649fcdb92840451c50e6131b3c513bd49a
[ "Apache-2.0" ]
1
2020-06-26T19:19:53.000Z
2020-06-26T19:19:53.000Z
"""Code for extracting figures from PDFs. This subpackage implements the main functionality for deepfigures, running deep models to detect figures as well as other code to render the pages, etc. """
29.428571
70
0.76699
30
206
5.266667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.184466
206
6
71
34.333333
0.940476
0.932039
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
d5b958147923f06db6a7fdbe2ad481fa3d318312
6,293
py
Python
indico/modules/events/models/reviews.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/modules/events/models/reviews.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/modules/events/models/reviews.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from sqlalchemy.ext.hybrid import hybrid_property from indico.ut...
30.848039
84
0.682981
771
6,293
5.390402
0.238651
0.028874
0.014437
0.020212
0.161213
0.12897
0.107315
0.068816
0.032243
0.032243
0
0.00169
0.247577
6,293
203
85
31
0.87603
0.237248
0
0.203252
0
0
0.019911
0
0
0
0
0
0
1
0.227642
false
0
0.04065
0.121951
0.634146
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
1
1
0
0
3
d5bb8e9bbb6fb9168f249992bc486282556ef941
380
py
Python
blog/views.py
TheEnemyOfSleep/drf-learns
e4278373eb160940eba124b9fa3c106bd68d1cef
[ "MIT" ]
null
null
null
blog/views.py
TheEnemyOfSleep/drf-learns
e4278373eb160940eba124b9fa3c106bd68d1cef
[ "MIT" ]
8
2020-07-20T08:10:01.000Z
2020-08-03T08:34:13.000Z
blog/views.py
TheEnemyOfSleep/drf-learns
e4278373eb160940eba124b9fa3c106bd68d1cef
[ "MIT" ]
null
null
null
from rest_framework import viewsets from .models import Post, Tag from .serializers import PostSerializer, TagSerializer class PostModelViewSet(viewsets.ModelViewSet): queryset = Post.objects.all().order_by('-date_pub') serializer_class = PostSerializer class TagModelViewSet(viewsets.ModelViewSet): query...
31.666667
55
0.794737
41
380
7.243902
0.560976
0.13468
0.188552
0
0
0
0
0
0
0
0
0
0.126316
380
12
56
31.666667
0.894578
0
0
0
0
0
0.023622
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
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
1
0
1
0
0
3
d5c3687cc5fa984b952f81ebc07836b8ce3acba2
195
py
Python
utils/Game.py
anjali1729/FuzzyGame-GOT
c0c27abe760f444f719b988c708d28e60e6edde9
[ "MIT" ]
null
null
null
utils/Game.py
anjali1729/FuzzyGame-GOT
c0c27abe760f444f719b988c708d28e60e6edde9
[ "MIT" ]
null
null
null
utils/Game.py
anjali1729/FuzzyGame-GOT
c0c27abe760f444f719b988c708d28e60e6edde9
[ "MIT" ]
3
2018-10-12T03:55:20.000Z
2019-01-27T06:39:33.000Z
class Game: def isCollision(self,x1,y1,x2,y2,bsize): if x1 >= x2 and x1 <= x2 + bsize: if y1 >= y2 and y1 <= y2 + bsize: return True return False
24.375
45
0.497436
28
195
3.464286
0.535714
0.14433
0
0
0
0
0
0
0
0
0
0.101695
0.394872
195
8
46
24.375
0.720339
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
d5d09980516177ad01e8da5ab071a4d18f44acc4
135
py
Python
libraries/functional-tests/functionaltestbot/flask_bot_app/__init__.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
388
2019-05-07T15:53:21.000Z
2022-03-28T20:29:46.000Z
libraries/functional-tests/functionaltestbot/flask_bot_app/__init__.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
1,286
2019-05-07T23:38:19.000Z
2022-03-31T10:44:16.000Z
libraries/functional-tests/functionaltestbot/flask_bot_app/__init__.py
Fl4v/botbuilder-python
4003d713beb8fb986a01cfd11632eabc65858618
[ "MIT" ]
168
2019-05-14T20:23:25.000Z
2022-03-16T06:49:14.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .app import APP __all__ = ["APP"]
19.285714
59
0.733333
18
135
5.277778
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.17037
135
6
60
22.5
0.848214
0.659259
0
0
0
0
0.069767
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
d5d9ee7ae7c7e9ea796f969a5823270e542c5c04
896
py
Python
tests/test_datasets/test_clickhouse_sequence.py
transferwise/neural-lifetimes
59d0ee2b7413bc44d2f45be9d71c491d29df6c58
[ "Apache-2.0" ]
2
2022-03-28T15:39:14.000Z
2022-03-29T23:59:36.000Z
tests/test_datasets/test_clickhouse_sequence.py
transferwise/neural-lifetimes
59d0ee2b7413bc44d2f45be9d71c491d29df6c58
[ "Apache-2.0" ]
null
null
null
tests/test_datasets/test_clickhouse_sequence.py
transferwise/neural-lifetimes
59d0ee2b7413bc44d2f45be9d71c491d29df6c58
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import pytest from neural_lifetimes.data.datasets import ClickhouseSequenceDataset TIME_COL = "transaction_time" UID_COL = "uid" @pytest.fixture def start_date(): return datetime(2020, 1, 1) @pytest.fixture def uids(): return list(range(1, 11)) def _construct_dataset(): ...
17.92
68
0.708705
117
896
5.188034
0.410256
0.098847
0.14827
0.177924
0.378913
0.342669
0.342669
0.273476
0.151565
0.151565
0
0.012766
0.21317
896
49
69
18.285714
0.848227
0
0
0.424242
0
0
0.021205
0
0
0
0
0
0.181818
1
0.272727
false
0
0.090909
0.090909
0.515152
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
1
0
0
0
0
1
0
0
3
d5e0704d095065dbc09ca4a02a555080b906b6a3
729
py
Python
lampi/hardware/serial_unit.py
maxlampe/Lampi
3fe0dfedce3b9baaead33227121098c02ff8e813
[ "MIT" ]
null
null
null
lampi/hardware/serial_unit.py
maxlampe/Lampi
3fe0dfedce3b9baaead33227121098c02ff8e813
[ "MIT" ]
null
null
null
lampi/hardware/serial_unit.py
maxlampe/Lampi
3fe0dfedce3b9baaead33227121098c02ff8e813
[ "MIT" ]
null
null
null
"""Module for base class to be inherited for different serial hardware modules""" import numpy as np class SerialUnit: """Base class for all hardware units to be """ def __init__(self, port: str, baud_rate: int): self._port = port self._baud_rate = baud_rate def __call__(self, *args, **...
23.516129
81
0.615912
94
729
4.56383
0.531915
0.055944
0.065268
0
0
0
0
0
0
0
0
0
0.281207
729
30
82
24.3
0.818702
0.371742
0
0.266667
0
0
0
0
0
0
0
0
0
1
0.4
false
0.266667
0.066667
0
0.533333
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
1
0
0
1
0
0
3
d5f4c866687746f5c94b6e78b6b0a400047c7bb5
266
py
Python
MaxSumSubArray.py
fortesit/Codility-solutions
43a7f2364038db774c99ca7fe3d177cdb31ffd41
[ "MIT" ]
null
null
null
MaxSumSubArray.py
fortesit/Codility-solutions
43a7f2364038db774c99ca7fe3d177cdb31ffd41
[ "MIT" ]
null
null
null
MaxSumSubArray.py
fortesit/Codility-solutions
43a7f2364038db774c99ca7fe3d177cdb31ffd41
[ "MIT" ]
null
null
null
#!/usr/bin/env python input = [1, -2, 3, 10, -4, 7, 2, -5] part_sum = 0 max = 0 for i in range(len(input)): if input[i] + part_sum > 0: part_sum += input[i] if part_sum > max: max = part_sum else: part_sum = 0 print max
17.733333
36
0.515038
47
266
2.787234
0.510638
0.320611
0.183206
0
0
0
0
0
0
0
0
0.073864
0.338346
266
15
37
17.733333
0.670455
0.075188
0
0.181818
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.090909
0
0
0
null
1
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
1
0
0
0
0
0
0
0
0
3
910313d5fa7300a35acc7ceb41ef0450c67c2bbd
13,436
py
Python
test/test_sixrd.py
pogobanane/vpp-fork
fccc95ae06e98a1605c4600b1e441811b67abfa8
[ "Apache-2.0" ]
2
2019-04-03T10:09:09.000Z
2020-09-23T08:56:24.000Z
test/test_sixrd.py
pogobanane/vpp-fork
fccc95ae06e98a1605c4600b1e441811b67abfa8
[ "Apache-2.0" ]
2
2021-03-20T05:38:00.000Z
2021-06-02T03:49:49.000Z
test/test_sixrd.py
AbduSami-bK/vpp
ad3f68b9d8c27206ab5dfbf129352a1c844a7004
[ "Apache-2.0" ]
1
2019-03-12T18:19:23.000Z
2019-03-12T18:19:23.000Z
#!/usr/bin/env python """ 6RD RFC5969 functional tests """ import unittest from scapy.layers.inet import IP, UDP, Ether from scapy.layers.inet6 import IPv6 from scapy.packet import Raw from framework import VppTestCase, VppTestRunner from vpp_ip import DpoProto from vpp_ip_route import VppIpRoute, VppRoutePath, VppIpT...
38.062323
79
0.542349
1,918
13,436
3.567258
0.090198
0.043993
0.042093
0.046039
0.745835
0.735019
0.711488
0.695118
0.685326
0.672172
0
0.092607
0.33053
13,436
352
80
38.170455
0.668038
0.033567
0
0.590734
0
0
0.041469
0
0
0
0.000778
0
0.042471
1
0.057915
false
0
0.030888
0.003861
0.096525
0
0
0
0
null
0
0
0
0
1
1
0
0
1
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
3
91134a98b38ce0488e1e88d71f8ea387f9cca808
267
py
Python
chap5/toppings.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
null
null
null
chap5/toppings.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
null
null
null
chap5/toppings.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
1
2019-03-05T09:31:27.000Z
2019-03-05T09:31:27.000Z
requested_toppings = ['mushrooms', 'extra cheese'] if requested_toppings: for requested_topping in requested_toppings: print('Adding ' + requested_topping ) print('\nFinished making your pizza') else: print('Are you sure you want a plain pizza?')
33.375
50
0.719101
33
267
5.666667
0.666667
0.272727
0
0
0
0
0
0
0
0
0
0
0.183521
267
8
51
33.375
0.857798
0
0
0
0
0
0.343284
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
91373743141e577dcbdc22838e0c93cfc222a5cc
241
py
Python
Application/get_whitelist.py
soheyldaliraan/instagram_sub_bot_remover
8ccf7134c79b8a9c9c09413321f526dd388c5609
[ "MIT" ]
27
2019-02-10T09:04:36.000Z
2022-03-07T21:44:26.000Z
Application/get_whitelist.py
soheyldaliraan/instagram_sub_bot_remover
8ccf7134c79b8a9c9c09413321f526dd388c5609
[ "MIT" ]
1
2022-03-01T02:45:18.000Z
2022-03-01T02:45:18.000Z
Application/get_whitelist.py
soheyldaliraan/instagram_sub_bot_remover
8ccf7134c79b8a9c9c09413321f526dd388c5609
[ "MIT" ]
5
2019-12-27T07:43:33.000Z
2022-02-15T19:51:37.000Z
import os import pandas as pd import configuration def get_whitelist(): if os.path.exists(configuration.whitelist_path): whitelist = pd.read_csv(configuration.whitelist_path) return list(whitelist['pk']) return []
20.083333
61
0.717842
30
241
5.633333
0.566667
0.260355
0.307692
0
0
0
0
0
0
0
0
0
0.190871
241
11
62
21.909091
0.866667
0
0
0
0
0
0.008299
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.75
0
0
0
0
null
1
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
1
0
0
0
0
3
9140df6b86611d9bb8cc33a8e4db28e80428898e
127
py
Python
TSSystem/apps/main_platform/apps.py
LittleBai0606/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
null
null
null
TSSystem/apps/main_platform/apps.py
LittleBai0606/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
5
2020-06-05T18:13:28.000Z
2022-02-11T03:39:14.000Z
TSSystem/apps/main_platform/apps.py
WhiteBrownBottle/TeachingSecretarySystem
c9067b83f8e1edaf06974db73b7cc47a5b49e0d4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MainPlatformConfig(AppConfig): name = 'main_platform' verbose_name = u'主平台'
15.875
36
0.740157
15
127
6.133333
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.181102
127
7
37
18.142857
0.884615
0
0
0
0
0
0.125984
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
91464c8bf06872dceaf1ff930741956c30b6bc06
1,463
py
Python
graphene_validator/errors.py
City-of-Helsinki/graphene-validator
bdfe2ccd82d16d12b71824a5b4e9f4341a31aa9d
[ "MIT" ]
23
2020-04-01T11:41:53.000Z
2022-02-24T16:26:14.000Z
graphene_validator/errors.py
chpmrc/graphene-validator
fb8959a85610664c770fd7adb24e1a077e9ebfb9
[ "MIT" ]
10
2020-04-03T09:30:12.000Z
2021-10-17T19:05:53.000Z
graphene_validator/errors.py
City-of-Helsinki/graphene-validator
bdfe2ccd82d16d12b71824a5b4e9f4341a31aa9d
[ "MIT" ]
3
2021-04-26T11:15:23.000Z
2022-03-04T17:46:43.000Z
# errors.py """ A set of specific validation errors that can be used in different contexts. Ideally specific validation errors should be carefully named and be self explanatory """ from dataclasses import dataclass from typing import Any, Iterable, Mapping from graphql import GraphQLError class ValidationError(Val...
20.319444
88
0.695147
164
1,463
6.067073
0.45122
0.055276
0.048241
0.038191
0.154774
0.154774
0.154774
0.154774
0.154774
0.154774
0
0
0.220096
1,463
71
89
20.605634
0.872042
0.243336
0
0.457143
0
0
0.013245
0
0
0
0
0
0
1
0.171429
false
0.142857
0.085714
0.142857
0.685714
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
1
1
0
0
3
914b3d53e96b68bf95d79b8b430c338d346ef4f3
3,629
py
Python
machine-learning/neural_network/graph1.py
alanxoc3/coursework
3efe61f007c6bc35a9ea3a0d0d151d4e7ee56405
[ "MIT" ]
null
null
null
machine-learning/neural_network/graph1.py
alanxoc3/coursework
3efe61f007c6bc35a9ea3a0d0d151d4e7ee56405
[ "MIT" ]
null
null
null
machine-learning/neural_network/graph1.py
alanxoc3/coursework
3efe61f007c6bc35a9ea3a0d0d151d4e7ee56405
[ "MIT" ]
null
null
null
# Graph - Alan Morgan - Iris - 5 try import numpy as np from matplotlib import pyplot as plt from math import pi as pi per1 = [0.20952380952380953, 0.22857142857142856, 0.23809523809523808, 0.2761904761904762, 0.29523809523809524, 0.3142857142857143, 0.3523809523809524, 0.4, 0.5523809523809524, 0.7142857142857143, 0.7...
139.576923
636
0.766051
488
3,629
5.696721
0.336066
0.067266
0.071223
0.085612
0.572662
0.470504
0.470504
0.407194
0.407194
0.340288
0
0.796274
0.097823
3,629
25
637
145.16
0.052841
0.009369
0
0
0
0
0.011136
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e672e1fdb4e8362948711bfeea5b615988206a7a
382
py
Python
weather/tests/test_forms.py
YaroslavChyhryn/WeatherReminder
868e2956da2a4aa294471ceb8ea5b72289522491
[ "MIT" ]
null
null
null
weather/tests/test_forms.py
YaroslavChyhryn/WeatherReminder
868e2956da2a4aa294471ceb8ea5b72289522491
[ "MIT" ]
null
null
null
weather/tests/test_forms.py
YaroslavChyhryn/WeatherReminder
868e2956da2a4aa294471ceb8ea5b72289522491
[ "MIT" ]
null
null
null
from django.test import TestCase from weather.forms import SubscriptionForm class SubscriptionFormTest(TestCase): def test_city_name_max_length(self): form = SubscriptionForm({'city_name': 'test'*500}) self.assertFalse(form.is_valid()) def test_wrong_period(self): form = SubscriptionF...
29.384615
58
0.712042
45
382
5.844444
0.533333
0.053232
0.18251
0.159696
0.197719
0
0
0
0
0
0
0.012698
0.175393
382
12
59
31.833333
0.822222
0
0
0.222222
0
0
0.049738
0
0
0
0
0
0.222222
1
0.222222
false
0
0.222222
0
0.555556
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
1
0
0
0
0
1
0
0
3