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
7c98bd2a586afc944711743cdad94e6b78cbe2b0
1,282
py
Python
pysper/commands/sperf_default.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
pysper/commands/sperf_default.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
pysper/commands/sperf_default.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DataStax, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
38.848485
92
0.709048
184
1,282
4.869565
0.597826
0.066964
0.029018
0.035714
0
0
0
0
0
0
0
0.015826
0.211388
1,282
32
93
40.0625
0.870425
0.808892
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
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
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
3
7c9e5ec0145e2aaef87860cd35ff89079e558799
246
py
Python
Models/zero_filled_sense/zero_filled_sense.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/zero_filled_sense/zero_filled_sense.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/zero_filled_sense/zero_filled_sense.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
import logging import resource import sys sys.path.append('../../') from collections import defaultdict import numpy as np import torch from tqdm import tqdm from Datasets.FastMRI import multicoil from Datasets.medutils_torch.mri import rss
15.375
43
0.800813
35
246
5.6
0.571429
0.122449
0
0
0
0
0
0
0
0
0
0
0.138211
246
15
44
16.4
0.924528
0
0
0
0
0
0.02449
0
0
0
0
0
0
1
0
true
0
0.9
0
0.9
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
7cae5519a51aff73e588b2443d97c07f917f9a87
174
py
Python
Exercicios propostos/Ex 046 - Contagem.py
luks-rossato/curso-Python3
4d64f7927c23dedcf4e8c37c233d0bb062035029
[ "MIT" ]
null
null
null
Exercicios propostos/Ex 046 - Contagem.py
luks-rossato/curso-Python3
4d64f7927c23dedcf4e8c37c233d0bb062035029
[ "MIT" ]
null
null
null
Exercicios propostos/Ex 046 - Contagem.py
luks-rossato/curso-Python3
4d64f7927c23dedcf4e8c37c233d0bb062035029
[ "MIT" ]
null
null
null
from time import sleep print('Prepare-se para os fogos de artificio!\nVai começar em:') for i in range(11,0,-1): print('{}'.format(i)) sleep(1) print('KABUMMMMM')
17.4
64
0.66092
29
174
3.965517
0.827586
0.104348
0
0
0
0
0
0
0
0
0
0.034722
0.172414
174
9
65
19.333333
0.763889
0
0
0
0
0
0.37931
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
7cb43a2840fc70b88e54bf4359513ca2e47affb7
674
py
Python
bionir_pipeline/pipeline/pipe/ranking/ranking.py
neo2100/BioNIR_Pipeline
ba1995e18b14956053bf43d76b1702f8ff5d18bf
[ "BSD-2-Clause" ]
null
null
null
bionir_pipeline/pipeline/pipe/ranking/ranking.py
neo2100/BioNIR_Pipeline
ba1995e18b14956053bf43d76b1702f8ff5d18bf
[ "BSD-2-Clause" ]
null
null
null
bionir_pipeline/pipeline/pipe/ranking/ranking.py
neo2100/BioNIR_Pipeline
ba1995e18b14956053bf43d76b1702f8ff5d18bf
[ "BSD-2-Clause" ]
null
null
null
# Input : a list of "documents" at least containing: "sentencesEmbedded" # Input : "queryEmbedded" # Output: a list of "rankedDocuments" at least containing: "score", "id", "text", "directLink" and "type" # Output: a list of "rankedSnippets" at least containing: "score", "id", "text", "snippet", "directLink" and "type"...
42.125
115
0.710682
71
674
6.690141
0.478873
0.031579
0.044211
0.054737
0.117895
0.117895
0
0
0
0
0
0
0.175074
674
16
116
42.125
0.854317
0.462908
0
0
0
0
0.044693
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.625
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
7cba67caadcb3d046c4dd616a89704d69034e781
1,085
py
Python
sdk/python/ekuiper/runtime/reg.py
charithmadhuranga/query-rule-engine
2315701227595ddf871fb656ae339d4c08203d68
[ "Apache-2.0" ]
410
2019-10-23T06:23:41.000Z
2021-06-09T02:30:02.000Z
sdk/python/ekuiper/runtime/reg.py
charithmadhuranga/query-rule-engine
2315701227595ddf871fb656ae339d4c08203d68
[ "Apache-2.0" ]
308
2019-10-24T01:02:53.000Z
2021-06-09T01:52:11.000Z
sdk/python/ekuiper/runtime/reg.py
charithmadhuranga/query-rule-engine
2315701227595ddf871fb656ae339d4c08203d68
[ "Apache-2.0" ]
124
2019-10-23T08:57:32.000Z
2021-06-08T02:33:30.000Z
# Copyright 2021 EMQ Technologies Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
25.833333
75
0.722581
151
1,085
5.18543
0.609272
0.076628
0.033206
0.040868
0
0
0
0
0
0
0
0.009195
0.198157
1,085
41
76
26.463415
0.890805
0.554839
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.125
0.625
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
7cca9c30e1160258b9499388b4c5f34529ff7748
1,454
py
Python
cohesity_management_sdk/models/status_source_backup_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/status_source_backup_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/status_source_backup_status_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class StatusSourceBackupStatusEnum(object): """Implementation of the 'Status_SourceBackupStatus' enum. Specifies the status of the source object being protected. 'kAccepted' indicates the task is queued to run but not yet running. 'kRunning' indi...
27.961538
72
0.683631
163
1,454
6.092025
0.368098
0.070493
0.172205
0.208459
0
0
0
0
0
0
0
0.004545
0.243466
1,454
51
73
28.509804
0.898182
0.726272
0
0
0
0
0.246667
0
0
0
0
0.176471
0
1
0
false
0
0
0
1
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
0
0
0
0
0
0
1
0
0
3
7cd03f6c0f212ddd36af1f2f114e2141af113581
86
py
Python
Init_Guide/function-examples/function.py
coedfetr/STTP-python
607d5c03e233dd7c6938ea2495a04701dcf5aed6
[ "Apache-2.0" ]
null
null
null
Init_Guide/function-examples/function.py
coedfetr/STTP-python
607d5c03e233dd7c6938ea2495a04701dcf5aed6
[ "Apache-2.0" ]
null
null
null
Init_Guide/function-examples/function.py
coedfetr/STTP-python
607d5c03e233dd7c6938ea2495a04701dcf5aed6
[ "Apache-2.0" ]
4
2015-12-24T05:34:46.000Z
2020-03-10T03:39:16.000Z
# defined a function def name(): print "hello, sir" # called that function name()
14.333333
22
0.674419
12
86
4.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.209302
86
5
23
17.2
0.852941
0.453488
0
0
0
0
0.227273
0
0
0
0
0
0
0
null
null
0
0
null
null
0.333333
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
1
0
0
0
0
0
0
0
0
3
7cdb8e41ec1c5a4fffb49262836b66065fec6bfe
586
py
Python
packages/mccomponents/python/mccomponents/detector/elements/DetectorPack.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/python/mccomponents/detector/elements/DetectorPack.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/python/mccomponents/detector/elements/DetectorPack.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2007 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
20.928571
80
0.406143
40
586
5.85
0.85
0
0
0
0
0
0
0
0
0
0
0.009259
0.262799
586
27
81
21.703704
0.532407
0.62116
0
0
0
0
0.019324
0
0
0
0
0
0
1
0.2
false
0.2
0.2
0.2
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
1
1
0
0
3
7cdc614f0c56f2377eeeaac92ede9cafcfbb135a
206
py
Python
scripts/item/consume_2434824.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/item/consume_2434824.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/item/consume_2434824.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Monster Park Damage Skin success = sm.addDamageSkin(2434824) if success: sm.chat("The Monster Park Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2434824)
34.333333
100
0.752427
30
206
5.166667
0.666667
0.193548
0.219355
0.270968
0
0
0
0
0
0
0
0.081395
0.165049
206
5
101
41.2
0.819767
0.23301
0
0
0
0
0.548387
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
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
7cee393969686f6ba2139357d4f61cff5b041173
53
py
Python
pawan/lib/python3.6/reprlib.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
pawan/lib/python3.6/reprlib.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
pawan/lib/python3.6/reprlib.py
pawannn29/projectdjango
a2c269b99676109a9a28f1ff3bc26b3d7779056c
[ "bzip2-1.0.6" ]
null
null
null
/Users/NikhilArora/anaconda3/lib/python3.6/reprlib.py
53
53
0.849057
8
53
5.625
1
0
0
0
0
0
0
0
0
0
0
0.056604
0
53
1
53
53
0.792453
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
3
860ec869b4245b81171bd55b82d4ec953acbdb63
2,890
py
Python
tests/test_stanza_xep_0059.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
499
2015-01-04T21:45:16.000Z
2022-02-14T13:04:08.000Z
tests/test_stanza_xep_0059.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
159
2015-01-02T19:09:47.000Z
2020-02-12T08:29:54.000Z
tests/test_stanza_xep_0059.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
209
2015-01-07T16:23:16.000Z
2022-01-26T13:02:20.000Z
import unittest from sleekxmpp.test import SleekTest from sleekxmpp.plugins.xep_0059 import Set from sleekxmpp.xmlstream import ET class TestSetStanzas(SleekTest): def testSetFirstIndex(self): s = Set() s['first'] = 'id' s.set_first_index('10') self.check(s, """ <set xml...
26.513761
67
0.498962
298
2,890
4.781879
0.154362
0.044912
0.101053
0.151579
0.724912
0.70386
0.663158
0.663158
0.657544
0.641404
0
0.007288
0.335294
2,890
108
68
26.759259
0.734513
0
0
0.778947
0
0
0.471626
0.021799
0
0
0
0
0
1
0.094737
false
0
0.042105
0
0.147368
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
861b1ddbfe03f39d0158448f50499fc4ae20f57e
903
py
Python
connections.py
djjohns/devtools
2c685685ba1270b71572486dde011a08a0c5f07c
[ "MIT" ]
null
null
null
connections.py
djjohns/devtools
2c685685ba1270b71572486dde011a08a0c5f07c
[ "MIT" ]
null
null
null
connections.py
djjohns/devtools
2c685685ba1270b71572486dde011a08a0c5f07c
[ "MIT" ]
null
null
null
import pyodbc class Database: def __init__(self, name): self._conn = pyodbc.connect(name) self._cursor = self._conn.cursor() def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): self.close() @property def connection(self): retur...
21
50
0.599114
107
903
4.869159
0.299065
0.115163
0.134357
0.115163
0.172745
0.172745
0.172745
0.172745
0.172745
0.172745
0
0
0.289037
903
43
51
21
0.811526
0
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.366667
false
0
0.033333
0.166667
0.633333
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
861dab25190da66990310af1a2c9874cba2c92d1
2,731
py
Python
environment/Lib/site-packages/openpyxl/chartsheet/relation.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
6
2019-12-07T07:30:34.000Z
2022-01-20T14:26:44.000Z
environment/Lib/site-packages/openpyxl/chartsheet/relation.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
11
2020-06-06T01:28:35.000Z
2022-03-12T00:16:34.000Z
environment/Lib/site-packages/openpyxl/chartsheet/relation.py
pumbas600/CriticalPath
31889c875dedf733aeb9a4ebeba8bf8930e86176
[ "MIT" ]
1
2020-02-14T19:43:24.000Z
2020-02-14T19:43:24.000Z
# Copyright (c) 2010-2019 openpyxl from openpyxl.descriptors import ( Integer, Alias ) from openpyxl.descriptors.excel import Relation from openpyxl.descriptors.serialisable import Serialisable class SheetBackgroundPicture(Serialisable): tagname = "picture" id = Relation() def __init__(self, id)...
27.867347
58
0.567924
284
2,731
5.369718
0.214789
0.141639
0.188852
0.236066
0
0
0
0
0
0
0
0.004381
0.33138
2,731
97
59
28.154639
0.830778
0.011717
0
0.044944
0
0
0.022618
0
0
0
0
0
0
1
0.022472
false
0
0.033708
0
0.516854
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
86221a03e86b27e651e488cf6176bd10bee377f4
370
py
Python
src/sentry/utils/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
4
2019-05-27T13:55:07.000Z
2021-03-30T07:05:09.000Z
src/sentry/utils/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
196
2019-06-10T08:34:10.000Z
2022-02-22T01:26:13.000Z
src/sentry/utils/__init__.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
""" sentry.utils ~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import # Make sure to not import anything here. We want modules below # sentry.utils to be able to import without having to pull i...
28.461538
75
0.732432
58
370
4.586207
0.741379
0.082707
0.105263
0
0
0
0
0
0
0
0
0.026059
0.17027
370
12
76
30.833333
0.840391
0.854054
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
8626130a44446379633ebc32e2033e7658f6f22e
694
py
Python
chat/forecast/weather.py
vyahello/weather-chatbot
721229b106cdd35aee63ea690156b852c077e923
[ "Apache-2.0" ]
null
null
null
chat/forecast/weather.py
vyahello/weather-chatbot
721229b106cdd35aee63ea690156b852c077e923
[ "Apache-2.0" ]
null
null
null
chat/forecast/weather.py
vyahello/weather-chatbot
721229b106cdd35aee63ea690156b852c077e923
[ "Apache-2.0" ]
2
2019-10-30T16:47:08.000Z
2020-01-01T18:45:46.000Z
from abc import ABC, abstractmethod from typing import Dict from chat.forecast import WEATHER_ID from chat.web.requests import Request, SafeBotRequest from chat.web.urls import CommonUrl class Weather(ABC): """Abstraction of a weather.""" @abstractmethod def data_records(self) -> Dict[str, str]: ...
26.692308
116
0.677233
88
694
5.227273
0.511364
0.052174
0.047826
0.078261
0.121739
0.121739
0.121739
0
0
0
0
0.003591
0.197406
694
25
117
27.76
0.822262
0.072046
0
0.125
0
0
0.109005
0
0
0
0
0
0
1
0.1875
false
0.0625
0.3125
0.0625
0.6875
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
1
0
1
0
0
3
863131c458da0f75be46a24dbd3989d90944d93f
378
py
Python
games/ggxrd_modern.py
PapstJL4U/fightingGameInputs-withGUI
edcd3fad6896e84306f0aa7b7753e287d83bd6c1
[ "Unlicense" ]
2
2020-12-08T17:38:57.000Z
2022-01-15T03:22:11.000Z
games/ggxrd_modern.py
PapstJL4U/fightingGameInputs-withGUI
edcd3fad6896e84306f0aa7b7753e287d83bd6c1
[ "Unlicense" ]
null
null
null
games/ggxrd_modern.py
PapstJL4U/fightingGameInputs-withGUI
edcd3fad6896e84306f0aa7b7753e287d83bd6c1
[ "Unlicense" ]
null
null
null
from os import sep import standard_directionals import complex_directionals import extra_notations import guiltygear_modern import arcsys_additional _inputs = {} _inputs.update(standard_directionals._inputs) _inputs.update(complex_directionals._inputs) _inputs.update(guiltygear_modern._inputs) _inputs.update(extra_no...
27
45
0.878307
45
378
6.911111
0.333333
0.192926
0.289389
0.192926
0
0
0
0
0
0
0
0
0.060847
378
14
46
27
0.876056
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
3
863d3821ad04e125f10494516201a12d22d4bbfe
1,143
py
Python
qiskit/extensions/standard/__init__.py
welien/qiskit-terra
f00f5a8877abfa95152e5a53f1aa53cb3db0d8d0
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/__init__.py
welien/qiskit-terra
f00f5a8877abfa95152e5a53f1aa53cb3db0d8d0
[ "Apache-2.0" ]
null
null
null
qiskit/extensions/standard/__init__.py
welien/qiskit-terra
f00f5a8877abfa95152e5a53f1aa53cb3db0d8d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
30.891892
77
0.762905
184
1,143
4.73913
0.63587
0.027523
0.022936
0
0
0
0
0
0
0
0
0.017838
0.166229
1,143
36
78
31.75
0.897167
0.431321
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
864b1605c6ec822f11e1e810680c84c6ed1b5f40
23,064
py
Python
Main/MLE.py
Mostafa-Nakhaei/PyMastic
be301be2fa996495b753966b86fd440a0c618cd2
[ "Apache-2.0" ]
4
2020-08-08T22:40:26.000Z
2021-11-05T03:40:42.000Z
Main/MLE.py
Mostafa-Nakhaei/PyMastic
be301be2fa996495b753966b86fd440a0c618cd2
[ "Apache-2.0" ]
3
2020-08-15T21:44:16.000Z
2022-02-22T13:13:37.000Z
Main/MLE.py
Mostafa-Nakhaei/PyMastic
be301be2fa996495b753966b86fd440a0c618cd2
[ "Apache-2.0" ]
1
2021-05-08T17:11:42.000Z
2021-05-08T17:11:42.000Z
import numpy as np from scipy import special import scipy.linalg as linalg def PyMastic(q,a,x,z,H,E,nu, ZRO=1e-3, isBounded = [1,1], iteration = 25, inverser = 'solve'): ''' PyMastic calculates the respnse of a multi-layered elastic system subjected to a circular load. Parameters ---------- q ...
66.08596
1,750
0.522893
3,277
23,064
3.645407
0.231919
0.015068
0.031642
0.031475
0.381467
0.344216
0.318266
0.295664
0.283944
0.263017
0
0.230209
0.25568
23,064
348
1,751
66.275862
0.465661
0.190774
0
0.277273
0
0
0.01376
0
0
0
0
0.002874
0
1
0.004545
false
0
0.013636
0
0.022727
0.004545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
865b7cf7ba5ab63a56dd66ef2430b04afe1128ef
13,479
py
Python
tests/test_query.py
opencybersecurityalliance/firepit
45357e19fe1f51491a81d5575efbc819b0a8818f
[ "Apache-2.0" ]
5
2021-07-19T07:18:24.000Z
2022-02-28T00:17:16.000Z
tests/test_query.py
opencybersecurityalliance/firepit
45357e19fe1f51491a81d5575efbc819b0a8818f
[ "Apache-2.0" ]
10
2021-06-07T15:44:55.000Z
2021-10-05T14:19:06.000Z
tests/test_query.py
IBM/firepit
45357e19fe1f51491a81d5575efbc819b0a8818f
[ "Apache-2.0" ]
6
2021-07-13T13:19:29.000Z
2021-11-23T01:52:26.000Z
import pytest from firepit.query import Aggregation from firepit.query import Count from firepit.query import CountUnique from firepit.query import Filter from firepit.query import Group from firepit.query import InvalidComparisonOperator from firepit.query import InvalidQuery from firepit.query import Join from firep...
32.557971
164
0.600119
1,806
13,479
4.385382
0.062016
0.105556
0.072727
0.1
0.773485
0.737879
0.712121
0.677778
0.672854
0.632702
0
0.014943
0.205653
13,479
413
165
32.636804
0.72476
0.006974
0
0.591716
0
0.04142
0.266328
0.010761
0
0
0
0
0.263314
1
0.094675
false
0
0.050296
0
0.14497
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
8660564e87e33be9b65c7f76353734bb5b608234
784
py
Python
post_it/migrations/0002_auto_20201002_1725.py
constantin-kuehne/IdeaPostProduction
ddacd27e18d4a98f7fd860d23693f21ef74d831b
[ "MIT" ]
null
null
null
post_it/migrations/0002_auto_20201002_1725.py
constantin-kuehne/IdeaPostProduction
ddacd27e18d4a98f7fd860d23693f21ef74d831b
[ "MIT" ]
null
null
null
post_it/migrations/0002_auto_20201002_1725.py
constantin-kuehne/IdeaPostProduction
ddacd27e18d4a98f7fd860d23693f21ef74d831b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-02 15:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('post_it', '0001_initial'), ] operations = [ migrations.AlterField( model_name='post_it', name='height', ...
23.058824
47
0.520408
72
784
5.527778
0.458333
0.075377
0.251256
0.291457
0.550251
0.550251
0.550251
0.452261
0.452261
0.452261
0
0.037849
0.359694
784
33
48
23.757576
0.75498
0.057398
0
0.592593
1
0
0.088195
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.148148
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
866bfdfbb7c355912afcff91ad370d919007ee03
213
py
Python
backend/app/app/schemas/organization.py
saschajullmann/sedotra
aaa38f6d533daa725a7037a8c446da978ffafa7d
[ "MIT" ]
null
null
null
backend/app/app/schemas/organization.py
saschajullmann/sedotra
aaa38f6d533daa725a7037a8c446da978ffafa7d
[ "MIT" ]
null
null
null
backend/app/app/schemas/organization.py
saschajullmann/sedotra
aaa38f6d533daa725a7037a8c446da978ffafa7d
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel class OrgBase(BaseModel): name: str description: Optional[str] = None class OrgCreate(OrgBase): pass class OrgUpdate(OrgBase): pass
13.3125
37
0.7277
25
213
6.2
0.6
0.141935
0
0
0
0
0
0
0
0
0
0
0.206573
213
15
38
14.2
0.91716
0
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
true
0.222222
0.222222
0
0.777778
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
1
0
0
0
0
0
3
86865ad653862ba12386efbef9dd8bcd3f37ca75
68
py
Python
yt_dlp/version.py
had0103/yt-dlp
c0806a89ed187fc798f7f5110735d56489e6760e
[ "Unlicense" ]
null
null
null
yt_dlp/version.py
had0103/yt-dlp
c0806a89ed187fc798f7f5110735d56489e6760e
[ "Unlicense" ]
null
null
null
yt_dlp/version.py
had0103/yt-dlp
c0806a89ed187fc798f7f5110735d56489e6760e
[ "Unlicense" ]
null
null
null
from __future__ import unicode_literals __version__ = '2021.06.01'
17
39
0.808824
9
68
5.111111
1
0
0
0
0
0
0
0
0
0
0
0.133333
0.117647
68
3
40
22.666667
0.633333
0
0
0
0
0
0.147059
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
8699dcac1eea5d6b5db29707d4bc88b9d061e543
1,304
py
Python
planner/models.py
andrew-purchase/Planner
7da7f86f28d21ad29ed6b73c6ef094c8c22f2508
[ "MIT" ]
null
null
null
planner/models.py
andrew-purchase/Planner
7da7f86f28d21ad29ed6b73c6ef094c8c22f2508
[ "MIT" ]
null
null
null
planner/models.py
andrew-purchase/Planner
7da7f86f28d21ad29ed6b73c6ef094c8c22f2508
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Course(models.Model): course_id = models.CharField(max_length=10, primary_key=True) description = models.CharField(max_length=50) def __str__(self): return self.course_id class Saved_Data(models.Model): course_id = models.CharField(...
35.243243
82
0.720859
181
1,304
4.950276
0.314917
0.053571
0.120536
0.160714
0.608259
0.55692
0.55692
0.445313
0.36942
0.133929
0
0.016713
0.17408
1,304
36
83
36.222222
0.815227
0.155675
0
0.346154
0
0
0.001828
0
0
0
0
0
0
1
0.192308
false
0
0.038462
0.192308
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
869e520f92c0f841d14d74d5b6352fa9d9a4f73e
9,174
py
Python
pycatia/drafting_interfaces/drawing_views.py
Tian-Jionglu/pycatia
b315aeb3a74846f134ff6b67b3a6334b9d3905fa
[ "MIT" ]
1
2020-04-27T13:59:10.000Z
2020-04-27T13:59:10.000Z
pycatia/drafting_interfaces/drawing_views.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
pycatia/drafting_interfaces/drawing_views.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
42.869159
108
0.505668
898
9,174
5.110245
0.210468
0.076705
0.036609
0.013075
0.492482
0.479407
0.453258
0.4489
0.439529
0.370015
0
0.029595
0.440157
9,174
213
109
43.070423
0.863902
0.738827
0
0
1
0
0.028986
0.028986
0
0
0
0
0
1
0.318182
false
0
0.136364
0.045455
0.772727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
86a2d0574511d8248c73c7d74c7e39cb329c4b4d
4,822
py
Python
lib/python3.7/site-packages/microcontroller/__init__.py
andrario/Estacao
58ff137aea6149b36dfbbc0939d56f88eacbfaa4
[ "Apache-2.0" ]
null
null
null
lib/python3.7/site-packages/microcontroller/__init__.py
andrario/Estacao
58ff137aea6149b36dfbbc0939d56f88eacbfaa4
[ "Apache-2.0" ]
null
null
null
lib/python3.7/site-packages/microcontroller/__init__.py
andrario/Estacao
58ff137aea6149b36dfbbc0939d56f88eacbfaa4
[ "Apache-2.0" ]
null
null
null
"""Microcontroller pins""" import sys import time from adafruit_platformdetect.constants import chips as ap_chip from adafruit_blinka import Enum from adafruit_blinka.agnostic import board_id, chip_id def delay_us(delay): """Sleep for delay usecs.""" time.sleep(delay / 1e6) class Pin(Enum): """Referen...
39.85124
79
0.76068
654
4,822
5.402141
0.195719
0.135862
0.198698
0.125672
0.523917
0.292669
0.187942
0.052646
0.052646
0.052646
0
0.052529
0.151182
4,822
120
80
40.183333
0.810652
0.07922
0
0.040816
0
0
0.014946
0.004982
0
0
0
0
0
1
0.030612
false
0.010204
0.44898
0
0.520408
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
86a2e65c61cf7729ce547429de97c0a056ea8f1f
147
py
Python
ocr/my/id_ocr.py
skywills/id-card-detector
22588d62d0f828a2ca5f9da53612fefe4c77d304
[ "MIT" ]
null
null
null
ocr/my/id_ocr.py
skywills/id-card-detector
22588d62d0f828a2ca5f9da53612fefe4c77d304
[ "MIT" ]
null
null
null
ocr/my/id_ocr.py
skywills/id-card-detector
22588d62d0f828a2ca5f9da53612fefe4c77d304
[ "MIT" ]
null
null
null
MIN_HEIGHT = 540 MIN_WIDTH = 860 SHAPE_SIZE = (MIN_WIDTH,MIN_HEIGHT) def extractKycInfo(img): pass def extractRegisterNumber(img): pass
13.363636
35
0.741497
20
147
5.2
0.6
0.173077
0
0
0
0
0
0
0
0
0
0.049587
0.176871
147
11
36
13.363636
0.809917
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.285714
0
0
0.285714
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
1
0
1
0
0
0
0
0
3
86a50bc66a8197e3ec1aa8c671c4599e40b2e8b2
3,660
py
Python
venv/lib/python3.6/site-packages/marko/patterns.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
161
2018-08-20T07:42:44.000Z
2022-03-31T03:17:44.000Z
venv/lib/python3.6/site-packages/marko/patterns.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
102
2018-10-15T01:19:06.000Z
2022-03-11T13:37:00.000Z
venv/lib/python3.6/site-packages/marko/patterns.py
jannahuang/blog
e1d8cfa9d79ac06097a0e55531bba9421fcbf283
[ "MIT" ]
39
2019-04-07T08:13:01.000Z
2022-02-01T15:40:59.000Z
""" Some regex patterns """ import re tags = [ "address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", ...
29.756098
79
0.534426
490
3,660
3.961224
0.728571
0.023184
0.02576
0.030912
0.048429
0.047913
0.043277
0.038125
0.038125
0.02576
0
0.192628
0.147541
3,660
122
80
30
0.429487
0.005191
0
0
0
0.179487
0.679053
0.573355
0
0
0
0
0
1
0
false
0
0.008547
0
0.008547
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
86af5e6d1579694fac97a56045e5ae01bab953a2
531
py
Python
PMIa/2015/MOLOKANOV_I_A/task_3_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/MOLOKANOV_I_A/task_3_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/MOLOKANOV_I_A/task_3_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 21. # Напишите программу, которая выводит имя "Аркадий Петрович Голиков", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Molokanov I.A. # 14.04.2016 print("Герой нашей сегоднящней программы - Аркадий П...
48.272727
210
0.772128
75
531
5.48
0.8
0.145985
0.160584
0
0
0
0
0
0
0
0
0.024017
0.137476
531
11
211
48.272727
0.871179
0.482109
0
0
0
0
0.792593
0
0
0
0
0
0
0
null
null
0
0
null
null
0.6
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
3
86b68696037793c9e931cdb06ec1b5e3322b08b7
427
py
Python
src/si/util/distance.py
DiogoM1/MBINF_SIB
19e77896a8b5788747e51b20613c2f3b2888cca1
[ "Apache-2.0" ]
null
null
null
src/si/util/distance.py
DiogoM1/MBINF_SIB
19e77896a8b5788747e51b20613c2f3b2888cca1
[ "Apache-2.0" ]
null
null
null
src/si/util/distance.py
DiogoM1/MBINF_SIB
19e77896a8b5788747e51b20613c2f3b2888cca1
[ "Apache-2.0" ]
null
null
null
import numpy as np def manhatan_distance(X, y): from numpy import absolute """ X: (N,N) Y: (N,) """ return absolute(X - y).sum(axis=1) def euclidean_distance(X, y): from numpy import sqrt """ X: (N,N) Y: (N,) """ return sqrt(((X - y) ** 2).sum(axis=1)) def hamming_d...
15.25
50
0.498829
68
427
3.088235
0.323529
0.057143
0.142857
0.057143
0.490476
0.395238
0
0
0
0
0
0.013378
0.299766
427
27
51
15.814815
0.688963
0.037471
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
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
86d16b0940aed117a3b2264cf7a369458acc9191
2,006
py
Python
tests/test_attention.py
fallencrasher/alphafold2
3951ad28c6b6991d1bd27b0a2c203b06b261c6a5
[ "MIT" ]
1
2021-02-22T05:06:04.000Z
2021-02-22T05:06:04.000Z
tests/test_attention.py
fallencrasher/alphafold2
3951ad28c6b6991d1bd27b0a2c203b06b261c6a5
[ "MIT" ]
null
null
null
tests/test_attention.py
fallencrasher/alphafold2
3951ad28c6b6991d1bd27b0a2c203b06b261c6a5
[ "MIT" ]
null
null
null
import torch from alphafold2_pytorch.alphafold2 import Alphafold2 def test_main(): model = Alphafold2( dim = 256, depth = 2, heads = 8, dim_head = 64 ) seq = torch.randint(0, 21, (2, 128)) msa = torch.randint(0, 21, (2, 5, 64)) mask = torch.ones_like(seq).bool() ...
20.895833
54
0.5334
257
2,006
4.011673
0.159533
0.108632
0.113482
0.1484
0.734239
0.734239
0.734239
0.665373
0.665373
0.665373
0
0.075057
0.342473
2,006
95
55
21.115789
0.706596
0
0
0.7
0
0
0
0
0
0
0
0
0.0375
1
0.05
false
0
0.025
0
0.075
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
86d38e4db7c2e4be1281c07ea4926a6b405ebaaf
247
py
Python
goodsManage/templatetags/myfilters.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
goodsManage/templatetags/myfilters.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
goodsManage/templatetags/myfilters.py
z-Wind/warehouse
3a1ebee4d37bc4e3b6783fee78062eb7aa8da152
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter(name='subtract') def subtract(value, arg): return value - arg @register.filter(name='get_at_index') def get_at_index(list, index): return list[index]
24.7
38
0.708502
33
247
5.181818
0.515152
0.163743
0.210526
0
0
0
0
0
0
0
0
0
0.174089
247
10
39
24.7
0.838235
0
0
0
0
0
0.083682
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.625
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
1
0
0
0
3
86e1abe4a1eaea5442fff20f4359000c5888a76b
333
py
Python
hyaml/__init__.py
latera/hyaml
4dc020434d25c182f8477ddd5582398e51501274
[ "Apache-2.0" ]
3
2020-04-12T15:55:11.000Z
2021-08-02T16:26:21.000Z
hyaml/__init__.py
latera/hyaml
4dc020434d25c182f8477ddd5582398e51501274
[ "Apache-2.0" ]
null
null
null
hyaml/__init__.py
latera/hyaml
4dc020434d25c182f8477ddd5582398e51501274
[ "Apache-2.0" ]
null
null
null
def main(): from hyaml.translator import translate from hyaml.compiler import compile_expression from code import interact def evaluate(expr, **lcls): fn = compile_expression(expr, bindings=("variables",)) return fn(variables=lcls) interact(local={"evaluate": evaluate, "translate":...
30.272727
66
0.696697
37
333
6.216216
0.540541
0.078261
0
0
0
0
0
0
0
0
0
0
0.195195
333
10
67
33.3
0.858209
0
0
0
0
0
0.078078
0
0
0
0
0
0
1
0.25
false
0
0.375
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
0
0
1
0
1
0
0
3
81026ba874607df1e53705ec884c2d590679d6c7
1,358
py
Python
EncryptDecryptPassword.py
PradeepTammali/Python
ad08b908c4e86b9ed77e7fb5745f6c9f6b0a5362
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
EncryptDecryptPassword.py
PradeepTammali/Python
ad08b908c4e86b9ed77e7fb5745f6c9f6b0a5362
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
EncryptDecryptPassword.py
PradeepTammali/Python
ad08b908c4e86b9ed77e7fb5745f6c9f6b0a5362
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_OAEP import base64 def generate_keys(): #Generate a public/ private key pair using 4096 bits key length (512 bytes) new_key = RSA.generate(4096, e=65537) #The private key in PEM format private_key = new_key.exportKey("PEM") #The publi...
28.893617
79
0.712813
197
1,358
4.720812
0.269036
0.096774
0.090323
0.030108
0.331183
0.298925
0.298925
0.24086
0.24086
0.24086
0
0.02634
0.189249
1,358
46
80
29.521739
0.818347
0.245214
0
0.137931
1
0
0.066995
0
0
0
0
0
0
0
null
null
0.206897
0.172414
null
null
0.103448
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
3
8114057eca0d6b418aa18b003b417ecc7b73750e
7,754
py
Python
Visitor.py
jaredvann/UntitledLanguage
456f3a636d62028a85ee61eb3a9f04214f799e78
[ "MIT" ]
2
2020-02-07T13:20:03.000Z
2020-06-29T15:58:30.000Z
Visitor.py
jaredvann/UntitledLanguage
456f3a636d62028a85ee61eb3a9f04214f799e78
[ "MIT" ]
1
2020-05-09T07:22:42.000Z
2020-05-09T07:22:42.000Z
Visitor.py
jaredvann/Untitled-Language
456f3a636d62028a85ee61eb3a9f04214f799e78
[ "MIT" ]
null
null
null
import typing as tp from grammar.GrammarParser import GrammarParser from grammar.GrammarVisitor import GrammarVisitor from AST import * class Visitor(GrammarVisitor): def __init__(self) -> None: pass # Visit a parse tree produced by GrammarParser#prog. def visitProg(self, ctx: GrammarParser.Pr...
34.616071
103
0.677844
890
7,754
5.875281
0.2
0.065404
0.071142
0.080321
0.371773
0.350354
0.340027
0.235418
0.202524
0.148594
0
0.003293
0.216791
7,754
223
104
34.7713
0.857731
0.197704
0
0.241379
0
0
0.013952
0
0
0
0
0
0
1
0.25
false
0.017241
0.034483
0.103448
0.577586
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
812f1bf2356ca798bd23c4aeaf1358a11174e286
472
py
Python
OOP/Adv/player.py
decagondev/cs42long
f7c3ec1e2d98d51148d5e9d7fdda34405fa42b7b
[ "MIT" ]
null
null
null
OOP/Adv/player.py
decagondev/cs42long
f7c3ec1e2d98d51148d5e9d7fdda34405fa42b7b
[ "MIT" ]
null
null
null
OOP/Adv/player.py
decagondev/cs42long
f7c3ec1e2d98d51148d5e9d7fdda34405fa42b7b
[ "MIT" ]
1
2021-04-05T17:07:03.000Z
2021-04-05T17:07:03.000Z
# Write a class to hold player information, e.g. what room they are in # currently. class Player: def __init__(self, name, current_room): self.name = name self.current_room = current_room def move(self, direction): attribute = direction + '_to' if hasattr(self.current_room, at...
27.764706
70
0.641949
62
472
4.709677
0.548387
0.226027
0.205479
0.164384
0
0
0
0
0
0
0
0
0.269068
472
16
71
29.5
0.846377
0.167373
0
0
0
0
0.097686
0
0
0
0
0
0
1
0.2
false
0
0
0
0.3
0.1
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
d49c1a92d8fa49ca6857ec234a0e223dfd2aea79
318
py
Python
portfolio/wsgi.py
Udantu/portfolio-v1
1fc1b88c1a76db24647555535baaceb16b563b6b
[ "MIT" ]
null
null
null
portfolio/wsgi.py
Udantu/portfolio-v1
1fc1b88c1a76db24647555535baaceb16b563b6b
[ "MIT" ]
null
null
null
portfolio/wsgi.py
Udantu/portfolio-v1
1fc1b88c1a76db24647555535baaceb16b563b6b
[ "MIT" ]
null
null
null
import os import sys sys.path.append('/home/bitnami/projects/portfolio') os.environ.setdefault("PYTHON_EGG_CACHE", "/home/bitnami/projects/portfolio/egg_cache") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "portfolio.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
39.75
87
0.827044
43
318
5.906977
0.511628
0.086614
0.149606
0.220472
0
0
0
0
0
0
0
0
0.050314
318
7
88
45.428571
0.84106
0
0
0
0
0
0.408805
0.301887
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
1
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
d4a47c04270713301f2c35785cf8c8cef5e1e1ab
3,605
py
Python
etl/parsers/etw/Microsoft_Windows_ProcessStateManager.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
104
2020-03-04T14:31:31.000Z
2022-03-28T02:59:36.000Z
etl/parsers/etw/Microsoft_Windows_ProcessStateManager.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
7
2020-04-20T09:18:39.000Z
2022-03-19T17:06:19.000Z
etl/parsers/etw/Microsoft_Windows_ProcessStateManager.py
IMULMUL/etl-parser
76b7c046866ce0469cd129ee3f7bb3799b34e271
[ "Apache-2.0" ]
16
2020-03-05T18:55:59.000Z
2022-03-01T10:19:28.000Z
# -*- coding: utf-8 -*- """ Microsoft-Windows-ProcessStateManager GUID : d49918cf-9489-4bf1-9d7b-014d864cf71f """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid ...
30.811966
123
0.64577
341
3,605
6.709677
0.199413
0.062937
0.137675
0.078671
0.831731
0.831731
0.648164
0.648164
0.648164
0.648164
0
0.127752
0.231345
3,605
116
124
31.077586
0.697943
0.028849
0
0.659574
0
0
0.257732
0.082474
0
0
0
0
0
1
0
false
0
0.042553
0
0.212766
0
0
0
0
null
0
0
0
1
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
0
0
0
0
0
0
3
d4a51c946b723ce2256290e82369f15a8f19b1ab
518
py
Python
server/algorithms/create_model.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
null
null
null
server/algorithms/create_model.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
3
2020-12-31T08:03:30.000Z
2021-03-30T06:39:50.000Z
server/algorithms/create_model.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
1
2021-06-20T09:13:03.000Z
2021-06-20T09:13:03.000Z
from algorithms.black_litterman import BlackLitterman from algorithms.markowitz import Markowitz from algorithms.Kmeans import Kmeans from algorithms.mean_gini import Gini def create_model(model_name, risk): if model_name == 'markowitz': return Markowitz(risk, model_name) if model_name == 'blackLitter...
30.470588
53
0.733591
65
518
5.646154
0.261538
0.220708
0.119891
0.122616
0.196185
0.196185
0
0
0
0
0
0
0.189189
518
16
54
32.375
0.87381
0
0
0
0
0
0.073501
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.692308
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
d4b00343dae18f7a1b36948fd2bb5bf1cd1ee29c
609
py
Python
ArrayOfProducts.py
hamimul/CodePractice
f637192f63d4ed1dec368d5f92190b1a090db073
[ "Apache-2.0" ]
null
null
null
ArrayOfProducts.py
hamimul/CodePractice
f637192f63d4ed1dec368d5f92190b1a090db073
[ "Apache-2.0" ]
null
null
null
ArrayOfProducts.py
hamimul/CodePractice
f637192f63d4ed1dec368d5f92190b1a090db073
[ "Apache-2.0" ]
null
null
null
#Function to return array products for all elemnts except the elemnt def arrayOfProducts(array): # Write your code here. finalProducts = [1 for _ in range(len(array)) ] leftProducts = [1 for _ in range(len(array)) ] rightProducts = [1 for _ in range(len(array)) ] leftProduct = 1 for i in range(len(array)): ...
29
68
0.706076
82
609
5.207317
0.341463
0.112412
0.18267
0.175644
0.278689
0.222482
0
0
0
0
0
0.01004
0.182266
609
21
69
29
0.84739
0.146141
0
0.133333
0
0
0
0
0
0
0
0.047619
0
1
0.066667
false
0
0
0
0.133333
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
1
0
0
0
0
0
0
0
0
0
0
3
d4c9290f91a3dc38ed3a1c0d37f2199ecbe1aa66
261
py
Python
03_game_example.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
03_game_example.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
03_game_example.py
Madhav2204/Python-vs-code
6b845573f6e9f77cccf8f67913ad4de05da6593c
[ "Apache-2.0" ]
null
null
null
class Remote(): pass class Player: def moveRight(self): pass def moveLeft(self): pass def moveTop(self): pass remote1 = Remote() player1 = Player() if(remote1.isLeftPressed()): player1.moveLeft()
14.5
29
0.559387
26
261
5.615385
0.5
0.164384
0.150685
0
0
0
0
0
0
0
0
0.022989
0.333333
261
18
30
14.5
0.816092
0
0
0.307692
0
0
0
0
0
0
0
0
0
1
0.230769
false
0.307692
0
0
0.384615
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
1
0
1
0
0
0
0
0
3
d4d36f9acda7390bef30986a64b1f49ba8d4cbfc
12,239
py
Python
python/taichi/lang/ops.py
ForkYard/taichi
1662fc52fa5eadeac1abd46e52f1303f6aa11e36
[ "MIT" ]
null
null
null
python/taichi/lang/ops.py
ForkYard/taichi
1662fc52fa5eadeac1abd46e52f1303f6aa11e36
[ "MIT" ]
null
null
null
python/taichi/lang/ops.py
ForkYard/taichi
1662fc52fa5eadeac1abd46e52f1303f6aa11e36
[ "MIT" ]
null
null
null
from .expr import * from .util import * from .impl import expr_init from .exception import TaichiSyntaxError from .util import taichi_lang_core as ti_core import operator as ops import numbers import functools import math unary_ops = [] def stack_info(): s = traceback.extract_stack()[3:-1] for i, l in enumer...
21.97307
79
0.645151
1,954
12,239
3.772262
0.104913
0.025777
0.067833
0.100529
0.631936
0.569936
0.523267
0.43549
0.35599
0.283137
0
0.004934
0.238255
12,239
556
80
22.01259
0.785691
0.017077
0
0.404826
0
0
0.010978
0
0
0
0
0.001799
0.005362
1
0.235925
false
0
0.0563
0.126005
0.560322
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
d4ded1c3e957ac9b1a12699c390303fe7d10845d
3,924
py
Python
livesettings/migrations/0001_initial.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
2
2015-12-18T06:17:45.000Z
2016-10-18T15:59:24.000Z
livesettings/migrations/0001_initial.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
null
null
null
livesettings/migrations/0001_initial.py
craigds/django-livesettings
134bc0644ada8e657f724fc65b4161066e749230
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Setting' db.create_table('livesettings_setting', ( ('id', self.gf('django.db.m...
49.670886
102
0.585627
422
3,924
5.329384
0.151659
0.085371
0.143175
0.204535
0.736327
0.736327
0.736327
0.635838
0.557581
0.473988
0
0.011863
0.205148
3,924
78
103
50.307692
0.709202
0.105759
0
0.351852
0
0
0.465562
0.261503
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.166667
0
0
0
0
null
0
0
1
0
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
d4e1dfae51d3b05a283f5f9d5865d9836af295e6
414
py
Python
libp2p/io/exceptions.py
phayaran/py-libp2p
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/io/exceptions.py
phayaran/py-libp2p
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/io/exceptions.py
phayaran/py-libp2p
f2bfc68f6dd99cf2c48dfd397eafb2bef57668f6
[ "Apache-2.0", "MIT" ]
null
null
null
from libp2p.exceptions import BaseLibp2pError class IOException(BaseLibp2pError): pass class IncompleteReadError(IOException): """ Fewer bytes were read than requested. """ class MsgioException(IOException): pass class MissingLengthException(MsgioException): pass class MissingMessageEx...
14.785714
48
0.76087
34
414
9.264706
0.558824
0.114286
0.146032
0
0
0
0
0
0
0
0
0.008798
0.176329
414
27
49
15.333333
0.914956
0.089372
0
0.416667
0
0
0
0
0
0
0
0
0
1
0
true
0.416667
0.083333
0
0.583333
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
1
0
0
1
0
0
3
d4e95f9e81aa75b9f26cc30c0c1341339bd9cd05
513
py
Python
datadog_checks_base/datadog_checks/utils/containers.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
datadog_checks_base/datadog_checks/utils/containers.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
33
2020-02-05T16:18:32.000Z
2022-03-21T14:08:04.000Z
datadog_checks_base/datadog_checks/utils/containers.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
7
2020-03-10T13:21:39.000Z
2021-03-11T07:16:44.000Z
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from six import iteritems def freeze(o): """ Freezes any mutable object including dictionaries and lists for hashing. Accepts nested dictionaries. """ if isinstance(o, dict): return fr...
22.304348
76
0.668616
73
513
4.684932
0.630137
0.070175
0.076023
0
0
0
0
0
0
0
0
0.020253
0.230019
513
22
77
23.318182
0.84557
0.393762
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.777778
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
d4ed5edb6b66255f98505be2c44ed870f6c20334
4,740
py
Python
ckan/tests/cli/test_user.py
jbrown-xentity/ckan
ecd9ac6bc6cfb5bb4fcbec82c431f4564ef649ed
[ "BSD-3-Clause" ]
2,805
2015-01-02T18:13:15.000Z
2022-03-31T03:35:01.000Z
ckan/tests/cli/test_user.py
jbrown-xentity/ckan
ecd9ac6bc6cfb5bb4fcbec82c431f4564ef649ed
[ "BSD-3-Clause" ]
3,801
2015-01-02T11:05:36.000Z
2022-03-31T19:24:37.000Z
ckan/tests/cli/test_user.py
jbrown-xentity/ckan
ecd9ac6bc6cfb5bb4fcbec82c431f4564ef649ed
[ "BSD-3-Clause" ]
1,689
2015-01-02T19:46:43.000Z
2022-03-28T14:59:43.000Z
# -*- coding: utf-8 -*- import pytest import ckan.model as model from ckan.tests.helpers import call_action from ckan.cli.cli import ckan from ckan.tests import factories @pytest.mark.usefixtures(u"clean_db") class TestUserAdd(object): def test_cli_user_add_valid_args(self, cli): """Command shouldn't r...
29.079755
80
0.547046
573
4,740
4.418848
0.176265
0.03357
0.065166
0.082543
0.795419
0.74842
0.716825
0.673776
0.659163
0.622828
0
0.007004
0.337342
4,740
162
81
29.259259
0.799109
0.107595
0
0.666667
0
0
0.137245
0.022308
0
0
0
0
0.146341
1
0.065041
false
0.03252
0.04065
0
0.121951
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
d4ef8c259240e56d9ab3e842f134971397029cb5
1,858
py
Python
src/sima/workflow/blueprints/integerinput.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/workflow/blueprints/integerinput.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/workflow/blueprints/integerinput.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# # Generated with IntegerInputBlueprint from dmt.blueprint import Blueprint from dmt.dimension import Dimension from dmt.attribute import Attribute from dmt.enum_attribute import EnumAttribute from dmt.blueprint_attribute import BlueprintAttribute from .valueinputnode import ValueInputNodeBlueprint class IntegerInpu...
64.068966
142
0.726588
181
1,858
7.38674
0.314917
0.157068
0.224383
0.238594
0.389678
0.389678
0.098729
0
0
0
0
0.003008
0.10549
1,858
29
143
64.068966
0.801444
0.019376
0
0
1
0
0.204633
0.073359
0
0
0
0
0
1
0.041667
false
0
0.25
0
0.333333
0.333333
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
d4f86af99ebac72957bb89460a060715099e2818
848
py
Python
setTimeforCAM.py
linuxkay/TH692_maintenace
f2165f0000ca5aef41bd36bcbbff30191537e6cd
[ "MIT" ]
null
null
null
setTimeforCAM.py
linuxkay/TH692_maintenace
f2165f0000ca5aef41bd36bcbbff30191537e6cd
[ "MIT" ]
null
null
null
setTimeforCAM.py
linuxkay/TH692_maintenace
f2165f0000ca5aef41bd36bcbbff30191537e6cd
[ "MIT" ]
null
null
null
#This python script was written for setting time for network cam which does not have access to WAN. The isolated network made cam to uanble to update time via ntp. This script does work as ntp(kinda) via Raspberry pi. from time import localtime, strftime import requests #get nowtime from computer. Specifing time form...
56.533333
217
0.771226
136
848
4.801471
0.661765
0.033691
0
0
0
0
0
0
0
0
0
0.042724
0.116745
848
14
218
60.571429
0.829105
0.599057
0
0
0
0.25
0.600601
0.144144
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
be03413ec9f0ede61ff82a0491a251fc688e233a
124
py
Python
Project1/__init__.py
zuzanaj/Project1
4dcf76c5118207c5f9bde4478454c13d37a1785d
[ "Apache-2.0" ]
null
null
null
Project1/__init__.py
zuzanaj/Project1
4dcf76c5118207c5f9bde4478454c13d37a1785d
[ "Apache-2.0" ]
null
null
null
Project1/__init__.py
zuzanaj/Project1
4dcf76c5118207c5f9bde4478454c13d37a1785d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .__version__ import __version__ __author__ = "Zuzana Jandova" __email__ = 'z.jandova@uu.nl'
15.5
36
0.693548
15
124
4.666667
0.866667
0
0
0
0
0
0
0
0
0
0
0.009524
0.153226
124
7
37
17.714286
0.657143
0.169355
0
0
0
0
0.287129
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
be1e109810f9ecbf72124a4642aea6113a56f180
521
py
Python
spec/python/test_default_bit_endian_mod.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
11
2018-04-01T03:58:15.000Z
2021-08-14T09:04:55.000Z
spec/python/test_default_bit_endian_mod.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
73
2016-07-20T10:27:15.000Z
2020-12-17T18:56:46.000Z
spec/python/test_default_bit_endian_mod.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
37
2016-08-15T08:25:56.000Z
2021-08-28T14:48:46.000Z
# Autogenerated from KST: please remove this line if doing any edits by hand! import unittest from default_bit_endian_mod import DefaultBitEndianMod class TestDefaultBitEndianMod(unittest.TestCase): def test_default_bit_endian_mod(self): with DefaultBitEndianMod.from_file('src/fixed_struct.bin') as r: ...
34.733333
77
0.723608
70
521
5.242857
0.628571
0.163488
0.174387
0.217984
0.13079
0
0
0
0
0
0
0.04038
0.191939
521
14
78
37.214286
0.831354
0.143954
0
0
1
0
0.045045
0
0
0
0
0
0.444444
1
0.111111
false
0
0.222222
0
0.444444
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
1
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
be2527339adab14171bf45753590beca9d173176
200
py
Python
part3/after/commands/mk-greet.py
mnieber/dodo_commands_tutorial
bbb77322afce94639fd3dfcda66b5c869227a874
[ "MIT" ]
null
null
null
part3/after/commands/mk-greet.py
mnieber/dodo_commands_tutorial
bbb77322afce94639fd3dfcda66b5c869227a874
[ "MIT" ]
null
null
null
part3/after/commands/mk-greet.py
mnieber/dodo_commands_tutorial
bbb77322afce94639fd3dfcda66b5c869227a874
[ "MIT" ]
null
null
null
from dodo_commands import Dodo from dodo_tutorial_commands.mk import run_make if Dodo.is_main(__name__): Dodo.parser.add_argument("greeting") run_make("greeting", "GREETING=%s" % Dodo.args.greeting)
28.571429
56
0.805
31
200
4.83871
0.580645
0.106667
0
0
0
0
0
0
0
0
0
0
0.08
200
6
57
33.333333
0.815217
0
0
0
0
0
0.135
0
0
0
0
0
0
0
null
null
0
0.4
null
null
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
1
0
0
0
1
0
0
0
0
3
be2727c05ad0fa70fa23f59bdac134c4c05244e1
272
py
Python
main.py
zihengCat/chinese-postcode-division-service
ae859bdf86409259b3d9dd1478a511cf07000f11
[ "MIT" ]
2
2020-02-02T14:15:19.000Z
2021-09-06T14:46:04.000Z
main.py
zihengCat/chinese-postcode-division-service
ae859bdf86409259b3d9dd1478a511cf07000f11
[ "MIT" ]
null
null
null
main.py
zihengCat/chinese-postcode-division-service
ae859bdf86409259b3d9dd1478a511cf07000f11
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import chinese_postcode_division_service as cpds if __name__ == '__main__': c = cpds.PostCodeDivisionService() # 正确用例 => print(len(c.parseCode('310053'))) print(c.parseCode('317100')[0]) # 错误用例 => print(c.parseCode('hello'))
27.2
48
0.643382
32
272
5.125
0.75
0.182927
0.182927
0
0
0
0
0
0
0
0
0.0625
0.176471
272
9
49
30.222222
0.669643
0.132353
0
0
0
0
0.107759
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.5
0
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
1
0
3
be2a5ab29a1553e0acf8899465b4c464aff7bc57
1,779
py
Python
camera/mount.py
misspellted/viewted
e3fd14ace1a78a55d18ecc59c8e79b06f8340c40
[ "Unlicense" ]
null
null
null
camera/mount.py
misspellted/viewted
e3fd14ace1a78a55d18ecc59c8e79b06f8340c40
[ "Unlicense" ]
1
2020-12-27T18:49:10.000Z
2020-12-27T18:49:10.000Z
camera/mount.py
misspellted/viewted
e3fd14ace1a78a55d18ecc59c8e79b06f8340c40
[ "Unlicense" ]
null
null
null
from camera.lens import CameraLens from camera.sensor import CameraSensor class CameraMount: """ The camera lens mount provides an interface for compatible lenses to be attached to the camera. For example, we might consider having the following variants: P: A lens mount to observe planar (two-dimension...
31.767857
79
0.722316
253
1,779
5.059289
0.462451
0.042188
0.025781
0.042188
0.029688
0
0
0
0
0
0
0
0.214165
1,779
55
80
32.345455
0.915594
0.622822
0
0
0
0
0.060708
0
0
0
0
0.018182
0
1
0.294118
false
0.058824
0.117647
0.058824
0.529412
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
1
0
0
0
0
0
3
076d58897f9067a876ff17d3591c173838a15c1a
119
py
Python
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
1
2019-06-26T22:44:16.000Z
2019-06-26T22:44:16.000Z
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
null
null
null
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
null
null
null
class NodeT: def __init__(self, val = 0): self.val = val self.left = None self.right = None
23.8
32
0.537815
16
119
3.75
0.625
0.233333
0
0
0
0
0
0
0
0
0
0.013158
0.361345
119
5
33
23.8
0.776316
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
078aaa8afe2c78554a6c62289fb68fb9a2eab77f
179
py
Python
Flask_API/wsgi.py
vaibhav1595/Data_Science_Job_Salary_Project
c3dc186b108f9449fe7dbaeb5592845fc4c495c0
[ "Apache-2.0" ]
2
2020-04-11T17:45:09.000Z
2020-04-12T16:02:12.000Z
Flask_API/wsgi.py
vaibhav1595/Data_Science_Job_Salary_Project
c3dc186b108f9449fe7dbaeb5592845fc4c495c0
[ "Apache-2.0" ]
null
null
null
Flask_API/wsgi.py
vaibhav1595/Data_Science_Job_Salary_Project
c3dc186b108f9449fe7dbaeb5592845fc4c495c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Apr 18 22:41:50 2020 @author: vaibhav """ from app import app as application if __name__ == "__main__": application.run()
17.9
36
0.620112
25
179
4.12
0.92
0
0
0
0
0
0
0
0
0
0
0.094203
0.22905
179
10
37
17.9
0.652174
0.424581
0
0
0
0
0.091954
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
07952514eb32a16768cc884a9ddaf859bcc0dbf5
535
py
Python
simpress/page.py
nekoya/simpress
2565b13a4cfee7a8ed6d50afeb270ab37b80a6a0
[ "MIT" ]
null
null
null
simpress/page.py
nekoya/simpress
2565b13a4cfee7a8ed6d50afeb270ab37b80a6a0
[ "MIT" ]
null
null
null
simpress/page.py
nekoya/simpress
2565b13a4cfee7a8ed6d50afeb270ab37b80a6a0
[ "MIT" ]
null
null
null
import re from collections import namedtuple import markdown Page = namedtuple('Page', ('title', 'content')) def parse_file(filename): return Page( title=pick_title(read_file(filename)), content=render_md(read_file(filename))) def pick_title(stream): return re.sub(r'^# ', '', next(stream)...
19.107143
67
0.665421
69
535
5.043478
0.507246
0.137931
0.137931
0
0
0
0
0
0
0
0
0
0.198131
535
27
68
19.814815
0.811189
0
0
0
0
0
0.04486
0
0
0
0
0
0
1
0.25
false
0
0.1875
0.1875
0.625
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
0797df515db7d8d700f249c2c5d2b8270edaba60
3,771
py
Python
drfpasswordless/settings.py
InzGIBA/django-rest-framework-passwordless
40d96eb9e59561a890c0f79eebd0adcd0eb33492
[ "MIT" ]
null
null
null
drfpasswordless/settings.py
InzGIBA/django-rest-framework-passwordless
40d96eb9e59561a890c0f79eebd0adcd0eb33492
[ "MIT" ]
null
null
null
drfpasswordless/settings.py
InzGIBA/django-rest-framework-passwordless
40d96eb9e59561a890c0f79eebd0adcd0eb33492
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.settings import APISettings USER_SETTINGS = getattr(settings, 'PASSWORDLESS_AUTH', None) DEFAULTS = { # Allowed auth types, can be EMAIL, MOBILE, or both. 'PASSWORDLESS_AUTH_TYPES': ['EMAIL'], # URL Prefix for Authentication Endpoints 'PASSWORDLES...
38.876289
117
0.763458
467
3,771
5.925054
0.282655
0.049151
0.020239
0.037586
0.352729
0.294904
0.219733
0.219733
0.219733
0.219733
0
0.001278
0.170247
3,771
96
118
39.28125
0.88303
0.402015
0
0
0
0
0.654676
0.538669
0
0
0
0
0
1
0
false
0.810811
0.108108
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
07b7d25308936b6d4385a6f0380cc55540aa9517
534
py
Python
src/sage/misc/preparser.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/misc/preparser.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/misc/preparser.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
""" Deprecated preparser module TESTS:: sage: import sage.misc.preparser sage: sage.misc.preparser.is_loadable_filename('foo.sage') doctest:...: DeprecationWarning: Importing is_loadable_filename from here is deprecated. If you need to use it, please import it directly from sage.repl.load See htt...
29.666667
128
0.741573
73
534
5.315068
0.520548
0.103093
0.087629
0.092784
0
0
0
0
0
0
0
0.03268
0.140449
534
17
129
31.411765
0.812636
0.683521
0
0
0
0
0.21118
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
07b8e2580ac021b9ce9ff918f99fb2e99ca4fc95
24
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/oncodrivefm/method/base.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
chapter2/oncodrivefm/oncodrivefm/method/base.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/oncodrivefm/oncodrivefm/method/base.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
PVALUE_EPSILON = 1.0e-8
12
23
0.75
5
24
3.4
1
0
0
0
0
0
0
0
0
0
0
0.142857
0.125
24
1
24
24
0.666667
0
0
0
0
0
0
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
07be94d2718ebb729a8eb17cc52960a85a0c6c36
647
py
Python
Code_and_texts/HashSlot.py
albert-espin/hash-heap-word-finder
69cc6865a60594096b57784afe43e060bcfd0177
[ "MIT" ]
null
null
null
Code_and_texts/HashSlot.py
albert-espin/hash-heap-word-finder
69cc6865a60594096b57784afe43e060bcfd0177
[ "MIT" ]
null
null
null
Code_and_texts/HashSlot.py
albert-espin/hash-heap-word-finder
69cc6865a60594096b57784afe43e060bcfd0177
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class HashSlot(object): '''classe que representa una casella de la taula hash''' def __init__(self, key=-1, value=None): self._key = key self._values = [] if value: self._values.append(value) def getKey(self): return self._key def get...
29.409091
70
0.544049
75
647
4.48
0.493333
0.104167
0.059524
0
0
0
0
0
0
0
0
0.004525
0.316847
647
22
70
29.409091
0.755656
0.112828
0
0.125
0
0
0.036907
0
0
0
0
0
0
1
0.3125
false
0
0
0.125
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
0
0
1
1
0
0
3
07c257c9f57f5a746514b36c314b933fa19a17e7
841
py
Python
material/admin/apps.py
hansegucker/django-material
5a3d47504569ba3d65250d5b75e8d9c7e63640b7
[ "BSD-3-Clause" ]
2,703
2015-02-05T00:55:14.000Z
2022-03-16T19:58:23.000Z
material/admin/apps.py
hansegucker/django-material
5a3d47504569ba3d65250d5b75e8d9c7e63640b7
[ "BSD-3-Clause" ]
495
2015-04-03T14:20:23.000Z
2022-03-01T13:05:51.000Z
virtual/lib/python3.6/site-packages/material/admin/apps.py
tw8130/Awwards
d1296cdc26356443d6ec5869495eedb766ecbcf2
[ "Unlicense" ]
552
2015-04-04T12:09:36.000Z
2022-03-04T13:59:19.000Z
from django.apps import AppConfig from django.contrib import admin from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from ..compat import _ from ..frontend.apps import ModuleMixin from ..frontend.urlconf import ModuleURLResolver class MaterialAdminConfig(ModuleMixin, AppConfig):...
28.033333
96
0.709869
104
841
5.653846
0.490385
0.068027
0.071429
0.061224
0
0
0
0
0
0
0
0.020378
0.183115
841
29
97
29
0.835517
0.073722
0
0
0
0
0.129702
0.041505
0
0
0
0
0
1
0.15
false
0
0.35
0.15
0.95
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
3
07c3638df94c54d16d9a3480b431d8c0233fedd1
10,266
py
Python
tests/test_expfamily.py
sw005320/beer
fe14ab869d92332463288a760e8ebf859013e51c
[ "MIT" ]
1
2018-10-15T23:59:58.000Z
2018-10-15T23:59:58.000Z
tests/test_expfamily.py
sw005320/beer
fe14ab869d92332463288a760e8ebf859013e51c
[ "MIT" ]
null
null
null
tests/test_expfamily.py
sw005320/beer
fe14ab869d92332463288a760e8ebf859013e51c
[ "MIT" ]
null
null
null
'Test the expfamily module.' import numpy as np from scipy.special import gammaln, psi import sys import torch import unittest sys.path.insert(0, './') import beer TOLPLACES = 5 TOL = 10 ** (-TOLPLACES) ####################################################################### # Computations using numpy for testing...
45.626667
138
0.61767
1,281
10,266
4.786105
0.105386
0.080574
0.007829
0.010439
0.803132
0.717827
0.671995
0.664492
0.640842
0.61083
0
0.040104
0.179038
10,266
224
139
45.830357
0.687352
0.014124
0
0.37037
0
0
0.057213
0
0
0
0
0
0.080247
1
0.117284
false
0
0.037037
0.012346
0.216049
0
0
0
0
null
0
0
0
1
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
0
0
0
0
0
0
3
07ca8db2e6da6218552182cce38c2dfabd1be351
233,623
py
Python
venv/Lib/site-packages/music21/mei/test_base.py
alimirzazadeh/wolfGANg
5bf56f7d8e6c1c283edb98bdaecfd5a606b4462c
[ "MIT" ]
1
2022-01-28T00:03:19.000Z
2022-01-28T00:03:19.000Z
venv/Lib/site-packages/music21/mei/test_base.py
alimirzazadeh/wolfGANg
5bf56f7d8e6c1c283edb98bdaecfd5a606b4462c
[ "MIT" ]
null
null
null
venv/Lib/site-packages/music21/mei/test_base.py
alimirzazadeh/wolfGANg
5bf56f7d8e6c1c283edb98bdaecfd5a606b4462c
[ "MIT" ]
1
2021-11-23T00:49:26.000Z
2021-11-23T00:49:26.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Name: mei/test_main.py # Purpose: Tests for mei/base.py # # Authors: Christopher Antila # # Copyright: Copyright © 2014 Michael Scott Cuthbert and the music21 Project # License: BSD, see l...
46.097672
100
0.609443
23,799
233,623
5.919829
0.060087
0.057919
0.02453
0.021982
0.785238
0.74869
0.71127
0.684603
0.661975
0.640277
0
0.020264
0.2611
233,623
5,067
101
46.106769
0.795874
0.181386
0
0.677228
0
0.003257
0.166769
0.039115
0
0
0
0
0.279242
1
0.062185
false
0
0.008884
0
0.071957
0.000592
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
07d75b857340adb085196f9c6aa040d7cbcd3de8
298
py
Python
Tests/test_decorators.py
harshalupadhye/statistic
33d9fa183e6268f97c2394d8134f1e3fc2efc2c0
[ "MIT" ]
null
null
null
Tests/test_decorators.py
harshalupadhye/statistic
33d9fa183e6268f97c2394d8134f1e3fc2efc2c0
[ "MIT" ]
null
null
null
Tests/test_decorators.py
harshalupadhye/statistic
33d9fa183e6268f97c2394d8134f1e3fc2efc2c0
[ "MIT" ]
1
2019-11-17T04:15:50.000Z
2019-11-17T04:15:50.000Z
import unittest from Decorators.decorators import do_twice import pprint @do_twice def say_whee(): print("Whee!") class MyTestCase(unittest.TestCase): def setUp(self) -> None: pass def test_decorate(self): say_whee() if __name__ == '__main__': unittest.main()
14.9
42
0.674497
37
298
5.081081
0.621622
0.074468
0
0
0
0
0
0
0
0
0
0
0.218121
298
20
43
14.9
0.806867
0
0
0
0
0
0.043478
0
0
0
0
0
0
1
0.230769
false
0.076923
0.230769
0
0.538462
0.153846
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
07e301a71b7534c73c4d63964d049b93277fc9e4
2,331
py
Python
social/models.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
2
2018-08-01T19:50:40.000Z
2018-08-01T20:26:53.000Z
social/models.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
null
null
null
social/models.py
michaelfeigen/portal
fafde88e02ef3ed7aa29a2dfea209d928b5e58d6
[ "MIT" ]
null
null
null
""" This module contains the essential fields and behaviors of the PR & Social data you are storing in your database. Each model is represented by a class that subclasses django.db.models.Model and is a seperate table in your database. Each model has a number of class variables, each of which represents a field i...
47.571429
87
0.718147
324
2,331
5.095679
0.280864
0.181708
0.21805
0.290733
0.539673
0.511811
0.511811
0.511811
0.511811
0
0
0.044573
0.181896
2,331
48
88
48.5625
0.821185
0.238095
0
0
0
0
0.011131
0
0
0
0
0
0
1
0
false
0
0.04
0
0.96
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
07e76e4379ba837bee7ab627d837485797b884f5
866
py
Python
tests/test_types.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
tests/test_types.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
tests/test_types.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
1
2022-01-03T21:56:14.000Z
2022-01-03T21:56:14.000Z
from pyg_base import nan2none, is_ts, drange, is_lists, is_strs, is_zero_len import numpy as np import pandas as pd def test_is_zero_len(): assert is_zero_len(5) assert not is_zero_len([1,]) def test_nan2none(): assert nan2none(np.nan) is None assert nan2none(np.inf) is None assert nan2none(5) ==...
27.0625
76
0.635104
164
866
3.164634
0.22561
0.1079
0.127168
0.092486
0.431599
0.352601
0.312139
0.196532
0.119461
0
0
0.055163
0.183603
866
32
77
27.0625
0.678925
0
0
0
0
0
0.002307
0
0
0
0
0
0.666667
1
0.208333
true
0
0.125
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
3
58010c4e07128e1ed97e8325f152cf0510d470c5
73
py
Python
render/py/reusable_services/render/server/__init__.py
hiroaki-yamamoto/reusable-services
677ce4496001eb797c34a4803304de6a757ecba9
[ "MIT" ]
null
null
null
render/py/reusable_services/render/server/__init__.py
hiroaki-yamamoto/reusable-services
677ce4496001eb797c34a4803304de6a757ecba9
[ "MIT" ]
4
2020-02-23T07:35:45.000Z
2020-03-20T01:13:59.000Z
render/py/reusable_services/render/server/__init__.py
hiroaki-yamamoto/reusable-services
677ce4496001eb797c34a4803304de6a757ecba9
[ "MIT" ]
null
null
null
"""Server module.""" from .server import Server __all__ = ('Server', )
12.166667
26
0.643836
8
73
5.375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.164384
73
5
27
14.6
0.704918
0.191781
0
0
0
0
0.113208
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
6af6321ea206e599b7de23b8aa95394fc3f84bfd
2,219
py
Python
test/test_image_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_image_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_image_api.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
26.73494
265
0.68274
307
2,219
4.62215
0.296417
0.067653
0.054264
0.073996
0.477801
0.446089
0.346723
0.346723
0.245948
0.116984
0
0.020286
0.244705
2,219
82
266
27.060976
0.826372
0.499775
0
0.307692
0
0
0.008649
0
0
0
0
0
0
1
0.346154
false
0.307692
0.192308
0
0.576923
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
ed291bbaf2320bebb104f9194a2592843c5ee561
882
py
Python
qiskit/tools/visualization/__init__.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
1
2020-07-14T19:40:01.000Z
2020-07-14T19:40:01.000Z
qiskit/tools/visualization/__init__.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
qiskit/tools/visualization/__init__.py
a-amaral/qiskit-terra
e73beba1e68de2617046a7e1e9eeac375b61de81
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Main QISKit visualization methods.""" import sys from ._circuit_visualization import circuit_drawer, plot_circuit, gener...
33.923077
89
0.760771
118
882
5.432203
0.550847
0.148206
0.143526
0.131045
0.191888
0.141966
0.141966
0.141966
0.141966
0
0
0.01355
0.163265
882
25
90
35.28
0.855014
0.247166
0
0.285714
0
0
0.079511
0
0
0
0
0
0
1
0
true
0
0.571429
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
0
1
0
1
0
1
0
0
3
ed2e296418f22415016b9478e02ec3a8f2f1d644
99
py
Python
django_e/uzr_auth/basic_opr_app/apps.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
django_e/uzr_auth/basic_opr_app/apps.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
django_e/uzr_auth/basic_opr_app/apps.py
mohammad716e/python_training
0654623c603c775ed2cbdc3919dc815891c8fdeb
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BasicOprAppConfig(AppConfig): name = 'basic_opr_app'
16.5
35
0.777778
12
99
6.25
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.151515
99
5
36
19.8
0.892857
0
0
0
0
0
0.131313
0
0
0
0
0
0
1
0
false
0
0.333333
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
1
0
0
0
0
3
ed30d6e50825e1386ea4999480650eb7f7d7e2d1
246
py
Python
music_publisher/__init__.py
pzagmajster/django-music-publisher
2e5b3e4b24620152542a73ed81e3d094be1263dc
[ "MIT" ]
null
null
null
music_publisher/__init__.py
pzagmajster/django-music-publisher
2e5b3e4b24620152542a73ed81e3d094be1263dc
[ "MIT" ]
null
null
null
music_publisher/__init__.py
pzagmajster/django-music-publisher
2e5b3e4b24620152542a73ed81e3d094be1263dc
[ "MIT" ]
null
null
null
""" This Django app is holds metadata about musical works and recordings, including songwriters, performing and recording artists, music library and albums. It allows data exports in JSON and CWR formats. Django Admin is the only frontend. """
27.333333
74
0.788618
36
246
5.388889
0.861111
0
0
0
0
0
0
0
0
0
0
0
0.162602
246
8
75
30.75
0.941748
0.95935
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
ed33f1f49c2b437bf6e37991fe0bcc11d39a3ab9
963
py
Python
cohesity_management_sdk/models/type_13_enum.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/type_13_enum.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
cohesity_management_sdk/models/type_13_enum.py
sachinthakare-cohesity/management-sdk-python
c95f67b7d387d5bab8392be43190e598280ae7b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class Type13Enum(object): """Implementation of the 'Type13' enum. Specifies the type of this Vserver. Specifies the type of the NetApp Vserver. 'kData' indicates the Vserver is used for data backup and restore. 'kAdmin' indicates the Vserver ...
26.75
77
0.676012
118
963
5.516949
0.423729
0.092166
0.145929
0.16129
0.231951
0.193548
0.107527
0
0
0
0
0.012431
0.248183
963
35
78
27.514286
0.88674
0.76947
0
0
0
0
0.203947
0
0
0
0
0.142857
0
1
0
false
0
0
0
1
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
0
0
0
0
0
0
1
0
0
3
ed4ddce89ce7e82c9cac398ecb58caf90e270994
63
py
Python
text/_abstract/block/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_abstract/block/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_abstract/block/__init__.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
from ._block import AbstractBlock __all__ = ["AbstractBlock"]
15.75
33
0.777778
6
63
7.333333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.126984
63
3
34
21
0.8
0
0
0
0
0
0.206349
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
ed5bd1f610fdf643ec3267fdd9fac2636d8002af
82
py
Python
scytale/lattice/__init__.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
scytale/lattice/__init__.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
scytale/lattice/__init__.py
MarcoYLyu/scytale
f2a38770c190f6be4ae775e956de539d9d8e2b72
[ "Apache-2.0" ]
null
null
null
from . import main from .main import * __all__ = [] __all__.extend(main.__all__)
13.666667
28
0.719512
11
82
4.272727
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.158537
82
5
29
16.4
0.681159
0
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
ed6df56895508b2b228fd0718bc414af077cd5ee
12,486
py
Python
gpnn-master/src/python/datasets/HICO/parse_features.py
FridayGao97/Dean-Research-Award-DRA-
6ec3e21e251a1726d678d5b74130abd3b83964b9
[ "MIT" ]
null
null
null
gpnn-master/src/python/datasets/HICO/parse_features.py
FridayGao97/Dean-Research-Award-DRA-
6ec3e21e251a1726d678d5b74130abd3b83964b9
[ "MIT" ]
null
null
null
gpnn-master/src/python/datasets/HICO/parse_features.py
FridayGao97/Dean-Research-Award-DRA-
6ec3e21e251a1726d678d5b74130abd3b83964b9
[ "MIT" ]
null
null
null
""" Created on Mar 13, 2017 @author: Siyuan Qi Description of the file. """ from __future__ import print_function import os import time import pickle import numpy as np import scipy.io import hico_config import metadata def parse_classes(det_classes): obj_nodes = False human_num = 0 obj_num = 0 ...
43.964789
125
0.605959
1,789
12,486
3.926216
0.09782
0.015376
0.013667
0.025626
0.768508
0.749003
0.735051
0.699601
0.678531
0.672978
0
0.028198
0.253003
12,486
283
126
44.120141
0.724885
0.093865
0
0.531401
0
0
0.077598
0.007982
0
0
0
0
0.009662
1
0.038647
false
0.009662
0.038647
0.009662
0.096618
0.028986
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
ed7d1f27d0032e550faa29a36c0ab407d0089e08
810
py
Python
hood/forms.py
karobia001/Hood
94e44abdb8b671db6914ce515f398a2160af386b
[ "MIT" ]
null
null
null
hood/forms.py
karobia001/Hood
94e44abdb8b671db6914ce515f398a2160af386b
[ "MIT" ]
4
2020-02-12T03:25:00.000Z
2021-06-10T22:20:35.000Z
hood/forms.py
karobia001/Hood
94e44abdb8b671db6914ce515f398a2160af386b
[ "MIT" ]
null
null
null
from .models import Business,NeighborHood,Userprofile,Post,Comment from django import forms class NewProfileForm(forms.ModelForm): class Meta: model=Userprofile exclude=['user_name'] class NewBusinessForm(forms.ModelForm): class Meta: model=Business exclude=['user'] class Upd...
23.823529
73
0.682716
82
810
6.682927
0.390244
0.153285
0.208029
0.251825
0.372263
0.167883
0.167883
0
0
0
0
0
0.211111
810
33
74
24.545455
0.85759
0
0
0.307692
0
0
0.122222
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.538462
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
ed83858045c1c64463968c5262e1376a46e29d51
208
py
Python
sokoapp/contests/tests/test_app/views.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
1
2019-04-01T05:52:37.000Z
2019-04-01T05:52:37.000Z
sokoapp/contests/tests/test_app/views.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
1
2015-03-11T16:18:12.000Z
2015-03-11T16:18:12.000Z
sokoapp/contests/tests/test_app/views.py
Mercy-Nekesa/sokoapp
6c7bc4c1278b7223226124a49fc33c5b8b6b617a
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from .models import TimePeriod from referee.views import TimePeriodMixin class TimePeriodView(TimePeriodMixin, TemplateView): template_name = 'empty.html'
23.111111
52
0.822115
23
208
7.391304
0.695652
0
0
0
0
0
0
0
0
0
0
0
0.120192
208
8
53
26
0.928962
0
0
0
0
0
0.048077
0
0
0
0
0
0
1
0
false
0
0.6
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
1
0
0
0
0
3
ed83891e5a3568515e298bde6b601cdec2997546
772
py
Python
src/ev3/vision_commands.py
ichalkiad/VW_challenge
333222010ecf3d1ca4a0e181239f761c975453e9
[ "Apache-2.0" ]
1
2017-08-16T08:42:49.000Z
2017-08-16T08:42:49.000Z
src/ev3/vision_commands.py
ichalkiad/VW_challenge
333222010ecf3d1ca4a0e181239f761c975453e9
[ "Apache-2.0" ]
4
2017-08-09T23:01:30.000Z
2017-08-24T16:44:13.000Z
src/ev3/vision_commands.py
yhalk/vw_challenge_ECR
c1ff50070d0f7367ccfbf473c69e90fd2be5e85e
[ "Apache-2.0" ]
null
null
null
import ev3control.master as master from ev3control.messages import * class VisualFeedback(): def __init__(self): self._distance = None self._angle = None self._class_name = None def get_distance(self): return self._distance def set_distance(self,value): self._dis...
20.315789
69
0.670984
98
772
4.938776
0.204082
0.167355
0.080579
0
0
0
0
0
0
0
0
0.003425
0.243523
772
37
70
20.864865
0.825342
0
0
0
0
0
0.02987
0
0
0
0
0
0
1
0.318182
false
0
0.090909
0.136364
0.727273
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
71f0bf2200b9966d725c794949d9fc576ad6b44f
314
py
Python
dawa_facade/__init__.py
YnkDK/Dawa-Facade
c013dd9dc06581ea3955ddbe9d50880ae9f072b0
[ "MIT" ]
null
null
null
dawa_facade/__init__.py
YnkDK/Dawa-Facade
c013dd9dc06581ea3955ddbe9d50880ae9f072b0
[ "MIT" ]
null
null
null
dawa_facade/__init__.py
YnkDK/Dawa-Facade
c013dd9dc06581ea3955ddbe9d50880ae9f072b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """__init__.py Copyright 2017 Martin Storgaard Dieu under The MIT License Written by Martin Storgaard Dieu <martin@storgaarddieu.com>, november 2017 """ import dawa_facade.facade.facade __version__ = '2017.12.1.b5' DawaFacade = dawa_facade.facade.facade.DawaFacade
24.153846
74
0.761146
44
314
5.204545
0.704545
0.209607
0.165939
0.19214
0
0
0
0
0
0
0
0.061372
0.117834
314
12
75
26.166667
0.765343
0.601911
0
0
0
0
0.102564
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
9c00a929d2e322fb085b15e51e5551d8b29ac698
917
py
Python
ievv_opensource/utils/ievvbuildstatic/gzip_compress_mixin.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/utils/ievvbuildstatic/gzip_compress_mixin.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/utils/ievvbuildstatic/gzip_compress_mixin.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
import gzip class GzipCompressMixin: def gzip_compression_enabled(self): return False def gzip_gzip_compresslevel(self): return 9 def get_filepaths_to_gzip(self): return [] def make_gzip_outfilepath(self, sourcepath): return f'{sourcepath}.gz' def gzip_compress_...
31.62069
94
0.696838
106
917
5.735849
0.377358
0.123355
0.072368
0.059211
0.072368
0
0
0
0
0
0
0.001387
0.21374
917
28
95
32.75
0.841886
0
0
0
0
0
0.076336
0
0
0
0
0
0
1
0.285714
false
0
0.047619
0.190476
0.619048
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
9c043a1e61fe72181d485f8c7e456bf587b76d25
201
py
Python
shelephant/cli/defaults.py
tdegeus/yaml_cli
459fd563edada6901c6af31360b3e6151c20f03c
[ "MIT" ]
null
null
null
shelephant/cli/defaults.py
tdegeus/yaml_cli
459fd563edada6901c6af31360b3e6151c20f03c
[ "MIT" ]
null
null
null
shelephant/cli/defaults.py
tdegeus/yaml_cli
459fd563edada6901c6af31360b3e6151c20f03c
[ "MIT" ]
null
null
null
""" Default names used in all command-line modules. """ f_hostinfo = "shelephant_hostinfo.yaml" f_dump = "shelephant_dump.yaml" f_checksum = "shelephant_checksum.yaml" f_temp = "shelephant_files.txt"
22.333333
47
0.771144
28
201
5.25
0.607143
0.102041
0
0
0
0
0
0
0
0
0
0
0.109453
201
8
48
25.125
0.821229
0.233831
0
0
0
0
0.60274
0.328767
0
0
0
0
0
1
0
false
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9c04843dfd0e659e6c3f7e28afbc1f79b789b5ea
1,118
py
Python
cross3d/abstract/__init__.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
129
2016-07-26T16:00:56.000Z
2021-08-07T03:44:41.000Z
cross3d/abstract/__init__.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
3
2016-08-26T01:37:03.000Z
2019-08-13T01:46:01.000Z
cross3d/abstract/__init__.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
33
2016-07-30T00:26:00.000Z
2022-03-09T07:10:54.000Z
## # \namespace cross3d.scenes # # \remarks The cross3d.scenes package creates an abstract wrapper from a 3d system # to use when dealing with scenes # # \author eric # \author Blur Studio # \date 03/15/10 # import external def init(): """ Initializes the original abstract classes, registering...
24.844444
83
0.801431
100
1,118
8.96
0.65
0.029018
0
0
0
0
0
0
0
0
0
0.009719
0.171735
1,118
44
84
25.409091
0.957883
0.257603
0
0
0
0
0
0
0
0
0
0
0
1
0.035714
true
0.035714
0.964286
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
9c085cee97c46d433aa301a52881356d0209ae3a
912
py
Python
hash.py
kruskod/de-duplicator
165ad7ebd63597783198d3a1aac197695c6db85c
[ "CC0-1.0" ]
null
null
null
hash.py
kruskod/de-duplicator
165ad7ebd63597783198d3a1aac197695c6db85c
[ "CC0-1.0" ]
null
null
null
hash.py
kruskod/de-duplicator
165ad7ebd63597783198d3a1aac197695c6db85c
[ "CC0-1.0" ]
null
null
null
import hashlib BLOCK_SIZE = 4096 * 4096 # Setup hasher # HASH_FUNC = hashlib.md5 HASH_FUNC = hashlib.sha1 def block_iter(file_to_read, block_size=BLOCK_SIZE): with file_to_read: block = file_to_read.read(block_size) while len(block) > 0: yield block block = file_to_read.re...
24
75
0.70614
131
912
4.564886
0.305344
0.075251
0.06689
0.050167
0.277592
0.277592
0.277592
0.183946
0.183946
0.183946
0
0.015257
0.20943
912
37
76
24.648649
0.814147
0.039474
0
0.086957
0
0
0.002291
0
0
0
0
0
0
1
0.304348
false
0
0.043478
0.130435
0.608696
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
9c0f029ea12a4d1f25c0dd7ace4982b7ce0ba949
428
py
Python
python/test.py
stevex86/Grumpy
10201f4bec0e9d057dcc77ad13558841b796f887
[ "MIT" ]
3
2015-06-05T04:26:37.000Z
2016-05-20T16:45:12.000Z
python/test.py
stevex86/Grumpy
10201f4bec0e9d057dcc77ad13558841b796f887
[ "MIT" ]
null
null
null
python/test.py
stevex86/Grumpy
10201f4bec0e9d057dcc77ad13558841b796f887
[ "MIT" ]
null
null
null
from grumpy import * from datetime import datetime for i in xrange(1000): secret = generate_secret(128) identifier = "User{0}".format(i) creation_time = datetime.now() token = generate_token(identifier, creation_time, secret) print token token_split = token.split(":") identifier = token_split[0] creation_time ...
32.923077
62
0.771028
58
428
5.517241
0.465517
0.15
0.125
0.16875
0.20625
0
0
0
0
0
0
0.026525
0.119159
428
13
62
32.923077
0.822281
0
0
0
1
0
0.018648
0
0
0
0
0
0.083333
0
null
null
0
0.166667
null
null
0.083333
0
0
0
null
0
0
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
1
0
0
0
0
0
0
0
0
3
9c13d07a9aba0753f52407201e23c3316e450017
632
py
Python
pset8/hello/hello.py
mar1zzo/cs50-havard-edx
d20bf4dbe45c2633f70704f0dbed7904a2b22841
[ "MIT" ]
1
2021-01-12T02:54:01.000Z
2021-01-12T02:54:01.000Z
pset8/hello/hello.py
mar1zzo/cs50-havard-edx
d20bf4dbe45c2633f70704f0dbed7904a2b22841
[ "MIT" ]
null
null
null
pset8/hello/hello.py
mar1zzo/cs50-havard-edx
d20bf4dbe45c2633f70704f0dbed7904a2b22841
[ "MIT" ]
null
null
null
# programa para criar uma pagina web com flask from flask import Flask # criando a variavel que vai instanciar a biblioteca flask app = Flask(__name__) # criando nossa primeira rota padrao @app.route("/") # criando uma funcao qq que retorna uma mensagem de texto na tela def index(): return "<h1>Hello, World!</h1>...
21.066667
65
0.610759
84
632
4.547619
0.607143
0.041885
0.062827
0.073298
0
0
0
0
0
0
0
0.008439
0.25
632
30
66
21.066667
0.797468
0.674051
0
0
0
0
0.206349
0
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.625
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
9c16072f28462ee598757cb4165aa8619379fa1d
42
py
Python
Simplesquare/__init__.py
DPrakashMewari/MathsImple
ac91597cc0b55d6cab13166658d3d588187b7fba
[ "MIT" ]
1
2021-04-27T19:32:55.000Z
2021-04-27T19:32:55.000Z
Simplesquare/__init__.py
DPrakashMewari/Mathsimple
ac91597cc0b55d6cab13166658d3d588187b7fba
[ "MIT" ]
null
null
null
Simplesquare/__init__.py
DPrakashMewari/Mathsimple
ac91597cc0b55d6cab13166658d3d588187b7fba
[ "MIT" ]
null
null
null
# version of module __version__ = "0.0.1"
14
21
0.690476
7
42
3.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0.085714
0.166667
42
2
22
21
0.628571
0.404762
0
0
0
0
0.217391
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
9c20c81f1adb82af254084f64a618e0acd5c91ea
74
py
Python
test_apps/python_app/example/flows/production/wt1_end.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
null
null
null
test_apps/python_app/example/flows/production/wt1_end.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
127
2019-11-23T17:09:35.000Z
2021-09-02T11:06:20.000Z
test_apps/python_app/example/flows/production/wt1_end.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
null
null
null
with Flow() as flow: print("wt1_end running") flow.add_test("t2")
18.5
28
0.635135
12
74
3.75
0.833333
0
0
0
0
0
0
0
0
0
0
0.033898
0.202703
74
3
29
24.666667
0.728814
0
0
0
0
0
0.22973
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
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
9c254e177c3b99baf96ef0c222272539e40b8519
360
py
Python
basics/6_mro_in_python.py
pavlovprojects/python_qa_oop
587156bf14499e5e836904ebef37aa3db1933b45
[ "MIT" ]
null
null
null
basics/6_mro_in_python.py
pavlovprojects/python_qa_oop
587156bf14499e5e836904ebef37aa3db1933b45
[ "MIT" ]
null
null
null
basics/6_mro_in_python.py
pavlovprojects/python_qa_oop
587156bf14499e5e836904ebef37aa3db1933b45
[ "MIT" ]
null
null
null
class Parent1: def method(self): print("This is Parent1!") class Parent2: def method(self): print("This is Parent2!") class Child1(Parent2, Parent1): pass class Child2(Parent2): def method(self): print("This is Child2!") class Child(Child1, Child2): pass # print(Child...
13.846154
33
0.619444
45
360
4.955556
0.311111
0.121076
0.174888
0.242152
0.38565
0.38565
0.278027
0
0
0
0
0.044118
0.244444
360
25
34
14.4
0.775735
0.05
0
0.333333
0
0
0.138235
0
0
0
0
0
0
1
0.2
false
0.133333
0
0
0.533333
0.2
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
3
9c33c1cbec6a7b3e4fc35658e1458c521f2d0c4b
9,125
py
Python
modin/data_management/factories.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
1
2019-03-12T08:24:24.000Z
2019-03-12T08:24:24.000Z
modin/data_management/factories.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
null
null
null
modin/data_management/factories.py
calzoom/modin
17b7fccb28cf525bf1abd1a7be979c4cb5b66688
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import warnings from modin import __execution_engine__ as execution_engine from modin import __partition_format__ as partition_format from .query_compiler import PandasQueryCompiler clas...
30.115512
146
0.679671
1,034
9,125
5.691489
0.128627
0.104673
0.125743
0.134579
0.678675
0.650807
0.589295
0.462872
0.394902
0.187935
0
0
0.222904
9,125
302
147
30.215232
0.829925
0.02411
0
0.310811
0
0.004505
0.067192
0.005627
0
0
0
0
0
1
0.211712
false
0.004505
0.094595
0.184685
0.608108
0.004505
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
9c3dcddb179d0a44af9cb9ce333aa01979d8726a
363
py
Python
Python/PythonExercicios/ex029.py
felizardo27/Python
965d56f4956eb7b6a68c0b1cbd74d363dd2a223c
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex029.py
felizardo27/Python
965d56f4956eb7b6a68c0b1cbd74d363dd2a223c
[ "MIT" ]
null
null
null
Python/PythonExercicios/ex029.py
felizardo27/Python
965d56f4956eb7b6a68c0b1cbd74d363dd2a223c
[ "MIT" ]
null
null
null
print('====== EX 029 ======') v = float(input('\033[1;36mQual a velocidade do carro?\033[m ')) if v > 80: print('\033[1;31mMULTADO! Você excedeu o limite permitido que é de 80km/h\033[m') multa = (v - 80) * 7 print('\033[1;31mVocê deve pagar uma multa de R${:.2f}\033[m'.format(multa)) print('\033[1;32mTenha...
45.375
85
0.630854
65
363
3.523077
0.661538
0.069869
0.117904
0
0
0
0
0
0
0
0
0.154605
0.162534
363
7
86
51.857143
0.598684
0
0
0
0
0.142857
0.672176
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
9c417ae64c0a9ba7b70917be422ef435f0a6c1d0
2,937
py
Python
src/steerage/fields.py
eykd/steerage
e49b6551d76c0f448c3029392965daf6247a8c9a
[ "BSD-3-Clause" ]
null
null
null
src/steerage/fields.py
eykd/steerage
e49b6551d76c0f448c3029392965daf6247a8c9a
[ "BSD-3-Clause" ]
null
null
null
src/steerage/fields.py
eykd/steerage
e49b6551d76c0f448c3029392965daf6247a8c9a
[ "BSD-3-Clause" ]
null
null
null
import typing from datetime import datetime, timezone from decimal import Decimal from marshmallow import fields class Timestamp(fields.Field): """Field that serializes a datetime to an integer timestamp and back again. """ def _serialize(self, value, attr, obj, **kwargs): if value is None: ...
30.59375
88
0.669391
370
2,937
5.251351
0.237838
0.04632
0.046835
0.068451
0.714359
0.714359
0.696346
0.580546
0.514153
0.514153
0
0.010083
0.223357
2,937
95
89
30.915789
0.841736
0.520259
0
0
0
0
0.061699
0
0
0
0
0
0
1
0.2
false
0
0.16
0.12
0.92
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
3
9c479ad991ee9e67011fe13ead78b73434f05d38
240
py
Python
flaskplate/wsgi.py
chroto/flaskplate
d2cab39d1ae5a2cd68fbdd565a23c08338c20c60
[ "Apache-2.0" ]
3
2015-07-28T16:14:55.000Z
2016-11-24T10:51:48.000Z
flaskplate/wsgi.py
chroto/flaskplate
d2cab39d1ae5a2cd68fbdd565a23c08338c20c60
[ "Apache-2.0" ]
null
null
null
flaskplate/wsgi.py
chroto/flaskplate
d2cab39d1ae5a2cd68fbdd565a23c08338c20c60
[ "Apache-2.0" ]
null
null
null
#! /bin/env python import os project = "flaskplate" from flaskplate.app import create_app application = create_app(config=os.environ.get('APP_CONFIG', 'flaskplate.config.ProductionConfig'))
24
85
0.629167
25
240
5.92
0.6
0.121622
0
0
0
0
0
0
0
0
0
0
0.275
240
9
86
26.666667
0.850575
0.070833
0
0
0
0
0.243243
0.153153
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
9c4d2aaee9621bddfeb81c21b0d4448dc463fc61
250
py
Python
pygotcha2015/pygotcha/exercises/modulegotcha.py
pythonhacker/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
2
2018-10-14T19:13:01.000Z
2019-02-14T06:07:10.000Z
pygotcha2015/pygotcha/exercises/modulegotcha.py
Vasistareddy/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
null
null
null
pygotcha2015/pygotcha/exercises/modulegotcha.py
Vasistareddy/talks
fa2a99af38d7092498eefb39940701a1ac10b6c2
[ "MIT" ]
3
2018-10-14T19:12:32.000Z
2019-02-28T17:30:00.000Z
""" There are 2 things to do in module gotchas. 1. Convert this exercises folder into the package pygotcha.exercises 2. Fix modules c & d to avoid Import error due to the cyclical import. 3. Fix the error when executing the module 'system.py' """
25
70
0.748
43
250
4.348837
0.744186
0
0
0
0
0
0
0
0
0
0
0.019704
0.188
250
9
71
27.777778
0.901478
0.956
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
9c50fc670d6e7a292e37ddf31acbaa241d8ba53c
120
py
Python
booksite/booksite/h5/apps.py
awesome-archive/bookspider
d51f909fe95dc27339242ecdd2b6f1f6d811851f
[ "Apache-2.0" ]
39
2015-05-24T08:45:22.000Z
2020-02-18T07:42:58.000Z
h5/apps.py
kian11/testcase_web
6698190c426be56bfc54e92b6f99a3de335d5e82
[ "CC-BY-4.0" ]
3
2016-01-05T15:28:33.000Z
2017-03-18T12:40:45.000Z
h5/apps.py
kian11/testcase_web
6698190c426be56bfc54e92b6f99a3de335d5e82
[ "CC-BY-4.0" ]
36
2015-04-30T08:06:08.000Z
2019-01-22T15:12:49.000Z
from __future__ import unicode_literals from django.apps import AppConfig class H5Config(AppConfig): name = 'h5'
15
39
0.775
15
120
5.866667
0.8
0
0
0
0
0
0
0
0
0
0
0.02
0.166667
120
7
40
17.142857
0.86
0
0
0
0
0
0.016667
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
3
9c5c79597019287ab19519791b2416910e53db75
641
py
Python
db/data/autotest_files/autotest01/student_files/bad_xml_2s_1/submission.py
czack810150/Markus
ba3e1506252e6b4bc84cde6bed472bfebcbb834c
[ "MIT" ]
1
2018-07-19T03:41:38.000Z
2018-07-19T03:41:38.000Z
db/data/autotest_files/autotest01/student_files/bad_xml_2s_1/submission.py
amrrsharaff/Markus
6d59c7cc60becec3f6dc7ea7209984ea331675ad
[ "MIT" ]
null
null
null
db/data/autotest_files/autotest01/student_files/bad_xml_2s_1/submission.py
amrrsharaff/Markus
6d59c7cc60becec3f6dc7ea7209984ea331675ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This student submission file is used to test the autotester It represents the test case where: The xml is malformed in the first test in the first script which causes the second test to be ignored """ import sys import os import json if os.path.basename(sys.argv[1]) == 'autotest_01.sh':...
35.611111
158
0.677067
102
641
4.147059
0.54902
0.023641
0.047281
0.085106
0.425532
0.425532
0.425532
0.425532
0.425532
0.425532
0
0.014519
0.140406
641
17
159
37.705882
0.753176
0.346334
0
0
0
0
0.418491
0
0
0
0
0
0
1
0
true
0.285714
0.428571
0
0.428571
0.285714
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
1
1
0
0
0
0
3
92d6cc7a154dc569a8c8408f337b000481b599c2
93
py
Python
vumi/transports/devnull/__init__.py
seidu626/vumi
62eae205a07029bc7ab382086715694548001876
[ "BSD-3-Clause" ]
199
2015-01-05T09:04:24.000Z
2018-08-15T17:02:49.000Z
vumi/transports/devnull/__init__.py
seidu626/vumi
62eae205a07029bc7ab382086715694548001876
[ "BSD-3-Clause" ]
187
2015-01-06T15:22:38.000Z
2018-07-14T13:15:29.000Z
vumi/transports/devnull/__init__.py
seidu626/vumi
62eae205a07029bc7ab382086715694548001876
[ "BSD-3-Clause" ]
86
2015-01-31T02:47:08.000Z
2018-12-01T11:59:47.000Z
from vumi.transports.devnull.devnull import DevNullTransport __all__ = ['DevNullTransport']
23.25
60
0.827957
9
93
8.111111
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.086022
93
3
61
31
0.858824
0
0
0
0
0
0.172043
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
92d946bf39002328e51e4e33358d17f370e103d1
4,221
py
Python
tests/model/eventsources/test_api_event_source.py
Jacco/serverless-application-model
0ff9a5e4f39fde668adada5646938647e9bf8905
[ "Apache-2.0" ]
1
2020-03-27T01:15:06.000Z
2020-03-27T01:15:06.000Z
tests/model/eventsources/test_api_event_source.py
ShreyaGangishetty/serverless-application-model
0844cbb4114af73e0f9e0225e3392f0d1b7bae3d
[ "Apache-2.0" ]
1
2019-05-30T03:31:59.000Z
2019-05-31T20:27:59.000Z
tests/model/eventsources/test_api_event_source.py
ShreyaGangishetty/serverless-application-model
0844cbb4114af73e0f9e0225e3392f0d1b7bae3d
[ "Apache-2.0" ]
1
2020-04-10T17:41:03.000Z
2020-04-10T17:41:03.000Z
from mock import Mock, patch from unittest import TestCase from samtranslator.model.eventsources.push import Api from samtranslator.model.lambda_ import LambdaFunction, LambdaPermission class ApiEventSource(TestCase): def setUp(self): self.logical_id = "Api" self.api_event_source = Api(self.logi...
38.724771
125
0.651504
503
4,221
5.184891
0.180915
0.034893
0.059816
0.089724
0.753834
0.753834
0.744248
0.697086
0.697086
0.697086
0
0.006607
0.211087
4,221
108
126
39.083333
0.776577
0
0
0.538462
0
0.064103
0.232172
0.142146
0
0
0
0
0.128205
1
0.089744
false
0
0.051282
0
0.166667
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
92e2388593acbc16b5309e3cf915053cba49aacb
438
py
Python
fdk_client/application/models/TextDetector.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/TextDetector.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/application/models/TextDetector.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Application Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class TextDetector(BaseSchema): # Feedback swagger.json confidence = fields.Float(required=False) text = fields.Str(r...
14.6
45
0.694064
48
438
6.291667
0.479167
0.172185
0.168874
0.218543
0.172185
0
0
0
0
0
0
0
0.214612
438
29
46
15.103448
0.877907
0.09589
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
92ed5c35782754ed060a2f7c2dadaf67857f2104
1,196
py
Python
tf2onnx/rewriter/rnn.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
1
2021-04-30T15:26:06.000Z
2021-04-30T15:26:06.000Z
tf2onnx/rewriter/rnn.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
null
null
null
tf2onnx/rewriter/rnn.py
BobLiu20/tensorflow-onnx
bec7c1fd610c27d7cb22271c9fdf45d9f4ecee44
[ "Apache-2.0" ]
1
2021-05-22T02:24:21.000Z
2021-05-22T02:24:21.000Z
# SPDX-License-Identifier: Apache-2.0 """ tf2onnx.rewriter.rnn - lstm support """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from tf2onnx.rewriter.bilstm_rewriter import rewrite_bidirectional_lstms from tf2onnx.rewriter.bigru_rewrite...
23.45098
72
0.804348
159
1,196
5.735849
0.339623
0.035088
0.125
0.074561
0.135965
0.070175
0.070175
0.070175
0
0
0
0.008547
0.119565
1,196
50
73
23.92
0.85755
0.112876
0
0.08
0
0
0
0
0
0
0
0
0
1
0.24
false
0
0.4
0.16
0.88
0.04
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
1
0
0
0
3
13182d98fc3fb3552b2fde9b2572f31f91363e75
27,775
py
Python
core/domain/classifier_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
core/domain/classifier_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
13
2019-03-04T18:29:27.000Z
2019-08-24T23:27:36.000Z
core/domain/classifier_services_test.py
aman-roy/oppia
0e7066829b59bf6ce4b15c4723fe0398721cfd1a
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
44.298246
115
0.659874
3,101
27,775
5.576266
0.109965
0.050254
0.05465
0.04771
0.792332
0.756303
0.727157
0.686618
0.657472
0.645674
0
0.010201
0.255302
27,775
626
116
44.36901
0.825662
0.134545
0
0.627409
0
0
0.098178
0.020526
0
0
0
0
0.130621
1
0.042827
false
0
0.029979
0
0.074946
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
131879fdad6de5fde1bd5bae2e71471fc3d7133b
495
py
Python
Sources/Workflows/Comics/plugins/hagar/main.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
2,177
2015-01-02T09:56:51.000Z
2022-03-27T01:48:37.000Z
Sources/Workflows/Comics/plugins/hagar/main.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
24
2015-01-02T19:11:51.000Z
2021-01-27T07:20:33.000Z
Sources/Workflows/Comics/plugins/hagar/main.py
yagosys/AlfredWorkflow.com
9e5087e61fb89640a7a6ca89ba554303aec0b037
[ "MIT" ]
516
2015-01-02T18:48:29.000Z
2022-01-26T07:12:35.000Z
def enabled(): return True def title(): return u'Hagar' def subtitle(): return u'Hagar the Horrible' def run(): import urllib2 import re import os content = urllib2.urlopen('http://www.thecomicstrips.com/properties/template_strip_recent.php?id=142').read() strip = "http://cartoonistgroup.com" + re.match(r'.*...
27.5
139
0.690909
73
495
4.643836
0.616438
0.041298
0.070796
0
0
0
0
0
0
0
0
0.016092
0.121212
495
18
140
27.5
0.763218
0
0
0
0
0
0.419355
0.086694
0
0
0
0
0
1
0.285714
false
0
0.214286
0.214286
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3