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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4744126e2e06c3beef38b28a9c116122cf8d8796
| 44
|
py
|
Python
|
source/__init__.py
|
kamarenmccord/command_line_groceries
|
43f8c7e4ef151289c3eca8e8d3a1cc0ff2b87287
|
[
"MIT"
] | null | null | null |
source/__init__.py
|
kamarenmccord/command_line_groceries
|
43f8c7e4ef151289c3eca8e8d3a1cc0ff2b87287
|
[
"MIT"
] | null | null | null |
source/__init__.py
|
kamarenmccord/command_line_groceries
|
43f8c7e4ef151289c3eca8e8d3a1cc0ff2b87287
|
[
"MIT"
] | null | null | null |
# allows source to be imported as a package
| 22
| 43
| 0.772727
| 8
| 44
| 4.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204545
| 44
| 2
| 43
| 22
| 0.971429
| 0.931818
| 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
|
47aaaa3b1654724f958e6186216dbd0323a86e5e
| 908
|
py
|
Python
|
server/app/configuration.py
|
It4innovations/snailwatch
|
ced9574dc07371390b70d3325d1a235e805cb8ee
|
[
"MIT"
] | 8
|
2018-10-16T14:32:49.000Z
|
2021-07-31T18:26:43.000Z
|
server/app/configuration.py
|
patrikduch/snailwatch
|
ced9574dc07371390b70d3325d1a235e805cb8ee
|
[
"MIT"
] | 17
|
2019-05-27T19:37:56.000Z
|
2022-03-15T19:02:26.000Z
|
server/app/configuration.py
|
patrikduch/snailwatch
|
ced9574dc07371390b70d3325d1a235e805cb8ee
|
[
"MIT"
] | 2
|
2021-07-30T17:32:47.000Z
|
2021-07-31T18:30:43.000Z
|
import os
def get_option(name, default=None):
return os.environ.get(name, default)
def get_server_port():
return int(get_option('PORT', 5000))
def get_admin_token():
return get_option('ADMIN_TOKEN')
def get_mongo_host():
return get_option('MONGO_HOST', 'localhost')
def get_mongo_port():
return int(get_option('MONGO_PORT', 27017))
def get_mongo_db():
return get_option('MONGO_DB', 'snailwatch')
def get_mongo_username():
return get_option('MONGO_USERNAME')
def get_mongo_password():
return get_option('MONGO_PASSWORD')
def get_smtp_server():
return get_option('SMTP_SERVER', 'localhost')
def get_smtp_user():
return get_option('SMTP_USER')
def get_smtp_password():
return get_option('SMTP_PASSWORD')
def get_email_sender():
return get_option('EMAIL_SENDER', get_smtp_user())
def get_public_url():
return get_option('PUBLIC_URL')
| 16.814815
| 54
| 0.722467
| 131
| 908
| 4.625954
| 0.229008
| 0.128713
| 0.247525
| 0.132013
| 0.072607
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011719
| 0.154185
| 908
| 53
| 55
| 17.132075
| 0.777344
| 0
| 0
| 0
| 0
| 0
| 0.169604
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.481481
| false
| 0.148148
| 0.037037
| 0.481481
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
47ca7d8314d34f05978c0e794bb0ca2452ff3162
| 153
|
py
|
Python
|
papagias_pkg_1/my_papagias.py
|
chpalyvos/papagias
|
cf321482bfa6fa5ae858c4f631e6a803836bb46f
|
[
"MIT"
] | null | null | null |
papagias_pkg_1/my_papagias.py
|
chpalyvos/papagias
|
cf321482bfa6fa5ae858c4f631e6a803836bb46f
|
[
"MIT"
] | null | null | null |
papagias_pkg_1/my_papagias.py
|
chpalyvos/papagias
|
cf321482bfa6fa5ae858c4f631e6a803836bb46f
|
[
"MIT"
] | null | null | null |
def ordering_fries():
print("Can I have some fried potatoes please?")
def countries_papagias_preferes():
print("Albania-Bulgaria-Romania...!")
| 21.857143
| 51
| 0.718954
| 19
| 153
| 5.631579
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143791
| 153
| 6
| 52
| 25.5
| 0.816794
| 0
| 0
| 0
| 0
| 0
| 0.431373
| 0.183007
| 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
|
47de86863bf31c45b50e12f516d53273f1623789
| 177
|
py
|
Python
|
src/invoice_medicine/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
src/invoice_medicine/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
src/invoice_medicine/forms.py
|
vandana0608/Pharmacy-Managament
|
f99bdec11c24027a432858daa19247a21cecc092
|
[
"bzip2-1.0.6"
] | null | null | null |
from django import forms
from .models import invoice_medicine
class InvoiceMedicineForm(forms.ModelForm):
class Meta:
model = invoice_medicine
exclude = ()
| 22.125
| 43
| 0.723164
| 19
| 177
| 6.631579
| 0.684211
| 0.238095
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.220339
| 177
| 7
| 44
| 25.285714
| 0.913043
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 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
|
9a21107fd4942a76108099c019412dbebbeb0163
| 130
|
py
|
Python
|
setup.py
|
bitkeen/base16-prompt-toolkit
|
6ceac26dc087290429f4f85fe237b1b101eba85e
|
[
"MIT"
] | null | null | null |
setup.py
|
bitkeen/base16-prompt-toolkit
|
6ceac26dc087290429f4f85fe237b1b101eba85e
|
[
"MIT"
] | null | null | null |
setup.py
|
bitkeen/base16-prompt-toolkit
|
6ceac26dc087290429f4f85fe237b1b101eba85e
|
[
"MIT"
] | null | null | null |
from setuptools import setup
setup(
version=1.0,
name='base16-prompt-toolkit',
packages=['base16_prompt_toolkit']
)
| 14.444444
| 38
| 0.7
| 16
| 130
| 5.5625
| 0.75
| 0.269663
| 0.426966
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056075
| 0.176923
| 130
| 8
| 39
| 16.25
| 0.775701
| 0
| 0
| 0
| 0
| 0
| 0.323077
| 0.323077
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.166667
| 0
| 0.166667
| 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
|
9a473b2057481be83baa0bff31178e626483c238
| 55
|
py
|
Python
|
lattedb/status/models/__init__.py
|
callat-qcd/lattedb
|
75c06748f3d59332a84ec1b5794c215c5974a46f
|
[
"BSD-3-Clause"
] | 1
|
2019-12-11T02:33:23.000Z
|
2019-12-11T02:33:23.000Z
|
lattedb/status/models/__init__.py
|
callat-qcd/lattedb
|
75c06748f3d59332a84ec1b5794c215c5974a46f
|
[
"BSD-3-Clause"
] | 10
|
2020-01-29T17:06:01.000Z
|
2021-05-31T14:41:19.000Z
|
lattedb/status/models/__init__.py
|
callat-qcd/lattedb
|
75c06748f3d59332a84ec1b5794c215c5974a46f
|
[
"BSD-3-Clause"
] | null | null | null |
from lattedb.status.models.correlator import Baryon2pt
| 27.5
| 54
| 0.872727
| 7
| 55
| 6.857143
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019608
| 0.072727
| 55
| 1
| 55
| 55
| 0.921569
| 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
|
9a620835bfcd7b0f65749c4ad7856f639ade222c
| 133
|
py
|
Python
|
osuData/utility/__init__.py
|
LostPy/OsuData
|
7db3a2f7e7bd166c7d08b2c02f9e391370961668
|
[
"MIT"
] | 4
|
2020-12-31T19:25:20.000Z
|
2021-09-19T18:02:50.000Z
|
osuData/utility/__init__.py
|
LostPy/OsuData
|
7db3a2f7e7bd166c7d08b2c02f9e391370961668
|
[
"MIT"
] | 1
|
2020-11-29T22:14:25.000Z
|
2020-11-29T22:14:25.000Z
|
osuData/utility/__init__.py
|
LostPy/OsuData
|
7db3a2f7e7bd166c7d08b2c02f9e391370961668
|
[
"MIT"
] | 3
|
2020-11-29T22:19:50.000Z
|
2021-04-14T08:23:32.000Z
|
"""
Project: OsuData
License MIT
Copyright © 2020-2021 - LostPy
"""
from .logs import Logs
from .osuProgressBar import progress_bar
| 14.777778
| 40
| 0.759398
| 18
| 133
| 5.611111
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070796
| 0.150376
| 133
| 9
| 40
| 14.777778
| 0.814159
| 0.451128
| 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
|
7bda09cd1eec9bd713a81a85106746853ca60061
| 77
|
py
|
Python
|
Dinos/Sauropod/Bone_Sauropod_Character_BP.Bone_Sauropod_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
Dinos/Sauropod/Bone_Sauropod_Character_BP.Bone_Sauropod_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
Dinos/Sauropod/Bone_Sauropod_Character_BP.Bone_Sauropod_Character_BP.py
|
cutec-chris/sce-PrimalEarth
|
4e7a45acffc57a455a7668af1a954004668c3085
|
[
"MIT"
] | null | null | null |
import sys,sce
class Bone_Sauropod_Character_BP(sce.Event Creatures):
pass
| 25.666667
| 54
| 0.831169
| 12
| 77
| 5.083333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103896
| 77
| 3
| 55
| 25.666667
| 0.884058
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.333333
| 0.333333
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
d00ac051bed776c23cd3c453d7f0d808fb96dd08
| 42
|
py
|
Python
|
kalman/metrics.py
|
sourabbapusridhar/vehicle-state-estimation
|
8c0fd31c2d72e7a078e1bc4241c472e16c8046a6
|
[
"MIT"
] | null | null | null |
kalman/metrics.py
|
sourabbapusridhar/vehicle-state-estimation
|
8c0fd31c2d72e7a078e1bc4241c472e16c8046a6
|
[
"MIT"
] | null | null | null |
kalman/metrics.py
|
sourabbapusridhar/vehicle-state-estimation
|
8c0fd31c2d72e7a078e1bc4241c472e16c8046a6
|
[
"MIT"
] | null | null | null |
# Implementation of Metric Tracker Methods
| 42
| 42
| 0.857143
| 5
| 42
| 7.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 42
| 1
| 42
| 42
| 0.972973
| 0.952381
| 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
|
d023629849ed244c32f63c1eac0debfeafd2f7ce
| 73
|
py
|
Python
|
py-time.py
|
ganmk/python-prctice
|
799529536776052fd40e89f8bf0c08dd1e03ed1c
|
[
"MIT"
] | null | null | null |
py-time.py
|
ganmk/python-prctice
|
799529536776052fd40e89f8bf0c08dd1e03ed1c
|
[
"MIT"
] | null | null | null |
py-time.py
|
ganmk/python-prctice
|
799529536776052fd40e89f8bf0c08dd1e03ed1c
|
[
"MIT"
] | null | null | null |
import time
print time.strftime('%Y-%m-%d',time.localtime(time.time()))
| 24.333333
| 60
| 0.69863
| 12
| 73
| 4.25
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068493
| 73
| 2
| 61
| 36.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.109589
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
d066d487c081e8ee0046a5bb287045ddf9e23891
| 155
|
py
|
Python
|
sonata/datamodules/__init__.py
|
sergevkim/sonata
|
2250b60174628ee76fb7d54bf50e4b8b07b505d5
|
[
"MIT"
] | 1
|
2021-03-15T19:01:43.000Z
|
2021-03-15T19:01:43.000Z
|
sonata/datamodules/__init__.py
|
sergevkim/sonata
|
2250b60174628ee76fb7d54bf50e4b8b07b505d5
|
[
"MIT"
] | null | null | null |
sonata/datamodules/__init__.py
|
sergevkim/sonata
|
2250b60174628ee76fb7d54bf50e4b8b07b505d5
|
[
"MIT"
] | null | null | null |
from .base_datamodule import BaseDataModule
from .landscapes_datamodule import LandscapesDataModule
from .protostar_datamodule import ProtostarDataModule
| 31
| 55
| 0.896774
| 15
| 155
| 9.066667
| 0.6
| 0.352941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083871
| 155
| 4
| 56
| 38.75
| 0.957746
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d07335023b352d4646eecad9456eb4e50cb6a720
| 162
|
py
|
Python
|
src/vmshepherd/presets/__init__.py
|
DreamLab/VmShepherd
|
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
|
[
"Apache-2.0"
] | 10
|
2018-06-10T17:54:57.000Z
|
2022-02-07T19:37:07.000Z
|
src/vmshepherd/presets/__init__.py
|
DreamLab/VmShepherd
|
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
|
[
"Apache-2.0"
] | 10
|
2018-06-10T18:46:07.000Z
|
2021-05-13T13:01:22.000Z
|
src/vmshepherd/presets/__init__.py
|
DreamLab/VmShepherd
|
f602bb814080d2d3f62c6cb5fa6b9dd685833c24
|
[
"Apache-2.0"
] | 3
|
2019-07-18T14:10:10.000Z
|
2022-02-07T19:37:08.000Z
|
from .abstract import AbstractConfigurationDriver # noqa
from .directory_driver import DirectoryDriver # noqa
from .gitrepo_driver import GitRepoDriver # noqa
| 40.5
| 57
| 0.833333
| 17
| 162
| 7.823529
| 0.588235
| 0.120301
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 162
| 3
| 58
| 54
| 0.943262
| 0.08642
| 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
|
d07726384faaa2ad28256e6e47040dc062a849c3
| 130
|
py
|
Python
|
python-sdk/nuscenes/eval/tracking/evaluate.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
python-sdk/nuscenes/eval/tracking/evaluate.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
python-sdk/nuscenes/eval/tracking/evaluate.py
|
tanjiangyuan/Classification_nuScence
|
b94c4b0b6257fc1c048a676e3fd9e71183108d53
|
[
"Apache-2.0"
] | null | null | null |
version https://git-lfs.github.com/spec/v1
oid sha256:10bebaccabc80ac78b14b3c1eca12f670f207714026ad0d3d661054ff008894d
size 12167
| 32.5
| 75
| 0.884615
| 13
| 130
| 8.846154
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.379032
| 0.046154
| 130
| 3
| 76
| 43.333333
| 0.548387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
d095b96cc1450176cca6f9520ac66f550dd20d63
| 1,011
|
py
|
Python
|
cf_farrier.py
|
pmlandwehr/cf-farrier
|
1080b33c07f35bcdf7f63d59de1d5d175e8508c6
|
[
"BSD-3-Clause"
] | null | null | null |
cf_farrier.py
|
pmlandwehr/cf-farrier
|
1080b33c07f35bcdf7f63d59de1d5d175e8508c6
|
[
"BSD-3-Clause"
] | null | null | null |
cf_farrier.py
|
pmlandwehr/cf-farrier
|
1080b33c07f35bcdf7f63d59de1d5d175e8508c6
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/env conda-execute
# conda execute
# env:
# - python ==3.5
# - conda-build
# - pygithub >=1.29
# - pyyaml
# - requests
# - setuptools
# - tqdm
# channels:
# - conda-forge
# run_with: python
# TODO take package or list of packages
# TODO take github url or github urls
# TODO If user doesn't have a fork of conda-forge create one
# TODO if user doesn't have a branch for this package, create one
# TODO run conda smithy pypi package
# TODO If successful, parse generated meta.yaml
# TODO Drop any meta.yaml build reqs
# TODO Drop any test reqs
# TODO Add sections to bring in line with the standard template
# TODO Add variable to bring in line with the standard template
# TODO change the setup script based on whether or not setuptools is required
# TODO deal with license file
# TODO commit the modified meta.yaml to user/staged-recipes:branch
# TODO submit pull request to conda-forge/staged-recipes:master as a new recipe.
def main():
return
if __init__ == "__main__":
main()
| 27.324324
| 80
| 0.727992
| 163
| 1,011
| 4.460123
| 0.552147
| 0.041265
| 0.02751
| 0.041265
| 0.167813
| 0.167813
| 0.167813
| 0.110041
| 0.110041
| 0
| 0
| 0.00615
| 0.195846
| 1,011
| 36
| 81
| 28.083333
| 0.888069
| 0.881306
| 0
| 0
| 0
| 0
| 0.086022
| 0
| 0
| 0
| 0
| 0.027778
| 0
| 1
| 0.25
| true
| 0
| 0
| 0.25
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
d0ac4e198dfcecc54784ee62b891d2998d730715
| 362
|
py
|
Python
|
bitmovin_api_sdk/notifications/emails/__init__.py
|
jaythecaesarean/bitmovin-api-sdk-python
|
48166511fcb9082041c552ace55a9b66cc59b794
|
[
"MIT"
] | 11
|
2019-07-03T10:41:16.000Z
|
2022-02-25T21:48:06.000Z
|
bitmovin_api_sdk/notifications/emails/__init__.py
|
jaythecaesarean/bitmovin-api-sdk-python
|
48166511fcb9082041c552ace55a9b66cc59b794
|
[
"MIT"
] | 8
|
2019-11-23T00:01:25.000Z
|
2021-04-29T12:30:31.000Z
|
bitmovin_api_sdk/notifications/emails/__init__.py
|
jaythecaesarean/bitmovin-api-sdk-python
|
48166511fcb9082041c552ace55a9b66cc59b794
|
[
"MIT"
] | 13
|
2020-01-02T14:58:18.000Z
|
2022-03-26T12:10:30.000Z
|
from bitmovin_api_sdk.notifications.emails.emails_api import EmailsApi
from bitmovin_api_sdk.notifications.emails.usage_reports.usage_reports_api import UsageReportsApi
from bitmovin_api_sdk.notifications.emails.encoding.encoding_api import EncodingApi
from bitmovin_api_sdk.notifications.emails.notification_list_query_params import NotificationListQueryParams
| 72.4
| 108
| 0.917127
| 46
| 362
| 6.869565
| 0.391304
| 0.151899
| 0.189873
| 0.227848
| 0.468354
| 0.468354
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044199
| 362
| 4
| 109
| 90.5
| 0.913295
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ef710aee2a4c5909fb09e56198c70ebbc01635d8
| 76
|
py
|
Python
|
cloud_scanner/config/__init__.py
|
lyzlisa/cloud-scanner
|
eced85638bb61a8bb701fe53359a436caa7981bc
|
[
"MIT"
] | 9
|
2019-05-29T19:54:19.000Z
|
2021-05-29T13:23:06.000Z
|
cloud_scanner/config/__init__.py
|
lyzlisa/cloud-scanner
|
eced85638bb61a8bb701fe53359a436caa7981bc
|
[
"MIT"
] | 2
|
2018-10-23T18:48:07.000Z
|
2018-10-25T16:03:10.000Z
|
cloud_scanner/config/__init__.py
|
lyzlisa/cloud-scanner
|
eced85638bb61a8bb701fe53359a436caa7981bc
|
[
"MIT"
] | 52
|
2019-04-29T18:55:36.000Z
|
2020-09-22T08:21:57.000Z
|
from .configuration import Config
from .process_config import ProcessConfig
| 25.333333
| 41
| 0.868421
| 9
| 76
| 7.222222
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 76
| 2
| 42
| 38
| 0.955882
| 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
|
ef75c913014835ec61c926edbcdf50963a52e0b8
| 150
|
py
|
Python
|
hostel/admin.py
|
bhaveshpraveen/VIT-Pugaar
|
0a33b264939287071ddaffef4ab1f2ef9a38de87
|
[
"MIT"
] | null | null | null |
hostel/admin.py
|
bhaveshpraveen/VIT-Pugaar
|
0a33b264939287071ddaffef4ab1f2ef9a38de87
|
[
"MIT"
] | 6
|
2017-11-11T08:43:55.000Z
|
2021-06-10T19:38:24.000Z
|
hostel/admin.py
|
bhaveshpraveen/VIT-Pugaar
|
0a33b264939287071ddaffef4ab1f2ef9a38de87
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Block, Floor
# Register your models here.
admin.site.register(Block)
admin.site.register(Floor)
| 21.428571
| 32
| 0.8
| 22
| 150
| 5.454545
| 0.545455
| 0.15
| 0.283333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113333
| 150
| 7
| 33
| 21.428571
| 0.902256
| 0.173333
| 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
|
ef7badf555a062e8001543f128edae7d4fdb8121
| 376
|
py
|
Python
|
xii/assembler/__init__.py
|
MiroK/fenics_ii
|
58c41f0e8dba720962830395851e081b057269cc
|
[
"MIT"
] | 10
|
2017-06-22T21:05:17.000Z
|
2020-09-25T08:36:59.000Z
|
xii/assembler/__init__.py
|
MiroK/fenics_ii
|
58c41f0e8dba720962830395851e081b057269cc
|
[
"MIT"
] | 2
|
2018-04-14T08:43:59.000Z
|
2018-09-19T14:51:46.000Z
|
xii/assembler/__init__.py
|
MiroK/fenics_ii
|
58c41f0e8dba720962830395851e081b057269cc
|
[
"MIT"
] | 6
|
2018-04-13T20:33:53.000Z
|
2020-09-25T08:37:01.000Z
|
from . trace_form import Trace
from . average_form import Average
from . extension_form import Extension
from . restriction_form import Restriction
from . injection_form import Injection
from . point_trace_form import PointTrace
from . xii_assembly import assemble as ii_assemble
from . average_shape import Square, SquareRim, Circle, Disk
from . block_form import block_form
| 37.6
| 59
| 0.835106
| 53
| 376
| 5.698113
| 0.396226
| 0.231788
| 0.099338
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132979
| 376
| 9
| 60
| 41.777778
| 0.92638
| 0
| 0
| 0
| 0
| 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
| 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
|
ef800392bc426444be7e00760ed372e0b6bb5cf8
| 76
|
py
|
Python
|
ktane/solverutils/__init__.py
|
thecnoNSMB/ktane-mission-solver
|
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
|
[
"MIT"
] | 1
|
2022-01-04T03:47:34.000Z
|
2022-01-04T03:47:34.000Z
|
ktane/solverutils/__init__.py
|
thecnoNSMB/ktane-mission-solver
|
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
|
[
"MIT"
] | 4
|
2021-04-13T07:03:37.000Z
|
2021-12-15T11:34:05.000Z
|
ktane/solverutils/__init__.py
|
thecnoNSMB/ktane-mission-solver
|
237d969a8acd21533b5fb18cc5a47dd03ba1cc7d
|
[
"MIT"
] | null | null | null |
"Utilities that can be used by ModuleSolvers for computing various things."
| 38
| 75
| 0.815789
| 11
| 76
| 5.636364
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144737
| 76
| 1
| 76
| 76
| 0.953846
| 0.960526
| 0
| 0
| 0
| 0
| 0.960526
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ef84ed3de53a5e50ddd687d77ebd0343600b2a45
| 56
|
py
|
Python
|
criterions/__init__.py
|
JunLi-Galios/pytorch-template
|
18038044b81238223770180300ff3cad0ca41978
|
[
"MIT"
] | 1
|
2019-08-08T17:21:47.000Z
|
2019-08-08T17:21:47.000Z
|
criterions/__init__.py
|
JunLi-Galios/pytorch-template
|
18038044b81238223770180300ff3cad0ca41978
|
[
"MIT"
] | null | null | null |
criterions/__init__.py
|
JunLi-Galios/pytorch-template
|
18038044b81238223770180300ff3cad0ca41978
|
[
"MIT"
] | null | null | null |
from .pair_losses import *
from .triplet_losses import *
| 28
| 29
| 0.803571
| 8
| 56
| 5.375
| 0.625
| 0.55814
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 56
| 2
| 29
| 28
| 0.877551
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ef9afdae824d3ff9bc98be02f7d0de972e7ec005
| 156
|
py
|
Python
|
interprocedural_analyses/taint/test/integration/nested_callables.py
|
s-pace/pyre-check
|
2b71dcf22e4672567cfe0dfef356f11646d66244
|
[
"MIT"
] | 5
|
2019-02-14T19:46:47.000Z
|
2020-01-16T05:48:45.000Z
|
interprocedural_analyses/taint/test/integration/nested_callables.py
|
s-pace/pyre-check
|
2b71dcf22e4672567cfe0dfef356f11646d66244
|
[
"MIT"
] | null | null | null |
interprocedural_analyses/taint/test/integration/nested_callables.py
|
s-pace/pyre-check
|
2b71dcf22e4672567cfe0dfef356f11646d66244
|
[
"MIT"
] | 2
|
2019-02-14T19:46:23.000Z
|
2020-07-13T03:53:04.000Z
|
# flake8: noqa
def foo():
def inner():
x = __test_source()
__test_sink(x)
def inner_with_model():
return __test_source()
| 14.181818
| 30
| 0.564103
| 19
| 156
| 4.052632
| 0.631579
| 0.207792
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009434
| 0.320513
| 156
| 10
| 31
| 15.6
| 0.716981
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.166667
| 0.666667
| 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
|
efbb882d89e028a9ddc6e5dd7e26a2b0f8e2e5fb
| 57
|
py
|
Python
|
tests/unit/backend/wmg/data/test_corpus_validation.py
|
chanzuckerberg/dcp-prototype
|
24d2323ba5ae1482395da35ea11c42708e3a52ce
|
[
"MIT"
] | 2
|
2020-02-07T18:12:12.000Z
|
2020-02-11T14:59:03.000Z
|
tests/unit/backend/wmg/data/test_corpus_validation.py
|
HumanCellAtlas/dcp-prototype
|
44ca66a266004124f39d7d3e3dd75e9076012ff0
|
[
"MIT"
] | 173
|
2020-01-29T17:48:02.000Z
|
2020-03-20T02:52:58.000Z
|
tests/unit/backend/wmg/data/test_corpus_validation.py
|
HumanCellAtlas/dcp-prototype
|
44ca66a266004124f39d7d3e3dd75e9076012ff0
|
[
"MIT"
] | 1
|
2020-03-20T17:06:54.000Z
|
2020-03-20T17:06:54.000Z
|
def test_corpus_validation_checks__something():
pass
| 19
| 47
| 0.824561
| 7
| 57
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122807
| 57
| 2
| 48
| 28.5
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
ef05f89997634145af70cae7d52c77529e14adb3
| 1,282
|
py
|
Python
|
site2/src/hotels/front/migrations/0002_auto_20200606_1109.py
|
Python-Cameroun/django-meetup-1
|
17703e3a0656aa30ab46d1ada8510af83d6b8cc2
|
[
"CNRI-Python"
] | null | null | null |
site2/src/hotels/front/migrations/0002_auto_20200606_1109.py
|
Python-Cameroun/django-meetup-1
|
17703e3a0656aa30ab46d1ada8510af83d6b8cc2
|
[
"CNRI-Python"
] | null | null | null |
site2/src/hotels/front/migrations/0002_auto_20200606_1109.py
|
Python-Cameroun/django-meetup-1
|
17703e3a0656aa30ab46d1ada8510af83d6b8cc2
|
[
"CNRI-Python"
] | null | null | null |
# Generated by Django 2.2.13 on 2020-06-06 11:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('front', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='hotel',
name='desc_2',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='hotel',
name='desc_3',
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name='hotel',
name='img_2',
field=models.ImageField(blank=True, null=True, upload_to='hotels'),
),
migrations.AlterField(
model_name='hotel',
name='img_3',
field=models.ImageField(blank=True, null=True, upload_to='hotels'),
),
migrations.AlterField(
model_name='hotel',
name='latitude',
field=models.FloatField(blank=True, default=0, null=True),
),
migrations.AlterField(
model_name='hotel',
name='longitude',
field=models.FloatField(blank=True, default=0, null=True),
),
]
| 29.136364
| 79
| 0.555382
| 131
| 1,282
| 5.320611
| 0.351145
| 0.172166
| 0.215208
| 0.249641
| 0.76901
| 0.76901
| 0.76901
| 0.694405
| 0.639885
| 0.507891
| 0
| 0.036613
| 0.318253
| 1,282
| 43
| 80
| 29.813953
| 0.76087
| 0.035881
| 0
| 0.648649
| 1
| 0
| 0.079417
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027027
| 0
| 0.108108
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ef307070758233f1bcf09827f06fafbb0b877477
| 81
|
py
|
Python
|
variables_samples/variable_files/variable_file_special_func.py
|
thinkAmi-sandbox/RobotFramework-sample
|
86455e912ac132350b8aacb430de9f060b9d722a
|
[
"Unlicense"
] | 9
|
2017-12-20T23:10:33.000Z
|
2020-11-27T06:22:05.000Z
|
variables_samples/variable_files/variable_file_special_func.py
|
thinkAmi-sandbox/RobotFramework-sample
|
86455e912ac132350b8aacb430de9f060b9d722a
|
[
"Unlicense"
] | 1
|
2021-06-01T22:03:43.000Z
|
2021-06-01T22:03:43.000Z
|
variables_samples/variable_files/variable_file_special_func.py
|
thinkAmi-sandbox/RobotFramework-sample
|
86455e912ac132350b8aacb430de9f060b9d722a
|
[
"Unlicense"
] | 2
|
2018-05-21T00:16:11.000Z
|
2019-11-04T13:43:57.000Z
|
def get_variables():
return {
'SPECIAL_FUNC': {'hoge': 'fuga'}
}
| 16.2
| 40
| 0.518519
| 8
| 81
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.296296
| 81
| 4
| 41
| 20.25
| 0.701754
| 0
| 0
| 0
| 0
| 0
| 0.246914
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0
| 0
| 0.25
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
ef3f5a6f6d0b8e505b057dfebc94ab51851a4a70
| 146
|
py
|
Python
|
go_template/__init__.py
|
mopeneko/go-template
|
9b1749b573d08a78bf416e52b2bf9c11f1d8c765
|
[
"MIT"
] | null | null | null |
go_template/__init__.py
|
mopeneko/go-template
|
9b1749b573d08a78bf416e52b2bf9c11f1d8c765
|
[
"MIT"
] | null | null | null |
go_template/__init__.py
|
mopeneko/go-template
|
9b1749b573d08a78bf416e52b2bf9c11f1d8c765
|
[
"MIT"
] | null | null | null |
# coding=utf-8
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from .wrapper import render_template
| 18.25
| 39
| 0.80137
| 20
| 146
| 5.4
| 0.6
| 0.305556
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007752
| 0.116438
| 146
| 7
| 40
| 20.857143
| 0.829457
| 0.082192
| 0
| 0
| 0
| 0
| 0.05303
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
ef60ccd0ec5d52e0a566d704eb0687b89c0ae65e
| 122
|
py
|
Python
|
identity.py
|
SoftwareEngineering4Scientists/python_primer
|
5ef64bc8955a1c236f28115a041466b8f8d2d09d
|
[
"MIT"
] | null | null | null |
identity.py
|
SoftwareEngineering4Scientists/python_primer
|
5ef64bc8955a1c236f28115a041466b8f8d2d09d
|
[
"MIT"
] | null | null | null |
identity.py
|
SoftwareEngineering4Scientists/python_primer
|
5ef64bc8955a1c236f28115a041466b8f8d2d09d
|
[
"MIT"
] | null | null | null |
# Has the same id
a = [1, 2, 3]
c = a
print(id(a), id(c))
# Has a different id
b = 42
print(id(b))
b = '42'
print(id(b))
| 11.090909
| 20
| 0.540984
| 29
| 122
| 2.275862
| 0.448276
| 0.318182
| 0.242424
| 0.30303
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075269
| 0.237705
| 122
| 10
| 21
| 12.2
| 0.634409
| 0.278689
| 0
| 0.285714
| 0
| 0
| 0.023529
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.428571
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
3281aa78aa9ca66f4c62c44f9dca22833965fd68
| 25
|
py
|
Python
|
xplore/__init__.py
|
ashishpatel26/xplore
|
3ab09d42b843fc271b331574d928e629889405e5
|
[
"MIT"
] | null | null | null |
xplore/__init__.py
|
ashishpatel26/xplore
|
3ab09d42b843fc271b331574d928e629889405e5
|
[
"MIT"
] | null | null | null |
xplore/__init__.py
|
ashishpatel26/xplore
|
3ab09d42b843fc271b331574d928e629889405e5
|
[
"MIT"
] | 1
|
2019-10-14T10:50:29.000Z
|
2019-10-14T10:50:29.000Z
|
from .main import Xplorer
| 25
| 25
| 0.84
| 4
| 25
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 25
| 1
| 25
| 25
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
328ded10f2120f3cc1dcd3572cca1272b4384d76
| 835
|
py
|
Python
|
datastruct/stack/ArrayStack.py
|
LibertyDream/algorithm_data_structure
|
5d143d04d001a9b8aef30334881d0af56d8c9850
|
[
"MIT"
] | null | null | null |
datastruct/stack/ArrayStack.py
|
LibertyDream/algorithm_data_structure
|
5d143d04d001a9b8aef30334881d0af56d8c9850
|
[
"MIT"
] | null | null | null |
datastruct/stack/ArrayStack.py
|
LibertyDream/algorithm_data_structure
|
5d143d04d001a9b8aef30334881d0af56d8c9850
|
[
"MIT"
] | null | null | null |
from Array import Array
from Stack import Stack
class ArrayStack(Stack):
def __init__(self, capacity: int = 10):
self.__data = Array(capacity)
def peek(self):
return self.__data.get_last()
def push(self, ele):
self.__data.add_to_last(ele)
def get_size(self):
return self.__data.get_size()
def pop(self):
return self.__data.remove_last()
def is_empty(self):
return self.__data.is_empty()
def __str__(self):
bstr = 'ArrayStack size: %d, capacity: %d\n' % (self.__data.get_size(), self.__data.get_capacity())
bstr += '['
for i in range(self.__data.get_size()):
bstr += '' + str(self.__data.get(i))
if i != self.__data.get_size() - 1:
bstr += ', '
bstr += '] top'
return bstr
| 26.09375
| 107
| 0.573653
| 110
| 835
| 3.972727
| 0.336364
| 0.201373
| 0.176201
| 0.16476
| 0.09611
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005059
| 0.28982
| 835
| 31
| 108
| 26.935484
| 0.731872
| 0
| 0
| 0
| 0
| 0
| 0.051497
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.291667
| false
| 0
| 0.083333
| 0.166667
| 0.625
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
328ff3cad667482c7f3321316f7d5d7c37343960
| 77
|
py
|
Python
|
src/Parser/__init__.py
|
ChalkCode/cool-compiler-2021
|
9bab662676c3281b496aad63228583db4a7244db
|
[
"MIT"
] | null | null | null |
src/Parser/__init__.py
|
ChalkCode/cool-compiler-2021
|
9bab662676c3281b496aad63228583db4a7244db
|
[
"MIT"
] | null | null | null |
src/Parser/__init__.py
|
ChalkCode/cool-compiler-2021
|
9bab662676c3281b496aad63228583db4a7244db
|
[
"MIT"
] | 1
|
2022-02-24T17:16:42.000Z
|
2022-02-24T17:16:42.000Z
|
from .evaluation import evaluate_reverse_parse
from .parser import CoolParser
| 38.5
| 46
| 0.883117
| 10
| 77
| 6.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 77
| 2
| 47
| 38.5
| 0.942857
| 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
|
088b0e7d07d22a95bb2aeaf63351d28ab2cb85e1
| 149
|
py
|
Python
|
hbutils/color/__init__.py
|
HansBug/hbutils
|
6872311c8a441c5955572e0093b10189a2b90708
|
[
"Apache-2.0"
] | null | null | null |
hbutils/color/__init__.py
|
HansBug/hbutils
|
6872311c8a441c5955572e0093b10189a2b90708
|
[
"Apache-2.0"
] | 25
|
2021-10-03T06:19:05.000Z
|
2022-03-27T12:48:57.000Z
|
hbutils/color/__init__.py
|
HansBug/hbutils
|
6872311c8a441c5955572e0093b10189a2b90708
|
[
"Apache-2.0"
] | null | null | null |
"""
Overview:
Color module, include the basic color system model, and some simple color utilities.
"""
from .model import *
from .utils import *
| 21.285714
| 88
| 0.718121
| 20
| 149
| 5.35
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.187919
| 149
| 6
| 89
| 24.833333
| 0.884298
| 0.657718
| 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
|
08a5626bf79801fffb1d49f8b05b5cd6a34ace91
| 51
|
py
|
Python
|
sol/sol_big_diff.py
|
igamberdievhasan/codingbat-notebooks
|
b0a41f22b9064efc7f7f7da55e8c99fc21ce364d
|
[
"Apache-2.0"
] | null | null | null |
sol/sol_big_diff.py
|
igamberdievhasan/codingbat-notebooks
|
b0a41f22b9064efc7f7f7da55e8c99fc21ce364d
|
[
"Apache-2.0"
] | 6
|
2020-03-02T20:59:43.000Z
|
2020-03-18T01:20:30.000Z
|
sol/sol_big_diff.py
|
igamberdievhasan/codingbat-notebooks
|
b0a41f22b9064efc7f7f7da55e8c99fc21ce364d
|
[
"Apache-2.0"
] | 1
|
2020-03-13T02:48:04.000Z
|
2020-03-13T02:48:04.000Z
|
def big_diff(nums):
return max(nums) - min(nums)
| 17
| 30
| 0.686275
| 9
| 51
| 3.777778
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156863
| 51
| 2
| 31
| 25.5
| 0.790698
| 0
| 0
| 0
| 0
| 0
| 0
| 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
|
08c071d1ba142ebcd5f0692630b36ad1cf47c74c
| 6,900
|
py
|
Python
|
Algorithm.Python/stubs/QuantConnect/Data/Custom/__init__.py
|
gaoxiaojun/Lean
|
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
|
[
"Apache-2.0"
] | 2
|
2020-12-08T11:27:20.000Z
|
2021-04-06T13:21:15.000Z
|
Algorithm.Python/stubs/QuantConnect/Data/Custom/__init__.py
|
gaoxiaojun/Lean
|
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
|
[
"Apache-2.0"
] | null | null | null |
Algorithm.Python/stubs/QuantConnect/Data/Custom/__init__.py
|
gaoxiaojun/Lean
|
9dca43bccb720d0df91e4bfc1d363b71e3a36cb5
|
[
"Apache-2.0"
] | 1
|
2020-12-08T11:27:21.000Z
|
2020-12-08T11:27:21.000Z
|
import typing
import System.IO
import System
import QuantConnect.Data.Custom
import QuantConnect.Data
import QuantConnect
import datetime
# no functions
# classes
class FxcmVolume(QuantConnect.Data.BaseData, QuantConnect.Data.IBaseData):
"""
FXCM Real FOREX Volume and Transaction data from its clients base, available for the following pairs:
- EURUSD, USDJPY, GBPUSD, USDCHF, EURCHF, AUDUSD, USDCAD,
NZDUSD, EURGBP, EURJPY, GBPJPY, EURAUD, EURCAD, AUDJPY
FXCM only provides support for FX symbols which produced over 110 million average daily volume (ADV) during 2013.
This limit is imposed to ensure we do not highlight low volume/low ticket symbols in addition to other financial
reporting concerns.
FxcmVolume()
"""
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.SubscriptionDataSource:
pass
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> str:
pass
def GetSource(self, *args) -> str:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, stream: System.IO.StreamReader, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> QuantConnect.Data.BaseData:
pass
def Reader(self, *args) -> QuantConnect.Data.BaseData:
pass
Transactions: int
Volume: int
class NullData(QuantConnect.Data.BaseData, QuantConnect.Data.IBaseData):
"""
Represents a custom data type that works as a heartbeat of data in live mode
NullData()
"""
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.SubscriptionDataSource:
pass
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> str:
pass
def GetSource(self, *args) -> str:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, stream: System.IO.StreamReader, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> QuantConnect.Data.BaseData:
pass
def Reader(self, *args) -> QuantConnect.Data.BaseData:
pass
EndTime: datetime.datetime
class Quandl(QuantConnect.Data.DynamicData, System.Dynamic.IDynamicMetaObjectProvider, QuantConnect.Data.IBaseData):
"""
Quandl Data Type - Import generic data from quandl, without needing to define Reader methods.
This reads the headers of the data imported, and dynamically creates properties for the imported data.
Quandl()
"""
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.SubscriptionDataSource:
pass
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> str:
pass
def GetSource(self, *args) -> str:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, stream: System.IO.StreamReader, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> QuantConnect.Data.BaseData:
pass
def Reader(self, *args) -> QuantConnect.Data.BaseData:
pass
@staticmethod
def SetAuthCode(authCode: str) -> None:
pass
def __init__(self) -> QuantConnect.Data.Custom.Quandl:
pass
EndTime: datetime.datetime
Period: datetime.timedelta
IsAuthCodeSet: bool
class USEnergyAPI(QuantConnect.Data.BaseData, QuantConnect.Data.IBaseData):
"""
US Energy Information Administration provides extensive data on energy usage, import, export,
and forecasting across all US energy sectors.
https://www.eia.gov/opendata/
USEnergyAPI()
"""
def DefaultResolution(self) -> QuantConnect.Resolution:
pass
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.SubscriptionDataSource:
pass
@typing.overload
def GetSource(self, config: QuantConnect.Data.SubscriptionDataConfig, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> str:
pass
def GetSource(self, *args) -> str:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, content: str, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, stream: System.IO.StreamReader, date: datetime.datetime, isLiveMode: bool) -> QuantConnect.Data.BaseData:
pass
@typing.overload
def Reader(self, config: QuantConnect.Data.SubscriptionDataConfig, line: str, date: datetime.datetime, datafeed: QuantConnect.DataFeedEndpoint) -> QuantConnect.Data.BaseData:
pass
def Reader(self, *args) -> QuantConnect.Data.BaseData:
pass
@staticmethod
def SetAuthCode(authCode: str) -> None:
pass
def SupportedResolutions(self) -> typing.List[QuantConnect.Resolution]:
pass
EndTime: datetime.datetime
EnergyDataPointCloseTime: datetime.datetime
AuthCode: str
IsAuthCodeSet: bool
| 36.315789
| 178
| 0.714928
| 708
| 6,900
| 6.961864
| 0.221751
| 0.165551
| 0.06898
| 0.105498
| 0.714749
| 0.714749
| 0.684926
| 0.684926
| 0.684926
| 0.684926
| 0
| 0.001261
| 0.195507
| 6,900
| 189
| 179
| 36.507937
| 0.886687
| 0.158841
| 0
| 0.816514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.302752
| false
| 0.302752
| 0.06422
| 0
| 0.495413
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
08ed2cafe7adcd7baa99bbe8c54a47447a64e96f
| 675
|
py
|
Python
|
UI/Graduation/ReadingTest/models.py
|
Biggig/xlnet
|
8f69d95f92c5b0bbc26920d8d6f62f2362a5738c
|
[
"Apache-2.0"
] | null | null | null |
UI/Graduation/ReadingTest/models.py
|
Biggig/xlnet
|
8f69d95f92c5b0bbc26920d8d6f62f2362a5738c
|
[
"Apache-2.0"
] | null | null | null |
UI/Graduation/ReadingTest/models.py
|
Biggig/xlnet
|
8f69d95f92c5b0bbc26920d8d6f62f2362a5738c
|
[
"Apache-2.0"
] | null | null | null |
from django.db import models
# Create your models here.
class Reading(models.Model):
id = models.CharField(max_length=20, primary_key=True, unique=True)#主键
article = models.TextField()
def __str__(self):
return self.id
class Q_A(models.Model):
reading = models.ForeignKey('Reading', on_delete=models.CASCADE)
question = models.CharField(max_length=512)
answer = models.CharField(max_length=2)
option_a = models.CharField(max_length=512)
option_b = models.CharField(max_length=512)
option_c = models.CharField(max_length=512)
option_d = models.CharField(max_length=512)
def __str__(self):
return self.question
| 28.125
| 74
| 0.72
| 93
| 675
| 4.989247
| 0.44086
| 0.226293
| 0.271552
| 0.362069
| 0.415948
| 0.213362
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0.173333
| 675
| 23
| 75
| 29.347826
| 0.799283
| 0.038519
| 0
| 0.125
| 0
| 0
| 0.010853
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.0625
| 0.125
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
f5bb52aa2894ad9a80ba44b8b3cdc3cd83e5469b
| 5,317
|
py
|
Python
|
z2/part2/interactive/jm/random_normal_1/367439522.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 1
|
2020-04-16T12:13:47.000Z
|
2020-04-16T12:13:47.000Z
|
z2/part2/interactive/jm/random_normal_1/367439522.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:50:15.000Z
|
2020-05-19T14:58:30.000Z
|
z2/part2/interactive/jm/random_normal_1/367439522.py
|
kozakusek/ipp-2020-testy
|
09aa008fa53d159672cc7cbf969a6b237e15a7b8
|
[
"MIT"
] | 18
|
2020-03-06T17:45:13.000Z
|
2020-06-09T19:18:31.000Z
|
from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 367439522
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 5, 6, 2)
assert board is not None
assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 2, 0, 2) == 1
assert gamma_busy_fields(board, 2) == 1
assert gamma_golden_move(board, 2, 3, 0) == 0
assert gamma_move(board, 3, 4, 2) == 1
assert gamma_move(board, 3, 4, 3) == 1
assert gamma_move(board, 4, 2, 2) == 1
assert gamma_move(board, 4, 3, 3) == 1
assert gamma_move(board, 5, 4, 0) == 1
assert gamma_move(board, 5, 3, 0) == 1
assert gamma_move(board, 6, 1, 1) == 1
assert gamma_move(board, 6, 5, 4) == 1
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 1, 5, 1) == 0
assert gamma_move(board, 2, 1, 4) == 1
assert gamma_free_fields(board, 2) == 5
assert gamma_move(board, 3, 0, 2) == 0
assert gamma_move(board, 3, 3, 2) == 1
assert gamma_move(board, 4, 0, 2) == 0
assert gamma_move(board, 5, 5, 0) == 1
assert gamma_move(board, 6, 4, 2) == 0
assert gamma_move(board, 6, 2, 1) == 1
assert gamma_move(board, 1, 5, 4) == 0
assert gamma_move(board, 2, 3, 1) == 0
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 4, 4, 0) == 0
assert gamma_move(board, 4, 1, 2) == 1
assert gamma_golden_move(board, 4, 4, 1) == 0
assert gamma_move(board, 5, 0, 2) == 0
assert gamma_move(board, 5, 5, 0) == 0
assert gamma_move(board, 6, 0, 2) == 0
assert gamma_move(board, 1, 1, 5) == 0
assert gamma_move(board, 1, 4, 1) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_free_fields(board, 2) == 4
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 4, 3, 2) == 0
board636433993 = gamma_board(board)
assert board636433993 is not None
assert board636433993 == (".2...6\n"
"1..43.\n"
"24433.\n"
".66...\n"
"1..555\n")
del board636433993
board636433993 = None
assert gamma_move(board, 5, 3, 2) == 0
board131196582 = gamma_board(board)
assert board131196582 is not None
assert board131196582 == (".2...6\n"
"1..43.\n"
"24433.\n"
".66...\n"
"1..555\n")
del board131196582
board131196582 = None
assert gamma_move(board, 6, 0, 4) == 0
assert gamma_golden_possible(board, 6) == 1
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 4, 1, 3) == 1
assert gamma_move(board, 4, 3, 1) == 0
assert gamma_move(board, 5, 1, 0) == 0
assert gamma_move(board, 5, 3, 3) == 0
assert gamma_busy_fields(board, 5) == 3
assert gamma_move(board, 6, 1, 0) == 0
assert gamma_move(board, 1, 4, 2) == 0
assert gamma_move(board, 2, 1, 5) == 0
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_busy_fields(board, 2) == 2
assert gamma_move(board, 4, 1, 4) == 0
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 5, 3, 0) == 0
board144005725 = gamma_board(board)
assert board144005725 is not None
assert board144005725 == (".2...6\n"
"14.43.\n"
"24433.\n"
".66...\n"
"11.555\n")
del board144005725
board144005725 = None
assert gamma_move(board, 6, 4, 3) == 0
assert gamma_move(board, 6, 0, 2) == 0
assert gamma_move(board, 1, 2, 3) == 0
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 3, 4, 3) == 0
assert gamma_move(board, 3, 3, 2) == 0
assert gamma_golden_move(board, 3, 3, 0) == 1
assert gamma_move(board, 4, 3, 2) == 0
assert gamma_golden_move(board, 4, 0, 5) == 0
assert gamma_move(board, 5, 0, 2) == 0
assert gamma_move(board, 6, 1, 2) == 0
assert gamma_move(board, 1, 3, 2) == 0
assert gamma_move(board, 1, 1, 3) == 0
assert gamma_free_fields(board, 1) == 3
assert gamma_move(board, 2, 2, 2) == 0
assert gamma_busy_fields(board, 2) == 2
assert gamma_move(board, 3, 1, 5) == 0
assert gamma_move(board, 3, 4, 0) == 0
assert gamma_busy_fields(board, 3) == 4
assert gamma_move(board, 4, 4, 2) == 0
assert gamma_move(board, 4, 4, 3) == 0
assert gamma_move(board, 5, 0, 4) == 1
assert gamma_move(board, 6, 4, 4) == 1
assert gamma_move(board, 1, 3, 2) == 0
assert gamma_move(board, 2, 2, 2) == 0
assert gamma_move(board, 3, 3, 5) == 0
assert gamma_golden_possible(board, 3) == 0
assert gamma_move(board, 4, 0, 2) == 0
assert gamma_busy_fields(board, 4) == 4
board890831747 = gamma_board(board)
assert board890831747 is not None
assert board890831747 == ("52..66\n"
"14.43.\n"
"24433.\n"
".66...\n"
"11.355\n")
del board890831747
board890831747 = None
assert gamma_move(board, 5, 4, 2) == 0
assert gamma_move(board, 5, 0, 2) == 0
assert gamma_move(board, 6, 3, 2) == 0
assert gamma_move(board, 1, 4, 3) == 0
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 2, 4, 0) == 0
assert gamma_move(board, 2, 4, 4) == 0
assert gamma_move(board, 3, 0, 2) == 0
assert gamma_busy_fields(board, 3) == 4
assert gamma_move(board, 4, 3, 2) == 0
assert gamma_move(board, 4, 0, 1) == 0
assert gamma_move(board, 5, 1, 3) == 0
assert gamma_move(board, 5, 5, 1) == 1
assert gamma_golden_possible(board, 5) == 1
assert gamma_move(board, 6, 1, 3) == 0
assert gamma_move(board, 6, 2, 2) == 0
gamma_delete(board)
| 30.734104
| 46
| 0.656573
| 973
| 5,317
| 3.441932
| 0.047276
| 0.33831
| 0.376232
| 0.501642
| 0.790982
| 0.779337
| 0.650941
| 0.385488
| 0.294118
| 0.283965
| 0
| 0.148267
| 0.180553
| 5,317
| 172
| 47
| 30.912791
| 0.620381
| 0
| 0
| 0.25
| 0
| 0
| 0.030599
| 0
| 0
| 0
| 0
| 0
| 0.736842
| 1
| 0
| false
| 0
| 0.006579
| 0
| 0.006579
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f5c4a26d8305411218497daee42468ab69b1ec55
| 23
|
py
|
Python
|
Course 3 - Using Python to Access Web Data/Week 1/3.1.py
|
vardecab/coursera-py4e
|
a852895d6904b6aacfc2ebaa646f827f521535bf
|
[
"MIT"
] | 1
|
2019-09-08T08:46:27.000Z
|
2019-09-08T08:46:27.000Z
|
Course 3 - Using Python to Access Web Data/Week 1/3.1.py
|
vardecab/coursera-py4e
|
a852895d6904b6aacfc2ebaa646f827f521535bf
|
[
"MIT"
] | null | null | null |
Course 3 - Using Python to Access Web Data/Week 1/3.1.py
|
vardecab/coursera-py4e
|
a852895d6904b6aacfc2ebaa646f827f521535bf
|
[
"MIT"
] | null | null | null |
print ('Hi there PY4E')
| 23
| 23
| 0.695652
| 4
| 23
| 4
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.05
| 0.130435
| 23
| 1
| 23
| 23
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.541667
| 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
|
de4f8abd30ecdeebafc817a85a4af2c0cba04c16
| 62
|
py
|
Python
|
ssl_metrics_github_issues/version.py
|
estoneman/ssl-metrics-github-issues
|
d0eb84d957d3a37886d4f5aa48b015075ae107cf
|
[
"BSD-3-Clause"
] | null | null | null |
ssl_metrics_github_issues/version.py
|
estoneman/ssl-metrics-github-issues
|
d0eb84d957d3a37886d4f5aa48b015075ae107cf
|
[
"BSD-3-Clause"
] | null | null | null |
ssl_metrics_github_issues/version.py
|
estoneman/ssl-metrics-github-issues
|
d0eb84d957d3a37886d4f5aa48b015075ae107cf
|
[
"BSD-3-Clause"
] | null | null | null |
__version__ = "0.7.1"
def version():
return __version__
| 10.333333
| 22
| 0.66129
| 8
| 62
| 4.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061224
| 0.209677
| 62
| 5
| 23
| 12.4
| 0.612245
| 0
| 0
| 0
| 0
| 0
| 0.080645
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.333333
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
de6dbe8c0c30f16541e9accade155b80b4b0310c
| 154
|
py
|
Python
|
plugins/dlab_gcp/dlab_gcp/infrastructure/controllers/deployment.py
|
mediapills/dlab
|
02392660094e53adf2d6742f63cadbfaf4cd6168
|
[
"Apache-2.0"
] | null | null | null |
plugins/dlab_gcp/dlab_gcp/infrastructure/controllers/deployment.py
|
mediapills/dlab
|
02392660094e53adf2d6742f63cadbfaf4cd6168
|
[
"Apache-2.0"
] | 129
|
2019-06-22T14:04:07.000Z
|
2019-11-13T14:01:40.000Z
|
plugins/dlab_gcp/dlab_gcp/infrastructure/controllers/deployment.py
|
mediapills/dlab
|
02392660094e53adf2d6742f63cadbfaf4cd6168
|
[
"Apache-2.0"
] | 6
|
2019-07-09T13:54:24.000Z
|
2019-11-13T10:16:47.000Z
|
from dlab_deployment.infrastructure.controllers import (
BaseDeploymentCLIController)
class GCPCLIController(BaseDeploymentCLIController):
pass
| 22
| 56
| 0.837662
| 11
| 154
| 11.636364
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116883
| 154
| 6
| 57
| 25.666667
| 0.941176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.25
| 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
|
de9c48e431d4bfab5b3b4110991254947106bb48
| 25,145
|
py
|
Python
|
src/experiments/Harmonic.py
|
Antonio-Cruciani/fair-group-centrality
|
edb77e4b7929004a52704eacdefd2f6d3c640b17
|
[
"MIT"
] | null | null | null |
src/experiments/Harmonic.py
|
Antonio-Cruciani/fair-group-centrality
|
edb77e4b7929004a52704eacdefd2f6d3c640b17
|
[
"MIT"
] | null | null | null |
src/experiments/Harmonic.py
|
Antonio-Cruciani/fair-group-centrality
|
edb77e4b7929004a52704eacdefd2f6d3c640b17
|
[
"MIT"
] | null | null | null |
import itertools
import logging
import json
import networkit as nk
import pandas as pd
from src.generators.graphs.SBM import SBM
from src.generators.graphs.ErdosRenyi import ErdosRenyi
from src.generators.graphs.BarabasiAlbert import BarabasiAlbert
from src.measures.FairHarmonicCentrality import FairGroupHarmonicCentrality,GroupHarmonicCentrality
from pathlib import Path
class Harmonic:
'''
instance= {
type = "Syntetic or Real"
graph = [{ "name": ,
"parameters":{"n": ,
"k":,
"structure": ,
"threshold"; ,
} }],
experiments = {"mod": rnd\pagerank\maxHitting\classic\maxDeg\sampleInEachCommunity\maxDegreeInEachCommunity\maxHCInEachCommunity,
"Ssize": [ ] ,
"nRun": ,
}
}
'''
def __init__(self,instance):
self.instance = instance
self.graphs = []
self.communities = []
self.names = []
self.results = []
self.node_community_mapping = []
self.parameters = []
def run(self):
if(self.instance['type'] in ['synthetic','Synthetic']):
self.runSynteticExperiments()
if(self.instance['type'] in ['real','Real']):
self.runRealExperiments()
if(self.instance['experiments']['mod'] in ['rnd','random','rd']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph' : self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
for size in fairSetSizes:
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.set_k(size)
FGH.sampleS(trials)
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
#print("Group that maximizes GHC ",FGH.get_S())
#print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = trials
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
#result['experiments'].append(FGH)
'''
logging.debug("Max Group Harmonic Centrality: %r"%FGH.get_GHC_max_group())
if(PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r"%PoF)'''
result['experiments'].append(res)
communityIndex += 1
results.append(result)
elif(self.instance['experiments']['mod'] in ['pr','PageRank','pagerank']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
for size in fairSetSizes:
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.set_k(size)
FGH.samplePageRankS(trials)
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = trials
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Max Group Harmonic Centrality: %r"%FGH.get_GHC_max_group())
if(PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r"%PoF)'''
result['experiments'].append(res)
communityIndex += 1
results.append(result)
elif (self.instance['experiments']['mod'] in ['sampleInEachCommunity', 'siec']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.sampleInEachCommunity()
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex ]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)'''
result['experiments'].append(res)
communityIndex+=1
results.append(result)
elif (self.instance['experiments']['mod'] in ['maxHitting', 'MH','mh']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
for size in fairSetSizes:
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.set_k(size)
FGH.maxHitting()
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)'''
result['experiments'].append(res)
communityIndex+=1
results.append(result)
elif (self.instance['experiments']['mod'] in ['Classic','classic', 'CL', 'cl']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
for size in fairSetSizes:
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.set_S(None)
FGH.set_k(size)
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)'''
result['experiments'].append(res)
communityIndex+=1
results.append(result)
elif (self.instance['experiments']['mod'] in ['maxDeg', 'md', 'MD']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
for size in fairSetSizes:
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
FGH.set_k(size)
FGH.maxDegS()
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)'''
result['experiments'].append(res)
communityIndex+=1
results.append(result)
elif (self.instance['experiments']['mod'] in ['maxDegInEachCommunity', 'mdiec', 'MDIEC']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
#FGH.set_k(size)
FGH.maxDegreeInEachCommunity()
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
'''logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)'''
result['experiments'].append(res)
communityIndex+=1
results.append(result)
elif (self.instance['experiments']['mod'] in ['maxHCInEachCommunity', 'mhciec', 'MHCIEC']):
fairSetSizes = self.instance['experiments']['sSize']
trials = self.instance['experiments']['nRun']
results = []
communityIndex = 0
for graph in self.graphs:
result = {'graph': self.names[communityIndex],
'parameters': self.parameters[communityIndex],
'experiment_mod': self.instance['experiments']['mod'],
'experiments': []}
FGH = FairGroupHarmonicCentrality(graph, self.communities[communityIndex], None)
# FGH.set_k(size)
FGH.maxHCInEachCommunity()
FGH.computeGroupsCentralities()
FGH.computeFairGroupHarmonicCentrality(FGH.get_S())
# print("Group that maximizes GHC ",FGH.get_S())
# print("GH ",FGH.get_GHC_max_group())
PoF = FGH.get_price_of_fairness()
res = {}
res['type_of_exp'] = self.instance['experiments']['mod']
res['sampling_trials'] = -1
res['fair_set_size'] = len(FGH.get_S())
res['fair_set'] = FGH.get_S()
res['group_harmonic'] = FGH.get_GHC_max_group()
res['PoF'] = FGH.get_price_of_fairness()
res['fair_harmonic_centrality'] = FGH.get_FGHC()
res['communities_dimension'] = FGH.get_communities_size()
res['node_community_mapping'] = self.node_community_mapping[communityIndex ]
res['execution_time'] = FGH.get_overall_time()
res['fair_group_centrality_time'] = FGH.get_exec_time()
res['fair_group_centrality_community_time'] = FGH.get_time_per_comm()
logging.debug("Group Harmonic Centrality: %r" % FGH.get_GH())
if (PoF == -1):
logging.debug("PoF: Undefined")
else:
logging.debug("PoF: %r" % PoF)
result['experiments'].append(res)
communityIndex += 1
results.append(result)
self.results.extend(results)
def runRealExperiments(self):
logging.info("Loading Communities")
communities = []
with open(self.instance['inputPathCommunities'], 'r') as f:
data = f.read()
for line in data.split("\n"):
community = []
for elem in line.split("\t"):
community.append(int(elem))
communities.append(community)
logging.info("Loading Communities: Completed")
logging.info("Loading Graph")
self.graphs.append(nk.graphio.EdgeListReader('\t', 0, '#').read(self.instance['inputPathGraph']))
#self.graphs.append(nk.graphio.SNAPGraphReader().read(self.instance['inputPathGraph']))
logging.info("Loading Graph: Completed")
edgeListName = self.instance['inputPathGraph'].split('/')[-1]
self.names.append(edgeListName)
self.communities.append(communities)
self.parameters.append(" ")
# Method that load the datasets and run the experiments
def runSynteticExperiments(self):
for elem in self.instance['graphs']:
# listOfParameters = []
#
# for parameter in self.instance['graphs'][elem]:
#
# listOfParameters.append(parameter)
#
# parametersCombination =list(itertools.product(*listOfParameters))
# paraKeys = list(self.instance['graphs'][elem].keys())
# Loading the graphs
if(elem['name'] in ['Erdos-Renyi','ER','er','Erdos Renyi','ErdosRenyi']):
inputPath = "datasets/synthetic/erdos_renyi/"
edgeListName = "Erdos-Renyi.ungraph.txt"
communitiesName = "Erdos-Renyi.all.cmty.txt"
elif(elem['name'] in ['Barabasi-Albert','BA','ba','BarabasiAlbert','Barabasi Albert']):
inputPath = "datasets/synthetic/barabasi_albert/"
edgeListName = "Barabasi-Albert.ungraph.txt"
communitiesName = "Barabasi-Albert.all.cmty.txt"
elif(elem['name'] in ['SBM','sbm','Stochastic-Block-Model']):
inputPath = "datasets/synthetic/sbm/"
edgeListName = "Stochastic-Block-Model.ungraph.txt"
communitiesName = "Stochastic-Block-Model.all.cmty.txt"
parameterKeys = list(elem['parameters'].keys())
name = ""
j = 0
for e,v in elem['parameters'].items():
name += str(e) + str(v)
if(j<len(elem['parameters'])):
name+="/"
j+=1
self.parameters.append(elem['parameters'])
#print(elem['parameters'])
# for para in parametersCombination:
# name = ""
# j = 0
# for e in para:
# name += "_" + str(paraKeys[j]) + "_" + str(e)
# j += 1
inputPathGraph = inputPath + name + edgeListName
inputPathCommunities = inputPath + name + communitiesName
communities = []
index = 0
node_community_mapping = {}
with open(inputPathCommunities, 'r') as f:
data = f.read()
for line in data.split("\n"):
community = []
for elem in line.split("\t"):
community.append(int(elem))
node_community_mapping[int(elem)] = index
communities.append(community)
index +=1
self.graphs.append(nk.graphio.EdgeListReader('\t', 0, '#').read(inputPathGraph))
#self.graphs.append(nk.graphio.SNAPGraphReader().read(inputPathGraph))
self.names.append(edgeListName)
self.communities.append(communities)
self.node_community_mapping.append(node_community_mapping)
def get_graphs(self):
return (self.graphs)
def get_communities(self):
return(self.communities)
def get_node_community_mapping(self):
return (self.node_community_mapping)
def save_results_to_json(self,path = "./"):
if Path(path).is_file():
with open(path, 'a+', encoding='utf-8') as f:
fileHandle = open(path, "r")
lineList = fileHandle.readlines()
fileHandle.close()
if(lineList[-1] != '['):
f.write(',')
with open(path, 'a+', encoding='utf-8') as f:
json.dump(self.results, f, ensure_ascii=False, indent=4)
def define_list_of_jsons(self,path):
if not Path(path).is_file():
with open(path, 'a+', encoding='utf-8') as f:
f.write('[')
def close_list_of_jsons(self,path):
with open(path, 'a+', encoding='utf-8') as f:
f.write(']')
def save_results_to_csv(self,path = "./"):
lista_to_csv = []
for elem in self.results:
for exp in elem['experiments']:
lista_to_csv.append({**elem['parameters'],**exp})
for dic in self.results:
df = pd.DataFrame(lista_to_csv)
name = dic['graph'][0:-4]
towriteName = ''
for x in name:
towriteName+=x
df.to_csv(path+towriteName+'.csv')
print("TO DO")
| 44.269366
| 137
| 0.522847
| 2,325
| 25,145
| 5.458925
| 0.089892
| 0.052001
| 0.072487
| 0.049165
| 0.757485
| 0.747558
| 0.746376
| 0.742594
| 0.726836
| 0.707611
| 0
| 0.002889
| 0.353032
| 25,145
| 567
| 138
| 44.347443
| 0.777293
| 0.069278
| 0
| 0.689295
| 0
| 0
| 0.164106
| 0.062755
| 0
| 0
| 0
| 0
| 0
| 1
| 0.028721
| false
| 0
| 0.02611
| 0.007833
| 0.062663
| 0.002611
| 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
|
dec8f59ceae5a1a8b0a17a57861115c5f164062e
| 156
|
py
|
Python
|
shyurl/views.py
|
tomatohater/django-shyurl
|
94c7fab35e7bf5e79ae254e3cfd4f9449b843b13
|
[
"MIT"
] | null | null | null |
shyurl/views.py
|
tomatohater/django-shyurl
|
94c7fab35e7bf5e79ae254e3cfd4f9449b843b13
|
[
"MIT"
] | null | null | null |
shyurl/views.py
|
tomatohater/django-shyurl
|
94c7fab35e7bf5e79ae254e3cfd4f9449b843b13
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""`django-shyurl` views."""
from django.http import HttpResponseNotFound
def blocked(request):
return HttpResponseNotFound()
| 19.5
| 44
| 0.705128
| 16
| 156
| 6.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007407
| 0.134615
| 156
| 7
| 45
| 22.285714
| 0.807407
| 0.288462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 5
|
dee94e1b29238cae03e2ae00b7e049a703a7917d
| 77
|
py
|
Python
|
talesDB/test.py
|
Gabe397/Tales
|
0487843a85e8e70273978638b58e1f3f07d90e70
|
[
"MIT"
] | null | null | null |
talesDB/test.py
|
Gabe397/Tales
|
0487843a85e8e70273978638b58e1f3f07d90e70
|
[
"MIT"
] | null | null | null |
talesDB/test.py
|
Gabe397/Tales
|
0487843a85e8e70273978638b58e1f3f07d90e70
|
[
"MIT"
] | null | null | null |
import sqlCommands
sqlCommands.auth("fwwake2mail@fake.com","badPass")
| 7.7
| 50
| 0.74026
| 8
| 77
| 7.125
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014925
| 0.12987
| 77
| 9
| 51
| 8.555556
| 0.835821
| 0
| 0
| 0
| 0
| 0
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
a0d41135d9ef30c95aadbda47421047194e3904f
| 164
|
py
|
Python
|
meegkit/__init__.py
|
Matthijspals/python-meegkit
|
83c28df864d8b3e646c720a8289c3f105d2dcebc
|
[
"BSD-3-Clause"
] | null | null | null |
meegkit/__init__.py
|
Matthijspals/python-meegkit
|
83c28df864d8b3e646c720a8289c3f105d2dcebc
|
[
"BSD-3-Clause"
] | null | null | null |
meegkit/__init__.py
|
Matthijspals/python-meegkit
|
83c28df864d8b3e646c720a8289c3f105d2dcebc
|
[
"BSD-3-Clause"
] | null | null | null |
"""M/EEG denoising utilities in python."""
from . import asr, cca, detrend, dss, sns, star, tspca, utils
__all__ = ['asr', 'cca', 'detrend', 'dss', 'sns', 'star']
| 32.8
| 61
| 0.628049
| 23
| 164
| 4.304348
| 0.73913
| 0.121212
| 0.262626
| 0.323232
| 0.464646
| 0.464646
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152439
| 164
| 4
| 62
| 41
| 0.71223
| 0.219512
| 0
| 0
| 0
| 0
| 0.188525
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
|
9d2a24636d22a20d581100f97d94ad733fc3f2b4
| 2,365
|
py
|
Python
|
tests/test_mass_carats.py
|
putridparrot/PyUnits
|
4f1095c6fc0bee6ba936921c391913dbefd9307c
|
[
"MIT"
] | null | null | null |
tests/test_mass_carats.py
|
putridparrot/PyUnits
|
4f1095c6fc0bee6ba936921c391913dbefd9307c
|
[
"MIT"
] | null | null | null |
tests/test_mass_carats.py
|
putridparrot/PyUnits
|
4f1095c6fc0bee6ba936921c391913dbefd9307c
|
[
"MIT"
] | null | null | null |
# <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
import unittest
import units.mass.carats
class TestCaratsMethods(unittest.TestCase):
def test_convert_known_carats_to_milligrams(self):
self.assertAlmostEqual(420.0, units.mass.carats.to_milligrams(2.1), places=1)
self.assertAlmostEqual(24600.0, units.mass.carats.to_milligrams(123.0), places=1)
self.assertAlmostEqual(160.0, units.mass.carats.to_milligrams(0.8), places=1)
def test_convert_known_carats_to_grams(self):
self.assertAlmostEqual(0.16, units.mass.carats.to_grams(0.8), places=1)
self.assertAlmostEqual(0.3, units.mass.carats.to_grams(1.5), places=1)
self.assertAlmostEqual(2.4, units.mass.carats.to_grams(12.0), places=1)
def test_convert_known_carats_to_kilograms(self):
self.assertAlmostEqual(0.2018, units.mass.carats.to_kilograms(1009.0), places=1)
self.assertAlmostEqual(0.1998, units.mass.carats.to_kilograms(999.0), places=1)
self.assertAlmostEqual(0.2469, units.mass.carats.to_kilograms(1234.5), places=1)
def test_convert_known_carats_to_tonnes(self):
self.assertAlmostEqual(0.2469134, units.mass.carats.to_tonnes(1234567.0), places=1)
self.assertAlmostEqual(1.9999998, units.mass.carats.to_tonnes(9999999.0), places=1)
self.assertAlmostEqual(0.199775598, units.mass.carats.to_tonnes(998877.99), places=1)
def test_convert_known_carats_to_ounces(self):
self.assertAlmostEqual(6.34931, units.mass.carats.to_ounces(900.0), places=1)
self.assertAlmostEqual(0.870914121, units.mass.carats.to_ounces(123.45), places=1)
self.assertAlmostEqual(5.64383, units.mass.carats.to_ounces(800.0), places=1)
def test_convert_known_carats_to_pounds(self):
self.assertAlmostEqual(0.440925, units.mass.carats.to_pounds(1000.0), places=1)
self.assertAlmostEqual(54.4347781, units.mass.carats.to_pounds(123456.0), places=1)
self.assertAlmostEqual(0.35274, units.mass.carats.to_pounds(800.0), places=1)
def test_convert_known_carats_to_stones(self):
self.assertAlmostEqual(0.2834515, units.mass.carats.to_stones(9000.0), places=1)
self.assertAlmostEqual(3.88819843, units.mass.carats.to_stones(123456.0), places=1)
self.assertAlmostEqual(2.519593906, units.mass.carats.to_stones(80000.8), places=1)
if __name__ == '__main__':
unittest.main()
| 48.265306
| 87
| 0.789429
| 368
| 2,365
| 4.899457
| 0.233696
| 0.124237
| 0.183028
| 0.198003
| 0.615641
| 0.285635
| 0.118136
| 0.118136
| 0.061564
| 0.042152
| 0
| 0.116141
| 0.075264
| 2,365
| 48
| 88
| 49.270833
| 0.708276
| 0.063002
| 0
| 0
| 1
| 0
| 0.00362
| 0
| 0
| 0
| 0
| 0
| 0.636364
| 1
| 0.212121
| false
| 0
| 0.060606
| 0
| 0.30303
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9d2ff77d28dd24b483491172c5101d493f6530bd
| 202
|
bzl
|
Python
|
bazel/copts.bzl
|
bazelregistry/lexy
|
bb9dfbbf5b39caff7cbcfda88a4ad8faacaa7a44
|
[
"BSL-1.0"
] | null | null | null |
bazel/copts.bzl
|
bazelregistry/lexy
|
bb9dfbbf5b39caff7cbcfda88a4ad8faacaa7a44
|
[
"BSL-1.0"
] | null | null | null |
bazel/copts.bzl
|
bazelregistry/lexy
|
bb9dfbbf5b39caff7cbcfda88a4ad8faacaa7a44
|
[
"BSL-1.0"
] | null | null | null |
lexy_copts = select({
"@bazel_tools//src/conditions:windows": ["/std:c++latest"],
"@bazel_tools//src/conditions:windows_msvc": ["/std:c++latest"],
"//conditions:default": ["-std=c++20"],
})
| 33.666667
| 68
| 0.623762
| 25
| 202
| 4.88
| 0.56
| 0.098361
| 0.213115
| 0.377049
| 0.491803
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011111
| 0.108911
| 202
| 5
| 69
| 40.4
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0.668317
| 0.381188
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9d3e0226b4014f2b4cb88d59d1d36987c30b37bd
| 268
|
py
|
Python
|
livia_ui/gui/configuration/widgets/listener/WidgetChangeListener.py
|
sing-group/livia-ui
|
809d90d4429bdd48ad2b8bf6b9546b7ea0ca6dcf
|
[
"MIT"
] | null | null | null |
livia_ui/gui/configuration/widgets/listener/WidgetChangeListener.py
|
sing-group/livia-ui
|
809d90d4429bdd48ad2b8bf6b9546b7ea0ca6dcf
|
[
"MIT"
] | null | null | null |
livia_ui/gui/configuration/widgets/listener/WidgetChangeListener.py
|
sing-group/livia-ui
|
809d90d4429bdd48ad2b8bf6b9546b7ea0ca6dcf
|
[
"MIT"
] | null | null | null |
from livia.process.listener.EventListener import EventListener
from livia_ui.gui.configuration.widgets.listener.WidgetChangeEvent import WidgetChangeEvent
class WidgetChangeListener(EventListener):
def value_changed(self, event: WidgetChangeEvent):
pass
| 33.5
| 91
| 0.83209
| 27
| 268
| 8.185185
| 0.703704
| 0.081448
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108209
| 268
| 7
| 92
| 38.285714
| 0.924686
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
19f9824b3524dcafc75e8e20c7916182aa9f77eb
| 272
|
py
|
Python
|
python/anyascii/_data/_2e9.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_2e9.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_2e9.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b=' Men Chu Diu Rui Bi E Chang Wei'
| 272
| 272
| 0.088235
| 9
| 272
| 2.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.900735
| 272
| 1
| 272
| 272
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0.981685
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
c203669f8b50452867d082aa0be132b2d55be660
| 54
|
py
|
Python
|
penl/__init__.py
|
mrdvince/penlight
|
2c15fc723955c8c1eead885579f88378e3d61f10
|
[
"MIT"
] | null | null | null |
penl/__init__.py
|
mrdvince/penlight
|
2c15fc723955c8c1eead885579f88378e3d61f10
|
[
"MIT"
] | null | null | null |
penl/__init__.py
|
mrdvince/penlight
|
2c15fc723955c8c1eead885579f88378e3d61f10
|
[
"MIT"
] | null | null | null |
from ._tensor import tensor, matmul, eye # noqa: F401
| 54
| 54
| 0.740741
| 8
| 54
| 4.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0.166667
| 54
| 1
| 54
| 54
| 0.8
| 0.185185
| 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
|
c22345ba6d413dd283d42e220881eb8a332f66e1
| 77
|
py
|
Python
|
core/networks/__init__.py
|
rdbch/tutorial_simclr
|
7083b5c1bd75a14cf63899249664f17ca7e10331
|
[
"MIT"
] | 9
|
2021-02-12T15:19:56.000Z
|
2021-03-02T19:45:40.000Z
|
core/networks/__init__.py
|
rdbch/tutorial_simclr
|
7083b5c1bd75a14cf63899249664f17ca7e10331
|
[
"MIT"
] | null | null | null |
core/networks/__init__.py
|
rdbch/tutorial_simclr
|
7083b5c1bd75a14cf63899249664f17ca7e10331
|
[
"MIT"
] | null | null | null |
from .mlp import MLP
from .resnet import ResNet
from .simclr import SimCLR
| 25.666667
| 26
| 0.779221
| 12
| 77
| 5
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 77
| 3
| 27
| 25.666667
| 0.952381
| 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
|
df997c6eba1487234ae383ab1ca1d8130c37fc28
| 29
|
py
|
Python
|
kay/tests/gaema_testapp/__init__.py
|
Letractively/kay-framework
|
a4cfabe3497e13c3785e5ec381b9cff11a378df3
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2015-11-05T08:30:09.000Z
|
2015-11-05T08:30:09.000Z
|
kay/tests/gaema_testapp/__init__.py
|
ianlewis/kay
|
1bf28487dc2a273eaa44d442aec8baa6453240b7
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
kay/tests/gaema_testapp/__init__.py
|
ianlewis/kay
|
1bf28487dc2a273eaa44d442aec8baa6453240b7
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2016-05-23T16:30:15.000Z
|
2016-05-23T16:30:15.000Z
|
# test application for gaema
| 14.5
| 28
| 0.793103
| 4
| 29
| 5.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 29
| 1
| 29
| 29
| 0.958333
| 0.896552
| 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
|
dfa253f56ad456d341da9fe5624a9962b850753f
| 164
|
py
|
Python
|
skippedia/skippedia/skippedia/admin.py
|
AlamHasabie/Skippedia
|
5ff64e11048ea2e94bb4e2b52e9a116acc3e2704
|
[
"MIT"
] | null | null | null |
skippedia/skippedia/skippedia/admin.py
|
AlamHasabie/Skippedia
|
5ff64e11048ea2e94bb4e2b52e9a116acc3e2704
|
[
"MIT"
] | null | null | null |
skippedia/skippedia/skippedia/admin.py
|
AlamHasabie/Skippedia
|
5ff64e11048ea2e94bb4e2b52e9a116acc3e2704
|
[
"MIT"
] | 2
|
2019-06-25T02:38:28.000Z
|
2019-06-25T02:42:07.000Z
|
from django.contrib import admin
from .models import Reputation, Student
# Register your models here.
admin.site.register(Reputation)
admin.site.register(Student)
| 23.428571
| 39
| 0.817073
| 22
| 164
| 6.090909
| 0.545455
| 0.134328
| 0.253731
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.103659
| 164
| 6
| 40
| 27.333333
| 0.911565
| 0.158537
| 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
|
dfb32ce3f2138c33f2c6d84717f353f3e5c09a61
| 34
|
py
|
Python
|
lcu_driver_multi/__init__.py
|
schuhbart/lcu-driver-multi
|
4a4af339c74c9ee558fbb57a88bb3ac52734b96e
|
[
"MIT"
] | null | null | null |
lcu_driver_multi/__init__.py
|
schuhbart/lcu-driver-multi
|
4a4af339c74c9ee558fbb57a88bb3ac52734b96e
|
[
"MIT"
] | null | null | null |
lcu_driver_multi/__init__.py
|
schuhbart/lcu-driver-multi
|
4a4af339c74c9ee558fbb57a88bb3ac52734b96e
|
[
"MIT"
] | null | null | null |
from .connector import Connector
| 11.333333
| 32
| 0.823529
| 4
| 34
| 7
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 34
| 2
| 33
| 17
| 0.965517
| 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
|
dfe0a447c2cb16caa9e91c1a2be93fe656564cc2
| 72
|
py
|
Python
|
evaluator/Social/__init__.py
|
CryptoRichy/OctoBot
|
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
|
[
"Apache-2.0"
] | 1
|
2018-11-26T16:43:36.000Z
|
2018-11-26T16:43:36.000Z
|
evaluator/Social/__init__.py
|
CryptoRichy/OctoBot
|
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
|
[
"Apache-2.0"
] | null | null | null |
evaluator/Social/__init__.py
|
CryptoRichy/OctoBot
|
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
|
[
"Apache-2.0"
] | null | null | null |
from .social_evaluator import *
from tentacles.Evaluator.Social import *
| 36
| 40
| 0.833333
| 9
| 72
| 6.555556
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097222
| 72
| 2
| 40
| 36
| 0.907692
| 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
|
a03b4ab829612dfb36ba0922f8c3e405a5f18944
| 38
|
py
|
Python
|
survos2/frontend/__init__.py
|
DiamondLightSource/SuRVoS2
|
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
|
[
"MIT"
] | 4
|
2017-10-10T14:47:16.000Z
|
2022-01-14T05:57:50.000Z
|
survos2/frontend/__init__.py
|
DiamondLightSource/SuRVoS2
|
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
|
[
"MIT"
] | 1
|
2022-01-11T21:11:12.000Z
|
2022-01-12T08:22:34.000Z
|
survos2/frontend/__init__.py
|
DiamondLightSource/SuRVoS2
|
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
|
[
"MIT"
] | 2
|
2018-03-06T06:31:29.000Z
|
2019-03-04T03:33:18.000Z
|
# from .mainwindow import MainWindow
| 19
| 37
| 0.789474
| 4
| 38
| 7.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 38
| 1
| 38
| 38
| 0.9375
| 0.894737
| 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
|
a0468f49e0ca732da55bf0d62acace520de1e4c1
| 168
|
py
|
Python
|
is_anagram.py
|
SunmeetOberoi/Hacktoberfest
|
e5e5e0c7e771cc4fd53d0fda5b32a3d4c40fd6e2
|
[
"MIT"
] | 4
|
2019-10-12T13:54:20.000Z
|
2021-07-06T22:41:12.000Z
|
is_anagram.py
|
SunmeetOberoi/Hacktoberfest
|
e5e5e0c7e771cc4fd53d0fda5b32a3d4c40fd6e2
|
[
"MIT"
] | 1
|
2020-10-01T18:03:45.000Z
|
2020-10-01T18:03:45.000Z
|
is_anagram.py
|
SunmeetOberoi/Hacktoberfest
|
e5e5e0c7e771cc4fd53d0fda5b32a3d4c40fd6e2
|
[
"MIT"
] | 8
|
2019-10-14T17:20:09.000Z
|
2020-10-03T17:27:49.000Z
|
from collections import Counter
def is_anagram(str1, str2):
return Counter(str1) == Counter(str2)
str1 = input()
str2 = input()
print(is_anagram(str1, str2))
| 21
| 43
| 0.702381
| 23
| 168
| 5.043478
| 0.521739
| 0.155172
| 0.224138
| 0.293103
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057554
| 0.172619
| 168
| 7
| 44
| 24
| 0.776978
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.166667
| 0.166667
| 0.5
| 0.166667
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
a0675511ae6a11536ba6d836850840c86192e482
| 66
|
py
|
Python
|
graphalgos/__init__.py
|
RafaelKuebler/GraphAlgos
|
b6cbb45a1f6f40056a441aac5e24ee840973c01d
|
[
"MIT"
] | 1
|
2021-02-14T08:47:17.000Z
|
2021-02-14T08:47:17.000Z
|
graphalgos/__init__.py
|
RafaelKuebler/GraphAlgos
|
b6cbb45a1f6f40056a441aac5e24ee840973c01d
|
[
"MIT"
] | null | null | null |
graphalgos/__init__.py
|
RafaelKuebler/GraphAlgos
|
b6cbb45a1f6f40056a441aac5e24ee840973c01d
|
[
"MIT"
] | null | null | null |
from .astar import AStar
from .bfs import BFS
from .dfs import DFS
| 22
| 24
| 0.787879
| 12
| 66
| 4.333333
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 66
| 3
| 25
| 22
| 0.945455
| 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
|
a09ffba131db9392a6c5474c23235d75e42aed78
| 257
|
py
|
Python
|
problems/exercism/diffie-hellman/diffie_hellman.py
|
JayMonari/py-personal
|
ef16d030cc7fe2266d661e1378d95f588229b746
|
[
"MIT"
] | null | null | null |
problems/exercism/diffie-hellman/diffie_hellman.py
|
JayMonari/py-personal
|
ef16d030cc7fe2266d661e1378d95f588229b746
|
[
"MIT"
] | null | null | null |
problems/exercism/diffie-hellman/diffie_hellman.py
|
JayMonari/py-personal
|
ef16d030cc7fe2266d661e1378d95f588229b746
|
[
"MIT"
] | null | null | null |
import secrets
def private_key(p: int) -> int:
return secrets.randbelow(p - 2) + 2
def public_key(p: int, g: int, private: int) -> int:
return g**private % p
def secret(p: int, public: int, private: int) -> int:
return public**private % p
| 18.357143
| 53
| 0.634241
| 41
| 257
| 3.926829
| 0.317073
| 0.074534
| 0.223602
| 0.198758
| 0.273292
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01
| 0.22179
| 257
| 13
| 54
| 19.769231
| 0.795
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0.142857
| 0.428571
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
261a118715b68ffea4f1f327bf9de2dc34a6d97c
| 312
|
py
|
Python
|
src/greyd/models/__init__.py
|
canberk/greyd
|
b3ce055ba856277d5efd5e2bbb9b59ff8d3b3c58
|
[
"MIT"
] | 2
|
2019-02-18T16:31:14.000Z
|
2019-03-05T18:24:39.000Z
|
src/greyd/models/__init__.py
|
canberk/greyd
|
b3ce055ba856277d5efd5e2bbb9b59ff8d3b3c58
|
[
"MIT"
] | null | null | null |
src/greyd/models/__init__.py
|
canberk/greyd
|
b3ce055ba856277d5efd5e2bbb9b59ff8d3b3c58
|
[
"MIT"
] | 1
|
2019-02-20T21:42:20.000Z
|
2019-02-20T21:42:20.000Z
|
# -*- coding: utf-8 -*-
"""List of model.
Database neeeds all models when create or use tables.
"""
from greyd.models.user import User
from greyd.models.lobby import Lobby
from greyd.models.user_to_lobby import UserToLobby
from greyd.models.chat import Chat
from greyd.models.user_location import UserLocation
| 26
| 53
| 0.785256
| 48
| 312
| 5.041667
| 0.520833
| 0.18595
| 0.309917
| 0.235537
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003676
| 0.128205
| 312
| 11
| 54
| 28.363636
| 0.886029
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2674be5ed67b5e67d20266731b0db8e1d705e040
| 358
|
py
|
Python
|
seqgra/model/__init__.py
|
gifford-lab/seqgra
|
3c7547878ecda4c00572746b8a07e0d614c9dbef
|
[
"MIT"
] | null | null | null |
seqgra/model/__init__.py
|
gifford-lab/seqgra
|
3c7547878ecda4c00572746b8a07e0d614c9dbef
|
[
"MIT"
] | null | null | null |
seqgra/model/__init__.py
|
gifford-lab/seqgra
|
3c7547878ecda4c00572746b8a07e0d614c9dbef
|
[
"MIT"
] | 2
|
2021-06-14T20:27:40.000Z
|
2021-06-14T20:29:29.000Z
|
"""
Data definition and model definition
Classes:
- :class:`~seqgra.model.data.datadefinition.DataDefinition`: seqgra data definition
- :class:`~seqgra.model.model.modeldefinition.ModelDefinition`: seqgra model definition
"""
from seqgra.model.data.datadefinition import DataDefinition
from seqgra.model.model.modeldefinition import ModelDefinition
| 35.8
| 91
| 0.804469
| 38
| 358
| 7.578947
| 0.289474
| 0.190972
| 0.111111
| 0.201389
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097765
| 358
| 9
| 92
| 39.777778
| 0.891641
| 0.631285
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
cd210eac0b8d38ae0a68ede6944a81ec9fb04d7a
| 256
|
py
|
Python
|
chapter2/closure/dir_normal_func.py
|
kssim/etude-1
|
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
|
[
"Apache-2.0"
] | 3
|
2018-06-12T05:30:59.000Z
|
2021-09-27T12:05:14.000Z
|
chapter2/closure/dir_normal_func.py
|
partrita/python_effective_flow_control
|
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
|
[
"Apache-2.0"
] | 3
|
2019-01-24T12:13:18.000Z
|
2019-03-16T00:23:21.000Z
|
chapter2/closure/dir_normal_func.py
|
partrita/python_effective_flow_control
|
0122eeba10ed71f2a4bf3da419ac6a5ca9505488
|
[
"Apache-2.0"
] | 13
|
2018-05-11T06:35:49.000Z
|
2021-09-27T12:05:17.000Z
|
###################################
# File Name : dir_normal_func.py
###################################
#!/usr/bin/python3
def normal_func():
pass
if __name__ == "__main__":
p = dir(normal_func())
print ("=== attribute ===")
print (p)
| 17.066667
| 35
| 0.425781
| 24
| 256
| 4.041667
| 0.666667
| 0.309278
| 0.268041
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004717
| 0.171875
| 256
| 14
| 36
| 18.285714
| 0.45283
| 0.183594
| 0
| 0
| 0
| 0
| 0.183824
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0.166667
| 0
| 0
| 0.166667
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
cd29e8f5bf1eb22ad005d14f8fca27f9ebcfc9ed
| 236
|
py
|
Python
|
pyqus/examples/__init__.py
|
JorgeDeLosSantos/pyqus
|
c57e9b7fb986d53d8b8408278922b1187149c36a
|
[
"MIT"
] | 21
|
2017-05-12T10:21:42.000Z
|
2022-03-14T17:35:25.000Z
|
pyqus/examples/__init__.py
|
JorgeDeLosSantos/pyqus
|
c57e9b7fb986d53d8b8408278922b1187149c36a
|
[
"MIT"
] | null | null | null |
pyqus/examples/__init__.py
|
JorgeDeLosSantos/pyqus
|
c57e9b7fb986d53d8b8408278922b1187149c36a
|
[
"MIT"
] | 15
|
2016-06-25T07:58:16.000Z
|
2022-03-10T08:07:43.000Z
|
# -*- coding: mbcs -*-
"""
=========================================
PyQus 0.1.0
Author: Pedro Jorge De Los Santos
E-mail: delossantosmfq@gmail.com
https://github.com/JorgeDeLosSantos/pyqus
=========================================
"""
| 23.6
| 41
| 0.45339
| 22
| 236
| 4.863636
| 0.863636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.013889
| 0.084746
| 236
| 9
| 42
| 26.222222
| 0.481481
| 0.957627
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
cd482eb94962228eaae035b7325027f834f5f5c3
| 86
|
py
|
Python
|
crmsystem/services/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
crmsystem/services/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
crmsystem/services/__init__.py
|
iomegak12/pythondockertry
|
dd91dc57a09141f94cb0a73e18a8ad9da4d5aa85
|
[
"MIT"
] | null | null | null |
from .customer_service import CustomerService
from .order_service import OrderService
| 28.666667
| 45
| 0.883721
| 10
| 86
| 7.4
| 0.7
| 0.351351
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.093023
| 86
| 2
| 46
| 43
| 0.948718
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
cd562b5b50066db398b3d9d43be809556d2bedcd
| 80
|
py
|
Python
|
src/pycaleva/__init__.py
|
MartinWeigl/pycaleva
|
a3867d1a74889e5521f59bb1857081b8c8a9a5c5
|
[
"BSD-3-Clause"
] | null | null | null |
src/pycaleva/__init__.py
|
MartinWeigl/pycaleva
|
a3867d1a74889e5521f59bb1857081b8c8a9a5c5
|
[
"BSD-3-Clause"
] | null | null | null |
src/pycaleva/__init__.py
|
MartinWeigl/pycaleva
|
a3867d1a74889e5521f59bb1857081b8c8a9a5c5
|
[
"BSD-3-Clause"
] | 1
|
2022-03-14T14:49:40.000Z
|
2022-03-14T14:49:40.000Z
|
from .calibeval import CalibrationEvaluator
from .calbelt import CalibrationBelt
| 40
| 43
| 0.8875
| 8
| 80
| 8.875
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0875
| 80
| 2
| 44
| 40
| 0.972603
| 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
|
cd5642d0b5a85ee32c4467cf2bd96e41c23128ff
| 118
|
py
|
Python
|
app/config.py
|
CA-Lee/bottern
|
17cd8dfa279c4a8ce83a4495961266ecdfb6a525
|
[
"CC0-1.0"
] | null | null | null |
app/config.py
|
CA-Lee/bottern
|
17cd8dfa279c4a8ce83a4495961266ecdfb6a525
|
[
"CC0-1.0"
] | null | null | null |
app/config.py
|
CA-Lee/bottern
|
17cd8dfa279c4a8ce83a4495961266ecdfb6a525
|
[
"CC0-1.0"
] | null | null | null |
import os
from typing import Literal
STAGE: Literal["production", "dev", "debug"] = os.environ.get("STAGE", "debug")
| 23.6
| 79
| 0.70339
| 16
| 118
| 5.1875
| 0.6875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118644
| 118
| 4
| 80
| 29.5
| 0.798077
| 0
| 0
| 0
| 0
| 0
| 0.237288
| 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
|
cd73890d487c1153ed3f32413f866f2cf3d122b2
| 166
|
py
|
Python
|
config.py
|
steveyout/bitc
|
3fb227ba35d0daa8c2337cf8761cf68a752a973d
|
[
"Apache-2.0"
] | null | null | null |
config.py
|
steveyout/bitc
|
3fb227ba35d0daa8c2337cf8761cf68a752a973d
|
[
"Apache-2.0"
] | 1
|
2020-06-05T18:47:07.000Z
|
2020-06-05T18:47:07.000Z
|
config.py
|
steveyout/bitc
|
3fb227ba35d0daa8c2337cf8761cf68a752a973d
|
[
"Apache-2.0"
] | null | null | null |
import logging
import os
token='628778240:AAEss1X8lvozbVBWZaAekXTYInrdKj_EJe8'
payeer_account='P1002894412'
payeer_api_pass='hello'
payeer_api_id=618058477
| 18.444444
| 54
| 0.825301
| 19
| 166
| 6.894737
| 0.789474
| 0.137405
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.209459
| 0.108434
| 166
| 8
| 55
| 20.75
| 0.675676
| 0
| 0
| 0
| 0
| 0
| 0.386076
| 0.28481
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
cd7fb49c4ef21a4e6cd5965537298afd75ce51b1
| 148
|
py
|
Python
|
app/file_managers/__init__.py
|
abraker-osu/osu-play-analyzer
|
e059607fbaa8f1b190354c63637b4aa75470b27b
|
[
"MIT"
] | null | null | null |
app/file_managers/__init__.py
|
abraker-osu/osu-play-analyzer
|
e059607fbaa8f1b190354c63637b4aa75470b27b
|
[
"MIT"
] | null | null | null |
app/file_managers/__init__.py
|
abraker-osu/osu-play-analyzer
|
e059607fbaa8f1b190354c63637b4aa75470b27b
|
[
"MIT"
] | null | null | null |
import os
os.makedirs('data', exist_ok=True)
from .config_mgr import AppConfig
from .db_mgr import MapsDB
from .data_mgr import PlayData, RecData
| 18.5
| 39
| 0.797297
| 24
| 148
| 4.75
| 0.625
| 0.236842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.128378
| 148
| 7
| 40
| 21.142857
| 0.883721
| 0
| 0
| 0
| 0
| 0
| 0.027027
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
26bf55288c27e0aed087732cf8cbadb3e78d445c
| 196
|
py
|
Python
|
aries_cloudagent/tails/error.py
|
kuraakhilesh8230/aries-cloudagent-python
|
ee384d1330f6a50ff45a507392ce54f92900f23a
|
[
"Apache-2.0"
] | 247
|
2019-07-02T21:10:21.000Z
|
2022-03-30T13:55:33.000Z
|
aries_cloudagent/tails/error.py
|
kuraakhilesh8230/aries-cloudagent-python
|
ee384d1330f6a50ff45a507392ce54f92900f23a
|
[
"Apache-2.0"
] | 1,462
|
2019-07-02T20:57:30.000Z
|
2022-03-31T23:13:35.000Z
|
aries_cloudagent/tails/error.py
|
kuraakhilesh8230/aries-cloudagent-python
|
ee384d1330f6a50ff45a507392ce54f92900f23a
|
[
"Apache-2.0"
] | 377
|
2019-06-20T21:01:31.000Z
|
2022-03-30T08:27:53.000Z
|
"""Tails server related errors."""
from ..core.error import BaseError
class TailsServerNotConfiguredError(BaseError):
"""Error indicating the tails server plugin hasn't been configured."""
| 24.5
| 74
| 0.760204
| 22
| 196
| 6.772727
| 0.818182
| 0.147651
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132653
| 196
| 7
| 75
| 28
| 0.876471
| 0.47449
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
26e1b987406b896b0e6ceff945b66164620874bb
| 445
|
py
|
Python
|
pythonx/python_function_expander/config.py
|
ColinKennedy/vim-python-function-expander
|
7fbaac0bdb6316177c85284052694175a2819638
|
[
"MIT"
] | 20
|
2018-11-05T01:54:13.000Z
|
2021-11-21T22:36:52.000Z
|
pythonx/python_function_expander/config.py
|
ColinKennedy/vim-python-function-expander
|
7fbaac0bdb6316177c85284052694175a2819638
|
[
"MIT"
] | 3
|
2018-11-05T18:54:46.000Z
|
2021-03-06T12:14:01.000Z
|
pythonx/python_function_expander/config.py
|
ColinKennedy/vim-python-function-expander
|
7fbaac0bdb6316177c85284052694175a2819638
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''A simple module to store the user's style preferences.'''
INDENT_PREFERENCE = {'indent': ' '}
def get_indent_preference():
'''str: How the user prefers their indentation. Default: " ".'''
return INDENT_PREFERENCE['indent']
def register_indent_preference(text):
'''Set indentation that will be used for multi-line function calls.'''
INDENT_PREFERENCE['indent'] = text
| 24.722222
| 74
| 0.676404
| 56
| 445
| 5.25
| 0.714286
| 0.272109
| 0.22449
| 0.170068
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002732
| 0.177528
| 445
| 17
| 75
| 26.176471
| 0.800546
| 0.503371
| 0
| 0
| 0
| 0
| 0.107843
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0
| 0.6
| 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
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
f80e47fef1a3b561663260c949ee84a38f860691
| 51
|
py
|
Python
|
MapExtrackt/__init__.py
|
lewis-morris/mapextrackt
|
e7724d0a9e5b88da5aa7c927093e519130f04802
|
[
"MIT"
] | 43
|
2020-05-09T21:05:24.000Z
|
2022-03-17T09:53:51.000Z
|
MapExtrackt/__init__.py
|
lewis-morris/mapextrackt
|
e7724d0a9e5b88da5aa7c927093e519130f04802
|
[
"MIT"
] | 2
|
2020-09-21T17:23:32.000Z
|
2021-04-23T20:12:15.000Z
|
MapExtrackt/__init__.py
|
lewis-morris/mapextrackt
|
e7724d0a9e5b88da5aa7c927093e519130f04802
|
[
"MIT"
] | 4
|
2020-05-09T21:05:26.000Z
|
2021-01-20T01:21:39.000Z
|
from MapExtrackt.extractor import FeatureExtractor
| 25.5
| 50
| 0.901961
| 5
| 51
| 9.2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 51
| 1
| 51
| 51
| 0.978723
| 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
|
f8367c323339719b89b5faa1e67678e391ba6f1b
| 141
|
py
|
Python
|
simian/test/example_1/my_module.py
|
movermeyer/python-simian
|
c5870e4c5a81554bd37c835981cc9d22e720e9bd
|
[
"MIT"
] | 1
|
2018-11-24T16:44:49.000Z
|
2018-11-24T16:44:49.000Z
|
simian/test/example_1/my_module.py
|
movermeyer/python-simian
|
c5870e4c5a81554bd37c835981cc9d22e720e9bd
|
[
"MIT"
] | 3
|
2015-11-27T19:02:14.000Z
|
2018-03-05T17:27:39.000Z
|
simian/test/example_1/my_module.py
|
movermeyer/python-simian
|
c5870e4c5a81554bd37c835981cc9d22e720e9bd
|
[
"MIT"
] | 1
|
2018-03-05T17:23:25.000Z
|
2018-03-05T17:23:25.000Z
|
from time import sleep
def my_sleep(duration_secs):
print('Sleeping for {n} seconds'.format(n=duration_secs))
sleep(duration_secs)
| 20.142857
| 61
| 0.744681
| 21
| 141
| 4.809524
| 0.666667
| 0.356436
| 0.336634
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 141
| 6
| 62
| 23.5
| 0.841667
| 0
| 0
| 0
| 0
| 0
| 0.170213
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.5
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f8412483c803a68b40ba6694908808183a82f079
| 96
|
py
|
Python
|
algo_profiler/helpers.py
|
Michael-Wisniewski/Profiler
|
9558b85b5a4935f2c05b5f162b1c00839c52299b
|
[
"MIT"
] | 1
|
2021-05-03T20:58:12.000Z
|
2021-05-03T20:58:12.000Z
|
algo_profiler/helpers.py
|
Michael-Wisniewski/Profiler
|
9558b85b5a4935f2c05b5f162b1c00839c52299b
|
[
"MIT"
] | 1
|
2021-05-31T10:03:33.000Z
|
2021-05-31T16:33:13.000Z
|
algo_profiler/helpers.py
|
Michael-Wisniewski/algo-profiler
|
9558b85b5a4935f2c05b5f162b1c00839c52299b
|
[
"MIT"
] | null | null | null |
from enum import Enum
class LabelBase(Enum):
def __str__(self):
return self.value
| 13.714286
| 25
| 0.677083
| 13
| 96
| 4.692308
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 96
| 6
| 26
| 16
| 0.847222
| 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
|
f84c0815c5e3f7594981ac363172a44667eaa648
| 12,631
|
py
|
Python
|
post_processing/parenchyma_enhancement.py
|
LongxiZhou/DLPE-method
|
ed20abc91e27423c7ff677a009cfd99314730217
|
[
"BSD-3-Clause"
] | null | null | null |
post_processing/parenchyma_enhancement.py
|
LongxiZhou/DLPE-method
|
ed20abc91e27423c7ff677a009cfd99314730217
|
[
"BSD-3-Clause"
] | null | null | null |
post_processing/parenchyma_enhancement.py
|
LongxiZhou/DLPE-method
|
ed20abc91e27423c7ff677a009cfd99314730217
|
[
"BSD-3-Clause"
] | 1
|
2021-08-22T14:29:58.000Z
|
2021-08-22T14:29:58.000Z
|
"""
input: rescaled_ct scan with shape [512, 512, 512]
output: removed airway, blood vessel and set the parenchyma value to 0,
"""
import Tool_Functions.Functions as Functions
import visualization.visualize_3d.visualize_stl as visualize
import os
import numpy as np
import post_processing.remove_airway_blood_vessel as extend_functions
import prediction.predict_rescaled as predictor
import warnings
np.set_printoptions(threshold=np.inf)
def remove_airway_and_blood_vessel_based_on_upper_frontal(rescaled_ct, lung_mask=None, airway=None, blood_vessel=None,
extend_ratio=1.1, max_diameter=50, show_stl=False, parenchyma_value=False):
"""
:param rescaled_ct: the [512, 512, 512] spatial and signal normalized data
:param lung_mask: we will predict if it is None
:param airway: the airway mask, we will predict if it is None
:param blood_vessel: the blood_vessel mask, we will predict if it is None
:param extend_ratio: the diameter of this region will be extend by this ratio and this ratio + 0.1. The tissue in
the middle of these two regions is ASSUMED AS PARENCHYMA!
:param max_diameter: if the diameter of the region is greater than the max_diameter, we extend the region to new
diameter: (extend_ratio - 1) * max_diameter + old_diameter
:param show_stl: whether to visualize the 3D model after segmentation
:param parenchyma_value: False, not return it, True, return it
:return: enhanced_array in shape [512, 512, 512], which is enhanced rescaled ct images;
or enhanced_array, parenchyma_value
"""
if lung_mask is None:
lung_mask = predictor.predict_lung_masks_rescaled_array(rescaled_ct)
lung_mask_box = Functions.get_bounding_box(lung_mask)
print("lung_mask_box:", lung_mask_box)
lung_length_z = lung_mask_box[2][1] - lung_mask_box[2][0]
superior_start = int(lung_mask_box[2][1] - lung_length_z * 0.32988803223955687) # this is the upper
superior_end = lung_mask_box[2][1]
air_way_merge_z_bounding_box = Functions.get_bounding_box(lung_mask[:, :, superior_start])
upper_start = air_way_merge_z_bounding_box[0][0] # this is the frontal
upper_end = air_way_merge_z_bounding_box[0][1] - int((air_way_merge_z_bounding_box[0][1] -
air_way_merge_z_bounding_box[0][0])/2)
print("lung length on z:", lung_length_z, "superior range:", superior_start, superior_end,
"upper range:", upper_start, upper_end)
upper_superior_mask = np.zeros(np.shape(lung_mask), 'float32')
upper_superior_mask[upper_start: upper_end, :, superior_start: superior_end] = 1.0
upper_superior_mask = upper_superior_mask * lung_mask # this is the mask for upper frontal lung
if airway is None:
refined_airway_mask = predictor.get_prediction_airway(rescaled_ct, lung_mask=lung_mask)
else:
refined_airway_mask = airway
if blood_vessel is None:
refined_blood_vessel_mask = predictor.get_prediction_blood_vessel(rescaled_ct, lung_mask=lung_mask)
else:
refined_blood_vessel_mask = blood_vessel
if show_stl:
print("lung")
visualize.visualize_numpy_as_stl(lung_mask)
print("airway")
visualize.visualize_numpy_as_stl(refined_airway_mask)
print("blood vessels")
visualize.visualize_numpy_as_stl(refined_blood_vessel_mask)
rescaled_ct = rescaled_ct * lung_mask
visible_non_infection = np.array((refined_blood_vessel_mask + refined_airway_mask) * lung_mask > 0.5, 'float32')
rescaled_ct_original = np.array(rescaled_ct)
assert extend_ratio > 1
print("extending air way")
visible_extended_outer = extend_functions.extend_tubes(visible_non_infection, None, extend_ratio + 0.1, int(max_diameter * 1.1))
visible_extended = extend_functions.extend_tubes(visible_non_infection, None, extend_ratio, max_diameter)
visible_extended = visible_extended_outer - visible_extended
context_mask = visible_extended - visible_non_infection
context_mask = np.clip(context_mask, 0, 1)
context_mask = context_mask * upper_superior_mask
print(Functions.stat_on_mask(rescaled_ct_original, context_mask))
exit()
num_context_points = np.sum(context_mask)
print("there are:", num_context_points, "parenchyma sample points")
if num_context_points < 10000:
warnings.warn('Too less (<10000) sampled parenchyma points. Maybe use "general sampling"', SyntaxWarning)
context = context_mask * rescaled_ct_original + context_mask * 10
context = np.reshape(context, (-1,))
context = np.sort(context)
total_points = len(context)
percentile = 50
threshold = context[total_points - int(num_context_points * (100 - percentile) / 100)] - 10
if threshold > -0.1:
warnings.warn('Too high threshold. Maybe use "general sampling"?', SyntaxWarning)
print("the context is:", threshold, 'at percentile', percentile)
rescaled_ct[np.where(visible_non_infection >= 0.5)] = threshold # removed the airway and blood vessel
rescaled_ct = rescaled_ct - threshold * lung_mask # threshold is the value of lung parenchyma
# set the parenchyma value to zero
enhanced_array = np.zeros([512, 512, 512], 'float32')
enhanced_array[:, :, :] = rescaled_ct
enhanced_array = np.clip(enhanced_array, -0.05, 0.25)
if parenchyma_value:
return enhanced_array, threshold
return enhanced_array
def remove_airway_and_blood_vessel_general_sampling(rescaled_ct, lung_mask=None, airway=None, blood_vessel=None,
extend_ratio=1.1, max_diameter=50, show_stl=False, parenchyma_value=False, window=False):
"""
:param window: if True, return the scan optimal window
:param rescaled_ct: the [512, 512, 512] spatial and signal normalized data
:param lung_mask: we will predict if it is None
:param airway: the airway mask, we will predict if it is None
:param blood_vessel: the blood_vessel mask, we will predict if it is None
:param extend_ratio: the diameter of this region will be extend by this ratio. And the extended region is ASSUMED AS
PARENCHYMA!
:param max_diameter: if the diameter of the region is greater than the max_diameter, we extend the region to new
diameter: (extend_ratio - 1) * max_diameter + old_diameter
:param show_stl: whether to visualize the 3D model after segmentation
:param parenchyma_value: False, not return it, True, return it
:return: enhanced_array in shape [512, 512, 512], which is enhanced rescaled ct images;
or enhanced_array, parenchyma_value
"""
if lung_mask is None:
lung_mask = predictor.predict_lung_masks_rescaled_array(rescaled_ct)
lung_mask_box = Functions.get_bounding_box(lung_mask)
print("lung_mask_box:", lung_mask_box)
if airway is None:
refined_airway_mask = predictor.get_prediction_airway(rescaled_ct, lung_mask=lung_mask)
else:
refined_airway_mask = airway
if blood_vessel is None:
refined_blood_vessel_mask = predictor.get_prediction_blood_vessel(rescaled_ct, lung_mask=lung_mask)
else:
refined_blood_vessel_mask = blood_vessel
if show_stl:
print("lung")
visualize.visualize_numpy_as_stl(lung_mask)
print("airway")
visualize.visualize_numpy_as_stl(refined_airway_mask)
print("blood vessels")
visualize.visualize_numpy_as_stl(refined_blood_vessel_mask)
rescaled_ct = rescaled_ct * lung_mask
visible_non_infection = np.array((refined_blood_vessel_mask + refined_airway_mask) * lung_mask > 0.5, 'float32')
rescaled_ct_original = np.array(rescaled_ct)
assert extend_ratio > 1
print("extending air way and blood vessels")
visible_extended_outer = extend_functions.extend_tubes(visible_non_infection, None, extend_ratio + 0.1,
int(max_diameter * 1.1))
visible_extended = extend_functions.extend_tubes(visible_non_infection, None, extend_ratio, max_diameter)
visible_extended = visible_extended_outer - visible_extended
context_mask = visible_extended - visible_non_infection
context_mask = np.clip(context_mask, 0, 1)
num_context_points = np.sum(context_mask)
print("there are:", num_context_points, "parenchyma sample points")
context = context_mask * rescaled_ct_original + context_mask * 10
context = np.reshape(context, (-1,))
context = np.sort(context)
total_points = len(context)
percentile = 50
threshold = context[total_points - int(num_context_points * (100 - percentile) / 100)] - 10
std = np.std(context[total_points - int(num_context_points * 0.9): total_points - int(num_context_points * 0.1)])
print("the context is:", threshold, 'at percentile', percentile)
rescaled_ct[np.where(visible_non_infection >= 0.5)] = threshold # removed the airway and blood vessel
rescaled_ct = rescaled_ct - threshold * lung_mask # threshold is the value of lung parenchyma
# set the parenchyma value to zero
enhanced_array = np.zeros([512, 512, 512], 'float32')
enhanced_array[:, :, :] = rescaled_ct
enhanced_array = np.clip(enhanced_array, -0.05, 0.25)
if parenchyma_value:
return enhanced_array, threshold
if window:
return enhanced_array, -600 + threshold * 1600, std * 1.5 * 1600
return enhanced_array
def prepare_arrays_raw_for_normal_and_hospitalize(rescaled_ct, lung_mask=None, airway=None, blood_vessel=None,
lesion=None, extend_ratio=1.1, max_diameter=50, normal=True, mask_name=None, save_dict=None, upperlobe=True):
"""
:param rescaled_ct: the [512, 512, 512] spatial and signal normalized data
:param lung_mask: the [512, 512, 512] mask array, we will predict if it is None
:param airway: the airway mask, we will predict if it is None
:param blood_vessel: the blood_vessel mask, we will predict if it is None
:param lesion: the mask of the lesion, we will predict if it is None AND "normal" is False
:param extend_ratio: the diameter of this region will be extend by this ratio. And the extended region is ASSUMED AS
PARENCHYMA!
:param max_diameter: if the diameter of the region is greater than the max_diameter, we extend the region to new
diameter: (extend_ratio - 1) * max_diameter + old_diameter
:param normal: if it is true and the lesion mask is None, predict the lesion
:return: the arrays_raw in shape [512, 512, 512, 2]:
arrays_raw[:, :, :, 0] is the enhanced_array rescaled ct data, which is the input images
arrays_raw[:, :, :, 1] is the mask for lesion, which is the ground truth (can be all zeros)
"""
if lung_mask is None:
lung_mask = predictor.predict_lung_masks_rescaled_array(rescaled_ct)
if airway is None:
airway = predictor.get_prediction_airway(rescaled_ct, lung_mask=lung_mask)
if blood_vessel is None:
blood_vessel = predictor.get_prediction_blood_vessel(rescaled_ct, lung_mask=lung_mask)
if lesion is not None:
assert normal is not True
if lesion is None and normal is not True:
lesion = predictor.predict_covid_19_infection_rescaled_array(rescaled_ct, lung_mask=lung_mask)
if normal is True:
lesion = np.zeros([512, 512, 512], 'float32')
if mask_name is not None:
Functions.save_np_array(os.path.join(save_dict, 'lung_masks') + '/', mask_name, lung_mask, True)
Functions.save_np_array(os.path.join(save_dict, 'airway_stage_two') + '/', mask_name, airway, True)
Functions.save_np_array(os.path.join(save_dict, 'blood_vessel_stage_two') + '/', mask_name, blood_vessel, True)
Functions.save_np_array(os.path.join(save_dict, 'lesion') + '/', mask_name, lesion, True)
if upperlobe:
enhanced_rescaled_ct = remove_airway_and_blood_vessel_based_on_upper_frontal(rescaled_ct, lung_mask, airway,
blood_vessel, extend_ratio, max_diameter, False)
else:
enhanced_rescaled_ct = remove_airway_and_blood_vessel_general_sampling(rescaled_ct, lung_mask, airway,
blood_vessel, extend_ratio, max_diameter, False)
arrays_raw = np.zeros([512, 512, 512, 2], 'float32')
arrays_raw[:, :, :, 0] = enhanced_rescaled_ct
arrays_raw[:, :, :, 1] = lesion
return arrays_raw
if __name__ == "__main__":
exit()
| 49.533333
| 159
| 0.712374
| 1,791
| 12,631
| 4.734785
| 0.103853
| 0.049057
| 0.026415
| 0.033962
| 0.781132
| 0.759434
| 0.74658
| 0.725472
| 0.705896
| 0.701415
| 0
| 0.027667
| 0.207347
| 12,631
| 254
| 160
| 49.728346
| 0.819317
| 0.249386
| 0
| 0.613924
| 0
| 0
| 0.05722
| 0.002371
| 0
| 0
| 0
| 0
| 0.018987
| 1
| 0.018987
| false
| 0
| 0.044304
| 0
| 0.101266
| 0.107595
| 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
|
f8b1d937fe11aa977dd02f189817945a4a4d6ddf
| 270
|
py
|
Python
|
src/control/__init__.py
|
maxwellpettit/PythonRobot
|
2b65ab724d8406c0922801a56d6c429563b1fe41
|
[
"MIT"
] | 4
|
2018-10-11T14:52:30.000Z
|
2021-07-04T19:38:19.000Z
|
src/control/__init__.py
|
maxwellpettit/PythonRobot
|
2b65ab724d8406c0922801a56d6c429563b1fe41
|
[
"MIT"
] | null | null | null |
src/control/__init__.py
|
maxwellpettit/PythonRobot
|
2b65ab724d8406c0922801a56d6c429563b1fe41
|
[
"MIT"
] | null | null | null |
from .pidController import PidController
from .sonicController import SonicController
from .encoderController import EncoderController
from .gyroController import GyroController
from .velocityController import VelocityController
from .poseEstimator import PoseEstimator
| 38.571429
| 50
| 0.888889
| 24
| 270
| 10
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088889
| 270
| 6
| 51
| 45
| 0.97561
| 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
|
3e042394178fcf3f3edbe2ce6f96e8af3787ff31
| 22
|
py
|
Python
|
src/flint/__init__.py
|
fredrik-johansson/python-flint
|
1a68cffc3b8454f57f5c5ffdd94df3f11b081468
|
[
"MIT"
] | 47
|
2015-02-06T12:28:53.000Z
|
2022-02-28T16:43:56.000Z
|
src/flint/__init__.py
|
sthagen/python-flint
|
c6e3b9b132db40bda06f0eef566718f3a0da08eb
|
[
"MIT"
] | 19
|
2017-10-08T21:12:50.000Z
|
2022-03-20T21:22:48.000Z
|
src/flint/__init__.py
|
sthagen/python-flint
|
c6e3b9b132db40bda06f0eef566718f3a0da08eb
|
[
"MIT"
] | 14
|
2015-02-19T00:49:16.000Z
|
2022-03-31T18:23:22.000Z
|
from ._flint import *
| 11
| 21
| 0.727273
| 3
| 22
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 22
| 1
| 22
| 22
| 0.833333
| 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
|
3e11730916138f31e7731a3df74d897e05445b8e
| 369
|
py
|
Python
|
Mesh.py
|
gilangwinduasmara/obj-to-opengl-code-converter
|
175cae94412496f4cf1da8ca35ca993f34761410
|
[
"MIT"
] | 3
|
2020-06-27T10:13:17.000Z
|
2021-04-21T08:50:41.000Z
|
Mesh.py
|
gilangwinduasmara/obj-to-opengl-code-converter
|
175cae94412496f4cf1da8ca35ca993f34761410
|
[
"MIT"
] | 1
|
2020-07-14T13:48:03.000Z
|
2020-07-14T13:48:03.000Z
|
Mesh.py
|
gilangwinduasmara/obj-to-opengl-code-converter
|
175cae94412496f4cf1da8ca35ca993f34761410
|
[
"MIT"
] | 6
|
2020-06-27T15:18:01.000Z
|
2020-07-21T07:04:52.000Z
|
class Mesh:
def __init__(self):
self.vertexs = []
def setName(self, name):
self.name = name
def addVertex(self, x, y, z):
self.vertexs.append([x, y, z])
def read(self):
print(self.name)
print(self.vertexs)
def getVertexs(self):
return self.vertexs
def getName(self):
return self.name
| 18.45
| 38
| 0.558266
| 47
| 369
| 4.297872
| 0.382979
| 0.217822
| 0.207921
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.319783
| 369
| 19
| 39
| 19.421053
| 0.804781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.428571
| false
| 0
| 0
| 0.142857
| 0.642857
| 0.142857
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
3e19eafce08f95d249b1f505b804b3939998ada9
| 1,339
|
py
|
Python
|
backend/youngun/youngun/apps/campaigns/migrations/0012_auto_20210123_0414.py
|
aakashbajaj/Youngun-Campaign-Tracking
|
a3b4f283b22cefb92c72f7638ee2a9da72622de0
|
[
"Apache-2.0"
] | null | null | null |
backend/youngun/youngun/apps/campaigns/migrations/0012_auto_20210123_0414.py
|
aakashbajaj/Youngun-Campaign-Tracking
|
a3b4f283b22cefb92c72f7638ee2a9da72622de0
|
[
"Apache-2.0"
] | 1
|
2021-09-22T19:27:06.000Z
|
2021-09-22T19:27:06.000Z
|
backend/youngun/youngun/apps/campaigns/migrations/0012_auto_20210123_0414.py
|
aakashbajaj/Youngun-Campaign-Tracking
|
a3b4f283b22cefb92c72f7638ee2a9da72622de0
|
[
"Apache-2.0"
] | null | null | null |
# Generated by Django 3.0.3 on 2021-01-22 22:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('campaigns', '0011_auto_20210118_0907'),
]
operations = [
migrations.AddField(
model_name='campaign',
name='fb_engagement',
field=models.IntegerField(default=0, verbose_name='fb_engagement'),
),
migrations.AddField(
model_name='campaign',
name='fb_reach',
field=models.IntegerField(default=0, verbose_name='fb_reach'),
),
migrations.AddField(
model_name='campaign',
name='in_engagement',
field=models.IntegerField(default=0, verbose_name='in_engagement'),
),
migrations.AddField(
model_name='campaign',
name='in_reach',
field=models.IntegerField(default=0, verbose_name='in_reach'),
),
migrations.AddField(
model_name='campaign',
name='tw_engagement',
field=models.IntegerField(default=0, verbose_name='tw_engagement'),
),
migrations.AddField(
model_name='campaign',
name='tw_reach',
field=models.IntegerField(default=0, verbose_name='tw_reach'),
),
]
| 30.431818
| 79
| 0.581777
| 131
| 1,339
| 5.740458
| 0.282443
| 0.143617
| 0.183511
| 0.215426
| 0.791223
| 0.791223
| 0.791223
| 0.410904
| 0
| 0
| 0
| 0.039488
| 0.300224
| 1,339
| 43
| 80
| 31.139535
| 0.763074
| 0.033607
| 0
| 0.486486
| 1
| 0
| 0.159443
| 0.017802
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027027
| 0
| 0.108108
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3e2518d96df9a512f208bacbde6dc50e3517a17c
| 136
|
py
|
Python
|
nanogds/base/__init__.py
|
nanophysics/nanoGDS
|
606ca36bafb4ff844b70cfe46520e62df35edc6f
|
[
"MIT"
] | 1
|
2020-09-15T15:27:13.000Z
|
2020-09-15T15:27:13.000Z
|
nanogds/base/__init__.py
|
nanophysics/nanoGDS
|
606ca36bafb4ff844b70cfe46520e62df35edc6f
|
[
"MIT"
] | null | null | null |
nanogds/base/__init__.py
|
nanophysics/nanoGDS
|
606ca36bafb4ff844b70cfe46520e62df35edc6f
|
[
"MIT"
] | null | null | null |
from .lib import GDS, MaskTemplate
from .shape import Shape
from .coplanar_shape import CoplanarShape
from .reference import Reference
| 22.666667
| 41
| 0.830882
| 18
| 136
| 6.222222
| 0.5
| 0.196429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132353
| 136
| 5
| 42
| 27.2
| 0.949153
| 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
|
3e454609cfcdc590dd1c1460700889d5c90f7e55
| 101
|
py
|
Python
|
src/verbosemanager/__init__.py
|
alexhroom/verbosemanager
|
d53fff414ef39f4e568ce79abaf7ffe0e4ec2a30
|
[
"MIT"
] | null | null | null |
src/verbosemanager/__init__.py
|
alexhroom/verbosemanager
|
d53fff414ef39f4e568ce79abaf7ffe0e4ec2a30
|
[
"MIT"
] | 12
|
2022-01-05T10:37:57.000Z
|
2022-03-24T13:02:49.000Z
|
src/verbosemanager/__init__.py
|
alexhroom/verbosemanager
|
d53fff414ef39f4e568ce79abaf7ffe0e4ec2a30
|
[
"MIT"
] | null | null | null |
from .verbosemanager import *
from .decorator import *
from .simple import *
from .counter import *
| 16.833333
| 29
| 0.752475
| 12
| 101
| 6.333333
| 0.5
| 0.394737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168317
| 101
| 5
| 30
| 20.2
| 0.904762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
3e5804493acc82312eccbcb587e3cc5be5a48bae
| 213
|
py
|
Python
|
DynamicalSystems/__init__.py
|
robotsorcerer/LevelSetPy
|
54064ee7fd0144e0d658dd4f6121cbc1fda664b9
|
[
"MIT"
] | 4
|
2022-03-14T07:04:08.000Z
|
2022-03-14T18:08:56.000Z
|
DynamicalSystems/__init__.py
|
robotsorcerer/LevelSetPy
|
54064ee7fd0144e0d658dd4f6121cbc1fda664b9
|
[
"MIT"
] | null | null | null |
DynamicalSystems/__init__.py
|
robotsorcerer/LevelSetPy
|
54064ee7fd0144e0d658dd4f6121cbc1fda664b9
|
[
"MIT"
] | null | null | null |
from .dubins_relative import *
from .dubins_absolute import *
from .bird import Bird
from .flock import Flock
from .double_integrator import DoubleIntegrator
from .dubins_config import dubins_default_params
| 30.428571
| 49
| 0.821596
| 28
| 213
| 6.035714
| 0.464286
| 0.177515
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140845
| 213
| 6
| 50
| 35.5
| 0.923497
| 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
|
3e5d95a21deaece80d3dbb06bb7aaf1586728ee1
| 220
|
py
|
Python
|
run.py
|
Pyprohly/powershell-bot
|
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
|
[
"MIT"
] | 4
|
2019-02-03T21:01:30.000Z
|
2019-04-15T19:09:27.000Z
|
run.py
|
Pyprohly/powershell-bot
|
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
|
[
"MIT"
] | null | null | null |
run.py
|
Pyprohly/powershell-bot
|
8da0831f09af95b2524a1988c44b6d6cb6d0ae0b
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import os, sys
from subprocess import Popen
os.chdir(os.path.dirname(os.path.abspath(__file__)))
Popen((sys.executable, 'powershell_bot.py'))
Popen((sys.executable, 'powershell_recheck_bot.py'))
| 24.444444
| 52
| 0.768182
| 33
| 220
| 4.909091
| 0.606061
| 0.074074
| 0.222222
| 0.345679
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004902
| 0.072727
| 220
| 8
| 53
| 27.5
| 0.789216
| 0.095455
| 0
| 0
| 0
| 0
| 0.212121
| 0.126263
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.4
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
3e7a25b48b8b45b5710dee86bb52fca4b6b5d024
| 146
|
py
|
Python
|
scrapereads/goodreads_scrape/__init__.py
|
guilhermecxe/scrapereads
|
f89685bfd0d2b2476c180418be85316d38bf2c0a
|
[
"MIT"
] | null | null | null |
scrapereads/goodreads_scrape/__init__.py
|
guilhermecxe/scrapereads
|
f89685bfd0d2b2476c180418be85316d38bf2c0a
|
[
"MIT"
] | 1
|
2022-01-08T12:51:10.000Z
|
2022-01-08T12:51:10.000Z
|
scrapereads/goodreads_scrape/__init__.py
|
guilhermecxe/scrapereads
|
f89685bfd0d2b2476c180418be85316d38bf2c0a
|
[
"MIT"
] | null | null | null |
from scrapereads.goodreads_scrape.goodreads_scrape import (
get_book_infos,
get_choice_awards_categories,
get_choice_awards_nominees
)
| 29.2
| 59
| 0.828767
| 18
| 146
| 6.166667
| 0.666667
| 0.27027
| 0.27027
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130137
| 146
| 5
| 60
| 29.2
| 0.874016
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 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
|
e48b7ecb8449a52a2af6d0e561617ca6b11c0e2d
| 189
|
py
|
Python
|
src/lib/trains/train_factory.py
|
nerminsamet/HoughNet-VID
|
670405e002e1c4d60596434db4790783eaf62846
|
[
"MIT"
] | 5
|
2021-04-26T12:46:14.000Z
|
2021-09-15T15:17:35.000Z
|
src/lib/trains/train_factory.py
|
nerminsamet/HoughNet-VID
|
670405e002e1c4d60596434db4790783eaf62846
|
[
"MIT"
] | 1
|
2021-09-06T05:22:32.000Z
|
2021-09-07T15:11:18.000Z
|
src/lib/trains/train_factory.py
|
nerminsamet/HoughNet-VID
|
670405e002e1c4d60596434db4790783eaf62846
|
[
"MIT"
] | 1
|
2021-07-01T13:42:15.000Z
|
2021-07-01T13:42:15.000Z
|
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .ctdet import CtdetTrainer
train_factory = {
'ctdet': CtdetTrainer,
}
| 17.181818
| 38
| 0.814815
| 22
| 189
| 6.318182
| 0.5
| 0.215827
| 0.345324
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 189
| 10
| 39
| 18.9
| 0.858025
| 0
| 0
| 0
| 0
| 0
| 0.026455
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 0.142857
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
e4ee42395c0f6f36d68c52b2b0b2464339de0a98
| 234
|
py
|
Python
|
django_toolbox/apps/billing/forms.py
|
stlk/django-toolbox
|
146abdae59f7b27be7aaddce611faea91a0d4b69
|
[
"MIT"
] | 2
|
2019-10-03T13:37:01.000Z
|
2020-07-02T11:43:20.000Z
|
django_toolbox/apps/billing/forms.py
|
stlk/django-toolbox
|
146abdae59f7b27be7aaddce611faea91a0d4b69
|
[
"MIT"
] | 7
|
2018-11-10T12:44:58.000Z
|
2021-09-22T17:50:59.000Z
|
django_toolbox/apps/billing/forms.py
|
stlk/django-toolbox
|
146abdae59f7b27be7aaddce611faea91a0d4b69
|
[
"MIT"
] | null | null | null |
from django import forms
class RecurringApplicationChargeForm(forms.Form):
shop = forms.CharField(max_length=250)
name = forms.CharField(max_length=250)
price = forms.DecimalField()
trial_days = forms.IntegerField()
| 26
| 49
| 0.752137
| 27
| 234
| 6.407407
| 0.666667
| 0.16185
| 0.196532
| 0.265896
| 0.300578
| 0
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 0.153846
| 234
| 8
| 50
| 29.25
| 0.843434
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 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
| 0
| 0
| 1
| 0
|
0
| 5
|
e4f7da178efc700cdfa676de49bb3c77f4864b79
| 95
|
py
|
Python
|
webassets_traceur/__init__.py
|
concordusapps/webassets-traceur
|
f7b9513537a881aae9d26203f1bc03e133db71e1
|
[
"MIT"
] | 1
|
2015-05-24T16:30:10.000Z
|
2015-05-24T16:30:10.000Z
|
webassets_traceur/__init__.py
|
concordusapps/webassets-traceur
|
f7b9513537a881aae9d26203f1bc03e133db71e1
|
[
"MIT"
] | null | null | null |
webassets_traceur/__init__.py
|
concordusapps/webassets-traceur
|
f7b9513537a881aae9d26203f1bc03e133db71e1
|
[
"MIT"
] | null | null | null |
from ._version import __version__, __version_info__ # noqa
from .filters import TraceurFilter
| 31.666667
| 59
| 0.831579
| 11
| 95
| 6.272727
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126316
| 95
| 2
| 60
| 47.5
| 0.831325
| 0.042105
| 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
|
e4f934ee46d11b5d615dcad773a6bfb0d1b876e8
| 1,274
|
py
|
Python
|
tests/validate/test_hacsjson_check.py
|
kiss2u/integration
|
230b7035898b5faa3b40af76261d362bc2224b77
|
[
"MIT"
] | 15
|
2022-02-25T13:17:43.000Z
|
2022-03-24T15:23:22.000Z
|
tests/validate/test_hacsjson_check.py
|
kiss2u/integration
|
230b7035898b5faa3b40af76261d362bc2224b77
|
[
"MIT"
] | 6
|
2019-03-02T10:13:15.000Z
|
2019-03-02T14:00:40.000Z
|
tests/validate/test_hacsjson_check.py
|
ludeeus/harm
|
55794176fccf55321780decf9ef354e91a41d1b9
|
[
"MIT"
] | 1
|
2022-03-08T13:25:35.000Z
|
2022-03-08T13:25:35.000Z
|
from aiogithubapi.objects.repository.content import AIOGitHubAPIRepositoryTreeContent
import pytest
from custom_components.hacs.validate.hacsjson import Validator
@pytest.mark.asyncio
async def test_hacs_manifest_no_manifest(repository):
check = Validator(repository)
await check.execute_validation()
assert check.failed
@pytest.mark.asyncio
async def test_hacs_manifest_with_valid_manifest(repository):
repository.tree = [
AIOGitHubAPIRepositoryTreeContent(
{"path": "hacs.json", "type": "file"}, "test/test", "main"
)
]
async def _async_get_hacs_json(_):
return {"name": "test"}
repository.async_get_hacs_json = _async_get_hacs_json
check = Validator(repository)
await check.execute_validation()
assert not check.failed
@pytest.mark.asyncio
async def test_hacs_manifest_with_invalid_manifest(repository):
repository.tree = [
AIOGitHubAPIRepositoryTreeContent(
{"path": "hacs.json", "type": "file"}, "test/test", "main"
)
]
async def _async_get_hacs_json(_):
return {"not": "valid"}
repository.async_get_hacs_json = _async_get_hacs_json
check = Validator(repository)
await check.execute_validation()
assert check.failed
| 26.541667
| 85
| 0.715856
| 141
| 1,274
| 6.170213
| 0.283688
| 0.073563
| 0.082759
| 0.110345
| 0.773563
| 0.773563
| 0.773563
| 0.773563
| 0.726437
| 0.726437
| 0
| 0
| 0.187598
| 1,274
| 47
| 86
| 27.106383
| 0.84058
| 0
| 0
| 0.617647
| 0
| 0
| 0.065934
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 1
| 0
| false
| 0
| 0.088235
| 0
| 0.147059
| 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
|
9038caeae9e85d2e168d0dc497aba9493e44e20c
| 64
|
py
|
Python
|
deco/tokenizers/__init__.py
|
mfojtak/decor
|
203979351635a6794c91200fca4a14296ec9bc37
|
[
"MIT"
] | 1
|
2019-09-05T07:23:19.000Z
|
2019-09-05T07:23:19.000Z
|
deco/tokenizers/__init__.py
|
mfojtak/decor
|
203979351635a6794c91200fca4a14296ec9bc37
|
[
"MIT"
] | 2
|
2020-10-25T17:41:08.000Z
|
2020-10-26T16:48:19.000Z
|
deco/tokenizers/__init__.py
|
mfojtak/deco
|
203979351635a6794c91200fca4a14296ec9bc37
|
[
"MIT"
] | null | null | null |
from deco.tokenizers.sentencepiece import SentencepieceTokenizer
| 64
| 64
| 0.921875
| 6
| 64
| 9.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046875
| 64
| 1
| 64
| 64
| 0.967213
| 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
|
5f69fdf5d68a32facfb013f25292ed43ae8fad43
| 286
|
py
|
Python
|
toontown/cogdominium/DistributedCogdoElevatorExtAI.py
|
MasterLoopyBM/Toontown
|
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
|
[
"MIT"
] | 1
|
2020-02-07T18:15:12.000Z
|
2020-02-07T18:15:12.000Z
|
toontown/cogdominium/DistributedCogdoElevatorExtAI.py
|
TrueBlueDogemon/Toontown
|
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
|
[
"MIT"
] | null | null | null |
toontown/cogdominium/DistributedCogdoElevatorExtAI.py
|
TrueBlueDogemon/Toontown
|
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
|
[
"MIT"
] | 2
|
2020-11-08T03:38:35.000Z
|
2021-09-02T07:03:47.000Z
|
from direct.directnotify import DirectNotifyGlobal
from toontown.building.DistributedElevatorExtAI import DistributedElevatorExtAI
class DistributedCogdoElevatorExtAI(DistributedElevatorExtAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedCogdoElevatorExtAI")
| 40.857143
| 89
| 0.888112
| 19
| 286
| 13.368421
| 0.631579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066434
| 286
| 6
| 90
| 47.666667
| 0.951311
| 0
| 0
| 0
| 0
| 0
| 0.101754
| 0.101754
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
5f707d799c91462e89bd6fda7da090cfd78e2cad
| 608
|
py
|
Python
|
tests/functional/test_example_imports.py
|
captain-kark/module_resources
|
d85453ff4f5022127874a5842449d95bb5eda234
|
[
"MIT"
] | null | null | null |
tests/functional/test_example_imports.py
|
captain-kark/module_resources
|
d85453ff4f5022127874a5842449d95bb5eda234
|
[
"MIT"
] | 8
|
2019-07-24T11:18:36.000Z
|
2019-08-05T06:43:32.000Z
|
tests/functional/test_example_imports.py
|
captain-kark/module_resources
|
d85453ff4f5022127874a5842449d95bb5eda234
|
[
"MIT"
] | 1
|
2021-07-18T06:30:32.000Z
|
2021-07-18T06:30:32.000Z
|
def test_json_and_yaml_are_identical_dicts():
from module_resources.examples.json import logging_config as json_logging_config
from module_resources.examples.yaml import logging_config as yaml_logging_config
assert dict(json_logging_config) == dict(yaml_logging_config)
def test_top_level_properties_are_importable():
from module_resources.examples.json.logging_config import formatters as json_logging_formatters
from module_resources.examples.yaml.logging_config import formatters as yaml_logging_formatters
assert dict(json_logging_formatters) == dict(yaml_logging_formatters)
| 46.769231
| 99
| 0.848684
| 83
| 608
| 5.795181
| 0.277108
| 0.216216
| 0.158004
| 0.224532
| 0.386694
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 608
| 12
| 100
| 50.666667
| 0.884191
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.625
| 0
| 0.875
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
5f7966773dd8eb381951c4988bcd51aae680610f
| 345
|
py
|
Python
|
code/level8.py
|
ab300819/PythonChallenge
|
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
|
[
"Apache-2.0"
] | null | null | null |
code/level8.py
|
ab300819/PythonChallenge
|
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
|
[
"Apache-2.0"
] | null | null | null |
code/level8.py
|
ab300819/PythonChallenge
|
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
|
[
"Apache-2.0"
] | null | null | null |
# -*-coding:utf-8-*-
__author__ = 'Think'
import bz2
un = 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
pw = 'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
print ('username:' + bz2.decompress(un))
print ('password:' + bz2.decompress(pw))
| 31.363636
| 110
| 0.681159
| 60
| 345
| 3.85
| 0.666667
| 0.103896
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222571
| 0.075362
| 345
| 10
| 111
| 34.5
| 0.501567
| 0.052174
| 0
| 0
| 0
| 0.333333
| 0.658462
| 0.581538
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.166667
| 0.166667
| 0
| 0.166667
| 0.333333
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
5f98e78ff04859f17c2e7bbbb051d614fed546ff
| 71
|
py
|
Python
|
annex/external/mask/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 8
|
2016-10-09T17:51:42.000Z
|
2022-03-09T09:43:27.000Z
|
annex/external/mask/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 1
|
2017-02-12T16:33:04.000Z
|
2017-02-17T15:17:04.000Z
|
annex/external/mask/__init__.py
|
rwightman/tensorflow-annex
|
da17339e8e5a9ab9b66dac2edc8ece8133227713
|
[
"Apache-2.0"
] | 4
|
2017-02-12T15:37:54.000Z
|
2020-06-08T17:31:26.000Z
|
from .mask import encode, decode, iou, merge, area, toBbox, frPyObjects
| 71
| 71
| 0.774648
| 10
| 71
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126761
| 71
| 1
| 71
| 71
| 0.887097
| 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
|
5fb9d423e259254f070d4d602af8fbab6cfc9965
| 1,765
|
py
|
Python
|
alembic/versions/67a5401e0198_add_ows_connection_types.py
|
qwc-services/sogis-agdi
|
f278612c42f648da07448905f2b8021b279e66bc
|
[
"MIT"
] | null | null | null |
alembic/versions/67a5401e0198_add_ows_connection_types.py
|
qwc-services/sogis-agdi
|
f278612c42f648da07448905f2b8021b279e66bc
|
[
"MIT"
] | null | null | null |
alembic/versions/67a5401e0198_add_ows_connection_types.py
|
qwc-services/sogis-agdi
|
f278612c42f648da07448905f2b8021b279e66bc
|
[
"MIT"
] | null | null | null |
"""add ows connection types
Revision ID: 67a5401e0198
Revises: 961f20b3f8e6
Create Date: 2020-11-25 16:37:31.546907
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '67a5401e0198'
down_revision = '961f20b3f8e6'
branch_labels = None
depends_on = None
def upgrade():
# NOTE: recreate connection_type, as the following does not work inside
# a transaction
# Manual execution:
# psql service=soconfig_services -c "ALTER TYPE gdi_knoten.connection_type ADD VALUE 'wms'"
# psql service=soconfig_services -c "ALTER TYPE gdi_knoten.connection_type ADD VALUE 'wmts'"
sql = sa.sql.text("""
ALTER TYPE gdi_knoten.connection_type
RENAME TO connection_type_old;
CREATE TYPE gdi_knoten.connection_type AS
ENUM ('database','directory', 'wms', 'wmts');
ALTER TABLE gdi_knoten.data_source
ALTER COLUMN connection_type TYPE gdi_knoten.connection_type
USING connection_type::text::gdi_knoten.connection_type;
DROP TYPE gdi_knoten.connection_type_old;
""")
conn = op.get_bind()
conn.execute(sql)
def downgrade():
sql = sa.sql.text("""
DELETE FROM gdi_knoten.data_source
WHERE connection_type IN ('wms', 'wmts');
ALTER TYPE gdi_knoten.connection_type
RENAME TO connection_type_old;
CREATE TYPE gdi_knoten.connection_type AS
ENUM ('database','directory');
ALTER TABLE gdi_knoten.data_source
ALTER COLUMN connection_type TYPE gdi_knoten.connection_type
USING connection_type::text::gdi_knoten.connection_type;
DROP TYPE gdi_knoten.connection_type_old;
""")
conn = op.get_bind()
conn.execute(sql)
| 27.578125
| 96
| 0.693484
| 227
| 1,765
| 5.176211
| 0.361233
| 0.238298
| 0.194043
| 0.234894
| 0.628085
| 0.628085
| 0.628085
| 0.628085
| 0.628085
| 0.628085
| 0
| 0.040876
| 0.223796
| 1,765
| 63
| 97
| 28.015873
| 0.816788
| 0.250425
| 0
| 0.647059
| 0
| 0
| 0.739695
| 0.330534
| 0
| 0
| 0
| 0
| 0
| 1
| 0.058824
| false
| 0
| 0.058824
| 0
| 0.117647
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
5fc0919ef2045c7b712aa9b30a7316482a6ca3b2
| 125
|
py
|
Python
|
tutorials/katacoda/tasks/src/client/main.py
|
jhonmike/tekton.dev
|
648a22910bdf2897216a663101006f6570a99141
|
[
"Apache-2.0"
] | 51
|
2019-03-13T10:56:02.000Z
|
2021-11-07T14:01:08.000Z
|
tutorials/katacoda/tasks/src/client/main.py
|
jhonmike/tekton.dev
|
648a22910bdf2897216a663101006f6570a99141
|
[
"Apache-2.0"
] | 357
|
2019-03-12T09:06:30.000Z
|
2022-03-28T13:37:14.000Z
|
tutorials/katacoda/tasks/src/client/main.py
|
jhonmike/tekton.dev
|
648a22910bdf2897216a663101006f6570a99141
|
[
"Apache-2.0"
] | 89
|
2019-03-11T18:02:42.000Z
|
2022-03-21T10:29:15.000Z
|
import requests
def greet(server, api_key):
res = requests.get(server, params={'api_key': api_key})
return res.text
| 20.833333
| 59
| 0.704
| 19
| 125
| 4.473684
| 0.631579
| 0.211765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168
| 125
| 5
| 60
| 25
| 0.817308
| 0
| 0
| 0
| 0
| 0
| 0.056
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 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
|
39671434076f0ed4dd8e0760d1a22360b83fbb1c
| 3,033
|
py
|
Python
|
tests/test_shortlink.py
|
revythas/tinyurl-bitly
|
c9fc0c43bb327a8babba22d03bde2c2683194d35
|
[
"MIT"
] | null | null | null |
tests/test_shortlink.py
|
revythas/tinyurl-bitly
|
c9fc0c43bb327a8babba22d03bde2c2683194d35
|
[
"MIT"
] | null | null | null |
tests/test_shortlink.py
|
revythas/tinyurl-bitly
|
c9fc0c43bb327a8babba22d03bde2c2683194d35
|
[
"MIT"
] | null | null | null |
import os
import sys
import json
root = os.path.join(os.path.dirname(__file__))
package = os.path.join(root, '..')
sys.path.insert(0, os.path.abspath(package))
from shorty.app import create_app
class TestShortlink:
"""
GIVEN a Flask application configured for testing
WHEN the '/shortlinks' page is is posted to (POST) for bitly/tinyurl
THEN check that a '200' status code is returned and also getting a valid JSON
FALLING back to tinyurl if there is an unkonwn provider
"""
url = '/shortlinks'
mimetype = 'application/json'
headers = {
'Content-Type': mimetype,
'Accept': mimetype
}
flask_app = create_app({
'TESTING': True
})
def test_shortlink_bitly(self):
"""
GIVEN a Flask application configured for testing
WHEN the '/shortlinks' page is is posted to (POST) with 'bitly' provider
THEN check that a '200' status code is returned and also getting a valid JSON
"""
data = {
'url': 'http://google.com/test/123',
'provider': 'bitly'
}
with self.flask_app.test_client() as test_client:
response = test_client.post(self.url, data=json.dumps(data), headers=self.headers)
assert response.status_code == 200
assert response.json['url'] == data['url']
assert response.json['link'] != '' and 'https://bit.ly/' in response.json['link']
def test_shortlink_tinyurl(self):
"""
GIVEN a Flask application configured for testing
WHEN the '/shortlinks' page is is posted to (POST) with 'tinyurl' provider
THEN check that a '200' status code is returned and also getting a valid JSON
"""
data = {
'url': 'http://google.com/test/123',
'provider': 'tinyurl'
}
with self.flask_app.test_client() as test_client:
response = test_client.post(self.url, data=json.dumps(data), headers=self.headers)
assert response.status_code == 200
assert response.json['url'] == data['url']
assert response.json['link'] != '' and 'https://tinyurl.com/' in response.json['link']
def test_shortlink_default(self):
"""
GIVEN a Flask application configured for testing
WHEN the '/shortlinks' page is is posted to (POST) with ???UKNOWN??? provider
THEN use 'tinyurl' as the default provider and check that a '200' status code is returned and also getting a valid JSON
"""
data = {
'url': 'http://google.com/test/123',
'provider': 'other-provider'
}
with self.flask_app.test_client() as test_client:
response = test_client.post(self.url, data=json.dumps(data), headers=self.headers)
assert response.status_code == 200
assert response.json['url'] == data['url']
assert response.json['link'] != '' and 'https://tinyurl.com/' in response.json['link']
| 37.444444
| 127
| 0.609298
| 383
| 3,033
| 4.751958
| 0.221932
| 0.049451
| 0.059341
| 0.048352
| 0.751648
| 0.751648
| 0.751648
| 0.724176
| 0.724176
| 0.724176
| 0
| 0.014097
| 0.274975
| 3,033
| 80
| 128
| 37.9125
| 0.813552
| 0.296736
| 0
| 0.425532
| 0
| 0
| 0.144869
| 0
| 0
| 0
| 0
| 0
| 0.191489
| 1
| 0.06383
| false
| 0
| 0.085106
| 0
| 0.255319
| 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
|
3975a79176018495357f18cbecfeb06622e13564
| 110
|
py
|
Python
|
concerned-coyotes/earlyinternet/wikipedia/admin.py
|
Vthechamp22/summer-code-jam-2021
|
0a8bf1f22f6c73300891fd779da36efd8e1304c1
|
[
"MIT"
] | 40
|
2020-08-02T07:38:22.000Z
|
2021-07-26T01:46:50.000Z
|
concerned-coyotes/earlyinternet/wikipedia/admin.py
|
Vthechamp22/summer-code-jam-2021
|
0a8bf1f22f6c73300891fd779da36efd8e1304c1
|
[
"MIT"
] | 134
|
2020-07-31T12:15:45.000Z
|
2020-12-13T04:42:19.000Z
|
concerned-coyotes/earlyinternet/wikipedia/admin.py
|
Vthechamp22/summer-code-jam-2021
|
0a8bf1f22f6c73300891fd779da36efd8e1304c1
|
[
"MIT"
] | 101
|
2020-07-31T12:00:47.000Z
|
2021-11-01T09:06:58.000Z
|
from django.contrib import admin
from .models import WikipediaArticle
admin.site.register(WikipediaArticle)
| 18.333333
| 37
| 0.845455
| 13
| 110
| 7.153846
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 110
| 5
| 38
| 22
| 0.939394
| 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
|
39843f000b2d1aaa713f6054e7f203cb38240b19
| 215
|
py
|
Python
|
etrobosim/ev3api/__init__.py
|
YoshitakaAtarashi/ETroboSimController
|
fe7821794217e099e565b9e514ae5efdd452bd59
|
[
"MIT"
] | null | null | null |
etrobosim/ev3api/__init__.py
|
YoshitakaAtarashi/ETroboSimController
|
fe7821794217e099e565b9e514ae5efdd452bd59
|
[
"MIT"
] | null | null | null |
etrobosim/ev3api/__init__.py
|
YoshitakaAtarashi/ETroboSimController
|
fe7821794217e099e565b9e514ae5efdd452bd59
|
[
"MIT"
] | null | null | null |
from .Port import ePortM, ePortS
from .Motor import Motor, MotorType
from .ColorSensor import ColorSensor
from .GyroSensor import GyroSensor
from .SonarSensor import SonarSensor
from .TouchSensor import TouchSensor
| 30.714286
| 36
| 0.84186
| 26
| 215
| 6.961538
| 0.423077
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12093
| 215
| 6
| 37
| 35.833333
| 0.957672
| 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
|
3992ff1f8894f4c5b2567f32a634cbed2812381f
| 136
|
py
|
Python
|
python basics and applications/2/2-3/2-3-2.py
|
DzmitrySakalenka/stepik_courses
|
7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21
|
[
"MIT"
] | null | null | null |
python basics and applications/2/2-3/2-3-2.py
|
DzmitrySakalenka/stepik_courses
|
7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21
|
[
"MIT"
] | null | null | null |
python basics and applications/2/2-3/2-3-2.py
|
DzmitrySakalenka/stepik_courses
|
7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21
|
[
"MIT"
] | null | null | null |
def primes():
i, f = 2, 1
while True:
if (f + 1) % i == 0:
yield i
f, i = f * i, i + 1
| 17
| 28
| 0.294118
| 21
| 136
| 1.904762
| 0.52381
| 0.15
| 0.15
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084746
| 0.566176
| 136
| 8
| 29
| 17
| 0.59322
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| true
| 0
| 0
| 0
| 0.166667
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
|
39cf923e6f001513f77906bd70b58839a2e91cca
| 199
|
py
|
Python
|
ADWorld/maze.py
|
Don2025/CTFwriteUp
|
41e0a5bf87a1a02dd1548e621853c145ff64cedb
|
[
"MIT"
] | 2
|
2022-03-20T02:27:59.000Z
|
2022-03-20T02:28:02.000Z
|
ADWorld/maze.py
|
Don2025/CTFwriteUp
|
41e0a5bf87a1a02dd1548e621853c145ff64cedb
|
[
"MIT"
] | null | null | null |
ADWorld/maze.py
|
Don2025/CTFwriteUp
|
41e0a5bf87a1a02dd1548e621853c145ff64cedb
|
[
"MIT"
] | null | null | null |
maze = ' ******* * **** * **** * *** *# *** *** *** *********'
g = ''
s = ''
for i in range(0, len(maze)):
g += maze[i]
if (i+1)%8==0:
g += s + '\n'
s = ''
print(g)
| 22.111111
| 73
| 0.236181
| 24
| 199
| 1.958333
| 0.583333
| 0.212766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032
| 0.371859
| 199
| 9
| 74
| 22.111111
| 0.344
| 0
| 0
| 0.222222
| 0
| 0
| 0.33
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.111111
| 1
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
39d2bac72603afd32d3ad7bc77e44c2376abe346
| 202
|
py
|
Python
|
search/errors.py
|
nealedj/search
|
608dc52a43024b83f2d3c0cc1c769e461712083f
|
[
"MIT"
] | 53
|
2015-02-27T15:17:49.000Z
|
2022-02-12T11:42:34.000Z
|
search/errors.py
|
nealedj/search
|
608dc52a43024b83f2d3c0cc1c769e461712083f
|
[
"MIT"
] | 32
|
2015-01-20T13:03:55.000Z
|
2019-05-14T10:29:52.000Z
|
search/errors.py
|
nealedj/search
|
608dc52a43024b83f2d3c0cc1c769e461712083f
|
[
"MIT"
] | 21
|
2015-06-05T09:07:07.000Z
|
2021-09-14T11:01:43.000Z
|
class Error(Exception):
pass
class FieldLookupError(Error):
pass
class BadValueError(Error):
pass
class DocumentClassRequiredError(Error):
pass
class FieldError(Error):
pass
| 10.631579
| 40
| 0.712871
| 20
| 202
| 7.2
| 0.4
| 0.25
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212871
| 202
| 18
| 41
| 11.222222
| 0.90566
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f2de9a7d2a8e31eeaff9e01d99e88c1e7ab1d97e
| 44
|
py
|
Python
|
src/utils/Testing_Folder/Fish/Dogs/ShibaInu.py
|
jonoddram/CodetagCrawler
|
6b6eaed738aef91fead3d2aaf3ab96e1cecd0cdf
|
[
"MIT"
] | null | null | null |
src/utils/Testing_Folder/Fish/Dogs/ShibaInu.py
|
jonoddram/CodetagCrawler
|
6b6eaed738aef91fead3d2aaf3ab96e1cecd0cdf
|
[
"MIT"
] | null | null | null |
src/utils/Testing_Folder/Fish/Dogs/ShibaInu.py
|
jonoddram/CodetagCrawler
|
6b6eaed738aef91fead3d2aaf3ab96e1cecd0cdf
|
[
"MIT"
] | null | null | null |
# HACK Dog implemented by changing cat model
| 44
| 44
| 0.818182
| 7
| 44
| 5.142857
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 44
| 1
| 44
| 44
| 0.972973
| 0.954545
| 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
|
84067e3ffc5706b060178267373bcb86f1764234
| 77
|
py
|
Python
|
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/b/blacklisted_name.py
|
ciskoinch8/vimrc
|
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
|
[
"MIT"
] | 463
|
2015-01-15T08:17:42.000Z
|
2022-03-28T15:10:20.000Z
|
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/b/blacklisted_name.py
|
ciskoinch8/vimrc
|
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
|
[
"MIT"
] | 52
|
2015-01-06T02:43:59.000Z
|
2022-03-14T11:15:21.000Z
|
vimfiles/bundle/vim-python/submodules/pylint/tests/functional/b/blacklisted_name.py
|
ciskoinch8/vimrc
|
5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8
|
[
"MIT"
] | 249
|
2015-01-07T22:49:49.000Z
|
2022-03-18T02:32:06.000Z
|
# pylint: disable=missing-docstring
def baz(): # [disallowed-name]
pass
| 15.4
| 35
| 0.688312
| 9
| 77
| 5.888889
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.168831
| 77
| 4
| 36
| 19.25
| 0.828125
| 0.662338
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
ffed5282aba35e39702921c6733bf5e800175ff6
| 62
|
py
|
Python
|
sbpy/thermal/__init__.py
|
dirac-institute/sbpy
|
9eb0523610f497ba2d068a071aae05ebfd67ed9d
|
[
"BSD-3-Clause"
] | 47
|
2018-07-26T04:21:51.000Z
|
2022-03-07T16:23:02.000Z
|
sbpy/thermal/__init__.py
|
dirac-institute/sbpy
|
9eb0523610f497ba2d068a071aae05ebfd67ed9d
|
[
"BSD-3-Clause"
] | 253
|
2018-07-24T12:12:57.000Z
|
2022-03-13T21:59:52.000Z
|
sbpy/thermal/__init__.py
|
dirac-institute/sbpy
|
9eb0523610f497ba2d068a071aae05ebfd67ed9d
|
[
"BSD-3-Clause"
] | 27
|
2018-07-20T05:25:44.000Z
|
2022-03-01T03:29:30.000Z
|
"""
SBPy Module for thermal modeling
"""
from .core import *
| 10.333333
| 32
| 0.677419
| 8
| 62
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193548
| 62
| 5
| 33
| 12.4
| 0.84
| 0.516129
| 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
|
ffff6e49494dade8eef822022a56830153a4825c
| 140
|
py
|
Python
|
tests/data/dummy_script.py
|
besirkurtulmus/sagemaker-python-sdk
|
73e8cf5f26efa3174e8283be8b287bd9182abec9
|
[
"Apache-2.0"
] | 1
|
2018-01-19T22:24:38.000Z
|
2018-01-19T22:24:38.000Z
|
tests/data/dummy_script.py
|
besirkurtulmus/sagemaker-python-sdk
|
73e8cf5f26efa3174e8283be8b287bd9182abec9
|
[
"Apache-2.0"
] | null | null | null |
tests/data/dummy_script.py
|
besirkurtulmus/sagemaker-python-sdk
|
73e8cf5f26efa3174e8283be8b287bd9182abec9
|
[
"Apache-2.0"
] | 2
|
2019-08-06T05:48:25.000Z
|
2020-10-04T17:00:55.000Z
|
print('This is definitely code which does machine learning stuff')
print('and not just a random file I threw together for unit testing.')
| 46.666667
| 71
| 0.771429
| 23
| 140
| 4.695652
| 0.956522
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164286
| 140
| 2
| 72
| 70
| 0.923077
| 0
| 0
| 0
| 0
| 0
| 0.855072
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.