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
69099954a7ed8a0e1e036b7b9a5c5d6e533cb8fd
201
py
Python
blox/modules/echo.py
pollett/blox
5e618f81752c08a94b4f969259ee187a006c0dc7
[ "MIT" ]
null
null
null
blox/modules/echo.py
pollett/blox
5e618f81752c08a94b4f969259ee187a006c0dc7
[ "MIT" ]
null
null
null
blox/modules/echo.py
pollett/blox
5e618f81752c08a94b4f969259ee187a006c0dc7
[ "MIT" ]
null
null
null
from blox.modules.module import module from blox.exceptions import * import logging logger = logging.getLogger( 'blox.echo' ) class echo(module): def input(self, params): return params['value']
22.333333
41
0.746269
27
201
5.555556
0.62963
0.106667
0
0
0
0
0
0
0
0
0
0
0.144279
201
8
42
25.125
0.872093
0
0
0
0
0
0.069652
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0.142857
0.857143
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
1
1
0
0
5
696fdb226889d98c8b8cb45061fac1b92088e79e
81
py
Python
include/tclap-1.4.0-rc1/tests/test84.py
SpaceKatt/cpp-cli-poc
02ffefea2fc6e999fa2b27d08a8b3be6830b1b97
[ "BSL-1.0" ]
62
2021-09-21T18:58:02.000Z
2022-03-07T02:17:43.000Z
third_party/tclap-1.4.0-rc1/tests/test84.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
third_party/tclap-1.4.0-rc1/tests/test84.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import simple_test simple_test.test("test25", ["-h", "x", ])
13.5
41
0.641975
12
81
4.166667
0.75
0.4
0
0
0
0
0
0
0
0
0
0.027778
0.111111
81
5
42
16.2
0.666667
0.197531
0
0
0
0
0.140625
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
c630a48d96e733bacc0e8f9c6c3976b58d2797be
101
py
Python
enthought/enable/component_layout_category.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/enable/component_layout_category.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/enable/component_layout_category.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from enable.component_layout_category import *
25.25
46
0.861386
13
101
6.153846
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.108911
101
3
47
33.666667
0.888889
0.118812
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c657675f3f6ef93a7cd5f54491b3b853ff6f16f7
87
py
Python
p1_rouillonh.py
rouillonh/Practicas-de-gramificacion
5c7d54da5c0943ded6cd34a5d30ecb52ee38212a
[ "MIT" ]
null
null
null
p1_rouillonh.py
rouillonh/Practicas-de-gramificacion
5c7d54da5c0943ded6cd34a5d30ecb52ee38212a
[ "MIT" ]
null
null
null
p1_rouillonh.py
rouillonh/Practicas-de-gramificacion
5c7d54da5c0943ded6cd34a5d30ecb52ee38212a
[ "MIT" ]
null
null
null
x = "Sala Hipersueño" print(x[0:2]) print(x[12:15]) print(x[0:15:2]) print(x+x[ : :-1])
17.4
21
0.586207
20
87
2.55
0.45
0.470588
0.27451
0
0
0
0
0
0
0
0
0.141026
0.103448
87
5
22
17.4
0.512821
0
0
0
0
0
0.170455
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
1
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
1
0
5
c657893f7a77ba2604469f6bc9c127a4c3d32b93
89
py
Python
config/__init__.py
ymlbright/wechat_bot
6acb20b9c85050d891dda61cccb76ec54cc7b80d
[ "Apache-2.0" ]
null
null
null
config/__init__.py
ymlbright/wechat_bot
6acb20b9c85050d891dda61cccb76ec54cc7b80d
[ "Apache-2.0" ]
null
null
null
config/__init__.py
ymlbright/wechat_bot
6acb20b9c85050d891dda61cccb76ec54cc7b80d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from constant import Constant from log import Log
14.833333
29
0.752809
15
89
4.466667
0.733333
0
0
0
0
0
0
0
0
0
0
0.013333
0.157303
89
5
30
17.8
0.88
0.382022
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d66114590268786e4f6f0a55af91e5b8db265e0d
54
py
Python
GuiBuilder/STARTUP/__init__.py
lon3wolf/MyPyBuilder
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
[ "MIT" ]
237
2019-09-28T03:21:19.000Z
2022-03-19T22:41:04.000Z
GuiBuilder/STARTUP/__init__.py
pr1malHunter/MyPyBuilder
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
[ "MIT" ]
3
2019-09-29T08:35:53.000Z
2020-09-13T18:00:07.000Z
GuiBuilder/STARTUP/__init__.py
pr1malHunter/MyPyBuilder
5823ae9e5fcd2d745a70425c37a3aaa432c0389d
[ "MIT" ]
29
2019-09-28T13:52:45.000Z
2022-01-06T01:25:45.000Z
from GuiBuilder.STARTUP.MainStartup import GuiBuilder
27
53
0.888889
6
54
8
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.074074
54
1
54
54
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d68e75c36a9a909f7c110c9b1fcba5dee4bae688
106
py
Python
cleaning/admin.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
1
2017-03-25T23:26:40.000Z
2017-03-25T23:26:40.000Z
cleaning/admin.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
1
2020-06-05T17:14:04.000Z
2020-06-05T17:14:04.000Z
cleaning/admin.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import CleaningRoster admin.site.register(CleaningRoster)
17.666667
35
0.839623
13
106
6.846154
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.103774
106
5
36
21.2
0.936842
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
1
0
1
0
0
5
d6d862db21946143c1c3d446b2ddce12f44636f1
99
py
Python
utils/__init__.py
jdstmporter/wav2mp3
9b41620b24c53f4d4941c32d074b33a5b594f033
[ "BSD-3-Clause" ]
1
2021-08-14T07:01:15.000Z
2021-08-14T07:01:15.000Z
utils/__init__.py
jdstmporter/pcm2mp3
1d99558578fdea7dcf2c7db4afe6ad7704a9f140
[ "BSD-3-Clause" ]
null
null
null
utils/__init__.py
jdstmporter/pcm2mp3
1d99558578fdea7dcf2c7db4afe6ad7704a9f140
[ "BSD-3-Clause" ]
null
null
null
from .checkForLibs import libs, gcc, CheckLibrary, CheckCompiler from .clean import Cleaner
16.5
64
0.767677
11
99
6.909091
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.181818
99
5
65
19.8
0.938272
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d6dc00605f2422178b876bdca6b99ce8b12d692a
161
py
Python
adslproxy/__init__.py
zhangsanfu/AdslProxy
fadf6c986613ee4367b259c30e44b6f58627cac8
[ "MIT" ]
12
2020-01-12T06:23:11.000Z
2021-09-01T02:27:10.000Z
adslproxy/__init__.py
zhangsanfu/AdslProxy
fadf6c986613ee4367b259c30e44b6f58627cac8
[ "MIT" ]
null
null
null
adslproxy/__init__.py
zhangsanfu/AdslProxy
fadf6c986613ee4367b259c30e44b6f58627cac8
[ "MIT" ]
6
2019-07-29T06:57:05.000Z
2021-08-16T02:33:20.000Z
# # coding=utf-8 # __version__ = '2.0.0' # from adslproxy.db import RedisClient # from adslproxy.api import server # # def version(): # return __version__ #
17.888889
38
0.689441
21
161
4.904762
0.714286
0.252427
0
0
0
0
0
0
0
0
0
0.030303
0.180124
161
8
39
20.125
0.75
0.881988
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
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
5
d6e294213c406482c7fdb73f4ad79137a703e427
60
py
Python
notebook/locale_getpreferredencoding.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/locale_getpreferredencoding.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/locale_getpreferredencoding.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import locale print(locale.getpreferredencoding()) # UTF-8
12
36
0.783333
7
60
6.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.018519
0.1
60
4
37
15
0.851852
0.083333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
d6e2b82b829f3d291e27f892cebc396c93d05448
33
py
Python
project/project/urls.py
saxix/django-iadmin
675317e8f0b4142eaf351595da27c065637a83ba
[ "BSD-1-Clause" ]
1
2015-06-23T09:24:12.000Z
2015-06-23T09:24:12.000Z
project/project/urls.py
saxix/django-iadmin
675317e8f0b4142eaf351595da27c065637a83ba
[ "BSD-1-Clause" ]
null
null
null
project/project/urls.py
saxix/django-iadmin
675317e8f0b4142eaf351595da27c065637a83ba
[ "BSD-1-Clause" ]
null
null
null
from iadmin.tests.urls import *
11
31
0.757576
5
33
5
1
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
2
32
16.5
0.892857
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
ba8b54b1d393d2b086e4171990190e2643ea6f76
88
py
Python
ontology/logistic_regression/sherlock/listify_circuits_k26_reverse.py
ehbeam/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
15
2020-07-17T07:10:26.000Z
2022-02-18T05:51:45.000Z
ontology/neural_network/sherlock/listify_circuits_k26_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
2
2022-01-14T09:10:12.000Z
2022-01-28T17:32:42.000Z
ontology/neural_network/sherlock/listify_circuits_k26_reverse.py
YifeiCAO/neuro-knowledge-engine
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
[ "MIT" ]
4
2021-12-22T13:27:32.000Z
2022-02-18T05:51:47.000Z
#!/bin/python import listify_circuits listify_circuits.optimize_circuits(26, 'reverse')
22
49
0.829545
11
88
6.363636
0.727273
0.428571
0
0
0
0
0
0
0
0
0
0.024096
0.056818
88
4
49
22
0.819277
0.136364
0
0
0
0
0.092105
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ba8e4e6aa58c701285c7d3d300291155d19f2dec
95
py
Python
src/tests/__init__.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
null
null
null
src/tests/__init__.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
4
2021-03-30T12:35:36.000Z
2021-06-10T18:11:24.000Z
src/tests/__init__.py
samrika25/TRAVIS_HEROKU_GIT
bcae6d0422d9a0369810944a91dd03db7df0d058
[ "MIT" ]
2
2021-02-07T16:16:36.000Z
2021-07-13T05:26:51.000Z
from .articles import * from .accounts import * from .comments import * from .utils import *
13.571429
23
0.726316
12
95
5.75
0.5
0.434783
0
0
0
0
0
0
0
0
0
0
0.189474
95
7
24
13.571429
0.896104
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
bab48c618f85f84f1b9904a6d2eaafd2dd3fb650
78
py
Python
torch_pointnet/utils.py
IsaacCorley/pointnet-pytorch
9867207b04a5e080a5384bdc9cbc1fed3e17977f
[ "MIT" ]
null
null
null
torch_pointnet/utils.py
IsaacCorley/pointnet-pytorch
9867207b04a5e080a5384bdc9cbc1fed3e17977f
[ "MIT" ]
null
null
null
torch_pointnet/utils.py
IsaacCorley/pointnet-pytorch
9867207b04a5e080a5384bdc9cbc1fed3e17977f
[ "MIT" ]
null
null
null
import open3d def visualize(x): open3d.visualization.draw_geometries([x])
19.5
45
0.769231
10
78
5.9
0.8
0
0
0
0
0
0
0
0
0
0
0.028986
0.115385
78
4
45
19.5
0.826087
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
baec66870b7e14fd0b9ed48ae3b41b02d03ddde3
519
py
Python
cobras_ts/querier.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
null
null
null
cobras_ts/querier.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
3
2020-03-24T15:59:06.000Z
2022-02-10T01:53:37.000Z
cobras_ts/querier.py
achenbachsven/learningSkript
7af067cbf0c8d7eed010806923f8af2e38977be2
[ "BSD-3-Clause" ]
null
null
null
import abc class Querier: def __init__(self): pass @abc.abstractmethod def query_points(self, idx1, idx2): return @abc.abstractmethod def update_clustering(self, clustering): # not ideal? this has not too much to do with querying, it is only needed for the webapp return @abc.abstractmethod def update_clustering_detailed(self, clustering): # not ideal? this has not too much to do with querying, it is only needed for the webapp return
23.590909
96
0.668593
70
519
4.842857
0.485714
0.150442
0.176991
0.153392
0.743363
0.743363
0.513274
0.513274
0.513274
0.513274
0
0.005319
0.27553
519
21
97
24.714286
0.896277
0.333333
0
0.461538
0
0
0
0
0
0
0
0
0
1
0.307692
false
0.076923
0.076923
0.230769
0.692308
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
241420c7cb982513217b87cab3cba05e61379dbc
303
py
Python
7term/TT/compiler/lab2/SyntaxError.py
nik-sergeson/bsuir-informatics-labs
14805fb83b8e2324580b6253158565068595e804
[ "Apache-2.0" ]
null
null
null
7term/TT/compiler/lab2/SyntaxError.py
nik-sergeson/bsuir-informatics-labs
14805fb83b8e2324580b6253158565068595e804
[ "Apache-2.0" ]
null
null
null
7term/TT/compiler/lab2/SyntaxError.py
nik-sergeson/bsuir-informatics-labs
14805fb83b8e2324580b6253158565068595e804
[ "Apache-2.0" ]
null
null
null
class SyntaxError(Exception): def __init__(self, production, expected, found): self.expected = expected self.found = found self.production = production def __str__(self): return "In {0} expected {1}, found {2}".format(self.production, self.expected, self.found)
33.666667
98
0.660066
35
303
5.485714
0.457143
0.21875
0.177083
0
0
0
0
0
0
0
0
0.012766
0.224422
303
8
99
37.875
0.804255
0
0
0
0
0
0.09901
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
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
0
0
1
0
0
0
1
1
0
0
5
241e4b9b5e155913835a25413fae944c1e79e26c
110
py
Python
mindhome_alpha/erpnext/patches/v12_0/set_default_homepage_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
mindhome_alpha/erpnext/patches/v12_0/set_default_homepage_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
null
null
null
mindhome_alpha/erpnext/patches/v12_0/set_default_homepage_type.py
Mindhome/field_service
3aea428815147903eb9af1d0c1b4b9fc7faed057
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
import frappe def execute(): frappe.db.set_value('Homepage', 'Homepage', 'hero_section_based_on', 'Default')
27.5
80
0.754545
15
110
5.266667
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.081818
110
4
80
27.5
0.782178
0
0
0
0
0
0.396396
0.189189
0
0
0
0
0
1
0.333333
true
0
0.333333
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
1
1
0
1
0
0
0
0
5
24381af7835d0f7e9ad7cbfa5c3ed0baf96e2907
54
py
Python
tests/_support/package/module.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
1
2015-11-08T13:03:52.000Z
2015-11-08T13:03:52.000Z
tests/_support/package/module.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
tests/_support/package/module.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
from invoke import task @task def mytask(): pass
9
23
0.685185
8
54
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.240741
54
5
24
10.8
0.902439
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0.25
0.25
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
1
1
1
0
0
0
0
0
5
2444c44afdec03fc68cdede09d34fb27b9531689
458
py
Python
deeprobust/image/attack/__init__.py
smaranjitghose/DeepRobust
91f2b922e61a3fa0987e37b7ea6c1cd9150c1c81
[ "MIT" ]
647
2020-02-08T02:13:21.000Z
2022-03-31T07:44:00.000Z
deeprobust/image/attack/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
77
2020-03-21T11:27:30.000Z
2022-03-23T10:55:53.000Z
deeprobust/image/attack/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
139
2020-03-04T00:25:12.000Z
2022-03-21T15:45:29.000Z
#__init__.py import logging from deeprobust.image.attack import base_attack from deeprobust.image.attack import pgd from deeprobust.image.attack import deepfool from deeprobust.image.attack import fgsm from deeprobust.image.attack import lbfgs from deeprobust.image.attack import cw from deeprobust.image.attack import onepixel __all__ = ['base_attack', 'pgd', 'lbfgs', 'fgsm', 'deepfool','cw', 'onepixel'] logging.info("import base_attack from attack")
28.625
78
0.80131
63
458
5.650794
0.269841
0.275281
0.373596
0.491573
0.609551
0
0
0
0
0
0
0
0.10262
458
15
79
30.533333
0.86618
0.024017
0
0
0
0
0.159193
0
0
0
0
0
0
1
0
false
0
0.9
0
0.9
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
1
0
1
0
0
5
24687c3f73ca919dd32c9f10d6f3b4cf7bd1e793
146
py
Python
src/byrne/paginators/query_paginator.py
jacobneiltaylor/byrne
daaf3a377b0fb37ad62950debfd034aa3df02297
[ "MIT" ]
null
null
null
src/byrne/paginators/query_paginator.py
jacobneiltaylor/byrne
daaf3a377b0fb37ad62950debfd034aa3df02297
[ "MIT" ]
null
null
null
src/byrne/paginators/query_paginator.py
jacobneiltaylor/byrne
daaf3a377b0fb37ad62950debfd034aa3df02297
[ "MIT" ]
null
null
null
from .paginator import Paginator class QueryPaginator(Paginator): def on_page(self): return self.table.query(**self.next_call_args)
20.857143
54
0.739726
19
146
5.526316
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.164384
146
6
55
24.333333
0.860656
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
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
1
0
0
0
1
1
0
0
5
79f7755ed7ecba8f7ac3fc60a28ae18e99691cfe
99
py
Python
books/models.py
Erik172/BibliotecaEscolarARP
1cc61f5e0079d08eb54f1b49eb158bf57710007c
[ "MIT" ]
null
null
null
books/models.py
Erik172/BibliotecaEscolarARP
1cc61f5e0079d08eb54f1b49eb158bf57710007c
[ "MIT" ]
null
null
null
books/models.py
Erik172/BibliotecaEscolarARP
1cc61f5e0079d08eb54f1b49eb158bf57710007c
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. # class SaveBook(models.Model): # pass
19.8
31
0.727273
14
99
5.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.181818
99
5
32
19.8
0.888889
0.636364
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0305ec90fbc6cbbf993564d41c34e1494bdc1fb4
226
py
Python
service/message_broker/rabbitmq/RMQCacheThread.py
koravel/orders_generator
1a73f8cd7a363a44b9aa442f1e32bea816083644
[ "Apache-2.0" ]
null
null
null
service/message_broker/rabbitmq/RMQCacheThread.py
koravel/orders_generator
1a73f8cd7a363a44b9aa442f1e32bea816083644
[ "Apache-2.0" ]
null
null
null
service/message_broker/rabbitmq/RMQCacheThread.py
koravel/orders_generator
1a73f8cd7a363a44b9aa442f1e32bea816083644
[ "Apache-2.0" ]
null
null
null
from threading.TaskThread import TaskThread class RMQCacheThread(TaskThread): def __init__(self, queue, name, thread_pool, logger): super().__init__(name, thread_pool, logger) self.__queue = queue
28.25
58
0.70354
25
226
5.88
0.6
0.122449
0.190476
0.272109
0
0
0
0
0
0
0
0
0.207965
226
7
59
32.285714
0.821229
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
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
031cc0a16f6f7dc49ca333972cb2323a267b01e3
39
py
Python
helper.py
Mearaf/cs3240-labdemo
141b3a5d9a926009f3077a258ac4c43926062eb0
[ "MIT" ]
null
null
null
helper.py
Mearaf/cs3240-labdemo
141b3a5d9a926009f3077a258ac4c43926062eb0
[ "MIT" ]
null
null
null
helper.py
Mearaf/cs3240-labdemo
141b3a5d9a926009f3077a258ac4c43926062eb0
[ "MIT" ]
null
null
null
def greetings(msg): print("hello")
13
19
0.641026
5
39
5
1
0
0
0
0
0
0
0
0
0
0
0
0.179487
39
2
20
19.5
0.78125
0
0
0
0
0
0.128205
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0.5
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
1
0
0
0
0
0
1
0
5
0333f8e35b80084da8352e1b5c45754fdbd20caf
56
py
Python
examples/test_example.py
uriyyo/pytest-easy-addoption
d21144be7a862c92e9dd51c9d9243baf6293de0b
[ "MIT" ]
null
null
null
examples/test_example.py
uriyyo/pytest-easy-addoption
d21144be7a862c92e9dd51c9d9243baf6293de0b
[ "MIT" ]
5
2019-12-27T08:30:35.000Z
2020-01-22T22:05:24.000Z
examples/test_example.py
uriyyo/pytest-easy-addoption
d21144be7a862c92e9dd51c9d9243baf6293de0b
[ "MIT" ]
null
null
null
def test_example(my_addoption): print(my_addoption)
18.666667
31
0.785714
8
56
5.125
0.75
0.536585
0
0
0
0
0
0
0
0
0
0
0.125
56
2
32
28
0.836735
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
1
0
5
035e39a9788d5c394f5e72f18b7e40a8ca2a8fd4
153
py
Python
rlkit/torch/vae/biva/layers/__init__.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
63
2019-10-24T10:11:44.000Z
2022-02-17T20:54:41.000Z
rlkit/torch/vae/biva/layers/__init__.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
6
2020-04-30T11:47:23.000Z
2021-06-08T20:31:58.000Z
rlkit/torch/vae/biva/layers/__init__.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
8
2019-11-23T22:26:59.000Z
2021-04-15T11:54:22.000Z
from .block import GatedResNet, ResMLP from .convolution import PaddedNormedConv, PaddedConv from .linear import NormedLinear, NormedDense, AsFeatureMap
38.25
59
0.849673
16
153
8.125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.104575
153
3
60
51
0.948905
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
036880eb5b71c46d8fc00c3044399cfded46c414
26
py
Python
src/crowsetta/interface/seq/__init__.py
NickleDave/conbirt
71db6c6fd68dfef1bdbdcfacd8b2a16b21b86089
[ "BSD-3-Clause" ]
null
null
null
src/crowsetta/interface/seq/__init__.py
NickleDave/conbirt
71db6c6fd68dfef1bdbdcfacd8b2a16b21b86089
[ "BSD-3-Clause" ]
3
2018-12-16T17:57:22.000Z
2018-12-16T20:12:33.000Z
src/crowsetta/interface/seq/__init__.py
NickleDave/conbirt
71db6c6fd68dfef1bdbdcfacd8b2a16b21b86089
[ "BSD-3-Clause" ]
null
null
null
from .base import SeqLike
13
25
0.807692
4
26
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
036ec6db7ef9b0eb6030a4933317ea7fe796ff6b
41
py
Python
rangermodels/__init__.py
Tushar-Naik/python-ranger-daemon
d538998d5db5aafb91945a13c93796e7fc3b0088
[ "Apache-2.0" ]
null
null
null
rangermodels/__init__.py
Tushar-Naik/python-ranger-daemon
d538998d5db5aafb91945a13c93796e7fc3b0088
[ "Apache-2.0" ]
null
null
null
rangermodels/__init__.py
Tushar-Naik/python-ranger-daemon
d538998d5db5aafb91945a13c93796e7fc3b0088
[ "Apache-2.0" ]
null
null
null
from rangermodels.ranger_models import *
20.5
40
0.853659
5
41
6.8
1
0
0
0
0
0
0
0
0
0
0
0
0.097561
41
1
41
41
0.918919
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
ceee0135a3963105b2353dc87d933d82f137c4cc
114
py
Python
examples/games/sudoku/run.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
61
2018-05-24T13:14:05.000Z
2022-03-29T11:35:03.000Z
examples/games/sudoku/run.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
229
2018-05-28T08:31:09.000Z
2022-03-21T11:02:41.000Z
examples/games/sudoku/run.py
Noxsense/mCRL2
dd2fcdd6eb8b15af2729633041c2dbbd2216ad24
[ "BSL-1.0" ]
28
2018-04-11T14:09:39.000Z
2022-02-25T15:57:39.000Z
import os os.system('mcrl22lps -v sudoku.mcrl2 sudoku.lps') os.system('lps2lts -vrjitty sudoku.lps sudoku.aut')
19
51
0.754386
18
114
4.777778
0.611111
0.186047
0
0
0
0
0
0
0
0
0
0.039216
0.105263
114
5
52
22.8
0.803922
0
0
0
0
0
0.654867
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
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
3000a8aacf339ea32e8472342587e7aeea19c12b
59
py
Python
tests/test_birdseed.py
ryanmcdermott/birdseed
88a56224a7f831eae509e6944643ba14d3aa77cb
[ "MIT" ]
86
2015-11-16T03:40:23.000Z
2019-12-18T07:38:10.000Z
tests/test_birdseed.py
ryanmcdermott/birdseed
88a56224a7f831eae509e6944643ba14d3aa77cb
[ "MIT" ]
5
2015-11-18T01:18:26.000Z
2015-12-27T16:56:33.000Z
tests/test_birdseed.py
ryanmcdermott/birdseed
88a56224a7f831eae509e6944643ba14d3aa77cb
[ "MIT" ]
8
2015-11-16T22:11:24.000Z
2018-12-01T09:33:30.000Z
# We need some tests! def test_birdseed(): assert True
14.75
21
0.694915
9
59
4.444444
1
0
0
0
0
0
0
0
0
0
0
0
0.220339
59
3
22
19.666667
0.869565
0.322034
0
0
0
0
0
0
0
0
0
0
0.5
1
0.5
true
0
0
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
1
0
1
1
0
0
0
0
0
0
5
3024c7687b180c397af56e7de711bdd268f8b51f
60
py
Python
pkg/publisher/_publisher.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/publisher/_publisher.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/publisher/_publisher.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
class Publisher: def publish(self, *args): pass
15
29
0.6
7
60
5.142857
1
0
0
0
0
0
0
0
0
0
0
0
0.3
60
4
30
15
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
304da7ad896e33caf158631d5c0e36792be06edd
149
py
Python
windows/winproxy/__init__.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
479
2016-01-08T00:53:34.000Z
2022-03-22T10:28:19.000Z
windows/winproxy/__init__.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
38
2017-12-29T17:09:04.000Z
2022-01-31T08:27:47.000Z
windows/winproxy/__init__.py
IMULMUL/PythonForWindows
61e027a678d5b87aa64fcf8a37a6661a86236589
[ "BSD-3-Clause" ]
103
2016-01-10T01:32:17.000Z
2021-12-24T17:21:06.000Z
from .apiproxy import is_implemented, get_target, resolve from .error import WinproxyError, ExportNotFound from .apis import * # Import all functions
49.666667
57
0.825503
19
149
6.368421
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.120805
149
3
58
49.666667
0.923664
0.134228
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
307c2ad37874849ab68f4fdf21770820d2d44663
165
py
Python
main.py
windisch/uPhone
74bbd0b45f509f893c9c9d1f2753f5c5785f464b
[ "MIT" ]
3
2019-08-04T14:07:47.000Z
2019-09-28T18:58:42.000Z
main.py
windisch/uPhone
74bbd0b45f509f893c9c9d1f2753f5c5785f464b
[ "MIT" ]
null
null
null
main.py
windisch/uPhone
74bbd0b45f509f893c9c9d1f2753f5c5785f464b
[ "MIT" ]
null
null
null
# main.py -- put your code here! from uphone import Phone from uphone import Config config = Config('config.json') phone = Phone(config) phone.start()
15
33
0.678788
23
165
4.869565
0.565217
0.321429
0.285714
0
0
0
0
0
0
0
0
0
0.218182
165
10
34
16.5
0.868217
0.181818
0
0
0
0
0.089431
0
0
0
0
0.1
0
1
0
false
0
0.4
0
0.4
0
1
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
1
0
0
0
0
0
1
0
0
0
0
5
0634c0b32cdb00fe916589684650bd23e28e4d9a
230
py
Python
nni/algorithms/compression/v2/pytorch/base/__init__.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
nni/algorithms/compression/v2/pytorch/base/__init__.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
nni/algorithms/compression/v2/pytorch/base/__init__.py
nbl97/nni
1530339d3e964a5ea95a0afde1775ec9167cdcc0
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from .compressor import Compressor, LayerInfo from .pruner import Pruner, PrunerModuleWrapper from .scheduler import BasePruningScheduler, Task, TaskResult
32.857143
61
0.821739
25
230
7.56
0.76
0
0
0
0
0
0
0
0
0
0
0
0.121739
230
6
62
38.333333
0.935644
0.295652
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
064dd18f835edd02d25684bde49ff7d477d8e1bc
80
py
Python
test.py
readline/snakemake_wespipe
5bbe8f6e7819e985468f1b39f885be81c9eef3e6
[ "MIT" ]
null
null
null
test.py
readline/snakemake_wespipe
5bbe8f6e7819e985468f1b39f885be81c9eef3e6
[ "MIT" ]
null
null
null
test.py
readline/snakemake_wespipe
5bbe8f6e7819e985468f1b39f885be81c9eef3e6
[ "MIT" ]
null
null
null
from scripts.Load import samplesheet print(samplesheet('test/samplesheet.tsv'))
26.666667
42
0.825
10
80
6.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.0625
80
3
42
26.666667
0.88
0
0
0
0
0
0.246914
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
065486529117981777ff669ad3a2438f2e3b6f80
39
py
Python
confpy/core/__init__.py
kevinconway/confpy
edd4f1f91e491c10fb7cbc8aab60d7f59fba96a1
[ "MIT" ]
2
2018-03-14T05:05:28.000Z
2018-04-20T05:09:04.000Z
confpy/core/__init__.py
kevinconway/confpy
edd4f1f91e491c10fb7cbc8aab60d7f59fba96a1
[ "MIT" ]
1
2015-12-17T10:14:50.000Z
2019-08-25T03:02:44.000Z
confpy/core/__init__.py
kevinconway/confpy
edd4f1f91e491c10fb7cbc8aab60d7f59fba96a1
[ "MIT" ]
null
null
null
"""Core modules for confpy objects."""
19.5
38
0.692308
5
39
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.128205
39
1
39
39
0.794118
0.820513
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
067a8d0643adeac32a805f7d3dc2408aae09844a
165
py
Python
core/utils/__init__.py
mowolf/awesome-semantic-segmentation-pytorch
5410200573df3d0529377680877e0d1c0e27175f
[ "Apache-2.0" ]
2,254
2019-03-19T12:25:34.000Z
2022-03-31T07:28:51.000Z
core/utils/__init__.py
mowolf/awesome-semantic-segmentation-pytorch
5410200573df3d0529377680877e0d1c0e27175f
[ "Apache-2.0" ]
179
2019-03-21T06:00:25.000Z
2022-03-29T04:02:27.000Z
core/utils/__init__.py
mowolf/awesome-semantic-segmentation-pytorch
5410200573df3d0529377680877e0d1c0e27175f
[ "Apache-2.0" ]
552
2019-04-23T08:09:56.000Z
2022-03-29T15:21:29.000Z
"""Utility functions.""" from __future__ import absolute_import from .download import download, check_sha1 from .filesystem import makedirs, try_import_pycocotools
27.5
56
0.830303
20
165
6.45
0.65
0
0
0
0
0
0
0
0
0
0
0.006757
0.10303
165
5
57
33
0.864865
0.109091
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
06a78018236e1762c96bcc1e3211f557033adf13
2,596
py
Python
cv_pest.py
SamrahSyed/Visionet_ML_Project_Web_App
a792dcbabf2e112836d87698bc423531c6c18e77
[ "MIT" ]
null
null
null
cv_pest.py
SamrahSyed/Visionet_ML_Project_Web_App
a792dcbabf2e112836d87698bc423531c6c18e77
[ "MIT" ]
null
null
null
cv_pest.py
SamrahSyed/Visionet_ML_Project_Web_App
a792dcbabf2e112836d87698bc423531c6c18e77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 27 13:08:04 2021 @author: samrah.asif """ import os os.environ['KMP_DUPLICATE_LIB_OK']='True' from matplotlib import pyplot as plt from gluoncv import model_zoo, data, utils from gluoncv.data.transforms.pose import detector_to_simple_pose, heatmap_to_coord from gluoncv.data.transforms.pose import detector_to_alpha_pose, heatmap_to_coord_alpha_pose def SimplePose(pic, detector_class): detector = model_zoo.get_model('yolo3_mobilenet1.0_coco', pretrained=True) pose_net = model_zoo.get_model('simple_pose_resnet18_v1b', pretrained=True) if detector_class!=None: detector.reset_class([detector_class], reuse_weights=[detector_class]) else: pass x, img = data.transforms.presets.ssd.load_test(pic, short=512) class_IDs, scores, bounding_boxs = detector(x) pose_input, upscale_bbox = detector_to_simple_pose(img, class_IDs, scores, bounding_boxs) predicted_heatmap = pose_net(pose_input) pred_coords, confidence = heatmap_to_coord(predicted_heatmap, upscale_bbox) fig = plt.figure(figsize=(15, 15)) ax = fig.add_subplot(1, 1, 1) ax = utils.viz.plot_keypoints(img, pred_coords, confidence, class_IDs, bounding_boxs, scores, box_thresh=0.5, keypoint_thresh=0.2, ax=ax) #return plt.show() plt.savefig(pic, bbox_inches="tight") return #SimplePose('static/uploads/playing_celo.jpeg', 'person') def AlphaPose(pic, detector_class): detector = model_zoo.get_model('yolo3_mobilenet1.0_coco', pretrained=True) pose_net = model_zoo.get_model('alpha_pose_resnet101_v1b_coco', pretrained=True) if detector_class!=None: detector.reset_class([detector_class], reuse_weights=[detector_class]) else: pass x, img = data.transforms.presets.ssd.load_test(pic, short=512) class_IDs, scores, bounding_boxs = detector(x) print(class_IDs) pose_input, upscale_bbox = detector_to_alpha_pose(img, class_IDs, scores, bounding_boxs) predicted_heatmap = pose_net(pose_input) pred_coords, confidence = heatmap_to_coord_alpha_pose(predicted_heatmap, upscale_bbox) fig = plt.figure(figsize=(15, 15)) ax = fig.add_subplot(1, 1, 1) ax = utils.viz.plot_keypoints(img, pred_coords, confidence, class_IDs, bounding_boxs, scores, box_thresh=0.5, keypoint_thresh=0.2, ax=ax) #return plt.show() plt.savefig(pic, bbox_inches="tight") return #AlphaPose('static/uploads/playing_celo.jpeg', 'person')
41.870968
93
0.710709
361
2,596
4.817175
0.304709
0.059804
0.032202
0.036803
0.825762
0.807361
0.733755
0.733755
0.682001
0.682001
0
0.02546
0.182974
2,596
61
94
42.557377
0.794437
0.086672
0
0.666667
0
0
0.05638
0.041967
0
0
0
0
0
1
0.044444
false
0.044444
0.111111
0
0.2
0.022222
0
0
0
null
0
0
0
1
1
1
1
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
5
ebfb4f54d6ae0fa97df61bf3d69d36db34f7615f
108
py
Python
qatrack/contacts/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/contacts/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
qatrack/contacts/admin.py
mmmetwaly/qatrackplus
193bc22c0014891f5d97be32ccc73a08c7f7f81b
[ "MIT" ]
null
null
null
from django.contrib import admin from models import Contact admin.site.register([Contact],admin.ModelAdmin)
27
47
0.833333
15
108
6
0.666667
0.266667
0
0
0
0
0
0
0
0
0
0
0.083333
108
4
47
27
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
230b16b8aef7bd3bd110bd1d12d54ffa80773023
107
py
Python
pythonProject1/chap3/demo3.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
pythonProject1/chap3/demo3.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
pythonProject1/chap3/demo3.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
# 公众号:MarkerJava # 开发时间:2020/10/7 22:00 def fun(**args): print(args) fun(a=10) fun(b=20,c=30,d=40,e=50)
17.833333
24
0.635514
25
107
2.72
0.84
0
0
0
0
0
0
0
0
0
0
0.223404
0.121495
107
6
24
17.833333
0.5
0.327103
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
2311ea977c8bff9944eea60231d065e087f07c95
198
py
Python
lib/vyatta/tacplus/__init__.py
danos/vyatta-tacacs
2870cd854b460bb8ac7043d529867d8d38e10edd
[ "BSD-3-Clause" ]
2
2019-11-18T14:17:01.000Z
2019-11-18T21:04:28.000Z
lib/vyatta/tacplus/__init__.py
danos/vyatta-tacacs
2870cd854b460bb8ac7043d529867d8d38e10edd
[ "BSD-3-Clause" ]
null
null
null
lib/vyatta/tacplus/__init__.py
danos/vyatta-tacacs
2870cd854b460bb8ac7043d529867d8d38e10edd
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 AT&T Intellectual Property. # All rights reserved. # # SPDX-License-Identifier: LGPL-2.1-only from .daemon import TACPLUS_DAEMON, TACPLUS_DAEMON_PATH, Daemon, DaemonNotRunning
28.285714
81
0.787879
27
198
5.666667
0.851852
0.169935
0
0
0
0
0
0
0
0
0
0.034286
0.116162
198
6
82
33
0.84
0.535354
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2318f3a764dae398d94f195af3fdf005703b0021
223
py
Python
Program_Python_code/29.py
skyhigh8591/Learning_Test_Program
5f3c0f11874618919002126863772e0dd06a1072
[ "MIT" ]
null
null
null
Program_Python_code/29.py
skyhigh8591/Learning_Test_Program
5f3c0f11874618919002126863772e0dd06a1072
[ "MIT" ]
null
null
null
Program_Python_code/29.py
skyhigh8591/Learning_Test_Program
5f3c0f11874618919002126863772e0dd06a1072
[ "MIT" ]
null
null
null
#! /usr/bin/python #coding=utf-8 import math_operation num=math_operation.operation(4,6) print "operation:" +str(num[0]) print "operation:" +str(num[1]) print "operation:" +str(num[2]) print "operation:" +str(num[3])
20.272727
33
0.690583
35
223
4.342857
0.514286
0.368421
0.447368
0.526316
0
0
0
0
0
0
0
0.035176
0.107623
223
11
34
20.272727
0.728643
0.130045
0
0
0
0
0.207254
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.666667
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
1
0
0
0
0
0
0
1
0
5
233557dbed6899e8e27877a329a6bc3bbd78ad20
783
py
Python
students/views/examins_results.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
students/views/examins_results.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
students/views/examins_results.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import RequestContext, loader from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from ..models.groups import Group from ..models.examins_results import ExaminResult def examins_results_list(request): examins_results = ExaminResult.objects.get_queryset().order_by('id') return render(request, 'students/examins_results.html', {'examins_results': examins_results}) def examins_results_add(request): return HttpResponse('<h1>Examin Result Add Form</h1>') def examins_results_edit(request, erid): return HttpResponse(f'<h1>Edit Examin Result {erid}</h1>') def examins_results_delete(request, erid): return HttpResponse(f'<h1>Delete Examin Result {erid}</h1>')
35.590909
94
0.804598
103
783
5.970874
0.398058
0.204878
0.110569
0.061789
0.104065
0.104065
0
0
0
0
0
0.008427
0.090677
783
22
95
35.590909
0.855337
0
0
0
0
0
0.1875
0.03699
0
0
0
0
0
1
0.266667
false
0
0.4
0.2
0.933333
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
1
1
1
0
0
5
2337d7258b642395961966beed30112e2d8f27d7
33
py
Python
mp_kiwoom/search.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
mp_kiwoom/search.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
mp_kiwoom/search.py
moonstock/mp_kiwoom
459a974159af4f5604da18c1c0e8d4f8b3f1d2e6
[ "MIT" ]
null
null
null
# 검색(e조건검색 / QClick / chartindex)
33
33
0.69697
4
33
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
1
33
33
0.821429
0.939394
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5
237b70d4fbf82afc01deb5e38f4633e5748114b4
66
py
Python
kattis/Filip.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
kattis/Filip.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
kattis/Filip.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# CPU: 0.05 s a, b = input().split() print(max(a[::-1], b[::-1]))
16.5
28
0.469697
14
66
2.214286
0.785714
0
0
0
0
0
0
0
0
0
0
0.089286
0.151515
66
3
29
22
0.464286
0.166667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
88bc78ecbd7383f49f806d35354c5c08963eabb2
259
py
Python
properties/views.py
zerobug110/real-estate
4b17742e3a28b2b7b0c645fa890539ce55d174c9
[ "MIT" ]
null
null
null
properties/views.py
zerobug110/real-estate
4b17742e3a28b2b7b0c645fa890539ce55d174c9
[ "MIT" ]
null
null
null
properties/views.py
zerobug110/real-estate
4b17742e3a28b2b7b0c645fa890539ce55d174c9
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render def index(request): return HttpResponse('hello world') def news(request): return HttpResponse('news page') def contact(request): return HttpResponse('contact page')
18.5
39
0.741313
31
259
6.193548
0.516129
0.203125
0.390625
0
0
0
0
0
0
0
0
0
0.169884
259
14
40
18.5
0.893023
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0.375
false
0
0.25
0.375
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
88ca4403be536409cde71c2f8f682ff697a9433a
178
py
Python
openapi_core/schema/content/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/content/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/content/exceptions.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
from openapi_core.schema.exceptions import OpenAPIMappingError class OpenAPIContentError(OpenAPIMappingError): pass class MimeTypeNotFound(OpenAPIContentError): pass
17.8
62
0.831461
15
178
9.8
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.123596
178
9
63
19.777778
0.942308
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0
true
0.4
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
1
1
0
0
1
0
0
5
88d0ff12efcec0da141c8ccd93d330b9f46adea5
67
py
Python
Data Analysis/100 Numpy Exercises/1.py
usama-hossain/Python
a75abfb01737bb5f9a38c1c1b5481873e895933e
[ "MIT" ]
null
null
null
Data Analysis/100 Numpy Exercises/1.py
usama-hossain/Python
a75abfb01737bb5f9a38c1c1b5481873e895933e
[ "MIT" ]
null
null
null
Data Analysis/100 Numpy Exercises/1.py
usama-hossain/Python
a75abfb01737bb5f9a38c1c1b5481873e895933e
[ "MIT" ]
null
null
null
# 1. Import the numpy package under the name np import numpy as np
22.333333
47
0.761194
13
67
3.923077
0.692308
0
0
0
0
0
0
0
0
0
0
0.018868
0.208955
67
3
48
22.333333
0.943396
0.671642
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0002ee81381d2fd2bbd2434af8bfdfe1483a668f
571
py
Python
pytorch/DIRS.py
TianyuDu/AnnEconForecast
648bb05498f333811021c07b04000d5f81ddc7f8
[ "MIT" ]
7
2018-12-26T07:54:43.000Z
2020-03-27T04:35:48.000Z
pytorch/DIRS.py
TianyuDu/EFANN
648bb05498f333811021c07b04000d5f81ddc7f8
[ "MIT" ]
null
null
null
pytorch/DIRS.py
TianyuDu/EFANN
648bb05498f333811021c07b04000d5f81ddc7f8
[ "MIT" ]
2
2019-06-09T21:10:56.000Z
2021-03-20T13:13:48.000Z
# This file stores the directories of datasets on different hosts CPIAUCSUL = { "mac": "/Users/tianyudu/Documents/Academics/EconForecasting/AnnEconForecast/data/CPIAUCSL.csv", "ec2_cpu": None, "ec2_gpu": None } SUNSPOT = { "mac": "/Users/tianyudu/Documents/Academics/EconForecasting/AnnEconForecast/data/sunspots.csv", "ec2_cpu": "/home/ec2-user/environment/AnnEconForecast/data/sunspots.csv", "ec2_gpu": "/home/ec2-user/AnnEconForecast/data/sunspots.csv" } DEXCAUS = { "ec2_gpu": "/home/ec2-user/AnnEconForecast/data/DEXCAUS.csv" }
33.588235
99
0.71979
67
571
6.059701
0.462687
0.23399
0.199507
0.221675
0.62069
0.512315
0.512315
0.334975
0
0
0
0.016129
0.131349
571
17
100
33.588235
0.802419
0.110333
0
0
0
0
0.721893
0.641026
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
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
cc4e8b0d23a90261171d8e2ae06fb3c15e00583b
84
py
Python
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/errors/__init__.py
JosephMcGrath/Flask-Cookiecutter
70be547d4c88f8a6ea83f3d2bb7d3e506e6c69d4
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/errors/__init__.py
JosephMcGrath/Flask-Cookiecutter
70be547d4c88f8a6ea83f3d2bb7d3e506e6c69d4
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/errors/__init__.py
JosephMcGrath/Flask-Cookiecutter
70be547d4c88f8a6ea83f3d2bb7d3e506e6c69d4
[ "MIT" ]
null
null
null
""" Error handlers for {{cookiecutter.app_name}}. """ from .handlers import errors
14
45
0.714286
10
84
5.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.130952
84
5
46
16.8
0.808219
0.535714
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
cc52955c207c16df7bdd56214f22e7c38d762124
172
py
Python
KSPCommand/__init__.py
dmadisetti/KSPCommand
e96fcdaf5cfa63097a5db3a18efc5c1924099864
[ "MIT" ]
null
null
null
KSPCommand/__init__.py
dmadisetti/KSPCommand
e96fcdaf5cfa63097a5db3a18efc5c1924099864
[ "MIT" ]
null
null
null
KSPCommand/__init__.py
dmadisetti/KSPCommand
e96fcdaf5cfa63097a5db3a18efc5c1924099864
[ "MIT" ]
null
null
null
from .authentication import authenticate from .server import live_graph, graph, remove, AppThread __all__ = ["live_graph", "graph", "remove", "AppThread", "authenticate"]
34.4
72
0.761628
19
172
6.578947
0.526316
0.144
0.224
0.32
0.464
0
0
0
0
0
0
0
0.110465
172
4
73
43
0.816993
0
0
0
0
0
0.244186
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
cc5adfff043af85cd7ac033c00cc7324f523997e
5,907
py
Python
filament.py
grsmiley/filament
bd125d7b1460e6c715c30e4a501ef96185ad6d07
[ "MIT" ]
null
null
null
filament.py
grsmiley/filament
bd125d7b1460e6c715c30e4a501ef96185ad6d07
[ "MIT" ]
null
null
null
filament.py
grsmiley/filament
bd125d7b1460e6c715c30e4a501ef96185ad6d07
[ "MIT" ]
null
null
null
from enum import Enum import inspect class BindingScope(Enum): Transient = 1 Local = 2 Singleton = 3 class BindingContext: def __init__(self, singletons = None, locals = None, transients = None): self._bindings = {} # (callable, binding type) if singletons: for k,v in singletons.items(): self.singleton(k, v) if locals: for k,v in locals.items(): self.local(k, v) if transients: for k,v in transients.items(): self.transient(k, v) def singleton(self, base, callable=None): self._bind(base, callable, BindingScope.Singleton) def local(self, base, callable=None): self._bind(base, callable, BindingScope.Local) def transient(self, base, callable=None): self._bind(base, callable, BindingScope.Transient) def _bind(self, base, callable, scope): if not base: # intentionally checking falsiness rather than None raise ValueError(f"Base {base} cannot be falsy.") if isinstance(base, str) and callable is None: raise ValueError(f"Base {base} of type str must be explicitly mapped.") # can't coalesce with (callable or base, scope) because 'data', {} should be valid self._bindings[base] = (base if callable is None else callable, scope) def get(self, target, default=None): return self._bindings.get(target, default) class Injector: def __init__(self, context:BindingContext=None, default_scope = BindingScope.Local): self._context = context or BindingContext() self._default_scope = default_scope self._cache = {} # singletons def resolve(self, target, context:BindingContext=None): context = context or BindingContext() # ensure contexts both locally and at the injector level don't have collisions collision = context._bindings.keys() & self._context._bindings.keys() assert not collision, f"Injector context and local context have duplicate bindings ({collision})." cache = {} # local scope def resolve_(target): # search cache first cached = cache.get(target) if cached is None: cached = self._cache.get(target) if cached is not None: return cached # get binding definition or default - local before global # ok to coalesce here since target shouldn't be falsy binding = context.get(target) or self._context.get(target) if not binding and isinstance(target, str): return None concrete, scope = binding or (target, self._default_scope) if callable(concrete): args = {} for param in inspect.signature(concrete).parameters.values(): result = resolve_(param.name) if result is None and param.annotation is not inspect.Parameter.empty: result = resolve_(param.annotation) if result is not None: args[param.name] = result result = concrete(**args) else: # not a callable result = concrete # set cache match scope: case BindingScope.Singleton: self._cache[target] = result case BindingScope.Local: cache[target] = result return result return resolve_(target) class AsyncInjector: def __init__(self, context:BindingContext=None, default_scope = BindingScope.Local): self._context = context or BindingContext() self._default_scope = default_scope self._cache = {} # singletons async def resolve(self, target, context:BindingContext=None): context = context or BindingContext() # ensure contexts both locally and at the injector level don't have collisions collision = context._bindings.keys() & self._context._bindings.keys() assert not collision, f"Injector context and local context have duplicate bindings ({collision})." cache = {} # local scope async def resolve_(target): # search cache first cached = cache.get(target) if cached is None: cached = self._cache.get(target) if cached is not None: return cached # get binding definition or default - local before global # ok to coalesce here since target shouldn't be falsy binding = context.get(target) or self._context.get(target) if not binding and isinstance(target, str): return None concrete, scope = binding or (target, self._default_scope) if callable(concrete): args = {} for param in inspect.signature(concrete).parameters.values(): result = await resolve_(param.name) if result is None and param.annotation is not inspect.Parameter.empty: result = await resolve_(param.annotation) if result is not None: args[param.name] = result result = concrete(**args) if inspect.isawaitable(result): result = await result else: # not a callable result = concrete # set cache match scope: case BindingScope.Singleton: self._cache[target] = result case BindingScope.Local: cache[target] = result return result return await resolve_(target)
35.8
106
0.574403
624
5,907
5.349359
0.184295
0.024266
0.019772
0.03595
0.754943
0.754943
0.738167
0.738167
0.738167
0.691432
0
0.000782
0.350601
5,907
165
107
35.8
0.869395
0.114271
0
0.581818
0
0
0.04297
0
0
0
0
0
0.018182
1
0.090909
false
0
0.018182
0.009091
0.254545
0
0
0
0
null
0
0
0
0
1
1
1
1
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
5
cc88bee2033e007fa544bc9a2e97db1dd270b336
95
py
Python
manubot/cite/__init__.py
lasest/manubot
7d74055105f3ac19e27fb469779b045a8dbf0acf
[ "BSD-2-Clause-Patent" ]
299
2019-02-07T23:40:29.000Z
2022-03-29T15:51:33.000Z
manubot/cite/__init__.py
Junjun1guo/manubot
3ff3000f76dcf82a30694d076a4da95326e3f6ae
[ "BSD-2-Clause-Patent" ]
181
2019-02-01T20:44:32.000Z
2022-03-22T21:24:16.000Z
manubot/cite/__init__.py
Junjun1guo/manubot
3ff3000f76dcf82a30694d076a4da95326e3f6ae
[ "BSD-2-Clause-Patent" ]
34
2019-05-21T15:03:25.000Z
2022-01-17T10:19:24.000Z
__all__ = [ "citekey_to_csl_item", ] from manubot.cite.citekey import citekey_to_csl_item
15.833333
52
0.768421
14
95
4.5
0.642857
0.285714
0.380952
0.507937
0
0
0
0
0
0
0
0
0.147368
95
5
53
19
0.777778
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
cc97e6f778b4cabf62eb91cea4bc8ba5d6f9f8d5
59
py
Python
tasks.py
Elthan/trix2
5fea5eaea8dfd2a6201377fc7775e89ce99f6cbd
[ "BSD-3-Clause" ]
1
2020-03-15T12:29:13.000Z
2020-03-15T12:29:13.000Z
tasks.py
devilry/trix2
5bbf15671b4a72ef1ec41240b975950f413735d8
[ "BSD-3-Clause" ]
63
2015-01-03T17:21:38.000Z
2020-10-07T13:21:08.000Z
tasks.py
Elthan/trix2
5fea5eaea8dfd2a6201377fc7775e89ce99f6cbd
[ "BSD-3-Clause" ]
4
2015-01-08T14:49:44.000Z
2018-06-18T06:55:30.000Z
from trix.project.develop.developtasks import * # noqa
29.5
58
0.745763
7
59
6.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.169492
59
1
59
59
0.897959
0.067797
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
aeda75f920c70cb9e43bd33fc930b5f4ec217272
180
py
Python
auth.py
mvshmakov/email-analyzer
68a9155e699d3ce14659aced3a35cebc07469510
[ "MIT" ]
null
null
null
auth.py
mvshmakov/email-analyzer
68a9155e699d3ce14659aced3a35cebc07469510
[ "MIT" ]
null
null
null
auth.py
mvshmakov/email-analyzer
68a9155e699d3ce14659aced3a35cebc07469510
[ "MIT" ]
null
null
null
from flask import Blueprint from flask import redirect, url_for auth = Blueprint('auth', __name__) @auth.route('/login') def login(): return redirect(url_for('app.login'))
16.363636
41
0.722222
25
180
4.96
0.56
0.145161
0.241935
0
0
0
0
0
0
0
0
0
0.144444
180
10
42
18
0.805195
0
0
0
0
0
0.105556
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0.333333
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
0
1
1
1
0
0
5
4e00c80299787c77769f7bb551544bd4d3dc83fc
207
py
Python
src/lib/validate.py
luscafter/bot-telegram
c936020b05923976d203fd33f26facaddddd5013
[ "MIT" ]
null
null
null
src/lib/validate.py
luscafter/bot-telegram
c936020b05923976d203fd33f26facaddddd5013
[ "MIT" ]
null
null
null
src/lib/validate.py
luscafter/bot-telegram
c936020b05923976d203fd33f26facaddddd5013
[ "MIT" ]
null
null
null
import pycep_correios from validate_docbr import CNPJ def valid_cep(cep): return pycep_correios.validar_cep(cep) def valid_cnpj(document): cnpj = CNPJ() return cnpj.validate(document)
20.7
43
0.7343
28
207
5.214286
0.464286
0.178082
0
0
0
0
0
0
0
0
0
0
0.193237
207
9
44
23
0.874252
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.285714
0.142857
0.857143
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
1
0
0
0
1
1
0
0
5
4e025e550aa4f6969f67586f25a29bd12708fbd6
142
py
Python
aula04/exec4.py
miguelviladev/programming-fundamentals
1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b
[ "CC0-1.0" ]
6
2021-11-21T13:12:57.000Z
2022-01-13T00:39:40.000Z
aula04/exec4.py
miguelviladev/programming-fundamentals
1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b
[ "CC0-1.0" ]
null
null
null
aula04/exec4.py
miguelviladev/programming-fundamentals
1a4cad5fabca00acdb4fc4eaf8ed637c54e57d3b
[ "CC0-1.0" ]
null
null
null
def fatorial(n, a=1): return fatorial(n-1, a*n) if n > 1 else a print(fatorial(3)) # 1*2*3 = 6 print(fatorial(7)) # 7*6*5*4*3*2*1 = 5040
23.666667
45
0.591549
34
142
2.470588
0.470588
0.214286
0
0
0
0
0
0
0
0
0
0.173913
0.190141
142
6
46
23.666667
0.556522
0.211268
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.5
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
1
0
5
4e365b2c9d8c4fd1337aa44efaddd9a24b9770f0
151
py
Python
django/paradiso/eye_of_providence/admin.py
HoldenLucas/eye_of_providence
786549287924781a894f8aa9f383dc6541cbf848
[ "MIT" ]
null
null
null
django/paradiso/eye_of_providence/admin.py
HoldenLucas/eye_of_providence
786549287924781a894f8aa9f383dc6541cbf848
[ "MIT" ]
4
2019-07-03T21:24:07.000Z
2020-06-05T20:22:21.000Z
django/paradiso/eye_of_providence/admin.py
HoldenLucas/eye_of_providence
786549287924781a894f8aa9f383dc6541cbf848
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Guest, Event # Register your models here. admin.site.register(Guest) admin.site.register(Event)
18.875
32
0.794702
22
151
5.454545
0.545455
0.15
0.283333
0
0
0
0
0
0
0
0
0
0.119205
151
7
33
21.571429
0.902256
0.172185
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
1
0
1
0
0
0
0
5
9dbb959c1d55bd3443afb782666cb7fd1fc66255
435
py
Python
tests/data/identifiers/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
tests/data/identifiers/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
tests/data/identifiers/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
CASES = [ ("challenge_problem", "NOVEL_CHASSIS", "6f0ba626-e1c4-5beb-bf39-2ed91338379a", "101ba626-e1c4-5beb-bf39-2ed91338379a"), ("sample", "sample.transcriptic.aq1bsxp36447z6", "67a40ded-b06e-5d91-95dd-8533755ed48c", "10340ded-b06e-5d91-95dd-8533755ed48c"), ("measurement", "measurement.transcriptic.sample.transcriptic.aq1btphfuwnxq9.1", "e05bdf03-c68d-565c-ba21-124c9fd927c1", "104bdf03-c68d-565c-ba21-124c9fd927c1") ]
72.5
164
0.763218
46
435
7.173913
0.630435
0.048485
0.072727
0.145455
0
0
0
0
0
0
0
0.316953
0.064368
435
5
165
87
0.493857
0
0
0
0
0
0.822989
0.714943
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9dc0d4bdeb3b40692e6e14e113342455049eb94e
39
py
Python
edc/__init__.py
lnmds/edc
698e3e8d2fca1bad2a700171d9bbb28dd33cd7be
[ "MIT" ]
null
null
null
edc/__init__.py
lnmds/edc
698e3e8d2fca1bad2a700171d9bbb28dd33cd7be
[ "MIT" ]
null
null
null
edc/__init__.py
lnmds/edc
698e3e8d2fca1bad2a700171d9bbb28dd33cd7be
[ "MIT" ]
null
null
null
from .bot import * from .main import *
13
19
0.692308
6
39
4.5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.205128
39
2
20
19.5
0.870968
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
9dcda7c2716a14b13977333c1ea28d7da7d11418
123
py
Python
tools/test.py
jianzhnie/MultimodalTransformer
6cd4ca8034a53da361149745aecead68fbe304a0
[ "Apache-2.0" ]
1
2021-11-08T14:32:24.000Z
2021-11-08T14:32:24.000Z
tools/test.py
jianzhnie/MultimodalTransformer
6cd4ca8034a53da361149745aecead68fbe304a0
[ "Apache-2.0" ]
null
null
null
tools/test.py
jianzhnie/MultimodalTransformer
6cd4ca8034a53da361149745aecead68fbe304a0
[ "Apache-2.0" ]
null
null
null
''' Author: jianzhnie Date: 2021-11-17 12:15:26 LastEditTime: 2022-02-24 16:41:06 LastEditors: jianzhnie Description: '''
13.666667
33
0.731707
19
123
4.736842
0.947368
0
0
0
0
0
0
0
0
0
0
0.256881
0.113821
123
8
34
15.375
0.568807
0.918699
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
5
d19d71a5cce58f4264001a08f92b4c85c455e194
14
py
Python
TestFiles/Blob.py
DhirajWishal/WorkForge-Prototype
5ba6b02d41342ad20d412f0fbae14b9e004a57ab
[ "MIT" ]
null
null
null
TestFiles/Blob.py
DhirajWishal/WorkForge-Prototype
5ba6b02d41342ad20d412f0fbae14b9e004a57ab
[ "MIT" ]
null
null
null
TestFiles/Blob.py
DhirajWishal/WorkForge-Prototype
5ba6b02d41342ad20d412f0fbae14b9e004a57ab
[ "MIT" ]
1
2021-03-20T19:09:57.000Z
2021-03-20T19:09:57.000Z
print("Blob!")
14
14
0.642857
2
14
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0
14
1
14
14
0.642857
0
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
1
0
0
0
0
1
0
5
d1c259c2e06613f74d133d7055d2ffa694714fa7
168
py
Python
todos/admin.py
yuliiabuchko/todo
2a553ef6177f978126bbd746113eb4a50b9e3dea
[ "MIT" ]
null
null
null
todos/admin.py
yuliiabuchko/todo
2a553ef6177f978126bbd746113eb4a50b9e3dea
[ "MIT" ]
1
2021-04-08T21:17:38.000Z
2021-04-08T21:17:38.000Z
todos/admin.py
yuliiabuchko/todo
2a553ef6177f978126bbd746113eb4a50b9e3dea
[ "MIT" ]
null
null
null
from django.contrib import admin from todos.models import * @admin.register(Event, Statistic, Entry, Task, Status, Week) class TodoAdmin(admin.ModelAdmin): pass
18.666667
60
0.761905
22
168
5.818182
0.818182
0.171875
0
0
0
0
0
0
0
0
0
0
0.142857
168
8
61
21
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
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
1
1
1
0
0
0
0
5
d1f0ffec6463de5e8d169a6fbf35d8bd0fcf399c
37
py
Python
simplestRPC/auxiliar/__init__.py
davincif/simpleRPC
910c2de30e09f0cd7a7fe97119b9764a67831fc3
[ "Zlib" ]
4
2019-02-20T11:47:49.000Z
2021-08-31T08:35:56.000Z
simplestRPC/auxiliar/__init__.py
davincif/simpleRPC
910c2de30e09f0cd7a7fe97119b9764a67831fc3
[ "Zlib" ]
10
2018-10-22T12:06:54.000Z
2021-06-01T22:50:25.000Z
simplestRPC/auxiliar/__init__.py
davincif/simpleRPC
910c2de30e09f0cd7a7fe97119b9764a67831fc3
[ "Zlib" ]
null
null
null
from simplestRPC.auxiliar import aux
18.5
36
0.864865
5
37
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.969697
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
ae0fcbd09b1c4ff9e9cece4812f4523d195f132b
148
py
Python
zcrmsdk/src/com/zoho/crm/api/record/mass_update_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/record/mass_update_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/record/mass_update_response.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod class MassUpdateResponse(ABC): def __init__(self): """Creates an instance of MassUpdateResponse""" pass
16.444444
49
0.756757
17
148
6.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0
0.155405
148
8
50
18.5
0.864
0.277027
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
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
1
0
1
0
0
1
0
0
5
ae254d7eee939c447195e36ee88eba9b3f1d86a0
193
py
Python
pywaterflood/__init__.py
frank1010111/pyCRM
5305762df0b700b404d2cbb32b83a80761c17151
[ "BSD-2-Clause" ]
7
2020-05-18T19:14:42.000Z
2021-10-11T03:59:02.000Z
pywaterflood/__init__.py
frank1010111/pyCRM
5305762df0b700b404d2cbb32b83a80761c17151
[ "BSD-2-Clause" ]
null
null
null
pywaterflood/__init__.py
frank1010111/pyCRM
5305762df0b700b404d2cbb32b83a80761c17151
[ "BSD-2-Clause" ]
6
2020-05-31T03:24:51.000Z
2021-05-15T02:30:33.000Z
"pywaterflood" from importlib.metadata import version __version__ = version("pywaterflood") from .crm import CRM from .multiwellproductivity import calc_gains_homogeneous, translate_locations
27.571429
78
0.849741
21
193
7.47619
0.619048
0.203822
0
0
0
0
0
0
0
0
0
0
0.093264
193
6
79
32.166667
0.897143
0.062176
0
0
0
0
0.124352
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
ae3a817e7362d400c038bd2694affdc1bee1c9d5
25,484
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/energyConstants.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
9
2021-03-06T04:24:28.000Z
2022-01-03T09:53:07.000Z
AutoDockTools/energyConstants.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
3
2021-03-07T05:37:16.000Z
2021-09-19T15:06:54.000Z
AutoDockTools/energyConstants.py
e-mayo/autodocktools-prepare-py3k
2dd2316837bcb7c19384294443b2855e5ccd3e01
[ "BSD-3-Clause" ]
4
2019-08-28T23:11:39.000Z
2021-11-27T08:43:36.000Z
############################################################################# # # Author: Ruth HUEY, William LINDSTROM # # Copyright: M. Sanner TSRI 2000 # ############################################################################# # $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/energyConstants.py,v 1.4 2002/03/12 21:24:55 rhuey Exp $ # # # $Id: energyConstants.py,v 1.4 2002/03/12 21:24:55 rhuey Exp $ # # #FROM constants.py # from: gpf3gen # Free energy model 140n s coefficients: # FE_vdW_coeff = 0.1485 FE_estat_coeff = 0.1146 FE_hbond_coeff = 0.0656 FE_tors_coeff = 0.3113 FE_desol_coeff = 0.1711 # AutoDock Binding Free Energy Model 140n # Uses the C.A.Lig.only solvation model, i.e. # aliphatic (C) and aromatic (A) carbon atoms only # SolVol={} SolVol[ "C" ] = 12.77 SolVol[ "A" ] = 10.80 SolVol[ "N" ] = 0. SolVol[ "n" ] = 0. SolVol[ "O" ] = 0. SolVol[ "H" ] = 0. #SolPar[ "C" ] = 0.6844 #SolPar[ "A" ] = 0.1027 SolPar={} SolPar[ "C" ] = 4.0 * FE_desol_coeff SolPar[ "A" ] = 0.6 * FE_desol_coeff SolPar[ "N" ] = 0. SolPar[ "n" ] = 0. SolPar[ "O" ] = 0. SolPar[ "H" ] = 0. SolCon={} SolCon[ "C" ] = 0. SolCon[ "A" ] = 0. SolCon[ "N" ] = 0. SolCon[ "n" ] = 0. SolCon[ "O" ] = 0.236 SolCon[ "H" ] = 0.118 Rij={} Rij[ "lj" "C" "C" ] = 4.00 Rij[ "lj" "C" "N" ] = 3.75 Rij[ "lj" "C" "n" ] = 3.75 Rij[ "lj" "C" "O" ] = 3.60 Rij[ "lj" "C" "P" ] = 4.10 Rij[ "lj" "C" "S" ] = 4.00 Rij[ "lj" "C" "H" ] = 3.00 Rij[ "lj" "C" "f" ] = 2.65 Rij[ "lj" "C" "F" ] = 3.54 Rij[ "lj" "C" "c" ] = 4.04 Rij[ "lj" "C" "b" ] = 4.17 Rij[ "lj" "C" "I" ] = 4.36 #Rij[ "lj" "C" "M" ] = 2.79 Rij[ "lj" "C" "M" ] = 2.65 #Mg Rij[ "lj" "C" "Z" ] = 2.74 #Zn Rij[ "lj" "C" "L" ] = 2.99 #Ca Rij[ "lj" "C" "X" ] = 3.00 #Xx Rij[ "lj" "N" "C" ] = 3.75 Rij[ "lj" "N" "N" ] = 3.50 Rij[ "lj" "N" "n" ] = 3.50 Rij[ "lj" "N" "O" ] = 3.35 Rij[ "lj" "N" "P" ] = 3.85 Rij[ "lj" "N" "S" ] = 3.75 Rij[ "lj" "N" "H" ] = 2.75 Rij[ "lj" "N" "f" ] = 2.40 Rij[ "lj" "N" "F" ] = 3.29 Rij[ "lj" "N" "c" ] = 3.79 Rij[ "lj" "N" "b" ] = 3.92 Rij[ "lj" "N" "I" ] = 4.11 #Rij[ "lj" "N" "M" ] = 2.54 Rij[ "lj" "N" "M" ] = 2.40 #Mg Rij[ "lj" "N" "Z" ] = 2.49 #Zn Rij[ "lj" "N" "L" ] = 2.74 #Ca Rij[ "lj" "N" "X" ] = 2.75 #Xx Rij[ "lj" "n" "C" ] = 3.75 Rij[ "lj" "n" "N" ] = 3.50 Rij[ "lj" "n" "n" ] = 3.50 Rij[ "lj" "n" "O" ] = 3.35 Rij[ "lj" "n" "P" ] = 3.85 Rij[ "lj" "n" "S" ] = 3.75 Rij[ "lj" "n" "H" ] = 2.75 Rij[ "lj" "n" "f" ] = 2.40 Rij[ "lj" "n" "F" ] = 3.29 Rij[ "lj" "n" "c" ] = 3.79 Rij[ "lj" "n" "b" ] = 3.92 Rij[ "lj" "n" "I" ] = 4.11 #Rij[ "lj" "n" "M" ] = 2.54 Rij[ "lj" "n" "M" ] = 2.40 #Mg Rij[ "lj" "n" "Z" ] = 2.49 #Zn Rij[ "lj" "n" "L" ] = 2.74 #Ca Rij[ "lj" "n" "X" ] = 2.75 #Xx Rij[ "lj" "O" "C" ] = 3.60 Rij[ "lj" "O" "N" ] = 3.35 Rij[ "lj" "O" "n" ] = 3.35 Rij[ "lj" "O" "O" ] = 3.20 Rij[ "lj" "O" "P" ] = 3.70 Rij[ "lj" "O" "S" ] = 3.60 Rij[ "lj" "O" "H" ] = 2.60 Rij[ "lj" "O" "f" ] = 2.25 Rij[ "lj" "O" "F" ] = 3.15 Rij[ "lj" "O" "c" ] = 3.65 Rij[ "lj" "O" "b" ] = 3.77 Rij[ "lj" "O" "I" ] = 3.96 #Rij[ "lj" "O" "M" ] = 2.39 Rij[ "lj" "O" "M" ] = 2.25 #Mg Rij[ "lj" "O" "Z" ] = 2.34 #Zn Rij[ "lj" "O" "L" ] = 2.59 #Ca Rij[ "lj" "O" "X" ] = 2.60 #Xx Rij[ "lj" "P" "C" ] = 4.10 Rij[ "lj" "P" "N" ] = 3.85 Rij[ "lj" "P" "n" ] = 3.85 Rij[ "lj" "P" "O" ] = 3.70 Rij[ "lj" "P" "P" ] = 4.20 Rij[ "lj" "P" "S" ] = 4.10 Rij[ "lj" "P" "H" ] = 3.10 Rij[ "lj" "P" "f" ] = 2.75 Rij[ "lj" "P" "F" ] = 3.65 Rij[ "lj" "P" "c" ] = 4.14 Rij[ "lj" "P" "b" ] = 4.27 Rij[ "lj" "P" "I" ] = 4.46 #Rij[ "lj" "P" "M" ] = 2.89 Rij[ "lj" "P" "M" ] = 2.75 #Mg Rij[ "lj" "P" "Z" ] = 2.84 #Zn Rij[ "lj" "P" "L" ] = 3.09 #Ca Rij[ "lj" "P" "X" ] = 3.10 #Xx Rij[ "lj" "S" "C" ] = 4.00 Rij[ "lj" "S" "N" ] = 3.75 Rij[ "lj" "S" "n" ] = 3.75 Rij[ "lj" "S" "O" ] = 3.60 Rij[ "lj" "S" "P" ] = 4.10 Rij[ "lj" "S" "S" ] = 4.00 Rij[ "lj" "S" "H" ] = 3.00 Rij[ "lj" "S" "f" ] = 2.65 Rij[ "lj" "S" "F" ] = 3.54 Rij[ "lj" "S" "c" ] = 4.04 Rij[ "lj" "S" "b" ] = 4.17 Rij[ "lj" "S" "I" ] = 4.36 #Rij[ "lj" "S" "M" ] = 2.79 Rij[ "lj" "S" "M" ] = 2.65 #Mg Rij[ "lj" "S" "Z" ] = 2.74 #Zn Rij[ "lj" "S" "L" ] = 2.99 #Ca Rij[ "lj" "S" "X" ] = 3.00 #Xx Rij[ "lj" "H" "C" ] = 3.00 Rij[ "lj" "H" "N" ] = 2.75 Rij[ "lj" "H" "n" ] = 2.75 Rij[ "lj" "H" "O" ] = 2.60 Rij[ "lj" "H" "P" ] = 3.10 Rij[ "lj" "H" "S" ] = 3.00 Rij[ "lj" "H" "H" ] = 2.00 Rij[ "lj" "H" "f" ] = 1.65 Rij[ "lj" "H" "F" ] = 2.54 Rij[ "lj" "H" "c" ] = 3.04 Rij[ "lj" "H" "b" ] = 3.17 Rij[ "lj" "H" "I" ] = 3.36 #Rij[ "lj" "H" "M" ] = 1.79 Rij[ "lj" "H" "M" ] = 1.65 #Mg Rij[ "lj" "H" "Z" ] = 1.74 #Zn Rij[ "lj" "H" "L" ] = 1.99 #Ca Rij[ "lj" "H" "X" ] = 2.00 #Xx Rij[ "lj" "f" "C" ] = 2.65 Rij[ "lj" "f" "N" ] = 2.40 Rij[ "lj" "f" "n" ] = 2.40 Rij[ "lj" "f" "O" ] = 2.25 Rij[ "lj" "f" "P" ] = 2.75 Rij[ "lj" "f" "S" ] = 2.65 Rij[ "lj" "f" "H" ] = 1.65 Rij[ "lj" "f" "f" ] = 1.30 Rij[ "lj" "f" "F" ] = 2.19 Rij[ "lj" "f" "c" ] = 2.69 Rij[ "lj" "f" "b" ] = 2.81 Rij[ "lj" "f" "I" ] = 3.01 #Rij[ "lj" "f" "M" ] = 1.44 Rij[ "lj" "f" "M" ] = 1.30 #Mg Rij[ "lj" "f" "Z" ] = 1.39 #Zn Rij[ "lj" "f" "L" ] = 1.64 #Ca Rij[ "lj" "f" "X" ] = 1.65 #Xx Rij[ "lj" "F" "C" ] = 3.54 Rij[ "lj" "F" "N" ] = 3.29 Rij[ "lj" "F" "n" ] = 3.29 Rij[ "lj" "F" "O" ] = 3.15 Rij[ "lj" "F" "P" ] = 3.65 Rij[ "lj" "F" "S" ] = 3.54 Rij[ "lj" "F" "H" ] = 2.54 Rij[ "lj" "F" "f" ] = 2.19 Rij[ "lj" "F" "F" ] = 3.09 Rij[ "lj" "F" "c" ] = 3.59 Rij[ "lj" "F" "b" ] = 3.71 Rij[ "lj" "F" "I" ] = 3.90 #Rij[ "lj" "F" "M" ] = 2.33 Rij[ "lj" "F" "M" ] = 2.19 #Mg Rij[ "lj" "F" "Z" ] = 2.29 #Zn Rij[ "lj" "F" "L" ] = 2.54 #Ca Rij[ "lj" "F" "X" ] = 2.54 #Xx Rij[ "lj" "c" "C" ] = 4.04 Rij[ "lj" "c" "N" ] = 3.79 Rij[ "lj" "c" "n" ] = 3.79 Rij[ "lj" "c" "O" ] = 3.65 Rij[ "lj" "c" "P" ] = 4.14 Rij[ "lj" "c" "S" ] = 4.04 Rij[ "lj" "c" "H" ] = 3.04 Rij[ "lj" "c" "f" ] = 2.69 Rij[ "lj" "c" "F" ] = 3.59 Rij[ "lj" "c" "c" ] = 4.09 Rij[ "lj" "c" "b" ] = 4.21 Rij[ "lj" "c" "I" ] = 4.40 #Rij[ "lj" "c" "M" ] = 2.83 Rij[ "lj" "c" "M" ] = 2.69 #Mg Rij[ "lj" "c" "Z" ] = 2.79 #Zn Rij[ "lj" "c" "L" ] = 3.04 #Ca Rij[ "lj" "c" "X" ] = 3.04 #Xx Rij[ "lj" "b" "C" ] = 4.17 Rij[ "lj" "b" "N" ] = 3.92 Rij[ "lj" "b" "n" ] = 3.92 Rij[ "lj" "b" "O" ] = 3.77 Rij[ "lj" "b" "P" ] = 4.27 Rij[ "lj" "b" "S" ] = 4.17 Rij[ "lj" "b" "H" ] = 3.17 Rij[ "lj" "b" "f" ] = 2.81 Rij[ "lj" "b" "F" ] = 3.71 Rij[ "lj" "b" "c" ] = 4.21 Rij[ "lj" "b" "b" ] = 4.33 Rij[ "lj" "b" "I" ] = 4.53 #Rij[ "lj" "b" "M" ] = 2.95 Rij[ "lj" "b" "M" ] = 2.81 #Mg Rij[ "lj" "b" "Z" ] = 2.91 #Zn Rij[ "lj" "b" "L" ] = 3.16 #Ca Rij[ "lj" "b" "X" ] = 3.17 #Xx Rij[ "lj" "I" "C" ] = 4.36 Rij[ "lj" "I" "N" ] = 4.11 Rij[ "lj" "I" "n" ] = 4.11 Rij[ "lj" "I" "O" ] = 3.96 Rij[ "lj" "I" "P" ] = 4.46 Rij[ "lj" "I" "S" ] = 4.36 Rij[ "lj" "I" "H" ] = 3.36 Rij[ "lj" "I" "f" ] = 3.01 Rij[ "lj" "I" "F" ] = 3.90 Rij[ "lj" "I" "c" ] = 4.40 Rij[ "lj" "I" "b" ] = 4.53 Rij[ "lj" "I" "I" ] = 4.72 #Rij[ "lj" "I" "M" ] = 3.15 Rij[ "lj" "I" "M" ] = 3.01 #Mg Rij[ "lj" "I" "Z" ] = 3.10 #Zn Rij[ "lj" "I" "L" ] = 3.35 #Ca Rij[ "lj" "I" "X" ] = 3.36 #Xx #Rij[ "lj" "M" "C" ] = 2.79 #Rij[ "lj" "M" "N" ] = 2.54 #Rij[ "lj" "M" "n" ] = 2.54 #Rij[ "lj" "M" "O" ] = 2.39 #Rij[ "lj" "M" "P" ] = 2.89 #Rij[ "lj" "M" "S" ] = 2.79 #Rij[ "lj" "M" "H" ] = 1.79 #Rij[ "lj" "M" "f" ] = 1.44 #Rij[ "lj" "M" "F" ] = 2.33 #Rij[ "lj" "M" "c" ] = 2.83 #Rij[ "lj" "M" "b" ] = 2.95 #Rij[ "lj" "M" "I" ] = 3.15 #Rij[ "lj" "M" "M" ] = 1.57 #Mg Rij[ "lj" "M" "C" ] = 2.65 Rij[ "lj" "M" "N" ] = 2.40 Rij[ "lj" "M" "n" ] = 2.40 Rij[ "lj" "M" "O" ] = 2.25 Rij[ "lj" "M" "P" ] = 2.75 Rij[ "lj" "M" "S" ] = 2.65 Rij[ "lj" "M" "H" ] = 1.65 Rij[ "lj" "M" "f" ] = 1.30 Rij[ "lj" "M" "F" ] = 2.19 Rij[ "lj" "M" "c" ] = 2.69 Rij[ "lj" "M" "b" ] = 2.81 Rij[ "lj" "M" "I" ] = 3.01 Rij[ "lj" "M" "M" ] = 1.30 #Mg Rij[ "lj" "M" "Z" ] = 1.39 #Zn Rij[ "lj" "M" "L" ] = 1.64 #Ca Rij[ "lj" "M" "X" ] = 1.65 #Xx #Zn Rij[ "lj" "Z" "C" ] = 2.74 Rij[ "lj" "Z" "N" ] = 2.49 Rij[ "lj" "Z" "n" ] = 2.49 Rij[ "lj" "Z" "O" ] = 2.34 Rij[ "lj" "Z" "P" ] = 2.84 Rij[ "lj" "Z" "S" ] = 2.74 Rij[ "lj" "Z" "H" ] = 1.74 Rij[ "lj" "Z" "f" ] = 1.39 Rij[ "lj" "Z" "F" ] = 2.29 Rij[ "lj" "Z" "c" ] = 2.79 Rij[ "lj" "Z" "b" ] = 2.91 Rij[ "lj" "Z" "I" ] = 3.10 Rij[ "lj" "Z" "M" ] = 1.39 #Mg Rij[ "lj" "Z" "Z" ] = 1.48 #Zn Rij[ "lj" "Z" "L" ] = 1.73 #Ca Rij[ "lj" "Z" "X" ] = 1.74 #Xx #Ca Rij[ "lj" "L" "C" ] = 2.99 Rij[ "lj" "L" "N" ] = 2.74 Rij[ "lj" "L" "n" ] = 2.74 Rij[ "lj" "L" "O" ] = 2.59 Rij[ "lj" "L" "P" ] = 3.09 Rij[ "lj" "L" "S" ] = 2.99 Rij[ "lj" "L" "H" ] = 1.99 Rij[ "lj" "L" "f" ] = 1.64 Rij[ "lj" "L" "F" ] = 2.54 Rij[ "lj" "L" "c" ] = 3.04 Rij[ "lj" "L" "b" ] = 3.16 Rij[ "lj" "L" "I" ] = 3.35 Rij[ "lj" "L" "M" ] = 1.64 #Mg Rij[ "lj" "L" "Z" ] = 1.73 #Zn Rij[ "lj" "L" "L" ] = 1.98 #Ca Rij[ "lj" "L" "X" ] = 1.99 #Xx #Xx Rij[ "lj" "X" "C" ] = 3.00 Rij[ "lj" "X" "N" ] = 2.75 Rij[ "lj" "X" "n" ] = 2.75 Rij[ "lj" "X" "O" ] = 2.60 Rij[ "lj" "X" "P" ] = 3.10 Rij[ "lj" "X" "S" ] = 3.00 Rij[ "lj" "X" "H" ] = 2.00 Rij[ "lj" "X" "f" ] = 1.65 Rij[ "lj" "X" "F" ] = 2.54 Rij[ "lj" "X" "c" ] = 3.04 Rij[ "lj" "X" "b" ] = 3.17 Rij[ "lj" "X" "I" ] = 3.36 Rij[ "lj" "X" "M" ] = 1.65 #Mg Rij[ "lj" "X" "Z" ] = 1.74 #Zn Rij[ "lj" "X" "L" ] = 1.99 #Ca Rij[ "lj" "X" "X" ] = 2.00 #Xx #A:aromatic carbon Rij[ "lj" "C" "A" ] = Rij[ "lj" "C" "C" ] Rij[ "lj" "A" "C" ] = Rij[ "lj" "C" "A" ] Rij[ "lj" "A" "A" ] = Rij[ "lj" "C" "C" ] Rij[ "lj" "A" "N" ] = Rij[ "lj" "C" "N" ] Rij[ "lj" "A" "n" ] = Rij[ "lj" "C" "n" ] Rij[ "lj" "A" "O" ] = Rij[ "lj" "C" "O" ] Rij[ "lj" "A" "S" ] = Rij[ "lj" "C" "S" ] Rij[ "lj" "A" "H" ] = Rij[ "lj" "C" "H" ] Rij[ "lj" "A" "P" ] = Rij[ "lj" "C" "P" ] Rij[ "lj" "A" "f" ] = Rij[ "lj" "C" "f" ] Rij[ "lj" "A" "F" ] = Rij[ "lj" "C" "F" ] Rij[ "lj" "A" "c" ] = Rij[ "lj" "C" "c" ] Rij[ "lj" "A" "b" ] = Rij[ "lj" "C" "b" ] Rij[ "lj" "A" "I" ] = Rij[ "lj" "C" "I" ] Rij[ "lj" "A" "M" ] = Rij[ "lj" "C" "M" ] Rij[ "lj" "A" "Z" ] = Rij[ "lj" "C" "Z" ] Rij[ "lj" "A" "L" ] = Rij[ "lj" "C" "L" ] Rij[ "lj" "A" "X" ] = Rij[ "lj" "C" "X" ] Rij[ "lj" "N" "A" ] = Rij[ "lj" "A" "N" ] Rij[ "lj" "n" "A" ] = Rij[ "lj" "A" "n" ] Rij[ "lj" "O" "A" ] = Rij[ "lj" "A" "O" ] Rij[ "lj" "S" "A" ] = Rij[ "lj" "A" "S" ] Rij[ "lj" "H" "A" ] = Rij[ "lj" "A" "H" ] Rij[ "lj" "P" "A" ] = Rij[ "lj" "A" "P" ] Rij[ "lj" "f" "A" ] = Rij[ "lj" "A" "f" ] Rij[ "lj" "F" "A" ] = Rij[ "lj" "A" "F" ] Rij[ "lj" "c" "A" ] = Rij[ "lj" "A" "c" ] Rij[ "lj" "b" "A" ] = Rij[ "lj" "A" "b" ] Rij[ "lj" "I" "A" ] = Rij[ "lj" "A" "I" ] Rij[ "lj" "M" "A" ] = Rij[ "lj" "A" "M" ] Rij[ "lj" "Z" "A" ] = Rij[ "lj" "A" "Z" ] Rij[ "lj" "L" "A" ] = Rij[ "lj" "A" "M" ] Rij[ "lj" "X" "A" ] = Rij[ "lj" "A" "X" ] # # AutoDock Binding Free Energy Model 140n # New well-depths using new Solvation Model, # multiplied by van der Waals coefficient, 0.1485 # # # Well-depths prior to Solvation Model, multiplied by FE_vdW_coeff # epsij={} epsij[ "lj" "C" "C" ] = 0.1500 * FE_vdW_coeff epsij[ "lj" "C" "N" ] = 0.1549 * FE_vdW_coeff epsij[ "lj" "C" "n" ] = 0.1549 * FE_vdW_coeff epsij[ "lj" "C" "O" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "C" "P" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "C" "S" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "C" "H" ] = 0.0548 * FE_vdW_coeff epsij[ "lj" "C" "f" ] = 0.0387 * FE_vdW_coeff epsij[ "lj" "C" "F" ] = 0.1095 * FE_vdW_coeff epsij[ "lj" "C" "c" ] = 0.2035 * FE_vdW_coeff epsij[ "lj" "C" "b" ] = 0.2416 * FE_vdW_coeff epsij[ "lj" "C" "I" ] = 0.2877 * FE_vdW_coeff #epsij[ "lj" "C" "M" ] = 0.3623 * FE_vdW_coeff epsij[ "lj" "C" "M" ] = 0.3623 * FE_vdW_coeff epsij[ "lj" "C" "Z" ] = 0.2872 * FE_vdW_coeff epsij[ "lj" "C" "L" ] = 0.2872 * FE_vdW_coeff epsij[ "lj" "C" "X" ] = 0.0548 * FE_vdW_coeff epsij[ "lj" "N" "C" ] = 0.1549 * FE_vdW_coeff epsij[ "lj" "N" "N" ] = 0.1600 * FE_vdW_coeff epsij[ "lj" "N" "n" ] = 0.1600 * FE_vdW_coeff epsij[ "lj" "N" "O" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "N" "P" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "N" "S" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "N" "H" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "N" "f" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "N" "F" ] = 0.1131 * FE_vdW_coeff epsij[ "lj" "N" "c" ] = 0.2101 * FE_vdW_coeff epsij[ "lj" "N" "b" ] = 0.2495 * FE_vdW_coeff epsij[ "lj" "N" "I" ] = 0.2972 * FE_vdW_coeff #epsij[ "lj" "N" "M" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "N" "M" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "N" "Z" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "N" "L" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "N" "X" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "n" "C" ] = 0.1549 * FE_vdW_coeff epsij[ "lj" "n" "N" ] = 0.1600 * FE_vdW_coeff epsij[ "lj" "n" "n" ] = 0.1600 * FE_vdW_coeff epsij[ "lj" "n" "O" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "n" "P" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "n" "S" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "n" "H" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "n" "f" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "n" "F" ] = 0.1131 * FE_vdW_coeff epsij[ "lj" "n" "c" ] = 0.2101 * FE_vdW_coeff epsij[ "lj" "n" "b" ] = 0.2495 * FE_vdW_coeff epsij[ "lj" "n" "I" ] = 0.2972 * FE_vdW_coeff #epsij[ "lj" "n" "M" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "n" "M" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "n" "Z" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "n" "L" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "n" "X" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "O" "C" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "O" "N" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "O" "n" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "O" "O" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "O" "P" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "O" "S" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "O" "H" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "O" "f" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "O" "F" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "O" "c" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "O" "b" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "O" "I" ] = 0.3323 * FE_vdW_coeff #epsij[ "lj" "O" "M" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "O" "M" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "O" "Z" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "O" "L" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "O" "X" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "P" "C" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "P" "N" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "P" "n" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "P" "O" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "P" "P" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "P" "S" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "P" "H" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "P" "f" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "P" "F" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "P" "c" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "P" "b" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "P" "I" ] = 0.3323 * FE_vdW_coeff #epsij[ "lj" "P" "M" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "P" "M" ] = 0.4183 * FE_vdW_coeff #NB: same as O values epsij[ "lj" "P" "Z" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "P" "L" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "P" "X" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "S" "C" ] = 0.1732 * FE_vdW_coeff epsij[ "lj" "S" "N" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "S" "n" ] = 0.1789 * FE_vdW_coeff epsij[ "lj" "S" "O" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "S" "P" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "S" "S" ] = 0.2000 * FE_vdW_coeff epsij[ "lj" "S" "H" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "S" "f" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "S" "F" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "S" "c" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "S" "b" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "S" "I" ] = 0.3323 * FE_vdW_coeff #epsij[ "lj" "S" "M" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "S" "M" ] = 0.4183 * FE_vdW_coeff #NB: same as O values epsij[ "lj" "S" "Z" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "S" "L" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "S" "X" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "H" "C" ] = 0.0548 * FE_vdW_coeff epsij[ "lj" "H" "N" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "H" "n" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "H" "O" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "H" "P" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "H" "S" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "H" "H" ] = 0.0200 * FE_vdW_coeff epsij[ "lj" "H" "f" ] = 0.0141 * FE_vdW_coeff epsij[ "lj" "H" "F" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "H" "c" ] = 0.0743 * FE_vdW_coeff epsij[ "lj" "H" "b" ] = 0.0882 * FE_vdW_coeff epsij[ "lj" "H" "I" ] = 0.1051 * FE_vdW_coeff #epsij[ "lj" "H" "M" ] = 0.1323 * FE_vdW_coeff epsij[ "lj" "H" "M" ] = 0.1323 * FE_vdW_coeff epsij[ "lj" "H" "Z" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "H" "L" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "H" "X" ] = 0.0200 * FE_vdW_coeff epsij[ "lj" "f" "C" ] = 0.0387 * FE_vdW_coeff epsij[ "lj" "f" "N" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "f" "n" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "f" "O" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "f" "P" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "f" "S" ] = 0.0447 * FE_vdW_coeff epsij[ "lj" "f" "H" ] = 0.0141 * FE_vdW_coeff epsij[ "lj" "f" "f" ] = 0.0100 * FE_vdW_coeff epsij[ "lj" "f" "F" ] = 0.0283 * FE_vdW_coeff epsij[ "lj" "f" "c" ] = 0.0525 * FE_vdW_coeff epsij[ "lj" "f" "b" ] = 0.0624 * FE_vdW_coeff epsij[ "lj" "f" "I" ] = 0.0743 * FE_vdW_coeff #epsij[ "lj" "f" "M" ] = 0.0935 * FE_vdW_coeff epsij[ "lj" "f" "M" ] = 0.0935 * FE_vdW_coeff epsij[ "lj" "f" "Z" ] = 0.0742 * FE_vdW_coeff epsij[ "lj" "f" "L" ] = 0.0742 * FE_vdW_coeff epsij[ "lj" "f" "X" ] = 0.0141 * FE_vdW_coeff epsij[ "lj" "F" "C" ] = 0.1095 * FE_vdW_coeff epsij[ "lj" "F" "N" ] = 0.1131 * FE_vdW_coeff epsij[ "lj" "F" "n" ] = 0.1131 * FE_vdW_coeff epsij[ "lj" "F" "O" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "F" "P" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "F" "S" ] = 0.1265 * FE_vdW_coeff epsij[ "lj" "F" "H" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "F" "f" ] = 0.0283 * FE_vdW_coeff epsij[ "lj" "F" "F" ] = 0.0800 * FE_vdW_coeff epsij[ "lj" "F" "c" ] = 0.1486 * FE_vdW_coeff epsij[ "lj" "F" "b" ] = 0.1764 * FE_vdW_coeff epsij[ "lj" "F" "I" ] = 0.2101 * FE_vdW_coeff #epsij[ "lj" "F" "M" ] = 0.2646 * FE_vdW_coeff epsij[ "lj" "F" "M" ] = 0.2646 * FE_vdW_coeff epsij[ "lj" "F" "Z" ] = 0.2098 * FE_vdW_coeff epsij[ "lj" "F" "L" ] = 0.2098 * FE_vdW_coeff epsij[ "lj" "F" "X" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "c" "C" ] = 0.2035 * FE_vdW_coeff epsij[ "lj" "c" "N" ] = 0.2101 * FE_vdW_coeff epsij[ "lj" "c" "n" ] = 0.2101 * FE_vdW_coeff epsij[ "lj" "c" "O" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "c" "P" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "c" "S" ] = 0.2349 * FE_vdW_coeff epsij[ "lj" "c" "H" ] = 0.0743 * FE_vdW_coeff epsij[ "lj" "c" "f" ] = 0.0525 * FE_vdW_coeff epsij[ "lj" "c" "F" ] = 0.1486 * FE_vdW_coeff epsij[ "lj" "c" "c" ] = 0.2760 * FE_vdW_coeff epsij[ "lj" "c" "b" ] = 0.3277 * FE_vdW_coeff epsij[ "lj" "c" "I" ] = 0.3903 * FE_vdW_coeff #epsij[ "lj" "c" "M" ] = 0.4914 * FE_vdW_coeff epsij[ "lj" "c" "M" ] = 0.4914 * FE_vdW_coeff epsij[ "lj" "c" "Z" ] = 0.3896 * FE_vdW_coeff epsij[ "lj" "c" "L" ] = 0.3896 * FE_vdW_coeff epsij[ "lj" "c" "X" ] = 0.0743 * FE_vdW_coeff epsij[ "lj" "b" "C" ] = 0.2416 * FE_vdW_coeff epsij[ "lj" "b" "N" ] = 0.2495 * FE_vdW_coeff epsij[ "lj" "b" "n" ] = 0.2495 * FE_vdW_coeff epsij[ "lj" "b" "O" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "b" "P" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "b" "S" ] = 0.2789 * FE_vdW_coeff epsij[ "lj" "b" "H" ] = 0.0882 * FE_vdW_coeff epsij[ "lj" "b" "f" ] = 0.0624 * FE_vdW_coeff epsij[ "lj" "b" "F" ] = 0.1764 * FE_vdW_coeff epsij[ "lj" "b" "c" ] = 0.3277 * FE_vdW_coeff epsij[ "lj" "b" "b" ] = 0.3890 * FE_vdW_coeff epsij[ "lj" "b" "I" ] = 0.4634 * FE_vdW_coeff #epsij[ "lj" "b" "M" ] = 0.5834 * FE_vdW_coeff epsij[ "lj" "b" "M" ] = 0.5834 * FE_vdW_coeff epsij[ "lj" "b" "Z" ] = 0.4625 * FE_vdW_coeff epsij[ "lj" "b" "L" ] = 0.4625 * FE_vdW_coeff epsij[ "lj" "b" "X" ] = 0.0882 * FE_vdW_coeff epsij[ "lj" "I" "C" ] = 0.2877 * FE_vdW_coeff epsij[ "lj" "I" "N" ] = 0.2972 * FE_vdW_coeff epsij[ "lj" "I" "n" ] = 0.2972 * FE_vdW_coeff epsij[ "lj" "I" "O" ] = 0.3323 * FE_vdW_coeff epsij[ "lj" "I" "P" ] = 0.3323 * FE_vdW_coeff epsij[ "lj" "I" "S" ] = 0.3323 * FE_vdW_coeff epsij[ "lj" "I" "H" ] = 0.1051 * FE_vdW_coeff epsij[ "lj" "I" "f" ] = 0.0743 * FE_vdW_coeff epsij[ "lj" "I" "F" ] = 0.2101 * FE_vdW_coeff epsij[ "lj" "I" "c" ] = 0.3903 * FE_vdW_coeff epsij[ "lj" "I" "b" ] = 0.4634 * FE_vdW_coeff epsij[ "lj" "I" "I" ] = 0.5520 * FE_vdW_coeff #epsij[ "lj" "I" "M" ] = 0.6950 * FE_vdW_coeff epsij[ "lj" "I" "M" ] = 0.6950 * FE_vdW_coeff epsij[ "lj" "I" "Z" ] = 0.5510 * FE_vdW_coeff epsij[ "lj" "I" "L" ] = 0.5510 * FE_vdW_coeff epsij[ "lj" "I" "X" ] = 0.1051 * FE_vdW_coeff epsij[ "lj" "M" "C" ] = 0.3623 * FE_vdW_coeff epsij[ "lj" "M" "N" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "M" "n" ] = 0.3742 * FE_vdW_coeff epsij[ "lj" "M" "O" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "M" "P" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "M" "S" ] = 0.4183 * FE_vdW_coeff epsij[ "lj" "M" "H" ] = 0.1323 * FE_vdW_coeff epsij[ "lj" "M" "f" ] = 0.0935 * FE_vdW_coeff epsij[ "lj" "M" "F" ] = 0.2646 * FE_vdW_coeff epsij[ "lj" "M" "c" ] = 0.4914 * FE_vdW_coeff epsij[ "lj" "M" "b" ] = 0.5834 * FE_vdW_coeff epsij[ "lj" "M" "I" ] = 0.6950 * FE_vdW_coeff epsij[ "lj" "M" "M" ] = 0.8750 * FE_vdW_coeff epsij[ "lj" "M" "Z" ] = 0.6937 * FE_vdW_coeff epsij[ "lj" "M" "L" ] = 0.6937 * FE_vdW_coeff epsij[ "lj" "M" "X" ] = 0.1323 * FE_vdW_coeff epsij[ "lj" "Z" "C" ] = 0.2872 * FE_vdW_coeff epsij[ "lj" "Z" "N" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "Z" "n" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "Z" "O" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "Z" "P" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "Z" "S" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "Z" "H" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "Z" "f" ] = 0.0742 * FE_vdW_coeff epsij[ "lj" "Z" "F" ] = 0.2098 * FE_vdW_coeff epsij[ "lj" "Z" "c" ] = 0.3896 * FE_vdW_coeff epsij[ "lj" "Z" "b" ] = 0.4625 * FE_vdW_coeff epsij[ "lj" "Z" "I" ] = 0.5510 * FE_vdW_coeff epsij[ "lj" "Z" "M" ] = 0.6937 * FE_vdW_coeff epsij[ "lj" "Z" "Z" ] = 0.5500 * FE_vdW_coeff epsij[ "lj" "Z" "L" ] = 0.5500 * FE_vdW_coeff epsij[ "lj" "Z" "X" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "L" "C" ] = 0.2872 * FE_vdW_coeff #these are the same as Zn values epsij[ "lj" "L" "N" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "L" "n" ] = 0.2966 * FE_vdW_coeff epsij[ "lj" "L" "O" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "L" "P" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "L" "S" ] = 0.3317 * FE_vdW_coeff epsij[ "lj" "L" "H" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "L" "f" ] = 0.0742 * FE_vdW_coeff epsij[ "lj" "L" "F" ] = 0.2098 * FE_vdW_coeff epsij[ "lj" "L" "c" ] = 0.3896 * FE_vdW_coeff epsij[ "lj" "L" "b" ] = 0.4625 * FE_vdW_coeff epsij[ "lj" "L" "I" ] = 0.5510 * FE_vdW_coeff epsij[ "lj" "L" "M" ] = 0.6937 * FE_vdW_coeff epsij[ "lj" "L" "Z" ] = 0.5500 * FE_vdW_coeff epsij[ "lj" "L" "L" ] = 0.5500 * FE_vdW_coeff epsij[ "lj" "L" "X" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "X" "C" ] = 0.0548 * FE_vdW_coeff epsij[ "lj" "X" "N" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "X" "n" ] = 0.0566 * FE_vdW_coeff epsij[ "lj" "X" "O" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "X" "P" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "X" "S" ] = 0.0632 * FE_vdW_coeff epsij[ "lj" "X" "H" ] = 0.0200 * FE_vdW_coeff epsij[ "lj" "X" "f" ] = 0.0141 * FE_vdW_coeff epsij[ "lj" "X" "F" ] = 0.0400 * FE_vdW_coeff epsij[ "lj" "X" "c" ] = 0.0743 * FE_vdW_coeff epsij[ "lj" "X" "b" ] = 0.0882 * FE_vdW_coeff epsij[ "lj" "X" "I" ] = 0.1051 * FE_vdW_coeff epsij[ "lj" "X" "M" ] = 0.1323 * FE_vdW_coeff epsij[ "lj" "X" "Z" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "X" "L" ] = 0.1049 * FE_vdW_coeff epsij[ "lj" "X" "X" ] = 0.0200 * FE_vdW_coeff epsij[ "lj" "C" "A" ] = 0.1500 * FE_vdW_coeff epsij[ "lj" "A" "C" ] = epsij[ "lj" "C" "A" ] epsij[ "lj" "A" "A" ] = epsij[ "lj" "C" "C" ] epsij[ "lj" "A" "N" ] = epsij[ "lj" "C" "N" ] epsij[ "lj" "A" "n" ] = epsij[ "lj" "C" "n" ] epsij[ "lj" "A" "O" ] = epsij[ "lj" "C" "O" ] epsij[ "lj" "A" "S" ] = epsij[ "lj" "C" "S" ] epsij[ "lj" "A" "H" ] = epsij[ "lj" "C" "H" ] epsij[ "lj" "A" "P" ] = epsij[ "lj" "C" "P" ] epsij[ "lj" "A" "f" ] = epsij[ "lj" "C" "f" ] epsij[ "lj" "A" "F" ] = epsij[ "lj" "C" "F" ] epsij[ "lj" "A" "c" ] = epsij[ "lj" "C" "c" ] epsij[ "lj" "A" "b" ] = epsij[ "lj" "C" "b" ] epsij[ "lj" "A" "I" ] = epsij[ "lj" "C" "I" ] epsij[ "lj" "A" "M" ] = epsij[ "lj" "C" "M" ] epsij[ "lj" "A" "Z" ] = epsij[ "lj" "C" "Z" ] epsij[ "lj" "A" "L" ] = epsij[ "lj" "C" "L" ] epsij[ "lj" "A" "X" ] = epsij[ "lj" "C" "X" ] epsij[ "lj" "N" "A" ] = epsij[ "lj" "A" "N" ] epsij[ "lj" "n" "A" ] = epsij[ "lj" "A" "n" ] epsij[ "lj" "O" "A" ] = epsij[ "lj" "A" "O" ] epsij[ "lj" "S" "A" ] = epsij[ "lj" "A" "S" ] epsij[ "lj" "H" "A" ] = epsij[ "lj" "A" "H" ] epsij[ "lj" "P" "A" ] = epsij[ "lj" "A" "P" ] epsij[ "lj" "f" "A" ] = epsij[ "lj" "A" "f" ] epsij[ "lj" "F" "A" ] = epsij[ "lj" "A" "F" ] epsij[ "lj" "c" "A" ] = epsij[ "lj" "A" "c" ] epsij[ "lj" "b" "A" ] = epsij[ "lj" "A" "b" ] epsij[ "lj" "I" "A" ] = epsij[ "lj" "A" "I" ] epsij[ "lj" "M" "A" ] = epsij[ "lj" "A" "M" ] epsij[ "lj" "Z" "A" ] = epsij[ "lj" "A" "Z" ] epsij[ "lj" "L" "A" ] = epsij[ "lj" "A" "L" ] epsij[ "lj" "X" "A" ] = epsij[ "lj" "A" "X" ] # # Hydrogen-bonding parameters # Rij[ "hb" "N" "H" ] = 1.90 Rij[ "hb" "O" "H" ] = 1.90 Rij[ "hb" "S" "H" ] = 2.50 Rij[ "hb" "H" "N" ] = 1.90 Rij[ "hb" "H" "O" ] = 1.90 Rij[ "hb" "H" "S" ] = 2.50 # # AutoDock Binding Free Energy Model 140n # New well-depths multiplied by the hbond.difference # coefficient, 0.0656 # # # Original enthalpic well-depths for hydrogen-bonding... # epsij[ "hb" "N" "H" ] = 5.0 * FE_hbond_coeff epsij[ "hb" "O" "H" ] = 5.0 * FE_hbond_coeff epsij[ "hb" "S" "H" ] = 1.0 * FE_hbond_coeff epsij[ "hb" "H" "N" ] = 5.0 * FE_hbond_coeff epsij[ "hb" "H" "O" ] = 5.0 * FE_hbond_coeff epsij[ "hb" "H" "S" ] = 1.0 * FE_hbond_coeff
33.575758
115
0.481047
5,048
25,484
2.316363
0.047544
0.148379
0.231763
0.342513
0.843325
0.743094
0.67519
0.636364
0.331994
0.285641
0
0.118647
0.224101
25,484
758
116
33.620053
0.472715
0.090174
0
0
0
0
0.115292
0
0
0
0
0.001319
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ae4a832a32cb5bee6a8ec7ae3dd152a5a1fdd767
130
py
Python
arcade_solutions/the_core/count_black_cells.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
arcade_solutions/the_core/count_black_cells.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
arcade_solutions/the_core/count_black_cells.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
def gcd(a, b): while b: a, b = b, a % b return a def count_black_cells(n, m): return n + m + gcd(n, m) - 2
14.444444
32
0.476923
26
130
2.307692
0.461538
0.1
0.1
0
0
0
0
0
0
0
0
0.012346
0.376923
130
8
33
16.25
0.728395
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
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
1
0
0
0
1
1
0
0
5
ae609cdd9c76916c2b1d04bb10441c092838a47a
446
py
Python
src/WhiteLibrary/keywords/__init__.py
rasjani/robotframework-whitelibrary
0c56bad0c5da234c684371030415dae29afc224d
[ "Apache-2.0" ]
null
null
null
src/WhiteLibrary/keywords/__init__.py
rasjani/robotframework-whitelibrary
0c56bad0c5da234c684371030415dae29afc224d
[ "Apache-2.0" ]
null
null
null
src/WhiteLibrary/keywords/__init__.py
rasjani/robotframework-whitelibrary
0c56bad0c5da234c684371030415dae29afc224d
[ "Apache-2.0" ]
null
null
null
from .application import ApplicationKeywords # noqa: F401 #pylint: disable=unused-import from .keyboard import KeyboardKeywords # noqa: F401 #pylint: disable=unused-import from .window import WindowKeywords # noqa: F401 #pylint: disable=unused-import from .screenshot import ScreenshotKeywords # noqa: F401 #pylint: disable=unused-import from .configuration import WhiteConfigurationKeywords # noqa: F401 #pylint: disable=unused-import
74.333333
99
0.798206
50
446
7.12
0.34
0.11236
0.196629
0.294944
0.508427
0.508427
0.41573
0
0
0
0
0.038363
0.123318
446
5
100
89.2
0.872123
0.457399
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ae949bcaf4455ee5f613acbabb97fbb6ffab9f75
385
py
Python
overlay_content/views.py
rhilenova/overlay
a97fd576ebbfed842e1136b63a4099404aff18aa
[ "Unlicense" ]
null
null
null
overlay_content/views.py
rhilenova/overlay
a97fd576ebbfed842e1136b63a4099404aff18aa
[ "Unlicense" ]
null
null
null
overlay_content/views.py
rhilenova/overlay
a97fd576ebbfed842e1136b63a4099404aff18aa
[ "Unlicense" ]
null
null
null
from __future__ import print_function import os import textwrap from django.shortcuts import render from django.http import HttpResponse def overlay(request): # Return templated page with rotating set of images return render(request, 'overlay_content/overlay_content.html', {}) def overlay_css(request): return render(request, 'overlay_content/overlay_content.css', {})
27.5
70
0.78961
50
385
5.88
0.52
0.190476
0.129252
0.176871
0.319728
0.319728
0.319728
0
0
0
0
0
0.135065
385
13
71
29.615385
0.882883
0.127273
0
0
0
0
0.212575
0.212575
0
0
0
0
0
1
0.222222
false
0
0.555556
0.222222
1
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
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
5
ae9e2aec14c6b50e1ac2c244f9d34bedd31d9d16
56
py
Python
interpro7dw/interpro/__init__.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/__init__.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
interpro7dw/interpro/__init__.py
matthiasblum/i7dw
b40e5b9984dec2895956828ddf9db8af4a8ec932
[ "Apache-2.0" ]
null
null
null
from . import elastic, email, ftp, mysql, oracle, xrefs
28
55
0.732143
8
56
5.125
1
0
0
0
0
0
0
0
0
0
0
0
0.160714
56
1
56
56
0.87234
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
884d5c1bae3de8afffa3a089a455dab0a5f9f41d
246
py
Python
kikimr/public/sdk/python/iam/__init__.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
2
2022-02-18T16:18:52.000Z
2022-02-19T20:15:05.000Z
kikimr/public/sdk/python/iam/__init__.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
1
2022-02-09T12:49:19.000Z
2022-02-21T08:15:36.000Z
kikimr/public/sdk/python/iam/__init__.py
gridnevvvit/ydb-python-sdk
952f7b4f179595b07711934691d2e15643929cc5
[ "Apache-2.0" ]
2
2022-02-03T14:58:56.000Z
2022-02-22T19:42:59.000Z
from ydb.iam import * # noqa import sys import warnings warnings.warn("using kikimr.public.sdk.python.iam module is deprecated. please use ydb.iam import instead") sys.modules['kikimr.public.sdk.python.iam.auth'] = sys.modules['ydb.iam.auth']
30.75
107
0.764228
39
246
4.820513
0.538462
0.095745
0.12766
0.223404
0.255319
0
0
0
0
0
0
0
0.105691
246
7
108
35.142857
0.854545
0.01626
0
0
0
0.2
0.5625
0.254167
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
31f51e0f255dacb58441feaa9d9424f32113c0f0
937
py
Python
setup.py
tsuijie/dotenv-python
d243b1108216075e96c85949df6913dd8ad943ae
[ "MIT" ]
1
2017-05-27T20:15:46.000Z
2017-05-27T20:15:46.000Z
setup.py
tsuijie/dotenv-python
d243b1108216075e96c85949df6913dd8ad943ae
[ "MIT" ]
1
2017-05-30T08:36:35.000Z
2017-05-30T09:51:42.000Z
setup.py
tsuijie/dotenv-python
d243b1108216075e96c85949df6913dd8ad943ae
[ "MIT" ]
1
2017-05-28T00:06:56.000Z
2017-05-28T00:06:56.000Z
from distutils.core import setup setup( name='dotenv-python', version='0.0.1', author='Cui Jie', author_email='jndion2014@gmail.com', url='https://github.com/TsuiJie/dotenv-python.git', packages=['dotenv'], license='MIT', description='Read .env(-ish) configuration file for python web applications.', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', requires=['coverage'] )
33.464286
82
0.602988
98
937
5.744898
0.612245
0.236234
0.310835
0.184725
0.095915
0
0
0
0
0
0
0.028129
0.241195
937
27
83
34.703704
0.763713
0
0
0
0
0
0.60619
0
0
0
0
0
0
1
0
true
0
0.038462
0
0.038462
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
ee18bb78e0912fa8276c4ff98bec6ee98be3bb34
19,499
py
Python
designate/tests/test_api/test_v2/test_recordsets.py
melodous/designate
c0da0c464c07d34a9855ab704302d7662beb7c1d
[ "Apache-2.0" ]
null
null
null
designate/tests/test_api/test_v2/test_recordsets.py
melodous/designate
c0da0c464c07d34a9855ab704302d7662beb7c1d
[ "Apache-2.0" ]
null
null
null
designate/tests/test_api/test_v2/test_recordsets.py
melodous/designate
c0da0c464c07d34a9855ab704302d7662beb7c1d
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@managedit.ie> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from mock import patch from oslo import messaging from designate.openstack.common import log as logging from designate import exceptions from designate.central import service as central_service from designate.tests.test_api.test_v2 import ApiV2TestCase LOG = logging.getLogger(__name__) class ApiV2RecordSetsTest(ApiV2TestCase): def setUp(self): super(ApiV2RecordSetsTest, self).setUp() # Create a domain self.domain = self.create_domain() def test_create_recordset(self): # Prepare a RecordSet fixture fixture = self.get_recordset_fixture(self.domain['name'], fixture=0) response = self.client.post_json( '/zones/%s/recordsets' % self.domain['id'], {'recordset': fixture}) # Check the headers are what we expect self.assertEqual(201, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) self.assertIn('links', response.json['recordset']) self.assertIn('self', response.json['recordset']['links']) # Check the values returned are what we expect self.assertIn('id', response.json['recordset']) self.assertIn('created_at', response.json['recordset']) self.assertIsNone(response.json['recordset']['updated_at']) self.assertIn('records', response.json['recordset']) def test_create_recordset_with_records(self): # Prepare a RecordSet fixture fixture = self.get_recordset_fixture( self.domain['name'], 'A', fixture=0, values={'records': [ '192.0.2.1', '192.0.2.2', ]} ) response = self.client.post_json( '/zones/%s/recordsets' % self.domain['id'], {'recordset': fixture}) # Check the headers are what we expect self.assertEqual(201, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) # Check the values returned are what we expect self.assertIn('records', response.json['recordset']) self.assertEqual(2, len(response.json['recordset']['records'])) def test_create_recordset_invalid_id(self): self._assert_invalid_uuid(self.client.post, '/zones/%s/recordsets') def test_create_recordset_validation(self): # NOTE: The schemas should be tested separatly to the API. So we # don't need to test every variation via the API itself. # Fetch a fixture fixture = self.get_recordset_fixture(self.domain['name'], fixture=0) # Add a junk field to the wrapper body = {'recordset': fixture, 'junk': 'Junk Field'} url = '/zones/%s/recordsets' % self.domain['id'] # Ensure it fails with a 400 self._assert_exception( 'invalid_object', 400, self.client.post_json, url, body) # Add a junk field to the body fixture['junk'] = 'Junk Field' body = {'recordset': fixture} # Ensure it fails with a 400 self._assert_exception( 'invalid_object', 400, self.client.post_json, url, body) @patch.object(central_service.Service, 'create_recordset', side_effect=messaging.MessagingTimeout()) def test_create_recordset_timeout(self, _): fixture = self.get_recordset_fixture(self.domain['name'], fixture=0) body = {'recordset': fixture} url = '/zones/%s/recordsets' % self.domain['id'] self._assert_exception('timeout', 504, self.client.post_json, url, body) @patch.object(central_service.Service, 'create_recordset', side_effect=exceptions.DuplicateRecordSet()) def test_create_recordset_duplicate(self, _): fixture = self.get_recordset_fixture(self.domain['name'], fixture=0) body = {'recordset': fixture} url = '/zones/%s/recordsets' % self.domain['id'] self._assert_exception('duplicate_recordset', 409, self.client.post_json, url, body) def test_create_recordset_invalid_domain(self): fixture = self.get_recordset_fixture(self.domain['name'], fixture=0) body = {'recordset': fixture} url = '/zones/ba751950-6193-11e3-949a-0800200c9a66/recordsets' self._assert_exception('domain_not_found', 404, self.client.post_json, url, body) def test_recordsets_invalid_url(self): url = '/zones/recordsets' self._assert_exception('not_found', 404, self.client.get, url) self._assert_exception('not_found', 404, self.client.post_json, url) # Pecan returns a 405 for Patch and delete operations response = self.client.patch_json(url, status=405) self.assertEqual(405, response.status_int) response = self.client.delete(url, status=405) self.assertEqual(405, response.status_int) def test_get_recordsets(self): url = '/zones/%s/recordsets' % self.domain['id'] response = self.client.get(url) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordsets', response.json) self.assertIn('links', response.json) self.assertIn('self', response.json['links']) # We should start with 2 recordsets for SOA & NS self.assertEqual(2, len(response.json['recordsets'])) soa = self.central_service.find_recordset( self.admin_context, criterion={'domain_id': self.domain['id'], 'type': 'SOA'}) ns = self.central_service.find_recordset( self.admin_context, criterion={'domain_id': self.domain['id'], 'type': 'NS'}) data = [self.create_recordset(self.domain, name='x-%s.%s' % (i, self.domain['name'])) for i in xrange(0, 10)] data.insert(0, soa) data.insert(0, ns) self._assert_paging(data, url, key='recordsets') self._assert_invalid_paging(data, url, key='recordsets') def test_get_recordsets_filter(self): # Add recordsets for testing fixtures = [ self.get_recordset_fixture( self.domain['name'], 'A', fixture=0, values={'records': [ '192.0.2.1', '192.0.2.2', ]} ), self.get_recordset_fixture( self.domain['name'], 'A', fixture=1, values={'records': [ '192.0.2.1', '192.0.2.3' ]} ), ] for fixture in fixtures: response = self.client.post_json( '/zones/%s/recordsets' % self.domain['id'], {'recordset': fixture}) get_urls = [ '/zones/%s/recordsets?data=192.0.2.1' % self.domain['id'], '/zones/%s/recordsets?data=192.0.2.2' % self.domain['id'], '/zones/%s/recordsets?data=192.0.2.1&name=%s' % ( self.domain['id'], fixtures[0]['name']) ] correct_results = [2, 1, 1] for get_url, correct_result in zip(get_urls, correct_results): response = self.client.get(get_url) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check that the correct number of recordsets match self.assertEqual(correct_result, len(response.json['recordsets'])) def test_get_recordsets_invalid_id(self): self._assert_invalid_uuid(self.client.get, '/zones/%s/recordsets') @patch.object(central_service.Service, 'get_domain', side_effect=messaging.MessagingTimeout()) def test_get_recordsets_timeout(self, _): url = '/zones/ba751950-6193-11e3-949a-0800200c9a66/recordsets' self._assert_exception('timeout', 504, self.client.get, url) def test_get_deleted_recordsets(self): zone = self.create_domain(fixture=1) self.create_recordset(zone) url = '/zones/%s/recordsets' % zone['id'] response = self.client.get(url) # Check the headers are what we expect self.assertEqual(200, response.status_int) # now delete the domain and get the recordsets self.client.delete('/zones/%s' % zone['id'], status=204) # Check that we get a domain_not_found error self._assert_exception('domain_not_found', 404, self.client.get, url) def test_get_recordset(self): # Create a recordset recordset = self.create_recordset(self.domain) url = '/zones/%s/recordsets/%s' % (self.domain['id'], recordset['id']) response = self.client.get(url) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) self.assertIn('links', response.json['recordset']) self.assertIn('self', response.json['recordset']['links']) # Check the values returned are what we expect self.assertIn('id', response.json['recordset']) self.assertIn('created_at', response.json['recordset']) self.assertIsNone(response.json['recordset']['updated_at']) self.assertEqual(recordset['name'], response.json['recordset']['name']) self.assertEqual(recordset['type'], response.json['recordset']['type']) def test_get_recordset_invalid_id(self): self._assert_invalid_uuid(self.client.get, '/zones/%s/recordsets/%s') @patch.object(central_service.Service, 'get_recordset', side_effect=messaging.MessagingTimeout()) def test_get_recordset_timeout(self, _): url = '/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % ( self.domain['id']) self._assert_exception('timeout', 504, self.client.get, url, headers={'Accept': 'application/json'}) @patch.object(central_service.Service, 'get_recordset', side_effect=exceptions.RecordSetNotFound()) def test_get_recordset_missing(self, _): url = '/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % ( self.domain['id']) self._assert_exception('recordset_not_found', 404, self.client.get, url, headers={'Accept': 'application/json'}) def test_update_recordset(self): # Create a recordset recordset = self.create_recordset(self.domain) # Prepare an update body body = {'recordset': {'description': 'Tester'}} url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) response = self.client.put_json(url, body, status=200) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) self.assertIn('links', response.json['recordset']) self.assertIn('self', response.json['recordset']['links']) # Check the values returned are what we expect self.assertIn('id', response.json['recordset']) self.assertIsNotNone(response.json['recordset']['updated_at']) self.assertEqual('Tester', response.json['recordset']['description']) def test_update_recordset_with_record_create(self): # Create a recordset recordset = self.create_recordset(self.domain, 'A') # Prepare an update body body = {'recordset': {'description': 'Tester', 'records': ['192.0.2.1', '192.0.2.2']}} url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) response = self.client.put_json(url, body, status=200) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) # Check the values returned are what we expect self.assertIn('records', response.json['recordset']) self.assertEqual(2, len(response.json['recordset']['records'])) self.assertEqual(set(['192.0.2.1', '192.0.2.2']), set(response.json['recordset']['records'])) def test_update_recordset_with_record_replace(self): # Create a recordset with one record recordset = self.create_recordset(self.domain, 'A') self.create_record(self.domain, recordset) # Prepare an update body body = {'recordset': {'description': 'Tester', 'records': ['192.0.2.201', '192.0.2.202']}} url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) response = self.client.put_json(url, body, status=200) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) # Check the values returned are what we expect self.assertIn('records', response.json['recordset']) self.assertEqual(2, len(response.json['recordset']['records'])) self.assertEqual(set(['192.0.2.201', '192.0.2.202']), set(response.json['recordset']['records'])) def test_update_recordset_with_record_clear(self): # Create a recordset with one record recordset = self.create_recordset(self.domain, 'A') self.create_record(self.domain, recordset) # Prepare an update body body = {'recordset': {'description': 'Tester', 'records': []}} url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) response = self.client.put_json(url, body, status=200) # Check the headers are what we expect self.assertEqual(200, response.status_int) self.assertEqual('application/json', response.content_type) # Check the body structure is what we expect self.assertIn('recordset', response.json) # Check the values returned are what we expect self.assertIn('records', response.json['recordset']) self.assertEqual(0, len(response.json['recordset']['records'])) def test_update_recordset_invalid_id(self): self._assert_invalid_uuid( self.client.put_json, '/zones/%s/recordsets/%s') def test_update_recordset_validation(self): # NOTE: The schemas should be tested separatly to the API. So we # don't need to test every variation via the API itself. # Create a zone recordset = self.create_recordset(self.domain) # Prepare an update body with junk in the wrapper body = {'recordset': {'description': 'Tester', 'records': ['192.3.3.17'], 'junk': 'Junk Field'}} # Ensure it fails with a 400 url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) self._assert_exception('invalid_object', 400, self.client.put_json, url, body) # Prepare an update body with junk in the body body = {'recordset': {'description': 'Tester', 'junk': 'Junk Field'}} # Ensure it fails with a 400 self._assert_exception('invalid_object', 400, self.client.put_json, url, body) @patch.object(central_service.Service, 'get_recordset', side_effect=exceptions.DuplicateRecordSet()) def test_update_recordset_duplicate(self, _): # Prepare an update body body = {'recordset': {'description': 'Tester'}} # Ensure it fails with a 409 url = ('/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % (self.domain['id'])) self._assert_exception('duplicate_recordset', 409, self.client.put_json, url, body) @patch.object(central_service.Service, 'get_recordset', side_effect=messaging.MessagingTimeout()) def test_update_recordset_timeout(self, _): # Prepare an update body body = {'recordset': {'description': 'Tester'}} # Ensure it fails with a 504 url = ('/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % (self.domain['id'])) self._assert_exception('timeout', 504, self.client.put_json, url, body) @patch.object(central_service.Service, 'get_recordset', side_effect=exceptions.RecordSetNotFound()) def test_update_recordset_missing(self, _): # Prepare an update body body = {'recordset': {'description': 'Tester'}} # Ensure it fails with a 404 url = ('/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % (self.domain['id'])) self._assert_exception('recordset_not_found', 404, self.client.put_json, url, body) def test_delete_recordset(self): recordset = self.create_recordset(self.domain) url = '/zones/%s/recordsets/%s' % (recordset['domain_id'], recordset['id']) self.client.delete(url, status=204) @patch.object(central_service.Service, 'delete_recordset', side_effect=exceptions.RecordSetNotFound()) def test_delete_recordset_missing(self, _): url = ('/zones/%s/recordsets/ba751950-6193-11e3-949a-0800200c9a66' % (self.domain['id'])) self._assert_exception('recordset_not_found', 404, self.client.delete, url) def test_delete_recordset_invalid_id(self): self._assert_invalid_uuid( self.client.delete, '/zones/%s/recordsets/%s')
40.454357
79
0.614852
2,250
19,499
5.191111
0.105778
0.041096
0.039726
0.034247
0.804709
0.775942
0.756764
0.721661
0.690068
0.6625
0
0.034555
0.262372
19,499
481
80
40.538462
0.777515
0.148623
0
0.597222
0
0
0.175221
0.047997
0
0
0
0
0.295139
1
0.104167
false
0
0.020833
0
0.128472
0
0
0
0
null
0
0
0
1
1
1
1
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
5
ee348ab7da4f6d36b1e969989cf385ae2d0bb277
110
py
Python
edgestats/__init__.py
devjack/edgestats
d668cfdc4a6962c0f02a76916fc58d43605d46b2
[ "MIT" ]
null
null
null
edgestats/__init__.py
devjack/edgestats
d668cfdc4a6962c0f02a76916fc58d43605d46b2
[ "MIT" ]
null
null
null
edgestats/__init__.py
devjack/edgestats
d668cfdc4a6962c0f02a76916fc58d43605d46b2
[ "MIT" ]
null
null
null
""" Edgestats provides analytics for AWS CloudFront Access logs. """ from .edgestats import EdgeStats, Metric
22
60
0.781818
13
110
6.615385
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.136364
110
4
61
27.5
0.905263
0.545455
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c9b100504924e6fc1cf392175020041a4319ae93
233
py
Python
tests/vendor/test_dogstatsd.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
308
2016-12-07T16:49:27.000Z
2022-03-15T10:06:45.000Z
tests/vendor/test_dogstatsd.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
1,928
2016-11-28T17:13:18.000Z
2022-03-31T21:43:19.000Z
tests/vendor/test_dogstatsd.py
zhammer/dd-trace-py
4c30f6e36bfa34a63cd9b6884677c977f76d2a01
[ "Apache-2.0", "BSD-3-Clause" ]
311
2016-11-27T03:01:49.000Z
2022-03-18T21:34:03.000Z
from ddtrace.internal.logger import DDLogger from ddtrace.vendor.dogstatsd.base import log def test_dogstatsd_logger(): """Ensure dogstatsd logger is initialized as a rate limited logger""" assert isinstance(log, DDLogger)
29.125
73
0.785408
31
233
5.83871
0.677419
0.121547
0
0
0
0
0
0
0
0
0
0
0.141631
233
7
74
33.285714
0.905
0.270386
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
5
c9c86639ad5846a0b33b898f31cabdb9a9aa2d82
207
py
Python
authentications/admin.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/admin.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
authentications/admin.py
chapimenge3/CSEC-Website
ec1bc6d40709ca5d49b509a0a02bcbe2ff10bb05
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import User,Role,SocialAccountsLinks admin.site.register(User) admin.site.register(Role) admin.site.register(SocialAccountsLinks)
23
49
0.826087
27
207
6.333333
0.481481
0.157895
0.298246
0
0
0
0
0
0
0
0
0
0.086957
207
9
50
23
0.904762
0.125604
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
1
0
1
0
0
0
0
5
4e62a9622cefc63ce08e448f083ea017b23727d2
178
py
Python
mymip/__init__.py
jpalma-espinosa/pyMath-spanish
713980d1e7e475e28d90ee6e0cc456b11a7c5aba
[ "CC-BY-3.0" ]
1
2019-02-10T23:26:22.000Z
2019-02-10T23:26:22.000Z
mymip/__init__.py
jpalma-espinosa/pyMath-spanish
713980d1e7e475e28d90ee6e0cc456b11a7c5aba
[ "CC-BY-3.0" ]
null
null
null
mymip/__init__.py
jpalma-espinosa/pyMath-spanish
713980d1e7e475e28d90ee6e0cc456b11a7c5aba
[ "CC-BY-3.0" ]
1
2021-03-04T15:40:34.000Z
2021-03-04T15:40:34.000Z
from .mycplex import CPLEXversion,cplex,ptr,Env,ZeroOne,Integer,Continuous,SemiCont,SemiInt,Constraint,pSUM,sum,Model,__doc__ from .cpxconst import * #__doc__ = .pycplex.__doc__
44.5
125
0.825843
23
178
5.869565
0.826087
0
0
0
0
0
0
0
0
0
0
0
0.061798
178
3
126
59.333333
0.808383
0.146067
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4e67dd2010cacc20c9abf3761a3c43e1aab94f55
4,602
py
Python
HoodApp/migrations/0001_initial.py
Moses-254-Mugo/The_Hood
f9075419f1d1e2f5027b26ba2644c74b6264715d
[ "MIT" ]
null
null
null
HoodApp/migrations/0001_initial.py
Moses-254-Mugo/The_Hood
f9075419f1d1e2f5027b26ba2644c74b6264715d
[ "MIT" ]
null
null
null
HoodApp/migrations/0001_initial.py
Moses-254-Mugo/The_Hood
f9075419f1d1e2f5027b26ba2644c74b6264715d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-30 08:17 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Neighbourhood', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ('location', models.CharField(max_length=100)), ('court', models.CharField(max_length=60)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('name', models.CharField(max_length=40)), ('description', tinymce.models.HTMLField()), ('email', models.EmailField(max_length=254)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.neighbourhood')), ('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('post_img', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('post', tinymce.models.HTMLField()), ('title', models.CharField(max_length=200)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.neighbourhood')), ('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Police', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('contact', models.IntegerField()), ('address', models.CharField(max_length=100)), ('email', models.EmailField(max_length=254)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.neighbourhood')), ], ), migrations.CreateModel( name='Health', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('address', models.CharField(max_length=100)), ('contact', models.IntegerField()), ('email', models.EmailField(max_length=254)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.neighbourhood')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=500)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.post')), ('username', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Business', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('email', models.EmailField(max_length=254)), ('description', tinymce.models.HTMLField()), ('bus_owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('neighbourhood', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='HoodApp.neighbourhood')), ], ), ]
48.957447
126
0.596914
450
4,602
5.964444
0.186667
0.057004
0.057377
0.090164
0.781669
0.750745
0.723174
0.723174
0.694486
0.650522
0
0.018546
0.261843
4,602
93
127
49.483871
0.771563
0.009778
0
0.639535
1
0
0.096597
0.023052
0
0
0
0
0
1
0
false
0
0.05814
0
0.104651
0
0
0
0
null
0
0
0
0
1
1
1
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
5
4e9ab328718bb11d2f340e0cc419c2dcf6d70733
32
py
Python
to_be_a_musician/djtinysong/__init__.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
1
2020-05-26T23:15:51.000Z
2020-05-26T23:15:51.000Z
to_be_a_musician/djtinysong/__init__.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
null
null
null
to_be_a_musician/djtinysong/__init__.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
null
null
null
from .utils import search_music
16
31
0.84375
5
32
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
4eda6c2194ca532ce500b5857605af9fbab70d2f
206
py
Python
app/router/__init__.py
emanuelaguna/rakm
2d24f32611c866ab00ca2f521b5a1cc0ec473492
[ "Ruby" ]
1
2020-10-31T16:10:34.000Z
2020-10-31T16:10:34.000Z
app/router/__init__.py
emanuelaguna/rakm
2d24f32611c866ab00ca2f521b5a1cc0ec473492
[ "Ruby" ]
null
null
null
app/router/__init__.py
emanuelaguna/rakm
2d24f32611c866ab00ca2f521b5a1cc0ec473492
[ "Ruby" ]
null
null
null
"""app.router""" from fastapi import APIRouter # pylint: disable=redefined-builtin from .v1 import all, confirmed, deaths, recovered # The routes. from .v2 import latest, sources, locations # isort:skip
22.888889
56
0.752427
27
206
5.740741
0.851852
0
0
0
0
0
0
0
0
0
0
0.011299
0.140777
206
8
57
25.75
0.864407
0.330097
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
092b8aee82252ce41e15d0507174e9306214b1d2
133
py
Python
math/6_prime_lt_100.py
zhuhuifeng/PyOJ
94f2bcd6f0efab099eca5ffa7e776d149b69d8d8
[ "Apache-2.0" ]
null
null
null
math/6_prime_lt_100.py
zhuhuifeng/PyOJ
94f2bcd6f0efab099eca5ffa7e776d149b69d8d8
[ "Apache-2.0" ]
null
null
null
math/6_prime_lt_100.py
zhuhuifeng/PyOJ
94f2bcd6f0efab099eca5ffa7e776d149b69d8d8
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 #输出100以内的所有素数,素数之间以一个空格区分 print ' '.join([str(x) for x in range(2, 100) if not [y for y in range(2, x) if not x%y]])
26.6
90
0.654135
28
133
3.107143
0.607143
0.16092
0.183908
0
0
0
0
0
0
0
0
0.081818
0.172932
133
4
91
33.25
0.709091
0.270677
0
0
0
0
0.010638
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
0
0
0
0
0
1
0
5
09348d427d83e25f47dedcc3f787fd58db41f760
8,432
py
Python
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
1
2022-03-12T17:34:05.000Z
2022-03-12T17:34:05.000Z
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
import json import os import sys os.chdir(r'/') def create_tree(): if not os.path.isfile("Global"): try: os.mkdir("Global") except: pass if not os.path.isfile("Global/rooms"): try: os.mkdir("Global/rooms") except: pass def create_room(name: str, user_id: str): create_tree() if not os.path.isfile("Global/rooms/{}.json".format(name)): data = {'num': name, 'owner': user_id, 'cid': [], 'mods': [], 'banned': [], 'blacklist': [], 'spam': 3, 'lang': 'Not set.', 'desc': 'Not set.', 'topic': "None", 'pictures': True, 'open': False, 'vip': [], 'partner': [] } with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return False def edit_special(name: str, id: int, action: str, pos: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) special = list(data[pos]) if action == "append": if id in special: return False else: data[pos].append(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "remove": if not id in special: return False else: data[pos].remove(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "clear": data[pos].clear() with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return None def edit_banned(name: str, id: int, action: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) banned = list(data['banned']) if action == "append": if id in banned: return False else: data['banned'].append(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "remove": if not id in banned: return False else: data['banned'].remove(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "clear": data['banned'].clear() with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return None def edit_mods(name: str, id: int, action: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) mods = data['mods'] if action == "append": if id in mods: return False else: data['mods'].append(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "remove": if not id in mods: return False else: data['mods'].remove(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "clear": data['mods'].clear() with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return None def edit_channel(name: str, id: int, action: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) cid = list(data['cid']) if action == "append": if id in cid: return False else: data['cid'].append(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "remove": if not id in cid: return False else: data['cid'].remove(id) with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True elif action == "clear": data['cid'].clear() with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return None def is_connected(id: int, stat: str): try: create_tree() liste = os.listdir(r'/home/niko/data/Nellie/Global/rooms') for name in liste: with open("Global/rooms/{}".format(name), encoding="utf-8") as fp: data = json.load(fp) if id in data[stat]: return name.replace(".json", "") else: return False except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] print(exc_type, fname, exc_tb.tb_lineno) def edit_room(name: str, stat: str, wert): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) data[stat] = wert with open("Global/rooms/{}.json".format(name), "w+") as fp: json.dump(data, fp, indent=4) return True else: return None def is_owner(id: str): create_tree() liste = os.listdir(r'/home/niko/data/Nellie/Global/rooms') for name in liste: with open("Global/rooms/{}".format(name), encoding="utf-8") as fp: data = json.load(fp) if str(id) == data['owner']: return name.replace(".json", "") else: return False def get_info(name: str, stat: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): with open("Global/rooms/{}.json".format(name), encoding="utf-8") as fp: data = json.load(fp) return data[stat] else: return None def get_more_info(stat: str): create_tree() a = r"/home/niko/data/Nellie/Global/rooms/" liste = os.listdir(a) all = [] for name in liste: with open("Global/rooms/{}".format(name), encoding="utf-8") as fp: data = json.load(fp) if data[stat]: all.append(name.replace(".json", "")) return all def name_check(name: str): create_tree() a = r"/home/niko/data/Nellie/Global/rooms/" liste = os.listdir(a) all = [] for i in liste: with open("Global/rooms/{}".format(i), encoding="utf-8") as fp: data = json.load(fp) if data['num'] == i.replace(".json", ""): all.append(i.replace(".json", "")) if name in all: return True else: return False def del_room(name: str): create_tree() if os.path.isfile("Global/rooms/{}.json".format(name)): os.remove("Global/rooms/{}.json".format(name)) return True else: return False
32.682171
80
0.480313
1,003
8,432
3.999003
0.104686
0.106956
0.108452
0.151832
0.812266
0.799801
0.769634
0.736724
0.655697
0.655697
0
0.004915
0.372628
8,432
257
81
32.809339
0.753308
0
0
0.66087
0
0
0.139327
0.01737
0
0
0
0
0
1
0.056522
false
0.008696
0.013043
0
0.23913
0.004348
0
0
0
null
0
0
0
1
1
1
1
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
5
09355cbbab0228993a41cdb58daf21bd439ff938
98
py
Python
fingerprinter/__init__.py
UWIT-IAM/fingerprinter
8902b104a2aa1c15cf1a3eb40b8468af6e2099c9
[ "MIT" ]
null
null
null
fingerprinter/__init__.py
UWIT-IAM/fingerprinter
8902b104a2aa1c15cf1a3eb40b8468af6e2099c9
[ "MIT" ]
null
null
null
fingerprinter/__init__.py
UWIT-IAM/fingerprinter
8902b104a2aa1c15cf1a3eb40b8468af6e2099c9
[ "MIT" ]
null
null
null
from .fingerprinter import Fingerprinter from .models import FingerprintConfig, FingerprintTarget
32.666667
56
0.877551
9
98
9.555556
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.091837
98
2
57
49
0.966292
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
09473d74c90c8949cd13ed3bb907900c9e0d7812
20
py
Python
web/deploy/wtdeploy/wtdeploy/__init__.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
web/deploy/wtdeploy/wtdeploy/__init__.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
web/deploy/wtdeploy/wtdeploy/__init__.py
frhumanes/consulting
400df4fc59240d2cd1c5807feaabacd056fdce03
[ "Apache-2.0" ]
null
null
null
from tasks import *
10
19
0.75
3
20
5
1
0
0
0
0
0
0
0
0
0
0
0
0.2
20
1
20
20
0.9375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
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
1
0
1
0
0
0
0
5
119941f3d58b8a997cf4ab2256542435ee4944b2
125
py
Python
src/banana/__init__.py
kristofmartens/rainbow_dqn_navigation
e0918d52e0cce4289e304e78f8b492b5d0b84683
[ "MIT" ]
null
null
null
src/banana/__init__.py
kristofmartens/rainbow_dqn_navigation
e0918d52e0cce4289e304e78f8b492b5d0b84683
[ "MIT" ]
null
null
null
src/banana/__init__.py
kristofmartens/rainbow_dqn_navigation
e0918d52e0cce4289e304e78f8b492b5d0b84683
[ "MIT" ]
null
null
null
from gym.envs.registration import register from .banana import Banana register(id='Banana-v1', entry_point='banana:Banana')
25
53
0.8
18
125
5.5
0.611111
0
0
0
0
0
0
0
0
0
0
0.008772
0.088
125
4
54
31.25
0.859649
0
0
0
0
0
0.176
0
0
0
0
0
0
1
0
true
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
1
0
1
0
1
0
0
5
119a21492bedfa756c6339fc4e16784ddae59bc1
234
py
Python
splitwise/currency.py
jelmer/splitwise
f06490147e109c6f489f176d6666b80244d8fb95
[ "MIT" ]
null
null
null
splitwise/currency.py
jelmer/splitwise
f06490147e109c6f489f176d6666b80244d8fb95
[ "MIT" ]
1
2017-06-23T11:16:03.000Z
2017-06-23T11:16:03.000Z
splitwise/currency.py
jelmer/splitwise
f06490147e109c6f489f176d6666b80244d8fb95
[ "MIT" ]
null
null
null
class Currency(object): def __init__(self,data=None): self.code = data["currency_code"] self.unit = data["unit"] def getCode(self): return self.code def getUnit(self): return self.unit
16.714286
41
0.594017
29
234
4.62069
0.448276
0.119403
0.208955
0
0
0
0
0
0
0
0
0
0.286325
234
13
42
18
0.802395
0
0
0
0
0
0.07265
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
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
1
0
0
0
1
1
0
0
5
11be21b4b8c73ac67bdc5288fcb295447c748d22
92
py
Python
src/utils/get_font.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/utils/get_font.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/utils/get_font.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
import pygame def get_font(size): return pygame.font.Font("assets/menu/font.ttf", size)
23
57
0.73913
15
92
4.466667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.119565
92
4
57
23
0.82716
0
0
0
0
0
0.215054
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
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
1
0
0
1
1
0
0
0
5
11eb8fa3d1adb307a6e3a97df5c6c13b15db9028
158
py
Python
bin/playlists-export-youtube.py
ssssam/dotfiles
cfb7e88ac11b1cca9839f93fd80a61d3f2f24768
[ "MIT" ]
null
null
null
bin/playlists-export-youtube.py
ssssam/dotfiles
cfb7e88ac11b1cca9839f93fd80a61d3f2f24768
[ "MIT" ]
null
null
null
bin/playlists-export-youtube.py
ssssam/dotfiles
cfb7e88ac11b1cca9839f93fd80a61d3f2f24768
[ "MIT" ]
null
null
null
#!/bin/bash set -e -o pipefail mkdir -p $HOME/Dropbox/Playlists/Youtube cpe youtube export ssssam54623 | cpe export-split - $HOME/Dropbox/Playlists/Youtube
22.571429
83
0.765823
23
158
5.26087
0.695652
0.181818
0.330579
0.446281
0
0
0
0
0
0
0
0.035971
0.120253
158
6
84
26.333333
0.834532
0.063291
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
ee9243a6944024ab98abfa82883c3998f8ab1c76
116
py
Python
lambdata_HadenMoore/df_utils.py
HadenMoore/lambdata
8837d6f1997c365830afa996e9e8d3313802a8d9
[ "MIT" ]
null
null
null
lambdata_HadenMoore/df_utils.py
HadenMoore/lambdata
8837d6f1997c365830afa996e9e8d3313802a8d9
[ "MIT" ]
4
2020-03-24T17:59:28.000Z
2021-06-02T00:43:21.000Z
lambdata_HadenMoore/df_utils.py
HadenMoore/lambdata
8837d6f1997c365830afa996e9e8d3313802a8d9
[ "MIT" ]
null
null
null
""" Utility Functions for working with DataFrames. """ import pandas as pd import numpy as np import matplotlib
12.888889
46
0.75
16
116
5.4375
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.189655
116
8
47
14.5
0.925532
0.396552
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ee990ab9ef2c014418d9563f8e4be46989c3158c
54
py
Python
evaluation/evaluators/__init__.py
Bhaskers-Blu-Org2/Distilled-Sentence-Embedding
092b70830564c65a2efe8cadecd5da2d5dfdfba9
[ "MIT" ]
23
2019-12-11T14:52:54.000Z
2021-09-23T16:03:14.000Z
evaluation/evaluators/__init__.py
Bhaskers-Blu-Org2/Distilled-Sentence-Embedding
092b70830564c65a2efe8cadecd5da2d5dfdfba9
[ "MIT" ]
7
2020-07-17T11:18:48.000Z
2022-03-12T00:05:57.000Z
evaluation/evaluators/__init__.py
microsoft/Distilled-Sentence-Embedding
7e3e87bf6d854c45fb9e5fde6695aa9524325ae7
[ "MIT" ]
9
2020-01-03T13:26:39.000Z
2021-09-13T12:31:35.000Z
from .evaluator import * from .dse_evaluator import *
18
28
0.777778
7
54
5.857143
0.571429
0.731707
0
0
0
0
0
0
0
0
0
0
0.148148
54
2
29
27
0.891304
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
eeab170f8dd249934642a2553fe91d1bc8593c54
233
py
Python
nyctlc_ingest/__init__.py
rtspeaks360/crosslend-de
48110afd9c1433714ba897da05ad433df4281ad9
[ "MIT" ]
null
null
null
nyctlc_ingest/__init__.py
rtspeaks360/crosslend-de
48110afd9c1433714ba897da05ad433df4281ad9
[ "MIT" ]
null
null
null
nyctlc_ingest/__init__.py
rtspeaks360/crosslend-de
48110afd9c1433714ba897da05ad433df4281ad9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: rish # @Date: 2020-07-29 15:26:28 # @Last Modified by: rish # @Last Modified time: 2020-07-29 15:54:41 def info(): print('nyctlc module to ingest the monthly datasets and produce rankings.')
23.3
76
0.660944
38
233
4.052632
0.815789
0.077922
0.103896
0.12987
0
0
0
0
0
0
0
0.151832
0.180258
233
9
77
25.888889
0.65445
0.562232
0
0
0
0
0.6875
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
eecabfb980b193e8006d0f6de20888cb2911ac5f
846
py
Python
sdk/test/test_region.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
1
2022-02-06T23:05:37.000Z
2022-02-06T23:05:37.000Z
sdk/test/test_region.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
3
2022-02-07T06:13:31.000Z
2022-03-11T12:43:39.000Z
sdk/test/test_region.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
null
null
null
""" Aqualink API documentation The Aqualink public API documentation # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import aqualink_sdk from aqualink_sdk.model.region import Region from aqualink_sdk.model.region_polygon import RegionPolygon globals()['Region'] = Region globals()['RegionPolygon'] = RegionPolygon from aqualink_sdk.model.region import Region class TestRegion(unittest.TestCase): """Region unit test stubs""" def setUp(self): pass def tearDown(self): pass def testRegion(self): """Test Region""" # FIXME: construct object with mandatory attributes with example values # model = Region() # noqa: E501 pass if __name__ == '__main__': unittest.main()
21.15
79
0.690307
100
846
5.71
0.5
0.077058
0.078809
0.105079
0.178634
0.1331
0.1331
0
0
0
0
0.013595
0.217494
846
39
80
21.692308
0.848943
0.359338
0
0.294118
1
0
0.05336
0
0
0
0
0.025641
0
1
0.176471
false
0.176471
0.352941
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
1
1
0
1
0
0
5
eee90f4c2fadefad6a587eaffc1068b43ffb5bef
55
py
Python
calico_cni/__init__.py
santosh653/calico-cni
6fece938fcfd7e8c0e47bc2c2092ae5b0691e529
[ "Apache-2.0" ]
null
null
null
calico_cni/__init__.py
santosh653/calico-cni
6fece938fcfd7e8c0e47bc2c2092ae5b0691e529
[ "Apache-2.0" ]
2
2016-08-09T20:39:19.000Z
2017-02-28T21:36:49.000Z
calico_cni/__init__.py
santosh653/calico-cni
6fece938fcfd7e8c0e47bc2c2092ae5b0691e529
[ "Apache-2.0" ]
2
2021-01-18T15:34:23.000Z
2021-04-05T09:59:23.000Z
from version import __version__, __commit__, __branch__
55
55
0.872727
6
55
6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.090909
55
1
55
55
0.72
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
012ee756b1f7a4dbbbc813359661122fa37608e0
244
py
Python
Lib/site-packages/qtpyeditor/codeeditor/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/qtpyeditor/codeeditor/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/qtpyeditor/codeeditor/__init__.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding:utf-8 -*- # @Time: 2021/1/30 18:11 # @Author: Zhanyi Hou # @Email: 1295752786@qq.com # @File: __init__.py.py from qtpyeditor.codeeditor.baseeditor import PMGBaseEditor from qtpyeditor.codeeditor.pythoneditor import PMGPythonEditor
30.5
62
0.762295
32
244
5.6875
0.84375
0.153846
0.263736
0
0
0
0
0
0
0
0
0.100917
0.106557
244
8
62
30.5
0.733945
0.454918
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0169ae43333816a81cd6fefed1f856d85c61a8ee
143
py
Python
plan_course/views.py
trungdiep/plan_course
05e0363282ff3af934baf72ab36e3102ef81bc97
[ "MIT" ]
null
null
null
plan_course/views.py
trungdiep/plan_course
05e0363282ff3af934baf72ab36e3102ef81bc97
[ "MIT" ]
null
null
null
plan_course/views.py
trungdiep/plan_course
05e0363282ff3af934baf72ab36e3102ef81bc97
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponse # Create your views here. def plan_course(request): return HttpResponse("PLAN COURSE")
20.428571
49
0.776224
18
143
6.111111
0.833333
0.181818
0
0
0
0
0
0
0
0
0
0
0.146853
143
7
50
20.428571
0.901639
0.160839
0
0
0
0
0.092437
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
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
1
0
0
1
1
0
0
0
5
018db7f2495ccdd20caed93586fbaa56afee8521
205
py
Python
rsserpent/utils/__init__.py
rcy1314/RSSerpent
d3da88399a44096b83e2b70297983d20553e3d61
[ "MIT" ]
202
2021-06-24T01:12:15.000Z
2022-03-26T14:18:33.000Z
rsserpent/utils/__init__.py
rcy1314/RSSerpent
d3da88399a44096b83e2b70297983d20553e3d61
[ "MIT" ]
54
2021-06-24T02:13:54.000Z
2022-03-09T03:11:28.000Z
rsserpent/utils/__init__.py
onlyrico/RSSerpent
a9ed8b968467509ce4d387e3e51328bd1e7dd524
[ "MIT" ]
21
2021-06-21T16:25:43.000Z
2022-03-19T05:27:24.000Z
from .cache import cached from .http import Browser, HTTPClient from .provider import fetch_data from .ratelimit import ratelimit __all__ = ("Browser", "HTTPClient", "cached", "fetch_data", "ratelimit")
25.625
72
0.765854
25
205
6.04
0.48
0.225166
0
0
0
0
0
0
0
0
0
0
0.126829
205
7
73
29.285714
0.843575
0
0
0
0
0
0.204878
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
6d9a92748f0e46ac52f7e05a37a47246ef4b1ea9
55
py
Python
auth_app/tests/utils/__init__.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
auth_app/tests/utils/__init__.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
auth_app/tests/utils/__init__.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from .creators import create_verifycode, create_access
27.5
54
0.872727
7
55
6.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.090909
55
1
55
55
0.92
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6dd0150962f69c255fabe938906093280bc46352
103
py
Python
sitetool/webserver/apache.py
jjmontesl/awesit
0fa832ce4219743028b55641bab67fd388f1feca
[ "MIT" ]
3
2019-05-29T23:06:19.000Z
2019-06-08T16:59:58.000Z
sitetool/webserver/apache.py
jjmontesl/awesit
0fa832ce4219743028b55641bab67fd388f1feca
[ "MIT" ]
null
null
null
sitetool/webserver/apache.py
jjmontesl/awesit
0fa832ce4219743028b55641bab67fd388f1feca
[ "MIT" ]
null
null
null
import yaml import requests import webbrowser class LocalApacheWebserver(): ''' ''' pass
10.3
29
0.669903
9
103
7.666667
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.242718
103
9
30
11.444444
0.884615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.6
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
6def29accbe026e73e8e2db13cb5799e83f7e4b5
113
py
Python
operational_analysis/methods/__init__.py
ejsimley/OpenOA
9cfbe0c6d0f0e9d6f13445fcf70fd811a2fd13bd
[ "BSD-3-Clause" ]
123
2018-09-10T16:37:58.000Z
2022-03-24T08:31:54.000Z
operational_analysis/methods/__init__.py
charlie9578/OpenOA
50d04f5abb0905676138004b7ae31528f493f39c
[ "BSD-3-Clause" ]
149
2018-11-14T23:18:33.000Z
2022-03-29T04:40:45.000Z
operational_analysis/methods/__init__.py
charlie9578/OpenOA
50d04f5abb0905676138004b7ae31528f493f39c
[ "BSD-3-Clause" ]
45
2018-10-22T16:05:54.000Z
2022-02-25T02:10:18.000Z
from .plant_analysis import MonteCarloAEP from .turbine_long_term_gross_energy import TurbineLongTermGrossEnergy
37.666667
70
0.911504
13
113
7.538462
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.070796
113
2
71
56.5
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6df49676dfa5fbb6926e54e248fc46af0e957919
43
py
Python
fips-files/generators/util/__init__.py
infancy/oryol
06b580116cc2e929b9e1a85920a74fb32d76493c
[ "MIT" ]
1,707
2015-01-01T14:56:08.000Z
2022-03-28T06:44:09.000Z
fips-files/generators/util/__init__.py
infancy/oryol
06b580116cc2e929b9e1a85920a74fb32d76493c
[ "MIT" ]
256
2015-01-03T14:55:53.000Z
2020-09-09T10:43:46.000Z
fips-files/generators/util/__init__.py
infancy/oryol
06b580116cc2e929b9e1a85920a74fb32d76493c
[ "MIT" ]
222
2015-01-05T00:20:54.000Z
2022-02-06T01:41:37.000Z
# helper modules for Oryol code generators
21.5
42
0.813953
6
43
5.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.162791
43
1
43
43
0.972222
0.930233
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
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
5