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
c6a69086148e6c4e35166fc4f6822348efd80eb6
991
py
Python
service/plugins/BasePluginMetadata.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
1
2020-04-23T08:11:40.000Z
2020-04-23T08:11:40.000Z
service/plugins/BasePluginMetadata.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
service/plugins/BasePluginMetadata.py
liorperry/fuzz
2d49b2ea62b59f2790797a93be6a68aae8a150f7
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from model.ProgUnderTestStatus import ProgUnderTestStatus class BasePluginMetadata(metaclass=ABCMeta): def __init__(self, managerStatus, logService) -> None: self._init(managerStatus, logService) # add progUnderTest status indication self._managerStatus.add(ProgUnderTestStatus(self.name(), self.args())) @abstractmethod def args(self): pass @abstractmethod def name(self): pass @abstractmethod def generator(self): pass @abstractmethod def logAnalyzer(self): pass @abstractmethod def statsAnalyzer(self): pass @abstractmethod def crashAnalyzer(self): pass @abstractmethod def additionalInfo(self): pass @abstractmethod def driver(self): pass @abstractmethod def swagger(self): pass @abstractmethod def _init(self, managerStatus, logService): pass
18.698113
78
0.652876
88
991
7.272727
0.340909
0.265625
0.309375
0.351563
0.10625
0
0
0
0
0
0
0
0.273461
991
52
79
19.057692
0.888889
0.035318
0
0.555556
0
0
0
0
0
0
0
0
0
1
0.305556
false
0.277778
0.055556
0
0.388889
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
1
0
1
0
0
0
0
0
5
c6b7902aba68e993904536c70bae22d64c48e2c3
56
py
Python
fatalwhite/hello.py
FatalWhite/Python3Lab
2d914e41f7c0b2f52c06f27804e28e8648a9e048
[ "Apache-2.0" ]
null
null
null
fatalwhite/hello.py
FatalWhite/Python3Lab
2d914e41f7c0b2f52c06f27804e28e8648a9e048
[ "Apache-2.0" ]
null
null
null
fatalwhite/hello.py
FatalWhite/Python3Lab
2d914e41f7c0b2f52c06f27804e28e8648a9e048
[ "Apache-2.0" ]
null
null
null
# 간단한 인사말 def sayHello(): print( 'Hello, World!!' )
14
29
0.571429
7
56
4.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.232143
56
4
29
14
0.744186
0.125
0
0
0
0
0.297872
0
0
0
0
0
0
1
0.5
true
0
0
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
1
1
0
0
0
0
1
0
5
05a50b1887ff181f8a28e683dfcad288331b60f7
102
py
Python
Common/Test/unittest_base.py
tbarlow12/azure-resource-scanner
3e5f592e016a3f8a633634df3ba502c4901805ef
[ "MIT" ]
null
null
null
Common/Test/unittest_base.py
tbarlow12/azure-resource-scanner
3e5f592e016a3f8a633634df3ba502c4901805ef
[ "MIT" ]
null
null
null
Common/Test/unittest_base.py
tbarlow12/azure-resource-scanner
3e5f592e016a3f8a633634df3ba502c4901805ef
[ "MIT" ]
null
null
null
import unittest class TestCase(unittest.TestCase): def _use_adapters(self): return False
17
34
0.72549
12
102
6
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.205882
102
6
35
17
0.888889
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
af2e15d61bdb41fe254cc69ca564ad263921c106
198
py
Python
wagtail_honeypot/test/apps.py
tomdyson/wagtail-honeypot
99cc00f5eac3153fedebaf97cb0eb060847c948c
[ "MIT" ]
2
2022-02-25T10:23:59.000Z
2022-02-26T21:18:11.000Z
wagtail_honeypot/test/apps.py
tomdyson/wagtail-honeypot
99cc00f5eac3153fedebaf97cb0eb060847c948c
[ "MIT" ]
2
2022-03-03T21:44:42.000Z
2022-03-04T12:28:27.000Z
wagtail_honeypot/test/apps.py
tomdyson/wagtail-honeypot
99cc00f5eac3153fedebaf97cb0eb060847c948c
[ "MIT" ]
1
2022-03-04T10:28:04.000Z
2022-03-04T10:28:04.000Z
from django.apps import AppConfig class WagtailHoneypotTestAppConfig(AppConfig): label = "wagtail_honeypot_test" name = "wagtail_honeypot.test" verbose_name = "Wagtail Honeypot tests"
24.75
46
0.772727
21
198
7.095238
0.666667
0.302013
0.255034
0
0
0
0
0
0
0
0
0
0.156566
198
7
47
28.285714
0.892216
0
0
0
0
0
0.323232
0.212121
0
0
0
0
0
1
0
false
0
0.2
0
1
0
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
1
0
0
5
af4f38816e6b5e03fcbc47599d8d23d6cf838eb4
22
py
Python
package/tests/__init__.py
s-limo/bleparser
a1f5b55ab1c1185877ac50c45dd3685e11994cb2
[ "MIT" ]
10
2021-08-02T10:17:01.000Z
2022-03-19T07:47:02.000Z
package/tests/__init__.py
s-limo/bleparser
a1f5b55ab1c1185877ac50c45dd3685e11994cb2
[ "MIT" ]
11
2021-08-03T07:33:21.000Z
2022-02-17T18:55:22.000Z
package/tests/__init__.py
s-limo/bleparser
a1f5b55ab1c1185877ac50c45dd3685e11994cb2
[ "MIT" ]
6
2021-08-08T04:13:53.000Z
2022-01-12T09:50:40.000Z
# Tests for bleparser
11
21
0.772727
3
22
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
1
22
22
0.944444
0.863636
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
af575d52aa3d7f851bf1b4fd86279228ff8a51a7
128
py
Python
layers/functions/__init__.py
ouyanghuiyu/RefinedetLite.pytorch
a8d4aff57dccfafa9fc3484b2ac47e742acb88e6
[ "MIT" ]
28
2019-12-26T01:47:45.000Z
2020-12-25T10:28:55.000Z
layers/functions/__init__.py
DayBreak-u/RefinedetLite.pytorch
a8d4aff57dccfafa9fc3484b2ac47e742acb88e6
[ "MIT" ]
4
2020-01-15T11:37:18.000Z
2020-03-31T09:08:13.000Z
layers/functions/__init__.py
ouyanghuiyu/RefinedetLite.pytorch
a8d4aff57dccfafa9fc3484b2ac47e742acb88e6
[ "MIT" ]
8
2020-01-03T07:18:34.000Z
2020-09-24T08:05:39.000Z
from .prior_box import PriorBox from .detection_refinedet import Detect_RefineDet __all__ = [ 'PriorBox', 'Detect_RefineDet']
21.333333
49
0.804688
15
128
6.333333
0.6
0.315789
0
0
0
0
0
0
0
0
0
0
0.117188
128
5
50
25.6
0.840708
0
0
0
0
0
0.1875
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
5
af63592d830379a97c615b731bc751fac452b0e7
33
py
Python
src/kernel-graphql/__init__.py
pseudonym117/kernel-graphql
0c0fc05ca84c525f1515953d77d853455db14fb1
[ "MIT" ]
1
2021-03-17T16:35:09.000Z
2021-03-17T16:35:09.000Z
src/kernel-graphql/__init__.py
pseudonym117/kernel-graphql
0c0fc05ca84c525f1515953d77d853455db14fb1
[ "MIT" ]
1
2021-06-02T00:14:18.000Z
2021-06-02T00:14:18.000Z
src/kernel-graphql/__init__.py
pseudonym117/kernel-graphql
0c0fc05ca84c525f1515953d77d853455db14fb1
[ "MIT" ]
null
null
null
from .startup import create_app
11
31
0.818182
5
33
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.151515
33
2
32
16.5
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
af87384e2f830f8efe99357135c318927ab06d67
86
py
Python
9-days-of-code/day-8/01 Function 1.py
jaredliw/mcc-python-solutions
f54b1d2a044788b2adc1eb19a490422eb92ffe77
[ "MIT" ]
2
2021-04-09T04:03:39.000Z
2021-04-09T04:18:28.000Z
9-days-of-code/day-8/01 Function 1.py
jaredliw/mcc-python-solutions
f54b1d2a044788b2adc1eb19a490422eb92ffe77
[ "MIT" ]
null
null
null
9-days-of-code/day-8/01 Function 1.py
jaredliw/mcc-python-solutions
f54b1d2a044788b2adc1eb19a490422eb92ffe77
[ "MIT" ]
null
null
null
def pow(a, b): return a ** b a, b = int(input()), int(input()) print(pow(a, b))
12.285714
33
0.511628
17
86
2.588235
0.470588
0.181818
0.227273
0
0
0
0
0
0
0
0
0
0.232558
86
6
34
14.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.25
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
1
0
0
0
1
0
0
0
5
af8ce54eb47350dfb4e1724b951386fe58132e56
36
py
Python
apprentice/explain/__init__.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
10
2019-11-01T01:09:57.000Z
2022-02-17T09:15:12.000Z
apprentice/explain/__init__.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
40
2019-08-06T18:01:31.000Z
2021-07-15T12:38:56.000Z
apprentice/explain/__init__.py
pearlfranz20/AL_Core
6592079330c7ec3ca264b86f8414970ddab06c0e
[ "MIT" ]
6
2019-08-15T01:45:19.000Z
2021-06-01T19:54:29.000Z
from .explanation import Explanation
36
36
0.888889
4
36
8
0.75
0
0
0
0
0
0
0
0
0
0
0
0.083333
36
1
36
36
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
afa324376b519427f81a57d2855dc43e2b63ff2a
132
py
Python
what_apps/main/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/main/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/main/admin.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
from django.contrib import admin from models import Bubble, BubbleMenu admin.site.register(Bubble) admin.site.register(BubbleMenu)
22
37
0.833333
18
132
6.111111
0.555556
0.163636
0.309091
0
0
0
0
0
0
0
0
0
0.090909
132
6
38
22
0.916667
0
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
afc57e0a884bd6732971e5901544125cc8d756a1
119
py
Python
language/syntax/grammar/syntax/grammar/spect/bind/binding.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/syntax/grammar/syntax/grammar/spect/bind/binding.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
language/syntax/grammar/syntax/grammar/spect/bind/binding.py
jedhsu/language
3772a4a0ff287e1fc5ebefc716b8d91928d04c72
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .scope import Scope @dataclass class Binding: name: str scope: Scope
11.9
33
0.739496
15
119
5.866667
0.6
0
0
0
0
0
0
0
0
0
0
0
0.218487
119
9
34
13.222222
0.946237
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.833333
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
afd13f7e900a5ed8b84f60732b2076b964799792
28
py
Python
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
6_text/text.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Text Keine Lösung """
4
12
0.535714
3
28
5
1
0
0
0
0
0
0
0
0
0
0
0
0.25
28
6
13
4.666667
0.714286
0.642857
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
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
bb8d30a7550d65c9f8d430fef473b44ad0b48aae
1,097
py
Python
tests/test_import.py
a1eko/treem
41039b0734bfe84fe637783842849038630ecb7f
[ "MIT" ]
1
2020-10-06T13:09:02.000Z
2020-10-06T13:09:02.000Z
tests/test_import.py
a1eko/treem
41039b0734bfe84fe637783842849038630ecb7f
[ "MIT" ]
null
null
null
tests/test_import.py
a1eko/treem
41039b0734bfe84fe637783842849038630ecb7f
[ "MIT" ]
1
2021-09-22T14:17:22.000Z
2021-09-22T14:17:22.000Z
"""Import tests of the main module treem and it's submodules.""" # pylint: disable=unused-import # pylint: disable=import-outside-toplevel def test_import_treem(): """Tests importing treem.""" import treem def test_import_node(): """Tests importing Node from treem.""" from treem import Node def test_import_morph(): """Tests importing Morph from treem.""" from treem import Morph def test_import_swc(): """Tests importing SWC from treem.""" from treem import SWC def test_import_geom(): """Tests importing geom utils from treem.""" from treem.utils.geom import rotation_matrix from treem.utils.geom import norm from treem.utils.geom import angle_between from treem.utils.geom import rotation from treem.utils.geom import repair_branch from treem.utils.geom import sample def test_import_plot(): """Tests importing plot utils from treem.""" from treem.utils.plot import plot_tree from treem.utils.plot import plot_section from treem.utils.plot import plot_neuron from treem.utils.plot import plot_points
25.511628
64
0.724704
155
1,097
5.006452
0.245161
0.208763
0.180412
0.139175
0.479381
0.262887
0
0
0
0
0
0
0.186873
1,097
42
65
26.119048
0.869955
0.299909
0
0
0
0
0
0
0
0
0
0
0
1
0.3
true
0
1
0
1.3
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
1
0
1
0
0
0
0
5
a52f8229d326c30b5c306233108edf5d4bef5f98
92
py
Python
src/__init__.py
delete/cool-compiler
3184c71149aa3cd651bd46950379cd18f9b45e49
[ "MIT" ]
null
null
null
src/__init__.py
delete/cool-compiler
3184c71149aa3cd651bd46950379cd18f9b45e49
[ "MIT" ]
9
2015-12-17T20:42:43.000Z
2016-05-04T00:08:13.000Z
src/__init__.py
delete/cool-compiler
3184c71149aa3cd651bd46950379cd18f9b45e49
[ "MIT" ]
1
2016-03-07T12:18:53.000Z
2016-03-07T12:18:53.000Z
from syntactic import syntactic from semantic import Semant from lexical import MyLex as lex
30.666667
32
0.858696
14
92
5.642857
0.642857
0
0
0
0
0
0
0
0
0
0
0
0.141304
92
3
32
30.666667
1
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
a55d795c9cebe294d5b4943626145a7644edd6d6
70
py
Python
enthought/pyface/ui/null/action/status_bar_manager.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/null/action/status_bar_manager.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/null/action/status_bar_manager.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.ui.null.action.status_bar_manager import *
23.333333
54
0.814286
11
70
5
1
0
0
0
0
0
0
0
0
0
0
0
0.1
70
2
55
35
0.873016
0.171429
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
a587456d5b39e59a5941d5e1e2b0585718ac3592
113
py
Python
enthought/numerical_modeling/ui/interactor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/numerical_modeling/ui/interactor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/numerical_modeling/ui/interactor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from blockcanvas.numerical_modeling.ui.interactor import *
28.25
58
0.858407
14
113
6.5
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.097345
113
3
59
37.666667
0.892157
0.106195
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
a594854415c6e2f8e9f0572b5cbd151a89941c61
219
py
Python
src/pysomneoctrl/__init__.py
pijiulaoshi/pysomneoctrl
4a45bac5ce6a1f83025bbf6bb5786c32c95b09d4
[ "MIT" ]
null
null
null
src/pysomneoctrl/__init__.py
pijiulaoshi/pysomneoctrl
4a45bac5ce6a1f83025bbf6bb5786c32c95b09d4
[ "MIT" ]
null
null
null
src/pysomneoctrl/__init__.py
pijiulaoshi/pysomneoctrl
4a45bac5ce6a1f83025bbf6bb5786c32c95b09d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: @pijiulaoshi """ if __name__ != "__main__": from .SomneoDevice import SomneoDevice else: from SomneoDevice import SomneoDevice s = SomneoDevice()
18.25
42
0.666667
23
219
6
0.73913
0.231884
0.318841
0.492754
0
0
0
0
0
0
0
0.011173
0.182648
219
11
43
19.909091
0.759777
0.296804
0
0
0
0
0.055172
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
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
0
0
0
5
a59b6d961c25d4fc1fae6eaaa8ee1dc351ea77cc
68
py
Python
Hello World Programs/Python/Hello World.py
nikhilraj44/HacktoberFest2020-Contributions
5828e336beaca3dcf6a1568b22f482392591f030
[ "MIT" ]
null
null
null
Hello World Programs/Python/Hello World.py
nikhilraj44/HacktoberFest2020-Contributions
5828e336beaca3dcf6a1568b22f482392591f030
[ "MIT" ]
null
null
null
Hello World Programs/Python/Hello World.py
nikhilraj44/HacktoberFest2020-Contributions
5828e336beaca3dcf6a1568b22f482392591f030
[ "MIT" ]
null
null
null
#This code will print "Hello world" in python3 Print("Hello World")
22.666667
46
0.75
11
68
4.636364
0.727273
0.392157
0.588235
0
0
0
0
0
0
0
0
0.017241
0.147059
68
2
47
34
0.862069
0.661765
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
0
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
1
0
0
0
0
0
0
5
3c0ea570227799061d37c71e912883f4aa778b25
624
py
Python
melody/wknp.py
krzys-h/soviet-error
31c7bbc275754575a8356196637a8d17fb467fb6
[ "WTFPL" ]
2
2017-08-22T22:53:11.000Z
2017-08-26T09:56:26.000Z
melody/wknp.py
krzys-h/soviet-error
31c7bbc275754575a8356196637a8d17fb467fb6
[ "WTFPL" ]
null
null
null
melody/wknp.py
krzys-h/soviet-error
31c7bbc275754575a8356196637a8d17fb467fb6
[ "WTFPL" ]
null
null
null
from base import Melody class WKNPMelody(Melody): @staticmethod def get_bpm(): return 30 @staticmethod def get_notes(): return [ ('D4', 0.3), ('B3', 0.3), ('B3', 0.3), ('C4', 0.3), ('A3', 0.3), ('A3', 0.3), ('G3', 0.3), ('B3', 0.3), ('D4', 0.3), ('D4', 0.3), ('B3', 0.3), ('B3', 0.3), ('C4', 0.3), ('A3', 0.3), ('A3', 0.3), ('G3', 0.3), ('B3', 0.3), ('G3', 0.3), ]
20.129032
25
0.277244
72
624
2.375
0.277778
0.210526
0.140351
0.175439
0.421053
0.374269
0.374269
0.374269
0.374269
0.374269
0
0.179487
0.5
624
30
26
20.8
0.36859
0
0
0.740741
0
0
0.057692
0
0
0
0
0
0
1
0.074074
true
0
0.037037
0.074074
0.222222
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
3c192b360653cdb52c3c1b43602bfccb6e2ff2bd
38
py
Python
tests/py/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
11
2019-06-26T05:56:41.000Z
2021-03-28T16:44:16.000Z
tests/py/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
4
2019-10-18T14:43:59.000Z
2020-04-02T19:12:07.000Z
tests/py/__init__.py
Parquery/mapry
93515307f9eba8447fe64b0ac7cc68b2d07205a7
[ "MIT" ]
3
2019-06-17T07:39:03.000Z
2020-04-01T14:01:23.000Z
"""Test generation of Python code."""
19
37
0.684211
5
38
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
1
38
38
0.787879
0.815789
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
3c3de1929222e9570f3ce7cc875a83fba71bd84b
14
py
Python
src4/lengu3.py
FJLEspinha/JavaPracticeHacktoberfest
737ca4e8e74abd575f233ed0c8462c4805e7f9da
[ "Apache-2.0" ]
11
2016-10-27T22:01:11.000Z
2021-10-05T12:12:45.000Z
src4/lengu3.py
FJLEspinha/JavaPracticeHacktoberfest
737ca4e8e74abd575f233ed0c8462c4805e7f9da
[ "Apache-2.0" ]
20
2016-10-25T07:48:36.000Z
2021-10-10T03:43:57.000Z
src4/lengu3.py
FJLEspinha/JavaPracticeHacktoberfest
737ca4e8e74abd575f233ed0c8462c4805e7f9da
[ "Apache-2.0" ]
208
2016-10-25T08:41:36.000Z
2021-11-01T05:06:49.000Z
print("unico")
14
14
0.714286
2
14
5
1
0
0
0
0
0
0
0
0
0
0
0
0
14
1
14
14
0.714286
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
3c74a30e3cbfb531d94229a9eec96bea2ac563be
111
py
Python
app/api/__init__.py
michaelsatish/elphy
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
[ "MIT" ]
null
null
null
app/api/__init__.py
michaelsatish/elphy
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
[ "MIT" ]
null
null
null
app/api/__init__.py
michaelsatish/elphy
ac6c66c4b56b304dfd81c62ed5f50951ffc76779
[ "MIT" ]
null
null
null
from flask import Blueprint api = Blueprint('api', __name__) from . import token, project, test # noqa
18.5
43
0.693694
14
111
5.214286
0.714286
0.328767
0
0
0
0
0
0
0
0
0
0
0.216216
111
5
44
22.2
0.83908
0.036036
0
0
0
0
0.03
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
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
0
1
0
5
3c93439556696da2eab3169a8d6e68e751235614
45
py
Python
lib/node_types/esp8266/compile/uiot/out.py
ulno/iot-devkit
6e90c1c207f23c4b5bf374f58d3701550e6c70ca
[ "MIT" ]
null
null
null
lib/node_types/esp8266/compile/uiot/out.py
ulno/iot-devkit
6e90c1c207f23c4b5bf374f58d3701550e6c70ca
[ "MIT" ]
null
null
null
lib/node_types/esp8266/compile/uiot/out.py
ulno/iot-devkit
6e90c1c207f23c4b5bf374f58d3701550e6c70ca
[ "MIT" ]
1
2020-07-23T03:03:38.000Z
2020-07-23T03:03:38.000Z
import uiot.output Out = uiot.output.Output
11.25
24
0.777778
7
45
5
0.571429
0.571429
0
0
0
0
0
0
0
0
0
0
0.133333
45
3
25
15
0.897436
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
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
0
0
0
5
3c9df2420c149a849dab4dbd41ac6308a3950c08
1,539
py
Python
t-hash.py
tri-llionaire/tri-llionaire.github.io
5134d3ec0ff1e3b7eab469ea05300b505895212f
[ "MIT" ]
1
2018-04-24T14:53:23.000Z
2018-04-24T14:53:23.000Z
t-hash.py
tri-llionaire/tri-llionaire.github.io
5134d3ec0ff1e3b7eab469ea05300b505895212f
[ "MIT" ]
null
null
null
t-hash.py
tri-llionaire/tri-llionaire.github.io
5134d3ec0ff1e3b7eab469ea05300b505895212f
[ "MIT" ]
1
2018-08-25T21:15:07.000Z
2018-08-25T21:15:07.000Z
#t-hash algorithm char = {' ': '169', '$': '157', '(': '144', ',': '156', '0': '140', '4': '160', '8': '180', '<': '149', '@': '142', 'D': '110', 'H':'138', 'L': '106', 'P': '167', 'T': '126', 'X': '195', '\\': '124', '`': '151', 'd': '159', 'h': '114', 'l': '119', 'p': '139', 't': '174', 'x': '103', '|': '138', '#': '192', "'": '186', '+': '163', '/': '176', '3': '191', '7': '100', ';': '191', '?': '115', 'C': '121', 'G': '154', 'K': '161', 'O': '172', 'S': '197', 'W': '162', '[': '182', '_': '114', 'c': '159', 'g': '101', 'k': '159', 'o': '134', 's': '121', 'w': '123', '{': '185', '"': '193', '&': '118', '*': '172', '.': '106', '2': '135', '6': '119', ':': '123', '>': '190', 'B': '114', 'F': '180', 'J': '119', 'N': '121', 'R': '119', 'V': '188', 'Z': '102', '^': '133', 'b': '105', 'f': '190', 'j': '113', 'n': '139', 'r': '162', 'v': '152', 'z': '181', '~': '185', '!': '118', '%': '121', ')': '137', '-': '99', '1': '158', '5': '147', '9': '161', '=': '109', 'A': '106', 'E': '179', 'I': '151', 'M': '195', 'Q': '111', 'U': '100', 'Y': '101', ']': '185', 'a': '174', 'e': '172', 'i': '154', 'm': '198', 'q': '145', 'u': '130', 'y': '170', '}':'148'} key = int(raw_input('t-hash 1.2.0\nenter a key (2-100): ')) if key <= 100 and key >= 2: s = raw_input('enter string: ') if len(s) > 32: s = s[:33] else: s = s + (' '*(32-len(s))) n = '' for a in s: if a in char: n = char[a] + n else: n = char[' '] + n print hex(int(n)/key)[2:-1] else: pass
81
1,145
0.338532
225
1,539
2.302222
0.537778
0.023166
0
0
0
0
0
0
0
0
0
0.260833
0.220273
1,539
18
1,146
85.5
0.170833
0.010396
0
0.176471
0
0
0.28318
0
0
0
0
0
0
0
null
null
0.058824
0
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
5
b1b96536b340778e5b7f984adc878e85e0f26a09
70
py
Python
ganutils/api/twilio/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
1
2019-12-26T20:46:48.000Z
2019-12-26T20:46:48.000Z
ganutils/api/twilio/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
10
2019-12-26T06:43:38.000Z
2020-05-30T06:40:46.000Z
ganutils/api/twilio/__init__.py
Gan-Tu/ganutils
203c703cbba0345f9cfe23b03e1e3981f03e43db
[ "MIT" ]
null
null
null
# This directory is a Python package from .client import TwilioClient
23.333333
36
0.814286
10
70
5.7
1
0
0
0
0
0
0
0
0
0
0
0
0.157143
70
3
37
23.333333
0.966102
0.485714
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
b1bae9ffab7d81f7f38280653c4c556748a4deac
65
py
Python
sklearnbot/sklearn/__init__.py
openml/sklearn-bot
7476dd6e27f087166fc416974fc67a78dd4fa4d2
[ "BSD-3-Clause" ]
1
2020-05-06T14:54:32.000Z
2020-05-06T14:54:32.000Z
sklearnbot/sklearn/__init__.py
openml/sklearn-bot
7476dd6e27f087166fc416974fc67a78dd4fa4d2
[ "BSD-3-Clause" ]
2
2018-10-07T17:30:03.000Z
2018-10-19T00:06:35.000Z
sklearnbot/sklearn/__init__.py
openml/sklearn-bot
7476dd6e27f087166fc416974fc67a78dd4fa4d2
[ "BSD-3-Clause" ]
1
2019-07-03T20:35:22.000Z
2019-07-03T20:35:22.000Z
from .deserialize import as_estimator, as_pipeline, as_search_cv
32.5
64
0.861538
10
65
5.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.092308
65
1
65
65
0.881356
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
b1c949e97deb22b2a2524b965d32d3eb543e7921
238
py
Python
main/web/form/upload.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
2
2020-02-11T08:29:49.000Z
2020-02-17T10:24:36.000Z
main/web/form/upload.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
main/web/form/upload.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
from xflask.wtforms import FileField, FileRequired, EnumField from xflask.wtforms import Form from main.type.file import FileType class UploadForm(Form): file = FileField(validators=[FileRequired()]) type = EnumField(FileType)
23.8
61
0.777311
28
238
6.607143
0.535714
0.108108
0.183784
0.248649
0
0
0
0
0
0
0
0
0.138655
238
9
62
26.444444
0.902439
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
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
b1ef67b91584496b1b81dc2e7cd79674c8221344
116
py
Python
hello_python/chapter02/data_string.py
zachard/python-parent
374ab3fc3d0584adb26db1ff7c124665468d76df
[ "Apache-2.0" ]
null
null
null
hello_python/chapter02/data_string.py
zachard/python-parent
374ab3fc3d0584adb26db1ff7c124665468d76df
[ "Apache-2.0" ]
null
null
null
hello_python/chapter02/data_string.py
zachard/python-parent
374ab3fc3d0584adb26db1ff7c124665468d76df
[ "Apache-2.0" ]
null
null
null
double_quota_string = "这是字符串!" apostrophe_string = '这特么的也是字符串!' print(double_quota_string) print(apostrophe_string)
23.2
32
0.827586
14
116
6.428571
0.5
0.244444
0.377778
0
0
0
0
0
0
0
0
0
0.068966
116
5
33
23.2
0.833333
0
0
0
0
0
0.136752
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
b1f35af5ba3aa8fd38ff57b6980199ff2205ed62
32
py
Python
Conda_Recipe_macOS_Linux/Conda_Build_Recipe_macOS/xinterpdf/__main__.py
curieshicy/OrganicPDFGUI
a200b48786eee185d8a9d860d35518a88242950d
[ "MIT" ]
2
2018-02-02T21:31:58.000Z
2018-06-26T13:44:22.000Z
Conda_Recipe_macOS_Linux/Conda_Build_Recipe_macOS/xinterpdf/__main__.py
curieshicy/OrganicPDFGUI
a200b48786eee185d8a9d860d35518a88242950d
[ "MIT" ]
null
null
null
Conda_Recipe_macOS_Linux/Conda_Build_Recipe_macOS/xinterpdf/__main__.py
curieshicy/OrganicPDFGUI
a200b48786eee185d8a9d860d35518a88242950d
[ "MIT" ]
1
2018-06-26T13:44:43.000Z
2018-06-26T13:44:43.000Z
from xinterpdf import cli cli()
10.666667
25
0.78125
5
32
5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15625
32
3
26
10.666667
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
3ca229fca6f7a0b18a25a21ff831920c1c72373d
176
py
Python
foss_finder/utils/user_defined_info/fields/__init__.py
iotile/foss_finder
0c31530cf2158d4565a8168aecda18ffbcc68f04
[ "MIT" ]
6
2019-03-11T22:36:55.000Z
2019-04-05T17:49:40.000Z
foss_finder/utils/user_defined_info/fields/__init__.py
iotile/foss_finder
0c31530cf2158d4565a8168aecda18ffbcc68f04
[ "MIT" ]
11
2018-09-06T23:10:52.000Z
2020-01-14T20:49:35.000Z
foss_finder/utils/user_defined_info/fields/__init__.py
iotile/foss_finder
0c31530cf2158d4565a8168aecda18ffbcc68f04
[ "MIT" ]
1
2020-07-16T12:21:29.000Z
2020-07-16T12:21:29.000Z
from .add_packages import AddPackages from .additional_info import AdditionalInfo from .multi_license_selection import MultiLicenseSelection from .overwrites import Overwrites
35.2
58
0.886364
20
176
7.6
0.65
0
0
0
0
0
0
0
0
0
0
0
0.090909
176
4
59
44
0.95
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
3cea315a8f68aa16950aeda8fef1525ccc900ea0
107
py
Python
conan/tools/microsoft/__init__.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
conan/tools/microsoft/__init__.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
conan/tools/microsoft/__init__.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
# noinspection PyUnresolvedReferences from .toolchain import MSBuildToolchain from .msbuild import MSBuild
26.75
39
0.869159
10
107
9.3
0.7
0
0
0
0
0
0
0
0
0
0
0
0.102804
107
3
40
35.666667
0.96875
0.327103
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
5966e510b0f0ffe3e755fc42eb67df3b59fa77b9
166
py
Python
dream/policy/return_call.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
dream/policy/return_call.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
dream/policy/return_call.py
icyblade/dream
818e77f1c25e51f8cd966f7aa4eb1bcd4207b208
[ "MIT" ]
null
null
null
from . import BasePolicy from ..game.action import Action class ReturnCall(BasePolicy): def act(self, observation, reward, done): return Action('CALL')
20.75
45
0.710843
20
166
5.9
0.75
0
0
0
0
0
0
0
0
0
0
0
0.186747
166
7
46
23.714286
0.874074
0
0
0
0
0
0.024096
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
597cb061b99435b935d7a9a599a71c80332d1055
89
py
Python
htcondor_executor/utils.py
JoshKarpel/htcondor-executor
a2a40f55772a4391b57bc1baeb5aa66d9ca0f17d
[ "Apache-2.0" ]
null
null
null
htcondor_executor/utils.py
JoshKarpel/htcondor-executor
a2a40f55772a4391b57bc1baeb5aa66d9ca0f17d
[ "Apache-2.0" ]
null
null
null
htcondor_executor/utils.py
JoshKarpel/htcondor-executor
a2a40f55772a4391b57bc1baeb5aa66d9ca0f17d
[ "Apache-2.0" ]
null
null
null
import enum class StrEnum(enum.Enum): def __str__(self): return self.value
12.714286
25
0.662921
12
89
4.583333
0.75
0
0
0
0
0
0
0
0
0
0
0
0.247191
89
6
26
14.833333
0.820896
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
59a0674a53ebd325bc3b2d14eb7e261b83c242af
159
py
Python
Dataset/Leetcode/test/70/482.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/70/482.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/70/482.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, n: int) -> int: n += 1 return round(5 ** 0.5 / 5 * (((1 + 5 ** 0.5) / 2) ** n - ((1 - 5 ** 0.5) / 2) ** n))
26.5
92
0.371069
28
159
2.107143
0.464286
0.101695
0.152542
0.135593
0.20339
0.20339
0
0
0
0
0
0.148515
0.36478
159
5
93
31.8
0.435644
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
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
1
0
0
0
0
1
0
0
5
59ce5c1a8d89aca09499cb4924f2c752b20d5a46
53
py
Python
src/CraftCrypto_Helpers/test.py
Craft-Crypto/CraftCrypto_Helpers
6c3725824778f2b152cb5371e57230cb5237c00d
[ "MIT" ]
null
null
null
src/CraftCrypto_Helpers/test.py
Craft-Crypto/CraftCrypto_Helpers
6c3725824778f2b152cb5371e57230cb5237c00d
[ "MIT" ]
null
null
null
src/CraftCrypto_Helpers/test.py
Craft-Crypto/CraftCrypto_Helpers
6c3725824778f2b152cb5371e57230cb5237c00d
[ "MIT" ]
null
null
null
from KivyRecord import KivyRecord print(KivyRecord())
26.5
33
0.849057
6
53
7.5
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.075472
53
2
34
26.5
0.918367
0
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
ab9e3c2cec207f0439e49d53bcd863fa9d4e67f4
347
py
Python
src/accounts/utils/__init__.py
loganathanengrr/Django-Rest-Core
928c2d816c0aa48453dde8642ef1b263f76ae39d
[ "MIT" ]
1
2020-02-18T11:09:56.000Z
2020-02-18T11:09:56.000Z
src/accounts/utils/__init__.py
loganathanengrr/Django-Rest-Core
928c2d816c0aa48453dde8642ef1b263f76ae39d
[ "MIT" ]
8
2020-02-11T23:20:50.000Z
2022-03-11T23:32:18.000Z
src/accounts/utils/__init__.py
loganathanengrr/Django-Rest-Core
928c2d816c0aa48453dde8642ef1b263f76ae39d
[ "MIT" ]
null
null
null
from .utils import ( jwt_response_payload_handler, get_secret_key, encode_uid, decode_uid, login_user, logout_user, ActionViewMixin, token_response_payload_handler, ) __all__ = [ 'jwt_response_payload_handler','get_secret_key','encode_uid','decode_uid','logout_user', 'login_user','ActionViewMixin','token_response_payload_handler' ]
21.6875
89
0.801153
44
347
5.681818
0.431818
0.24
0.352
0.2
0.808
0.808
0.44
0.44
0.44
0.44
0
0
0.092219
347
16
90
21.6875
0.793651
0
0
0
0
0
0.367816
0.166667
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
abb2da155d67aa11e5639c0d4027584739a7d5b9
45
py
Python
first.py
ja-dir/demorepo
00ead2c4167735204f3f184d883b664e87ca725e
[ "MIT" ]
null
null
null
first.py
ja-dir/demorepo
00ead2c4167735204f3f184d883b664e87ca725e
[ "MIT" ]
null
null
null
first.py
ja-dir/demorepo
00ead2c4167735204f3f184d883b664e87ca725e
[ "MIT" ]
null
null
null
print("Hello World") print("Added new line")
15
23
0.711111
7
45
4.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.111111
45
2
24
22.5
0.8
0
0
0
0
0
0.555556
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
abd03ba923e7e353624ee7bfa8e41c386aaa9af7
134
py
Python
tests/test_example.py
3Dsamples/MoeFlow
5c76fd260102bf06db39b2cc36ef501960d60d3c
[ "MIT" ]
120
2017-11-17T23:04:46.000Z
2022-01-17T02:00:48.000Z
tests/test_example.py
3Dsamples/MoeFlow
5c76fd260102bf06db39b2cc36ef501960d60d3c
[ "MIT" ]
2
2018-01-20T09:05:38.000Z
2019-05-24T05:20:20.000Z
tests/test_example.py
freedomofkeima/MoeFlow
5c76fd260102bf06db39b2cc36ef501960d60d3c
[ "MIT" ]
7
2019-01-24T10:32:52.000Z
2021-03-23T16:02:44.000Z
# -*- coding: utf-8 -*- from moeflow.cmds.main import hello_world def test_hello_world(): hello_world(object()) assert True
16.75
41
0.686567
19
134
4.631579
0.789474
0.340909
0
0
0
0
0
0
0
0
0
0.009091
0.179104
134
7
42
19.142857
0.790909
0.156716
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.25
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
1
1
0
0
0
0
0
0
5
abf3ac12fc696155f142339651595e6e2e4c9920
11,392
py
Python
tests/test_ops/test_hptuning.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
tests/test_ops/test_hptuning.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
tests/test_ops/test_hptuning.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from unittest import TestCase from marshmallow.exceptions import ValidationError from tests.utils import assert_equal_dict from polyaxon_schemas.ops.group.hptuning import ( AcquisitionFunctions, BOConfig, GaussianProcessConfig, GaussianProcessesKernels, GridSearchConfig, HPTuningConfig, HyperbandConfig, RandomSearchConfig, UtilityFunctionConfig ) from polyaxon_schemas.ops.group.metrics import Optimization, SearchMetricConfig class TestHptuningConfigs(TestCase): def test_grid_search_config(self): config_dict = {'n_experiments': 10} config = GridSearchConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Raises for negative values config_dict['n_experiments'] = -5 with self.assertRaises(ValidationError): GridSearchConfig.from_dict(config_dict) config_dict['n_experiments'] = -0.5 with self.assertRaises(ValidationError): GridSearchConfig.from_dict(config_dict) # Add n_experiments percent config_dict['n_experiments'] = 0.5 with self.assertRaises(ValidationError): GridSearchConfig.from_dict(config_dict) config_dict['n_experiments'] = 5 config = GridSearchConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_random_search_config(self): config_dict = {'n_experiments': 10} config = RandomSearchConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Raises for negative values config_dict['n_experiments'] = -5 with self.assertRaises(ValidationError): RandomSearchConfig.from_dict(config_dict) config_dict['n_experiments'] = -0.5 with self.assertRaises(ValidationError): RandomSearchConfig.from_dict(config_dict) # Add n_experiments percent config_dict['n_experiments'] = 0.5 with self.assertRaises(ValidationError): RandomSearchConfig.from_dict(config_dict) config_dict['n_experiments'] = 5 config = RandomSearchConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_hyperband_config(self): config_dict = { 'max_iter': 10, 'eta': 3, 'resource': {'name': 'steps', 'type': 'int'}, 'resume': False, 'metric': SearchMetricConfig(name='loss', optimization=Optimization.MINIMIZE).to_dict() } config = HyperbandConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Raises for negative values config_dict['max_iter'] = 0 with self.assertRaises(ValidationError): HyperbandConfig.from_dict(config_dict) config_dict['max_iter'] = -0.5 with self.assertRaises(ValidationError): HyperbandConfig.from_dict(config_dict) config_dict['max_iter'] = 3 # Add n_experiments percent config_dict['eta'] = -0.5 with self.assertRaises(ValidationError): HyperbandConfig.from_dict(config_dict) config_dict['eta'] = 2.9 config = HyperbandConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_gaussian_process_config(self): config_dict = { 'kernel': GaussianProcessesKernels.MATERN, 'length_scale': 1.0, 'nu': 1.9, 'n_restarts_optimizer': 2 } config = GaussianProcessConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_utility_function_config(self): config_dict = { 'acquisition_function': AcquisitionFunctions.UCB, } with self.assertRaises(ValidationError): UtilityFunctionConfig.from_dict(config_dict) config_dict = { 'acquisition_function': AcquisitionFunctions.POI, } with self.assertRaises(ValidationError): UtilityFunctionConfig.from_dict(config_dict) config_dict = { 'acquisition_function': AcquisitionFunctions.UCB, 'kappa': 1.2, 'gaussian_process': { 'kernel': GaussianProcessesKernels.MATERN, 'length_scale': 1.0, 'nu': 1.9, 'n_restarts_optimizer': 2 } } config = UtilityFunctionConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) config_dict = { 'acquisition_function': AcquisitionFunctions.EI, 'eps': 1.2, 'gaussian_process': { 'kernel': GaussianProcessesKernels.MATERN, 'length_scale': 1.0, 'nu': 1.9, 'n_restarts_optimizer': 2 } } config = UtilityFunctionConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_bo_config(self): config_dict = { 'metric': SearchMetricConfig(name='loss', optimization=Optimization.MINIMIZE).to_dict(), 'n_initial_trials': 2, 'n_iterations': 19, 'utility_function': { 'acquisition_function': AcquisitionFunctions.UCB, 'kappa': 1.2, 'gaussian_process': { 'kernel': GaussianProcessesKernels.MATERN, 'length_scale': 1.0, 'nu': 1.9, 'n_restarts_optimizer': 2 } } } config = BOConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_hptuning_config_raise_conditions(self): config_dict = { 'concurrency': 2, } config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) config = HPTuningConfig.from_dict(config.to_dict()) assert_equal_dict(config.to_dict(), config_dict) # Add random_search without matrix should raise config_dict['random_search'] = {'n_experiments': 10} with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Add a matrix definition with 2 methods config_dict['matrix'] = { 'lr': {'values': [1, 2, 3], 'pvalues': [(1, 0.3), (2, 0.3), (3, 0.3)]} } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Using a distribution with random search should pass config_dict['matrix'] = { 'lr': {'pvalues': [(1, 0.3), (2, 0.3), (3, 0.3)]} } config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Add matrix definition should pass config_dict['matrix'] = { 'lr': {'values': [1, 2, 3]} } config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Add grid_search should raise config_dict['grid_search'] = {'n_experiments': 10} with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Remove random_search should pass del config_dict['random_search'] config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Adding a distribution should raise config_dict['matrix'] = { 'lr': {'pvalues': [(1, 0.3), (2, 0.3), (3, 0.3)]} } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Updating the matrix should pass config_dict['matrix'] = { 'lr': {'values': [1, 2, 3]} } config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Add hyperband should raise config_dict['hyperband'] = { 'max_iter': 10, 'eta': 3, 'resource': {'name': 'steps', 'type': 'int'}, 'resume': False, 'metric': SearchMetricConfig(name='loss', optimization=Optimization.MINIMIZE).to_dict() } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Remove grid_search should pass del config_dict['grid_search'] config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Add early stopping config_dict['early_stopping'] = [ { 'metric': 'loss', 'value': 0.1, 'optimization': Optimization.MINIMIZE, 'policy': {'kind': 'median', 'evaluation_interval': 1} }, { 'metric': 'accuracy', 'value': 0.9, 'optimization': Optimization.MAXIMIZE, 'policy': {'kind': 'truncation', 'percent': 50, 'evaluation_interval': 1} } ] config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Add bo should raise config_dict['bo'] = { 'metric': SearchMetricConfig(name='loss', optimization=Optimization.MINIMIZE).to_dict(), 'n_initial_trials': 2, 'n_iterations': 10, 'utility_function': { 'acquisition_function': AcquisitionFunctions.UCB, 'kappa': 1.2, 'gaussian_process': { 'kernel': GaussianProcessesKernels.MATERN, 'length_scale': 1.0, 'nu': 1.9, 'n_restarts_optimizer': 2 } } } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Remove hyperband should pass del config_dict['hyperband'] config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) # Using non uniform distribution should raise # Updating the matrix should pass config_dict['matrix'] = { 'lr': {'pvalues': [[0.1, 0.1], [0.2, 0.9]]} } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) config_dict['matrix'] = { 'lr': {'normal': [0.1, 0.2]} } with self.assertRaises(ValidationError): HPTuningConfig.from_dict(config_dict) # Using uniform distribution should raise config_dict['matrix'] = { 'lr': {'uniform': {'low': 0.1, 'high': 0.2}} } config = HPTuningConfig.from_dict(config_dict) assert_equal_dict(config.to_dict(), config_dict) def test_random_and_grid_search_without_n_experiments(self): config_dict = { 'concurrency': 1, 'matrix': {'lr': {'values': [1, 2, 3]}}, 'random_search': {}, 'early_stopping': [], 'seed': None } config = HPTuningConfig.from_dict(config_dict) assert config.to_dict() == config_dict
35.823899
100
0.598227
1,146
11,392
5.677138
0.120419
0.153704
0.152782
0.1079
0.798494
0.777283
0.751306
0.732093
0.721334
0.68921
0
0.017426
0.294768
11,392
317
101
35.936909
0.792382
0.063378
0
0.618474
0
0
0.114221
0
0
0
0
0
0.164659
1
0.032129
false
0
0.024096
0
0.060241
0.004016
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
280607ce79f3c653708ac11e07e27d4027dd4442
174
py
Python
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/3. Two Categorical/2. frequency.py
myarist/Codecademy
2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb
[ "MIT" ]
23
2021-06-06T15:35:55.000Z
2022-03-21T06:53:42.000Z
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/3. Two Categorical/2. frequency.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Data Scientist Career Path/7. Summary Statistics/8. Associations between Variables/3. Two Categorical/2. frequency.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
9
2021-06-08T01:32:04.000Z
2022-03-18T15:38:09.000Z
import pandas as pd import codecademylib3 npi = pd.read_csv("npi_sample.csv") special_authority_freq = pd.crosstab(npi.special, npi.authority) print(special_authority_freq)
24.857143
64
0.821839
26
174
5.269231
0.538462
0.233577
0.291971
0
0
0
0
0
0
0
0
0.006289
0.086207
174
7
65
24.857143
0.855346
0
0
0
0
0
0.08
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
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
1
0
0
0
0
5
e604c076d8d29f966d41c0bf47e16a6e53e47779
125
py
Python
Hackerrank/Python/np-concatenate.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
1
2021-01-10T13:29:21.000Z
2021-01-10T13:29:21.000Z
Hackerrank/Python/np-concatenate.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
Hackerrank/Python/np-concatenate.py
PROxZIMA/Competitive-Coding
ba6b365ea130b6fcaa15c5537b530ed363bab793
[ "MIT" ]
null
null
null
import numpy n, m, p = input().split() print(numpy.array([list(map(int, input().split())) for _ in range(int(n)+int(m))]))
20.833333
83
0.624
22
125
3.5
0.681818
0.25974
0
0
0
0
0
0
0
0
0
0
0.12
125
5
84
25
0.7
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
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
e607bc6f68eb28c4431b2ec42e9bc1bf78e04482
142
py
Python
tensorcraft/backend/httpapi/routing.py
netrack/bayes
15e0c54b795f4ce527cc5e2c46bbb7da434ac036
[ "Apache-2.0" ]
12
2019-07-15T11:15:23.000Z
2019-12-05T12:19:48.000Z
tensorcraft/backend/httpapi/routing.py
netrack/bayes
15e0c54b795f4ce527cc5e2c46bbb7da434ac036
[ "Apache-2.0" ]
10
2019-06-25T17:42:44.000Z
2019-07-09T13:28:12.000Z
tensorcraft/backend/httpapi/routing.py
netrack/tensorcraft
15e0c54b795f4ce527cc5e2c46bbb7da434ac036
[ "Apache-2.0" ]
1
2019-05-23T13:22:19.000Z
2019-05-23T13:22:19.000Z
from typing import Callable def urlto(path: str) -> Callable: def _to(func): func.url = path return func return _to
15.777778
33
0.612676
19
142
4.473684
0.631579
0.258824
0
0
0
0
0
0
0
0
0
0
0.309859
142
8
34
17.75
0.867347
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.833333
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
1
0
0
0
0
1
0
0
5
e60ec83ca5409438b4671b2ffe57ed263f898f3b
19
py
Python
ellipsefit/__init__.py
RealPolitiX/ellipsefit
815136662b2e9a544b93568a91a1224cd30ea6f2
[ "MIT" ]
null
null
null
ellipsefit/__init__.py
RealPolitiX/ellipsefit
815136662b2e9a544b93568a91a1224cd30ea6f2
[ "MIT" ]
null
null
null
ellipsefit/__init__.py
RealPolitiX/ellipsefit
815136662b2e9a544b93568a91a1224cd30ea6f2
[ "MIT" ]
null
null
null
from .fit import *
9.5
18
0.684211
3
19
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.210526
19
1
19
19
0.866667
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
e612e308787acddfb4ed9cbb0807701a19c04748
42
py
Python
gonzo/webapp/tests.py
paulcwatts/1hph
407337955121c3f59b4621acb392e6c23b57ae8e
[ "BSD-3-Clause" ]
1
2016-10-03T05:29:12.000Z
2016-10-03T05:29:12.000Z
gonzo/webapp/tests.py
paulcwatts/1hph
407337955121c3f59b4621acb392e6c23b57ae8e
[ "BSD-3-Clause" ]
null
null
null
gonzo/webapp/tests.py
paulcwatts/1hph
407337955121c3f59b4621acb392e6c23b57ae8e
[ "BSD-3-Clause" ]
null
null
null
from gonzo.webapp.account.tests import *
14
40
0.785714
6
42
5.5
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
2
41
21
0.891892
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
e61a0b5c05e09aef96b5e844787d93bb756198bb
192
py
Python
conftest.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
232
2015-09-01T16:07:48.000Z
2022-03-28T14:53:28.000Z
conftest.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
34
2015-08-21T09:13:03.000Z
2022-03-21T23:52:44.000Z
conftest.py
RyusukeYamano/nngen
9ed1f7fb83908794aa94d70287d89545d45fe875
[ "Apache-2.0" ]
46
2015-09-24T14:39:57.000Z
2022-02-23T21:59:56.000Z
from __future__ import absolute_import from __future__ import print_function import pytest def pytest_addoption(parser): parser.addoption('--sim', default='iverilog', help='Simulator')
21.333333
67
0.791667
23
192
6.130435
0.652174
0.141844
0.22695
0
0
0
0
0
0
0
0
0
0.114583
192
8
68
24
0.829412
0
0
0
0
0
0.114583
0
0
0
0
0
0
1
0.2
false
0
0.6
0
0.8
0.2
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
0544a26e6eb38eab2662807867b46a5fb9f188d6
40
py
Python
src/sirak.py
mamo3650/CU_HIN
002cc968d596940c302ce02d3d14f6206382d879
[ "MIT" ]
null
null
null
src/sirak.py
mamo3650/CU_HIN
002cc968d596940c302ce02d3d14f6206382d879
[ "MIT" ]
null
null
null
src/sirak.py
mamo3650/CU_HIN
002cc968d596940c302ce02d3d14f6206382d879
[ "MIT" ]
null
null
null
import numpy as np This is a test file
10
19
0.75
9
40
3.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.25
40
3
20
13.333333
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.5
null
null
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
1
0
0
0
1
0
0
0
0
5
057020daa993e057feb8474e2550eed3405fe11a
128
py
Python
Challenges/Convert number to reversed array of digits.py
Flixis/Python-Projects
cc995f7fe76e29f30950bb1cd07945b2306c822e
[ "MIT" ]
1
2020-10-03T19:52:59.000Z
2020-10-03T19:52:59.000Z
Challenges/Convert number to reversed array of digits.py
Flixis/Python-Projects
cc995f7fe76e29f30950bb1cd07945b2306c822e
[ "MIT" ]
5
2020-01-19T00:33:52.000Z
2020-08-28T12:50:20.000Z
Challenges/Convert number to reversed array of digits.py
Flixis/Python-Projects
cc995f7fe76e29f30950bb1cd07945b2306c822e
[ "MIT" ]
null
null
null
#failed this one, used solution from codewars.com def digitize(n): return map(int, str(n)[::-1]) print(list(digitize(700)))
25.6
49
0.695313
21
128
4.238095
0.904762
0
0
0
0
0
0
0
0
0
0
0.036036
0.132813
128
5
50
25.6
0.765766
0.375
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
058e82f5f9da185784ff38a3b42cac5415130098
37
py
Python
num1/test.py
qiwk/show-me-the-code
b6ad49a504cb935c25ec3dcfa5334918f53d3bc0
[ "MIT" ]
null
null
null
num1/test.py
qiwk/show-me-the-code
b6ad49a504cb935c25ec3dcfa5334918f53d3bc0
[ "MIT" ]
null
null
null
num1/test.py
qiwk/show-me-the-code
b6ad49a504cb935c25ec3dcfa5334918f53d3bc0
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- print('hello')
18.5
22
0.540541
5
37
4
1
0
0
0
0
0
0
0
0
0
0
0.030303
0.108108
37
2
23
18.5
0.575758
0.540541
0
0
0
0
0.3125
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
556660c0f2753155fa3d99cdd82a2dde4b6c97bb
49
py
Python
transformer_in_transformer_code/__init__.py
hyukyu/ViT-pytorch
8b1306fec993b1c270a8c7a5e33853ae23a39447
[ "MIT" ]
null
null
null
transformer_in_transformer_code/__init__.py
hyukyu/ViT-pytorch
8b1306fec993b1c270a8c7a5e33853ae23a39447
[ "MIT" ]
null
null
null
transformer_in_transformer_code/__init__.py
hyukyu/ViT-pytorch
8b1306fec993b1c270a8c7a5e33853ae23a39447
[ "MIT" ]
null
null
null
# from transformer_in_transformer.tnt import TNT
24.5
48
0.857143
7
49
5.714286
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.102041
49
1
49
49
0.909091
0.938776
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
556d0faacab306d037726bd050b7d1f58810c52f
126
py
Python
trisakti/promotions/admin.py
faizrahmathidayat/trisakti-backend
9d01dc5144943007c694fc3a663183696fcb4c60
[ "MIT" ]
null
null
null
trisakti/promotions/admin.py
faizrahmathidayat/trisakti-backend
9d01dc5144943007c694fc3a663183696fcb4c60
[ "MIT" ]
null
null
null
trisakti/promotions/admin.py
faizrahmathidayat/trisakti-backend
9d01dc5144943007c694fc3a663183696fcb4c60
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import (Promotion) admin.site.register(Promotion) # Register your models here.
21
32
0.801587
17
126
5.941176
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.119048
126
5
33
25.2
0.90991
0.206349
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
5570e305b931a61078b8ff9b626a7d2ac2cfa8de
72
py
Python
hrl/elegant/normalize/__init__.py
sbl1996/hrl
923db4198dd06160df37d9fb3ed0fc966da4462d
[ "Apache-2.0" ]
null
null
null
hrl/elegant/normalize/__init__.py
sbl1996/hrl
923db4198dd06160df37d9fb3ed0fc966da4462d
[ "Apache-2.0" ]
null
null
null
hrl/elegant/normalize/__init__.py
sbl1996/hrl
923db4198dd06160df37d9fb3ed0fc966da4462d
[ "Apache-2.0" ]
null
null
null
from hrl.elegant.normalize.input_normalization import InputNormalization
72
72
0.916667
8
72
8.125
1
0
0
0
0
0
0
0
0
0
0
0
0.041667
72
1
72
72
0.942029
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
e94c23c39bb8c9f9cf79cb5b461f02d387d6d3b2
180
py
Python
src/inception/image/statadjust/__init__.py
jercytryn/inception
f7489cccdd308b5bb2d6ea04588dc67113e995b5
[ "MIT" ]
6
2015-06-02T02:41:12.000Z
2021-08-16T11:15:58.000Z
src/inception/image/statadjust/__init__.py
jercytryn/inception
f7489cccdd308b5bb2d6ea04588dc67113e995b5
[ "MIT" ]
2
2015-05-20T08:13:07.000Z
2015-05-20T08:13:07.000Z
src/inception/image/statadjust/__init__.py
jercytryn/inception
f7489cccdd308b5bb2d6ea04588dc67113e995b5
[ "MIT" ]
2
2015-09-11T02:03:11.000Z
2016-07-05T21:13:56.000Z
""" Statistical image lighting adjustment based on "Understanding and Improving the Realism of Image Composites" (Xue et al. 2012) """ from .statadjust import statadjust as adjust
30
79
0.788889
24
180
5.916667
0.916667
0
0
0
0
0
0
0
0
0
0
0.025974
0.144444
180
5
80
36
0.896104
0.7
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
e972744aa2f8fced1aedee63f61c0b8ce72bc174
1,805
py
Python
test_suite_auto.py
booherbg/PyAutomata
432555806dd68ff6a8c05b525fa25ab8ac0a80fe
[ "Apache-2.0" ]
1
2018-09-19T07:27:31.000Z
2018-09-19T07:27:31.000Z
test_suite_auto.py
booherbg/PyAutomata
432555806dd68ff6a8c05b525fa25ab8ac0a80fe
[ "Apache-2.0" ]
null
null
null
test_suite_auto.py
booherbg/PyAutomata
432555806dd68ff6a8c05b525fa25ab8ac0a80fe
[ "Apache-2.0" ]
null
null
null
''' Same as test_suite.py but it only uses the module, not both python and c++ this can be ran with pypy (which will load python) or cpython (which will use c++) Cpython with c++: the fastest. Chokes on high generations (10,000,000) although technically that shouldn't happen. Cpython with python: the slowest, should never really use. (10x-20x slower) pypy with python: Only half as slow as cpython/c++, efficient memory that doesn't choke on high generations. Increases performance as generations increase due to the caching nature of pypy's JIT compiler. recommended in most cases except when absolute performance is needed and memory is not a concern. ''' import __init__ as pa if pa.__pypy__: print "found pypy: using pure python" else: print "pypy not found: using c++ bindings" a = pa.pyautomata(110, 16) #Python #b = pb.pyautomata(110, 16) #cython a.init_seed() #b.init_seed() #assert a.chunks_FromCurrentGeneration(8) == b.chunks_FromCurrentGeneration(8) print 'chunks_FromCurrentGeneration(8) passes' a.init_seed((42, 42, 42)) #b.init_seed((42, 42, 42)) #assert a.chunks_FromCurrentGeneration(8) == b.chunks_FromCurrentGeneration(8) assert a.chunks_FromCurrentGeneration(8) == [42, 42] print "init_seed([(42, 42, 42)) passes" for i in xrange(10): a.iterateAutomata() #b.iterateAutomata() #assert a.chunks_FromCurrentGeneration(8) == b.chunks_FromCurrentGeneration(8) print '10 generations passes' print "stress test: 1,000,000 generations" for i in xrange(1000000): if i % 50000 == 0: print "%d generations done" % i a.iterateAutomata() #b.iterateAutomata() #assert a.chunks_FromCurrentGeneration(8) == b.chunks_FromCurrentGeneration(8) print '1000000 generations passes' a.printBuffer() print '---------------' #b.printBuffer()
32.818182
82
0.731302
265
1,805
4.890566
0.418868
0.208333
0.216049
0.131173
0.317901
0.258488
0.258488
0.258488
0.258488
0.209105
0
0.055701
0.154571
1,805
54
83
33.425926
0.793578
0.242659
0
0.090909
0
0
0.367013
0.046062
0
0
0
0
0.045455
0
null
null
0.181818
0.045455
null
null
0.454545
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
1
0
5
e975f0028fe007694a5b57fcc13393f4918ba02c
6,574
py
Python
tests/loaders/test_data_loader.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
1
2021-12-28T15:48:45.000Z
2021-12-28T15:48:45.000Z
tests/loaders/test_data_loader.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
2
2020-06-26T11:03:53.000Z
2020-06-26T11:05:09.000Z
tests/loaders/test_data_loader.py
huynhngoc/deoxys
b2e9936b723807e129fda36d8d6131ca00db558f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Ngoc Huynh Bao" __email__ = "ngoc.huynh.bao@nmbu.no" import pytest import h5py import os import numpy as np from deoxys.loaders import load_data from deoxys.customize import custom_preprocessor from deoxys.data import BasePreprocessor, HDF5Reader, H5Reader from deoxys.utils import read_file, load_json_config, Singleton def setup_data(): # Setup the hdf5 files data = np.arange(25000) data = np.reshape(data, (1000, 5, 5)) target = [1, 2, 3, 4, 5] * 200 return data, target def teardown(filename=''): if os.path.isfile(filename): os.remove(filename) @pytest.fixture(autouse=True) def clear_singleton(): Singleton._instances = {} # clear singleton @pytest.fixture(scope='module', autouse=True) def h5file(): # Create standardized h5 file with 10 folds, named fold_x filename = 'data.h5' data, target = setup_data() hf = h5py.File(filename, 'w') for i in range(10): start, end = i * 100, (i + 1) * 100 group = hf.create_group('fold_{0}'.format(i)) group.create_dataset('input', data=data[start: end]) group.create_dataset('target', data=target[start: end]) hf.close() yield filename teardown(filename) def check_equal_data_generator(actual, expected): assert actual.total_batch == expected.total_batch total_batch = actual.total_batch for i, (actual_batch, expected_batch) in enumerate( zip(actual.generate(), expected.generate())): if i >= total_batch: break assert np.all(actual_batch[0] == expected_batch[0]) assert np.all(actual_batch[1] == expected_batch[1]) def test_load_data(h5file): @custom_preprocessor class PlusOnePreprocessor(BasePreprocessor): def transform(self, x, y): return x + 1, y + 1 actual_dr = load_data(load_json_config( read_file('tests/json/dataset_config.json'))) expected_dr = HDF5Reader( filename=h5file, batch_size=8, preprocessors=PlusOnePreprocessor(), x_name='input', y_name='target', train_folds=[0, 1, 2], val_folds=[3], test_folds=[4, 5] ) assert isinstance(actual_dr, HDF5Reader) assert isinstance(actual_dr.preprocessors[0], PlusOnePreprocessor) actual_train_data = actual_dr.train_generator actual_val_data = actual_dr.val_generator actual_test_data = actual_dr.test_generator expected_train_data = expected_dr.train_generator expected_val_data = expected_dr.val_generator expected_test_data = expected_dr.test_generator check_equal_data_generator(actual_train_data, expected_train_data) check_equal_data_generator(actual_val_data, expected_val_data) check_equal_data_generator(actual_test_data, expected_test_data) def test_load_data_multi_preprocessor(h5file): @custom_preprocessor class PlusOnePreprocessor(BasePreprocessor): def transform(self, x, y): return x + 1, y + 1 actual_dr = load_data(load_json_config( read_file('tests/json/dataset_config_multi_preprocessor.json'))) expected_dr = HDF5Reader( filename=h5file, batch_size=8, preprocessors=[PlusOnePreprocessor(), PlusOnePreprocessor()], x_name='input', y_name='target', train_folds=[0, 1, 2], val_folds=[3], test_folds=[4, 5] ) assert isinstance(actual_dr, HDF5Reader) assert isinstance(actual_dr.preprocessors[0], PlusOnePreprocessor) assert isinstance(actual_dr.preprocessors[1], PlusOnePreprocessor) actual_train_data = actual_dr.train_generator actual_val_data = actual_dr.val_generator actual_test_data = actual_dr.test_generator expected_train_data = expected_dr.train_generator expected_val_data = expected_dr.val_generator expected_test_data = expected_dr.test_generator check_equal_data_generator(actual_train_data, expected_train_data) check_equal_data_generator(actual_val_data, expected_val_data) check_equal_data_generator(actual_test_data, expected_test_data) def test_load_h5_data(h5file): @custom_preprocessor class PlusOnePreprocessor(BasePreprocessor): def transform(self, x, y): return x + 1, y + 1 actual_dr = load_data(load_json_config( read_file('tests/json/h5_dataset_config.json'))) expected_dr = H5Reader( filename=h5file, batch_size=8, preprocessors=PlusOnePreprocessor(), x_name='input', y_name='target', train_folds=[0, 1, 2], val_folds=[3], test_folds=[4, 5] ) assert isinstance(actual_dr, H5Reader) assert isinstance(actual_dr.preprocessors[0], PlusOnePreprocessor) actual_train_data = actual_dr.train_generator actual_val_data = actual_dr.val_generator actual_test_data = actual_dr.test_generator expected_train_data = expected_dr.train_generator expected_val_data = expected_dr.val_generator expected_test_data = expected_dr.test_generator check_equal_data_generator(actual_train_data, expected_train_data) check_equal_data_generator(actual_val_data, expected_val_data) check_equal_data_generator(actual_test_data, expected_test_data) def test_load_h5_data_multi_preprocessor(h5file): @custom_preprocessor class PlusOnePreprocessor(BasePreprocessor): def transform(self, x, y): return x + 1, y + 1 actual_dr = load_data(load_json_config( read_file('tests/json/h5_dataset_config_multi_preprocessor.json'))) expected_dr = H5Reader( filename=h5file, batch_size=8, preprocessors=[PlusOnePreprocessor(), PlusOnePreprocessor()], x_name='input', y_name='target', train_folds=[0, 1, 2], val_folds=[3], test_folds=[4, 5] ) assert isinstance(actual_dr, H5Reader) assert isinstance(actual_dr.preprocessors[0], PlusOnePreprocessor) assert isinstance(actual_dr.preprocessors[1], PlusOnePreprocessor) actual_train_data = actual_dr.train_generator actual_val_data = actual_dr.val_generator actual_test_data = actual_dr.test_generator expected_train_data = expected_dr.train_generator expected_val_data = expected_dr.val_generator expected_test_data = expected_dr.test_generator check_equal_data_generator(actual_train_data, expected_train_data) check_equal_data_generator(actual_val_data, expected_val_data) check_equal_data_generator(actual_test_data, expected_test_data)
30.86385
75
0.716002
841
6,574
5.237812
0.140309
0.047219
0.041317
0.067877
0.765948
0.749376
0.749376
0.741657
0.741657
0.741657
0
0.02003
0.195011
6,574
212
76
31.009434
0.812358
0.017341
0
0.649682
0
0
0.042912
0.028815
0
0
0
0
0.082803
1
0.082803
false
0
0.050955
0.025478
0.191083
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
75653f7c13bcc8d527148e5b4beeb332e845b543
49
py
Python
vnpy/database/postgresql/__init__.py
cpu100/vnpy
32e4735a5166191e88dc445bf837963576cdef55
[ "MIT" ]
19
2021-12-17T12:09:53.000Z
2022-02-03T12:42:43.000Z
vnpy/database/postgresql/__init__.py
cpu100/vnpy
32e4735a5166191e88dc445bf837963576cdef55
[ "MIT" ]
1
2021-02-05T08:59:29.000Z
2021-02-05T08:59:29.000Z
vnpy/database/postgresql/__init__.py
cpu100/vnpy
32e4735a5166191e88dc445bf837963576cdef55
[ "MIT" ]
10
2021-03-14T13:28:18.000Z
2022-02-18T13:38:17.000Z
from .postgresql_database import database_manager
49
49
0.918367
6
49
7.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.061224
49
1
49
49
0.934783
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
75b2905b5e161cab9ebd0fffd129e3e38c8d12b3
114
py
Python
DeterministicParticleFlowControl/utils/__init__.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
6
2021-12-13T14:30:31.000Z
2022-01-24T07:54:57.000Z
DeterministicParticleFlowControl/utils/__init__.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
10
2021-12-18T23:04:53.000Z
2022-02-05T02:06:34.000Z
DeterministicParticleFlowControl/utils/__init__.py
dimitra-maoutsa/DeterministicParticleFlowControl
106bc9b01d7a4888e4ded18c5fb5a989fe672386
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 19 02:25:51 2022 @author: maout """ from .utils_pytorch import *
12.666667
35
0.622807
18
114
3.888889
1
0
0
0
0
0
0
0
0
0
0
0.141304
0.192982
114
9
36
12.666667
0.619565
0.649123
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
75c948b50ba28e36e9593f19e8a6248874adf3de
103
py
Python
pyPILOT.py
grobertson/pyPILOT
20e778fc1c3421e5c0012f609302bb160b37c57f
[ "MIT" ]
null
null
null
pyPILOT.py
grobertson/pyPILOT
20e778fc1c3421e5c0012f609302bb160b37c57f
[ "MIT" ]
null
null
null
pyPILOT.py
grobertson/pyPILOT
20e778fc1c3421e5c0012f609302bb160b37c57f
[ "MIT" ]
null
null
null
import argparse import os, sys, re from lang.core import Runtime from lang.helpers import Commands
20.6
33
0.786408
16
103
5.0625
0.6875
0.197531
0
0
0
0
0
0
0
0
0
0
0.174757
103
5
33
20.6
0.952941
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
75fb8bbd7839e06f271df3fa3fadd5c2840a258e
196
py
Python
ape_ledger/__init__.py
evanblank3/ape-ledger
83b15357715bc881d4c83349ee3b72f60bb8ba33
[ "Apache-2.0" ]
1
2022-01-23T06:30:45.000Z
2022-01-23T06:30:45.000Z
ape_ledger/__init__.py
evanblank3/ape-ledger
83b15357715bc881d4c83349ee3b72f60bb8ba33
[ "Apache-2.0" ]
4
2021-11-07T19:38:02.000Z
2022-03-05T21:03:28.000Z
ape_ledger/__init__.py
evanblank3/ape-ledger
83b15357715bc881d4c83349ee3b72f60bb8ba33
[ "Apache-2.0" ]
2
2021-09-30T15:34:36.000Z
2021-12-22T00:12:58.000Z
from ape import plugins from ape_ledger.accounts import AccountContainer, LedgerAccount @plugins.register(plugins.AccountPlugin) def account_types(): return AccountContainer, LedgerAccount
21.777778
63
0.831633
21
196
7.666667
0.666667
0.086957
0
0
0
0
0
0
0
0
0
0
0.112245
196
8
64
24.5
0.925287
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
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
0
1
1
0
0
0
5
75fe2feb2ff53eadf8bd82c18eab41feb23c6816
225
py
Python
backend/core/controllers/utilities.py
pahumadad/fittrack
6d27d8f5ba92a550cb3c327f0cc603a73e37fa89
[ "MIT" ]
null
null
null
backend/core/controllers/utilities.py
pahumadad/fittrack
6d27d8f5ba92a550cb3c327f0cc603a73e37fa89
[ "MIT" ]
null
null
null
backend/core/controllers/utilities.py
pahumadad/fittrack
6d27d8f5ba92a550cb3c327f0cc603a73e37fa89
[ "MIT" ]
null
null
null
from flask import Blueprint from flask.json import jsonify utilities = Blueprint("utilities", __name__) @utilities.route("/api/heartbeat/", methods=["GET"]) def heartbeat_state(): return jsonify({"status": "OK"}), 200
22.5
52
0.724444
27
225
5.851852
0.703704
0.113924
0
0
0
0
0
0
0
0
0
0.015152
0.12
225
9
53
25
0.782828
0
0
0
0
0
0.155556
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
f9525797dd460f3289e0e9b48817722672603e3f
33
py
Python
settings/configuration.py
micbase/smartcontrol
64e7937db513ba1b12f945a4dd3f568d1bfd4925
[ "MIT" ]
null
null
null
settings/configuration.py
micbase/smartcontrol
64e7937db513ba1b12f945a4dd3f568d1bfd4925
[ "MIT" ]
null
null
null
settings/configuration.py
micbase/smartcontrol
64e7937db513ba1b12f945a4dd3f568d1bfd4925
[ "MIT" ]
null
null
null
from settings.dev_local import *
16.5
32
0.818182
5
33
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.896552
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
f99cb58e6fc35aa6575935d79c4a2bbb8e0c241c
26
py
Python
fer_pytorch/face_detect/__init__.py
stoneyang159/fer_pytorch
32e0748a084a366c70da1d88608050544e56c4bf
[ "MIT" ]
4
2020-02-20T08:18:49.000Z
2020-12-14T03:41:33.000Z
fer_pytorch/face_detect/__init__.py
stoneyang159/fer_pytorch
32e0748a084a366c70da1d88608050544e56c4bf
[ "MIT" ]
2
2020-03-02T06:54:44.000Z
2020-03-03T01:13:26.000Z
fer_pytorch/face_detect/__init__.py
stoneyang159/fer_pytorch
32e0748a084a366c70da1d88608050544e56c4bf
[ "MIT" ]
3
2020-02-27T15:28:10.000Z
2020-12-22T08:21:10.000Z
from .mtcnn import MTCNN
26
26
0.769231
4
26
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.192308
26
1
26
26
0.952381
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
dda4d6fd57262ea3e23de247e997324c944bf45d
33
py
Python
mlaas-fi/faults/__init__.py
filipefalcaos/mlaas-fi
2bb9c2d934b92c141cac39942c33f2bf78495c0c
[ "MIT" ]
null
null
null
mlaas-fi/faults/__init__.py
filipefalcaos/mlaas-fi
2bb9c2d934b92c141cac39942c33f2bf78495c0c
[ "MIT" ]
null
null
null
mlaas-fi/faults/__init__.py
filipefalcaos/mlaas-fi
2bb9c2d934b92c141cac39942c33f2bf78495c0c
[ "MIT" ]
null
null
null
from .faults import inject_fault
16.5
32
0.848485
5
33
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.931034
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
dda5e7c3f15a69ab560181c4d377902fdcd607fb
50
py
Python
5-playsound-module/run.py
GunarakulanGunaretnam/three-minutes-programming-series
f13ff820ace4229a63f0355707fdfa6ef184e1d6
[ "Apache-2.0" ]
null
null
null
5-playsound-module/run.py
GunarakulanGunaretnam/three-minutes-programming-series
f13ff820ace4229a63f0355707fdfa6ef184e1d6
[ "Apache-2.0" ]
null
null
null
5-playsound-module/run.py
GunarakulanGunaretnam/three-minutes-programming-series
f13ff820ace4229a63f0355707fdfa6ef184e1d6
[ "Apache-2.0" ]
null
null
null
import playsound playsound.playsound("song.mp3")
12.5
31
0.8
6
50
6.666667
0.666667
0.9
0
0
0
0
0
0
0
0
0
0.021739
0.08
50
4
31
12.5
0.847826
0
0
0
0
0
0.156863
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
ddf764b4e509281b9ac9887ff8d2acb85dd879d3
20
py
Python
diogenes/read/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
21
2015-09-28T15:04:53.000Z
2017-11-19T22:21:31.000Z
diogenes/read/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
28
2015-09-27T09:51:12.000Z
2021-11-08T17:26:39.000Z
diogenes/read/__init__.py
dssg/diogenes
52eda2a7adb22044e82779d05f91c927c1b95f3f
[ "MIT" ]
10
2015-11-21T19:50:14.000Z
2018-05-21T16:16:25.000Z
from read import *
6.666667
18
0.7
3
20
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.25
20
2
19
10
0.933333
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
fb227383cb08ec71c17c1473a6759a9435b607a2
352
py
Python
01_SamplesFromPyalgotrade/23_Homework01/getData.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
null
null
null
01_SamplesFromPyalgotrade/23_Homework01/getData.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
null
null
null
01_SamplesFromPyalgotrade/23_Homework01/getData.py
UpSea/PyAlgoTradeMid
c8edcbc089d92dbfbb8bb25af92a039146f6c6da
[ "MIT" ]
1
2021-04-10T06:04:04.000Z
2021-04-10T06:04:04.000Z
from pyalgotrade.tools import yahoofinance; yahoofinance.download_daily_bars('aeti', 2011, 'aeti-2011-yahoofinance.csv') yahoofinance.download_daily_bars('egan', 2011, 'egan-2011-yahoofinance.csv') yahoofinance.download_daily_bars('glng', 2011, 'glng-2011-yahoofinance.csv') yahoofinance.download_daily_bars('simo', 2011, 'simo-2011-yahoofinance.csv')
70.4
76
0.8125
45
352
6.177778
0.311111
0.28777
0.359712
0.417266
0.517986
0.517986
0.517986
0
0
0
0
0.095238
0.045455
352
5
77
70.4
0.732143
0
0
0
0
0
0.339943
0.294618
0
0
0
0
0
1
0
true
0
0.2
0
0.2
0
0
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
1
0
0
0
0
0
0
5
fb36dad6a3f4bddc08b9baa3ed76ef33288ca098
52
py
Python
lib/airtable/exceptions.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
lib/airtable/exceptions.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
lib/airtable/exceptions.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
class AirtableNoBaseConfigured(Exception): pass
17.333333
42
0.807692
4
52
10.5
1
0
0
0
0
0
0
0
0
0
0
0
0.134615
52
2
43
26
0.933333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
348d272e6dff306be0541b637cc5673a8b489034
89
py
Python
cen/experiment/__init__.py
slabbaki/discriminative-subtyping
fc9ce91da79aa35360ad916db19cd73449344335
[ "Apache-2.0" ]
1
2021-11-05T16:20:16.000Z
2021-11-05T16:20:16.000Z
cen/experiment/__init__.py
slabbaki/discriminative-subtyping
fc9ce91da79aa35360ad916db19cd73449344335
[ "Apache-2.0" ]
null
null
null
cen/experiment/__init__.py
slabbaki/discriminative-subtyping
fc9ce91da79aa35360ad916db19cd73449344335
[ "Apache-2.0" ]
null
null
null
from .crossval import cross_validate from .eval import evaluate from .train import train
22.25
36
0.831461
13
89
5.615385
0.615385
0
0
0
0
0
0
0
0
0
0
0
0.134831
89
3
37
29.666667
0.948052
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
34944b3fa7e3cc6165140b6797687891fdf9578f
81
py
Python
TrainingRestnet18withTinyImagenetDataset/src/train/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
TrainingRestnet18withTinyImagenetDataset/src/train/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
TrainingRestnet18withTinyImagenetDataset/src/train/__init__.py
csharpshooter/DeepLearning
c1d20660c32076468970f7376931e1fcd0d2644e
[ "MIT" ]
null
null
null
#models from .train_model import TrainModel from .trainhelper import TrainHelper
20.25
36
0.851852
10
81
6.8
0.7
0
0
0
0
0
0
0
0
0
0
0
0.111111
81
3
37
27
0.944444
0.074074
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
349d07a0053278dad811cfcb99c9da96cbfe612c
25,552
py
Python
build/lib/tests/test_calculate.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
16
2020-06-22T09:07:32.000Z
2022-01-12T13:42:12.000Z
tests/test_calculate.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
136
2020-05-22T21:43:23.000Z
2022-03-07T22:06:33.000Z
tests/test_calculate.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
3
2021-05-18T08:21:02.000Z
2022-03-25T01:08:10.000Z
import unittest import VESIcal as v class TestDissolvedVolatiles(unittest.TestCase): def setUp(self): # Sample with units as wtpt_oxides self.majors_wtpt = {'SiO2': 47.95, 'TiO2': 1.67, 'Al2O3': 17.32, 'FeO': 10.24, 'Fe2O3': 0.1, 'MgO': 5.76, 'CaO': 10.93, 'Na2O': 3.45, 'K2O': 1.99, 'P2O5': 0.51, 'MnO': 0.1} # create Sample object and set default units to wtpt_oxides self.sample_wtpt = v.Sample(self.majors_wtpt) self.sample_wtpt.set_default_units("wtpt_oxides") # create sample and set default units to mol_oxides self.sample_molox = v.Sample(self.majors_wtpt) self.sample_molox.set_default_units("mol_oxides") # BatchFile with test sample as defined above in wtpt_oxides try: self.batch_wtpt = v.BatchFile('BatchTest.xlsx', units='wtpt_oxides') except: self.batch_wtpt = v.BatchFile('tests/BatchTest.xlsx', units='wtpt_oxides') self.batch_wtpt.set_default_units("wtpt_oxides") # BatchFile with test sample as defined above in mol_oxides try: self.batch_molox = v.BatchFile('BatchTest.xlsx') except: self.batch_molox = v.BatchFile('tests/BatchTest.xlsx') self.batch_molox.set_default_units("mol_oxides") # solubilities calculated with VESIcal in wt% and translated externally to mol fraction self.shishkinaMixed_wtpt = {'H2O_liq': 2.24019, 'CO2_liq': 0.028104173} self.shishkinaMixed_molox = {'H2O_liq': 0.07415139, 'CO2_liq': 0.000379788} self.dixonMixed_wtpt = {'H2O_liq': 2.06748958, 'CO2_liq': 0.035434893} self.dixonMixed_molox = {'H2O_liq': 0.0688214, 'CO2_liq': 0.000481216} self.iaconomarzianoMixed_wtpt = {'H2O_liq': 2.0853469, 'CO2_liq': 0.0500067} self.iaconomarzianoMixed_molox ={'H2O_liq': 0.0693591, 'CO2_liq': 0.000680900} self.liuMixed_wtpt = {'H2O_liq': 2.293923234, 'CO2_liq': 0.029485739} self.liuMixed_molox = {'H2O_liq': 0.075793677, 'CO2_liq': 0.000398905} self.magmasat_wtpt = {'H2O_liq': 1.982045999, 'CO2_liq': 0.044939669} self.magmasat_molox = {'H2O_liq': 0.06615768, 'CO2_liq': 0.000614167} self.allisonCarbon_wtpt = 0.06101661 self.allisonCarbon_molox = 0.00089276 self.allisonCarbon_sunset_wtpt = 0.03249080 self.allisonCarbon_sunset_molox = 0.00047558 self.allisonCarbon_sfvf_wtpt = 0.02660018 self.allisonCarbon_sfvf_molox = 0.00038939 self.allisonCarbon_erebus_wtpt = 0.03314730 self.allisonCarbon_erebus_molox = 0.00048519 self.allisonCarbon_vesuvius_wtpt = 0.06101661 self.allisonCarbon_vesuvius_molox = 0.00089276 self.allisonCarbon_etna_wtpt = 0.04799322 self.allisonCarbon_etna_molox = 0.00070234 self.allisonCarbon_stromboli_wtpt = 0.03216744 self.allisonCarbon_stromboli_molox = 0.00047085 self.mooreWater_wtpt = 2.24343860 self.mooreWater_molox = 0.07427734 self.mixed_dict = {"ShishkinaIdealMixing": {'wtpt_oxides': self.shishkinaMixed_wtpt, 'mol_oxides': self.shishkinaMixed_molox}, "Dixon" : {'wtpt_oxides': self.dixonMixed_wtpt, 'mol_oxides': self.dixonMixed_molox}, "IaconoMarziano" : {'wtpt_oxides': self.iaconomarzianoMixed_wtpt, 'mol_oxides': self.iaconomarzianoMixed_molox}, "Liu" : {'wtpt_oxides': self.liuMixed_wtpt, 'mol_oxides': self.liuMixed_molox}, "MagmaSat" : {'wtpt_oxides': self.magmasat_wtpt, 'mol_oxides': self.magmasat_molox} } self.nonmixed_dict = {"AllisonCarbon" : {'wtpt_oxides': self.allisonCarbon_wtpt, 'mol_oxides': self.allisonCarbon_molox}, "AllisonCarbon_sunset" : {'wtpt_oxides': self.allisonCarbon_sunset_wtpt, 'mol_oxides': self.allisonCarbon_sunset_molox}, 'AllisonCarbon_sfvf' : {'wtpt_oxides': self.allisonCarbon_sfvf_wtpt, 'mol_oxides': self.allisonCarbon_sfvf_molox}, 'AllisonCarbon_erebus' : {'wtpt_oxides': self.allisonCarbon_erebus_wtpt, 'mol_oxides': self.allisonCarbon_erebus_molox}, 'AllisonCarbon_vesuvius' : {'wtpt_oxides': self.allisonCarbon_vesuvius_wtpt, 'mol_oxides': self.allisonCarbon_vesuvius_molox}, 'AllisonCarbon_etna' : {'wtpt_oxides': self.allisonCarbon_etna_wtpt, 'mol_oxides': self.allisonCarbon_etna_molox}, 'AllisonCarbon_stromboli' : {'wtpt_oxides': self.allisonCarbon_stromboli_wtpt, 'mol_oxides': self.allisonCarbon_stromboli_molox}, 'MooreWater' : {'wtpt_oxides': self.mooreWater_wtpt, 'mol_oxides': self.mooreWater_molox}, } def test_calculate_single_wtpt_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_dissolved_volatiles(self.sample_wtpt, pressure=1000, temperature=1000, X_fluid=0.5, model=model, verbose=False).result known_result = self.mixed_dict[model]['wtpt_oxides'] for k in calcd_result.keys(): self.assertAlmostEqual(calcd_result[k], known_result[k], places=4) # def test_calculate_batch_wtpt_mixed(self): # for model in self.mixed_dict.keys(): # calcd_result = self.batch_wtpt.calculate_dissolved_volatiles(self.sample_wtpt, pressure=1000, temperature=1000, X_fluid=0.5, model=model, verbose=False).result # known_result = self.mixed_dict[model]['wtpt_oxides'] # for k in calcd_result.keys(): # self.assertAlmostEqual(calcd_result[k], known_result[k], places=4) def test_calculate_single__wtpt_nonmixed(self): for model in self.nonmixed_dict.keys(): calcd_result = v.calculate_dissolved_volatiles(self.sample_wtpt, pressure=1000, temperature=1000, X_fluid=0.5, model=model, verbose=False).result known_result = self.nonmixed_dict[model]['wtpt_oxides'] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_single__molox_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_dissolved_volatiles(self.sample_molox, pressure=1000, temperature=1000, X_fluid=0.5, model=model, verbose=False).result known_result = self.mixed_dict[model]['mol_oxides'] for k in calcd_result.keys(): self.assertAlmostEqual(calcd_result[k], known_result[k], places=4) def test_calculate_single__molox_nonmixed(self): for model in self.nonmixed_dict.keys(): calcd_result = v.calculate_dissolved_volatiles(self.sample_molox, pressure=1000, temperature=1000, X_fluid=0.5, model=model, verbose=False).result known_result = self.nonmixed_dict[model]['mol_oxides'] self.assertAlmostEqual(calcd_result, known_result, places=4) class TestSaturationPressure(unittest.TestCase): def setUp(self): # Sample with units as wtpt_oxides self.majors_wtpt = {'SiO2': 47.95, 'TiO2': 1.67, 'Al2O3': 17.32, 'FeO': 10.24, 'Fe2O3': 0.1, 'MgO': 5.76, 'CaO': 10.93, 'Na2O': 3.45, 'K2O': 1.99, 'P2O5': 0.51, 'MnO': 0.1, 'H2O': 2.0, 'CO2': 0.1} # Set conditions of calculation self.temperature = 1000 # create Sample object and set default units to wtpt_oxides self.sample_wtpt = v.Sample(self.majors_wtpt) self.sample_wtpt.set_default_units("wtpt_oxides") # create sample and set default units to mol_oxides self.sample_molox = v.Sample(self.majors_wtpt) self.sample_molox.set_default_units("mol_oxides") # BatchFile with test sample as defined above in wtpt_oxides try: self.batch_wtpt = v.BatchFile('BatchTest.xlsx', units='wtpt_oxides') except: self.batch_wtpt = v.BatchFile('tests/BatchTest.xlsx', units='wtpt_oxides') self.batch_wtpt.set_default_units("wtpt_oxides") # BatchFile with test sample as defined above in mol_oxides try: self.batch_molox = v.BatchFile('BatchTest.xlsx') except: self.batch_molox = v.BatchFile('tests/BatchTest.xlsx') self.batch_molox.set_default_units("mol_oxides") # saturation pressures calculated with VESIcal self.shishkinaMixed = 1903.1192979127836 self.dixonMixed = 1847.1637265676327 self.iaconomarzianoMixed = 1437.268470833670 self.liuMixed = 2157.191497153953 self.magmasat = 1630 # Generated with MagmaSat app self.shishkinaCarbon = 1507.647195272281 self.dixonCarbon = 1375.61109469857 self.iaconomarzianoCarbon = 1215.0221712464863 self.allisonCarbon = 821.9428189121331 self.allisonCarbon_sunset = 1468.1852834512158 self.allisonCarbon_sfvf = 1728.744343059253 self.allisonCarbon_erebus = 1439.8801634549727 self.allisonCarbon_vesuvius = 821.9428189121331 self.allisonCarbon_etna = 1039.5129481979354 self.allisonCarbon_stromboli = 1472.5760950857439 self.liuCarbon = 2246.2067748765 self.shishkinaWater = 395.4721026237296 self.dixonWater = 431.1140172567279 self.iaconomarzianoWater = 459.7132843026062 self.mooreWater = 366.7939178950552 self.liuWater = 374.4357814145504 self.mixed_dict = {"ShishkinaIdealMixing": self.shishkinaMixed, "Dixon" : self.dixonMixed, "IaconoMarziano" : self.iaconomarzianoMixed, "Liu" : self.liuMixed, "MagmaSat" : self.magmasat } self.carbon_dict = {"ShishkinaCarbon" : self.shishkinaCarbon, "DixonCarbon" : self.dixonCarbon, "IaconoMarzianoCarbon" : self.iaconomarzianoCarbon, "AllisonCarbon" : self.allisonCarbon, "AllisonCarbon_sunset" : self.allisonCarbon_sunset, 'AllisonCarbon_sfvf' : self.allisonCarbon_sfvf, 'AllisonCarbon_erebus' : self.allisonCarbon_erebus, 'AllisonCarbon_vesuvius' : self.allisonCarbon_vesuvius, 'AllisonCarbon_etna' : self.allisonCarbon_etna, 'AllisonCarbon_stromboli' : self.allisonCarbon_stromboli, 'LiuCarbon' : self.liuCarbon } self.water_dict = {"ShishkinaWater" : self.shishkinaWater, "DixonWater" : self.dixonWater, "IaconoMarzianoWater" : self.iaconomarzianoWater, "MooreWater" : self.mooreWater, "LiuWater" : self.liuWater } def test_calculate_single_wtpt_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_wtpt, temperature=self.temperature, model=model, verbose=False).result known_result = self.mixed_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_batch_wtpt_mixed(self): for model in self.mixed_dict.keys(): batch_result = self.batch_wtpt.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=True) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.mixed_dict[model] #print("Pi* wtpt = " + str(batch_result['PiStar_VESIcal'].loc['test_samp'])) self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_single_wtpt_carbon(self): for model in self.carbon_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_wtpt, temperature=self.temperature, model=model, verbose=False).result known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_batch_wtpt_carbon(self): for model in self.carbon_dict.keys(): batch_result = self.batch_wtpt.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=False) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_single_wtpt_water(self): for model in self.water_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_wtpt, temperature=self.temperature, model=model, verbose=False).result known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_batch_wtpt_water(self): for model in self.water_dict.keys(): batch_result = self.batch_wtpt.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=False) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculation_single_molox_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_molox, temperature=self.temperature, model=model, verbose=False).result known_result = self.mixed_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculation_batch_molox_mixed(self): for model in self.mixed_dict.keys(): batch_result = self.batch_molox.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=True) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.mixed_dict[model] #print("Pi* molox = " + str(batch_result['PiStar_VESIcal'].loc['test_samp'])) self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_single_molox_carbon(self): for model in self.carbon_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_molox, temperature=self.temperature, model=model, verbose=False).result known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_batch_molox_carbon(self): for model in self.carbon_dict.keys(): batch_result = self.batch_molox.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=False) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_single_molox_water(self): for model in self.water_dict.keys(): calcd_result = v.calculate_saturation_pressure(self.sample_molox, temperature=self.temperature, model=model, verbose=False).result known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_batch_molox_water(self): for model in self.water_dict.keys(): batch_result = self.batch_molox.calculate_saturation_pressure(temperature=self.temperature, model=model, verbose=False) calcd_result = batch_result['SaturationP_bars_VESIcal'].loc['test_samp'] known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) class TestEquilibriumFluidComp(unittest.TestCase): def setUp(self): # Sample with units as wtpt_oxides self.majors_wtpt = {'SiO2': 47.95, 'TiO2': 1.67, 'Al2O3': 17.32, 'FeO': 10.24, 'Fe2O3': 0.1, 'MgO': 5.76, 'CaO': 10.93, 'Na2O': 3.45, 'K2O': 1.99, 'P2O5': 0.51, 'MnO': 0.1, 'H2O': 2.0, 'CO2': 0.1} # Set conditions of calculation self.temperature = 1000 self.pressure = 500 # create Sample object and set default units to wtpt_oxides self.sample_wtpt = v.Sample(self.majors_wtpt) self.sample_wtpt.set_default_units("wtpt_oxides") # create sample and set default units to mol_oxides self.sample_molox = v.Sample(self.majors_wtpt) self.sample_molox.set_default_units("mol_oxides") # equilibrium fluid comps calculated with VESIcal self.shishkinaMixed = {'H2O': 0.7158408854774682, 'CO2': 0.28415911452253184} self.dixonMixed = {'H2O': 0.7750859842655139, 'CO2': 0.2249140157344861} self.iaconomarzianoMixed = {'H2O': 0.8103088488568084, 'CO2': 0.18969115114319157} self.liuMixed = {'H2O': 0.7066707740811572, 'CO2': 0.2933292259188428} self.magmasat = {'CO2': 0.219354223233457, 'H2O': 0.780645776766543} self.shishkinaCarbon = 1.0 self.dixonCarbon = 1.0 self.iaconomarzianoCarbon = 1.0 self.allisonCarbon = 1.0 self.allisonCarbon_sunset = 1.0 self.allisonCarbon_sfvf = 1.0 self.allisonCarbon_erebus = 1.0 self.allisonCarbon_vesuvius = 1.0 self.allisonCarbon_etna = 1.0 self.allisonCarbon_stromboli = 1.0 self.liuCarbon = 0 self.shishkinaWater = 0.0 self.dixonWater = 0.0 self.iaconomarzianoWater = 0.0 self.mooreWater = 0.7002733835379757 self.liuWater = 0.758191771357082 self.mixed_dict = {"ShishkinaIdealMixing": self.shishkinaMixed, "Dixon" : self.dixonMixed, "IaconoMarziano" : self.iaconomarzianoMixed, "Liu" : self.liuMixed, "MagmaSat" : self.magmasat } self.carbon_dict = {"ShishkinaCarbon" : self.shishkinaCarbon, "DixonCarbon" : self.dixonCarbon, "IaconoMarzianoCarbon" : self.iaconomarzianoCarbon, "AllisonCarbon" : self.allisonCarbon, "AllisonCarbon_sunset" : self.allisonCarbon_sunset, 'AllisonCarbon_sfvf' : self.allisonCarbon_sfvf, 'AllisonCarbon_erebus' : self.allisonCarbon_erebus, 'AllisonCarbon_vesuvius' : self.allisonCarbon_vesuvius, 'AllisonCarbon_etna' : self.allisonCarbon_etna, 'AllisonCarbon_stromboli' : self.allisonCarbon_stromboli, 'LiuCarbon' : self.liuCarbon } self.water_dict = {"ShishkinaWater" : self.shishkinaWater, "DixonWater" : self.dixonWater, "IaconoMarzianoWater" : self.iaconomarzianoWater, "MooreWater" : self.mooreWater, "LiuWater" : self.liuWater } def test_calculate_wtpt_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_wtpt, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.mixed_dict[model] for key in known_result.keys(): self.assertAlmostEqual(calcd_result[key], known_result[key], places=4) def test_calculate_wtpt_carbon(self): for model in self.carbon_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_wtpt, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_wtpt_water(self): for model in self.water_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_wtpt, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculation_molox_mixed(self): for model in self.mixed_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_molox, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.mixed_dict[model] for key in known_result.keys(): self.assertAlmostEqual(calcd_result[key], known_result[key], places=4) def test_calculate_molox_carbon(self): for model in self.carbon_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_molox, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.carbon_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) def test_calculate_molox_water(self): for model in self.water_dict.keys(): calcd_result = v.calculate_equilibrium_fluid_comp(self.sample_molox, temperature=self.temperature, pressure=self.pressure, model=model, verbose=False).result known_result = self.water_dict[model] self.assertAlmostEqual(calcd_result, known_result, places=4) if __name__ == '__main__': unittest.main()
56.406181
173
0.562422
2,454
25,552
5.605949
0.095762
0.069201
0.043251
0.023406
0.750091
0.719343
0.719343
0.718689
0.718689
0.713455
0
0.069601
0.354493
25,552
452
174
56.530973
0.76446
0.05886
0
0.634877
0
0
0.079309
0.011615
0
0
0
0
0.059946
1
0.06812
false
0
0.00545
0
0.081744
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
34e1950394529a3e858ce66cec530bad6bedce80
197
py
Python
lib/JumpScale/clients/itsyouonline/ClientFactory.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
8
2016-04-14T14:04:57.000Z
2020-06-09T00:24:34.000Z
lib/JumpScale/clients/itsyouonline/ClientFactory.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
418
2016-01-25T10:30:00.000Z
2021-09-08T12:29:13.000Z
lib/JumpScale/clients/itsyouonline/ClientFactory.py
Jumpscale/jumpscale_core8
f80ac9b1ab99b833ee7adb17700dcf4ef35f3734
[ "Apache-2.0" ]
9
2016-04-21T07:21:17.000Z
2022-01-24T10:35:54.000Z
from JumpScale.clients.itsyouonline import Client class ClientFactory: def __init__(self): self.__jslocation__ = 'j.clients.itsyouonline' def get(self): return Client()
17.909091
54
0.695431
21
197
6.142857
0.714286
0.294574
0
0
0
0
0
0
0
0
0
0
0.218274
197
10
55
19.7
0.837662
0
0
0
0
0
0.111675
0.111675
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
550acd72ca7ac10e0f8ebb55e0a30f40ba38f065
18
py
Python
tests/test_nodegraph.py
florianeinfalt/nodegraph
fa117f069bd618d5aa98dfc62f3ce88acc5c77b2
[ "Apache-2.0" ]
1
2018-07-10T09:29:04.000Z
2018-07-10T09:29:04.000Z
tests/test_nodegraph.py
florianeinfalt/nodegraph
fa117f069bd618d5aa98dfc62f3ce88acc5c77b2
[ "Apache-2.0" ]
null
null
null
tests/test_nodegraph.py
florianeinfalt/nodegraph
fa117f069bd618d5aa98dfc62f3ce88acc5c77b2
[ "Apache-2.0" ]
null
null
null
# nodegraph tests
9
17
0.777778
2
18
7
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
18
1
18
18
0.933333
0.833333
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
550cfef0e1c05ad7387f14a9f99f66729950a988
104
py
Python
07.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
07.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
07.py
takeoverjp/nlp100
58c677fb9121f8e0b8deb54458a8b54db13aa014
[ "MIT" ]
null
null
null
#!/usr/bin/python3 def temp(x, y, z): return "{}時の{}は{}".format(x, y, z) print(temp(12, "気温", 22.4))
17.333333
36
0.548077
21
104
2.714286
0.809524
0.070175
0.105263
0
0
0
0
0
0
0
0
0.067416
0.144231
104
5
37
20.8
0.573034
0.163462
0
0
0
0
0.127907
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
9b4fde69d1d2725bb36b6883b6869003e02c090e
113
py
Python
test.py
chand1012/logdna-xml-transcriber
efc665b10a35e4c728a0362ad5fe208943b23097
[ "MIT" ]
1
2020-10-14T16:09:35.000Z
2020-10-14T16:09:35.000Z
test.py
chand1012/logdna-xml-transcriber
efc665b10a35e4c728a0362ad5fe208943b23097
[ "MIT" ]
null
null
null
test.py
chand1012/logdna-xml-transcriber
efc665b10a35e4c728a0362ad5fe208943b23097
[ "MIT" ]
null
null
null
from feed import generate_feed from dna import get_logs logs = get_logs() feed = generate_feed(logs) print(feed)
18.833333
30
0.79646
19
113
4.526316
0.421053
0.27907
0
0
0
0
0
0
0
0
0
0
0.132743
113
6
31
18.833333
0.877551
0
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
9b93b3ef3b25c4447d07e04d00f186a70b85747e
1,049
py
Python
main/settings/rest.py
ruslankrivoshein/django-rest-framework-project-skeleton-example
477fbd2bfce0c30c1b8b0fd725f99bcdde5cbb8c
[ "MIT" ]
null
null
null
main/settings/rest.py
ruslankrivoshein/django-rest-framework-project-skeleton-example
477fbd2bfce0c30c1b8b0fd725f99bcdde5cbb8c
[ "MIT" ]
8
2021-03-18T23:06:15.000Z
2021-11-10T11:50:08.000Z
main/settings/rest.py
ruslankrivoshein/django-rest-framework-project-skeleton-example
477fbd2bfce0c30c1b8b0fd725f99bcdde5cbb8c
[ "MIT" ]
null
null
null
REST_FRAMEWORK = { 'PAGE_SIZE': 10, 'DEFAULT_PAGINATION_CLASS': 'rest_framework_json_api.pagination.JsonApiPageNumberPagination', 'DEFAULT_METADATA_CLASS': 'rest_framework_json_api.metadata.JSONAPIMetadata', 'DEFAULT_FILTER_BACKENDS': ( 'rest_framework_json_api.filters.QueryParameterValidationFilter', 'rest_framework_json_api.filters.OrderingFilter', 'rest_framework_json_api.django_filters.DjangoFilterBackend', 'rest_framework.filters.SearchFilter', ), 'DEFAULT_PARSER_CLASSES': ( 'rest_framework_json_api.parsers.JSONParser', 'rest_framework.parsers.FormParser', 'rest_framework.parsers.MultiPartParser' ), 'EXCEPTION_HANDLER': 'rest_framework_json_api.exceptions.exception_handler', 'SEARCH_PARAM': 'filter[search]', 'TEST_REQUEST_RENDERER_CLASSES': ( 'rest_framework_json_api.renderers.JSONRenderer', ), 'TEST_REQUEST_DEFAULT_FORMAT': 'vnd.api+json', } JSON_API_FORMAT_FIELD_NAMES = 'camelize' JSON_API_FORMAT_TYPES = 'camelize'
40.346154
97
0.750238
107
1,049
6.850467
0.401869
0.212824
0.185539
0.218281
0.215553
0
0
0
0
0
0
0.00223
0.1449
1,049
25
98
41.96
0.814939
0
0
0.125
0
0
0.714013
0.63775
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
9ba1117915748e046bdf5f5cc70a98a7e021a224
79
py
Python
functions/runtimes-scenarios/python/pythonfunction/handler.py
mabuaisha/terraform-openstack-faas-nomad
d2315e9f8f0700b3db967e385cb804f08902037e
[ "Apache-2.0" ]
null
null
null
functions/runtimes-scenarios/python/pythonfunction/handler.py
mabuaisha/terraform-openstack-faas-nomad
d2315e9f8f0700b3db967e385cb804f08902037e
[ "Apache-2.0" ]
null
null
null
functions/runtimes-scenarios/python/pythonfunction/handler.py
mabuaisha/terraform-openstack-faas-nomad
d2315e9f8f0700b3db967e385cb804f08902037e
[ "Apache-2.0" ]
null
null
null
def handle(event, context): return "Hello From Python Serverless Function"
26.333333
50
0.759494
10
79
6
1
0
0
0
0
0
0
0
0
0
0
0
0.164557
79
2
51
39.5
0.909091
0
0
0
0
0
0.468354
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
32e0e2441f1a059be9c69d68a30221e67fb95092
62
py
Python
prom2teams/exceptions.py
lindhor/prom2teams
32d632f1f8d3d827c5cbba5440b5e3885fddd128
[ "Apache-2.0" ]
null
null
null
prom2teams/exceptions.py
lindhor/prom2teams
32d632f1f8d3d827c5cbba5440b5e3885fddd128
[ "Apache-2.0" ]
null
null
null
prom2teams/exceptions.py
lindhor/prom2teams
32d632f1f8d3d827c5cbba5440b5e3885fddd128
[ "Apache-2.0" ]
null
null
null
class MissingConnectorConfigKeyException(Exception): pass
20.666667
52
0.83871
4
62
13
1
0
0
0
0
0
0
0
0
0
0
0
0.112903
62
2
53
31
0.945455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
32f47d11aeb45b72fad50b085358a1c48415112a
97
py
Python
providers/jd.py
AzusaChino/iris-python
92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2
[ "MIT" ]
null
null
null
providers/jd.py
AzusaChino/iris-python
92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2
[ "MIT" ]
null
null
null
providers/jd.py
AzusaChino/iris-python
92aa6bf23d5bf8f2ac4f3d2b0ee5f36e177d97d2
[ "MIT" ]
null
null
null
from providers import Provider class Jd(Provider): def __init__(self) -> None: pass
16.166667
31
0.670103
12
97
5.083333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.247423
97
6
32
16.166667
0.835616
0
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
fd05c3d41448c66518c67edab4b9da2da4bd3ff0
983
py
Python
util/printer.py
doronfeldman/python-101
a1c7658e0871d161e869ac367b5289917ffac419
[ "MIT" ]
null
null
null
util/printer.py
doronfeldman/python-101
a1c7658e0871d161e869ac367b5289917ffac419
[ "MIT" ]
null
null
null
util/printer.py
doronfeldman/python-101
a1c7658e0871d161e869ac367b5289917ffac419
[ "MIT" ]
null
null
null
from colorama import init, Fore, Back, Style init(autoreset=True) def print_red(message): print(f'{Style.BRIGHT}{Fore.RED}{message}') def print_blue(message): print(f'{Style.BRIGHT}{Fore.BLUE}{message}') def print_cyan(message): print(f'{Style.BRIGHT}{Fore.CYAN}{message}') def print_explanation(message): print_cyan(message) def print_green(message): print(f'{Style.BRIGHT}{Fore.GREEN}{message}') def print_magenta(message): print(f'{Style.BRIGHT}{Fore.MAGENTA}{message}') def print_runtime(message): print_magenta(message) def print_yellow(message): print(f'{Style.BRIGHT}{Fore.YELLOW}{message}') def print_code(message): print_yellow(message) def print_white(message): print(f'{Style.BRIGHT}{Fore.WHITE}{message}') def show_off(message): print_red(message) print_blue(message) print_explanation(message) print_green(message) print_runtime(message) print_code(message) print_white(message)
18.203704
51
0.71414
133
983
5.120301
0.195489
0.299559
0.198238
0.185022
0.287812
0.287812
0
0
0
0
0
0
0.140387
983
53
52
18.54717
0.805917
0
0
0
0
0
0.24822
0.24822
0
0
0
0
0
1
0.366667
false
0
0.033333
0
0.4
0.9
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
1
0
0
0
0
0
1
0
5
fd245887ca3b5f1f0c3bca79eb6efe8ad94cf7f5
275
py
Python
lib/computing_flow_layer/computing_flow_op.py
aditya2592/PoseCNN
a763120ce0ceb55cf3432980287ef463728f8052
[ "MIT" ]
655
2018-03-21T19:55:45.000Z
2022-03-25T20:41:21.000Z
lib/computing_flow_layer/computing_flow_op.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
122
2018-04-04T13:57:49.000Z
2022-03-18T09:28:44.000Z
lib/computing_flow_layer/computing_flow_op.py
SergioRAgostinho/PoseCNN
da9eaae850eed7521a2a48a4d27474d655caab42
[ "MIT" ]
226
2018-03-22T01:40:04.000Z
2022-03-17T11:56:14.000Z
import tensorflow as tf import os.path as osp filename = osp.join(osp.dirname(__file__), 'computing_flow.so') _computing_flow_module = tf.load_op_library(filename) compute_flow = _computing_flow_module.computeflow compute_flow_grad = _computing_flow_module.computeflow_grad
34.375
63
0.847273
40
275
5.325
0.525
0.244131
0.267606
0.28169
0
0
0
0
0
0
0
0
0.08
275
7
64
39.285714
0.841897
0
0
0
0
0
0.061818
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
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
1
0
0
0
0
5
fd2e8cd7ecd1b26ed79a15a422b35f18314a9d6f
43
py
Python
python/c572.py
doyansu/zerojugde
5c7be25c88224ae64ab93c0f52127a9a97d180e8
[ "MIT" ]
2
2021-09-16T22:28:47.000Z
2021-09-17T00:24:40.000Z
python/c572.py
doyansu/zerojugde
5c7be25c88224ae64ab93c0f52127a9a97d180e8
[ "MIT" ]
null
null
null
python/c572.py
doyansu/zerojugde
5c7be25c88224ae64ab93c0f52127a9a97d180e8
[ "MIT" ]
1
2021-12-14T04:08:13.000Z
2021-12-14T04:08:13.000Z
def main(): print('Hello CIA!') main()
10.75
23
0.55814
6
43
4
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.209302
43
4
24
10.75
0.705882
0
0
0
0
0
0.227273
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.333333
0.333333
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
1
0
0
0
0
0
0
5
fd32b6f0116cf650b9b705804fef345985be5fbd
36
py
Python
rest_friendship/tests/test_serializer.py
Visitey/Visitey-Server
e91c0ac52e943af9a739c42a6a3fe8603994c6b6
[ "MIT" ]
1
2018-06-06T09:46:00.000Z
2018-06-06T09:46:00.000Z
rest_friendship/tests/test_serializer.py
Visitey/Visitey-Server
e91c0ac52e943af9a739c42a6a3fe8603994c6b6
[ "MIT" ]
null
null
null
rest_friendship/tests/test_serializer.py
Visitey/Visitey-Server
e91c0ac52e943af9a739c42a6a3fe8603994c6b6
[ "MIT" ]
null
null
null
# No methods in serializers for now
18
35
0.777778
6
36
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.194444
36
1
36
36
0.965517
0.916667
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
fd46a3d86a2825eae6ec2a45e22504aa9210d223
2,969
py
Python
coms/src/mapmerge/keypoint_merge.py
tylerferrara/coms
5070b65836f0ff3538f787e4cbe46203355270ea
[ "MIT" ]
null
null
null
coms/src/mapmerge/keypoint_merge.py
tylerferrara/coms
5070b65836f0ff3538f787e4cbe46203355270ea
[ "MIT" ]
5
2022-02-11T00:22:24.000Z
2022-02-15T01:31:28.000Z
coms/src/mapmerge/keypoint_merge.py
tylerferrara/coms
5070b65836f0ff3538f787e4cbe46203355270ea
[ "MIT" ]
null
null
null
# TODO @cjmclaughlin further exception handling and fault detection (through sampling/ensemble method) import numpy as np import cv2 from mapmerge.constants import * from mapmerge.merge_utils import blur_map, apply_warp, distance_transform, median_filter, pad_maps def sift_mapmerge(map1, map2, transform=False): map1, map2 = pad_maps(map1, map2) try: sift = cv2.SIFT_create() merge_map1 = median_filter(blur_map(distance_transform(map1))) if transform else map1 merge_map2 = median_filter(blur_map(distance_transform(map2))) if transform else map2 kp1, desc1 = sift.detectAndCompute(merge_map1, None) # TODO eval with and without blur kp2, desc2 = sift.detectAndCompute(merge_map2, None) index_params = dict(algorithm=0, trees=5) search_params = dict() flann = cv2.FlannBasedMatcher(index_params, search_params) matches = flann.knnMatch(desc1, desc2, k=2) good_matches = [] for m, n in matches: # lowes ratio if m.distance < 0.75 * n.distance: good_matches.append(m) src_pts = np.float32([kp1[m.queryIdx].pt for m in good_matches]).reshape(-1, 1, 2) dst_pts = np.float32([kp2[m.trainIdx].pt for m in good_matches]).reshape(-1, 1, 2) M, mask = cv2.estimateAffine2D(dst_pts, src_pts, confidence=0.999, ransacReprojThreshold=5.0, refineIters=30) return apply_warp(map2, M), M except: # failed merge print("MERGE FAILED: Returning Original Map") return np.ones_like(map2, dtype=np.uint8) * UNKNOWN def orb_mapmerge(map1, map2, transform=False): map1, map2 = pad_maps(map1, map2) try: orb = cv2.ORB_create(nfeatures=1500, ) merge_map1 = median_filter(blur_map(distance_transform(map1))) if transform else map1 merge_map2 = median_filter(blur_map(distance_transform(map2))) if transform else map2 kp1, desc1 = orb.detectAndCompute(merge_map1, None) kp2, desc2 = orb.detectAndCompute(merge_map2, None) index_params = dict(algorithm=6, table_number=12, key_size=10, multi_probe_level=2) search_params = dict() flann = cv2.FlannBasedMatcher(index_params, search_params) matches = flann.knnMatch(desc1, desc2, k=2) good_matches = [] for m, n in matches: # use slightly higher ratio for ORB if m.distance < 0.8 * n.distance: good_matches.append(m) src_pts = np.float32([kp1[m.queryIdx].pt for m in good_matches]).reshape(-1, 1, 2) dst_pts = np.float32([kp2[m.trainIdx].pt for m in good_matches]).reshape(-1, 1, 2) M, mask = cv2.estimateAffine2D(dst_pts, src_pts, confidence=0.999, ransacReprojThreshold=5.0, refineIters=30) return apply_warp(map2, M), M except: # failed merge print("MERGE FAILED: Returning Original Map") return np.ones_like(map2, dtype=np.uint8) * UNKNOWN
47.126984
117
0.669586
409
2,969
4.704156
0.286064
0.045738
0.033264
0.039501
0.740125
0.740125
0.740125
0.740125
0.685031
0.685031
0
0.04976
0.22836
2,969
62
118
47.887097
0.790048
0.06871
0
0.68
0
0
0.026106
0
0
0
0
0.016129
0
1
0.04
false
0
0.08
0
0.2
0.04
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
5
fd5d9bffe2ff0f0061b422e27877a390f60739ab
2,422
py
Python
10. circle/circle_solutions.py
jeury301/python-morsels
fdbe0b1c80120e2d1388808816538fea5dab8892
[ "MIT" ]
2
2018-08-21T10:29:57.000Z
2019-04-17T07:05:17.000Z
10. circle/circle_solutions.py
jeury301/python-morsels
fdbe0b1c80120e2d1388808816538fea5dab8892
[ "MIT" ]
null
null
null
10. circle/circle_solutions.py
jeury301/python-morsels
fdbe0b1c80120e2d1388808816538fea5dab8892
[ "MIT" ]
null
null
null
class V0Circle: """Circle with radius, area, diameter. This answer doesn't really work. Missing two features: - Default radius to 1 - Nice string representation """ def __init__(self, radius): self.radius = radius self.area = math.pi * self.radius ** 2 self.diameter = self.radius * 2 class V1Circle: """Circle with radius, area, diameter. Adding the string representation. Using 'f' for string formatting is only available in python3. Defaulting radius to 1. """ def __init__(self, radius=1): self.radius = radius self.area = math.pi * self.radius ** 2 self.diameter = self.radius * 2 def __repr__(self): return f'Circle({self.radius})' class V2Circle: """Circle with radius, area, and diameter. Making area and diamter a property. """ def __init__(self, radius=1): self.radius = radius def __repr__(self): return f'Circle({self.radius})' @property def area(self): return math.pi * self.radius ** 2 @property def diameter(self): return self.radius * 2 class V3Circle: """Circle with radius, area, and diameter. Updating radius when updating the diameter. Adding a setter to the diameter property. """ def __init__(self, radius=1): self.radius = radius def __repr__(self): return f'Circle({self.radius})' @property def area(self): return math.pi * self.radius ** 2 @property def diameter(self): return self.radius * 2 @diameter.setter def diameter(self, diameter): self.radius = diameter / 2 class V4Circle: """Circle with radius, area, and diameter. Making radius a property. Raising exception for negative values. """ def __init__(self, radius=1): self.radius = radius def __repr__(self): return f'Circle({self.radius})' @property def area(self): return math.pi * self.radius ** 2 @property def diameter(self): return self.radius * 2 @diameter.setter def diameter(self, diameter): self.radius = diameter / 2 @property def radius(self): return self._radius @radius.setter def radius(self, radius): if radius < 0: raise ValueError("Radius cannot be negative") self._radius = radius
22.220183
69
0.609414
294
2,422
4.891156
0.217687
0.201669
0.076495
0.069541
0.639082
0.600139
0.578581
0.527121
0.49096
0.49096
0
0.014543
0.290256
2,422
108
70
22.425926
0.82199
0.255574
0
0.779661
0
0
0.063817
0.04918
0
0
0
0
0
1
0.322034
false
0
0
0.186441
0.59322
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
fd6352b61d0eb377d2660e8f40b9febb40789245
84
py
Python
wikiSite/wikiPage/admin.py
Humein/WikiList
cf97e3bd688ef4e727943bd184e929d9a0edc883
[ "MIT" ]
2
2020-04-26T01:41:31.000Z
2021-07-16T07:49:50.000Z
wikiSite/wikiPage/admin.py
Humein/WikiList
cf97e3bd688ef4e727943bd184e929d9a0edc883
[ "MIT" ]
null
null
null
wikiSite/wikiPage/admin.py
Humein/WikiList
cf97e3bd688ef4e727943bd184e929d9a0edc883
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import WiKi admin.site.register(WiKi)
21
32
0.821429
13
84
5.307692
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.107143
84
4
33
21
0.92
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
b5d15a94bb69b396d39b09770152c14ae58b3df6
150
py
Python
src/players/difference_plus.py
johnjajeh/Sage
e6f7578eb3c077f6eae87c269511a6ccf42842a6
[ "MIT" ]
null
null
null
src/players/difference_plus.py
johnjajeh/Sage
e6f7578eb3c077f6eae87c269511a6ccf42842a6
[ "MIT" ]
null
null
null
src/players/difference_plus.py
johnjajeh/Sage
e6f7578eb3c077f6eae87c269511a6ccf42842a6
[ "MIT" ]
null
null
null
from players.player import Player class PlayerDifferencePlus(Player): def play(self, low: int, high: int) -> int: return high - low + 1;
25
47
0.673333
20
150
5.05
0.7
0
0
0
0
0
0
0
0
0
0
0.008547
0.22
150
5
48
30
0.854701
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
b5d256b081cea68012bb33a9458a8d0585a33dc6
95
py
Python
server/src/testing/testing_message.py
JWen00/socket_chatting
d69cb58056a34118a245cbd39c51e61a77168d28
[ "MIT" ]
1
2020-04-16T08:01:05.000Z
2020-04-16T08:01:05.000Z
server/src/testing/testing_message.py
JWen00/socket_chatting
d69cb58056a34118a245cbd39c51e61a77168d28
[ "MIT" ]
null
null
null
server/src/testing/testing_message.py
JWen00/socket_chatting
d69cb58056a34118a245cbd39c51e61a77168d28
[ "MIT" ]
null
null
null
# Test: user doesn't exist # Test: User offline # Test: User Blocked # Test: user online
13.571429
27
0.663158
14
95
4.5
0.571429
0.507937
0
0
0
0
0
0
0
0
0
0
0.242105
95
7
28
13.571429
0.875
0.873684
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
b5e959da7e2709292de82ff320cf72a3ca7ceab3
210
py
Python
build/lib/vibhaga/__init__.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
null
null
null
build/lib/vibhaga/__init__.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
3
2020-06-09T04:20:48.000Z
2022-03-31T12:44:59.000Z
vibhaga/__init__.py
keremkoseoglu/vibhaga
6978ff55e5a6e945098e7127ce49cfef4b0747d0
[ "MIT" ]
null
null
null
""" Vibhaga initialization module """ from os import path from sys import modules def get_root_path() -> str: """ Returns the root path of Vibhaga """ return path.dirname(modules['__main__'].__file__)
26.25
53
0.709524
28
210
4.964286
0.714286
0.115108
0
0
0
0
0
0
0
0
0
0
0.171429
210
7
54
30
0.798851
0.3
0
0
0
0
0.06015
0
0
0
0
0
0
1
0.25
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
b5ff9fb6cc5e7c287c0e1607b40d81cc3b0c34a6
92
py
Python
app/auth/__init__.py
Timoh97/TUK-SMAS-FLASK-APP
3bdb1a37a1c1f441e4116551ae6ad05ef4f566d8
[ "MIT" ]
null
null
null
app/auth/__init__.py
Timoh97/TUK-SMAS-FLASK-APP
3bdb1a37a1c1f441e4116551ae6ad05ef4f566d8
[ "MIT" ]
null
null
null
app/auth/__init__.py
Timoh97/TUK-SMAS-FLASK-APP
3bdb1a37a1c1f441e4116551ae6ad05ef4f566d8
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint('auth', __name__) from . import views,forms
18.4
34
0.75
12
92
5.416667
0.75
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
35
18.4
0.844156
0
0
0
0
0
0.043011
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
5
950ed3a4a8249d6b09ca04acf80fd606009b8b07
57
py
Python
omnipath/requests.py
TheAustinator/omnipath
c0d61216e3a7d95cdb098ac025f08a9b09e0f8fe
[ "MIT" ]
13
2020-12-02T15:47:54.000Z
2022-03-08T02:39:55.000Z
omnipath/requests.py
TheAustinator/omnipath
c0d61216e3a7d95cdb098ac025f08a9b09e0f8fe
[ "MIT" ]
15
2020-11-10T13:03:09.000Z
2022-03-29T08:51:38.000Z
omnipath/requests.py
michalk8/omnipath
014ddf046d07ad16ce722e2280b39796598ca9a8
[ "MIT" ]
2
2020-11-06T23:08:19.000Z
2022-03-28T21:46:33.000Z
from omnipath._core.requests import * # noqa: F401 F403
28.5
56
0.754386
8
57
5.25
1
0
0
0
0
0
0
0
0
0
0
0.125
0.157895
57
1
57
57
0.75
0.263158
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
951ee7042b739ce27a7a794869f38d8ab5b93809
209
py
Python
project_alphavantage/config/base.py
leonardomarcao/projecto-alphavantage
ce46065c7bcb01298867c5ed8562d5a73e0b69fe
[ "MIT" ]
null
null
null
project_alphavantage/config/base.py
leonardomarcao/projecto-alphavantage
ce46065c7bcb01298867c5ed8562d5a73e0b69fe
[ "MIT" ]
6
2020-02-16T21:05:51.000Z
2020-02-17T03:23:56.000Z
project_alphavantage/config/base.py
leonardomarcao/projecto-alphavantage
ce46065c7bcb01298867c5ed8562d5a73e0b69fe
[ "MIT" ]
1
2020-02-17T16:03:47.000Z
2020-02-17T16:03:47.000Z
from .settings import * from os.path import join ALPHA_VANTAGE_API_URL = env('alpha_vantage_api_url') DATABASE_PATH = join(BASE_DIR, env('database_name')) ALPHA_VANTAGE_API_KEY = env('alpha_vantage_api_key')
29.857143
52
0.808612
34
209
4.529412
0.470588
0.311688
0.38961
0.233766
0
0
0
0
0
0
0
0
0.090909
209
6
53
34.833333
0.810526
0
0
0
0
0
0.263158
0.200957
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
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
1
0
0
0
0
5
20fb44b57d7ca2f5a4072fa12316138025255e5e
28
py
Python
PfsenseFauxapi/__version__.py
nefeli/pfsense_fauxapi_client_python
8e706e275232ef0ffd753fda16887299d5092ead
[ "Apache-2.0" ]
11
2019-07-16T16:11:33.000Z
2021-04-06T04:50:10.000Z
PfsenseFauxapi/__version__.py
nefeli/pfsense_fauxapi_client_python
8e706e275232ef0ffd753fda16887299d5092ead
[ "Apache-2.0" ]
6
2019-05-14T17:25:50.000Z
2021-09-27T15:01:09.000Z
PfsenseFauxapi/__version__.py
nefeli/pfsense_fauxapi_client_python
8e706e275232ef0ffd753fda16887299d5092ead
[ "Apache-2.0" ]
12
2019-04-04T12:54:29.000Z
2021-08-24T06:09:51.000Z
__version__ = '20200718.2'
9.333333
26
0.714286
3
28
5.333333
1
0
0
0
0
0
0
0
0
0
0
0.375
0.142857
28
2
27
14
0.291667
0
0
0
0
0
0.37037
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
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
1f10711d8baed7e89a340b280ac6c50677d621df
258
py
Python
pairing_matrix/client/gitlab_client.py
iilei/pairing_matrix
8fb646720c914ff37c1f6a59ad68680fb5130175
[ "BSD-3-Clause" ]
null
null
null
pairing_matrix/client/gitlab_client.py
iilei/pairing_matrix
8fb646720c914ff37c1f6a59ad68680fb5130175
[ "BSD-3-Clause" ]
null
null
null
pairing_matrix/client/gitlab_client.py
iilei/pairing_matrix
8fb646720c914ff37c1f6a59ad68680fb5130175
[ "BSD-3-Clause" ]
null
null
null
from . import BaseClient # from gitlab import Gitlab class GitlabClient(BaseClient): def __init__(self, timespan, **kwargs): self.base = BaseClient.__init__(self, timespan, **kwargs) # def instantiate_client(self): # g = Gitlab()
21.5
65
0.674419
28
258
5.892857
0.535714
0.09697
0.193939
0.266667
0
0
0
0
0
0
0
0
0.213178
258
11
66
23.454545
0.812808
0.27907
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
1f1f1709f9e06901bff5a23fbcbb6f992f2ac59a
1,495
py
Python
plugins/recorded_future/komand_recorded_future/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/recorded_future/komand_recorded_future/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/recorded_future/komand_recorded_future/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .download_IP_addresses_risk_list.action import DownloadIPAddressesRiskList from .download_domain_risk_list.action import DownloadDomainRiskList from .download_hash_risk_list.action import DownloadHashRiskList from .download_url_risk_list.action import DownloadUrlRiskList from .download_vulnerability_risk_list.action import DownloadVulnerabilityRiskList from .list_IP_addresses_risk_rules.action import ListIPAddressesRiskRules from .list_domain_risk_rules.action import ListDomainRiskRules from .list_hash_risk_rules.action import ListHashRiskRules from .list_url_risk_rules.action import ListUrlRiskRules from .list_vulnerability_risk_rules.action import ListVulnerabilityRiskRules from .lookup_IP_address.action import LookupIPAddress from .lookup_alert.action import LookupAlert from .lookup_domain.action import LookupDomain from .lookup_entity_list.action import LookupEntityList from .lookup_hash.action import LookupHash from .lookup_malware.action import LookupMalware from .lookup_url.action import LookupUrl from .lookup_vulnerability.action import LookupVulnerability from .search_IP_addresses.action import SearchIPAddresses from .search_domains.action import SearchDomains from .search_entity_lists.action import SearchEntityLists from .search_hashes.action import SearchHashes from .search_malware.action import SearchMalware from .search_urls.action import SearchUrls from .search_vulnerabilities.action import SearchVulnerabilities
55.37037
82
0.892308
183
1,495
7.010929
0.306011
0.233827
0.074825
0.077942
0
0
0
0
0
0
0
0
0.07291
1,495
26
83
57.5
0.925685
0.024749
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1f27aae8a285f2e669d6a9f15147d8725c91973f
25
py
Python
src/archive/clay_bricks/PatternBrickLibrary/safetyPaths.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
1
2020-03-25T10:55:10.000Z
2020-03-25T10:55:10.000Z
src/archive/clay_bricks/PatternBrickLibrary/safetyPaths.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
src/archive/clay_bricks/PatternBrickLibrary/safetyPaths.py
JonasWard/ClayAdventures
a716445ac690e4792e70658319aa1d5299f9c9e9
[ "MIT" ]
null
null
null
# safety path definitions
25
25
0.84
3
25
7
1
0
0
0
0
0
0
0
0
0
0
0
0.12
25
1
25
25
0.954545
0.92
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
1f32ecd6c176fb4aa11c6e86249a990d31335471
5,879
py
Python
models/util/current_element.py
Pauliceia/ws
8966cfd80299f22468afe9a2a1156740bf237270
[ "MIT" ]
null
null
null
models/util/current_element.py
Pauliceia/ws
8966cfd80299f22468afe9a2a1156740bf237270
[ "MIT" ]
2
2021-02-08T20:26:34.000Z
2021-04-30T20:43:28.000Z
models/util/current_element.py
Pauliceia/ws
8966cfd80299f22468afe9a2a1156740bf237270
[ "MIT" ]
1
2021-09-08T18:10:58.000Z
2021-09-08T18:10:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __select_elements__ = "element.id, element.geom, element.visible, element.version, element.fk_changeset_id, element.tags" def get_subquery_current_element_table_if_user_id_is_not_none(element, conditions_of_where, **kwargs): # create the where clause with the conditions where_current_element_table = "WHERE " + " AND ".join(conditions_of_where) # by default, get all elements from a specific user conditions_of_where = ["user_.id = {0}".format(kwargs["user_id"])] # create the where clause with the conditions where_join_user_with_changeset = "WHERE " + " AND ".join(conditions_of_where) # search by project_id current_element_table = """ ( -- get the elements of the changesets of a specific user SELECT {0} FROM ( -- get the changesets of a specific project SELECT changeset.id FROM user_ LEFT JOIN changeset ON user_.id = changeset.fk_user_id {3} ) AS changeset LEFT JOIN current_{1} element ON changeset.id = element.fk_changeset_id {2} ORDER BY id ) AS element """.format(__select_elements__, element, where_current_element_table, where_join_user_with_changeset) return current_element_table def get_subquery_current_element_table_if_layer_id_is_not_none(element, conditions_of_where, **kwargs): # create the where clause with the conditions where_current_element_table = "WHERE " + " AND ".join(conditions_of_where) # by default, get all elements from a specific layer conditions_of_where = ["layer.id = {0}".format(kwargs["layer_id"])] # create the where clause with the conditions where_join_layer_with_changeset = "WHERE " + " AND ".join(conditions_of_where) # search by layer_id current_element_table = """ ( -- get the elements of the changesets of a specific layer SELECT {0} FROM ( -- get the changesets of a specific layer SELECT changeset.id FROM layer LEFT JOIN changeset ON layer.id = changeset.fk_layer_id {3} ) AS changeset LEFT JOIN current_{1} element ON changeset.id = element.fk_changeset_id {2} ORDER BY id ) AS element """.format(__select_elements__, element, where_current_element_table, where_join_layer_with_changeset) return current_element_table def get_subquery_current_element_table_if_changeset_id_is_not_none(element, conditions_of_where, **kwargs): # add the id of changeset in WHERE conditions_of_where.append("changeset.id = {0}".format(kwargs["changeset_id"])) # create the where clause with the conditions where_current_element_table = "WHERE " + " AND ".join(conditions_of_where) # search by changeset_id current_element_table = """ ( SELECT {0} FROM current_{1} element LEFT JOIN changeset ON element.fk_changeset_id = changeset.id {2} ORDER BY id ) AS element """.format(__select_elements__, element, where_current_element_table) return current_element_table def get_subquery_current_element_table_default(element, conditions_of_where, **kwargs): # create the where clause with the conditions where_current_element_table = "WHERE " + " AND ".join(conditions_of_where) # default subquery, get all elements current_element_table = """ ( SELECT {0} FROM current_{1} element {2} ORDER BY id ) AS element """.format(__select_elements__, element, where_current_element_table) return current_element_table # main function def get_subquery_current_element_table(element, **kwargs): # DEFAULT WHERE # by default, get all results that are visible (that exist) conditions_of_where = ["element.visible=TRUE"] # SUBQUERY # create a subquery to get the elements, by a type: if "element_id" in kwargs and kwargs["element_id"] is not None: conditions_of_where.append("element.id = {0}".format(kwargs["element_id"])) current_element_table = get_subquery_current_element_table_default(element, conditions_of_where, **kwargs) elif "user_id" in kwargs and kwargs["user_id"] is not None: # if there is a layer_id current_element_table = get_subquery_current_element_table_if_user_id_is_not_none(element, conditions_of_where, **kwargs) elif "layer_id" in kwargs and kwargs["layer_id"] is not None: # if there is a layer_id current_element_table = get_subquery_current_element_table_if_layer_id_is_not_none(element, conditions_of_where, **kwargs) elif "changeset_id" in kwargs and kwargs["changeset_id"] is not None: # if there is a changeset_id current_element_table = get_subquery_current_element_table_if_changeset_id_is_not_none(element, conditions_of_where, **kwargs) else: # default current_element_table = get_subquery_current_element_table_default(element, conditions_of_where, **kwargs) return current_element_table
40.826389
121
0.61422
686
5,879
4.900875
0.104956
0.133254
0.180845
0.074361
0.767995
0.722784
0.710291
0.70464
0.696014
0.645449
0
0.004742
0.318422
5,879
143
122
41.111888
0.83429
0.129954
0
0.569767
0
0.011628
0.347476
0.022392
0.069767
0
0
0
0
1
0.05814
false
0
0
0
0.116279
0
0
0
0
null
0
1
0
0
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
1f812e2d48ec3f887fdda18312d49e4988139a4f
97
py
Python
initiative/admin.py
nim65s/django-initiative
70bbfdadea442d68cf658cbaaea34879e67b89be
[ "BSD-2-Clause" ]
null
null
null
initiative/admin.py
nim65s/django-initiative
70bbfdadea442d68cf658cbaaea34879e67b89be
[ "BSD-2-Clause" ]
null
null
null
initiative/admin.py
nim65s/django-initiative
70bbfdadea442d68cf658cbaaea34879e67b89be
[ "BSD-2-Clause" ]
null
null
null
from django.contrib.admin import site from .models import Initiative site.register(Initiative)
16.166667
37
0.824742
13
97
6.153846
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.113402
97
5
38
19.4
0.930233
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
2f1bf782f0c7b407bf6ab096bc7e8bba23b67036
446
py
Python
halls/forms.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
1
2021-12-23T14:08:06.000Z
2021-12-23T14:08:06.000Z
halls/forms.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
null
null
null
halls/forms.py
samanvipotnuru/iiit_hall_booking_system
9f9cfde8d757e0eae702d36860c8342d317760f3
[ "MIT" ]
1
2021-03-10T15:43:09.000Z
2021-03-10T15:43:09.000Z
from django import forms from .models import Application class ApproveHall1Form(forms.ModelForm): approve = forms.CharField() class Meta: model = Application fields = ['approve'] class ApproveHall2Form(forms.ModelForm): approve = forms.CharField() class Meta: model = Application fields = ['approve'] class ApproveHall3Form(forms.ModelForm): approve = forms.CharField() class Meta: model = Application fields = ['approve']
19.391304
40
0.73991
47
446
7.021277
0.340426
0.127273
0.190909
0.236364
0.693939
0.693939
0.693939
0.693939
0.693939
0.693939
0
0.007979
0.156951
446
23
41
19.391304
0.869681
0
0
0.705882
0
0
0.04698
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.647059
0
0
0
0
null
0
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
2f30025a7b46580f9ff47a6bdabfd1779057e942
48
py
Python
MillerArrays/millerArrayPrintntensities.py
MooersLab/jupyterlabcctbxsnips
c5f0947b4e8c4e5839b9b6b15c81c62915103155
[ "MIT" ]
null
null
null
MillerArrays/millerArrayPrintntensities.py
MooersLab/jupyterlabcctbxsnips
c5f0947b4e8c4e5839b9b6b15c81c62915103155
[ "MIT" ]
null
null
null
MillerArrays/millerArrayPrintntensities.py
MooersLab/jupyterlabcctbxsnips
c5f0947b4e8c4e5839b9b6b15c81c62915103155
[ "MIT" ]
null
null
null
[print(hkl) for hkl in miller_arrays[1].data()]
24
47
0.708333
9
48
3.666667
0.888889
0
0
0
0
0
0
0
0
0
0
0.023256
0.104167
48
1
48
48
0.744186
0
0
0
0
0
0
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
2f39c0f2663cbeb0363155b4a83eddbdaa6f2b83
103
py
Python
util/make_dirs.py
HkkSimple/KREP
3d9c15fe5986aab3ab73e0437bcd33f983f5dbe9
[ "Apache-2.0" ]
null
null
null
util/make_dirs.py
HkkSimple/KREP
3d9c15fe5986aab3ab73e0437bcd33f983f5dbe9
[ "Apache-2.0" ]
null
null
null
util/make_dirs.py
HkkSimple/KREP
3d9c15fe5986aab3ab73e0437bcd33f983f5dbe9
[ "Apache-2.0" ]
null
null
null
import os.path as osp import os def make_dirs(path): if not os.path.exists(path): os.makedirs(path)
17.166667
29
0.737864
20
103
3.75
0.6
0.213333
0
0
0
0
0
0
0
0
0
0
0.145631
103
6
30
17.166667
0.852273
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
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
2f5a11dceb8843ccc79302bb4b8e5faaa20abe9f
73
py
Python
plugins/viper/icon_viper/actions/list_analyses/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/viper/icon_viper/actions/list_analyses/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/viper/icon_viper/actions/list_analyses/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import ListAnalyses
24.333333
39
0.780822
11
73
5.181818
1
0
0
0
0
0
0
0
0
0
0
0
0.178082
73
2
40
36.5
0.95
0.506849
0
0
1
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5