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
bdd2e5a03ef12aef1df1929923ace419b48bfd43
95
py
Python
CodeUp/1544.py
chae-heechan/Algorithm_Study
183a77e2cfe352cd82fb5e988b493082529a73dd
[ "MIT" ]
null
null
null
CodeUp/1544.py
chae-heechan/Algorithm_Study
183a77e2cfe352cd82fb5e988b493082529a73dd
[ "MIT" ]
null
null
null
CodeUp/1544.py
chae-heechan/Algorithm_Study
183a77e2cfe352cd82fb5e988b493082529a73dd
[ "MIT" ]
null
null
null
# 함수로 * n개 출력하기 def f(key): for i in range(key): print("*", end="") f(int(input()))
19
26
0.494737
16
95
2.9375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.263158
95
5
27
19
0.671429
0.136842
0
0
0
0
0.012346
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.25
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
1
0
0
0
0
0
0
0
3
bde82dd803977b868a1734b5c1deecde1d7f596a
254
py
Python
eca_catalogue/text/tests/factories.py
byteweaver/django-eca-catalogue
a2d2eb4e03785c53f03fcf6afe0c4285e329472f
[ "BSD-3-Clause" ]
3
2015-03-26T04:04:56.000Z
2018-08-12T10:34:44.000Z
eca_catalogue/text/tests/factories.py
byteweaver/django-eca-catalogue
a2d2eb4e03785c53f03fcf6afe0c4285e329472f
[ "BSD-3-Clause" ]
3
2020-02-11T21:18:46.000Z
2021-06-10T17:23:28.000Z
eca_catalogue/text/tests/factories.py
byteweaver/django-eca-catalogue
a2d2eb4e03785c53f03fcf6afe0c4285e329472f
[ "BSD-3-Clause" ]
2
2017-03-02T03:28:12.000Z
2017-05-14T20:41:54.000Z
from django.contrib.auth.models import User import factory from eca_catalogue.text.tests.models import WashingInstruction class WashingInstructionFactory(factory.Factory): FACTORY_FOR = WashingInstruction icon = "icon.png" text = "text"
19.538462
62
0.779528
29
254
6.758621
0.62069
0.122449
0
0
0
0
0
0
0
0
0
0
0.149606
254
12
63
21.166667
0.907407
0
0
0
0
0
0.047431
0
0
0
0
0
0
1
0
false
0
0.428571
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
bdff09cc71c008eea8fddd9ba8418894bc28c5ed
1,972
py
Python
sdr-py/audio/device.py
jdstmporter/SDRAudio
40392ab443de2e565f8e6b448af6cc3012c906db
[ "BSD-3-Clause" ]
null
null
null
sdr-py/audio/device.py
jdstmporter/SDRAudio
40392ab443de2e565f8e6b448af6cc3012c906db
[ "BSD-3-Clause" ]
null
null
null
sdr-py/audio/device.py
jdstmporter/SDRAudio
40392ab443de2e565f8e6b448af6cc3012c906db
[ "BSD-3-Clause" ]
null
null
null
''' Created on 2 Nov 2020 @author: julianporter ''' from builtins import property import enum class Direction(enum.Enum): input = 'I' output = 'O' @classmethod def all(cls): return [x for x in cls.__members__.values()] NAME_KEY = 'name' INPUT_KEY = 'max_input_channels' OUTPUT_KEY = 'm...
24.65
77
0.640974
247
1,972
4.866397
0.255061
0.099834
0.069884
0.042429
0.171381
0.118136
0.118136
0.076539
0
0
0
0.004736
0.250507
1,972
80
78
24.65
0.808525
0.065923
0
0.235294
0
0
0.075245
0
0
0
0
0
0
1
0.27451
false
0
0.039216
0.215686
0.568627
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
da0fab052e8cb829e17a6f0b2f2413b480173aa8
205
py
Python
intermediate/mypackage/mymodule.py
brettonw/ubuntu-python
5b5878982ed7879f45d26488545e6b552e1bb2f8
[ "MIT" ]
null
null
null
intermediate/mypackage/mymodule.py
brettonw/ubuntu-python
5b5878982ed7879f45d26488545e6b552e1bb2f8
[ "MIT" ]
null
null
null
intermediate/mypackage/mymodule.py
brettonw/ubuntu-python
5b5878982ed7879f45d26488545e6b552e1bb2f8
[ "MIT" ]
null
null
null
#! /usr/bin/env python3.8 def myAdd(a,b): return a + b def mySub(a,b): return a - b def main(): print (myAdd(1, 2)) # if the module is being invoked by itself if __name__ == "__main__": main()
12.8125
42
0.619512
37
205
3.216216
0.648649
0.067227
0.134454
0.151261
0.218487
0.218487
0
0
0
0
0
0.025157
0.22439
205
15
43
13.666667
0.72327
0.317073
0
0
0
0
0.058394
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.625
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
da374f6bf30d4e99bdea16a2e666336e372adcca
13
py
Python
hpss/__init__.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
null
null
null
hpss/__init__.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
1
2020-03-15T14:16:52.000Z
2020-03-15T17:36:08.000Z
hpss/__init__.py
callat-qcd/hpss
54d0a4172015639e339b6e93fb2e18c90dc4d287
[ "MIT" ]
1
2020-03-14T23:02:32.000Z
2020-03-14T23:02:32.000Z
name = "hpss"
13
13
0.615385
2
13
4
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
13
1
13
13
0.727273
0
0
0
0
0
0.285714
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
da4adb0f9957258854d4813457c8d1907c70030e
209
py
Python
collection/models.py
kevinham/hellowebapp
6410778cf0721f215504d08ea586c191b5d80640
[ "MIT" ]
null
null
null
collection/models.py
kevinham/hellowebapp
6410778cf0721f215504d08ea586c191b5d80640
[ "MIT" ]
null
null
null
collection/models.py
kevinham/hellowebapp
6410778cf0721f215504d08ea586c191b5d80640
[ "MIT" ]
null
null
null
from django.db import models class Laptops(models.Model): name = models.CharField(max_length=255) description = models.TextField() slug = models.SlugField(unique=True) # Create your models here.
23.222222
43
0.736842
27
209
5.666667
0.814815
0
0
0
0
0
0
0
0
0
0
0.017143
0.162679
209
8
44
26.125
0.857143
0.114833
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
da4de736d42367e68612250c4ad2cfde39d87b7e
116
py
Python
oem/__init__.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
3
2020-08-31T10:15:04.000Z
2021-12-18T03:00:11.000Z
oem/__init__.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
26
2020-05-17T02:28:28.000Z
2021-12-20T03:06:05.000Z
oem/__init__.py
TommasoPino/oem
0b6567accb2dfc4475b4655ce7b07ff85fed32aa
[ "MIT" ]
2
2020-11-15T19:33:07.000Z
2021-10-01T08:58:39.000Z
CURRENT_VERSION = "2.0" from .interface import OrbitEphemerisMessage # noqa __all__ = ['OrbitEphemerisMessage']
16.571429
52
0.767241
11
116
7.636364
0.909091
0
0
0
0
0
0
0
0
0
0
0.02
0.137931
116
6
53
19.333333
0.82
0.034483
0
0
0
0
0.220183
0.192661
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
da618d2462099efb0bd5909647cfd42298dc95d3
3,181
py
Python
BaseTools/Source/Python/Workspace/TomlBuildData.py
corthon/edk2-staging
7b6a8b2501f013958a0274a4b4d6d7609219c1b7
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1
2020-02-11T01:20:14.000Z
2020-02-11T01:20:14.000Z
BaseTools/Source/Python/Workspace/TomlBuildData.py
corthon/edk2-staging
7b6a8b2501f013958a0274a4b4d6d7609219c1b7
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
BaseTools/Source/Python/Workspace/TomlBuildData.py
corthon/edk2-staging
7b6a8b2501f013958a0274a4b4d6d7609219c1b7
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1
2019-08-09T06:51:49.000Z
2019-08-09T06:51:49.000Z
## @file # This file is used to create a database used by build tool # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import from Common...
29.728972
109
0.640679
324
3,181
6.185185
0.419753
0.06487
0.073353
0.080838
0.113772
0.113772
0
0
0
0
0
0.00575
0.289217
3,181
106
110
30.009434
0.880584
0.301163
0
0.328125
0
0
0.008617
0
0
0
0
0.009434
0
1
0.234375
false
0
0.078125
0.203125
0.546875
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
da8320b4d8118f477b365276a043fd289a2a1263
658
py
Python
advancedcbv/cbv/models.py
barmandwaipayan/DjangoCRUD
323c0238aa22a646eb99b5ddbe94ab1773fb4ca8
[ "MIT" ]
null
null
null
advancedcbv/cbv/models.py
barmandwaipayan/DjangoCRUD
323c0238aa22a646eb99b5ddbe94ab1773fb4ca8
[ "MIT" ]
null
null
null
advancedcbv/cbv/models.py
barmandwaipayan/DjangoCRUD
323c0238aa22a646eb99b5ddbe94ab1773fb4ca8
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse # Create your models here. class School(models.Model): name = models.CharField(max_length=256) principal = models.CharField(max_length=256) location = models.CharField(max_length=256) def __str__(self): return self.name def get_a...
29.909091
91
0.717325
85
658
5.352941
0.470588
0.131868
0.158242
0.210989
0.408791
0.29011
0.184615
0.184615
0
0
0
0.02214
0.176292
658
21
92
31.333333
0.817343
0.036474
0
0.375
0
0
0.037975
0
0
0
0
0
0
1
0.1875
false
0
0.125
0.1875
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
e5199c238fde011d36e1567823eaa9d241792eda
138
py
Python
s7_circlearea.py
skrymets/python-core-and-advanced
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
[ "Apache-2.0" ]
null
null
null
s7_circlearea.py
skrymets/python-core-and-advanced
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
[ "Apache-2.0" ]
null
null
null
s7_circlearea.py
skrymets/python-core-and-advanced
7cb486e9b9413d4cbb7fa67929d492094b2a3abb
[ "Apache-2.0" ]
null
null
null
from math import pi radius = float(input("Enter a circle radius (mm): ")) print("Area is: %0.3f square mm" % (pi*(radius**2.0), ))
23
57
0.608696
23
138
3.652174
0.782609
0.190476
0
0
0
0
0
0
0
0
0
0.036036
0.195652
138
5
58
27.6
0.720721
0
0
0
0
0
0.390977
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
1
0
0
0
0
3
e54bb0f567652bf096ee4e10199c3467881d4e8d
25
py
Python
homeworkpal_project/project_admin/tests/__init__.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
homeworkpal_project/project_admin/tests/__init__.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
homeworkpal_project/project_admin/tests/__init__.py
luiscberrocal/homeworkpal
342acf876264fade818b107f4af13cac067f1ace
[ "MIT" ]
null
null
null
__author__ = 'LBerrocal'
12.5
24
0.76
2
25
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.681818
0
0
0
0
0
0.36
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
e581a9c99846a2edc16b836bf9b4994d98df9d4c
214
py
Python
cloak/serverapi/errors.py
encryptme/private-end-points
4fcefa27d84407af284ea9c2340d1d98509d7f8b
[ "MIT" ]
5
2018-01-30T20:18:14.000Z
2021-06-27T13:37:09.000Z
cloak/serverapi/errors.py
encryptme/private-end-points
4fcefa27d84407af284ea9c2340d1d98509d7f8b
[ "MIT" ]
2
2020-11-23T12:41:24.000Z
2021-01-25T11:13:12.000Z
cloak/serverapi/errors.py
encryptme/private-end-points
4fcefa27d84407af284ea9c2340d1d98509d7f8b
[ "MIT" ]
4
2019-06-14T17:36:03.000Z
2022-02-01T06:09:19.000Z
import requests # noqa class ServerApiError(Exception): def __init__(self, response): # type: (requests.Response) -> None self.response = response super().__init__(response.content)
21.4
43
0.658879
21
214
6.333333
0.666667
0.180451
0
0
0
0
0
0
0
0
0
0
0.233645
214
9
44
23.777778
0.810976
0.17757
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
e5845468774112548e532ea7a50199b2c9d8cebb
3,840
py
Python
test/ffmpeg-qsv/util.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
test/ffmpeg-qsv/util.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
test/ffmpeg-qsv/util.py
haribommi/vaapi-fits
cbf2a463bd3b2c9af5c45a1376b0bde2b703ed23
[ "BSD-3-Clause" ]
null
null
null
### ### Copyright (C) 2018-2019 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### from ...lib.common import memoize, try_call, get_media def using_compatible_driver(): return get_media()._get_driver_name() == "iHD" @memoize def have_ffmpeg(): return try_call("which ffmpeg") @memoize def have_f...
25.098039
90
0.66849
498
3,840
4.875502
0.2249
0.094728
0.115321
0.164745
0.588138
0.540362
0.471993
0.359143
0.359143
0.320428
0
0.034505
0.192448
3,840
152
91
25.263158
0.748468
0.04349
0
0.310345
0
0
0.33762
0
0
0
0
0
0
1
0.215517
false
0
0.025862
0.198276
0.456897
0.034483
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
e58c3acb8a391d776675fa939958d8f17e797a05
184
py
Python
fuckcovid/auth/urls.py
jespino/hospitales-covid19
81765603f15b37bdb94b5170b28dc6b249c48689
[ "Unlicense" ]
null
null
null
fuckcovid/auth/urls.py
jespino/hospitales-covid19
81765603f15b37bdb94b5170b28dc6b249c48689
[ "Unlicense" ]
null
null
null
fuckcovid/auth/urls.py
jespino/hospitales-covid19
81765603f15b37bdb94b5170b28dc6b249c48689
[ "Unlicense" ]
null
null
null
from rest_framework import routers from .views import UserViewSet app_name = 'auth' router = routers.SimpleRouter() router.register(r'users', UserViewSet) urlpatterns = router.urls
18.4
38
0.793478
23
184
6.26087
0.73913
0
0
0
0
0
0
0
0
0
0
0
0.119565
184
9
39
20.444444
0.888889
0
0
0
0
0
0.048913
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
e5b06232fadcadd6ac4a196a6af8c144e90aa939
1,213
py
Python
tests/login_test.py
munishk0898/Python-Selenium
404d70fad3dc466a42575ed3573f67a6d7387098
[ "Apache-2.0" ]
null
null
null
tests/login_test.py
munishk0898/Python-Selenium
404d70fad3dc466a42575ed3573f67a6d7387098
[ "Apache-2.0" ]
null
null
null
tests/login_test.py
munishk0898/Python-Selenium
404d70fad3dc466a42575ed3573f67a6d7387098
[ "Apache-2.0" ]
null
null
null
from library import Login from data import Webpage_elements as data import pytest import library.Driver as D def setup(): D.Initialize() def test_is_url_reachable(): assert Login.is_url_reachable() def test_login(): assert Login.web_login(data.login_credentials) assert Login.current_driver_title()...
26.955556
82
0.785655
175
1,213
5.045714
0.245714
0.174405
0.06795
0.107588
0.677237
0.595696
0.595696
0.486976
0.486976
0.373726
0
0.002844
0.130256
1,213
44
83
27.568182
0.834123
0
0
0.214286
0
0
0
0
0
0
0
0
0.5
1
0.285714
true
0.035714
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
3
e5fb36f843b1b53b607221985a6a284017864b11
14,275
py
Python
tests/tests_middleware.py
joshainglis/Zappa
21a7f7c2b806d8af656c198e37b48ee3a67e3414
[ "MIT" ]
null
null
null
tests/tests_middleware.py
joshainglis/Zappa
21a7f7c2b806d8af656c198e37b48ee3a67e3414
[ "MIT" ]
null
null
null
tests/tests_middleware.py
joshainglis/Zappa
21a7f7c2b806d8af656c198e37b48ee3a67e3414
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- import unittest import base58 import json from werkzeug.wrappers import Response from werkzeug.http import parse_cookie from zappa.wsgi import create_wsgi_request from zappa.middleware import ZappaWSGIMiddleware class TestWSGIMockMiddleWare(unittest.TestCase): """ These tests can che...
37.664908
121
0.587531
1,632
14,275
5.045956
0.163603
0.066302
0.059988
0.023679
0.755556
0.742077
0.695446
0.656952
0.642016
0.623437
0
0.026326
0.297513
14,275
378
122
37.76455
0.78929
0.123993
0
0.618026
0
0.004292
0.138449
0.004469
0
0
0
0
0.171674
0
null
null
0
0.030043
null
null
0.051502
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
3
f90f972a8c5e451c93821a8b2150b99040b9fec3
190
py
Python
test_notify.py
tasi788/linenotify
a5576bf8aeecd134a3f1508f965b53208d80b3e9
[ "Apache-2.0" ]
2
2019-07-25T09:33:09.000Z
2020-01-22T15:33:42.000Z
test_notify.py
tasi788/linenotify
a5576bf8aeecd134a3f1508f965b53208d80b3e9
[ "Apache-2.0" ]
null
null
null
test_notify.py
tasi788/linenotify
a5576bf8aeecd134a3f1508f965b53208d80b3e9
[ "Apache-2.0" ]
null
null
null
import line notify = line.line('token') notify.send_message('hello world') notify.send_photo( 'https://p176.p0.n0.cdn.getcloudapp.com/items/2NuxGZrk/a.jpg') notify.send_photo('a.png')
21.111111
66
0.736842
30
190
4.566667
0.7
0.218978
0.218978
0
0
0
0
0
0
0
0
0.034483
0.084211
190
8
67
23.75
0.752874
0
0
0
0
0.166667
0.421053
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f9135894d274d677b401ad78f0512f9e30a0b97f
258
py
Python
scripts/proxy.py
hulu7/news
a5e601a089b0331c7233bed697c7c6492283afd5
[ "MIT" ]
null
null
null
scripts/proxy.py
hulu7/news
a5e601a089b0331c7233bed697c7c6492283afd5
[ "MIT" ]
null
null
null
scripts/proxy.py
hulu7/news
a5e601a089b0331c7233bed697c7c6492283afd5
[ "MIT" ]
null
null
null
#coding=utf-8 from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--proxy-server=http://186.101.205.219:53281') chrome = webdriver.Chrome(chrome_options=chrome_options) chrome.get('http://httpbin.org/get')
32.25
74
0.79845
36
258
5.583333
0.638889
0.258706
0.189055
0
0
0
0
0
0
0
0
0.07377
0.054264
258
8
75
32.25
0.75
0.046512
0
0
0
0
0.264228
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
f91d4ab510094f230a9ba9d3cad9333fa7579ee4
1,146
py
Python
tests/test_spider_biquge.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
5
2018-03-05T02:32:53.000Z
2020-10-27T13:13:59.000Z
tests/test_spider_biquge.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
null
null
null
tests/test_spider_biquge.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
1
2019-02-20T03:04:22.000Z
2019-02-20T03:04:22.000Z
# -*- coding: utf-8 -*- import unittest from app.services.spider_biquge import BiqugeSpider class TestSpider(unittest.TestCase): def test_init(self): spider = BiqugeSpider() self.assertTrue(isinstance(spider, BiqugeSpider)) def test_query_book_info(self): spider = BiqugeSpider() ...
38.2
108
0.657068
130
1,146
5.707692
0.438462
0.202156
0.204852
0.06469
0.152291
0.067385
0.067385
0
0
0
0
0.068522
0.184991
1,146
30
109
38.2
0.72591
0.018325
0
0.130435
0
0.043478
0.230427
0
0
0
0
0
0.478261
1
0.130435
false
0
0.086957
0
0.26087
0.043478
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
0058c06f0d8aa290612de50a47321b929ef35814
427
py
Python
example/16_3_unittest/unittest_subtest.py
hwangyoungjae/hwangyoungjae.github.io
b624626d907023ec60192004b58450f5807eb0d7
[ "MIT" ]
null
null
null
example/16_3_unittest/unittest_subtest.py
hwangyoungjae/hwangyoungjae.github.io
b624626d907023ec60192004b58450f5807eb0d7
[ "MIT" ]
1
2020-07-18T03:52:03.000Z
2020-07-18T04:18:01.000Z
example/16_3_unittest/unittest_subtest.py
hwangyoungjae/hwangyoungjae.github.io
b624626d907023ec60192004b58450f5807eb0d7
[ "MIT" ]
2
2021-03-06T04:28:32.000Z
2021-03-06T04:59:17.000Z
# unittest_subtest.py import unittest class SubTest(unittest.TestCase): def test_combined(self): self.assertRegex('abc', 'a') self.assertRegex('abc', 'B') # 다음 것은 검증되지 않는다. self.assertRegex('abc', 'c') self.assertRegex('abc', 'd') def test_with_subtest(self): f...
25.117647
44
0.583138
51
427
4.803922
0.509804
0.306122
0.367347
0
0
0
0
0
0
0
0
0
0.276347
427
16
45
26.6875
0.79288
0.081967
0
0
0
0
0.059126
0
0
0
0
0
0.454545
1
0.181818
false
0
0.090909
0
0.363636
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
00aaaa088d0122c0ecc3b8007f6ad364efb6dcc0
408
py
Python
pytorch_toolkit/ote/ote/modules/evaluators/__init__.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/evaluators/__init__.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/evaluators/__init__.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
from .base import BaseEvaluator from .mmaction import MMActionEvaluator from .mmdetection import MMDetectionEvaluator from .face_detection import MMFaceDetectionEvaluator from .horizontal_text_detection import MMHorizontalTextDetectionEvaluator __all__ = [ 'BaseEvaluator', 'MMActionEvaluator', 'MMDetection...
29.142857
73
0.821078
29
408
11.310345
0.517241
0.091463
0
0
0
0
0
0
0
0
0
0
0.122549
408
13
74
31.384615
0.916201
0
0
0
0
0
0.264706
0.142157
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
00d75b84ff20e225c332e756950134f4d027a766
178
py
Python
utils/uuid-gen.py
aa153218/fusion-docker-compose
99f4167da65c93c02f7656855398c6a6b07445be
[ "Apache-2.0" ]
14
2019-08-06T15:54:51.000Z
2021-02-11T08:35:20.000Z
utils/uuid-gen.py
aa153218/fusion-docker-compose
99f4167da65c93c02f7656855398c6a6b07445be
[ "Apache-2.0" ]
23
2019-11-07T12:31:33.000Z
2020-09-16T16:48:26.000Z
utils/uuid-gen.py
aa153218/fusion-docker-compose
99f4167da65c93c02f7656855398c6a6b07445be
[ "Apache-2.0" ]
50
2019-11-07T10:17:36.000Z
2020-11-04T11:45:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import uuid def main(): print(uuid.uuid4()) if __name__ == '__main__': main()
10.470588
37
0.629213
23
178
4.304348
0.782609
0
0
0
0
0
0
0
0
0
0
0.014184
0.207865
178
16
38
11.125
0.687943
0.235955
0
0
0
0
0.059701
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0.333333
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
daa0bc3ee04d91211146711bd9362254643e2660
468
py
Python
spark/util/helper_functions/ellipse_functions.py
lawruble13/spark
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
[ "MIT" ]
4
2020-10-17T00:33:00.000Z
2021-04-10T00:06:19.000Z
spark/util/helper_functions/ellipse_functions.py
lawruble13/spark
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
[ "MIT" ]
55
2020-10-22T03:20:54.000Z
2021-03-02T23:41:06.000Z
spark/util/helper_functions/ellipse_functions.py
lawruble13/spark
8008de02ce57156eb4bd99ffd7a713f5e6f8da75
[ "MIT" ]
4
2020-10-19T19:13:39.000Z
2021-06-23T04:31:46.000Z
from ..decorators import * from numbers import Real @validate_args([Real, Real, Real, Real]) @ignite_global def helper_ellipse(self, *args): self.fill_ellipse(*args) self.stroke_ellipse(*args) @validate_args([Real, Real, Real, Real]) @ignite_global def helper_stroke_ellipse(self, *args): s...
22.285714
41
0.705128
64
468
4.921875
0.25
0.228571
0.228571
0.190476
0.638095
0.492063
0.492063
0.492063
0.492063
0.492063
0
0
0.16453
468
21
42
22.285714
0.805627
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
daa1d923dc70f6244f0f46e91e87733cd8bdfee5
905
py
Python
Ago-Dic-2018/Daniel Enriquez/Primer_Parcial/iterador.py
angelicardz/DAS_Sistemas
e2a69fec358f0fad4fe05c39ea6168c89eed41ac
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2018/Daniel Enriquez/Primer_Parcial/iterador.py
angelicardz/DAS_Sistemas
e2a69fec358f0fad4fe05c39ea6168c89eed41ac
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2018/Daniel Enriquez/Primer_Parcial/iterador.py
angelicardz/DAS_Sistemas
e2a69fec358f0fad4fe05c39ea6168c89eed41ac
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
class yrange: def __init__(self, n): self.i = 0 self.n = n def __iter__(self): return self def next(self): if self.i < self.n: i = self.i self.i += 1 return i else: raise StopIteration() def borrar(self): f...
21.046512
43
0.634254
133
905
4.097744
0.225564
0.385321
0.359633
0.418349
0.594495
0.594495
0.594495
0.594495
0.594495
0.594495
0
0.014514
0.238674
905
42
44
21.547619
0.776488
0
0
0.473684
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0
0.026316
0.184211
0.315789
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
dab22f2a77ba8285c47dc471f26140d3206f4792
272
py
Python
homework/while_intro_classwork.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
homework/while_intro_classwork.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
homework/while_intro_classwork.py
mcorley-gba/IntroCS21-22
a823e17f2cb618be0e67468cb15f48873ae85152
[ "MIT" ]
null
null
null
#Write a while loop that will prompt a user to enter a series of pizza toppings until #they enter a 'quit' statement. As they enter EACH topping print a message #saying you will add the topping to the pizza. #Bonus points: Use a True/False flag to control the loop exit.
54.4
85
0.772059
51
272
4.117647
0.686275
0.057143
0
0
0
0
0
0
0
0
0
0
0.1875
272
5
86
54.4
0.950226
0.970588
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
dabd1c553dafe483fa0f464468754acb2fdbea88
444
py
Python
ejabberd_python3d/muc/arguments.py
Dedaldino3D/ejabberd-python3d
4ff4474347b89ecfda48ff05b76d3a8b3c983046
[ "MIT" ]
4
2020-11-04T02:33:06.000Z
2021-08-29T23:55:47.000Z
ejabberd_python3d/muc/arguments.py
Dedaldino3D/ejabberd-python3d
4ff4474347b89ecfda48ff05b76d3a8b3c983046
[ "MIT" ]
null
null
null
ejabberd_python3d/muc/arguments.py
Dedaldino3D/ejabberd-python3d
4ff4474347b89ecfda48ff05b76d3a8b3c983046
[ "MIT" ]
1
2021-09-26T01:49:23.000Z
2021-09-26T01:49:23.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ..abc.api import APIArgument from .serializers import MUCRoomOptionSerializer, AffiliationSerializer, MUCNodesSerializer class MUCRoomArgument(APIArgument): serializer_class = MUCRoomOptionSerializer class AffiliationArgument(APIArgument): ...
24.666667
91
0.81982
37
444
9.621622
0.540541
0.176966
0.219101
0
0
0
0
0
0
0
0
0.002558
0.119369
444
17
92
26.117647
0.907928
0.047297
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
3
dabeedfe4fcf226047aa0f3def626ffa5c352c07
1,993
py
Python
src/sicekit/wiki/robot/openvz_generate_velist.py
sicekit/sicekit
30d6b665ed083893792579f6640c897e932b4ff0
[ "MIT" ]
11
2015-04-13T15:40:00.000Z
2021-11-09T14:55:25.000Z
src/sicekit/wiki/robot/openvz_generate_velist.py
sicekit/sicekit
30d6b665ed083893792579f6640c897e932b4ff0
[ "MIT" ]
null
null
null
src/sicekit/wiki/robot/openvz_generate_velist.py
sicekit/sicekit
30d6b665ed083893792579f6640c897e932b4ff0
[ "MIT" ]
4
2016-06-07T06:39:39.000Z
2019-05-11T09:34:20.000Z
from wikitools import category, page from sicekit.wiki.wiki import getWiki def RobotMain(configuration, wiki): return OpenvzGenerateVelistRobot(configuration, wiki).run() class OpenvzGenerateVelistRobot: def __init__(self, configuration, wiki): self.configuration = configuration self.wiki = wiki self....
32.145161
89
0.633718
238
1,993
5.239496
0.428571
0.038492
0.027265
0.038492
0
0
0
0
0
0
0
0.006402
0.216257
1,993
61
90
32.672131
0.791933
0.047667
0
0
1
0
0.122093
0.016913
0
0
0
0.016393
0
0
null
null
0
0.041667
null
null
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
3
dacfbd2222f7c4df13029e9956065a48cf065699
1,627
py
Python
backend/apps/info/forms.py
offurface/logistic-company
1e98b1191fd9ee63fbd9d6c2eef1354822e53d14
[ "MIT" ]
null
null
null
backend/apps/info/forms.py
offurface/logistic-company
1e98b1191fd9ee63fbd9d6c2eef1354822e53d14
[ "MIT" ]
null
null
null
backend/apps/info/forms.py
offurface/logistic-company
1e98b1191fd9ee63fbd9d6c2eef1354822e53d14
[ "MIT" ]
null
null
null
from django import forms from . import models class OrganizationForm(forms.ModelForm): class Meta: model = models.Organization fields = ('__all__') class GoodsForm(forms.ModelForm): class Meta: model = models.Goods fields = ('__all__') class TransportForm(forms.ModelForm): ...
22.597222
53
0.645974
154
1,627
6.519481
0.272727
0.181275
0.246016
0.297809
0.440239
0.440239
0
0
0
0
0
0
0.255071
1,627
71
54
22.915493
0.828383
0
0
0.444444
0
0
0.071911
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.518519
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
dad1c9f442303dddc298930ade01dea3beca7882
328
py
Python
django_rest_passwordreset/apps.py
eadwinCode/django-ninja-passwordreset
1b23b781a75957ed31f2712e1b69a01b10a9a8ef
[ "BSD-3-Clause" ]
null
null
null
django_rest_passwordreset/apps.py
eadwinCode/django-ninja-passwordreset
1b23b781a75957ed31f2712e1b69a01b10a9a8ef
[ "BSD-3-Clause" ]
null
null
null
django_rest_passwordreset/apps.py
eadwinCode/django-ninja-passwordreset
1b23b781a75957ed31f2712e1b69a01b10a9a8ef
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class DjangoRestPasswordResetConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "django_rest_passwordreset" verbose_name = _("Django REST PasswordReset") def ready(self) -> None: ...
27.333333
56
0.756098
37
328
6.486486
0.72973
0.083333
0.116667
0.225
0
0
0
0
0
0
0
0
0.167683
328
11
57
29.818182
0.879121
0
0
0
0
0
0.240854
0.164634
0
0
0
0
0
1
0.125
false
0.5
0.25
0
0.875
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
1
0
0
1
0
0
3
dafa9b7e304a67e9d151979fe3d1a5fb012fffaa
1,927
py
Python
thornode_client/test/test_network_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
thornode_client/test/test_network_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
thornode_client/test/test_network_api.py
hoodieonwho/thorchain-python-client
fccfd66552e16bdab1dbb90b68022475c7a9693d
[ "MIT" ]
null
null
null
# coding: utf-8 """ THORChain API This documentation outlines the API for THORChain. NOTE: This document is a **work in progress**. # noqa: E501 OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest...
22.940476
116
0.654385
243
1,927
4.893004
0.296296
0.067283
0.06476
0.082422
0.418839
0.247267
0
0
0
0
0
0.022064
0.270887
1,927
83
117
23.216867
0.824199
0.438505
0
0.307692
0
0
0.008959
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
97037238c7e994e0ca2947741dfd2b1c99d1e0e3
6,698
py
Python
mailchimp_marketing_asyncio/models/inline_response2009_audience_targeting_specs.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/inline_response2009_audience_targeting_specs.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/inline_response2009_audience_targeting_specs.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
30.445455
119
0.625858
672
6,698
6.096726
0.18006
0.02929
0.224555
0.183061
0.419087
0.349524
0.318282
0.178911
0.105931
0.055162
0
0.038874
0.289489
6,698
219
120
30.584475
0.822021
0.396387
0
0.071429
1
0
0.072877
0.030561
0
0
0
0
0
1
0.163265
false
0
0.030612
0
0.336735
0.020408
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
9730c6129ee0badec2bc0d0e36e035d115565b19
3,196
py
Python
domestic/migrations/0008_drop_markdownfield_usage.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
10
2020-04-30T12:04:35.000Z
2021-07-21T12:48:55.000Z
domestic/migrations/0008_drop_markdownfield_usage.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
1,461
2020-01-23T18:20:26.000Z
2022-03-31T08:05:56.000Z
domestic/migrations/0008_drop_markdownfield_usage.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
3
2020-04-07T20:11:36.000Z
2020-10-16T16:22:59.000Z
# Generated by Django 2.2.14 on 2021-01-12 15:37 import wagtail.core.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('domestic', '0007_relabel_countryguidepage_tag_as_industrytag'), ] operations = [ migrations.AlterField( mode...
36.735632
118
0.592616
307
3,196
5.993485
0.312704
0.077717
0.120109
0.18913
0.733152
0.733152
0.681522
0.657609
0.613587
0.496739
0
0.014053
0.309762
3,196
86
119
37.162791
0.820036
0.014393
0
0.6875
1
0
0.262706
0.06925
0
0
0
0
0
1
0
false
0
0.025
0
0.0625
0
0
0
0
null
0
0
1
0
1
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
9744a019944f180530a73d8e21f8e8d72c7861f7
183
py
Python
mecodesktop.py
jkitzes/macroeco
ee5fac5560a2d64de3a64738b5bc6833e2d7ff2e
[ "BSD-2-Clause" ]
7
2015-08-01T01:04:28.000Z
2021-08-21T12:10:57.000Z
mecodesktop.py
Zakher21/macroeco
ee5fac5560a2d64de3a64738b5bc6833e2d7ff2e
[ "BSD-2-Clause" ]
27
2015-06-03T18:50:08.000Z
2021-08-07T15:42:49.000Z
mecodesktop.py
Zakher21/macroeco
ee5fac5560a2d64de3a64738b5bc6833e2d7ff2e
[ "BSD-2-Clause" ]
2
2018-04-28T06:32:19.000Z
2019-01-13T12:09:02.000Z
""" MacroecoDesktop script for making standalone executable """ import sys as _sys from macroeco import desktop if len(_sys.argv) > 1: desktop(_sys.argv[1]) else: desktop()
15.25
55
0.715847
25
183
5.12
0.68
0.109375
0.125
0
0
0
0
0
0
0
0
0.013333
0.180328
183
11
56
16.636364
0.84
0.300546
0
0
0
0
0
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
974bb139fb902b5371670569a1fee8c651dfb3d8
714
py
Python
SBB/environments/reinforcement/opponent_factory.py
jpbonson/SBBReinforcementLearning
78ccc5f1d8b84b6f5668940e6cf5391265f043e3
[ "BSD-2-Clause" ]
27
2016-10-12T01:28:38.000Z
2021-09-27T05:09:59.000Z
SBB/environments/reinforcement/opponent_factory.py
jpbonson/SBBReinforcementLearner
78ccc5f1d8b84b6f5668940e6cf5391265f043e3
[ "BSD-2-Clause" ]
null
null
null
SBB/environments/reinforcement/opponent_factory.py
jpbonson/SBBReinforcementLearner
78ccc5f1d8b84b6f5668940e6cf5391265f043e3
[ "BSD-2-Clause" ]
9
2016-10-04T22:00:23.000Z
2020-08-03T21:30:38.000Z
from default_opponent import DefaultOpponent class DummyOpponent(DefaultOpponent): OPPONENT_ID = "dummy" def __init__(self, classtype, opponent_id): self._type = classtype DummyOpponent.OPPONENT_ID = opponent_id super(DummyOpponent, self).__init__(DummyOpponent.OPPONENT_ID) def in...
32.454545
70
0.72409
83
714
5.759036
0.373494
0.188285
0.096234
0.083682
0
0
0
0
0
0
0
0
0.189076
714
22
71
32.454545
0.825561
0
0
0.117647
0
0
0.018182
0
0
0
0
0
0
1
0.294118
false
0.117647
0.058824
0
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
0
0
0
1
0
1
0
0
1
0
0
3
97625d8b993c28efbea93bbd43de468b5bf31f38
200
py
Python
tests/test.py
nghiemIUH/auto-uwsgi
4a91b1af0b67aec158915bf992fa45c906f61ea5
[ "MIT" ]
3
2022-03-05T13:33:14.000Z
2022-03-19T09:13:58.000Z
tests/test.py
nghiemIUH/auto-uwsgi
4a91b1af0b67aec158915bf992fa45c906f61ea5
[ "MIT" ]
null
null
null
tests/test.py
nghiemIUH/auto-uwsgi
4a91b1af0b67aec158915bf992fa45c906f61ea5
[ "MIT" ]
1
2022-03-05T13:33:38.000Z
2022-03-05T13:33:38.000Z
from auto_uwsgi import Deployment deploy = Deployment( 'nghiem', '/home/nghiem/auto-uwsgi/tests/projecttest', '/home/nghiem/auto-uwsgi/tests/venv', '192.168.0.105' ) deploy.start()
16.666667
48
0.68
26
200
5.192308
0.615385
0.2
0.207407
0.281481
0.355556
0
0
0
0
0
0
0.059524
0.16
200
11
49
18.181818
0.744048
0
0
0
0
0
0.472362
0.376884
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
9788e1de9514b5b233a3af2b41240c769e57268f
518
py
Python
saleor/core/migrations/0005_auto_20180922_2138.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
null
null
null
saleor/core/migrations/0005_auto_20180922_2138.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
null
null
null
saleor/core/migrations/0005_auto_20180922_2138.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
1
2021-12-02T18:49:31.000Z
2021-12-02T18:49:31.000Z
# Generated by Django 2.0.3 on 2018-09-22 16:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20180922_1119'), ] operations = [ migrations.RenameField( model_name='bulkordercolor', old_name='order_col...
21.583333
47
0.567568
52
518
5.442308
0.673077
0.14841
0.183746
0.212014
0
0
0
0
0
0
0
0.088319
0.322394
518
23
48
22.521739
0.717949
0.086873
0
0.352941
1
0
0.176221
0.048832
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
978e7ff3b92a978bf346653d378efedcb428bb7b
418
py
Python
tools/leetcode.049.Group Anagrams/leetcode.049.Group Anagrams.submission4.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.049.Group Anagrams/leetcode.049.Group Anagrams.submission4.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.049.Group Anagrams/leetcode.049.Group Anagrams.submission4.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution: # @param {string[]} strs # @return {string[]} def anagrams(self, strs): d = {} for s in strs: x = ''.join(sorted(list(s))) if x not in d: d[x] = [s] else: d[x].append(s) res = [] for k in d: ...
418
418
0.356459
50
418
2.98
0.52
0.040268
0
0
0
0
0
0
0
0
0
0.004831
0.504785
418
1
418
418
0.714976
0.098086
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
979b3e608bda8d36b3865feb14f62f5a97e540e2
2,017
py
Python
schemas/accounts.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
null
null
null
schemas/accounts.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
null
null
null
schemas/accounts.py
airflow-plugins/aptrinsic_plugin
73e10274eb29ff1e3faea3a231509bfa382ec6f7
[ "Apache-2.0" ]
1
2021-03-24T11:23:30.000Z
2021-03-24T11:23:30.000Z
accounts = [{"name": "id", "type": "varchar(256)"}, {"name": "name", "type": "varchar(256)"}, {"name": "tracked_subscription_id", "type": "varchar(256)"}, {"name": "sfdc_id", "type": "varchar(256)"}, {"name": "last_seen_...
38.056604
54
0.424888
164
2,017
5.02439
0.27439
0.293689
0.339806
0.436893
0.599515
0.279126
0
0
0
0
0
0.055774
0.368865
2,017
52
55
38.788462
0.591516
0
0
0.423077
0
0
0.445711
0.061477
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
97a35d5e205224b19dad0634a6bda65656c781f6
1,663
py
Python
week 1/4/4a.py
Monxun/SmoothStack
4daace80584826a95914231596c2057416e41933
[ "MIT" ]
null
null
null
week 1/4/4a.py
Monxun/SmoothStack
4daace80584826a95914231596c2057416e41933
[ "MIT" ]
null
null
null
week 1/4/4a.py
Monxun/SmoothStack
4daace80584826a95914231596c2057416e41933
[ "MIT" ]
null
null
null
####################### # question 1 def hello(): print("Hello World") ####################### # question 2 def name_func(name): print(f"Hi my name is {name}") ####################### # question 3 def num_func2(x, y, z): if z == True: return x else: return y ####################...
14.46087
53
0.442574
211
1,663
3.436019
0.293839
0.024828
0.077241
0.035862
0.303448
0.303448
0.24
0.24
0.24
0.24
0
0.025535
0.269994
1,663
115
54
14.46087
0.571664
0.087793
0
0.354167
0
0
0.025726
0
0
0
0
0
0
1
0.270833
false
0
0
0.125
0.5625
0.0625
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
97b169da957d6855f49b05e9f0e9ba0e4e0ce29a
165
py
Python
code/Alignment/FREAD/pyfread_cpp/atom2coord.py
Eitan177/StructuralMapping
c20ce43de2698902d606b718c9a9fdf2296b0a52
[ "MIT" ]
9
2018-08-03T17:59:11.000Z
2020-04-10T20:56:32.000Z
code/Alignment/FREAD/pyfread_cpp/atom2coord.py
Eitan177/StructuralMapping
c20ce43de2698902d606b718c9a9fdf2296b0a52
[ "MIT" ]
null
null
null
code/Alignment/FREAD/pyfread_cpp/atom2coord.py
Eitan177/StructuralMapping
c20ce43de2698902d606b718c9a9fdf2296b0a52
[ "MIT" ]
3
2019-01-08T21:40:02.000Z
2020-04-10T21:00:58.000Z
import sys for line in sys.stdin: if line.startswith('#'): print line.strip() else: print line[31:38].strip(), line[38:46].strip(), line[46:54].strip()
20.625
71
0.630303
27
165
3.851852
0.555556
0.173077
0
0
0
0
0
0
0
0
0
0.087591
0.169697
165
7
72
23.571429
0.671533
0
0
0
0
0
0.006061
0
0
0
0
0
0
0
null
null
0
0.166667
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
97bc504fed9bfb74075befb890bc109efaaf2e6a
6,646
py
Python
Local-Controller/proto/connection_pb2_grpc.py
qcz994/p4-bier
38d28a58d40a16d9c3aaabd4a37a61404705d0dd
[ "Apache-2.0" ]
11
2019-04-16T11:23:37.000Z
2021-05-28T14:56:25.000Z
Local-Controller/proto/connection_pb2_grpc.py
qcz994/p4-bier
38d28a58d40a16d9c3aaabd4a37a61404705d0dd
[ "Apache-2.0" ]
null
null
null
Local-Controller/proto/connection_pb2_grpc.py
qcz994/p4-bier
38d28a58d40a16d9c3aaabd4a37a61404705d0dd
[ "Apache-2.0" ]
2
2020-10-28T03:23:49.000Z
2021-09-04T06:47:42.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import connection_pb2 as connection__pb2 class LocalServerStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. ...
38.195402
76
0.749624
647
6,646
7.417311
0.131376
0.081267
0.067097
0.077099
0.761617
0.742655
0.671807
0.53657
0.492811
0.492811
0
0.005461
0.173337
6,646
173
77
38.416185
0.868038
0.118116
0
0.484375
1
0
0.13634
0.067654
0
0
0
0
0
1
0.085938
false
0.078125
0.015625
0
0.132813
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
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
97c5b02277205710b3eb74b7a01e19a039208777
302
py
Python
gym_minigrid/envs/pixelart.py
Rockett8855/gym-minigrid
e8f50fae6f0eb64b2c5a91db2164cd8114a7bf4a
[ "BSD-3-Clause" ]
2
2021-02-17T11:49:49.000Z
2021-05-05T06:32:10.000Z
gym_minigrid/envs/pixelart.py
Rockett8855/gym-minigrid
e8f50fae6f0eb64b2c5a91db2164cd8114a7bf4a
[ "BSD-3-Clause" ]
null
null
null
gym_minigrid/envs/pixelart.py
Rockett8855/gym-minigrid
e8f50fae6f0eb64b2c5a91db2164cd8114a7bf4a
[ "BSD-3-Clause" ]
null
null
null
from gym_minigrid.minigrid import * from gym_minigrid.register import register class PusherEnv(MiniGridEnv): def __init__(self, size=8, agents_start_config) self.agents = agents_start_config super().__init__(grid_size=size, max_steps=4*size*size, see_through_walls=True)
30.2
87
0.748344
41
302
5.073171
0.609756
0.067308
0.144231
0
0
0
0
0
0
0
0
0.007968
0.168874
302
9
88
33.555556
0.820717
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
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
8af4113eaed49293da39b002b0b12c5826ce0dda
732
py
Python
stories/decorators.py
luterien/madcyoa
1af9140717fd00c5c671ccbcd09d75df51dee263
[ "Apache-2.0" ]
null
null
null
stories/decorators.py
luterien/madcyoa
1af9140717fd00c5c671ccbcd09d75df51dee263
[ "Apache-2.0" ]
null
null
null
stories/decorators.py
luterien/madcyoa
1af9140717fd00c5c671ccbcd09d75df51dee263
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import redirect from functools import wraps from django.core.urlresolvers import reverse from .models import Story def can_edit_story(redirect_url=None): def decorator(function): def _control(request, *args, **kwargs): # get story object slug = kwargs.get("sl...
28.153846
81
0.642077
87
732
5.310345
0.505747
0.04329
0.073593
0
0
0
0
0
0
0
0
0
0.27459
732
25
82
29.28
0.870057
0.076503
0
0
0
0
0.013393
0
0
0
0
0
0
1
0.235294
false
0.058824
0.235294
0
0.705882
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
c10128da3d92cd219be83aaab10804951cb4ff91
635
py
Python
python/349.intersection-of-two-arrays.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
1
2019-04-11T12:34:55.000Z
2019-04-11T12:34:55.000Z
python/349.intersection-of-two-arrays.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
python/349.intersection-of-two-arrays.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=349 lang=python3 # # [349] 两个数组的交集 # # https://leetcode-cn.com/problems/intersection-of-two-arrays/description/ # # algorithms # Easy (58.91%) # Total Accepted: 14.7K # Total Submissions: 24.4K # Testcase Example: '[1,2,2,1]\n[2,2]' # # 给定两个数组,编写一个函数来计算它们的交集。 # # 示例 1: # # 输入: nums1 = [...
15.875
76
0.582677
94
635
3.93617
0.585106
0.021622
0.016216
0.021622
0
0
0
0
0
0
0
0.098814
0.20315
635
39
77
16.282051
0.632411
0.655118
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
c119b5cb3949d83075d983c21c898df8fd43100d
89
py
Python
projects/controllers/deployments/__init__.py
dnlcesilva/projects
8e367d502aa0ffe3ed29f767d6ab039e6bee282f
[ "Apache-2.0" ]
6
2019-09-16T13:07:20.000Z
2021-06-02T19:02:05.000Z
projects/controllers/deployments/__init__.py
ndarvishev/projects
6a9855c5f8af8fad2799ef7a203e126b834c5056
[ "Apache-2.0" ]
325
2019-09-20T20:06:00.000Z
2022-03-30T15:05:49.000Z
projects/controllers/deployments/__init__.py
ndarvishev/projects
6a9855c5f8af8fad2799ef7a203e126b834c5056
[ "Apache-2.0" ]
17
2019-08-02T16:55:47.000Z
2021-06-26T19:13:35.000Z
from .deployments import DeploymentController __all__ = [ "DeploymentController", ]
14.833333
45
0.764045
6
89
10.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.157303
89
5
46
17.8
0.853333
0
0
0
0
0
0.224719
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
1
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
c12a94587c228edec6f9a2564d519ea9a80404d0
98
py
Python
hufscoops/apps.py
JunKiBeom/HUFormation-kakao
a76c23fa0e8e0625b7ae98e79df117c9e4ac8fb5
[ "MIT" ]
5
2017-12-03T15:09:09.000Z
2019-04-21T09:17:21.000Z
hufscoops/apps.py
roharon/HUFormation
ff6e49e285e39b132d426a96f64d7f5aa6f375ed
[ "MIT" ]
3
2017-12-12T03:50:15.000Z
2020-06-06T01:09:50.000Z
hufscoops/apps.py
roharon/HUFormation
ff6e49e285e39b132d426a96f64d7f5aa6f375ed
[ "MIT" ]
10
2017-12-03T13:16:22.000Z
2021-12-14T05:35:48.000Z
from django.apps import AppConfig class HufscoopsConfig(AppConfig): name = 'hufscoops'
16.333333
34
0.72449
10
98
7.1
0.9
0
0
0
0
0
0
0
0
0
0
0
0.204082
98
5
35
19.6
0.910256
0
0
0
0
0
0.096774
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
c12fd1656f8a56214e87f84517f78ff1eac2e333
342
py
Python
vectorize/__init__.py
karlding/vectorize
4af821379df041dcdb85d5549308d61544e1e0fc
[ "MIT" ]
4
2017-02-09T17:34:40.000Z
2020-05-29T16:50:02.000Z
vectorize/__init__.py
karlding/vectorize
4af821379df041dcdb85d5549308d61544e1e0fc
[ "MIT" ]
null
null
null
vectorize/__init__.py
karlding/vectorize
4af821379df041dcdb85d5549308d61544e1e0fc
[ "MIT" ]
1
2022-01-04T16:16:21.000Z
2022-01-04T16:16:21.000Z
"""Package's main module!""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from vectorize import metadata __version__ = metadata.version __author__ = metadata.authors[0] __license__ = metadata.license __copyright__...
24.428571
39
0.836257
40
342
6.275
0.525
0.159363
0.25498
0
0
0
0
0
0
0
0
0.003289
0.111111
342
13
40
26.307692
0.822368
0.064327
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.555556
0
0.555556
0.111111
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
c12fff9652963d6fc372743e0e768efb5aa071ee
926
py
Python
src/finoptions/monte_carlo_options/mc_paths.py
bbcho/finoptions-dev
81365b6d93693b0b546be92448db858ccce44d5a
[ "MIT" ]
9
2021-09-21T05:39:10.000Z
2022-02-14T22:27:46.000Z
src/finoptions/monte_carlo_options/mc_paths.py
bbcho/energyderivatives
81365b6d93693b0b546be92448db858ccce44d5a
[ "MIT" ]
null
null
null
src/finoptions/monte_carlo_options/mc_paths.py
bbcho/energyderivatives
81365b6d93693b0b546be92448db858ccce44d5a
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import numpy as _np class Path(ABC): def __init__(self, epsilon, sigma, dt, b): self.epsilon = epsilon self.sigma = sigma self.dt = dt self.b = b @abstractmethod def generate_path(self): pass class WienerPath(Path): """ ...
25.027027
106
0.612311
122
926
4.57377
0.47541
0.05914
0.053763
0.0681
0
0
0
0
0
0
0
0.009202
0.295896
926
36
107
25.722222
0.846626
0.421166
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0.071429
0.142857
0.071429
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
c154bb57827d41c4c44506bbd47784502520c48e
1,338
py
Python
tests/test_compare_contact_data_db.py
Stabilniy/python_training
b3495595445a80e408ad2a4a33536166259655f3
[ "Apache-2.0" ]
1
2020-04-27T12:11:51.000Z
2020-04-27T12:11:51.000Z
tests/test_compare_contact_data_db.py
Stabilniy/python_training
b3495595445a80e408ad2a4a33536166259655f3
[ "Apache-2.0" ]
null
null
null
tests/test_compare_contact_data_db.py
Stabilniy/python_training
b3495595445a80e408ad2a4a33536166259655f3
[ "Apache-2.0" ]
null
null
null
from modules.contact import Contact import re def test_compare_home_edit_user_page(app,db): id_list = sorted(db.get_contact_id()) sorted_contact_data_home_page = sorted(db.get_contact_list(), key = Contact.id_or_max) for i in id_list: contact_data_edit_page = app.contact.data_edit_page_id(i) ...
53.52
167
0.755605
208
1,338
4.480769
0.269231
0.177039
0.128755
0.16309
0.5397
0.459227
0.315451
0.315451
0.315451
0.315451
0
0.002591
0.134529
1,338
24
168
55.75
0.802245
0
0
0
0
0
0.007479
0
0
0
0
0
0.263158
1
0.210526
false
0
0.105263
0.157895
0.473684
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
3
c171aab4eb9b5d533f05c6ef5c8aa90881891c08
315
py
Python
venv/Lib/site-packages/redbaron/private_config.py
kofakira/migrate-ext
1b3058a7cc123ab9648d89d1cb76723bea945fd9
[ "BSD-4-Clause" ]
2
2022-01-31T03:13:46.000Z
2022-01-31T03:14:22.000Z
venv/Lib/site-packages/redbaron/private_config.py
kofakira/migrate-ext
1b3058a7cc123ab9648d89d1cb76723bea945fd9
[ "BSD-4-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
venv/Lib/site-packages/redbaron/private_config.py
kofakira/migrate-ext
1b3058a7cc123ab9648d89d1cb76723bea945fd9
[ "BSD-4-Clause" ]
null
null
null
from __future__ import absolute_import import redbaron def runned_from_ipython(): # for testing if redbaron.force_ipython_behavior: return True if not redbaron.ipython_behavior: return False try: __IPYTHON__ return True except NameError: return False
17.5
39
0.67619
35
315
5.685714
0.571429
0.150754
0.211055
0
0
0
0
0
0
0
0
0
0.292063
315
17
40
18.529412
0.892377
0.034921
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.083333
true
0
0.166667
0
0.583333
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
1
0
0
0
1
0
0
3
c188480ca5f22f8f401d4fa9fb778b478ca67ea3
115
py
Python
mWinHTTP/mPrimitives.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
2
2019-08-01T15:08:25.000Z
2021-01-30T07:29:34.000Z
mWinHTTP/mPrimitives.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
mWinHTTP/mPrimitives.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
from ..mWindowsPrimitives import *; # Source for these is internet searches, nothing reliable. HINTERNET = PVOID;
23
58
0.773913
13
115
6.846154
1
0
0
0
0
0
0
0
0
0
0
0
0.147826
115
4
59
28.75
0.908163
0.486957
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
c193c65a27c96ee82c0290da21512f6e91cfcb9b
2,485
py
Python
04 - Classes-inheritance-oops/03-classes-methods.py
python-demo-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
2
2019-08-23T06:05:55.000Z
2019-08-26T03:56:07.000Z
04 - Classes-inheritance-oops/03-classes-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
null
null
null
04 - Classes-inheritance-oops/03-classes-methods.py
python-lang-codes/basics
2a151bbff4b528cefd52978829c632fd087c8f20
[ "DOC" ]
4
2020-10-01T07:16:07.000Z
2021-07-17T07:55:08.000Z
# HEAD # Classes Introduction - Methods # DESCRIPTION # Describes how to create methods in classes # Use classes to create objects with own methods # RESOURCES # # Creating a custom class # Class name - MethodDefs class MethodDefs(): # Simple public method doing just printing # # Method follows a...
29.939759
72
0.650302
317
2,485
5.050473
0.33123
0.044972
0.022486
0.068707
0.271705
0.213616
0.138663
0.09619
0.09619
0.09619
0
0.017052
0.26841
2,485
82
73
30.304878
0.863586
0.544064
0
0.227273
0
0
0.196511
0.020202
0
0
0
0
0
1
0.318182
false
0
0
0.181818
0.636364
0.318182
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
c19cf1fa3012e01c627de89569b95636db6ae3da
4,374
py
Python
mysite/settings.py
manabu/django-allauth-test
8d3eb9f4595a631ad5b3ac443f8fa8e38e398277
[ "MIT" ]
null
null
null
mysite/settings.py
manabu/django-allauth-test
8d3eb9f4595a631ad5b3ac443f8fa8e38e398277
[ "MIT" ]
null
null
null
mysite/settings.py
manabu/django-allauth-test
8d3eb9f4595a631ad5b3ac443f8fa8e38e398277
[ "MIT" ]
null
null
null
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # ...
27.683544
91
0.695245
486
4,374
6.158436
0.401235
0.078182
0.051119
0.05847
0.217173
0.20147
0.109255
0.089208
0.040094
0
0
0.0108
0.17444
4,374
157
92
27.859873
0.818056
0.346822
0
0.02381
1
0
0.54794
0.460938
0
0
0
0
0
1
0
false
0.059524
0.011905
0
0.011905
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
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
c1a05470505d7ae841ae008faba49a27d7acb410
3,199
py
Python
tests/unittests/io_tests.py
slagroom/tictasm
1991ab42768f5de8ec86631dc3804039d051f371
[ "MIT" ]
null
null
null
tests/unittests/io_tests.py
slagroom/tictasm
1991ab42768f5de8ec86631dc3804039d051f371
[ "MIT" ]
null
null
null
tests/unittests/io_tests.py
slagroom/tictasm
1991ab42768f5de8ec86631dc3804039d051f371
[ "MIT" ]
null
null
null
import framework import os from proxys import Io import subprocess scriptdir = os.path.dirname(__file__) class Println_Prints(framework.Test): def __init__(self): super().__init__() def test(self): expected = "line to print" result = subprocess.run( [ "python", f"{scriptdir}/io...
27.110169
99
0.662082
389
3,199
5.174807
0.213368
0.059613
0.038251
0.052161
0.647293
0.628912
0.616493
0.563338
0.533035
0.533035
0
0.003545
0.206314
3,199
118
100
27.110169
0.789287
0
0
0.380952
0
0
0.206563
0.055938
0
0
0
0
0
1
0.396825
false
0
0.063492
0.190476
0.571429
0.079365
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
c1db81d2baea5e857c0ab8af438ab924421917ba
161
py
Python
src/module/utils/squash.py
PirateX0/MAMS-for-ABSA
cddcdb0f423b3fdb2c76b70744737abed3a00d17
[ "Apache-2.0" ]
203
2019-08-20T04:36:08.000Z
2022-03-24T12:56:23.000Z
src/module/utils/squash.py
PirateX0/MAMS-for-ABSA
cddcdb0f423b3fdb2c76b70744737abed3a00d17
[ "Apache-2.0" ]
10
2019-09-23T09:29:20.000Z
2022-03-25T12:39:19.000Z
src/module/utils/squash.py
PirateX0/MAMS-for-ABSA
cddcdb0f423b3fdb2c76b70744737abed3a00d17
[ "Apache-2.0" ]
52
2019-09-18T12:51:20.000Z
2022-03-14T15:35:41.000Z
import torch def squash(x, dim=-1): squared = torch.sum(x * x, dim=dim, keepdim=True) scale = torch.sqrt(squared) / (1.0 + squared) return scale * x
26.833333
53
0.627329
26
161
3.884615
0.576923
0.079208
0
0
0
0
0
0
0
0
0
0.02381
0.217391
161
6
54
26.833333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
de14c0bb42a24a0ef69b6a90b38eee0a6b7ee7f6
4,545
py
Python
Node.py
XURIGHT/Advisor-Advisee_SAE
2bb0a221bea05af0ddc4ebd87e5ec86a8d14d12f
[ "MIT" ]
null
null
null
Node.py
XURIGHT/Advisor-Advisee_SAE
2bb0a221bea05af0ddc4ebd87e5ec86a8d14d12f
[ "MIT" ]
1
2021-09-15T12:15:32.000Z
2021-09-15T12:15:32.000Z
Node.py
XURIGHT/Advisor-Advisee_SAE
2bb0a221bea05af0ddc4ebd87e5ec86a8d14d12f
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- import bisect import numpy as np import Levenshtein class Node: def __init__(self, index, name): self.index = index self.name = name self.min_year = 1970 self.max_year = 2021 self.years = [x for x in range(self.min_year, self.max_year + 1)] self.n...
42.083333
1,094
0.529373
539
4,545
4.337662
0.365492
0.025663
0.042344
0.04491
0.226689
0.165954
0.146279
0.146279
0.146279
0.146279
0
0.266562
0.30253
4,545
107
1,095
42.476636
0.470978
0.013641
0
0.133333
0
0
0.015182
0
0
0
0
0
0
1
0.055556
false
0.011111
0.033333
0
0.155556
0.033333
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
a9a729645c5a82b1984b7b4005a2b59a1e9b2e0f
807
py
Python
api/api_cv2.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
api/api_cv2.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
api/api_cv2.py
kamerons/dde-extract-gear
44464ae470bd5de6279d32e3587b469ce006ea42
[ "Apache-2.0" ]
null
null
null
import cv2 class ApiCv2: def __init__(self, args, api_builtin): self.show_images = not args.quiet self.safe = args.safe self.quiet = args.quiet self.api_builtin = api_builtin def imread(self, file_name): return cv2.imread(file_name) def imwrite(self, file_name, img): if not self.safe...
21.236842
65
0.692689
113
807
4.787611
0.318584
0.083179
0.051756
0.096118
0.118299
0
0
0
0
0
0
0.020186
0.201983
807
37
66
21.810811
0.819876
0
0
0
0
0
0.003717
0
0
0
0
0
0
1
0.304348
false
0
0.043478
0.173913
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
a9a9942b21dfb65f47529206a821a58f840974cd
227
py
Python
clashofclans/__init__.py
TheF1ng3r/finger-cogs
e5d7fe590cfd8dc6fa48e68110c2cda7c55673d2
[ "MIT" ]
4
2021-09-23T17:05:34.000Z
2021-09-24T08:01:30.000Z
clashofclans/__init__.py
TheF1ng3r/finger-cogs
e5d7fe590cfd8dc6fa48e68110c2cda7c55673d2
[ "MIT" ]
3
2021-09-24T08:00:28.000Z
2021-12-31T22:44:47.000Z
clashofclans/__init__.py
TheF1ng3r/finger-cogs
e5d7fe590cfd8dc6fa48e68110c2cda7c55673d2
[ "MIT" ]
1
2021-09-29T08:25:55.000Z
2021-09-29T08:25:55.000Z
from .clashofclans import ClashOfClans __red_end_user_data_statement__ = "This cog stores data only if set by the user. Your clan and account tags are the only data saved." def setup(bot): bot.add_cog(ClashOfClans(bot))
28.375
133
0.779736
37
227
4.540541
0.72973
0
0
0
0
0
0
0
0
0
0
0
0.15859
227
7
134
32.428571
0.879581
0
0
0
0
0.25
0.427313
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
3
a9ca65af6a05bb46012400817a157a15942471d0
918
py
Python
easl/mechanisms/randomized.py
Luciden/mobile-sim
7263445b855740137ee0accd0e987953ebeddd06
[ "MIT" ]
1
2015-04-17T16:51:10.000Z
2015-04-17T16:51:10.000Z
easl/mechanisms/randomized.py
Luciden/mobile-sim
7263445b855740137ee0accd0e987953ebeddd06
[ "MIT" ]
null
null
null
easl/mechanisms/randomized.py
Luciden/mobile-sim
7263445b855740137ee0accd0e987953ebeddd06
[ "MIT" ]
null
null
null
__author__ = 'Dennis' import random from mechanism import Mechanism class RandomizedMechanism(Mechanism): """ Agent that performs a single random action at every iteration.. """ def __init__(self): super(RandomizedMechanism, self).__init__() self.motor_signals_and_domains = {} ...
24.810811
72
0.638344
101
918
5.554455
0.544554
0.064171
0.114082
0.135472
0.228164
0.135472
0.135472
0
0
0
0
0.001479
0.263617
918
36
73
25.5
0.828402
0.27342
0
0
0
0
0.009967
0
0
0
0
0
0
1
0.266667
false
0.066667
0.133333
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
3
a9efac2472d5ec5ab657aca37153c615f8ccd189
962
py
Python
mecc/templatetags/mecc_tags.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
mecc/templatetags/mecc_tags.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
3
2021-03-19T10:36:10.000Z
2021-09-08T01:37:47.000Z
mecc/templatetags/mecc_tags.py
unistra/eva
9f7bd8c44edbca05eb45b36cb5b8e658e53bc3c0
[ "Apache-2.0" ]
null
null
null
from django import template from django.conf import settings from django.utils.translation import ugettext_lazy as _ from mecc.apps.mecctable.models import Exam register = template.Library() @register.filter def redify(value, redvalue): return '<span class="red">%s</span>' % value if value == _(redvalue) else va...
26.722222
95
0.722453
134
962
5.029851
0.455224
0.077151
0.050445
0.05638
0
0
0
0
0
0
0
0
0.164241
962
35
96
27.485714
0.838308
0.047817
0
0.166667
0
0
0.088621
0.022976
0
0
0
0
0
1
0.208333
false
0
0.166667
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
e7158c33e997b0a6b6e49747fd20f2a82c291f38
11,976
py
Python
TDO/analysis/precision_and_recall.py
lgi2p/TDSelection
bd695d19e991cc852c00b73aa874406c9d37c391
[ "MIT" ]
null
null
null
TDO/analysis/precision_and_recall.py
lgi2p/TDSelection
bd695d19e991cc852c00b73aa874406c9d37c391
[ "MIT" ]
null
null
null
TDO/analysis/precision_and_recall.py
lgi2p/TDSelection
bd695d19e991cc852c00b73aa874406c9d37c391
[ "MIT" ]
null
null
null
import sys import os import copy import datetime from TDO.utils_tdo import utils_normalize_conf from TDO.utils_tdo import utils_predicate from TDO.experiments.model import preprocessing_sums_model from TDO.utils_tdo import utils_dataset from TDO.utils_tdo import utils_writing_results from TDO.experiments.truth...
40.187919
284
0.631012
1,779
11,976
3.905003
0.082069
0.041457
0.077731
0.054412
0.790845
0.749388
0.710954
0.680294
0.672521
0.638693
0
0.015316
0.236723
11,976
297
285
40.323232
0.744667
0.102037
0
0.621277
0
0
0.049957
0.014383
0
0
0
0
0
1
0.008511
false
0
0.046809
0
0.06383
0.046809
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
e71832f4a458314de07a8af06edcb4a58e928bfc
198
py
Python
boa3_test/test_sc/function_test/CallReturnFunctionWithVariableArgs.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/function_test/CallReturnFunctionWithVariableArgs.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/function_test/CallReturnFunctionWithVariableArgs.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public def Main(operation: str, args: tuple) -> int: a = 1 b = 2 c = TestAdd(a, b) return c @public def TestAdd(a: int, b: int) -> int: return a + b
14.142857
45
0.575758
33
198
3.454545
0.575758
0.157895
0
0
0
0
0
0
0
0
0
0.021583
0.29798
198
13
46
15.230769
0.798561
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0.111111
0.555556
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
e7189c86bf36fad71fc8f69b697915f26495c425
816
py
Python
modules/uptime.py
jhaals/servermonitor
2f79d7cf6583bbda27902b12e32bf9679617ac3a
[ "BSD-3-Clause" ]
1
2016-05-09T10:39:21.000Z
2016-05-09T10:39:21.000Z
modules/uptime.py
jhaals/servermonitor
2f79d7cf6583bbda27902b12e32bf9679617ac3a
[ "BSD-3-Clause" ]
null
null
null
modules/uptime.py
jhaals/servermonitor
2f79d7cf6583bbda27902b12e32bf9679617ac3a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyleft 2010, Daniel Beecham <joshu@lunix.se> # All rights reversed. """This module will get and send uptime info.""" import cnf; import commands; import urllib; import re; def main(): """servermonitor.uptime main function. Get uptime and send it to servermonitor servers.""" if not ...
23.314286
86
0.64951
111
816
4.774775
0.603604
0.039623
0.033962
0.049057
0.067925
0
0
0
0
0
0
0.01087
0.210784
816
34
87
24
0.812112
0.265931
0
0.153846
0
0
0.131403
0
0
0
0
0
0
0
null
null
0.076923
0.307692
null
null
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
1
0
0
1
1
0
0
0
0
3
e73f2d749aaba1230120aa42fb65f4dc77e60e92
172
py
Python
phomo/__init__.py
loiccoyle/MosaicMaker
84ec5c45f7db681877f044c592c236d808783ba3
[ "MIT" ]
7
2021-09-09T21:55:21.000Z
2022-02-11T21:57:59.000Z
phomo/__init__.py
loiccoyle/MosaicMaker
84ec5c45f7db681877f044c592c236d808783ba3
[ "MIT" ]
null
null
null
phomo/__init__.py
loiccoyle/MosaicMaker
84ec5c45f7db681877f044c592c236d808783ba3
[ "MIT" ]
1
2021-09-11T01:26:03.000Z
2021-09-11T01:26:03.000Z
import logging from .master import Master from .mosaic import Mosaic from .pool import Pool logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler())
19.111111
40
0.80814
22
172
6.136364
0.5
0
0
0
0
0
0
0
0
0
0
0
0.116279
172
8
41
21.5
0.888158
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e7404dfbbe70372cc0826ea911fa6bf4dc653bb2
1,039
py
Python
biothings/schema/utils.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/schema/utils.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/schema/utils.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
""" Starting some utils for biothings schema. """ import temp_schema SCHEMA = temp_schema.SCHEMA #def generate_avro_schema(schema): #def generate_web_schema(schema): #def generate_jsonld_schema(schema): def generate_es_mappings(schema): def _traverse(d): r = {} if '@esmappings' in d: ...
28.861111
62
0.53898
132
1,039
4.136364
0.386364
0.10989
0.10989
0.168498
0
0
0
0
0
0
0
0.006906
0.303176
1,039
35
63
29.685714
0.747238
0.21078
0
0
1
0
0.10136
0
0
0
0
0.028571
0
1
0.090909
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
3
e748203ec70960ad03e3f38953879819bd02e2c4
1,109
py
Python
tf_encrypted/layers/core.py
Liangrj5/tf-encrypted
225d9cd45889a741e9ffbdeb355676d23eb66f9e
[ "Apache-2.0" ]
3
2018-10-18T19:36:02.000Z
2020-07-05T19:46:23.000Z
tf_encrypted/layers/core.py
ArrowSides/tf-encrypted
3279cb81bd4242eec9afa60db00127a5bac228bf
[ "Apache-2.0" ]
null
null
null
tf_encrypted/layers/core.py
ArrowSides/tf-encrypted
3279cb81bd4242eec9afa60db00127a5bac228bf
[ "Apache-2.0" ]
null
null
null
"""Includes base classes used by all layer types.""" from typing import List, Optional from abc import ABC, abstractmethod from tf_encrypted.protocol.pond import TFEVariable from tf_encrypted.protocol.protocol import get_protocol, Protocol # TODO # Split backward function in compute_gradient and compute_backpropagat...
26.404762
79
0.71596
137
1,109
5.649635
0.430657
0.046512
0.05814
0.059432
0.085271
0
0
0
0
0
0
0
0.165915
1,109
41
80
27.04878
0.836757
0.277728
0
0.157895
0
0
0
0
0
0
0
0.04878
0
1
0.315789
false
0
0.210526
0.052632
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
3
e75261e8ccc9bab0d01c41a8c2c859d0eb73d368
199
py
Python
week02/test_variable_2.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
1
2022-03-20T12:49:43.000Z
2022-03-20T12:49:43.000Z
week02/test_variable_2.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
null
null
null
week02/test_variable_2.py
neolaw84/data_science_using_python_labs
15bd2445577c5e254831f2acd97ea4b93a224229
[ "Apache-2.0" ]
null
null
null
def test_var_1(): import lab_variable_2 as m assert m.price == 99.99 assert m.quantity == 5 assert m.VAT == 0.10 tot = m.price * m.quantity assert m.total == tot + tot * m.VAT
28.428571
39
0.60804
36
199
3.25
0.555556
0.239316
0
0
0
0
0
0
0
0
0
0.068966
0.271357
199
7
39
28.428571
0.737931
0
0
0
0
0
0
0
0
0
0
0
0.571429
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
3
e79a8958bd075334d8d52c1b13a13b6a63a5cf15
428
py
Python
asd.py
safamathl/ResUnet
04968053ddfedc8ef7e6d82d2b3a9b46f28d1692
[ "MIT" ]
3
2020-12-18T21:19:21.000Z
2022-01-20T12:38:42.000Z
asd.py
safamathl/ResUnet
04968053ddfedc8ef7e6d82d2b3a9b46f28d1692
[ "MIT" ]
null
null
null
asd.py
safamathl/ResUnet
04968053ddfedc8ef7e6d82d2b3a9b46f28d1692
[ "MIT" ]
2
2021-09-24T08:44:48.000Z
2022-03-17T06:45:11.000Z
import SimpleITK as sitk from medpy.metric import binary as bn import numpy as np y_true = sitk.ReadImage("/content/gdrive/My Drive/MICCAI-LITS2017-master/dataset/test/liver_pred/pred1.nii") y_pred = sitk.ReadImage("/content/gdrive/My Drive/MICCAI-LITS2017-master/dataset/test/seg/segmentation1.nii") t = np.array...
23.777778
109
0.754673
70
428
4.542857
0.557143
0.031447
0.125786
0.163522
0.402516
0.402516
0.402516
0.402516
0.402516
0.402516
0
0.028947
0.11215
428
17
110
25.176471
0.807895
0
0
0
0
0.222222
0.38785
0.292056
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.111111
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
1
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
e79d3f0b0a949909e813b206c5cbf52b68a808b6
155
py
Python
src/main.py
danbailo/update-xml
6a031f8cd11b715ea9687544ca07f6ee8af4186d
[ "Apache-2.0" ]
null
null
null
src/main.py
danbailo/update-xml
6a031f8cd11b715ea9687544ca07f6ee8af4186d
[ "Apache-2.0" ]
null
null
null
src/main.py
danbailo/update-xml
6a031f8cd11b715ea9687544ca07f6ee8af4186d
[ "Apache-2.0" ]
null
null
null
from core import Xml import args if __name__ == "__main__": args = args.get_args() xml = Xml(args.file,args.cnpj) xml.update_fields()
19.375
38
0.63871
22
155
4.045455
0.590909
0
0
0
0
0
0
0
0
0
0
0
0.245161
155
8
39
19.375
0.760684
0
0
0
0
0
0.051282
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
e79db46f152d4b481f2ca4b61853cbd3d918ca1f
214
py
Python
math/0x00-linear_algebra/3-flip_me_over.py
Naouali/holbertonschool-machine_learning
60b7d50cd385bdf9c1372b6004308eec408d2670
[ "MIT" ]
null
null
null
math/0x00-linear_algebra/3-flip_me_over.py
Naouali/holbertonschool-machine_learning
60b7d50cd385bdf9c1372b6004308eec408d2670
[ "MIT" ]
null
null
null
math/0x00-linear_algebra/3-flip_me_over.py
Naouali/holbertonschool-machine_learning
60b7d50cd385bdf9c1372b6004308eec408d2670
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Module to transpose a matrix """ def matrix_transpose(matrix): """ function to transpose a matrix """ return [[row[i] for row in matrix] for i in range(len(matrix[0]))]
17.833333
70
0.635514
32
214
4.21875
0.59375
0.162963
0.177778
0.266667
0
0
0
0
0
0
0
0.011905
0.214953
214
11
71
19.454545
0.791667
0.378505
0
0
0
0
0
0
0
0
0
0
0
1
0.5
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
0
0
0
1
0
0
0
0
1
0
0
3
e7ad69d10d37a73d640b80d66639a0739fb01082
340
py
Python
newsfeed/users/views.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
2
2018-12-20T01:12:38.000Z
2021-04-10T00:31:08.000Z
newsfeed/users/views.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
null
null
null
newsfeed/users/views.py
mccarrion/newsfeed-django
a69a02052c120132eb50c8ecb93ca15c6b2fc081
[ "MIT" ]
1
2020-11-25T19:38:20.000Z
2020-11-25T19:38:20.000Z
from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.permissions import IsAuthenticated from .serializers import UserSerializer class ProfileView(RetrieveUpdateAPIView): serializer_class = UserSerializer permission_classes = (IsAuthenticated,) def get_object(self): retur...
26.153846
57
0.811765
33
340
8.212121
0.666667
0.059041
0.125461
0
0
0
0
0
0
0
0
0
0.141176
340
12
58
28.333333
0.928082
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
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
0
0
1
1
1
0
0
3
e7b02c81e53be8ac65be2af715d57c47bb71cf75
1,226
py
Python
home/mixins.py
unicef/iogt
3f74f7f82b485e99a08253c6ffd10e1d296de332
[ "BSD-2-Clause" ]
20
2021-04-29T12:36:25.000Z
2022-03-27T12:17:41.000Z
home/mixins.py
unicef/iogt
3f74f7f82b485e99a08253c6ffd10e1d296de332
[ "BSD-2-Clause" ]
892
2021-02-02T13:56:06.000Z
2022-03-31T11:25:44.000Z
home/mixins.py
unicef/iogt
3f74f7f82b485e99a08253c6ffd10e1d296de332
[ "BSD-2-Clause" ]
28
2021-02-19T19:28:37.000Z
2022-03-11T11:46:00.000Z
from django.utils.functional import cached_property class PageUtilsMixin: """ This mixin contains the common properties/utilities shared across most children of wagtail.core.models.Page """ @cached_property def parent_section(self): from .models import Section return Section.o...
25.020408
83
0.62398
154
1,226
4.727273
0.38961
0.065934
0.049451
0.032967
0.046703
0
0
0
0
0
0
0.004561
0.284666
1,226
48
84
25.541667
0.825542
0.115824
0
0.071429
0
0
0.022879
0
0
0
0
0
0
1
0.214286
false
0
0.107143
0.107143
0.607143
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
e7b995c099c80b83792bc6a1564830d9f2b2e797
2,938
py
Python
src/main/migrations/0001_initial.py
Couapy/shelf
79cf937cb3ec41eca298326b66bf5a0978d265cd
[ "MIT" ]
null
null
null
src/main/migrations/0001_initial.py
Couapy/shelf
79cf937cb3ec41eca298326b66bf5a0978d265cd
[ "MIT" ]
3
2021-03-30T13:29:25.000Z
2021-09-22T19:10:02.000Z
src/main/migrations/0001_initial.py
Couapy/shelf
79cf937cb3ec41eca298326b66bf5a0978d265cd
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-06-04 13:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
49.79661
153
0.614704
310
2,938
5.654839
0.26129
0.112949
0.039932
0.06275
0.717627
0.717627
0.690245
0.690245
0.690245
0.690245
0
0.013453
0.24098
2,938
58
154
50.655172
0.772646
0.015317
0
0.607843
1
0
0.114839
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.137255
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
e7bb8550d734e372edd1311e6932ae0d12a78c3f
152
py
Python
pynlg/lexicon/feature/clause.py
roman-kutlak/pynlg
caea61e22bbdd38a09bd8e423e41749a70531e9f
[ "MIT" ]
null
null
null
pynlg/lexicon/feature/clause.py
roman-kutlak/pynlg
caea61e22bbdd38a09bd8e423e41749a70531e9f
[ "MIT" ]
null
null
null
pynlg/lexicon/feature/clause.py
roman-kutlak/pynlg
caea61e22bbdd38a09bd8e423e41749a70531e9f
[ "MIT" ]
null
null
null
# encoding: utf-8 """Definition of clause related features.""" from __future__ import unicode_literals MATRIX = "matrix" SUBORDINATE = "subordinate"
16.888889
44
0.756579
17
152
6.470588
0.882353
0
0
0
0
0
0
0
0
0
0
0.007634
0.138158
152
8
45
19
0.832061
0.361842
0
0
0
0
0.186813
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
e7bbfea6f2d039a8dcf285c017dd978c51af3559
535
py
Python
applied_python/applied_python/lib/python2.7/site-packages/netmiko/__init__.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
applied_python/applied_python/lib/python2.7/site-packages/netmiko/__init__.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
applied_python/applied_python/lib/python2.7/site-packages/netmiko/__init__.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
from netmiko.ssh_dispatcher import ConnectHandler from netmiko.ssh_dispatcher import ssh_dispatcher from netmiko.ssh_dispatcher import platforms from netmiko.scp_handler import SCPConn from netmiko.scp_handler import FileTransfer from netmiko.ssh_exception import NetMikoTimeoutException from netmiko.ssh_exception impor...
44.583333
86
0.837383
56
535
7.696429
0.339286
0.178654
0.162413
0.167053
0.468677
0
0
0
0
0
0
0.006211
0.097196
535
11
87
48.636364
0.886128
0
0
0
0
0
0.213084
0.099065
0
0
0
0
0
1
0
false
0
0.7
0
0.7
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
e7bf287453d618809bd4be57e4e32243204db678
275
py
Python
kawasemi/django.py
ymyzk/django-channels
1e5ae71a9b0d15f5780cf39b71f55a67985e491c
[ "MIT" ]
36
2015-06-19T08:24:21.000Z
2017-02-13T06:31:07.000Z
kawasemi/django.py
pythonthings/kawasemi
1e5ae71a9b0d15f5780cf39b71f55a67985e491c
[ "MIT" ]
34
2015-05-12T15:33:12.000Z
2017-01-30T02:15:59.000Z
kawasemi/django.py
ymyzk/kawasemi
1e5ae71a9b0d15f5780cf39b71f55a67985e491c
[ "MIT" ]
7
2017-04-04T09:45:21.000Z
2021-05-12T08:48:23.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from kawasemi import Kawasemi def _load_django_settings(): from django.conf import settings return settings.KAWASEMI _sender = Kawasemi(_load_django_settings()) send = _sender.send
19.642857
56
0.770909
34
275
5.823529
0.529412
0.10101
0.181818
0
0
0
0
0
0
0
0
0.004274
0.149091
275
13
57
21.153846
0.84188
0.076364
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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
99b988f09f4705e2471ebb3021bae7a356717bbf
201
py
Python
scripts/airodump/auto.py
muhdamrullah/air-auth
c4a6238f9d7af9acb75321384618d7ad560cbe47
[ "MIT" ]
null
null
null
scripts/airodump/auto.py
muhdamrullah/air-auth
c4a6238f9d7af9acb75321384618d7ad560cbe47
[ "MIT" ]
null
null
null
scripts/airodump/auto.py
muhdamrullah/air-auth
c4a6238f9d7af9acb75321384618d7ad560cbe47
[ "MIT" ]
null
null
null
#!/usr/bin/python import subprocess import time while True: subprocess.Popen('sudo airodump-ng wlan0 -w dump', shell=True) time.sleep(900) subprocess.call('sudo pkill airodump-ng', shell=True)
20.1
64
0.741294
30
201
4.966667
0.666667
0.134228
0
0
0
0
0
0
0
0
0
0.022857
0.129353
201
9
65
22.333333
0.828571
0.079602
0
0
0
0
0.282609
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
3
99c44bc2c2553f54c2e7ce5762b9035148400fda
120
py
Python
adv_cache_tag/tests/testproject/adv_cache_test_app/templatetags/other_tags.py
pgcd/django-adv-cache-tag
59671cc94160ba311833affc0619590275e49829
[ "MIT" ]
29
2015-01-27T13:04:26.000Z
2022-03-30T18:11:20.000Z
adv_cache_tag/tests/testproject/adv_cache_test_app/templatetags/other_tags.py
pgcd/django-adv-cache-tag
59671cc94160ba311833affc0619590275e49829
[ "MIT" ]
8
2015-09-10T10:29:52.000Z
2022-03-30T17:33:05.000Z
adv_cache_tag/tests/testproject/adv_cache_test_app/templatetags/other_tags.py
pgcd/django-adv-cache-tag
59671cc94160ba311833affc0619590275e49829
[ "MIT" ]
6
2015-03-10T19:46:19.000Z
2021-02-12T07:02:24.000Z
from django import template register = template.Library() @register.simple_tag def insert_foo(): return 'FoOoO'
12
29
0.741667
15
120
5.8
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.166667
120
9
30
13.333333
0.87
0
0
0
0
0
0.041667
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
3
99deedf8a8a743e2bdde6f83ff83c64707e8e9f6
803
py
Python
hyperion/grid/grid_on_disk.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
37
2015-01-29T20:58:04.000Z
2022-03-10T23:36:39.000Z
hyperion/grid/grid_on_disk.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
83
2015-01-07T11:04:08.000Z
2022-02-16T16:26:33.000Z
hyperion/grid/grid_on_disk.py
christopherlovell/hyperion
f65c253abf0bdf174a9302666bc2fec57f7ae7da
[ "BSD-2-Clause" ]
17
2015-04-21T13:17:41.000Z
2021-12-06T02:42:20.000Z
import h5py from ..util.otf_hdf5 import on_the_fly_hdf5 class GridOnDisk(object): def __init__(self, filename, path='/'): self.filename = filename self.path = path self.file = None @on_the_fly_hdf5 def __contains__(self, item): return item in self.file['Quantities'] ...
21.131579
62
0.64259
100
803
4.89
0.35
0.09816
0.04908
0.07362
0.06135
0
0
0
0
0
0
0.011706
0.255293
803
37
63
21.702703
0.80602
0
0
0.24
0
0
0.026152
0
0
0
0
0
0
1
0.24
false
0
0.08
0.16
0.56
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
99e4ece66267491785bf5ba346b8c5ab7ca6ba6c
16,114
py
Python
tests/test_cli.py
wohlgejm/accountable
20586365ccd319061e5548ce14fb0b8f449580fa
[ "MIT" ]
2
2017-07-24T21:01:27.000Z
2018-05-31T16:07:26.000Z
tests/test_cli.py
wohlgejm/accountable
20586365ccd319061e5548ce14fb0b8f449580fa
[ "MIT" ]
2
2016-06-30T22:34:23.000Z
2021-06-01T22:02:28.000Z
tests/test_cli.py
wohlgejm/accountable
20586365ccd319061e5548ce14fb0b8f449580fa
[ "MIT" ]
1
2016-06-30T22:29:29.000Z
2016-06-30T22:29:29.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import os import sys import io from click.testing import CliRunner import requests from doubles import (no_builtin_verification, allow, expect, ClassDouble, allow_constructor, InstanceDouble) import pytest from accountable import cli...
75.299065
790
0.683877
2,086
16,114
5.213327
0.113615
0.074667
0.114023
0.128276
0.752092
0.739126
0.72754
0.685609
0.671908
0.659586
0
0.064844
0.187477
16,114
213
791
75.652582
0.765753
0.001303
0
0.436464
0
0.088398
0.551675
0.31819
0
0
0
0
0.237569
1
0.132597
false
0.005525
0.071823
0
0.209945
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
99fd6cf2705fcaec5389d16cbaeee1b0d7441aae
167
py
Python
seamless/compiler/locks.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/compiler/locks.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/compiler/locks.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
from threading import RLock from weakref import WeakValueDictionary locks = WeakValueDictionary() locklock = RLock() #lock to modify the locks, or to change sys.path
27.833333
67
0.802395
22
167
6.090909
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.143713
167
5
68
33.4
0.937063
0.281437
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
8213022060f709d039254c5fc680c415122608c8
1,510
py
Python
voice_handlers.py
danielgwilson/BeatBoxAlexa
a54748b874c9aca8fc7237642fa3ae155d0c4899
[ "MIT" ]
null
null
null
voice_handlers.py
danielgwilson/BeatBoxAlexa
a54748b874c9aca8fc7237642fa3ae155d0c4899
[ "MIT" ]
null
null
null
voice_handlers.py
danielgwilson/BeatBoxAlexa
a54748b874c9aca8fc7237642fa3ae155d0c4899
[ "MIT" ]
null
null
null
from alexa.ask.utils import VoiceHandler, ResponseBuilder as r """ In this file we specify default event handlers which are then populated into the handler map using metaprogramming Copyright Anjishnu Kumar 2015 Each VoiceHandler function receives a ResponseBuilder object as input and outputs a Response object A resp...
43.142857
325
0.77351
225
1,510
5.115556
0.44
0.104257
0.156386
0.195482
0.304952
0.256299
0.195482
0.195482
0.195482
0.195482
0
0.003172
0.164901
1,510
34
326
44.411765
0.909596
0.18543
0
0
0
0.083333
0.429577
0
0
0
0
0
0
1
0.333333
false
0
0.083333
0.083333
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
8247751ac6ed9418b0843a440450c4377cdbf450
168
py
Python
embiggen/node_prediction/__init__.py
monarch-initiative/embiggen
b40a6e724b1a261510da7dd96f78ef582ea7ff5e
[ "BSD-3-Clause" ]
17
2020-05-16T20:04:02.000Z
2022-03-24T04:26:58.000Z
embiggen/node_prediction/__init__.py
monarch-initiative/embiggen
b40a6e724b1a261510da7dd96f78ef582ea7ff5e
[ "BSD-3-Clause" ]
84
2020-05-12T21:24:14.000Z
2022-03-30T14:41:50.000Z
embiggen/node_prediction/__init__.py
monarch-initiative/embiggen
b40a6e724b1a261510da7dd96f78ef582ea7ff5e
[ "BSD-3-Clause" ]
9
2020-05-21T19:04:29.000Z
2021-11-10T18:28:15.000Z
"""Models for node label prediction.""" from .graph_convolutional_neural_networks import GraphConvolutionalNeuralNetwork __all__ = ["GraphConvolutionalNeuralNetwork"]
33.6
80
0.845238
14
168
9.642857
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.077381
168
4
81
42
0.870968
0.196429
0
0
0
0
0.24031
0.24031
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
412e8fb82c160cfdfa9a7db54f8b7aafcda68c75
303
py
Python
pyreapi/request.py
adambudziak/pyre
dc17b508b8269da933dd97472560cd1c74ddc395
[ "MIT" ]
null
null
null
pyreapi/request.py
adambudziak/pyre
dc17b508b8269da933dd97472560cd1c74ddc395
[ "MIT" ]
null
null
null
pyreapi/request.py
adambudziak/pyre
dc17b508b8269da933dd97472560cd1c74ddc395
[ "MIT" ]
null
null
null
from pyreapi.serializer import Serializer class Response: def __init__(self, serializer: Serializer): self.serializer = serializer self.status = 200 class Request: def __init__(self, body: bytes, response: Response): self.response = response self.body = body
21.642857
56
0.679868
33
303
6
0.424242
0.070707
0.111111
0.282828
0
0
0
0
0
0
0
0.0131
0.244224
303
13
57
23.307692
0.851528
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
414054c6a01518ba34e58cc9036bd449cdfd33c0
207
py
Python
instagram.py
cipz/InstagramBots
c9e391633684ae17aa8c6edf5b8d854e27b89bcc
[ "MIT" ]
3
2020-10-28T09:51:14.000Z
2020-10-29T08:22:50.000Z
instagram.py
cipz/InstagramBots
c9e391633684ae17aa8c6edf5b8d854e27b89bcc
[ "MIT" ]
null
null
null
instagram.py
cipz/InstagramBots
c9e391633684ae17aa8c6edf5b8d854e27b89bcc
[ "MIT" ]
null
null
null
from instagrapi import Client def post_image(img_path, caption, username, password): cl = Client() cl.login(username, password) media = cl.photo_upload(img_path, caption = caption) return
20.7
56
0.714976
27
207
5.333333
0.666667
0.097222
0.194444
0
0
0
0
0
0
0
0
0
0.193237
207
10
57
20.7
0.862275
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.333333
0.166667
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
3
414f870c9ec782f9f34070e200f2f9dd74e3dc16
1,062
py
Python
src/core/migrations/0002_dailytask.py
healscm/ops_inception
f9aa8e64e2c1af9abb837f3069068a45052701b1
[ "Apache-2.0" ]
null
null
null
src/core/migrations/0002_dailytask.py
healscm/ops_inception
f9aa8e64e2c1af9abb837f3069068a45052701b1
[ "Apache-2.0" ]
null
null
null
src/core/migrations/0002_dailytask.py
healscm/ops_inception
f9aa8e64e2c1af9abb837f3069068a45052701b1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-04-12 07:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( name='dailytask', fields=[ ('id', m...
36.62069
114
0.571563
113
1,062
5.230089
0.477876
0.203046
0.111675
0.203046
0.401015
0.313029
0.257191
0.138748
0.138748
0
0
0.048493
0.281544
1,062
28
115
37.928571
0.726081
0.042373
0
0
1
0
0.089655
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4150ec19c49e62e2394f3f4cd882b337e22bb5cc
438
py
Python
connections.py
didadadida93/Stacher
58b6f2b54e0c234e40377921b148a84a2b67c397
[ "MIT" ]
1
2018-12-20T08:09:15.000Z
2018-12-20T08:09:15.000Z
connections.py
didadadida93/Stacher
58b6f2b54e0c234e40377921b148a84a2b67c397
[ "MIT" ]
1
2018-12-16T14:46:33.000Z
2018-12-16T14:47:49.000Z
connections.py
didadadida93/stacher
58b6f2b54e0c234e40377921b148a84a2b67c397
[ "MIT" ]
null
null
null
import requests import functools def connection(func): @functools.wraps(func) def wrapper(*args, **kwargs): try: r = func(*args, **kwargs) except Exception as e: raise return r return wrapper @connection def get(*args, **kwargs): r = requests.get(*args...
16.846154
38
0.586758
52
438
4.942308
0.384615
0.233463
0.101167
0.14786
0
0
0
0
0
0
0
0
0.287671
438
25
39
17.52
0.823718
0
0
0.263158
0
0
0
0
0
0
0
0
0
1
0.210526
false
0
0.105263
0
0.526316
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
1
0
0
0
0
1
0
0
3
41511b4345874e95d97b4a0e9b0174a61bb56d77
107
py
Python
output/models/ibm_data/valid/d4_3_16/d4_3_16v07_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ibm_data/valid/d4_3_16/d4_3_16v07_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ibm_data/valid/d4_3_16/d4_3_16v07_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ibm_data.valid.d4_3_16.d4_3_16v07_xsd.d4_3_16v07 import Root __all__ = [ "Root", ]
17.833333
79
0.757009
20
107
3.45
0.7
0.130435
0.231884
0
0
0
0
0
0
0
0
0.172043
0.130841
107
5
80
21.4
0.569892
0
0
0
0
0
0.037383
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
4159706316bc824cc641103324f28815e86816b6
501
py
Python
scripts.py
robertwayne/discord-menus
35cf9e3e9e6306cc6e6a5266688a56ae1edfa49e
[ "MIT" ]
30
2020-06-26T00:44:27.000Z
2021-11-24T18:54:08.000Z
scripts.py
robertwayne/discord-menus
35cf9e3e9e6306cc6e6a5266688a56ae1edfa49e
[ "MIT" ]
38
2020-06-23T08:47:44.000Z
2021-08-04T04:12:45.000Z
scripts.py
robertwayne/discord-menus
35cf9e3e9e6306cc6e6a5266688a56ae1edfa49e
[ "MIT" ]
5
2020-12-17T20:22:06.000Z
2021-03-30T01:36:41.000Z
# This file is used for calling scripts through the poetry CLI. from subprocess import run def fmt(): """Runs black on the project source directory. Uses the config defined in `pyproject.toml`.""" run(['black', 'dpymenus/', 'examples']) def rtd(): """Generates a compatible requirements.txt file from ou...
33.4
98
0.692615
64
501
5.421875
0.765625
0.074928
0
0
0
0
0
0
0
0
0
0
0.163673
501
14
99
35.785714
0.828162
0.560878
0
0
0
0
0.409756
0.102439
0
0
0
0
0
1
0.4
true
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
1
0
0
3
415a4d949817480b53b41d3462b85fbdc0c71457
97
py
Python
py-experiments/open.py
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
py-experiments/open.py
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
py-experiments/open.py
DinahLin/learning
c0dc6b52e8154bcb687b721e717c117ab3b94dbb
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys fd = open(sys.argv[1]) for line in fd: print line, fd.close()
10.777778
22
0.639175
18
97
3.444444
0.777778
0
0
0
0
0
0
0
0
0
0
0.012821
0.195876
97
8
23
12.125
0.782051
0.164948
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.2
null
null
0.2
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
415a8eb75027f54fb5649c16071fd9b2667789d9
108
py
Python
cogs/utils/roles.py
anubhab1710/chords
2432b8136610d4db29fbdd5e203199707f016493
[ "MIT" ]
null
null
null
cogs/utils/roles.py
anubhab1710/chords
2432b8136610d4db29fbdd5e203199707f016493
[ "MIT" ]
null
null
null
cogs/utils/roles.py
anubhab1710/chords
2432b8136610d4db29fbdd5e203199707f016493
[ "MIT" ]
null
null
null
voice_channel_moderator_roles = ["Kamisama", "Moderator", "Sauce Hero", "Admin", "DJ", "Member", "Members"]
54
107
0.694444
12
108
6
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.092593
108
1
108
108
0.734694
0
0
0
0
0
0.435185
0
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
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
415be68d35ff83b27f11745dd8bbef6ee5b816f2
331
py
Python
research/cv/ArtTrack/src/tool/decorator.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ArtTrack/src/tool/decorator.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ArtTrack/src/tool/decorator.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
import pprint from src.config import check_config from src.log import log def process_cfg(func): """ process config decorator """ def wrapper(cfg, *args, **kwargs): cfg = check_config(cfg) log.info("config: %s", pprint.pformat(cfg)) return func(cfg, *args, **kwargs) retu...
18.388889
51
0.63142
43
331
4.790698
0.44186
0.067961
0.126214
0
0
0
0
0
0
0
0
0
0.247734
331
17
52
19.470588
0.827309
0.072508
0
0
0
0
0.034364
0
0
0
0
0
0
1
0.222222
false
0
0.333333
0
0.777778
0.222222
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
41aff5fdfa9b21d9cf825f9a5d09185ddadc5ec4
274
py
Python
Share/__init__.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
1
2019-01-06T08:33:24.000Z
2019-01-06T08:33:24.000Z
Share/__init__.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
null
null
null
Share/__init__.py
PPPokerFace/PokerFace
4d28a3bb093200669f2f7b337a907f035b650032
[ "MIT" ]
null
null
null
from django.apps import AppConfig import os default_app_config = 'Share.ShareConfig' def get_current_app_name(_file): return os.path.split(os.path.dirname(_file))[-1] class ShareConfig(AppConfig): name = get_current_app_name(__file__) verbose_name = "信息管理"
19.571429
52
0.759124
39
274
4.948718
0.615385
0.103627
0.134715
0.176166
0.217617
0
0
0
0
0
0
0.004237
0.138686
274
13
53
21.076923
0.813559
0
0
0
0
0
0.076642
0
0
0
0
0
0
1
0.125
false
0
0.25
0.125
0.875
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
41c154550e5fa810f34faf79c9d32e536038fe0e
110
py
Python
src/clikit/ui/style/alignment.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
78
2018-12-06T16:18:08.000Z
2022-03-18T01:44:06.000Z
src/clikit/ui/style/alignment.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
24
2019-05-11T16:40:06.000Z
2022-02-27T01:11:04.000Z
src/clikit/ui/style/alignment.py
finswimmer/clikit
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
[ "MIT" ]
17
2019-01-14T18:18:01.000Z
2022-03-07T23:05:46.000Z
class Alignment: """ Constants for text alignment. """ LEFT = 0 RIGHT = 1 CENTER = 2
12.222222
33
0.518182
12
110
4.75
0.916667
0
0
0
0
0
0
0
0
0
0
0.044118
0.381818
110
8
34
13.75
0.794118
0.263636
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
68b8035b8dfa21b2d5cec29e60d48a6c36bcf742
821
py
Python
mpunet/logging/default_logger.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
156
2018-12-19T19:21:30.000Z
2022-03-10T13:14:52.000Z
mpunet/logging/default_logger.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
25
2019-07-30T07:45:26.000Z
2022-02-10T00:38:31.000Z
mpunet/logging/default_logger.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
33
2019-01-26T16:34:50.000Z
2022-02-20T13:48:44.000Z
class ScreenLogger(object): """ Minimal wrapper class around the built-in print function replicating some functionality of the mpunet Logger class so that this class can be used in a similar fashion while only printing to screen and not a log file """ def __init__(self, print_to_screen=True): ...
28.310345
78
0.604141
102
821
4.529412
0.509804
0.103896
0.140693
0.11039
0
0
0
0
0
0
0
0
0.314251
821
28
79
29.321429
0.820604
0.261876
0
0.117647
0
0
0.015517
0
0
0
0
0
0
1
0.294118
false
0
0
0.117647
0.470588
0.411765
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
0
1
0
3
68cffc12e180839ad3e7fb0f2ed4f122a0e27ce5
900
py
Python
products/models.py
yogi-dekanata/ecommerce-django
2e8a26acfb5986c25dbc6716f97e6932c7cdf381
[ "MIT" ]
null
null
null
products/models.py
yogi-dekanata/ecommerce-django
2e8a26acfb5986c25dbc6716f97e6932c7cdf381
[ "MIT" ]
null
null
null
products/models.py
yogi-dekanata/ecommerce-django
2e8a26acfb5986c25dbc6716f97e6932c7cdf381
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.core.urlresolvers import reverse # Create your models here. class ProductQuerySet(models.query.QuerySet): def active(self): return self.filter(active=True) class ProductManager(models.Manager): def get_queryset(self): ...
25.714286
69
0.716667
111
900
5.648649
0.513514
0.063796
0
0
0
0
0
0
0
0
0
0.010767
0.174444
900
34
70
26.470588
0.833109
0.026667
0
0
0
0
0.021739
0
0
0
0
0
0
1
0.238095
false
0
0.142857
0.238095
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
68d1641fafbc18889e6d93db8684eb8d67c22b19
60
py
Python
my_flie.py
cmcbean/pynet_test
b2b95dc63080238e4f205b04c841d02e92f99802
[ "Apache-2.0" ]
null
null
null
my_flie.py
cmcbean/pynet_test
b2b95dc63080238e4f205b04c841d02e92f99802
[ "Apache-2.0" ]
null
null
null
my_flie.py
cmcbean/pynet_test
b2b95dc63080238e4f205b04c841d02e92f99802
[ "Apache-2.0" ]
null
null
null
This is a quick test of the Emergency Broadcasting system!
20
30
0.8
10
60
4.8
1
0
0
0
0
0
0
0
0
0
0
0
0.183333
60
2
31
30
0.979592
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
68fad5ed16af67023902774e27b82aa1c4ff23b0
2,066
py
Python
stanCode_Projects/hangman_game/rocket.py
myalice0508/sc-project
aedb65e3443b85b7135b99a73c86cb8c72b09de3
[ "MIT" ]
null
null
null
stanCode_Projects/hangman_game/rocket.py
myalice0508/sc-project
aedb65e3443b85b7135b99a73c86cb8c72b09de3
[ "MIT" ]
null
null
null
stanCode_Projects/hangman_game/rocket.py
myalice0508/sc-project
aedb65e3443b85b7135b99a73c86cb8c72b09de3
[ "MIT" ]
null
null
null
""" File: rocket.py Name: Irene Chen 陳筱涵 ----------------------- This program should implement a console program that draws ASCII art - a rocket. The size of rocket is determined by a constant defined as SIZE at top of the file. Output format should match what is shown in the sample run in the Assignment 2 Han...
19.67619
55
0.521781
336
2,066
3.208333
0.217262
0.149351
0.105751
0.193878
0.553803
0.548237
0.542672
0.498145
0.474026
0.474026
0
0.02324
0.271055
2,066
105
56
19.67619
0.687251
0.2909
0
0.725806
0
0
0.02471
0
0
0
0
0
0
1
0.080645
false
0
0
0
0.080645
0.403226
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
3
68fe0cfcfadcea00ecda7d10d329bfdda873b7fe
167
py
Python
SigObject.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
8
2015-09-24T06:53:45.000Z
2019-11-25T07:20:08.000Z
SigObject.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
null
null
null
SigObject.py
uname/blepi
78d0f44064b90a334096d29b6628b05dc1290174
[ "Apache-2.0" ]
5
2015-12-23T13:32:55.000Z
2019-11-25T07:19:23.000Z
#-*- coding: utf-8 -*- from PyQt4.QtCore import QObject class SigObject(QObject): def __init__(self): QObject.__init__(self) sigObject = SigObject()
18.555556
32
0.664671
19
167
5.421053
0.684211
0.15534
0
0
0
0
0
0
0
0
0
0.015038
0.203593
167
9
33
18.555556
0.759399
0.125749
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3
ec0ccbb58f05faf857067af7f4586612f23dff6f
622
py
Python
data_discretizer/regexkit.py
psubnwell/data-discretizer
a069b13a2cb9060cc490bfd1819e6e9d6a9e75cf
[ "MIT" ]
1
2018-04-13T02:49:05.000Z
2018-04-13T02:49:05.000Z
data_discretizer/regexkit.py
psubnwell/data-discretizer
a069b13a2cb9060cc490bfd1819e6e9d6a9e75cf
[ "MIT" ]
null
null
null
data_discretizer/regexkit.py
psubnwell/data-discretizer
a069b13a2cb9060cc490bfd1819e6e9d6a9e75cf
[ "MIT" ]
null
null
null
class RegexKit(): # 这里括号内开头加注?P<xxx>的形式作用是 # 1)将本表达式形成一个分组 # 2)为该分组分配一个名字方便抽取 # 后来想了想这件事或许应该由用户自己来分配名字比较好,伺后续改进 # Basic regex. num = r'(?P<num>\d+[\d,,\s]*\.?\d*)' zh_num = r'(?P<zh_num>[零一二两三四五六七八九十百千万亿]+)' zh_mag = r'(?P<zh_mag>纳|微|毫||十|百|千|万|十万|百万|千万|亿)' currency_unit = r'(?P<cur...
34.555556
75
0.604502
111
622
3.189189
0.486486
0.045198
0.056497
0.059322
0
0
0
0
0
0
0
0.015326
0.160772
622
17
76
36.588235
0.662835
0.178457
0
0
0
0.222222
0.493042
0.493042
0
0
0
0
0
1
0
false
0
0
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
1
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
3