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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8752ed9d6237cde12a79f2708c866fd7656df0e
| 70
|
py
|
Python
|
ObjectModeling/SnakeAndLadder/SankeAndLadder/Snake.py
|
riyasyash/CompetitiveProgramming
|
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
|
[
"Apache-2.0"
] | null | null | null |
ObjectModeling/SnakeAndLadder/SankeAndLadder/Snake.py
|
riyasyash/CompetitiveProgramming
|
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
|
[
"Apache-2.0"
] | 79
|
2019-01-26T10:45:16.000Z
|
2022-02-21T22:16:24.000Z
|
ObjectModeling/SnakeAndLadder/SankeAndLadder/Snake.py
|
riyasyash/CompetitiveProgramming
|
9cb5c71a2b4297fa8681f0e380ee7a7bb3ee5b5e
|
[
"Apache-2.0"
] | null | null | null |
class Snake:
"""
class representing the snake
"""
pass
| 14
| 32
| 0.557143
| 7
| 70
| 5.571429
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.342857
| 70
| 5
| 33
| 14
| 0.847826
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 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
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
a8819e2710dd9ec5a9e5ad89ec4c08de79fa33d8
| 116
|
py
|
Python
|
tmp006_simpletest.py
|
caternuson/TMP006
|
e209dbf4242068b6ccc30d9bbc046b525ddbc755
|
[
"MIT"
] | null | null | null |
tmp006_simpletest.py
|
caternuson/TMP006
|
e209dbf4242068b6ccc30d9bbc046b525ddbc755
|
[
"MIT"
] | null | null | null |
tmp006_simpletest.py
|
caternuson/TMP006
|
e209dbf4242068b6ccc30d9bbc046b525ddbc755
|
[
"MIT"
] | null | null | null |
import board, busio
import adafruit_tmp006
i2c = busio.I2C(board.SCL, board.SDA)
tmp = adafruit_tmp006.TMP006(i2c)
| 19.333333
| 37
| 0.784483
| 18
| 116
| 4.944444
| 0.5
| 0.314607
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.116505
| 0.112069
| 116
| 6
| 38
| 19.333333
| 0.747573
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
76940790b47b4d8abc79653b9cde06174ce8aa47
| 345
|
py
|
Python
|
src/elapid/example/face_detector.py
|
tomjaguarpaw/elapid
|
e9e9a4b36fa8e7c07f6f559454b911a802597ea0
|
[
"MIT"
] | null | null | null |
src/elapid/example/face_detector.py
|
tomjaguarpaw/elapid
|
e9e9a4b36fa8e7c07f6f559454b911a802597ea0
|
[
"MIT"
] | null | null | null |
src/elapid/example/face_detector.py
|
tomjaguarpaw/elapid
|
e9e9a4b36fa8e7c07f6f559454b911a802597ea0
|
[
"MIT"
] | null | null | null |
class ExampleFaceDetector:
"""It doesn't really work!"""
def __init__(self, example_parameter):
self.example_parameter = example_parameter
@staticmethod
def detect_faces(_binary_data):
return [((110, 120), (130, 140)),
((220, 240), (230, 250)),
((300, 300), (310, 310))
]
| 28.75
| 50
| 0.55942
| 36
| 345
| 5.083333
| 0.777778
| 0.262295
| 0.218579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 0.295652
| 345
| 11
| 51
| 31.363636
| 0.604938
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0
| 0.111111
| 0.444444
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 4
|
7696ba395cd91f25232b06e7a6cfd30f13308255
| 131
|
py
|
Python
|
desafios/des097.py
|
Ericssm96/python
|
764d0d704be685db9e993c4b74d3df78da12cc6f
|
[
"MIT"
] | null | null | null |
desafios/des097.py
|
Ericssm96/python
|
764d0d704be685db9e993c4b74d3df78da12cc6f
|
[
"MIT"
] | null | null | null |
desafios/des097.py
|
Ericssm96/python
|
764d0d704be685db9e993c4b74d3df78da12cc6f
|
[
"MIT"
] | null | null | null |
def campo(txt):
esp = len(txt) + 2
print('~'*esp)
print(f' {txt} ')
print('~'*esp)
campo('eeita porra consegui')
| 14.555556
| 29
| 0.526718
| 18
| 131
| 3.833333
| 0.611111
| 0.231884
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010204
| 0.251908
| 131
| 8
| 30
| 16.375
| 0.693878
| 0
| 0
| 0.333333
| 0
| 0
| 0.221374
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0
| 0
| 0.166667
| 0.5
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
76b4a2b26c6f664a3d33558a6150334c5a075689
| 515
|
py
|
Python
|
djtriggers/managers.py
|
vikingco/django-triggers
|
3928843c7c298f0541f615e3acb280ebf5f59a8f
|
[
"BSD-3-Clause"
] | 18
|
2017-04-25T10:43:42.000Z
|
2021-03-15T08:19:51.000Z
|
djtriggers/managers.py
|
vikingco/django-triggers
|
3928843c7c298f0541f615e3acb280ebf5f59a8f
|
[
"BSD-3-Clause"
] | 14
|
2015-12-09T15:46:45.000Z
|
2020-11-10T10:34:38.000Z
|
djtriggers/managers.py
|
vikingco/django-triggers
|
3928843c7c298f0541f615e3acb280ebf5f59a8f
|
[
"BSD-3-Clause"
] | 6
|
2016-01-25T17:44:57.000Z
|
2021-07-25T03:59:15.000Z
|
from django.db import models
class TriggerManager(models.Manager):
def __init__(self, trigger_type):
super(TriggerManager, self).__init__()
self.trigger_type = trigger_type
def get_queryset(self):
qs = super(TriggerManager, self).get_queryset()
if self.trigger_type:
qs = qs.filter(trigger_type=self.trigger_type)
return qs
def get_unprocessed_triggers(self):
qs = self.get_queryset()
return qs.filter(date_processed__isnull=True)
| 28.611111
| 58
| 0.681553
| 63
| 515
| 5.222222
| 0.412698
| 0.200608
| 0.182371
| 0.115502
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.229126
| 515
| 17
| 59
| 30.294118
| 0.828715
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.076923
| 0
| 0.538462
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
76b5fc286d9e12258c1cd568b92d12999ba46320
| 83
|
py
|
Python
|
apps/users/apps.py
|
TransparentHealth/smh-organization
|
ca32d1cbb7600e8b22e43e06edab83c323a2404d
|
[
"Apache-2.0"
] | 3
|
2019-03-03T22:41:00.000Z
|
2020-04-16T04:07:07.000Z
|
apps/users/apps.py
|
TransparentHealth/smh_app
|
ca32d1cbb7600e8b22e43e06edab83c323a2404d
|
[
"Apache-2.0"
] | 112
|
2019-03-04T14:20:50.000Z
|
2020-04-29T21:32:07.000Z
|
apps/users/apps.py
|
TransparentHealth/smh-organization
|
ca32d1cbb7600e8b22e43e06edab83c323a2404d
|
[
"Apache-2.0"
] | 2
|
2019-08-01T13:08:28.000Z
|
2019-12-06T15:53:25.000Z
|
from django.apps import AppConfig
class OrgConfig(AppConfig):
name = 'users'
| 13.833333
| 33
| 0.73494
| 10
| 83
| 6.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180723
| 83
| 5
| 34
| 16.6
| 0.897059
| 0
| 0
| 0
| 0
| 0
| 0.060241
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
76c33299861f12c9f3a5ea123c029568dce98516
| 66
|
py
|
Python
|
week06/lecture/examples/src6/1/mario2.py
|
uldash/CS50x
|
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
|
[
"MIT"
] | null | null | null |
week06/lecture/examples/src6/1/mario2.py
|
uldash/CS50x
|
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
|
[
"MIT"
] | null | null | null |
week06/lecture/examples/src6/1/mario2.py
|
uldash/CS50x
|
c3ee0f42ad514b57a13c3ffbb96238b3ca3730e1
|
[
"MIT"
] | 1
|
2020-11-24T23:25:26.000Z
|
2020-11-24T23:25:26.000Z
|
# Prints a row of 4 question marks without a loop
print("?" * 4)
| 16.5
| 49
| 0.666667
| 12
| 66
| 3.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039216
| 0.227273
| 66
| 3
| 50
| 22
| 0.823529
| 0.712121
| 0
| 0
| 0
| 0
| 0.058824
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
4f2f18b65811901718fbb9d718f153807ba439ed
| 599
|
py
|
Python
|
main.py
|
doruksahin/gladiatus-bot
|
a5de9e11d6f43ca8fe85a8302c54a902dc6614ed
|
[
"MIT"
] | 1
|
2020-08-14T14:54:38.000Z
|
2020-08-14T14:54:38.000Z
|
main.py
|
doruksahin/gladiatus-bot
|
a5de9e11d6f43ca8fe85a8302c54a902dc6614ed
|
[
"MIT"
] | 30
|
2019-06-07T07:24:19.000Z
|
2019-06-09T08:20:39.000Z
|
main.py
|
doruksahin/gladiatus-bot
|
a5de9e11d6f43ca8fe85a8302c54a902dc6614ed
|
[
"MIT"
] | 2
|
2020-05-24T12:20:57.000Z
|
2022-01-06T14:03:21.000Z
|
from utilities.enums.enums import Stats, Areas, ExpeditionAttack
#from utilities.funcs import login
from utilities.funcs_training import train
from utilities.funcs_character import get_stats
from utilities.funcs_dungeon import dungeon_loop
from utilities.funcs_auction import beep_when_decent_item_found
from utilities import driver
if __name__ == '__main__':
#login("bnmLe100Lesh", "dodo1234", 38)
# get_stats()
#train(Stats.AGI)
#expedition(Areas.PIRATE_HARBOUR, ExpeditionAttack.FIRST)
dungeon_loop(dungeon=Areas.WOLF_CAVE, repeat_count=200, skip_boss=True)
#beep_when_decent_item_found()
| 37.4375
| 72
| 0.831386
| 82
| 599
| 5.731707
| 0.5
| 0.193617
| 0.191489
| 0.076596
| 0.097872
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021978
| 0.088481
| 599
| 16
| 73
| 37.4375
| 0.838828
| 0.305509
| 0
| 0
| 0
| 0
| 0.019465
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
4f413fe0eb51576edff3723343dcb3b053c5aee4
| 170
|
py
|
Python
|
instiz/helper.py
|
Chromadream/instiz
|
2a353625ac8ee4ae7aa8465bd1c3d9ae846ea768
|
[
"MIT"
] | null | null | null |
instiz/helper.py
|
Chromadream/instiz
|
2a353625ac8ee4ae7aa8465bd1c3d9ae846ea768
|
[
"MIT"
] | 174
|
2018-11-23T08:12:36.000Z
|
2021-07-29T19:16:27.000Z
|
instiz/helper.py
|
Chromadream/instiz
|
2a353625ac8ee4ae7aa8465bd1c3d9ae846ea768
|
[
"MIT"
] | null | null | null |
from urllib.parse import urlsplit
def return_int_from_image_url(url):
current_url = urlsplit(url)
return int(current_url.path.split("/")[-1].split(".")[0][0])
| 21.25
| 64
| 0.7
| 26
| 170
| 4.346154
| 0.576923
| 0.159292
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.02027
| 0.129412
| 170
| 7
| 65
| 24.285714
| 0.743243
| 0
| 0
| 0
| 0
| 0
| 0.011834
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
4f5b9733503640a8dd3da1758abf30295b19b50d
| 511
|
py
|
Python
|
hackerrank/Algorithms/Xor-sequence/test.py
|
ATrain951/01.python-com_Qproject
|
c164dd093954d006538020bdf2e59e716b24d67c
|
[
"MIT"
] | 4
|
2020-07-24T01:59:50.000Z
|
2021-07-24T15:14:08.000Z
|
hackerrank/Algorithms/Xor-sequence/test.py
|
ATrain951/01.python-com_Qproject
|
c164dd093954d006538020bdf2e59e716b24d67c
|
[
"MIT"
] | null | null | null |
hackerrank/Algorithms/Xor-sequence/test.py
|
ATrain951/01.python-com_Qproject
|
c164dd093954d006538020bdf2e59e716b24d67c
|
[
"MIT"
] | null | null | null |
import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.xorSequence(2, 4), 7)
self.assertEqual(solution.xorSequence(2, 8), 9)
self.assertEqual(solution.xorSequence(5, 9), 15)
def test_case_1(self):
self.assertEqual(solution.xorSequence(3, 5), 5)
self.assertEqual(solution.xorSequence(4, 6), 2)
self.assertEqual(solution.xorSequence(15, 20), 22)
if __name__ == '__main__':
unittest.main()
| 25.55
| 58
| 0.677104
| 65
| 511
| 5.138462
| 0.430769
| 0.269461
| 0.413174
| 0.610778
| 0.335329
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058252
| 0.193738
| 511
| 19
| 59
| 26.894737
| 0.752427
| 0
| 0
| 0
| 0
| 0
| 0.015656
| 0
| 0
| 0
| 0
| 0
| 0.461538
| 1
| 0.153846
| false
| 0
| 0.153846
| 0
| 0.384615
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4f7e2f93b402bd4e12659177a019f7d28b57216a
| 34
|
py
|
Python
|
test/login.py
|
friedlich/python33
|
b5071c67d6edb3a7e993577bc8fb07383c201e5a
|
[
"MIT"
] | null | null | null |
test/login.py
|
friedlich/python33
|
b5071c67d6edb3a7e993577bc8fb07383c201e5a
|
[
"MIT"
] | null | null | null |
test/login.py
|
friedlich/python33
|
b5071c67d6edb3a7e993577bc8fb07383c201e5a
|
[
"MIT"
] | null | null | null |
初始化
num1 = 10
num2 = 20
num3 = 30
| 6.8
| 9
| 0.617647
| 7
| 34
| 3
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.375
| 0.294118
| 34
| 4
| 10
| 8.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4f88e7dc22a867bc8d33043d792e4a7ea82d6904
| 684
|
py
|
Python
|
concordia/validators.py
|
juliecentofanti172/juliecentofanti.github.io
|
446ea8522b9f4a6709124ebb6e0f675acf7fe205
|
[
"CC0-1.0"
] | 134
|
2018-05-23T14:00:29.000Z
|
2022-03-10T15:47:53.000Z
|
concordia/validators.py
|
ptrourke/concordia
|
56ff364dbf38cb8a763df489479821fe43b76d69
|
[
"CC0-1.0"
] | 1,104
|
2018-05-22T20:18:22.000Z
|
2022-03-31T17:28:40.000Z
|
concordia/validators.py
|
ptrourke/concordia
|
56ff364dbf38cb8a763df489479821fe43b76d69
|
[
"CC0-1.0"
] | 32
|
2018-05-22T20:22:38.000Z
|
2021-12-21T14:11:44.000Z
|
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from passwords.validators import ComplexityValidator
class DjangoPasswordsValidator(object):
"""
Wrapper for the django-passwords complexity validator which is compatible
with the Django 1.9+ password validation API
"""
message = _("Must be more complex (%s)")
code = "complexity"
def __init__(self):
self.validator = ComplexityValidator(settings.PASSWORD_COMPLEXITY)
def get_help_text(self):
return _("Your password fails to meet our complexity requirements.")
def validate(self, value, user=None):
return self.validator(value)
| 29.73913
| 77
| 0.730994
| 80
| 684
| 6.1125
| 0.675
| 0.0409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003623
| 0.192982
| 684
| 22
| 78
| 31.090909
| 0.882246
| 0.172515
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.333333
| 0.25
| 0.166667
| 0.916667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
96d7be29495922635d9d83210698f91f0f48ea35
| 210
|
py
|
Python
|
processmap/admin.py
|
AlexGolovaschenko/OPSI-Wiki
|
b530da99c746d93484e42399cf6ecaf945fcc2fe
|
[
"Apache-2.0"
] | null | null | null |
processmap/admin.py
|
AlexGolovaschenko/OPSI-Wiki
|
b530da99c746d93484e42399cf6ecaf945fcc2fe
|
[
"Apache-2.0"
] | 8
|
2021-03-30T12:31:41.000Z
|
2022-01-13T01:59:19.000Z
|
processmap/admin.py
|
AlexGolovaschenko/OPSI-Wiki
|
b530da99c746d93484e42399cf6ecaf945fcc2fe
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from processmap.models import MapAreaLink
class MapAreaLinkAdmin (admin.ModelAdmin):
list_display = ['map_area', 'page']
admin.site.register(MapAreaLink, MapAreaLinkAdmin)
| 21
| 50
| 0.804762
| 24
| 210
| 6.958333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104762
| 210
| 9
| 51
| 23.333333
| 0.888298
| 0
| 0
| 0
| 0
| 0
| 0.057143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
96f4b800df70ee1f83a5c8120d1a850db44466fe
| 19
|
py
|
Python
|
python/testData/psi/EqYieldEq.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/psi/EqYieldEq.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/psi/EqYieldEq.py
|
jnthn/intellij-community
|
8fa7c8a3ace62400c838e0d5926a7be106aa8557
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
bb = yield dd = cc
| 9.5
| 18
| 0.578947
| 4
| 19
| 2.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.315789
| 19
| 1
| 19
| 19
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
96fd4b34f13552125a4b4b2b72c71155157142b5
| 7,619
|
py
|
Python
|
garnett/lookups.py
|
Aristotle-Metadata-Enterprises/django-garne
|
c8166d1146c078091edfd487a57706a279de7b63
|
[
"BSD-3-Clause"
] | null | null | null |
garnett/lookups.py
|
Aristotle-Metadata-Enterprises/django-garne
|
c8166d1146c078091edfd487a57706a279de7b63
|
[
"BSD-3-Clause"
] | null | null | null |
garnett/lookups.py
|
Aristotle-Metadata-Enterprises/django-garne
|
c8166d1146c078091edfd487a57706a279de7b63
|
[
"BSD-3-Clause"
] | null | null | null |
from django.db.models import lookups
from django.db.models.fields import json, CharField
from django.db.models.functions import Cast
from django.contrib.postgres.fields.jsonb import KeyTextTransform
from django.contrib.postgres.lookups import SearchLookup, TrigramSimilar
from django.contrib.postgres.search import TrigramSimilarity
from garnett.fields import TranslatedField, TranslatedKeyTransform
from garnett.utils import get_current_language
# We duplicate and process_lhs and process_rhs to be certain these are
# Actually called during tests.
# Otherwise, the blank classes appear to give 100% coverage
@TranslatedField.register_lookup
class HasLang(json.HasKey):
lookup_name = "has_lang"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class HasLangs(json.HasKeys):
lookup_name = "has_langs"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class HasAnyLangs(json.HasAnyKeys):
lookup_name = "has_any_langs"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
# Override default lookups on our field to handle language lookups
class CurrentLanguageMixin:
"""Mixin to perform language lookup on lhs"""
def __init__(self, lhs, *args, **kwargs):
tlhs = json.KeyTransform(
str(get_current_language()),
lhs,
)
super().__init__(tlhs, *args, **kwargs)
@TranslatedField.register_lookup
class BaseLanguageExact(
CurrentLanguageMixin, json.KeyTransformTextLookupMixin, lookups.Exact
):
# Note: On some database engines lookup_name actually has an effect on the result
# (See lookup_cast in the django postgres backend)
lookup_name = "exact"
prepare_rhs = False
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageIExact(CurrentLanguageMixin, json.KeyTransformIExact):
lookup_name = "iexact"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageIContains(CurrentLanguageMixin, json.KeyTransformIContains):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageContains(
CurrentLanguageMixin, json.KeyTransformTextLookupMixin, lookups.Contains
):
# Override the default json field contains which is not a text contains
# https://docs.djangoproject.com/en/3.1/topics/db/queries/#contains
lookup_name = "contains"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
# Override contains lookup for after a key lookup i.e. title__en__contains="thing"
@TranslatedKeyTransform.register_lookup
class KeyTransformContains(json.KeyTransformTextLookupMixin, lookups.Contains):
lookup_name = "contains"
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedKeyTransform.register_lookup
class KeyTransformExact(json.KeyTransformExact):
def process_lhs(self, compiler, connection):
self.lhs = Cast(self.lhs, CharField())
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
self.rhs = Cast(self.lhs, CharField())
return super().process_lhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageStartsWith(CurrentLanguageMixin, json.KeyTransformStartsWith):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageIStartsWith(CurrentLanguageMixin, json.KeyTransformIStartsWith):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageEndsWith(CurrentLanguageMixin, json.KeyTransformEndsWith):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageIEndsWith(CurrentLanguageMixin, json.KeyTransformIEndsWith):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageRegex(CurrentLanguageMixin, json.KeyTransformRegex):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageIRegex(CurrentLanguageMixin, json.KeyTransformIRegex):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
@TranslatedField.register_lookup
class BaseLanguageSearch(
CurrentLanguageMixin, json.KeyTransformTextLookupMixin, SearchLookup
):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
# --- Postgres only functions ---
@TranslatedField.register_lookup
class BaseLanguageTrigramSimilar(
CurrentLanguageMixin, json.KeyTransformTextLookupMixin, TrigramSimilar
):
def process_lhs(self, compiler, connection):
return super().process_lhs(compiler, connection)
def process_rhs(self, compiler, connection):
return super().process_rhs(compiler, connection)
class LangTrigramSimilarity(TrigramSimilarity):
# There is no way we can calculate if a field is a language or not
# So we have to write our own function here
# We also need to cast the JSONB field to a string
def __init__(self, expression, string, **extra):
lang = str(get_current_language())
expression = KeyTextTransform(lang, expression)
super().__init__(expression, string, **extra)
| 33.862222
| 85
| 0.754561
| 828
| 7,619
| 6.789855
| 0.19686
| 0.217716
| 0.133049
| 0.159374
| 0.541089
| 0.541089
| 0.528815
| 0.528815
| 0.528815
| 0.528815
| 0
| 0.00078
| 0.158157
| 7,619
| 224
| 86
| 34.013393
| 0.875741
| 0.104344
| 0
| 0.65
| 0
| 0
| 0.008376
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.257143
| false
| 0
| 0.057143
| 0.228571
| 0.75
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8c0d9ab69f5d504613002cbfc83867efcb6b0502
| 238
|
py
|
Python
|
example/my_class.py
|
avara1986/gozokia
|
03da46359c4a97a35b8f94686cccec7fc9b438cd
|
[
"MIT-0",
"MIT"
] | null | null | null |
example/my_class.py
|
avara1986/gozokia
|
03da46359c4a97a35b8f94686cccec7fc9b438cd
|
[
"MIT-0",
"MIT"
] | null | null | null |
example/my_class.py
|
avara1986/gozokia
|
03da46359c4a97a35b8f94686cccec7fc9b438cd
|
[
"MIT-0",
"MIT"
] | null | null | null |
from gozokia.core.rules import RuleBase
class MyClassObjetive(RuleBase):
def condition_raise(self, *args, **kwargs):
return False
def response(self, *args, **kwargs):
self.response_output = 'My Class Objetive'
| 21.636364
| 50
| 0.689076
| 28
| 238
| 5.785714
| 0.714286
| 0.098765
| 0.17284
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.205882
| 238
| 10
| 51
| 23.8
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.166667
| 0.166667
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
8c302586b3ff1a616fe99ea203ebc95d11c59f66
| 510
|
py
|
Python
|
examples/55. Jump Game.py
|
yehzhang/RapidTest
|
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
|
[
"MIT"
] | null | null | null |
examples/55. Jump Game.py
|
yehzhang/RapidTest
|
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
|
[
"MIT"
] | null | null | null |
examples/55. Jump Game.py
|
yehzhang/RapidTest
|
2302fc10ddafba1d16ef1d7448d46c66f5a05da2
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
from rapidtest import Test, Case
from solutions.jump_game import Solution
with Test(Solution) as test:
Case([], result=True)
Case([0], result=True)
Case([0, 1], result=False)
Case([1, 0], result=True)
Case([1, 0, 0], result=False)
Case([2, 0, 0], result=True)
Case([1, 1, 0], result=True)
Case([3, 0, 0, 0], result=True)
Case([2, 0, 0, 10], result=False)
Case([2, 3, 1, 1, 4], result=True)
Case([3, 2, 1, 0, 4], result=False)
| 28.333333
| 40
| 0.607843
| 86
| 510
| 3.534884
| 0.267442
| 0.230263
| 0.322368
| 0.246711
| 0.217105
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081886
| 0.209804
| 510
| 17
| 41
| 30
| 0.672457
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.2
| 0
| 0.2
| 0.066667
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8c52632c085d3a54ef9524fb3766be795102e1e9
| 1,975
|
py
|
Python
|
src/injecta/service/argument/PrimitiveArgumentTest.py
|
DataSentics/injecta
|
090eeac6c76c43d40be71df678222a07b0a3c783
|
[
"MIT"
] | 3
|
2021-09-27T12:55:00.000Z
|
2022-01-31T19:13:23.000Z
|
src/injecta/service/argument/PrimitiveArgumentTest.py
|
DataSentics/injecta
|
090eeac6c76c43d40be71df678222a07b0a3c783
|
[
"MIT"
] | null | null | null |
src/injecta/service/argument/PrimitiveArgumentTest.py
|
DataSentics/injecta
|
090eeac6c76c43d40be71df678222a07b0a3c783
|
[
"MIT"
] | 1
|
2021-03-04T09:12:05.000Z
|
2021-03-04T09:12:05.000Z
|
import unittest
from injecta.service.argument.PrimitiveArgument import PrimitiveArgument
class PrimitiveArgumentTest(unittest.TestCase):
def test_string(self):
argument = PrimitiveArgument("hello world")
self.assertEqual("'hello world'", argument.get_string_value())
def test_number(self):
argument = PrimitiveArgument(123456)
self.assertEqual("123456", argument.get_string_value())
def test_bool(self):
argument = PrimitiveArgument(True)
self.assertEqual("True", argument.get_string_value())
def test_none(self):
argument = PrimitiveArgument(None)
self.assertEqual("None", argument.get_string_value())
def test_env_placeholder_only(self):
argument = PrimitiveArgument("%env(APP_ENV)%")
self.assertEqual("os.environ['APP_ENV']", argument.get_string_value())
def test_value_placeholder_only(self):
argument = PrimitiveArgument("%foo.bar%")
self.assertEqual("self.__parameters.foo.bar", argument.get_string_value())
def test_env_placeholder(self):
argument = PrimitiveArgument("ahoj %env(APP_ENV)%")
self.assertEqual("'ahoj ' + os.environ['APP_ENV']", argument.get_string_value())
def test_value_placeholder(self):
argument = PrimitiveArgument("ahoj %foo.bar%")
self.assertEqual("'ahoj ' + self.__parameters.foo.bar", argument.get_string_value())
def test_placeholder_combination(self):
argument = PrimitiveArgument("ahoj %foo.bar% svete %env(APP_ENV)% novy")
self.assertEqual("'ahoj ' + self.__parameters.foo.bar + ' svete ' + os.environ['APP_ENV'] + ' novy'", argument.get_string_value())
def test_placeholder_combination2(self):
argument = PrimitiveArgument("%foo.bar% svete %env(APP_ENV)%")
self.assertEqual("self.__parameters.foo.bar + ' svete ' + os.environ['APP_ENV']", argument.get_string_value())
if __name__ == "__main__":
unittest.main()
| 32.916667
| 138
| 0.693165
| 220
| 1,975
| 5.940909
| 0.186364
| 0.210406
| 0.221882
| 0.168324
| 0.671002
| 0.531752
| 0.356542
| 0.288447
| 0.228003
| 0.166794
| 0
| 0.007975
| 0.174684
| 1,975
| 59
| 139
| 33.474576
| 0.793865
| 0
| 0
| 0
| 0
| 0.028571
| 0.215696
| 0.093165
| 0
| 0
| 0
| 0
| 0.285714
| 1
| 0.285714
| false
| 0
| 0.057143
| 0
| 0.371429
| 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
| 0
| 0
|
0
| 4
|
4fc00aad53bb327eec16e9d4a0ba2e38c7c07682
| 178
|
py
|
Python
|
xyz12/pf-fr/pf_fr/interface/auth_acl_processor_abc.py
|
problemfighter/pf-flask-react
|
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
|
[
"Apache-2.0"
] | 3
|
2021-11-22T07:57:23.000Z
|
2022-01-15T09:08:50.000Z
|
xyz12/pf-fr/pf_fr/interface/auth_acl_processor_abc.py
|
problemfighter/pf-flask-react
|
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
|
[
"Apache-2.0"
] | null | null | null |
xyz12/pf-fr/pf_fr/interface/auth_acl_processor_abc.py
|
problemfighter/pf-flask-react
|
ac38e3fa0fac0765eea7ec3c03937f93c55a9815
|
[
"Apache-2.0"
] | null | null | null |
from abc import abstractmethod, ABC
class AuthACLProcessorABC(ABC):
@abstractmethod
def process(self, url_info: dict, jwtPayload: dict, authInterceptor):
pass
| 19.777778
| 73
| 0.730337
| 19
| 178
| 6.789474
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.196629
| 178
| 8
| 74
| 22.25
| 0.902098
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
8b085c324bcb5f0d6bdfb123d1d72c9803280491
| 612
|
py
|
Python
|
MapAreaEval.py
|
hal-lab-u-tokyo/GenMap
|
4ee3eab31826115fe77abeec43df2149efef6279
|
[
"MIT"
] | null | null | null |
MapAreaEval.py
|
hal-lab-u-tokyo/GenMap
|
4ee3eab31826115fe77abeec43df2149efef6279
|
[
"MIT"
] | 2
|
2022-01-12T03:26:12.000Z
|
2022-01-17T01:21:25.000Z
|
MapAreaEval.py
|
hal-lab-u-tokyo/GenMap
|
4ee3eab31826115fe77abeec43df2149efef6279
|
[
"MIT"
] | 1
|
2022-01-07T08:03:36.000Z
|
2022-01-07T08:03:36.000Z
|
# This file is part of GenMap and released under the MIT License, see LICENSE.
# Author: Takuya Kojima
from EvalBase import EvalBase
from MapHeightEval import MapHeightEval
from MapWidthEval import MapWidthEval
class MapAreaEval(EvalBase):
def __init__(self):
pass
@staticmethod
def eval(CGRA, app, sim_params, individual):
return MapHeightEval.eval(CGRA, app, sim_params, individual) * \
MapWidthEval.eval(CGRA, app, sim_params, individual)
@staticmethod
def isMinimize():
return True
@staticmethod
def name():
return "Map_Area"
| 26.608696
| 79
| 0.694444
| 70
| 612
| 5.957143
| 0.571429
| 0.107914
| 0.079137
| 0.100719
| 0.215827
| 0.215827
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236928
| 612
| 23
| 80
| 26.608696
| 0.892934
| 0.161765
| 0
| 0.1875
| 0
| 0
| 0.015686
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.0625
| 0.1875
| 0.1875
| 0.6875
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 4
|
8c76e4f2864cafe27b24a8ba90d050cb182cf4a8
| 384
|
py
|
Python
|
mysite/account/models.py
|
PUNITKUMARGAUTAM/mydjango
|
5dd86a99bc0fae0cad712412d2de9c0c6cee6dcc
|
[
"MIT"
] | null | null | null |
mysite/account/models.py
|
PUNITKUMARGAUTAM/mydjango
|
5dd86a99bc0fae0cad712412d2de9c0c6cee6dcc
|
[
"MIT"
] | null | null | null |
mysite/account/models.py
|
PUNITKUMARGAUTAM/mydjango
|
5dd86a99bc0fae0cad712412d2de9c0c6cee6dcc
|
[
"MIT"
] | null | null | null |
from django.db import models
# Create your models here.
class Account(models.Model):
accountno = models.CharField(max_length = 300)
accountname = models.CharField(max_length = 50)
accountid = models.CharField(max_length = 50)
accounttype = models.CharField(max_length = 50)
accountbalance = models.CharField(max_length = 50)
class Meta:
db_table = "accounts"
| 32
| 54
| 0.734375
| 48
| 384
| 5.75
| 0.5
| 0.271739
| 0.326087
| 0.434783
| 0.376812
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034591
| 0.171875
| 384
| 12
| 55
| 32
| 0.833333
| 0.0625
| 0
| 0
| 0
| 0
| 0.022284
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.111111
| 0
| 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
| 0
| 1
| 0
|
0
| 4
|
8cc2ac1de1cf7197ee56d2508e3a1e26ba1d3a80
| 880
|
py
|
Python
|
platypush/message/event/path/__init__.py
|
shineit/platypush
|
a67b301cd66235b41bff6bfb3de56b903bf9551d
|
[
"MIT"
] | 1
|
2020-12-08T06:26:31.000Z
|
2020-12-08T06:26:31.000Z
|
platypush/message/event/path/__init__.py
|
shineit/platypush
|
a67b301cd66235b41bff6bfb3de56b903bf9551d
|
[
"MIT"
] | null | null | null |
platypush/message/event/path/__init__.py
|
shineit/platypush
|
a67b301cd66235b41bff6bfb3de56b903bf9551d
|
[
"MIT"
] | null | null | null |
from platypush.message.event import Event
class PathOpenEvent(Event):
def __init__(self, path, *args, **kwargs):
super().__init__(path=path, *args, **kwargs)
class PathCloseEvent(Event):
def __init__(self, path, *args, **kwargs):
super().__init__(path=path, *args, **kwargs)
class PathCreateEvent(Event):
def __init__(self, path, *args, **kwargs):
super().__init__(path=path, *args, **kwargs)
class PathDeleteEvent(Event):
def __init__(self, path, *args, **kwargs):
super().__init__(path=path, *args, **kwargs)
class PathModifyEvent(Event):
def __init__(self, path, *args, **kwargs):
super().__init__(path=path, *args, **kwargs)
class PathPermissionsChangeEvent(Event):
def __init__(self, path, umask, *args, **kwargs):
super().__init__(path=path, umask=umask, *args, **kwargs)
# vim:sw=4:ts=4:et:
| 28.387097
| 65
| 0.659091
| 105
| 880
| 5.066667
| 0.238095
| 0.225564
| 0.263158
| 0.180451
| 0.671053
| 0.633459
| 0.582707
| 0.582707
| 0.582707
| 0.582707
| 0
| 0.00274
| 0.170455
| 880
| 30
| 66
| 29.333333
| 0.726027
| 0.019318
| 0
| 0.526316
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.315789
| false
| 0
| 0.052632
| 0
| 0.684211
| 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
| 0
| 0
|
0
| 4
|
8cec4c381bd3a882fcea0bdb3ca91641d31a4274
| 245
|
py
|
Python
|
List/11_sort_list.py
|
manish1822510059/Python-1000-program
|
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
|
[
"Apache-2.0"
] | 1
|
2021-03-06T03:33:42.000Z
|
2021-03-06T03:33:42.000Z
|
List/11_sort_list.py
|
manish1822510059/Python-1000-programs
|
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
|
[
"Apache-2.0"
] | null | null | null |
List/11_sort_list.py
|
manish1822510059/Python-1000-programs
|
d03c1920fe63a7e32ac5bd9a13e2766d7a25756c
|
[
"Apache-2.0"
] | null | null | null |
mylist = ["Firefox","Chrome","Safari","Microsoft Edges","Brave"]
print("Unsorted List: ",mylist)
mylist.sort()
print("Sorted List in Increasing Order: ",mylist)
mylist.sort(reverse=True)
print("Sorted List in Decreasing Order: ",mylist)
| 40.833333
| 65
| 0.710204
| 31
| 245
| 5.612903
| 0.580645
| 0.137931
| 0.183908
| 0.195402
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118367
| 245
| 6
| 66
| 40.833333
| 0.805556
| 0
| 0
| 0
| 0
| 0
| 0.514523
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
8cf78673e703fa4dcc49124318ccd095e5630267
| 671
|
py
|
Python
|
books/urls.py
|
OdinGitDat/WhatManager2
|
ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9
|
[
"MIT"
] | 1
|
2018-03-23T13:11:30.000Z
|
2018-03-23T13:11:30.000Z
|
books/urls.py
|
SavageCore/WhatManager2
|
5a0fc5af8c9168fa199124aaa2aa56495dc0a40b
|
[
"MIT"
] | null | null | null |
books/urls.py
|
SavageCore/WhatManager2
|
5a0fc5af8c9168fa199124aaa2aa56495dc0a40b
|
[
"MIT"
] | null | null | null |
from django.conf.urls import patterns, url
urlpatterns = patterns(
'',
url(r'^uploads$', 'books.views.uploads'),
url(r'^uploads/new$', 'books.views.new_upload'),
url(r'^uploads/(\d+)/edit$', 'books.views.edit_upload'),
url(r'^uploads/(\d+)/cover$', 'books.views.upload_cover'),
url(r'^uploads/(\d+)/cover/upload$', 'books.views.upload_cover_upload'),
url(r'^uploads/(\d+)/generate_torrents$', 'books.views.upload_generate_torrents'),
url(r'^uploads/(\d+)/what/upload', 'books.views.upload_to_what'),
url(r'^uploads/(\d+)/what/skip', 'books.views.skip_what'),
url(r'^uploads/(\d+)/bibliotik/skip', 'books.views.skip_bibliotik'),
)
| 44.733333
| 86
| 0.657228
| 94
| 671
| 4.56383
| 0.244681
| 0.083916
| 0.230769
| 0.195804
| 0.298368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.102832
| 671
| 14
| 87
| 47.928571
| 0.712625
| 0
| 0
| 0
| 0
| 0
| 0.642325
| 0.551416
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.076923
| 0
| 0.076923
| 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
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
5078f8dd184f357fbe4a888f2bb05a23a7183c7b
| 24,611
|
py
|
Python
|
optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum2000/Output/Histos/MadAnalysis5job_0/selection_2.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum2000/Output/Histos/MadAnalysis5job_0/selection_2.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum2000/Output/Histos/MadAnalysis5job_0/selection_2.py
|
sheride/axion_pheno
|
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
|
[
"MIT"
] | null | null | null |
def selection_2():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.linspace(-3.2,3.2,65,endpoint=True)
# Creating data sequence: middle of each bin
xData = numpy.array([-3.15,-3.05,-2.95,-2.85,-2.75,-2.65,-2.55,-2.45,-2.35,-2.25,-2.15,-2.05,-1.95,-1.85,-1.75,-1.65,-1.55,-1.45,-1.35,-1.25,-1.15,-1.05,-0.95,-0.85,-0.75,-0.65,-0.55,-0.45,-0.35,-0.25,-0.15,-0.05,0.05,0.15,0.25,0.35,0.45,0.55,0.65,0.75,0.85,0.95,1.05,1.15,1.25,1.35,1.45,1.55,1.65,1.75,1.85,1.95,2.05,2.15,2.25,2.35,2.45,2.55,2.65,2.75,2.85,2.95,3.05,3.15])
# Creating weights for histo: y3_PHI_0
y3_PHI_0_weights = numpy.array([248.92038604,602.444482167,614.72667161,633.764255246,614.931471434,607.766677592,615.340871082,607.971477416,607.971477416,608.380877064,586.068096243,608.790276712,611.656074249,598.145685862,613.498472665,608.995076536,607.357277944,609.609076009,595.279888325,596.303287446,599.169284982,611.042074777,616.364270202,621.891265451,604.900880056,629.056059293,637.039452431,599.57868463,589.138693604,579.722301698,600.806883575,628.851259469,608.17607724,611.042074777,628.851259469,620.458466683,612.679673369,630.693657885,604.900880056,614.72667161,618.206668619,614.317271962,616.159670378,616.978469674,629.465458941,599.988084278,591.390491668,592.413890789,607.357277944,587.501095012,620.253666859,618.002068794,609.609076009,624.34786334,624.34786334,603.672681111,607.562077768,619.844267211,616.77366985,611.656074249,615.340871082,588.524494132,613.293872841,255.675580233])
# Creating weights for histo: y3_PHI_1
y3_PHI_1_weights = numpy.array([0.0,0.0,0.606204111962,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.608524689202,0.0,0.0,0.60876676669,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.606569232146,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y3_PHI_2
y3_PHI_2_weights = numpy.array([0.502662454363,1.50475879632,0.502662454363,0.0,0.0,2.01036202111,0.50093526308,1.50774068051,1.0034572282,1.50788447538,1.50810016769,0.501548663908,1.00306241211,0.0,1.00299567972,0.0,2.00765367774,1.00489786275,1.50459082903,1.5056940828,1.00335062166,0.503483490028,0.503014503878,0.501622214158,2.0119437647,1.00501252676,0.50093526308,2.508586255,0.501645973369,1.50435137752,1.00503215394,0.0,0.502286645638,1.50525711993,0.0,0.501704648288,1.00368263079,1.50531248922,1.00512967,0.50093526308,0.501704648288,1.00365866498,3.01207284405,1.00374109911,1.50491395429,1.00498132989,2.00767785015,0.0,0.501704648288,0.0,0.0,0.500768122201,1.00435491314,1.00227877137,1.00432309646,0.501497839858,1.00420078818,0.501548663908,0.501704648288,0.0,1.50498564513,1.50851337134,1.0039431557,0.501622214158])
# Creating weights for histo: y3_PHI_3
y3_PHI_3_weights = numpy.array([3.02282361831,6.05225501862,5.22555913029,4.95198720544,4.12626430437,6.60226907918,4.9477865005,4.40195892586,5.2260222641,4.94383564407,5.77461239131,5.22812871044,3.30272097603,4.67566288447,4.67893325921,4.12465958634,7.15164937768,5.22479536575,4.40173142153,3.02322581347,4.94974060019,5.7752603724,5.22180124628,4.9533197308,4.95068108684,4.40166235772,5.49853995013,3.57533616392,3.85093734613,6.87768947671,3.84819510645,4.40062436922,4.40100828277,3.57669712732,4.12576663865,6.60422114758,3.29770978692,5.22321705447,6.05068889507,5.49884058086,5.776763526,4.12705244437,4.94943996947,5.77251000756,5.22341408947,5.50194438992,3.30037280635,4.39941778376,5.22616851689,3.30113047701,5.2235704987,3.02107874136,4.40098390731,5.4942133053,4.67569741638,4.95339082591,3.30247925268,7.15127968315,2.19878262425,5.50266346611,4.12438942495,4.12540506927,3.85062249639,2.47331534863])
# Creating weights for histo: y3_PHI_4
y3_PHI_4_weights = numpy.array([1.62839752404,3.45351386234,3.05930463816,3.30589057757,2.71407670723,3.30595671434,3.84960898656,2.56540124656,4.29308409253,4.19381881205,3.35382771151,3.50383793246,3.30604489671,4.39058772993,3.15821718919,4.34164651956,3.35572162812,3.10861861941,3.20745701709,3.45378843015,3.35528472461,3.65200233626,3.60172235732,3.65084995313,2.96045221146,3.35516447593,3.79986010594,3.99709799364,3.7008754057,3.75056817028,3.40457666027,3.05943490756,3.0592164558,2.95999125821,3.45414316374,3.60147985583,3.84959896584,3.65002825386,3.05793981571,3.50302825805,3.55262482369,3.25692932577,3.84889751524,3.5021223847,3.30625934017,4.5399245583,4.24432525932,3.94850149615,4.48979489021,3.30654994114,3.7982126991,4.04525157519,3.89857224251,2.86226716491,3.89914743201,3.25604349387,3.3548798874,3.70021604214,3.20805625632,3.0594369117,3.15841760365,4.0954854588,3.25647839324,1.28327921982])
# Creating weights for histo: y3_PHI_5
y3_PHI_5_weights = numpy.array([0.504166439655,1.14705279602,1.20979859882,1.28565087854,1.28587974275,1.42433018386,1.27298972656,1.57557121325,1.08402711469,1.36120127357,1.05909211939,1.36144934316,1.1972534794,1.24799271386,1.222371326,1.49917898206,1.33584175917,1.47479714194,1.51262375387,1.66353609106,1.41197331724,1.43693351962,1.14679672418,1.34838227731,1.31081993951,1.44950544656,1.18466594807,1.37377300046,1.20992823519,1.29828702351,1.48692634468,1.37408728863,1.15952249428,1.07118551209,1.22252576932,1.235000469,1.19718686071,1.2099496412,1.13441064937,1.27304114099,1.37387102796,1.51234027435,1.29803015144,1.13465831885,1.31091376583,1.19717325689,1.37370918256,1.33607622495,1.298206801,1.42409811875,1.34900445185,1.22259498874,1.4998093589,1.17228447455,1.43691711501,1.26064986472,1.37389963599,1.41138375184,1.18453331086,1.22247635546,1.21016350119,1.34846770127,1.26035778278,0.516731564695])
# Creating weights for histo: y3_PHI_6
y3_PHI_6_weights = numpy.array([0.17200772147,0.472531750697,0.472265577727,0.57253431025,0.486574036901,0.329434862517,0.443903385662,0.57248282515,0.529530255497,0.558276436437,0.471810709365,0.415690750316,0.415360046021,0.372147601576,0.472104824249,0.415582031779,0.529724699226,0.429352146748,0.53022555428,0.501443383756,0.572652775966,0.401058734779,0.558232449167,0.601298485982,0.486574436785,0.444018852247,0.529196851983,0.529736195899,0.372172544357,0.601228506234,0.487155418651,0.429123962784,0.458541049565,0.501207452034,0.314353527011,0.528992411148,0.457888838313,0.501655322421,0.543690657518,0.472445175752,0.443583628199,0.572144922938,0.50075808208,0.48659498084,0.472240834888,0.60072115306,0.644548469563,0.414669145965,0.487257888996,0.514811515058,0.586907650647,0.400907078667,0.529689209496,0.672669331469,0.558473879297,0.544487926791,0.443565233522,0.64497284675,0.587070103634,0.572433839326,0.386841299263,0.372299657571,0.443776272448,0.314425806094])
# Creating weights for histo: y3_PHI_7
y3_PHI_7_weights = numpy.array([0.0151195756676,0.0507689332507,0.0377913273474,0.0421358177911,0.0367181495481,0.0345525784218,0.0367229272366,0.0313240973356,0.0507595664667,0.032385477597,0.0528404383962,0.0410297409965,0.0421208351276,0.039949354755,0.0291570174656,0.0442520404244,0.0496777553006,0.0313355176875,0.0646506747909,0.0399846635493,0.0518454428591,0.0334761945422,0.0441910410771,0.0324194662406,0.0366297623111,0.0409602340109,0.0378034811163,0.0442776052488,0.0529340014625,0.0367108782415,0.0432090584546,0.0485979767475,0.0701934639898,0.0410250890367,0.0496845656022,0.0518356569796,0.0388823376594,0.0367148806034,0.0516733203448,0.04859728524,0.059404689012,0.0452753249066,0.0496782372604,0.0399709381723,0.0442837659524,0.0540012700154,0.0475321750287,0.0367074207038,0.0345604155073,0.0399473850063,0.0356466481308,0.0497004493209,0.048606463431,0.0486047660943,0.0432158058919,0.0399601674184,0.045348561842,0.0432016614194,0.0539087965974,0.0398896126941,0.0550818448499,0.0410452475293,0.0410442207454,0.0129561545011])
# Creating weights for histo: y3_PHI_8
y3_PHI_8_weights = numpy.array([0.00284231555809,0.00141987004216,0.00283988782698,0.0,0.0,0.00426074009797,0.00567982688132,0.00141987004216,0.00284285010438,0.0070994986959,0.00568021368496,0.00141842453988,0.00850861841808,0.00566295080925,0.00709381394451,0.00568160870231,0.0014214632871,0.00141842453988,0.00426029241544,0.00425645036393,0.00709284359449,0.00567871695533,0.00425579331744,0.00284087005581,0.0,0.00852034873961,0.00568069700391,0.00283789812688,0.0028429265742,0.00992946474966,0.00141842453988,0.00709388150522,0.00284133407169,0.00425671912193,0.00709699375255,0.00424899492793,0.0085209649527,0.00992482459083,0.00710035916695,0.00426537209012,0.0,0.00566143403413,0.00561239460831,0.00709025921163,0.00425816462421,0.00567763895363,0.00142244551592,0.00283736358058,0.00567132759519,0.00426635431894,0.00841321675248,0.0,0.00141749353842,0.00709521935582,0.00283789812688,0.00141842453988,0.00568379663001,0.00141987004216,0.00986619525595,0.00562035192389,0.00568114468643,0.00993119460087,0.00560041260457,0.00284231555809])
# Creating weights for histo: y3_PHI_9
y3_PHI_9_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y3_PHI_10
y3_PHI_10_weights = numpy.array([0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,52.64790836,52.7314194359,0.0,0.0,0.0,0.0,0.0,0.0,52.6056914349,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0])
# Creating weights for histo: y3_PHI_11
y3_PHI_11_weights = numpy.array([0.0,0.0,34.5524771328,0.0,34.5368181327,11.4991261958,11.5093131919,11.5180092207,11.528455599,34.5932097465,11.5232660335,11.5180092207,23.0386161061,34.5613729819,23.0055496777,11.5010091185,23.0505092608,23.0508358903,34.5174893547,0.0,0.0,23.071778602,11.5322617928,0.0,0.0,11.5309840952,0.0,0.0,11.4991261958,11.5010091185,46.085225027,11.5309840952,23.0308730668,23.0171354164,34.5247136296,0.0,11.5322617928,11.5180092207,0.0,0.0,11.528455599,45.9753814644,57.5727443493,0.0,11.5182378613,11.5093131919,11.5275640927,0.0,11.5214138523,46.1004613302,23.0659184854,0.0,11.4991261958,0.0,34.5452528579,0.0,11.5057068185,11.5093131919,11.5214138523,0.0,0.0,0.0,69.1132737098,0.0])
# Creating weights for histo: y3_PHI_12
y3_PHI_12_weights = numpy.array([4.15587258556,16.6233307019,16.6073916724,13.8494606438,6.92596513026,11.0748962463,15.2313150711,12.4612936914,6.92503421554,11.0839880519,6.92165099447,12.4658540195,6.91427484168,11.0874385912,8.31272224691,5.53841173531,8.31061037839,6.91335162047,11.0780505855,11.0663929943,6.91793310572,4.15337604154,8.31452060489,11.0701031896,15.2300302549,13.846756375,9.6988773464,9.69131654936,8.31675364619,15.234269379,5.54270471394,13.8392917468,9.68860458705,8.29797378807,8.31281072227,8.29744678263,11.089694713,16.614119647,5.53939265785,4.15182964601,13.8445194869,5.53938688771,2.76641312349,12.4607051379,8.30491141079,12.4610071081,12.4623573192,11.0737345263,5.53819439365,11.07824677,2.77160047267,9.69636349197,9.68103417313,13.8457716057,13.8409054606,4.15463200706,2.77447976882,12.4607993834,15.2341078153,8.30800612522,6.9135285712,11.0715611097,5.52967960136,4.14944465789])
# Creating weights for histo: y3_PHI_13
y3_PHI_13_weights = numpy.array([2.01590994511,3.02291271338,3.52392662311,4.54059435597,3.02035165404,3.02179027754,1.51140977818,3.02548439323,5.5478189411,1.51373688293,3.52859357722,4.03240310777,1.51258622689,4.03235152245,3.52774090225,3.5256865928,2.01841122618,3.53010472361,2.01899171273,2.52142543249,1.51464599831,1.5130092265,4.53652821909,2.5215537889,1.51299526812,2.0161375274,2.01525208058,5.03898439364,2.52157594025,3.02107263472,3.52477929808,2.52011364819,3.02524770765,1.51351142475,2.02013933435,3.02865901442,3.52289188231,4.03062796593,2.01634872376,4.03478210128,2.01837147514,5.04285632696,1.01000442692,3.52585955534,4.02989363375,4.036126354,1.00702582994,3.53023520412,1.51328141492,3.0261580368,2.52118055395,3.02531112725,3.02543918022,3.52934915042,1.5107846855,1.51231980389,2.51962085667,2.52294962693,4.53572409501,1.51226306004,1.51137791666,2.52165604921,3.02265600056,1.5117714823])
# Creating weights for histo: y3_PHI_14
y3_PHI_14_weights = numpy.array([0.706820087298,1.41455201906,0.849118610677,0.849428714745,0.989912975427,1.27354123553,1.27321939676,1.41466898139,0.424798904977,0.990821549568,1.13070522408,1.13112863541,1.55583000765,0.991332105521,0.424373185186,0.565939347406,1.27221001956,1.55566168193,1.27353488725,0.282364374416,1.55552240442,1.27349622042,1.27309146921,1.13259643568,0.84801458633,1.13232980774,1.6967678821,1.55608720935,1.13087489641,1.69748158315,0.566639774771,1.41391372794,0.990965251639,1.98082628656,1.13183329496,0.849393702995,0.848065372604,0.566387767123,1.27315129698,1.6985384763,2.12108874204,1.13209492122,2.54484248857,1.13158975169,1.69801984071,1.13177058161,0.566093629952,0.849353497195,0.990122276436,0.9902507811,0.849000686487,1.41414399752,1.131428159,0.848239854235,0.84889238091,0.990777881067,0.990223271868,0.989840066344,1.13163784475,1.41480287248,0.989984922649,1.13020582572,1.84003903958,0.848067296326])
# Creating weights for histo: y3_PHI_15
y3_PHI_15_weights = numpy.array([0.0,0.152268064237,0.22927188165,0.0,0.076814773478,0.228323175387,0.151357060391,0.230187376692,0.0,0.151782660397,0.0762479962411,0.152830350277,0.0,0.22982246694,0.0,0.0,0.0754248071148,0.0,0.076814773478,0.0755578292772,0.0760474879349,0.0760474879349,0.1515062745,0.0760814673855,0.0,0.0,0.0,0.0,0.0760474879349,0.0,0.0762479962411,0.15084961423,0.152143906279,0.152165830411,0.151365747311,0.0,0.0,0.0,0.15223426207,0.0760474879349,0.152714288292,0.0766668003573,0.0758637034278,0.0758637034278,0.0,0.0,0.0,0.227761716673,0.227932204873,0.0761303386998,0.0,0.0766668003573,0.153433116184,0.152864329727,0.0,0.0,0.152658030141,0.0762248311199,0.152608626974,0.0756327022581,0.0763222191803,0.0769107432656,0.0754248071148,0.0])
# Creating weights for histo: y3_PHI_16
y3_PHI_16_weights = numpy.array([0.0,0.0180253496503,0.0180328991931,0.0180467932778,0.0,0.0180445411194,0.0,0.0,0.00903130710453,0.0,0.0,0.00903834846803,0.0,0.0090077287389,0.0180268722633,0.0,0.0,0.00903130710453,0.0,0.00904851205449,0.0,0.00905842155128,0.0,0.0,0.00903063915671,0.00903671613445,0.0180308183528,0.0180687547092,0.0,0.00903430228266,0.0271087297361,0.0180578538778,0.00901015029037,0.00904851205449,0.00903834846803,0.009000181121,0.0180580251958,0.018038529589,0.0180697883922,0.00903775174231,0.0,0.00902765167827,0.00903130710453,0.0,0.00902765167827,0.0,0.0,0.0,0.0,0.00903203857477,0.0,0.00901015029037,0.0,0.0,0.0,0.00903130710453,0.00903285666648,0.0271342926959,0.00903285666648,0.0,0.00899993473103,0.0180686141899,0.0,0.0090251685293])
# Creating a new Canvas
fig = plt.figure(figsize=(12,6),dpi=80)
frame = gridspec.GridSpec(1,1,right=0.7)
pad = fig.add_subplot(frame[0])
# Creating a new Stack
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights+y3_PHI_14_weights+y3_PHI_15_weights+y3_PHI_16_weights,\
label="$bg\_dip\_1600\_inf$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#e5e5e5", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights+y3_PHI_14_weights+y3_PHI_15_weights,\
label="$bg\_dip\_1200\_1600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#f2f2f2", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights+y3_PHI_14_weights,\
label="$bg\_dip\_800\_1200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#ccc6aa", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights,\
label="$bg\_dip\_600\_800$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#ccc6aa", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights,\
label="$bg\_dip\_400\_600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#c1bfa8", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights,\
label="$bg\_dip\_200\_400$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#bab5a3", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights,\
label="$bg\_dip\_100\_200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#b2a596", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights,\
label="$bg\_dip\_0\_100$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#b7a39b", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights,\
label="$bg\_vbf\_1600\_inf$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#ad998c", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights,\
label="$bg\_vbf\_1200\_1600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#9b8e82", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights,\
label="$bg\_vbf\_800\_1200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#876656", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights,\
label="$bg\_vbf\_600\_800$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#afcec6", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights,\
label="$bg\_vbf\_400\_600$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#84c1a3", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights,\
label="$bg\_vbf\_200\_400$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#89a8a0", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights,\
label="$bg\_vbf\_100\_200$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#829e8c", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights+y3_PHI_1_weights,\
label="$bg\_vbf\_0\_100$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#adbcc6", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
pad.hist(x=xData, bins=xBinning, weights=y3_PHI_0_weights,\
label="$signal$", histtype="step", rwidth=1.0,\
color=None, edgecolor="#7a8e99", linewidth=1, linestyle="solid",\
bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical")
# Axis
plt.rc('text',usetex=False)
plt.xlabel(r"\phi [ j_{1} ] ",\
fontsize=16,color="black")
plt.ylabel(r"$\mathrm{Events}$ $(\mathcal{L}_{\mathrm{int}} = 2000.0\ \mathrm{fb}^{-1})$ ",\
fontsize=16,color="black")
# Boundary of y-axis
ymax=(y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights+y3_PHI_14_weights+y3_PHI_15_weights+y3_PHI_16_weights).max()*1.1
ymin=0 # linear scale
#ymin=min([x for x in (y3_PHI_0_weights+y3_PHI_1_weights+y3_PHI_2_weights+y3_PHI_3_weights+y3_PHI_4_weights+y3_PHI_5_weights+y3_PHI_6_weights+y3_PHI_7_weights+y3_PHI_8_weights+y3_PHI_9_weights+y3_PHI_10_weights+y3_PHI_11_weights+y3_PHI_12_weights+y3_PHI_13_weights+y3_PHI_14_weights+y3_PHI_15_weights+y3_PHI_16_weights) if x])/100. # log scale
plt.gca().set_ylim(ymin,ymax)
# Log/Linear scale for X-axis
plt.gca().set_xscale("linear")
#plt.gca().set_xscale("log",nonposx="clip")
# Log/Linear scale for Y-axis
plt.gca().set_yscale("linear")
#plt.gca().set_yscale("log",nonposy="clip")
# Legend
plt.legend(bbox_to_anchor=(1.05,1), loc=2, borderaxespad=0.)
# Saving the image
plt.savefig('../../HTML/MadAnalysis5job_0/selection_2.png')
plt.savefig('../../PDF/MadAnalysis5job_0/selection_2.png')
plt.savefig('../../DVI/MadAnalysis5job_0/selection_2.eps')
# Running!
if __name__ == '__main__':
selection_2()
| 126.860825
| 1,056
| 0.778473
| 4,091
| 24,611
| 4.504767
| 0.240039
| 0.055782
| 0.073091
| 0.085951
| 0.35672
| 0.347333
| 0.326605
| 0.319279
| 0.312768
| 0.309404
| 0
| 0.51287
| 0.067043
| 24,611
| 193
| 1,057
| 127.518135
| 0.289752
| 0.053513
| 0
| 0.185841
| 0
| 0.00885
| 0.044286
| 0.008599
| 0
| 0
| 0
| 0
| 0
| 1
| 0.00885
| false
| 0
| 0.035398
| 0
| 0.044248
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
508892e53e3d44dad0c92251e574ecfa9c71280d
| 72
|
py
|
Python
|
moltin/url.py
|
YuraHavrylko/python-sdk
|
899886e54bfcb6c0fb918a9a65a3f1ccefe7d96b
|
[
"MIT"
] | 8
|
2015-06-12T21:40:40.000Z
|
2019-01-25T02:57:30.000Z
|
moltin/url.py
|
YuraHavrylko/python-sdk
|
899886e54bfcb6c0fb918a9a65a3f1ccefe7d96b
|
[
"MIT"
] | 9
|
2016-02-12T17:19:38.000Z
|
2018-10-09T01:51:31.000Z
|
moltin/url.py
|
YuraHavrylko/python-sdk
|
899886e54bfcb6c0fb918a9a65a3f1ccefe7d96b
|
[
"MIT"
] | 14
|
2016-02-11T22:14:13.000Z
|
2020-09-07T18:19:31.000Z
|
def sanitize_url_fragment(fragment):
return fragment.strip("/ ")
| 36
| 36
| 0.708333
| 8
| 72
| 6.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 72
| 2
| 37
| 36
| 0.816667
| 0
| 0
| 0
| 0
| 0
| 0.027397
| 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
| 0
| 0
|
0
| 4
|
50928593a7ed717c583d4643bcad78d4b4867b87
| 211
|
py
|
Python
|
ats/admin.py
|
bitrecruiter/ats_project
|
cf363d6163a2b9369839b476b60908f2982f80b3
|
[
"WTFPL"
] | null | null | null |
ats/admin.py
|
bitrecruiter/ats_project
|
cf363d6163a2b9369839b476b60908f2982f80b3
|
[
"WTFPL"
] | null | null | null |
ats/admin.py
|
bitrecruiter/ats_project
|
cf363d6163a2b9369839b476b60908f2982f80b3
|
[
"WTFPL"
] | 3
|
2016-07-20T11:17:37.000Z
|
2018-12-31T06:00:27.000Z
|
from django.contrib import admin
from ats.models import Job
class JobAdmin(admin.ModelAdmin):
# ...
list_display = ('company', 'job_title', 'location', 'created_at')
admin.site.register(Job, JobAdmin)
| 23.444444
| 69
| 0.720379
| 27
| 211
| 5.518519
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14218
| 211
| 8
| 70
| 26.375
| 0.823204
| 0.014218
| 0
| 0
| 0
| 0
| 0.165049
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
50ab328a4f2f6bf029a234d71f48a4b79216ca09
| 33
|
py
|
Python
|
ibsng/handler/bw/__init__.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 6
|
2018-03-06T10:16:36.000Z
|
2021-12-05T12:43:10.000Z
|
ibsng/handler/bw/__init__.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 3
|
2018-03-06T10:27:08.000Z
|
2022-01-02T15:21:27.000Z
|
ibsng/handler/bw/__init__.py
|
ParspooyeshFanavar/pyibsng
|
d48bcf4f25e3f23461528bf0ff8870cc3d537444
|
[
"MIT"
] | 3
|
2018-01-06T16:28:31.000Z
|
2018-09-17T19:47:19.000Z
|
"""Bandwidth handler library."""
| 16.5
| 32
| 0.69697
| 3
| 33
| 7.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.090909
| 33
| 1
| 33
| 33
| 0.766667
| 0.787879
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
50c64fb772dfdcc42485cb601f2f4f1172dbc30b
| 452
|
py
|
Python
|
readvol.py
|
kvchen/snowsim
|
09a75f24e86cc340ed327074904255fb08a3e7eb
|
[
"MIT"
] | null | null | null |
readvol.py
|
kvchen/snowsim
|
09a75f24e86cc340ed327074904255fb08a3e7eb
|
[
"MIT"
] | 1
|
2017-08-14T16:38:11.000Z
|
2017-08-14T16:38:11.000Z
|
readvol.py
|
kvchen/snowsim
|
09a75f24e86cc340ed327074904255fb08a3e7eb
|
[
"MIT"
] | null | null | null |
import struct
def main():
with open("smoke.vol", "rb") as infile:
data = infile.read()
print(data[2])
print(struct.unpack("<f", data[24:28]))
print(struct.unpack("<f", data[28:32]))
print(struct.unpack("<f", data[32:36]))
print(struct.unpack("<f", data[36:40]))
print(struct.unpack("<f", data[40:44]))
print(struct.unpack("<f", data[44:48]))
if __name__ == "__main__":
main()
| 25.111111
| 47
| 0.54646
| 63
| 452
| 3.793651
| 0.412698
| 0.276151
| 0.426778
| 0.451883
| 0.552301
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072254
| 0.234513
| 452
| 17
| 48
| 26.588235
| 0.618497
| 0
| 0
| 0
| 0
| 0
| 0.068584
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.076923
| false
| 0
| 0.076923
| 0
| 0.153846
| 0.538462
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
50c98b0d484e83f3da293b6616b40dde21bff508
| 48
|
py
|
Python
|
pawan/lib/python3.6/io.py
|
pawannn29/projectdjango
|
a2c269b99676109a9a28f1ff3bc26b3d7779056c
|
[
"bzip2-1.0.6"
] | null | null | null |
pawan/lib/python3.6/io.py
|
pawannn29/projectdjango
|
a2c269b99676109a9a28f1ff3bc26b3d7779056c
|
[
"bzip2-1.0.6"
] | null | null | null |
pawan/lib/python3.6/io.py
|
pawannn29/projectdjango
|
a2c269b99676109a9a28f1ff3bc26b3d7779056c
|
[
"bzip2-1.0.6"
] | null | null | null |
/Users/NikhilArora/anaconda3/lib/python3.6/io.py
| 48
| 48
| 0.833333
| 8
| 48
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 0
| 48
| 1
| 48
| 48
| 0.770833
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
50db8b82689cb49216081b11abe0aca6efe4a8ae
| 1,881
|
py
|
Python
|
DailyProgrammer/DP20130107A.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | 2
|
2020-12-23T18:59:22.000Z
|
2021-04-14T13:16:09.000Z
|
DailyProgrammer/DP20130107A.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
DailyProgrammer/DP20130107A.py
|
DayGitH/Python-Challenges
|
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
|
[
"MIT"
] | null | null | null |
"""
[01/07/13] Challenge #116 [Easy] Permutation of a string
https://www.reddit.com/r/dailyprogrammer/comments/164zvs/010713_challenge_116_easy_permutation_of_a_string/
# [](#EasyIcon) *(Easy)*: Permutation of a string
Write a function that prints all of the permutatons of the unique characters of a given string. For example,
permute("baz") would print:
baz
bza
abz
azb
zba
zab
Find all the permutations of daily.
*Author: skeeto*
# Formal Inputs & Outputs
## Input Description
Your function should accept a single string variable which is guaranteed to be at least 1 character long.
## Output Description
Print all permutations of the given string variable.
# Sample Inputs & Outputs
## Sample Input
Let the string argument be "ab"
## Sample Output
All permutations of "ab" would be ["ab", "ba"]
# Challenge Input
Let the string argument be "abbccc"
## Challenge Input Solution
abbccc abcbcc abccbc abcccb acbbcc acbcbc acbccb accbbc accbcb acccbb babccc bacbcc baccbc bacccb bbaccc bbcacc bbccac
bbccca bcabcc bcacbc bcaccb bcbacc bcbcac bcbcca bccabc bccacb bccbac bccbca bcccab bcccba cabbcc cabcbc cabccb cacbbc
cacbcb caccbb cbabcc cbacbc cbaccb cbbacc cbbcac cbbcca cbcabc cbcacb cbcbac cbcbca cbccab cbccba ccabbc ccabcb ccacbb
ccbabc ccbacb ccbbac ccbbca ccbcab ccbcba cccabb cccbab cccbba
# Note
* Bonus 1: Instead of printing, be functional. Return a collection (array, etc.) of the permutations.
* Bonus 2: Correctly handle the case when the input contains a character multiple times. That is, don't output repeats
and ensure the output contains the same number of characters as the input. For example, there are three permutations of
foo: foo, ofo, oof.
* Note that this challenge is a near-duplicate of challenge #12, hence why there is the above "bonus" challenges
"""
def main():
pass
if __name__ == "__main__":
main()
| 37.62
| 119
| 0.76874
| 280
| 1,881
| 5.110714
| 0.632143
| 0.008386
| 0.035639
| 0.037736
| 0.104822
| 0.08805
| 0.050314
| 0
| 0
| 0
| 0
| 0.016677
| 0.171186
| 1,881
| 49
| 120
| 38.387755
| 0.901219
| 0.959064
| 0
| 0
| 0
| 0
| 0.125
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
50f15229df9005e82454e12d67372b98c711ab98
| 91
|
py
|
Python
|
tests/__init__.py
|
vyahello/pytest-confluence-report
|
61069ee4e5f46a4535a71b5877a8e4b2ddf3b921
|
[
"MIT"
] | 5
|
2021-01-29T18:13:06.000Z
|
2021-11-17T06:49:27.000Z
|
tests/__init__.py
|
utestpy/pytest-confluence-report
|
c50e3c57776c8292fd0e097e8d2f858d730b9130
|
[
"MIT"
] | 18
|
2020-10-02T19:52:03.000Z
|
2022-02-03T12:06:04.000Z
|
tests/__init__.py
|
utestpy/pytest-confluence-report
|
c50e3c57776c8292fd0e097e8d2f858d730b9130
|
[
"MIT"
] | 3
|
2020-10-19T10:43:38.000Z
|
2022-02-02T21:17:01.000Z
|
"""Package contains a set of interfaces to test `pytest confluence report` application."""
| 45.5
| 90
| 0.769231
| 12
| 91
| 5.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131868
| 91
| 1
| 91
| 91
| 0.886076
| 0.923077
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0fdf5adb776d6cf33eea8ed1a37c60a95a77b066
| 197
|
py
|
Python
|
raytrace3/mat.py
|
fijal/graphic-experiments
|
4ea57bfbf07631a3584099f07a355adbbf36e750
|
[
"MIT"
] | null | null | null |
raytrace3/mat.py
|
fijal/graphic-experiments
|
4ea57bfbf07631a3584099f07a355adbbf36e750
|
[
"MIT"
] | null | null | null |
raytrace3/mat.py
|
fijal/graphic-experiments
|
4ea57bfbf07631a3584099f07a355adbbf36e750
|
[
"MIT"
] | null | null | null |
class Material(object):
def __init__(self, diffuse_color, mirror=0.05, softness=0.03):
self.diffuse_color = diffuse_color
self.mirror = mirror
self.softness = softness
| 28.142857
| 66
| 0.675127
| 25
| 197
| 5.04
| 0.52
| 0.285714
| 0.253968
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.039474
| 0.228426
| 197
| 6
| 67
| 32.833333
| 0.789474
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ba115f22b471d4232c227650d03989734c501ccb
| 1,432
|
py
|
Python
|
thirdparty/org/apache/arrow/flatbuf/Buffer.py
|
mrocklin/pygdf
|
2de9407427da9497ebdf8951a12857be0fab31bb
|
[
"Apache-2.0"
] | 5
|
2019-01-15T12:31:49.000Z
|
2021-03-05T21:17:13.000Z
|
thirdparty/org/apache/arrow/flatbuf/Buffer.py
|
mrocklin/pygdf
|
2de9407427da9497ebdf8951a12857be0fab31bb
|
[
"Apache-2.0"
] | 19
|
2018-07-18T07:15:44.000Z
|
2021-02-22T17:00:18.000Z
|
thirdparty/org/apache/arrow/flatbuf/Buffer.py
|
mrocklin/pygdf
|
2de9407427da9497ebdf8951a12857be0fab31bb
|
[
"Apache-2.0"
] | 2
|
2020-05-01T09:54:34.000Z
|
2021-04-17T10:57:07.000Z
|
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: flatbuf
import flatbuffers
# /// ----------------------------------------------------------------------
# /// A Buffer represents a single contiguous memory segment
class Buffer(object):
__slots__ = ['_tab']
# Buffer
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# /// The shared memory page id where this buffer is located. Currently this is
# /// not used
# Buffer
def Page(self): return self._tab.Get(flatbuffers.number_types.Int32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
# /// The relative offset into the shared memory page where the bytes for this
# /// buffer starts
# Buffer
def Offset(self): return self._tab.Get(flatbuffers.number_types.Int64Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(8))
# /// The absolute length (in bytes) of the memory buffer. The memory is found
# /// from offset (inclusive) to offset + length (non-inclusive).
# Buffer
def Length(self): return self._tab.Get(flatbuffers.number_types.Int64Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(16))
def CreateBuffer(builder, page, offset, length):
builder.Prep(8, 24)
builder.PrependInt64(length)
builder.PrependInt64(offset)
builder.Pad(4)
builder.PrependInt32(page)
return builder.Offset()
| 39.777778
| 147
| 0.692737
| 181
| 1,432
| 5.364641
| 0.403315
| 0.050463
| 0.135942
| 0.052523
| 0.30793
| 0.30793
| 0.30793
| 0.30793
| 0.264676
| 0.212152
| 0
| 0.016502
| 0.153631
| 1,432
| 35
| 148
| 40.914286
| 0.784653
| 0.400838
| 0
| 0
| 1
| 0
| 0.004745
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.066667
| 0.2
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
ba2b3fd0141de5eea5aa55de2d5b5a870fc74919
| 226
|
py
|
Python
|
asgi_websub/exceptions.py
|
Kludex/fastapi-websub
|
1e109545e9ae26f9e36f10252ed321c41053224e
|
[
"MIT"
] | 1
|
2021-02-10T13:01:17.000Z
|
2021-02-10T13:01:17.000Z
|
asgi_websub/exceptions.py
|
Kludex/fastapi-websub
|
1e109545e9ae26f9e36f10252ed321c41053224e
|
[
"MIT"
] | null | null | null |
asgi_websub/exceptions.py
|
Kludex/fastapi-websub
|
1e109545e9ae26f9e36f10252ed321c41053224e
|
[
"MIT"
] | null | null | null |
class ASGIWebSubException(Exception):
...
class HubNotFoundException(ASGIWebSubException):
...
class TopicNotFoundException(ASGIWebSubException):
...
class SubscriptionException(ASGIWebSubException):
...
| 15.066667
| 50
| 0.743363
| 12
| 226
| 14
| 0.5
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150442
| 226
| 14
| 51
| 16.142857
| 0.875
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0.5
| 0
| 1
| 0
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ba2ce86e286451be55a57b1a59a5d7516ef19433
| 5,765
|
py
|
Python
|
scanpy/tests/test_metrics.py
|
PauBadiaM/scanpy
|
560bd5d348a502d5152eaf20f5f8bef794562a97
|
[
"BSD-3-Clause"
] | null | null | null |
scanpy/tests/test_metrics.py
|
PauBadiaM/scanpy
|
560bd5d348a502d5152eaf20f5f8bef794562a97
|
[
"BSD-3-Clause"
] | null | null | null |
scanpy/tests/test_metrics.py
|
PauBadiaM/scanpy
|
560bd5d348a502d5152eaf20f5f8bef794562a97
|
[
"BSD-3-Clause"
] | null | null | null |
from operator import eq
from string import ascii_letters
import numpy as np
import pandas as pd
import scanpy as sc
from scipy import sparse
def test_gearys_c_consistency():
pbmc = sc.datasets.pbmc68k_reduced()
pbmc.layers["raw"] = pbmc.raw.X.copy()
g = pbmc.obsp["connectivities"]
assert eq(
sc.metrics.gearys_c(g, pbmc.obs["percent_mito"]),
sc.metrics.gearys_c(pbmc, vals=pbmc.obs["percent_mito"]),
)
assert eq( # Test that series and vectors return same value
sc.metrics.gearys_c(g, pbmc.obs["percent_mito"]),
sc.metrics.gearys_c(g, pbmc.obs["percent_mito"].values),
)
np.testing.assert_array_equal(
sc.metrics.gearys_c(pbmc, obsm="X_pca"),
sc.metrics.gearys_c(g, pbmc.obsm["X_pca"].T),
)
all_genes = sc.metrics.gearys_c(pbmc, layer="raw")
first_gene = sc.metrics.gearys_c(
pbmc, vals=pbmc.obs_vector(pbmc.var_names[0], layer="raw")
)
np.testing.assert_allclose(all_genes[0], first_gene)
# Test that results are similar for sparse and dense reps of same data
np.testing.assert_allclose(
sc.metrics.gearys_c(pbmc, layer="raw"),
sc.metrics.gearys_c(pbmc, vals=pbmc.layers["raw"].T.toarray()),
)
def test_gearys_c_correctness():
# Test case with perfectly seperated groups
connected = np.zeros(100)
connected[np.random.choice(100, size=30, replace=False)] = 1
graph = np.zeros((100, 100))
graph[np.ix_(connected.astype(bool), connected.astype(bool))] = 1
graph[np.ix_(~connected.astype(bool), ~connected.astype(bool))] = 1
graph = sparse.csr_matrix(graph)
assert sc.metrics.gearys_c(graph, connected) == 0.0
assert eq(
sc.metrics.gearys_c(graph, connected),
sc.metrics.gearys_c(graph, sparse.csr_matrix(connected)),
)
# Check for anndata > 0.7
if hasattr(sc.AnnData, "obsp"):
# Checking that obsp works
adata = sc.AnnData(
sparse.csr_matrix((100, 100)), obsp={"connectivities": graph}
)
assert sc.metrics.gearys_c(adata, vals=connected) == 0.0
def test_morans_i_consistency():
pbmc = sc.datasets.pbmc68k_reduced()
pbmc.layers["raw"] = pbmc.raw.X.copy()
g = pbmc.obsp["connectivities"]
assert eq(
sc.metrics.morans_i(g, pbmc.obs["percent_mito"]),
sc.metrics.morans_i(pbmc, vals=pbmc.obs["percent_mito"]),
)
assert eq( # Test that series and vectors return same value
sc.metrics.morans_i(g, pbmc.obs["percent_mito"]),
sc.metrics.morans_i(g, pbmc.obs["percent_mito"].values),
)
np.testing.assert_array_equal(
sc.metrics.morans_i(pbmc, obsm="X_pca"),
sc.metrics.morans_i(g, pbmc.obsm["X_pca"].T),
)
all_genes = sc.metrics.morans_i(pbmc, layer="raw")
first_gene = sc.metrics.morans_i(
pbmc, vals=pbmc.obs_vector(pbmc.var_names[0], layer="raw")
)
np.testing.assert_allclose(all_genes[0], first_gene, rtol=1e-5)
# Test that results are similar for sparse and dense reps of same data
np.testing.assert_allclose(
sc.metrics.morans_i(pbmc, layer="raw"),
sc.metrics.morans_i(pbmc, vals=pbmc.layers["raw"].T.toarray()),
)
def test_morans_i_correctness():
# Test case with perfectly seperated groups
connected = np.zeros(100)
connected[np.random.choice(100, size=50, replace=False)] = 1
graph = np.zeros((100, 100))
graph[np.ix_(connected.astype(bool), connected.astype(bool))] = 1
graph[np.ix_(~connected.astype(bool), ~connected.astype(bool))] = 1
graph = sparse.csr_matrix(graph)
assert sc.metrics.morans_i(graph, connected) == 1.0
assert eq(
sc.metrics.morans_i(graph, connected),
sc.metrics.morans_i(graph, sparse.csr_matrix(connected)),
)
# Check for anndata > 0.7
if hasattr(sc.AnnData, "obsp"):
# Checking that obsp works
adata = sc.AnnData(
sparse.csr_matrix((100, 100)), obsp={"connectivities": graph}
)
assert sc.metrics.morans_i(adata, vals=connected) == 1.0
def test_confusion_matrix():
mtx = sc.metrics.confusion_matrix(["a", "b"], ["c", "d"], normalize=False)
assert mtx.loc["a", "c"] == 1
assert mtx.loc["a", "d"] == 0
assert mtx.loc["b", "d"] == 1
assert mtx.loc["b", "c"] == 0
mtx = sc.metrics.confusion_matrix(["a", "b"], ["c", "d"], normalize=True)
assert mtx.loc["a", "c"] == 1.0
assert mtx.loc["a", "d"] == 0.0
assert mtx.loc["b", "d"] == 1.0
assert mtx.loc["b", "c"] == 0.0
mtx = sc.metrics.confusion_matrix(
["a", "a", "b", "b"], ["c", "d", "c", "d"], normalize=True
)
assert np.all(mtx == 0.5)
def test_confusion_matrix_randomized():
chars = np.array(list(ascii_letters))
pos = np.random.choice(len(chars), size=np.random.randint(50, 150))
a = chars[pos]
b = np.random.permutation(chars)[pos]
df = pd.DataFrame({"a": a, "b": b})
pd.testing.assert_frame_equal(
sc.metrics.confusion_matrix("a", "b", df),
sc.metrics.confusion_matrix(df["a"], df["b"]),
)
pd.testing.assert_frame_equal(
sc.metrics.confusion_matrix(df["a"].values, df["b"].values),
sc.metrics.confusion_matrix(a, b),
)
def test_confusion_matrix_api():
data = pd.DataFrame(
{"a": np.random.randint(5, size=100), "b": np.random.randint(5, size=100)}
)
expected = sc.metrics.confusion_matrix(data["a"], data["b"])
pd.testing.assert_frame_equal(expected, sc.metrics.confusion_matrix("a", "b", data))
pd.testing.assert_frame_equal(
expected, sc.metrics.confusion_matrix("a", data["b"], data)
)
pd.testing.assert_frame_equal(
expected, sc.metrics.confusion_matrix(data["a"], "b", data)
)
| 32.942857
| 88
| 0.636427
| 839
| 5,765
| 4.235995
| 0.152563
| 0.098762
| 0.059088
| 0.063028
| 0.862409
| 0.841306
| 0.734102
| 0.669387
| 0.660383
| 0.640124
| 0
| 0.020639
| 0.201561
| 5,765
| 174
| 89
| 33.132184
| 0.751466
| 0.071639
| 0
| 0.320611
| 0
| 0
| 0.04868
| 0
| 0
| 0
| 0
| 0
| 0.229008
| 1
| 0.053435
| false
| 0
| 0.045802
| 0
| 0.099237
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8719aaa09b989ec835dc6c2c3335ffb6ccfae8b
| 229
|
py
|
Python
|
visitor_manage/src/admin.py
|
parth-27/Visitor-Management-System
|
575b7ad1a4eecf65e764399ea53e836b8cf1768d
|
[
"MIT"
] | 3
|
2020-06-30T15:46:56.000Z
|
2021-11-17T13:13:15.000Z
|
visitor_manage/src/admin.py
|
DipikaPawar12/Visitor-Management-System
|
9585d8613daa4f5a0b0a81cce6850f79db768a64
|
[
"MIT"
] | 1
|
2021-06-10T19:39:03.000Z
|
2021-06-10T19:39:03.000Z
|
visitor_manage/src/admin.py
|
DipikaPawar12/Visitor-Management-System
|
9585d8613daa4f5a0b0a81cce6850f79db768a64
|
[
"MIT"
] | 1
|
2020-06-30T15:49:07.000Z
|
2020-06-30T15:49:07.000Z
|
from django.contrib import admin
from .models import *
admin.site.register(SuperAdmin)
admin.site.register(User)
admin.site.register(Admin)
admin.site.register(Visitor)
admin.site.register(TemporaryUser)
admin.site.register(Faq)
| 25.444444
| 34
| 0.820961
| 32
| 229
| 5.875
| 0.40625
| 0.287234
| 0.542553
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.061135
| 229
| 9
| 35
| 25.444444
| 0.874419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.25
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e87c0a482603d64f363ce49792d6c6897b087044
| 6,624
|
py
|
Python
|
asaplib/util/util_fft.py
|
FelixFaber/ASAP
|
951d9667143095e42f1566816b4ab90d901b56a8
|
[
"MIT"
] | 1
|
2020-02-25T19:05:25.000Z
|
2020-02-25T19:05:25.000Z
|
asaplib/util/util_fft.py
|
FelixFaber/ASAP
|
951d9667143095e42f1566816b4ab90d901b56a8
|
[
"MIT"
] | null | null | null |
asaplib/util/util_fft.py
|
FelixFaber/ASAP
|
951d9667143095e42f1566816b4ab90d901b56a8
|
[
"MIT"
] | null | null | null |
"""
TODO: Module-level description
"""
import numpy as np
"""
# Fourier analysis of x(t) to obtain $x(\omega)$.
## $FT(x(t)) = x(\omega)$
## $S_x(\omega)=FT(<x(0)x(t)>) = x(\omega) \cdot x(\omega) $
# In reality we have a list $\{ x_{1...n}\}$
## $A_k = \sum_{m=0}^{n-1} x_m \exp(-2\pi i \dfrac{m k }{n})$
## $x(\omega = \dfrac{2\pi}{n\Delta t}k) = \Delta t A_k$
# Fourier analysis of v(t) to obtain $v(\omega)$.
## $FFT(v(t)) = v(\omega)=i\omega x(\omega)$
## $FFT(<x(0)v(t)>) = -x(\omega) \cdot v(\omega) $
## $FFT(<x(0)v(t)>) = i \omega x(\omega) \cdot x(\omega) $
## $FFT(<v(0)v(t)>) = v(\omega) \cdot v(\omega) $
## $FFT(<v(0)v(t)>) = -(i \omega)^2 x(\omega) \cdot x(\omega) = \omega^2 x(\omega) \cdot x(\omega)$
EXAMPLES:
testfx = fftranform(txv[:,[0,1]],len(txv)) fftranform(txv[:,[0,1]],len(txv))
testreversefx = ifftranform(testfx)
testftcxx = rfftcrosscorr(txv[:,[0,1]],txv[:,[0,1]],10000)
"""
def smooth(y, box_pts):
box = np.ones(box_pts) / box_pts
y_smooth = np.convolve(y, box, mode='same')
return y_smooth
def fftranform(x, dlen=10000):
# input: a list of real signals {x} with timestep dt
# output: x(omega)
# make sure that we have odd number of signals as it makes fft easier
if dlen % 2 == 0:
dlen -= 1
# x.append(x[0])
# this is the FFT expansion coeficients assuming inputs are real numbers
# https://docs.scipy.org/doc/numpy-1.13.0/reference/routines.fft.html#module-numpy.fft
dt = x[1, 0] - x[0, 0] # assume the timestep is constant
window = len(x) // dlen
# print dlen
omega0 = 2.0 * np.pi / (dlen - 1) / dt
xomega = np.zeros((dlen, 2), dtype=np.complex_)
xomega[0:dlen // 2 + 1, 0] = np.arange(dlen // 2 + 1) * omega0
xomega[dlen // 2 + 1:, 0] = np.arange(dlen // 2, 0, -1) * omega0 * -1
for i in range(window):
dx = x[i * dlen:(i + 1) * dlen, 1]
Ax = np.fft.fft(dx[:], axis=0)
# print len(Ax)
xomega[:, 1] += Ax * dt
xomega[:, 1] /= window
# return [omega, A(omega)]
""" when numpy does fft, A[1:n/2] contains the positive-frequency terms,
and A[n/2+1:] contains the negative-frequency terms,
in order of decreasingly negative frequency.
"""
return xomega
def ifftranform(xomega):
# first retrieve the descrete rFFT coefficients
# note that numpy uses a normalization factor of 1/n here but not during the forward fft
omega0 = xomega[1, 0] - xomega[0, 0]
dt = np.pi / (len(xomega) // 2) / omega0
Ax = xomega[:, 1] / dt
x = np.fft.ifft(Ax[:], axis=0)
return np.column_stack((dt * np.arange(len(x)), x))
def fftcrosscorr(x, y, dlen=10000):
# make sure that we have odd number of signals as it makes fft easier
if dlen % 2 == 0:
dlen -= 1
# x.append(x[0])
# y.append(y[0])
# the fft coecofficents of the crosscorrelation function c_xy(t)
dt = x[1, 0] - x[0, 0] # assume the timestep is constant
window = len(x) // dlen
omega0 = 2.0 * np.pi / (dlen - 1) / dt
cxyomega = np.zeros((dlen, 2), dtype=np.complex_)
cxyomega[0:dlen // 2 + 1, 0] = np.arange(dlen // 2 + 1) * omega0
cxyomega[dlen // 2 + 1:, 0] = np.arange(dlen // 2, 0, -1) * omega0 * -1
for i in range(window):
dx = x[i * dlen:(i + 1) * dlen, 1]
dy = y[i * dlen:(i + 1) * dlen, 1]
Ax = np.fft.fft(dx[:], axis=0)
Ay = np.fft.fft(dy[:], axis=0)
cxyomega[:, 1] += np.conjugate(Ax[:]) * Ay[:] / dlen * dt
for i in range(window - 1):
dx = x[i * dlen + dlen // 2:(i + 1) * dlen + dlen // 2, 1]
dy = y[i * dlen + dlen // 2:(i + 1) * dlen + dlen // 2, 1]
Ax = np.fft.fft(dx[:], axis=0)
Ay = np.fft.fft(dy[:], axis=0)
cxyomega[:, 1] += np.conjugate(Ax[:]) * Ay[:] / dlen * dt
cxyomega[:, 1] /= (window * 2 - 1)
return cxyomega
def rfftranform(x, dlen=10000):
# input: a list of real signals {x} with timestep dt
# output: x(omega)
# this is the FFT expansion coeficients assuming inputs are real numbers
# https://docs.scipy.org/doc/numpy-1.13.0/reference/routines.fft.html#module-numpy.fft
dt = x[1, 0] - x[0, 0] # assume the timestep is constant
window = len(x) // dlen
# print dlen
omega0 = 2.0 * np.pi / dlen / dt
xomega = np.zeros((dlen // 2 + 1, 2), dtype=np.complex_)
xomega[:, 0] = np.arange(dlen // 2 + 1) * omega0
for i in range(window):
dx = x[i * dlen:(i + 1) * dlen, 1]
Ax = np.fft.rfft(dx[:], axis=0)
# print len(Ax)
xomega[:, 1] += Ax * dt
xomega[:, 1] /= window
# return [omega, A(omega)]
""" when numpy does fft, A[1:n/2] contains the positive-frequency terms,
and A[n/2+1:] contains the negative-frequency terms,
in order of decreasingly negative frequency.
Hoever, When the DFT is computed for purely real input,
the output is Hermitian-symmetric,
i.e. the negative frequency terms are just the complex conjugates of the corresponding positive-frequency terms,
and the negative-frequency terms are therefore redundant.
This function does not compute the negative frequency terms,
and the length of the transformed axis of the output is therefore n//2 + 1
"""
return xomega
def irfftranform(xomega):
# first retrieve the descrete rFFT coefficients
# note that numpy uses a normalization factor of 1/n here but not during the forward fft
omega0 = xomega[1, 0] - xomega[0, 0]
dt = np.pi / len(xomega) / omega0
Ax = xomega[:, 1] / dt
x = np.fft.irfft(Ax[:], axis=0)
return np.column_stack((dt * np.arange(len(x)), x))
def rfftcrosscorr(x, y, dlen=10000):
# the fft coecofficents of the crosscorrelation function c_xy(t)
dt = x[1, 0] - x[0, 0] # assume the timestep is constant
window = len(x) // dlen
omega0 = 2.0 * np.pi / dlen / dt
cxyomega = np.zeros((dlen // 2 + 1, 2), dtype=np.complex_)
cxyomega[:, 0] = np.arange(dlen // 2 + 1) * omega0
for i in range(window):
dx = x[i * dlen:(i + 1) * dlen, 1]
dy = y[i * dlen:(i + 1) * dlen, 1]
Ax = np.fft.rfft(dx[:], axis=0)
Ay = np.fft.rfft(dy[:], axis=0)
cxyomega[:, 1] += np.conjugate(Ax[:]) * Ay[:] / dlen * dt
for i in range(window - 1):
dx = x[i * dlen + dlen // 2:(i + 1) * dlen + dlen // 2, 1]
dy = y[i * dlen + dlen // 2:(i + 1) * dlen + dlen // 2, 1]
Ax = np.fft.rfft(dx[:], axis=0)
Ay = np.fft.rfft(dy[:], axis=0)
cxyomega[:, 1] += np.conjugate(Ax[:]) * Ay[:] / dlen * dt
cxyomega[:, 1] /= (window * 2 - 1)
return cxyomega
| 36.196721
| 117
| 0.569595
| 1,086
| 6,624
| 3.456722
| 0.151934
| 0.031966
| 0.022376
| 0.020778
| 0.782365
| 0.753063
| 0.714172
| 0.688599
| 0.67528
| 0.658764
| 0
| 0.044655
| 0.252868
| 6,624
| 182
| 118
| 36.395604
| 0.713882
| 0.192935
| 0
| 0.712644
| 0
| 0
| 0.001096
| 0
| 0
| 0
| 0
| 0.005495
| 0
| 1
| 0.08046
| false
| 0
| 0.011494
| 0
| 0.172414
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e8caf06c9824e7e8e34d9b2503b6f186f3beab42
| 64
|
py
|
Python
|
mayan/apps/duplicates/__init__.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 343
|
2015-01-05T14:19:35.000Z
|
2018-12-10T19:07:48.000Z
|
mayan/apps/duplicates/__init__.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 191
|
2015-01-03T00:48:19.000Z
|
2018-11-30T09:10:25.000Z
|
mayan/apps/duplicates/__init__.py
|
nattangwiwat/Mayan-EDMS-recitation
|
fcf16afb56eae812fb99144d65ae1ae6749de0b7
|
[
"Apache-2.0"
] | 257
|
2019-05-14T10:26:37.000Z
|
2022-03-30T03:37:36.000Z
|
default_app_config = 'mayan.apps.duplicates.apps.DuplicatesApp'
| 32
| 63
| 0.84375
| 8
| 64
| 6.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.046875
| 64
| 1
| 64
| 64
| 0.852459
| 0
| 0
| 0
| 0
| 0
| 0.625
| 0.625
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa094e5f5316294ab596d436010c00578ed582e3
| 362
|
py
|
Python
|
src_1gp/demo.py
|
yvquanli/GLAM
|
82d91265a517e3b4813197fe2764b36c751657c0
|
[
"MIT"
] | 10
|
2021-12-22T02:26:34.000Z
|
2022-02-09T02:42:05.000Z
|
src_1gp/demo.py
|
yvquanli/GLAM
|
82d91265a517e3b4813197fe2764b36c751657c0
|
[
"MIT"
] | null | null | null |
src_1gp/demo.py
|
yvquanli/GLAM
|
82d91265a517e3b4813197fe2764b36c751657c0
|
[
"MIT"
] | null | null | null |
import os
os.chdir(os.path.dirname(__file__))
print('Test for dataset.py and run.py!')
os.system('python3 ./run.py --dataset demo --dataset_root ./demo --epoch 5 --loss bcel')
os.system('rm -rf ./log_demo')
print('Demo running...')
os.system('python3 ./glam.py --dataset demo --dataset_root ./demo --n_init_configs 5 --n_top_blend 2 --n_high_fidelity_seed 2')
| 36.2
| 127
| 0.712707
| 62
| 362
| 3.935484
| 0.564516
| 0.098361
| 0.122951
| 0.163934
| 0.229508
| 0.229508
| 0
| 0
| 0
| 0
| 0
| 0.018462
| 0.10221
| 362
| 9
| 128
| 40.222222
| 0.732308
| 0
| 0
| 0
| 0
| 0.142857
| 0.696133
| 0.060773
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.142857
| 0
| 0.142857
| 0.285714
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa31a1d3d315f6e15d470c93696aba2f7bc77f4e
| 4,957
|
py
|
Python
|
pyspedas/themis/tests/tests.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | 1
|
2020-07-07T19:52:40.000Z
|
2020-07-07T19:52:40.000Z
|
pyspedas/themis/tests/tests.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | null | null | null |
pyspedas/themis/tests/tests.py
|
MAVENSDC/pyspedas
|
05ede2603acb514bc7803be054016142c0851685
|
[
"MIT"
] | null | null | null |
import os
import unittest
from pyspedas.utilities.data_exists import data_exists
import pyspedas
class GmagTestCases(unittest.TestCase):
def test_get_group(self):
from pyspedas.themis.ground.gmag import get_group
self.assertTrue(get_group('ccnv') == ['epo'])
def test_gmag_list(self):
from pyspedas.themis.ground.gmag import gmag_list
self.assertTrue(gmag_list()[0:5] == ['abk', 'akul', 'amd', 'amer', 'amk'])
def test_gmag_groups(self):
from pyspedas.themis.ground.gmag import gmag_groups
gmag_table = gmag_groups()
self.assertTrue(list(gmag_table.keys())[0:5] == ['kyoto', 'sgu', 'autx', 'ae', 'aari'])
def test_check_gmag(self):
from pyspedas.themis.ground.gmag import check_gmag
self.assertTrue(check_gmag('ccnv') == 1)
self.assertTrue(check_gmag('abcd') == 0)
class LoadTestCases(unittest.TestCase):
def test_load_state_data(self):
data = pyspedas.themis.state()
self.assertTrue(data_exists('thc_pos'))
self.assertTrue(data_exists('thc_vel'))
self.assertTrue(data_exists('thc_pos_gsm'))
self.assertTrue(data_exists('thc_vel_gse'))
def test_load_gmag_data(self):
data = pyspedas.themis.gmag()
self.assertTrue(data_exists('thg_mag_amer'))
self.assertTrue(data_exists('thg_mag_kil'))
self.assertTrue(data_exists('thg_mag_eagl'))
self.assertTrue(data_exists('thg_mag_leth'))
self.assertTrue(data_exists('thg_mag_inuv'))
self.assertTrue(data_exists('thg_mag_wrth'))
def test_load_sst_data(self):
data = pyspedas.themis.sst()
self.assertTrue(data_exists('thc_psif_en_eflux'))
self.assertTrue(data_exists('thc_psif_density'))
self.assertTrue(data_exists('thc_psif_avgtemp'))
self.assertTrue(data_exists('thc_psif_vthermal'))
def test_load_fgm_data(self):
data = pyspedas.themis.fgm()
self.assertTrue(data_exists('thc_fgs_btotal'))
self.assertTrue(data_exists('thc_fgs_gse'))
self.assertTrue(data_exists('thc_fgs_gsm'))
def test_load_fit_data(self):
data = pyspedas.themis.fit()
self.assertTrue(data_exists('thc_fgs_gse'))
self.assertTrue(data_exists('thc_fgs_gsm'))
def test_load_esa_data(self):
data = pyspedas.themis.esa()
self.assertTrue(data_exists('thc_peif_density'))
self.assertTrue(data_exists('thc_peif_avgtemp'))
self.assertTrue(data_exists('thc_peif_en_eflux'))
self.assertTrue(data_exists('thc_peif_flux'))
def test_load_fft_data(self):
data = pyspedas.themis.fft()
self.assertTrue(data_exists('thc_ffp_16_edc34'))
self.assertTrue(data_exists('thc_ffp_16_edc56'))
self.assertTrue(data_exists('thc_ffp_16_scm2'))
def test_load_fft_l1_data(self):
data = pyspedas.themis.fft(level='l1')
self.assertTrue(data_exists('thc_ffp_16'))
self.assertTrue(data_exists('thc_ffw_16'))
def test_load_fbk_data(self):
data = pyspedas.themis.fbk()
self.assertTrue(data_exists('thc_fb_hff'))
self.assertTrue(data_exists('thc_fb_edc12'))
self.assertTrue(data_exists('thc_fb_scm1'))
def test_load_mom_data(self):
data = pyspedas.themis.mom()
self.assertTrue(data_exists('thc_peim_density'))
self.assertTrue(data_exists('thc_peim_ptot'))
self.assertTrue(data_exists('thc_peim_flux'))
self.assertTrue(data_exists('thc_peim_eflux'))
self.assertTrue(data_exists('thc_peim_velocity_gse'))
# the following isn't working for some reason
# def test_load_gmom_data(self):
# data = pyspedas.themis.gmom()
# self.assertTrue(data_exists(''))
def test_load_scm_data(self):
data = pyspedas.themis.scm()
self.assertTrue(data_exists('thc_scf_btotal'))
self.assertTrue(data_exists('thc_scp_gsm'))
self.assertTrue(data_exists('thc_scf_gsm'))
def test_load_scm_l1_data(self):
data = pyspedas.themis.scm(level='l1')
self.assertTrue(data_exists('thc_scf'))
self.assertTrue(data_exists('thc_scp'))
self.assertTrue(data_exists('thc_scw'))
def test_load_efi_l1_data(self):
data = pyspedas.themis.efi(level='l1')
self.assertTrue(data_exists('thc_eff'))
self.assertTrue(data_exists('thc_efp'))
self.assertTrue(data_exists('thc_efw'))
self.assertTrue(data_exists('thc_vaf'))
def test_load_efi_data(self):
data = pyspedas.themis.efi(time_clip=True)
self.assertTrue(data_exists('thc_eff_e12_efs'))
self.assertTrue(data_exists('thc_eff_e34_efs'))
def test_downloadonly(self):
files = pyspedas.themis.efi(downloadonly=True,
trange=['2014-2-15', '2014-2-16'])
self.assertTrue(os.path.exists(files[0]))
if __name__ == '__main__':
unittest.main()
| 37.839695
| 95
| 0.67561
| 658
| 4,957
| 4.75076
| 0.18541
| 0.246321
| 0.28215
| 0.3762
| 0.685861
| 0.567818
| 0.18714
| 0.076136
| 0.049264
| 0.049264
| 0
| 0.012284
| 0.195279
| 4,957
| 130
| 96
| 38.130769
| 0.771371
| 0.029252
| 0
| 0.039216
| 0
| 0
| 0.138785
| 0.00437
| 0
| 0
| 0
| 0
| 0.529412
| 1
| 0.186275
| false
| 0
| 0.078431
| 0
| 0.284314
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
fa32012cd1b7d114fb1354eba16dd29a3952f35c
| 85
|
py
|
Python
|
jsk/__init__.py
|
Kuro-Rui/flare-cogs
|
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
|
[
"MIT"
] | 38
|
2021-03-07T17:13:10.000Z
|
2022-02-28T19:50:00.000Z
|
jsk/__init__.py
|
Kuro-Rui/flare-cogs
|
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
|
[
"MIT"
] | 44
|
2021-03-12T19:13:32.000Z
|
2022-03-18T10:20:52.000Z
|
jsk/__init__.py
|
Kuro-Rui/flare-cogs
|
f739e3a4a8c65bf0e10945d242ba0b82f96c6d3d
|
[
"MIT"
] | 33
|
2021-03-08T18:59:59.000Z
|
2022-03-23T10:57:46.000Z
|
from .jishaku_cog import Jishaku
def setup(bot):
bot.add_cog(Jishaku(bot=bot))
| 14.166667
| 33
| 0.729412
| 14
| 85
| 4.285714
| 0.571429
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.152941
| 85
| 5
| 34
| 17
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
fa41e1663a6e018de8fccc983c895b9b2fc8b561
| 2,373
|
py
|
Python
|
pytpp/attributes/log_adaptable.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | 4
|
2022-02-04T23:58:55.000Z
|
2022-02-15T18:53:08.000Z
|
pytpp/attributes/log_adaptable.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | null | null | null |
pytpp/attributes/log_adaptable.py
|
Venafi/pytpp
|
42af655b2403b8c9447c86962abd4aaa0201f646
|
[
"MIT"
] | null | null | null |
from pytpp.attributes._helper import IterableMeta, Attribute
from pytpp.attributes.log_channel import LogChannelAttributes
class LogAdaptableAttributes(LogChannelAttributes, metaclass=IterableMeta):
__config_class__ = "Log Adaptable"
adaptable_logging_channel_text_field_1 = Attribute('Adaptable Logging Channel Text Field 1', min_version='17.1')
adaptable_logging_channel_text_field_10 = Attribute('Adaptable Logging Channel Text Field 10', min_version='17.1')
adaptable_logging_channel_text_field_11 = Attribute('Adaptable Logging Channel Text Field 11', min_version='17.1')
adaptable_logging_channel_text_field_12 = Attribute('Adaptable Logging Channel Text Field 12', min_version='17.1')
adaptable_logging_channel_text_field_2 = Attribute('Adaptable Logging Channel Text Field 2', min_version='17.1')
adaptable_logging_channel_text_field_3 = Attribute('Adaptable Logging Channel Text Field 3', min_version='17.1')
adaptable_logging_channel_text_field_4 = Attribute('Adaptable Logging Channel Text Field 4', min_version='17.1')
adaptable_logging_channel_text_field_5 = Attribute('Adaptable Logging Channel Text Field 5', min_version='17.1')
adaptable_logging_channel_text_field_6 = Attribute('Adaptable Logging Channel Text Field 6', min_version='17.1')
adaptable_logging_channel_text_field_7 = Attribute('Adaptable Logging Channel Text Field 7', min_version='17.1')
adaptable_logging_channel_text_field_8 = Attribute('Adaptable Logging Channel Text Field 8', min_version='17.1')
adaptable_logging_channel_text_field_9 = Attribute('Adaptable Logging Channel Text Field 9', min_version='17.1')
credential = Attribute('Credential', min_version='17.1')
log_debug = Attribute('Log Debug', min_version='19.3')
oauth_token_application_id = Attribute('OAuth Token Application Id', min_version='21.3')
oauth_token_credential = Attribute('OAuth Token Credential', min_version='21.3')
oauth_token_scope = Attribute('OAuth Token Scope', min_version='21.3')
powershell_script = Attribute('PowerShell Script', min_version='17.1')
powershell_script_hash_vault_id = Attribute('PowerShell Script Hash Vault Id', min_version='18.4')
script_execution_timeout = Attribute('Script Execution Timeout', min_version='20.2')
secondary_credential = Attribute('Secondary Credential', min_version='17.4')
service_address = Attribute('Service Address', min_version='17.1')
| 81.827586
| 115
| 0.815002
| 331
| 2,373
| 5.522659
| 0.160121
| 0.210066
| 0.301969
| 0.354486
| 0.628556
| 0.599015
| 0.270788
| 0.270788
| 0.270788
| 0
| 0
| 0.044301
| 0.08681
| 2,373
| 28
| 116
| 84.75
| 0.799262
| 0
| 0
| 0
| 0
| 0
| 0.316477
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.076923
| 0
| 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
| 0
| 1
| 0
|
0
| 4
|
fa6395c71b29e3d00b5d0ecd821b5694facf0f66
| 229
|
py
|
Python
|
djangoRESTRoot/REST/serializers.py
|
EliasEriksson/DemoDjangoREST
|
4281d66cdd8723a89511bf199b41a6dc975a49f0
|
[
"MIT"
] | null | null | null |
djangoRESTRoot/REST/serializers.py
|
EliasEriksson/DemoDjangoREST
|
4281d66cdd8723a89511bf199b41a6dc975a49f0
|
[
"MIT"
] | null | null | null |
djangoRESTRoot/REST/serializers.py
|
EliasEriksson/DemoDjangoREST
|
4281d66cdd8723a89511bf199b41a6dc975a49f0
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import Course
class CoursesSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Course
fields = ["code", "name", "progression", "plan"]
| 25.444444
| 64
| 0.720524
| 22
| 229
| 7.454545
| 0.772727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.187773
| 229
| 8
| 65
| 28.625
| 0.88172
| 0
| 0
| 0
| 0
| 0
| 0.100437
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
3afc2ed60a86389d4e4b5f1e80291a3ae2873ecd
| 140
|
py
|
Python
|
src/MacVim/icons/setup.py
|
xurui1983/macvim
|
0d6af3db925d5636cc8e3092a0b2ca5e1ca6cd1f
|
[
"Vim"
] | 1,457
|
2015-01-02T08:48:47.000Z
|
2022-01-22T13:50:17.000Z
|
src/MacVim/icons/setup.py
|
xurui1983/macvim
|
0d6af3db925d5636cc8e3092a0b2ca5e1ca6cd1f
|
[
"Vim"
] | 9
|
2015-01-10T12:44:08.000Z
|
2015-12-28T06:41:01.000Z
|
src/MacVim/icons/setup.py
|
xurui1983/macvim
|
0d6af3db925d5636cc8e3092a0b2ca5e1ca6cd1f
|
[
"Vim"
] | 182
|
2015-01-01T00:03:56.000Z
|
2022-03-28T12:16:32.000Z
|
from distutils.core import setup, Extension
setup(name="loadfont", version="1.0",
ext_modules = [Extension("loadfont", ["loadfont.c"])])
| 23.333333
| 55
| 0.714286
| 18
| 140
| 5.5
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015873
| 0.1
| 140
| 5
| 56
| 28
| 0.769841
| 0
| 0
| 0
| 0
| 0
| 0.208633
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d71237dc8ca1dbfaa5d7a898b2c99ba2b8efa0aa
| 3,658
|
py
|
Python
|
src/qt/qtwebkit/Tools/QueueStatusServer/model/queues.py
|
viewdy/phantomjs
|
eddb0db1d253fd0c546060a4555554c8ee08c13c
|
[
"BSD-3-Clause"
] | 1
|
2015-05-27T13:52:20.000Z
|
2015-05-27T13:52:20.000Z
|
src/qt/qtwebkit/Tools/QueueStatusServer/model/queues.py
|
mrampersad/phantomjs
|
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
|
[
"BSD-3-Clause"
] | null | null | null |
src/qt/qtwebkit/Tools/QueueStatusServer/model/queues.py
|
mrampersad/phantomjs
|
dca6f77a36699eb4e1c46f7600cca618f01b0ac3
|
[
"BSD-3-Clause"
] | 1
|
2017-03-19T13:03:23.000Z
|
2017-03-19T13:03:23.000Z
|
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import re
from config.queues import all_queue_names
from model.activeworkitems import ActiveWorkItems
from model.workitems import WorkItems
class Queue(object):
def __init__(self, name):
assert(name in all_queue_names)
self._name = name
@classmethod
def queue_with_name(cls, queue_name):
if queue_name not in all_queue_names:
return None
return Queue(queue_name)
@classmethod
def all(cls):
return [Queue(name) for name in all_queue_names]
@classmethod
def all_ews(cls):
return [queue for queue in cls.all() if queue.is_ews()]
def name(self):
return self._name
def work_items(self):
return WorkItems.lookup_by_queue(self._name)
# FIXME: active_work_items is a bad name for this lock-table.
def active_work_items(self):
return ActiveWorkItems.lookup_by_queue(self._name)
def _caplitalize_after_dash(self, string):
return "-".join([word[0].upper() + word[1:] for word in string.split("-")])
# For use in status bubbles or table headers
def short_name(self):
short_name = self._name.replace("-ews", "")
short_name = short_name.replace("-queue", "")
return self._caplitalize_after_dash(short_name.capitalize())
def display_name(self):
display_name = self._name.replace("-", " ")
display_name = display_name.title()
display_name = display_name.replace("Wk2", "WK2")
display_name = display_name.replace("Ews", "EWS")
return display_name
_dash_regexp = re.compile("-")
def name_with_underscores(self):
return self._dash_regexp.sub("_", self._name)
def is_ews(self):
# Note: The style-queue is just like an EWS in that it has an EWS
# bubble, and it works off of the r? patches. If at some later
# point code wants to not treat the style-queue as an EWS
# (e.g. expecting is_ews() queues to have build results?)
# then we should fix all callers and change this check.
return self._name.endswith("-ews") or self._name == "style-queue"
| 38.914894
| 83
| 0.711318
| 519
| 3,658
| 4.88632
| 0.39499
| 0.031546
| 0.020505
| 0.017744
| 0.126972
| 0.053628
| 0.053628
| 0.053628
| 0.053628
| 0.053628
| 0
| 0.002775
| 0.211864
| 3,658
| 93
| 84
| 39.333333
| 0.876864
| 0.511482
| 0
| 0.071429
| 0
| 0
| 0.024543
| 0
| 0
| 0
| 0
| 0.010753
| 0.02381
| 1
| 0.285714
| false
| 0
| 0.095238
| 0.190476
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
d7541141a11f8a88d76e2a0c32856ff035efcd57
| 95
|
py
|
Python
|
beta/api/zaif/__init__.py
|
black0144/vnpy
|
0d0ea30dad14a0150f7500ff9a62528030321426
|
[
"MIT"
] | 3
|
2018-09-29T03:04:37.000Z
|
2020-02-10T15:58:11.000Z
|
beta/api/zaif/__init__.py
|
black0144/vnpy
|
0d0ea30dad14a0150f7500ff9a62528030321426
|
[
"MIT"
] | 1
|
2018-06-12T10:08:24.000Z
|
2018-06-12T10:08:24.000Z
|
beta/api/zaif/__init__.py
|
black0144/vnpy
|
0d0ea30dad14a0150f7500ff9a62528030321426
|
[
"MIT"
] | 2
|
2020-04-26T08:33:05.000Z
|
2020-12-02T07:54:43.000Z
|
# encoding: UTF-8
from __future__ import absolute_import
from .vnzaif import TradeApi, DataApi
| 23.75
| 38
| 0.821053
| 13
| 95
| 5.615385
| 0.769231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0.126316
| 95
| 4
| 39
| 23.75
| 0.86747
| 0.157895
| 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
| 0
| 0
|
0
| 4
|
d755aa9c22eb4f27200c2e2110a17f97c4adfe0e
| 129
|
py
|
Python
|
src/student2/admin.py
|
Ehsan-Home/drag_and_drop_in_tables
|
865079999e42a6f3dceb6814b69091580c1440b8
|
[
"MIT"
] | 3
|
2020-03-08T09:14:38.000Z
|
2020-08-29T00:19:38.000Z
|
src/student2/admin.py
|
Ehsan-Home/drag_and_drop_in_tables
|
865079999e42a6f3dceb6814b69091580c1440b8
|
[
"MIT"
] | null | null | null |
src/student2/admin.py
|
Ehsan-Home/drag_and_drop_in_tables
|
865079999e42a6f3dceb6814b69091580c1440b8
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from student2.models import Student2
# Register your models here.
admin.site.register(Student2)
| 25.8
| 36
| 0.829457
| 18
| 129
| 5.944444
| 0.611111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026087
| 0.108527
| 129
| 5
| 37
| 25.8
| 0.904348
| 0.20155
| 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
| 0
| 0
|
0
| 4
|
d76967dc77252f7d5e69156306d72b2016f57359
| 50
|
py
|
Python
|
python_prueba.py
|
jomih/Python_Automation_Training
|
048b50b66bfa117df7e21bce47617a01a68344b5
|
[
"MIT"
] | null | null | null |
python_prueba.py
|
jomih/Python_Automation_Training
|
048b50b66bfa117df7e21bce47617a01a68344b5
|
[
"MIT"
] | null | null | null |
python_prueba.py
|
jomih/Python_Automation_Training
|
048b50b66bfa117df7e21bce47617a01a68344b5
|
[
"MIT"
] | null | null | null |
for i in range (10):
print 'master branch ',i
| 16.666667
| 28
| 0.62
| 9
| 50
| 3.444444
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054054
| 0.26
| 50
| 2
| 29
| 25
| 0.783784
| 0
| 0
| 0
| 0
| 0
| 0.28
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| 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
| 0
| 0
| 0
| 1
|
0
| 4
|
d771a407894f635aabaebb3d9638ed0e4f3162c6
| 392
|
py
|
Python
|
stdnet/tests/__init__.py
|
TheProjecter/python-stdnet
|
059be991bea40c0281dac12459539d0aa4397823
|
[
"BSD-3-Clause"
] | null | null | null |
stdnet/tests/__init__.py
|
TheProjecter/python-stdnet
|
059be991bea40c0281dac12459539d0aa4397823
|
[
"BSD-3-Clause"
] | null | null | null |
stdnet/tests/__init__.py
|
TheProjecter/python-stdnet
|
059be991bea40c0281dac12459539d0aa4397823
|
[
"BSD-3-Clause"
] | null | null | null |
#from odict import *
#from backend_tests import *
#from strings import *
#from manager import *
#from finance import *
from fktest import *
#from atomfields import *
# Data-structure Fields
#from listfield import *
#from ordered_set import *
#from hashfield import *
# Many to many Field
#from twitter import *
#from testme import *
# Contrib
#from stdnet.contrib.timeserie.tests import *
| 19.6
| 45
| 0.752551
| 52
| 392
| 5.634615
| 0.480769
| 0.307167
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.165816
| 392
| 20
| 45
| 19.6
| 0.896024
| 0.862245
| 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
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d786be8c468a21f61b53c19c81357d7ac399899c
| 424
|
py
|
Python
|
TouchType/practica/admin.py
|
Francisco-Galindo/Mecanopractica
|
cdb6b99bab9ef4e02e7a9705891a25c2426fc290
|
[
"MIT"
] | null | null | null |
TouchType/practica/admin.py
|
Francisco-Galindo/Mecanopractica
|
cdb6b99bab9ef4e02e7a9705891a25c2426fc290
|
[
"MIT"
] | null | null | null |
TouchType/practica/admin.py
|
Francisco-Galindo/Mecanopractica
|
cdb6b99bab9ef4e02e7a9705891a25c2426fc290
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Group, User, Substring_es, Words_es, Text_Author, Text_Mode, Text, Session, Tip
# Register your models here.
admin.site.register(User)
admin.site.register(Substring_es)
admin.site.register(Words_es)
admin.site.register(Text_Author)
admin.site.register(Text_Mode)
admin.site.register(Text)
admin.site.register(Session)
admin.site.register(Group)
admin.site.register(Tip)
| 30.285714
| 99
| 0.813679
| 65
| 424
| 5.184615
| 0.307692
| 0.240356
| 0.454006
| 0.186944
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073113
| 424
| 13
| 100
| 32.615385
| 0.857506
| 0.061321
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.181818
| 0
| 0.181818
| 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
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ad0614a1ba0d74d4dd0dd05026c9f796f50675ce
| 1,445
|
py
|
Python
|
simple_time_card/resources.py
|
Pathfinder216/simple-time-card
|
d4a41c4e388893bf2cca25b98108ce66e4fdb6cd
|
[
"MIT"
] | null | null | null |
simple_time_card/resources.py
|
Pathfinder216/simple-time-card
|
d4a41c4e388893bf2cca25b98108ce66e4fdb6cd
|
[
"MIT"
] | null | null | null |
simple_time_card/resources.py
|
Pathfinder216/simple-time-card
|
d4a41c4e388893bf2cca25b98108ce66e4fdb6cd
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.14.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x00\x1c\
\x5b\
\x43\x6f\x6e\x74\x72\x6f\x6c\x73\x5d\x0d\x0a\x53\x74\x79\x6c\x65\
\x3d\x4d\x61\x74\x65\x72\x69\x61\x6c\x0d\x0a\
"
qt_resource_name = b"\
\x00\x15\
\x08\x1e\x16\x66\
\x00\x71\
\x00\x74\x00\x71\x00\x75\x00\x69\x00\x63\x00\x6b\x00\x63\x00\x6f\x00\x6e\x00\x74\x00\x72\x00\x6f\x00\x6c\x00\x73\x00\x32\x00\x2e\
\x00\x63\x00\x6f\x00\x6e\x00\x66\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x6f\xde\x0e\xdc\xb3\
"
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
if qt_version < [5, 8, 0]:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 27.264151
| 129
| 0.730796
| 269
| 1,445
| 3.784387
| 0.327138
| 0.294695
| 0.344794
| 0.330059
| 0.409627
| 0.409627
| 0.346758
| 0.302554
| 0.302554
| 0.302554
| 0
| 0.221456
| 0.096886
| 1,445
| 52
| 130
| 27.788462
| 0.558621
| 0.10519
| 0
| 0.111111
| 0
| 0.194444
| 0.000778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.027778
| 0
| 0.083333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 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
| 4
|
ad403b6f92536edf3dfe94009bbffcaf87bb90d3
| 162
|
py
|
Python
|
src/drone_ai/scripts/snippets/training.py
|
ElHouas/drone_sim
|
e42f49d8536855516b3881c016f828e8525e4af3
|
[
"MIT"
] | null | null | null |
src/drone_ai/scripts/snippets/training.py
|
ElHouas/drone_sim
|
e42f49d8536855516b3881c016f828e8525e4af3
|
[
"MIT"
] | null | null | null |
src/drone_ai/scripts/snippets/training.py
|
ElHouas/drone_sim
|
e42f49d8536855516b3881c016f828e8525e4af3
|
[
"MIT"
] | 1
|
2020-12-18T21:14:33.000Z
|
2020-12-18T21:14:33.000Z
|
#! /usr/bin/env python
import gym
import time
import numpy
import random
import time
from gym import wrappers
# ROS packages required
import rospy
import rospkg
| 13.5
| 24
| 0.802469
| 25
| 162
| 5.2
| 0.64
| 0.138462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160494
| 162
| 12
| 25
| 13.5
| 0.955882
| 0.265432
| 0
| 0.25
| 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
| 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
| 4
|
ad7f74167febc8b1c77917eb22b1a58eeafa335a
| 1,670
|
py
|
Python
|
analysis/forms.py
|
NilaiVemula/pycellfit-web
|
9b18a4af7ad2ad22883b3449c3cbf1123f7c4716
|
[
"MIT"
] | null | null | null |
analysis/forms.py
|
NilaiVemula/pycellfit-web
|
9b18a4af7ad2ad22883b3449c3cbf1123f7c4716
|
[
"MIT"
] | 3
|
2020-08-03T22:27:31.000Z
|
2021-06-25T15:41:57.000Z
|
analysis/forms.py
|
NilaiVemula/pycellfit-web
|
9b18a4af7ad2ad22883b3449c3cbf1123f7c4716
|
[
"MIT"
] | null | null | null |
from django import forms
class ImageUploadForm(forms.Form):
image = forms.ImageField()
class ParametersForm(forms.Form):
name = forms.CharField(max_length=100)
# Image
base64_image = forms.CharField(max_length=100000000, widget=forms.HiddenInput())
# Mesh Generation
avg_num_nodes_per_edge = forms.IntegerField(min_value=2, max_value=20)
TANGENT_CHOICES = [
('circle', 'Circle Fit'),
('nearest_segment', 'Nearest Segment'),
('chord', 'Chord')
]
# CellFIT Formulation
tangent_vector_method = forms.ChoiceField(label='Method for calculating tangent vector',choices=TANGENT_CHOICES)
# CellFIT Solver
tensions = forms.BooleanField(required=False)
pressures = forms.BooleanField(required=False)
condition_numbers = forms.BooleanField(required=False)
standard_errors = forms.BooleanField(required=False)
residuals = forms.BooleanField(required=False)
exclude_short_edges = forms.BooleanField(required=False)
exclude_outside_edges = forms.BooleanField(required=False)
# Display
segmented_image = forms.BooleanField(required=False)
mesh = forms.BooleanField(required=False)
tangent_vectors = forms.BooleanField(required=False)
circle_fit_arcs = forms.BooleanField(required=False)
tensions = forms.BooleanField(required=False)
pressures = forms.BooleanField(required=False)
residual_vectors = forms.BooleanField(required=False)
nodes = forms.BooleanField(required=False)
edge_ids = forms.BooleanField(required=False)
cell_ids = forms.BooleanField(required=False)
junction_ids = forms.BooleanField(required=False)
| 40.731707
| 116
| 0.737725
| 181
| 1,670
| 6.651934
| 0.381215
| 0.254153
| 0.373754
| 0.448505
| 0.366279
| 0.127907
| 0.127907
| 0.127907
| 0.127907
| 0.127907
| 0
| 0.012178
| 0.164072
| 1,670
| 40
| 117
| 41.75
| 0.850287
| 0.038323
| 0
| 0.129032
| 0
| 0
| 0.058198
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.032258
| 0
| 0.870968
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
d10bb6e8d5a031760c9e0f75ec5b057cbe7cbbab
| 1,213
|
py
|
Python
|
tests/events/listFirstPageOfEventsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 2
|
2018-03-29T18:21:01.000Z
|
2022-02-08T10:49:47.000Z
|
tests/events/listFirstPageOfEventsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 7
|
2018-09-03T12:31:52.000Z
|
2022-02-01T08:25:09.000Z
|
tests/events/listFirstPageOfEventsTest.py
|
nathanielwarner/seatsio-python
|
e731ed0c37f2496c620b40e38527a58bf3b9a9b2
|
[
"MIT"
] | 2
|
2020-12-22T09:51:07.000Z
|
2021-12-13T15:37:14.000Z
|
from tests.seatsioClientTest import SeatsioClientTest
from tests.util.asserts import assert_that
class ListFirstPageOfEventsTest(SeatsioClientTest):
def test_allOnFirstPage(self):
chart = self.client.charts.create()
event1 = self.client.events.create(chart.key)
event2 = self.client.events.create(chart.key)
event3 = self.client.events.create(chart.key)
events = self.client.events.list_first_page()
assert_that(events.items).extracting("id").contains_exactly(event3.id, event2.id, event1.id)
assert_that(events.next_page_starts_after).is_none()
assert_that(events.previous_page_ends_before).is_none()
def test_someOnFirstPage(self):
chart = self.client.charts.create()
event1 = self.client.events.create(chart.key)
event2 = self.client.events.create(chart.key)
event3 = self.client.events.create(chart.key)
events = self.client.events.list_first_page(page_size=2)
assert_that(events.items).extracting("id").contains_exactly(event3.id, event2.id)
assert_that(events.next_page_starts_after).is_equal_to(event2.id)
assert_that(events.previous_page_ends_before).is_none()
| 40.433333
| 100
| 0.727123
| 157
| 1,213
| 5.407643
| 0.280255
| 0.117786
| 0.150766
| 0.155477
| 0.763251
| 0.753828
| 0.753828
| 0.753828
| 0.753828
| 0.56066
| 0
| 0.012795
| 0.162407
| 1,213
| 29
| 101
| 41.827586
| 0.822835
| 0
| 0
| 0.47619
| 0
| 0
| 0.003298
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.095238
| false
| 0
| 0.095238
| 0
| 0.238095
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d1221d2e67b1765bb9686d40bacfef139f904340
| 4,030
|
py
|
Python
|
businesslogic/placeholders.py
|
Fake4d/mosk
|
d15c6088a382a51706bd38e3299d00be5c208acc
|
[
"CC0-1.0"
] | null | null | null |
businesslogic/placeholders.py
|
Fake4d/mosk
|
d15c6088a382a51706bd38e3299d00be5c208acc
|
[
"CC0-1.0"
] | null | null | null |
businesslogic/placeholders.py
|
Fake4d/mosk
|
d15c6088a382a51706bd38e3299d00be5c208acc
|
[
"CC0-1.0"
] | null | null | null |
"""
placeholders module
"""
__author__ = '3Peso'
__all__ = ['Placeholder']
import functools
import json
import logging
import re
from os import path
from collections import UserDict
class Placeholder:
"""
The Placeholder class is been used to store 'variables' in a lookup table which later can be used to replace
actual placeholders in the instrcutions with values from the lookup table.
Those placeholders are provided by a placeholder file upon start. Instructions can also be used to fill in
placeholders, using the "placeholder" attribute, which afterwards can be used by following instructions to
run their logic.
"""
PLACEHOLDER_RE = r'.*!@(?P<Mosk_Placeholder>\w+)@!.*'
PLACEHOLDER_START = '!@'
PLACEHOLDER_END = '@!'
PLACEHOLDER_GROUP_NAME = 'Mosk_Placeholder'
GLOBAL_PLACEHOLDER_FILE_PATH = './global_placeholders.json'
_logger = logging.getLogger(__name__)
_globalplaceholderfile = GLOBAL_PLACEHOLDER_FILE_PATH
# Variables which are declared inside the class definition, are static.
# Our list of placeholders should be static, so we declare it here and
# not in __init__.
_instruction_placeholders: UserDict = None
def __init__(self, function):
Placeholder._initialize_global_placeholders()
self._logger.info("Could not initialize global placeholders.")
functools.update_wrapper(self, function)
self._function = function
def __call__(self, *args, **kwargs):
"""Decotrator which will feed in functions which return strings with possible
variable placeholders. It will replace those placeholders with a value, if there is
one already provided."""
returnvalue = self._function(*args, **kwargs)
return Placeholder.replace_placeholders(returnvalue)
def __get__(self, instance, instancetype):
return functools.partial(self.__call__, instance)
@staticmethod
def get_globalplaceholderfile():
return Placeholder._globalplaceholderfile
# TODO Validate file type. Should be json.
@staticmethod
def set_globalplaceholderfile(value):
if path.exists(value):
Placeholder._globalplaceholderfile = value
Placeholder._initialize_global_placeholders()
@classmethod
def update_placeholder(cls, placeholdername: str, placeholdervalue):
"""Adds or updates a variable in the global variable dictionary for later use
to fill in placeholders in strings with the replace_variable decotrator."""
if placeholdername in cls._instruction_placeholders.keys():
Placeholder._logger.info(f"Overwriting parameter '{placeholdername}'...")
cls._instruction_placeholders[placeholdername] = placeholdervalue
@classmethod
def get_placeholder(cls, placeholdername: str):
return cls._instruction_placeholders[placeholdername]
@classmethod
def _initialize_global_placeholders(cls):
cls._instruction_placeholders = None
cls._instruction_placeholders = UserDict()
with open(Placeholder.get_globalplaceholderfile()) as gpf:
placeholders = json.load(gpf)
for placeholdername in placeholders:
cls.update_placeholder(placeholdername, placeholders[placeholdername])
@classmethod
def replace_placeholders(cls, returnvalue: str):
matches = re.match(cls.PLACEHOLDER_RE, returnvalue.strip())
if matches is not None:
placeholder = matches.group(cls.PLACEHOLDER_GROUP_NAME)
Placeholder._logger.info(f"Variable '{placeholder}' in string found.")
if placeholder in cls._instruction_placeholders:
returnvalue = returnvalue.replace(f"{cls.PLACEHOLDER_START}{placeholder}{cls.PLACEHOLDER_END}",
cls._instruction_placeholders[placeholder])
else:
Placeholder._logger.debug(f"String '{returnvalue}' does not contain a placeholder.")
return returnvalue
| 4,030
| 4,030
| 0.711166
| 428
| 4,030
| 6.471963
| 0.341122
| 0.066426
| 0.065704
| 0.01444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.000316
| 0.215385
| 4,030
| 1
| 4,030
| 4,030
| 0.875712
| 0.23871
| 0
| 0.126984
| 0
| 0
| 0.110963
| 0.046123
| 0
| 0
| 0
| 1
| 0
| 1
| 0.142857
| false
| 0
| 0.095238
| 0.047619
| 0.460317
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d14247acc40b4ee5cd60f29e092e6a97365e9742
| 330
|
py
|
Python
|
borsdata_sdk/models/InstrumentUpdate.py
|
tsjk/borsdata-sdk
|
97bc8fe917418de50f7484ed75e7d9ddd611c050
|
[
"MIT"
] | 8
|
2019-05-27T19:59:57.000Z
|
2021-02-09T15:03:46.000Z
|
borsdata_sdk/models/InstrumentUpdate.py
|
tsjk/borsdata-sdk
|
97bc8fe917418de50f7484ed75e7d9ddd611c050
|
[
"MIT"
] | 16
|
2019-05-14T12:20:28.000Z
|
2021-09-09T08:19:06.000Z
|
borsdata_sdk/models/InstrumentUpdate.py
|
tsjk/borsdata-sdk
|
97bc8fe917418de50f7484ed75e7d9ddd611c050
|
[
"MIT"
] | 3
|
2020-07-13T21:08:52.000Z
|
2021-11-30T00:20:40.000Z
|
class InstrumentUpdate:
insId: int
updatedAt: str
def __init__(self, insId, updatedAt):
self.insId = insId
self.updatedAt = updatedAt
def __str__(self):
return '{}: {}'.format(self.insId, self.updatedAt)
def __repr__(self):
return '{}: {}'.format(self.insId, self.updatedAt)
| 23.571429
| 58
| 0.615152
| 35
| 330
| 5.457143
| 0.342857
| 0.188482
| 0.282723
| 0.209424
| 0.397906
| 0.397906
| 0.397906
| 0
| 0
| 0
| 0
| 0
| 0.251515
| 330
| 13
| 59
| 25.384615
| 0.773279
| 0
| 0
| 0.2
| 0
| 0
| 0.036364
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0
| 0.2
| 0.8
| 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
| 0
| 0
|
0
| 4
|
d152c6acd4e3d0e3c1e0144b31232583136ea457
| 97
|
py
|
Python
|
userliteralmain.py
|
abarnert/userliteralhack
|
6e4d6b31372506141c73e8e23b935791b3a67278
|
[
"MIT"
] | 3
|
2015-06-02T19:26:23.000Z
|
2019-03-18T22:25:15.000Z
|
userliteralmain.py
|
abarnert/userliteralhack
|
6e4d6b31372506141c73e8e23b935791b3a67278
|
[
"MIT"
] | null | null | null |
userliteralmain.py
|
abarnert/userliteralhack
|
6e4d6b31372506141c73e8e23b935791b3a67278
|
[
"MIT"
] | null | null | null |
import userliteral
import userliteraltest
if __name__ == '__main__':
userliteraltest.test()
| 16.166667
| 26
| 0.773196
| 9
| 97
| 7.444444
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14433
| 97
| 5
| 27
| 19.4
| 0.807229
| 0
| 0
| 0
| 0
| 0
| 0.082474
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
d164e5e975ba58cd8f547482165d1bba36980c9a
| 80
|
py
|
Python
|
src/python/main.py
|
ludo237/ayy-lmao
|
ff8c6d3743faf0d3c5f2a0159a74e1c1ae2824d4
|
[
"Unlicense"
] | null | null | null |
src/python/main.py
|
ludo237/ayy-lmao
|
ff8c6d3743faf0d3c5f2a0159a74e1c1ae2824d4
|
[
"Unlicense"
] | 1
|
2019-10-02T14:31:10.000Z
|
2019-10-02T14:31:10.000Z
|
src/python/main.py
|
ludo237/ayy-lmao
|
ff8c6d3743faf0d3c5f2a0159a74e1c1ae2824d4
|
[
"Unlicense"
] | 2
|
2018-10-16T15:49:37.000Z
|
2019-10-02T14:25:32.000Z
|
"""Renders a the most important string you will ever need."""
print('Ayy LMAO')
| 26.666667
| 61
| 0.7125
| 13
| 80
| 4.384615
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15
| 80
| 2
| 62
| 40
| 0.838235
| 0.6875
| 0
| 0
| 0
| 0
| 0.421053
| 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
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
d17366ae2f87e56dba79b44d7a7c481fafe3d55d
| 609
|
bzl
|
Python
|
source/bazel/deps/cpp_httplib/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 33
|
2019-05-30T07:43:32.000Z
|
2021-12-30T13:12:32.000Z
|
source/bazel/deps/cpp_httplib/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 371
|
2019-05-16T15:23:50.000Z
|
2021-09-04T15:45:27.000Z
|
source/bazel/deps/cpp_httplib/get.bzl
|
luxe/unilang
|
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
|
[
"MIT"
] | 6
|
2019-08-22T17:37:36.000Z
|
2020-11-07T07:15:32.000Z
|
# Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def cppHttplib():
http_archive(
name="cpp_httplib" ,
build_file="//bazel/deps/cpp_httplib:build.BUILD" ,
sha256="166103fc4281a438e1f5b9611981f2351ab12136086404895fe5d22e5db3aff5" ,
strip_prefix="cpp-httplib-22615f96828a72d84019b748ede01fa11d905977" ,
urls = [
"https://github.com/Unilang/cpp-httplib/archive/22615f96828a72d84019b748ede01fa11d905977.tar.gz",
],
)
| 35.823529
| 109
| 0.71757
| 60
| 609
| 7.133333
| 0.716667
| 0.093458
| 0.070093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215415
| 0.16913
| 609
| 16
| 110
| 38.0625
| 0.630435
| 0.165846
| 0
| 0
| 1
| 0
| 0.619802
| 0.388119
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| true
| 0
| 0
| 0
| 0.090909
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
0f11380004f14666ff53ccade6ee5fa92fdaeae0
| 396
|
py
|
Python
|
landlab/components/flow_routing/__init__.py
|
csherwood-usgs/landlab
|
4f43055060b544b34e71eba7062c09866ad93640
|
[
"MIT"
] | 1
|
2016-12-04T01:16:54.000Z
|
2016-12-04T01:16:54.000Z
|
landlab/components/flow_routing/__init__.py
|
csherwood-usgs/landlab
|
4f43055060b544b34e71eba7062c09866ad93640
|
[
"MIT"
] | null | null | null |
landlab/components/flow_routing/__init__.py
|
csherwood-usgs/landlab
|
4f43055060b544b34e71eba7062c09866ad93640
|
[
"MIT"
] | null | null | null |
from .route_flow_dn import FlowRouter
from .lake_mapper import DepressionFinderAndRouter
from ..flow_director import flow_direction_DN
from ..flow_director.flow_direction_DN import(grid_flow_directions,
flow_directions)
__all__ = ['FlowRouter', 'DepressionFinderAndRouter', 'grid_flow_directions',
'flow_directions', 'flow_direction_DN']
| 44
| 77
| 0.727273
| 41
| 396
| 6.512195
| 0.341463
| 0.209738
| 0.168539
| 0.164794
| 0.2397
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204545
| 396
| 8
| 78
| 49.5
| 0.847619
| 0
| 0
| 0
| 0
| 0
| 0.219697
| 0.063131
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
0f2e88e868e32c1d0c8cb36e492bb836e186e1c9
| 1,570
|
py
|
Python
|
gateway/req.py
|
wasp/gateway
|
c91209ad886fc869261c02b0b2f890109091430b
|
[
"Apache-2.0"
] | 6
|
2017-08-06T02:54:59.000Z
|
2019-09-17T02:18:51.000Z
|
gateway/req.py
|
wasp/gateway
|
c91209ad886fc869261c02b0b2f890109091430b
|
[
"Apache-2.0"
] | null | null | null |
gateway/req.py
|
wasp/gateway
|
c91209ad886fc869261c02b0b2f890109091430b
|
[
"Apache-2.0"
] | 1
|
2016-10-07T02:04:12.000Z
|
2016-10-07T02:04:12.000Z
|
import asyncio
from typing import List, Tuple
class Request:
__slots__ = ('_method', '_version', '_headers', '_content', '_url',
'_transport', '_loop')
def __init__(self, method, version, headers, content, url, transport,
loop):
"""
Model of an HTTP Request, likely unbuffered.
:param method: Request METHOD
:param version: HTTP Version
:param headers: List of Tuples
:param content: Raw stream reader
:param url: Target URL
:param transport: asyncio transport, not to be used directly
:param loop: asyncio loop to read the content on
"""
self._method = method
self._version = version
self._headers = headers
self._content = content
self._url = url
self._transport = transport
self._loop = loop
@property
def method(self) -> bytes:
return self._method
@property
def version(self) -> str:
return self._version
@property
def headers(self) -> List[Tuple[bytes, bytes]]:
return self._headers
@property
def content(self) -> asyncio.StreamReader:
"""The raw content reader, note this can only be read once."""
return self._content
@property
def url(self) -> str:
return self._url
@property
def transport(self) -> asyncio.Transport:
# TODO: remove this being exposed.
return self._transport
@property
def loop(self) -> asyncio.BaseEventLoop:
return self._loop
| 26.610169
| 73
| 0.604459
| 173
| 1,570
| 5.317919
| 0.312139
| 0.083696
| 0.043478
| 0.058696
| 0.093478
| 0.093478
| 0.093478
| 0
| 0
| 0
| 0
| 0
| 0.306369
| 1,570
| 58
| 74
| 27.068966
| 0.844812
| 0.250318
| 0
| 0.2
| 0
| 0
| 0.045788
| 0
| 0
| 0
| 0
| 0.017241
| 0
| 1
| 0.228571
| false
| 0
| 0.057143
| 0.171429
| 0.542857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0f3db1eaaeae5a4a25b7bf8e6ec908ff63811869
| 223
|
py
|
Python
|
iexfinance/stocks/marketvolume.py
|
ArcticFaded/iexfinance
|
a8400737878c5727db5e588eb0f5f0e7f6c0dffc
|
[
"Apache-2.0"
] | 4
|
2019-12-09T21:24:28.000Z
|
2019-12-10T21:42:53.000Z
|
iexfinance/stocks/marketvolume.py
|
ArcticFaded/iexfinance
|
a8400737878c5727db5e588eb0f5f0e7f6c0dffc
|
[
"Apache-2.0"
] | 2
|
2019-12-07T17:20:26.000Z
|
2019-12-07T17:21:00.000Z
|
Lib/site-packages/iexfinance/stocks/marketvolume.py
|
MetroSpinnin/NaijaHacks-EdtechML-solution
|
ad9e50214187606d39b444201cdf1751d0269308
|
[
"bzip2-1.0.6"
] | 1
|
2020-01-27T19:30:37.000Z
|
2020-01-27T19:30:37.000Z
|
from iexfinance.base import _IEXBase
class MarketVolumeReader(_IEXBase):
@property
def url(self):
return "stock/market/volume"
def fetch(self):
return super(MarketVolumeReader, self).fetch()
| 18.583333
| 54
| 0.690583
| 24
| 223
| 6.333333
| 0.708333
| 0.131579
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215247
| 223
| 11
| 55
| 20.272727
| 0.868571
| 0
| 0
| 0
| 0
| 0
| 0.085202
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0.142857
| 0.285714
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0f75c5b5436b69f2eb1d38763ce259dcf922ab7e
| 93
|
py
|
Python
|
epymetheus/datasets/__init__.py
|
shishaboy/epymetheus
|
d8916b20c6b79e86e5aadb39c7c01a582659f03b
|
[
"BSD-3-Clause"
] | null | null | null |
epymetheus/datasets/__init__.py
|
shishaboy/epymetheus
|
d8916b20c6b79e86e5aadb39c7c01a582659f03b
|
[
"BSD-3-Clause"
] | null | null | null |
epymetheus/datasets/__init__.py
|
shishaboy/epymetheus
|
d8916b20c6b79e86e5aadb39c7c01a582659f03b
|
[
"BSD-3-Clause"
] | null | null | null |
# flake8: noqa
from .randomwalk import make_randomwalk
from .usstocks import fetch_usstocks
| 18.6
| 39
| 0.827957
| 12
| 93
| 6.25
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012346
| 0.129032
| 93
| 4
| 40
| 23.25
| 0.91358
| 0.129032
| 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
| 0
| 0
|
0
| 4
|
0f7819e7c0937dd6aa23bd3895a95b6b2f262a0f
| 1,190
|
py
|
Python
|
ClassSelect.py
|
Hua777/NSYSUSelcrs
|
b36dc9dd7329c6d20f23d666facaa8e6e5251c63
|
[
"MIT"
] | null | null | null |
ClassSelect.py
|
Hua777/NSYSUSelcrs
|
b36dc9dd7329c6d20f23d666facaa8e6e5251c63
|
[
"MIT"
] | null | null | null |
ClassSelect.py
|
Hua777/NSYSUSelcrs
|
b36dc9dd7329c6d20f23d666facaa8e6e5251c63
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
__author__ = "Hua777"
__copyright__ = "Copyright 2018, Hua777"
__version__ = "2.0"
__email__ = "liao.700529@gmail.com"
class ClassSelect(object):
def __init__(self, data):
self.Data = data
'''
self.Get = array[0]
self.Department = array[1]
self.Number = array[2]
self.Grade = array[3]
self.Code = array[4]
self.Name = array[5]
self.Url = array[6]
self.Point = array[7]
self.Stage = array[8]
self.Credit = array[9]
self.YearSemester = array[10]
self.CompulsoryElective = array[11]
self.Teacher = array[12]
self.Room = array[13]
self.Context = array[14]
'''
@property
def Get(self):
return self.Data[0]
@property
def Department(self):
return self.Data[1]
@property
def Number(self):
return self.Data[2]
@property
def Name(self):
return self.Data[5]
@property
def Point(self):
return self.Data[7]
@property
def Teacher(self):
return self.Data[12]
@property
def Room(self):
return self.Data[13]
| 20.517241
| 43
| 0.551261
| 143
| 1,190
| 4.447552
| 0.363636
| 0.113208
| 0.154088
| 0.198113
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.059553
| 0.322689
| 1,190
| 58
| 44
| 20.517241
| 0.729529
| 0.017647
| 0
| 0.25
| 0
| 0
| 0.077151
| 0.031157
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.25
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
0f8b978e8d287d1b10e143079dcd2270c845e5d0
| 904
|
py
|
Python
|
traffic/serializers.py
|
pangpifuta/react-ui-project
|
dea2ad1b114718f6d034e3afb94c75780d328198
|
[
"MIT"
] | null | null | null |
traffic/serializers.py
|
pangpifuta/react-ui-project
|
dea2ad1b114718f6d034e3afb94c75780d328198
|
[
"MIT"
] | 6
|
2020-06-05T20:28:09.000Z
|
2022-01-13T01:10:19.000Z
|
traffic/serializers.py
|
pangpifuta/react-ui-project
|
dea2ad1b114718f6d034e3afb94c75780d328198
|
[
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import reg
from django.contrib.auth.models import User
class RegSerializer(serializers.ModelSerializer):
class Meta:
model = reg
fields = ('id', 'saving_name', 'date', 'redu_percent')
# class CreateUserSerializer(serializers.ModelSerializer):
# class Meta:
# model = User
# fields = ('id', 'saving_name', 'date', 'redu_percent')
# extra_kwargs = {'password': {'write_only': True}}
# def create(self, validated_data):
# user = User.objects.create_user(validated_data['saving_name'],
# None,
# validated_data['password'])
# return user
# class UserSerializer(serializers.ModelSerializer):
# class Meta:
# model = User
# fields = ('id', 'saving_name')
| 31.172414
| 73
| 0.576327
| 84
| 904
| 6.047619
| 0.464286
| 0.07874
| 0.183071
| 0.206693
| 0.417323
| 0.338583
| 0.338583
| 0.244094
| 0.244094
| 0.244094
| 0
| 0
| 0.310841
| 904
| 28
| 74
| 32.285714
| 0.815409
| 0.646018
| 0
| 0
| 0
| 0
| 0.104693
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.428571
| 0
| 0.714286
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7e15ff9b05d0a057267702f1b78370cb6ab70d0b
| 245
|
py
|
Python
|
UR_Control/ur_online_control/utilities/files.py
|
ytakzk/Gradual-Assemblies
|
48579e7a2d73d51b95a685fc1b757024c96011d4
|
[
"MIT"
] | 1
|
2019-09-21T09:21:13.000Z
|
2019-09-21T09:21:13.000Z
|
UR_Control/ur_online_control/utilities/files.py
|
ytakzk/Gradual-Assemblies
|
48579e7a2d73d51b95a685fc1b757024c96011d4
|
[
"MIT"
] | null | null | null |
UR_Control/ur_online_control/utilities/files.py
|
ytakzk/Gradual-Assemblies
|
48579e7a2d73d51b95a685fc1b757024c96011d4
|
[
"MIT"
] | 1
|
2021-04-01T16:03:25.000Z
|
2021-04-01T16:03:25.000Z
|
'''
Created on 09.10.2017
@author: rustr
'''
def read_file_to_string(afile):
with file(afile) as f:
afile_str = f.read()
return afile_str
def read_file_to_list(afile):
return [line for line in open(afile, "r").readlines()]
| 18.846154
| 58
| 0.665306
| 40
| 245
| 3.875
| 0.625
| 0.090323
| 0.141935
| 0.167742
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.040816
| 0.2
| 245
| 13
| 58
| 18.846154
| 0.75
| 0.15102
| 0
| 0
| 0
| 0
| 0.004975
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0.166667
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7e1f0e55323136bcba1aa7171c925bb3880e2858
| 693
|
py
|
Python
|
problems/problem_3.py
|
ajaypokharel/n-solutions-for-one-python-problem
|
8a670069091bd1467b5606e810c93b8c11376ea6
|
[
"MIT"
] | null | null | null |
problems/problem_3.py
|
ajaypokharel/n-solutions-for-one-python-problem
|
8a670069091bd1467b5606e810c93b8c11376ea6
|
[
"MIT"
] | null | null | null |
problems/problem_3.py
|
ajaypokharel/n-solutions-for-one-python-problem
|
8a670069091bd1467b5606e810c93b8c11376ea6
|
[
"MIT"
] | null | null | null |
"""
todo: Write a Python program to add the sum of every digit in a given integer.
"""
from functools import reduce
# solution one using reduce
def add_sum_1(num):
return reduce(lambda x, y: int(x) + int(y), str(num))
# solution two using simple iteration
def add_sum_2(num):
total = 0
for item in str(num):
total += int(item)
return total
# solution using list pop() method
def add_sum_3(num):
total = 0
new_list = list(str(num))
while not new_list == []:
total += int(new_list.pop())
return total
# solution using simple list comprehension and sum built-in function
def add_sum_4(num):
return sum([int(item) for item in str(num)])
| 21.65625
| 78
| 0.665224
| 114
| 693
| 3.947368
| 0.447368
| 0.053333
| 0.08
| 0.053333
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 0.011236
| 0.229437
| 693
| 31
| 79
| 22.354839
| 0.831461
| 0.347763
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032258
| 0
| 1
| 0.25
| false
| 0
| 0.0625
| 0.125
| 0.5625
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
7e4aa7c32d97290a20064c4a56d138bd475a7ba9
| 229
|
py
|
Python
|
Fangz/spiders/Zufang.py
|
Deteriorator/RentingHouses
|
56b14640cd1d41045f60225819de554480ee516b
|
[
"Apache-2.0"
] | null | null | null |
Fangz/spiders/Zufang.py
|
Deteriorator/RentingHouses
|
56b14640cd1d41045f60225819de554480ee516b
|
[
"Apache-2.0"
] | null | null | null |
Fangz/spiders/Zufang.py
|
Deteriorator/RentingHouses
|
56b14640cd1d41045f60225819de554480ee516b
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import scrapy
class ZufangSpider(scrapy.Spider):
name = 'Zufang'
allowed_domains = ['su.zu.anjuke.com']
start_urls = ['http://su.zu.anjuke.com/']
def parse(self, response):
pass
| 19.083333
| 45
| 0.611354
| 29
| 229
| 4.758621
| 0.827586
| 0.057971
| 0.144928
| 0.188406
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005556
| 0.213974
| 229
| 11
| 46
| 20.818182
| 0.761111
| 0.091703
| 0
| 0
| 0
| 0
| 0.223301
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0.142857
| 0.142857
| 0
| 0.857143
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
7e597fb1b9dfa38bf944526cdb855a43d9427639
| 307
|
py
|
Python
|
plaguegame/__init__.py
|
NoUMelon/phen-cogs
|
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
|
[
"MIT"
] | 1
|
2021-06-01T10:12:09.000Z
|
2021-06-01T10:12:09.000Z
|
plaguegame/__init__.py
|
NoUMelon/phen-cogs
|
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
|
[
"MIT"
] | null | null | null |
plaguegame/__init__.py
|
NoUMelon/phen-cogs
|
f8d4de3a91f428114d66fd36ba38ecbd5ace83a3
|
[
"MIT"
] | null | null | null |
from .plague import Plague
__red_end_user_data_statement__ = "This cog stores data on users based off their interactions within the game. Examples of such data are their 'health state' (healthy or infected) or their 'game role' (user, doctor, plaguebearer)."
def setup(bot):
bot.add_cog(Plague(bot))
| 38.375
| 231
| 0.76873
| 48
| 307
| 4.729167
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153094
| 307
| 7
| 232
| 43.857143
| 0.873077
| 0
| 0
| 0
| 0
| 0.25
| 0.635179
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
7e7580a097173e32f9f12f1acd2ee852c3f4384c
| 211
|
py
|
Python
|
beetsplug/__init__.py
|
lionel-/BeetsPluginStructuredComments
|
cdd0ae28d0b5ff3db6ac227a65b522be673cadcf
|
[
"MIT"
] | 3
|
2020-12-23T10:16:51.000Z
|
2021-12-23T23:44:00.000Z
|
beetsplug/__init__.py
|
lionel-/BeetsPluginStructuredComments
|
cdd0ae28d0b5ff3db6ac227a65b522be673cadcf
|
[
"MIT"
] | null | null | null |
beetsplug/__init__.py
|
lionel-/BeetsPluginStructuredComments
|
cdd0ae28d0b5ff3db6ac227a65b522be673cadcf
|
[
"MIT"
] | 1
|
2020-12-30T14:07:18.000Z
|
2020-12-30T14:07:18.000Z
|
# Copyright: Copyright (c) 2020., Michael Toohig
# Author: Michael Toohig <michael dot toohig at gmail>
# License: See LICENSE.txt
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
| 26.375
| 55
| 0.763033
| 28
| 211
| 5.25
| 0.642857
| 0.176871
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022472
| 0.156398
| 211
| 7
| 56
| 30.142857
| 0.803371
| 0.597156
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 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
| 4
|
7e93cc1237cceb4957839e201f7b6dced00e834a
| 73
|
py
|
Python
|
sample/test6.py
|
MusaTamzid05/CodeDiffer
|
1f8d786bbf001e9efb6ce6b28763c5fcf098c355
|
[
"MIT"
] | null | null | null |
sample/test6.py
|
MusaTamzid05/CodeDiffer
|
1f8d786bbf001e9efb6ce6b28763c5fcf098c355
|
[
"MIT"
] | null | null | null |
sample/test6.py
|
MusaTamzid05/CodeDiffer
|
1f8d786bbf001e9efb6ce6b28763c5fcf098c355
|
[
"MIT"
] | null | null | null |
class Data:
def __init__(self, a, b):
self.testData = a + b
| 14.6
| 29
| 0.547945
| 11
| 73
| 3.272727
| 0.727273
| 0.111111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.328767
| 73
| 4
| 30
| 18.25
| 0.734694
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0e3529412d035d67cf93a9c2a3c618cb57846369
| 246
|
py
|
Python
|
torpc/__init__.py
|
fordoo/fizznet
|
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
|
[
"MIT"
] | 60
|
2015-10-16T03:18:38.000Z
|
2021-06-04T07:39:53.000Z
|
torpc/__init__.py
|
fordoo/fizznet
|
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
|
[
"MIT"
] | 4
|
2015-11-20T09:38:29.000Z
|
2016-09-06T15:27:35.000Z
|
torpc/__init__.py
|
fordoo/fizznet
|
55d83d11c3b37c3bde7fae8c3579e5cb712d1940
|
[
"MIT"
] | 15
|
2015-11-07T19:14:28.000Z
|
2019-10-12T07:35:50.000Z
|
# -*- coding: utf-8 -*-
from torpc.rpc import RPCConnection, RPCClient, RPCServer, DuplexRPCServer, RPCServerError
from torpc.tcp import Connection, TcpClient, TcpServer, ConnectionClosedError
from torpc.services import Services, NoServiceError
| 41
| 90
| 0.813008
| 26
| 246
| 7.692308
| 0.730769
| 0.135
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004545
| 0.105691
| 246
| 5
| 91
| 49.2
| 0.904545
| 0.085366
| 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
| 0
| 0
|
0
| 4
|
0e5347ffa619fe24fab8d7f16ec0db51de680e5a
| 442
|
py
|
Python
|
my/strategy_center.py
|
Michael-JC/inverstment_analysis
|
724bcda7606d3049e6299f7f3390872954f6628f
|
[
"Apache-2.0"
] | 1
|
2021-05-25T06:34:13.000Z
|
2021-05-25T06:34:13.000Z
|
my/strategy_center.py
|
Michael-JC/inverstment_analysis
|
724bcda7606d3049e6299f7f3390872954f6628f
|
[
"Apache-2.0"
] | null | null | null |
my/strategy_center.py
|
Michael-JC/inverstment_analysis
|
724bcda7606d3049e6299f7f3390872954f6628f
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
# coding:utf-8
"""
function:
@author: zkang kai
@contact: 474918208@qq.com
"""
class strategy_center(object):
"""
用来管理所有加载的策略
"""
def __init__():
pass
def add_strategy():
"""
加载新的策略
"""
pass
def delete_strategy():
"""
停止策略运行
"""
pass
def on_data():
"""
收到新的数据,判断哪些策略需要运算
"""
pass
| 12.277778
| 30
| 0.459276
| 39
| 442
| 5
| 0.794872
| 0.107692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037879
| 0.402715
| 442
| 35
| 31
| 12.628571
| 0.700758
| 0.303167
| 0
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.444444
| true
| 0.444444
| 0
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
0e7b2dc966fd257a7f34e8700c2734de285825f3
| 90
|
py
|
Python
|
haskpy/typeclasses/ord.py
|
jluttine/haskpy
|
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
|
[
"MIT"
] | 2
|
2021-04-08T18:34:39.000Z
|
2022-02-24T18:02:45.000Z
|
haskpy/typeclasses/ord.py
|
jluttine/haskpy
|
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
|
[
"MIT"
] | null | null | null |
haskpy/typeclasses/ord.py
|
jluttine/haskpy
|
79fca70b5f46d8551ed61b4bbd040de5f5ba0440
|
[
"MIT"
] | null | null | null |
"""**TODO**
.. autosummary::
:toctree:
Ord
"""
class Ord():
"""**TODO**"""
| 6.923077
| 18
| 0.411111
| 7
| 90
| 5.285714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.266667
| 90
| 12
| 19
| 7.5
| 0.560606
| 0.622222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
0e7c4f8d4530233621ff03393c6e6d3ba8e3328b
| 204
|
py
|
Python
|
Ope/Ope.py
|
nicolasdelp/SPJRUD-to-SQL
|
41e855d26112420aea4064b50d2ada1cfb527af8
|
[
"MIT"
] | null | null | null |
Ope/Ope.py
|
nicolasdelp/SPJRUD-to-SQL
|
41e855d26112420aea4064b50d2ada1cfb527af8
|
[
"MIT"
] | null | null | null |
Ope/Ope.py
|
nicolasdelp/SPJRUD-to-SQL
|
41e855d26112420aea4064b50d2ada1cfb527af8
|
[
"MIT"
] | null | null | null |
__author__ = "Nicolas Delplanque"
__credits__ = ["Nicolas Delplanque"]
__version__ = "1.0.1"
__maintainer__ = "Nicolas Delplanque"
__email__ = "nicolas.delplanque@student.umons.ac.be"
class Ope:
pass
| 25.5
| 52
| 0.754902
| 23
| 204
| 5.826087
| 0.695652
| 0.507463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.01676
| 0.122549
| 204
| 8
| 53
| 25.5
| 0.731844
| 0
| 0
| 0
| 0
| 0
| 0.473171
| 0.185366
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.142857
| 0
| 0
| 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
0e869eb1fb2938fd218b0b1fa1857b23a06c45a1
| 325
|
py
|
Python
|
deeptrain/util/__init__.py
|
Mario-Kart-Felix/deeptrain
|
45e066e9aa97c16780682d62250516c7d64d9897
|
[
"MIT"
] | 16
|
2020-09-15T14:27:05.000Z
|
2021-05-30T09:43:09.000Z
|
deeptrain/util/__init__.py
|
adbmd/deeptrain
|
fd412e68e23bce0d9997b0a619a6887ad557067e
|
[
"MIT"
] | 1
|
2020-09-18T00:44:17.000Z
|
2020-09-18T14:06:00.000Z
|
deeptrain/util/__init__.py
|
adbmd/deeptrain
|
fd412e68e23bce0d9997b0a619a6887ad557067e
|
[
"MIT"
] | 3
|
2020-09-17T16:56:28.000Z
|
2021-01-30T03:23:31.000Z
|
from . import configs
from . import logging
from . import saving
from . import searching
from . import training
from . import misc
from . import data_loaders
from . import experimental
from . import preprocessors
from .preprocessors import Preprocessor
from .preprocessors import GenericPreprocessor, TimeseriesPreprocessor
| 25
| 70
| 0.821538
| 37
| 325
| 7.189189
| 0.405405
| 0.338346
| 0.172932
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141538
| 325
| 12
| 71
| 27.083333
| 0.953405
| 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
| 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
| 4
|
0ea470113200e050c2d4415bc61ff0477ebfec72
| 325
|
py
|
Python
|
gregsprograms/plotvoltages.py
|
gjhartwell/cth-python
|
558148a5755fd0bd3b12e1380d365f8bf51efa19
|
[
"MIT"
] | null | null | null |
gregsprograms/plotvoltages.py
|
gjhartwell/cth-python
|
558148a5755fd0bd3b12e1380d365f8bf51efa19
|
[
"MIT"
] | null | null | null |
gregsprograms/plotvoltages.py
|
gjhartwell/cth-python
|
558148a5755fd0bd3b12e1380d365f8bf51efa19
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 9 12:50:34 2020
@author: hartwgj
"""
from gregsprograms import ohshots
from gregsprograms import OHVoltageUsed
#from gregsprograms import plotOHvolts
def plotvoltages(day,server):
shots=ohshots(day,day,server)
OHVoltageUsed(shots,server)
#plotOHvolts(shots,volts)
| 23.214286
| 39
| 0.744615
| 41
| 325
| 5.902439
| 0.634146
| 0.210744
| 0.285124
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043165
| 0.144615
| 325
| 14
| 40
| 23.214286
| 0.827338
| 0.421538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7ebe78248a2f1a32e96d52a6e20a275b8b7cc750
| 227
|
py
|
Python
|
pathcensus/nullmodels/__init__.py
|
sztal/pathcensus
|
0246b1450e5d7fa0421e283f980c367100fcdd6a
|
[
"MIT"
] | null | null | null |
pathcensus/nullmodels/__init__.py
|
sztal/pathcensus
|
0246b1450e5d7fa0421e283f980c367100fcdd6a
|
[
"MIT"
] | null | null | null |
pathcensus/nullmodels/__init__.py
|
sztal/pathcensus
|
0246b1450e5d7fa0421e283f980c367100fcdd6a
|
[
"MIT"
] | null | null | null |
"""Null model classes implementing different variants
of the configuration model.
The classes implemented in this module are simple wrappers
around :py:mod:`NEMtropy` package.
"""
from .ubcm import UBCM
from .uecm import UECM
| 25.222222
| 58
| 0.792952
| 32
| 227
| 5.625
| 0.78125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140969
| 227
| 8
| 59
| 28.375
| 0.923077
| 0.762115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 4
|
7ec8f9412c83c20afdb244814f75d1f3cb8b7e5f
| 227
|
py
|
Python
|
software/Proyecto A/Pruebas/prueba_pybluez.py
|
USB-EC3883-III-2019/EC3883-G07
|
b639faa2a7b5a0a658e20d5d0993f9a76276d154
|
[
"MIT"
] | null | null | null |
software/Proyecto A/Pruebas/prueba_pybluez.py
|
USB-EC3883-III-2019/EC3883-G07
|
b639faa2a7b5a0a658e20d5d0993f9a76276d154
|
[
"MIT"
] | null | null | null |
software/Proyecto A/Pruebas/prueba_pybluez.py
|
USB-EC3883-III-2019/EC3883-G07
|
b639faa2a7b5a0a658e20d5d0993f9a76276d154
|
[
"MIT"
] | null | null | null |
import bluetooth
print "Buscando..."
nearby_devices = bluetooth.discover_devices(lookup_names = True)
print "Se encontraron %d dispositivos" %len(nearby_devices)
for name, addr in nearby_devices:
print "%s - %s" %(addr,name)
| 28.375
| 64
| 0.762115
| 31
| 227
| 5.419355
| 0.645161
| 0.232143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118943
| 227
| 8
| 65
| 28.375
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.166667
| null | null | 0.5
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
7ee7fb6c15653fb0276b94772c69118d7f4ef90f
| 155
|
py
|
Python
|
tests/test_migrator_func.py
|
Drizzt1991/plasticine
|
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
|
[
"MIT"
] | null | null | null |
tests/test_migrator_func.py
|
Drizzt1991/plasticine
|
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
|
[
"MIT"
] | null | null | null |
tests/test_migrator_func.py
|
Drizzt1991/plasticine
|
be61baa88f53bdfa666d068a14f17ccc0cfe4d02
|
[
"MIT"
] | null | null | null |
from unittest import TestCase
class TestMigratorFunc(TestCase):
def setUp(self):
pass
def test_simple_migration(self):
pass
| 11.071429
| 36
| 0.664516
| 17
| 155
| 5.941176
| 0.764706
| 0.158416
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.277419
| 155
| 13
| 37
| 11.923077
| 0.901786
| 0
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.333333
| 0.166667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
7eebdfb7a78221aab42ce8e9b101512661a2aa1f
| 175
|
py
|
Python
|
dentexchange/apps/libs/views/list.py
|
hellhound/dentexchange
|
58ae303e842404fc9e1860f294ec8044a332bef3
|
[
"BSD-3-Clause"
] | 1
|
2017-11-09T23:09:51.000Z
|
2017-11-09T23:09:51.000Z
|
dentexchange/apps/libs/views/list.py
|
hellhound/dentexchange
|
58ae303e842404fc9e1860f294ec8044a332bef3
|
[
"BSD-3-Clause"
] | null | null | null |
dentexchange/apps/libs/views/list.py
|
hellhound/dentexchange
|
58ae303e842404fc9e1860f294ec8044a332bef3
|
[
"BSD-3-Clause"
] | 3
|
2015-08-11T16:58:47.000Z
|
2021-01-04T08:23:51.000Z
|
# -*- coding:utf-8 -*-
from django.views.generic.list import ListView
from .. import constants
class DentexchangeListView(ListView):
paginate_by = constants.PAGINATE_BY
| 21.875
| 46
| 0.76
| 21
| 175
| 6.238095
| 0.714286
| 0.152672
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006579
| 0.131429
| 175
| 7
| 47
| 25
| 0.855263
| 0.114286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 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
| 4
|
7d2bc43428c6b9385c7632db22723c7a118c3487
| 95
|
py
|
Python
|
twitterapp/apps.py
|
MirzaBaig715/simple-python-twitter
|
6eaa87e7d44ea37ff3e54758ad3106f7fc1ae819
|
[
"Apache-2.0"
] | 1
|
2021-08-19T02:36:04.000Z
|
2021-08-19T02:36:04.000Z
|
twitterapp/apps.py
|
MirzaBaig715/simple-python-twitter
|
6eaa87e7d44ea37ff3e54758ad3106f7fc1ae819
|
[
"Apache-2.0"
] | 4
|
2020-02-11T22:54:06.000Z
|
2021-06-10T20:28:39.000Z
|
twitterapp/apps.py
|
MirzaBaig715/simple-python-twitter
|
6eaa87e7d44ea37ff3e54758ad3106f7fc1ae819
|
[
"Apache-2.0"
] | null | null | null |
from django.apps import AppConfig
class TwitterappConfig(AppConfig):
name = 'twitterapp'
| 15.833333
| 34
| 0.768421
| 10
| 95
| 7.3
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 95
| 5
| 35
| 19
| 0.9125
| 0
| 0
| 0
| 0
| 0
| 0.105263
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7d356da07aabcc14e54e8ffe487447a362980ad2
| 547
|
py
|
Python
|
pyphone/controllers/top_controller.py
|
ChrisDeadman/pyPhone
|
3ed2a94f6d3434135172d8706dedf1963e2ff6da
|
[
"MIT"
] | 1
|
2018-12-08T21:11:28.000Z
|
2018-12-08T21:11:28.000Z
|
pyphone/controllers/top_controller.py
|
ChrisDeadman/pyPhone
|
3ed2a94f6d3434135172d8706dedf1963e2ff6da
|
[
"MIT"
] | 1
|
2018-09-26T15:40:42.000Z
|
2018-09-26T15:40:42.000Z
|
pyphone/controllers/top_controller.py
|
ChrisDeadman/pyPhone
|
3ed2a94f6d3434135172d8706dedf1963e2ff6da
|
[
"MIT"
] | null | null | null |
from pyphone import controllers
from pyphone.controllers.controller import Controller
from pyphone.panels import *
class TopController(Controller):
def show_call_panel(self):
from pyphone.controllers import CallController
if self.panel.show_panel is not CallPanel:
self.panel.show_panel(CallPanel)
controllers.get(CallController).show_dial_panel()
def show_message_panel(self):
self.panel.show_panel(MessagePanel)
def show_info_panel(self):
self.panel.show_panel(InfoPanel)
| 28.789474
| 61
| 0.736746
| 66
| 547
| 5.924242
| 0.363636
| 0.112532
| 0.132992
| 0.184143
| 0.138107
| 0.138107
| 0
| 0
| 0
| 0
| 0
| 0
| 0.193784
| 547
| 18
| 62
| 30.388889
| 0.886621
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.307692
| 0
| 0.615385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
7d3c1a84d7a3b16260466795032115322e427f22
| 265
|
py
|
Python
|
Python/1-8/Animals list.py
|
Hisham-TK/Scratches
|
e3822b07e8961094660cc72b0ce39b56f7a1d901
|
[
"MIT"
] | null | null | null |
Python/1-8/Animals list.py
|
Hisham-TK/Scratches
|
e3822b07e8961094660cc72b0ce39b56f7a1d901
|
[
"MIT"
] | 3
|
2020-05-20T09:08:31.000Z
|
2021-05-11T14:49:05.000Z
|
Python/1-8/Animals list.py
|
Hisham-TK/Scratches
|
e3822b07e8961094660cc72b0ce39b56f7a1d901
|
[
"MIT"
] | null | null | null |
<<<<<<< HEAD
animals_list=lambda a:''.join(f'{i}. {v}\n' for i,v in enumerate(a))
animals=['cat','dog','horse']
print(animals_list(animals), '1. car\n2. dog\n3. horse\n')
=======
animals_list=lambda a:''.join(f'')
>>>>>>> d6817e098f877192bbd012f82e53b6f70c4dced9
| 26.5
| 68
| 0.645283
| 38
| 265
| 4.421053
| 0.578947
| 0.196429
| 0.202381
| 0.214286
| 0.27381
| 0.27381
| 0
| 0
| 0
| 0
| 0
| 0.115226
| 0.083019
| 265
| 9
| 69
| 29.444444
| 0.576132
| 0
| 0
| 0
| 0
| 0
| 0.177358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.142857
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
ada4eb5df93650730e4f0df8e2cfc7865ed6456f
| 5,896
|
py
|
Python
|
tests/tracer/test_agent.py
|
brettlangdon/dd-trace-py
|
95e2641d734669719ca07841de58e233cb0f49e9
|
[
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null |
tests/tracer/test_agent.py
|
brettlangdon/dd-trace-py
|
95e2641d734669719ca07841de58e233cb0f49e9
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 3
|
2021-10-07T02:22:59.000Z
|
2021-12-15T02:15:48.000Z
|
tests/tracer/test_agent.py
|
depop/dd-trace-py
|
95e2641d734669719ca07841de58e233cb0f49e9
|
[
"Apache-2.0",
"BSD-3-Clause"
] | 1
|
2020-09-28T06:20:53.000Z
|
2020-09-28T06:20:53.000Z
|
import pytest
from ddtrace.internal import agent
def test_hostname(monkeypatch):
assert agent.get_hostname() == "localhost"
monkeypatch.setenv("DD_AGENT_HOST", "host")
assert agent.get_hostname() == "host"
def test_trace_port(monkeypatch):
assert agent.get_trace_port() == 8126
monkeypatch.setenv("DD_TRACE_AGENT_PORT", "1235")
assert agent.get_trace_port() == 1235
monkeypatch.setenv("DD_AGENT_PORT", "1234")
assert agent.get_trace_port() == 1234
def test_stats_port(monkeypatch):
assert agent.get_stats_port() == 8125
monkeypatch.setenv("DD_DOGSTATSD_PORT", "1235")
assert agent.get_stats_port() == 1235
def test_trace_url(monkeypatch, mocker):
mock_exists = mocker.patch("os.path.exists")
# with nothing set by user, and the default UDS available, we choose UDS
mock_exists.return_value = True
assert agent.get_trace_url() == "unix:///var/run/datadog/apm.socket"
mock_exists.assert_called_once_with("/var/run/datadog/apm.socket")
mock_exists.reset_mock()
# with nothing set by user, and the default UDS unavailable, we choose default http address
mock_exists.return_value = False
assert agent.get_trace_url() == "http://localhost:8126"
mock_exists.assert_called_once_with("/var/run/datadog/apm.socket")
mock_exists.reset_mock()
# with port set by user, and default UDS unavailable, we choose user settings
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
assert agent.get_trace_url() == "http://localhost:1235"
mock_exists.assert_not_called()
# with host set by user, and default UDS unavailable, we choose user settings
with monkeypatch.context() as m:
m.setenv("DD_AGENT_HOST", "mars")
assert agent.get_trace_url() == "http://mars:8126"
mock_exists.assert_not_called()
# with host and port set by user, and default UDS unavailable, we choose user settings
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
m.setenv("DD_AGENT_HOST", "mars")
assert agent.get_trace_url() == "http://mars:1235"
mock_exists.assert_not_called()
# with port set by user, and default UDS available, we choose user settings
mock_exists.return_value = True
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
assert agent.get_trace_url() == "http://localhost:1235"
mock_exists.assert_not_called()
# with host set by user, and default UDS available, we choose user settings
with monkeypatch.context() as m:
m.setenv("DD_AGENT_HOST", "mars")
assert agent.get_trace_url() == "http://mars:8126"
mock_exists.assert_not_called()
# with host and port set by user, and default UDS available, we choose user settings
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
m.setenv("DD_AGENT_HOST", "mars")
assert agent.get_trace_url() == "http://mars:1235"
mock_exists.assert_not_called()
# with port, host, and url set by user, and default UDS available, we choose url
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
m.setenv("DD_AGENT_HOST", "mars")
m.setenv("DD_TRACE_AGENT_URL", "http://saturn:1111")
assert agent.get_trace_url() == "http://saturn:1111"
mock_exists.assert_not_called()
# with port, host, and url set by user, and default UDS unavailable, we choose url
mock_exists.return_value = False
with monkeypatch.context() as m:
m.setenv("DD_TRACE_AGENT_PORT", "1235")
m.setenv("DD_AGENT_HOST", "mars")
m.setenv("DD_TRACE_AGENT_URL", "http://saturn:1111")
assert agent.get_trace_url() == "http://saturn:1111"
mock_exists.assert_not_called()
def test_stats_url(monkeypatch):
assert agent.get_stats_url() == "udp://localhost:8125"
monkeypatch.setenv("DD_AGENT_HOST", "saturn")
assert agent.get_stats_url() == "udp://saturn:8125"
monkeypatch.setenv("DD_DOGSTATSD_PORT", "1235")
assert agent.get_stats_url() == "udp://saturn:1235"
monkeypatch.setenv("DD_DOGSTATSD_URL", "udp://mars:1234")
assert agent.get_stats_url() == "udp://mars:1234"
def test_get_connection():
with pytest.raises(ValueError):
agent.get_connection("bad://localhost:1234", timeout=1)
with pytest.raises(ValueError):
agent.get_connection(":#@$@!//localhost:1234", timeout=1)
with pytest.raises(ValueError):
agent.get_connection("", timeout=1)
def test_verify_url():
agent.verify_url("http://localhost:1234")
agent.verify_url("https://localhost:1234")
agent.verify_url("https://localhost")
agent.verify_url("http://192.168.1.1")
agent.verify_url("unix:///file.sock")
agent.verify_url("unix:///file")
with pytest.raises(ValueError) as e:
agent.verify_url("unix://")
assert str(e.value) == "Invalid file path in Agent URL 'unix://'"
with pytest.raises(ValueError) as e:
agent.verify_url("http2://localhost:1234")
assert (
str(e.value)
== "Unsupported protocol 'http2' in Agent URL 'http2://localhost:1234'. Must be one of: http, https, unix"
)
with pytest.raises(ValueError) as e:
agent.verify_url("adsf")
assert str(e.value) == "Unsupported protocol '' in Agent URL 'adsf'. Must be one of: http, https, unix"
with pytest.raises(ValueError) as e:
agent.verify_url("http://")
assert str(e.value) == "Invalid hostname in Agent URL 'http://'"
with pytest.raises(ValueError) as e:
agent.verify_url("https://")
assert str(e.value) == "Invalid hostname in Agent URL 'https://'"
with pytest.raises(ValueError) as e:
agent.verify_url("unix://")
assert str(e.value) == "Invalid file path in Agent URL 'unix://'"
| 37.794872
| 114
| 0.67673
| 822
| 5,896
| 4.654501
| 0.111922
| 0.050183
| 0.076843
| 0.064558
| 0.847883
| 0.749085
| 0.718244
| 0.661526
| 0.661526
| 0.602196
| 0
| 0.033905
| 0.18962
| 5,896
| 155
| 115
| 38.03871
| 0.766848
| 0.13365
| 0
| 0.559633
| 0
| 0.009174
| 0.264862
| 0.030802
| 0
| 0
| 0
| 0
| 0.33945
| 1
| 0.06422
| false
| 0
| 0.018349
| 0
| 0.082569
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
adcb07395785f1b34a897994aced063dc261951f
| 98
|
py
|
Python
|
qg_interface/apps.py
|
kuPacemaker/restful-unilm-django
|
679bcbc7f76e3a8e2e63f11cb3d9bc188ff8fc23
|
[
"MIT"
] | 1
|
2020-10-25T12:31:33.000Z
|
2020-10-25T12:31:33.000Z
|
qg_interface/apps.py
|
kuPacemaker/restful-unilm-django
|
679bcbc7f76e3a8e2e63f11cb3d9bc188ff8fc23
|
[
"MIT"
] | 1
|
2021-07-18T11:14:51.000Z
|
2021-07-18T14:38:00.000Z
|
qg_interface/apps.py
|
kuPacemaker/restful-unilm-django
|
679bcbc7f76e3a8e2e63f11cb3d9bc188ff8fc23
|
[
"MIT"
] | null | null | null |
from django.apps import AppConfig
class QgInterfaceConfig(AppConfig):
name = 'qg_interface'
| 16.333333
| 35
| 0.77551
| 11
| 98
| 6.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153061
| 98
| 5
| 36
| 19.6
| 0.903614
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
adefa6fb523eb8fe8f9dbb3c105ba83a69e29a5b
| 174
|
py
|
Python
|
molecule/resources/tests/conftest.py
|
hurricanehrndz/ansible-pyenv
|
fd1db76d1baf98ba70d801725097a752071fcda3
|
[
"MIT"
] | null | null | null |
molecule/resources/tests/conftest.py
|
hurricanehrndz/ansible-pyenv
|
fd1db76d1baf98ba70d801725097a752071fcda3
|
[
"MIT"
] | null | null | null |
molecule/resources/tests/conftest.py
|
hurricanehrndz/ansible-pyenv
|
fd1db76d1baf98ba70d801725097a752071fcda3
|
[
"MIT"
] | null | null | null |
import os
import pytest
@pytest.fixture
def scenario():
implementation = "{}_pyenv_root".format(os.environ['TEST_CASE'])
return pytest.importorskip(implementation)
| 19.333333
| 68
| 0.752874
| 20
| 174
| 6.4
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126437
| 174
| 8
| 69
| 21.75
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.126437
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.5
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
adff754cb9620cfdf53f1819529b537eb33a04bb
| 191
|
py
|
Python
|
agilecrm/exceptions.py
|
GearPlug/agilecrm-python
|
cffba6d0a4e0ef5d67ca6f622f441bbc0028204c
|
[
"MIT"
] | null | null | null |
agilecrm/exceptions.py
|
GearPlug/agilecrm-python
|
cffba6d0a4e0ef5d67ca6f622f441bbc0028204c
|
[
"MIT"
] | null | null | null |
agilecrm/exceptions.py
|
GearPlug/agilecrm-python
|
cffba6d0a4e0ef5d67ca6f622f441bbc0028204c
|
[
"MIT"
] | null | null | null |
class BaseError(Exception):
pass
class UnauthorizedError(BaseError):
pass
class WrongFormatInputError(BaseError):
pass
class ContactsLimitExceededError(BaseError):
pass
| 12.733333
| 44
| 0.759162
| 16
| 191
| 9.0625
| 0.4375
| 0.186207
| 0.248276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17801
| 191
| 14
| 45
| 13.642857
| 0.923567
| 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 | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
bc01bcf11991ed1dd12a8203923c2efd3b067732
| 170
|
py
|
Python
|
slownik_kwadrat.py
|
grzegorzwojdyga/SDA_excercises_4
|
bf5bfb42b410deb9deb043b6553629e8e0e2e5ae
|
[
"MIT"
] | null | null | null |
slownik_kwadrat.py
|
grzegorzwojdyga/SDA_excercises_4
|
bf5bfb42b410deb9deb043b6553629e8e0e2e5ae
|
[
"MIT"
] | null | null | null |
slownik_kwadrat.py
|
grzegorzwojdyga/SDA_excercises_4
|
bf5bfb42b410deb9deb043b6553629e8e0e2e5ae
|
[
"MIT"
] | null | null | null |
"""
Napisz program, który pobiera od użytkownika liczbę N,
następnie tworzy słownik z kluczami od 1 do N z wartościami,
które są kwadratami kluczy.
"""
| 34
| 66
| 0.688235
| 23
| 170
| 5.086957
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007874
| 0.252941
| 170
| 5
| 67
| 34
| 0.913386
| 0.841176
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bc2a0a475642d9a11514c1d4d670b2d403c1df08
| 35
|
py
|
Python
|
GooglePythonClass/lect2/Base.py
|
penanrajput/PythonCourseContent
|
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
|
[
"MIT"
] | null | null | null |
GooglePythonClass/lect2/Base.py
|
penanrajput/PythonCourseContent
|
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
|
[
"MIT"
] | null | null | null |
GooglePythonClass/lect2/Base.py
|
penanrajput/PythonCourseContent
|
074a4af9c83a8a6b9b4608ce341ed96d1bd2e999
|
[
"MIT"
] | 1
|
2020-12-19T19:29:17.000Z
|
2020-12-19T19:29:17.000Z
|
# Base.py
class Base:
foo = 10
| 8.75
| 12
| 0.571429
| 6
| 35
| 3.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.314286
| 35
| 3
| 13
| 11.666667
| 0.75
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 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
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
bc2a0c4604910fb924e072daa907e0690bc48c60
| 119
|
py
|
Python
|
lang_spider/__init__.py
|
langgithub/LangSpider
|
fecd1298e606a09195c4f0fb72bc5c6b3a058900
|
[
"MIT"
] | 1
|
2020-08-31T15:53:59.000Z
|
2020-08-31T15:53:59.000Z
|
lang_spider/__init__.py
|
langgithub/LangSpider
|
fecd1298e606a09195c4f0fb72bc5c6b3a058900
|
[
"MIT"
] | null | null | null |
lang_spider/__init__.py
|
langgithub/LangSpider
|
fecd1298e606a09195c4f0fb72bc5c6b3a058900
|
[
"MIT"
] | 1
|
2020-08-31T15:54:02.000Z
|
2020-08-31T15:54:02.000Z
|
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author:yuanlang
# creat_time: 2020/7/16 下午6:05
# file: __init__.py
| 14.875
| 30
| 0.638655
| 19
| 119
| 3.736842
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 0.159664
| 119
| 7
| 31
| 17
| 0.59
| 0.89916
| 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
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
bc3c12e1af918744c3082854c9bed8cc92f55b27
| 175
|
py
|
Python
|
todo/forms.py
|
preyash2047/Django_Todo_Project
|
6494032f07a5eca02faccc5dd4ad5be0c14b8e9e
|
[
"MIT"
] | null | null | null |
todo/forms.py
|
preyash2047/Django_Todo_Project
|
6494032f07a5eca02faccc5dd4ad5be0c14b8e9e
|
[
"MIT"
] | null | null | null |
todo/forms.py
|
preyash2047/Django_Todo_Project
|
6494032f07a5eca02faccc5dd4ad5be0c14b8e9e
|
[
"MIT"
] | null | null | null |
from django.forms import ModelForm
from .models import todo
class TodoForm(ModelForm):
class Meta():
model = todo
fields = ['title', "memo", 'importent']
| 21.875
| 47
| 0.651429
| 20
| 175
| 5.7
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.234286
| 175
| 7
| 48
| 25
| 0.850746
| 0
| 0
| 0
| 0
| 0
| 0.102857
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.833333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
cb634b885057da815547524744ceed4c875929d1
| 157
|
py
|
Python
|
Strategy/after_strategy/AbsStrategy.py
|
deorerohan/DesignPatterns
|
2bd698246e12ed289917bb4e3b84eaa2210534fd
|
[
"MIT"
] | null | null | null |
Strategy/after_strategy/AbsStrategy.py
|
deorerohan/DesignPatterns
|
2bd698246e12ed289917bb4e3b84eaa2210534fd
|
[
"MIT"
] | null | null | null |
Strategy/after_strategy/AbsStrategy.py
|
deorerohan/DesignPatterns
|
2bd698246e12ed289917bb4e3b84eaa2210534fd
|
[
"MIT"
] | null | null | null |
import abc
class AbsStrategy(metaclass = abc.ABCMeta):
@abc.abstractclassmethod
def calculate(self, order):
"""calculate abstract method"""
| 22.428571
| 43
| 0.700637
| 16
| 157
| 6.875
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191083
| 157
| 7
| 44
| 22.428571
| 0.866142
| 0.159236
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 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
| 4
|
cb7b4489ae6299bb0089c633ed8ad60501d42043
| 12,534
|
py
|
Python
|
test/unit/test_crypto_wrapping_keys.py
|
seebees/aws-encryption-sdk-python
|
7498bafab9c231abe0694f856f299af59d0e7826
|
[
"Apache-2.0"
] | null | null | null |
test/unit/test_crypto_wrapping_keys.py
|
seebees/aws-encryption-sdk-python
|
7498bafab9c231abe0694f856f299af59d0e7826
|
[
"Apache-2.0"
] | 1
|
2019-05-30T22:14:47.000Z
|
2019-05-30T22:14:47.000Z
|
test/unit/test_crypto_wrapping_keys.py
|
seebees/aws-encryption-sdk-python
|
7498bafab9c231abe0694f856f299af59d0e7826
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
"""Unit test suite for ``aws_encryption_sdk.internal.crypto.wrapping_keys``."""
import pytest
from mock import MagicMock, sentinel
from pytest_mock import mocker # noqa pylint: disable=unused-import
import aws_encryption_sdk.internal.crypto.wrapping_keys
from aws_encryption_sdk.exceptions import IncorrectMasterKeyError, InvalidDataKeyError
from aws_encryption_sdk.identifiers import EncryptionKeyType, EncryptionType
from aws_encryption_sdk.internal.crypto.wrapping_keys import WrappingKey
from aws_encryption_sdk.internal.structures import EncryptedData
from .test_crypto import VALUES
pytestmark = [pytest.mark.unit, pytest.mark.local]
@pytest.yield_fixture
def patch_default_backend(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "default_backend")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.default_backend
@pytest.yield_fixture
def patch_serialization(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "serialization")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.serialization
@pytest.yield_fixture
def patch_derive_data_encryption_key(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "derive_data_encryption_key")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.derive_data_encryption_key
@pytest.yield_fixture
def patch_urandom(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys.os, "urandom")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.os.urandom
@pytest.yield_fixture
def patch_serialize_encryption_context(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "serialize_encryption_context")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.serialize_encryption_context
@pytest.yield_fixture
def patch_encrypt(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "encrypt")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.encrypt
@pytest.yield_fixture
def patch_decrypt(mocker):
mocker.patch.object(aws_encryption_sdk.internal.crypto.wrapping_keys, "decrypt")
yield aws_encryption_sdk.internal.crypto.wrapping_keys.decrypt
def mock_wrapping_rsa_keys():
mock_wrapping_rsa_private_key = MagicMock()
mock_wrapping_rsa_public_key = MagicMock()
mock_wrapping_rsa_private_key.public_key.return_value = mock_wrapping_rsa_public_key
return mock_wrapping_rsa_private_key, mock_wrapping_rsa_public_key
def mock_encrypted_data():
return EncryptedData(iv=VALUES["iv"], ciphertext=VALUES["ciphertext"], tag=VALUES["tag"])
def test_wrapping_key_init_private(patch_default_backend, patch_serialization):
wrapping_algorithm = MagicMock()
wrapping_key = MagicMock()
test_wrapping_key = WrappingKey(
wrapping_algorithm=wrapping_algorithm, wrapping_key=wrapping_key, wrapping_key_type=EncryptionKeyType.PRIVATE
)
assert test_wrapping_key.wrapping_algorithm is wrapping_algorithm
assert test_wrapping_key.wrapping_key_type is EncryptionKeyType.PRIVATE
patch_serialization.load_pem_private_key.assert_called_once_with(
data=wrapping_key, password=None, backend=patch_default_backend.return_value
)
assert not patch_serialization.load_pem_public_key.called
assert test_wrapping_key._wrapping_key is patch_serialization.load_pem_private_key.return_value
def test_wrapping_key_init_private_with_password(patch_default_backend, patch_serialization):
wrapping_algorithm = MagicMock()
wrapping_key = MagicMock()
WrappingKey(
wrapping_algorithm=wrapping_algorithm,
wrapping_key=wrapping_key,
wrapping_key_type=EncryptionKeyType.PRIVATE,
password=sentinel.password,
)
patch_serialization.load_pem_private_key.assert_called_once_with(
data=wrapping_key, password=sentinel.password, backend=patch_default_backend.return_value
)
def test_wrapping_key_init_public(patch_default_backend, patch_serialization):
wrapping_algorithm = MagicMock()
wrapping_key = MagicMock()
test_wrapping_key = WrappingKey(
wrapping_algorithm=wrapping_algorithm, wrapping_key=wrapping_key, wrapping_key_type=EncryptionKeyType.PUBLIC
)
patch_serialization.load_pem_public_key.assert_called_once_with(
data=wrapping_key, backend=patch_default_backend.return_value
)
assert not patch_serialization.load_pem_private_key.called
assert test_wrapping_key._wrapping_key is patch_serialization.load_pem_public_key.return_value
def test_wrapping_key_init_symmetric(patch_default_backend, patch_serialization, patch_derive_data_encryption_key):
wrapping_algorithm = MagicMock()
wrapping_key = MagicMock()
test_wrapping_key = WrappingKey(
wrapping_algorithm=wrapping_algorithm, wrapping_key=wrapping_key, wrapping_key_type=EncryptionKeyType.SYMMETRIC
)
assert not patch_serialization.load_pem_private_key.called
assert not patch_serialization.load_pem_public_key.called
assert test_wrapping_key._wrapping_key is wrapping_key
patch_derive_data_encryption_key.assert_called_once_with(
source_key=wrapping_key, algorithm=wrapping_algorithm.algorithm, message_id=None
)
assert test_wrapping_key._derived_wrapping_key is patch_derive_data_encryption_key.return_value
def test_wrapping_key_init_invalid_key_type():
with pytest.raises(InvalidDataKeyError) as excinfo:
WrappingKey(wrapping_algorithm=MagicMock(), wrapping_key=MagicMock(), wrapping_key_type=sentinel.key_type)
excinfo.match(r"Invalid wrapping_key_type: *")
def test_wrapping_key_encrypt_symmetric(
patch_default_backend,
patch_serialization,
patch_serialize_encryption_context,
patch_derive_data_encryption_key,
patch_encrypt,
patch_urandom,
):
wrapping_algorithm = MagicMock()
wrapping_key = MagicMock()
test_wrapping_key = WrappingKey(
wrapping_algorithm=wrapping_algorithm, wrapping_key=wrapping_key, wrapping_key_type=EncryptionKeyType.SYMMETRIC
)
test = test_wrapping_key.encrypt(
plaintext_data_key=sentinel.plaintext_data_key, encryption_context=sentinel.encryption_context
)
assert not patch_serialization.load_pem_private_key.called
assert not patch_serialization.load_pem_public_key.called
patch_serialize_encryption_context.assert_called_once_with(encryption_context=sentinel.encryption_context)
patch_urandom.assert_called_once_with(wrapping_algorithm.algorithm.iv_len)
patch_encrypt.assert_called_once_with(
algorithm=wrapping_algorithm.algorithm,
key=patch_derive_data_encryption_key.return_value,
plaintext=sentinel.plaintext_data_key,
associated_data=patch_serialize_encryption_context.return_value,
iv=patch_urandom.return_value,
)
assert test is patch_encrypt.return_value
def test_wrapping_key_encrypt_private(
patch_default_backend, patch_serialization, patch_serialize_encryption_context, patch_encrypt
):
private_key, public_key = mock_wrapping_rsa_keys()
patch_serialization.load_pem_private_key.return_value = private_key
public_key.encrypt.return_value = VALUES["ciphertext"]
mock_wrapping_algorithm = MagicMock(encryption_type=EncryptionType.ASYMMETRIC)
test_wrapping_key = WrappingKey(
wrapping_algorithm=mock_wrapping_algorithm,
wrapping_key=sentinel.wrapping_key,
wrapping_key_type=EncryptionKeyType.PRIVATE,
)
test = test_wrapping_key.encrypt(
plaintext_data_key=sentinel.plaintext_data_key, encryption_context=sentinel.encryption_context
)
private_key.public_key.assert_called_once_with()
public_key.encrypt.assert_called_once_with(
plaintext=sentinel.plaintext_data_key, padding=mock_wrapping_algorithm.padding
)
assert not patch_serialize_encryption_context.called
assert not patch_encrypt.called
assert test == EncryptedData(iv=None, ciphertext=VALUES["ciphertext"], tag=None)
def test_wrapping_key_encrypt_public(
patch_default_backend, patch_serialization, patch_serialize_encryption_context, patch_encrypt
):
_, public_key = mock_wrapping_rsa_keys()
patch_serialization.load_pem_public_key.return_value = public_key
public_key.encrypt.return_value = VALUES["ciphertext"]
mock_wrapping_algorithm = MagicMock(encryption_type=EncryptionType.ASYMMETRIC)
test_wrapping_key = WrappingKey(
wrapping_algorithm=mock_wrapping_algorithm,
wrapping_key=sentinel.wrapping_key,
wrapping_key_type=EncryptionKeyType.PUBLIC,
)
test = test_wrapping_key.encrypt(
plaintext_data_key=sentinel.plaintext_data_key, encryption_context=sentinel.encryption_context
)
public_key.encrypt.assert_called_once_with(
plaintext=sentinel.plaintext_data_key, padding=mock_wrapping_algorithm.padding
)
assert not patch_serialize_encryption_context.called
assert not patch_encrypt.called
assert test == EncryptedData(iv=None, ciphertext=VALUES["ciphertext"], tag=None)
def test_wrapping_key_decrypt_symmetric(
patch_default_backend,
patch_serialization,
patch_serialize_encryption_context,
patch_derive_data_encryption_key,
patch_decrypt,
):
mock_wrapping_algorithm = MagicMock()
test_wrapping_key = WrappingKey(
wrapping_algorithm=mock_wrapping_algorithm,
wrapping_key=sentinel.wrapping_key,
wrapping_key_type=EncryptionKeyType.SYMMETRIC,
)
test = test_wrapping_key.decrypt(
encrypted_wrapped_data_key=VALUES["ciphertext"], encryption_context=sentinel.encryption_context
)
patch_serialize_encryption_context.assert_called_once_with(encryption_context=sentinel.encryption_context)
patch_decrypt.assert_called_once_with(
algorithm=mock_wrapping_algorithm.algorithm,
key=patch_derive_data_encryption_key.return_value,
encrypted_data=VALUES["ciphertext"],
associated_data=patch_serialize_encryption_context.return_value,
)
assert test is patch_decrypt.return_value
def test_wrapping_key_decrypt_private(
patch_default_backend, patch_serialization, patch_serialize_encryption_context, patch_decrypt
):
private_key, _ = mock_wrapping_rsa_keys()
patch_serialization.load_pem_private_key.return_value = private_key
private_key.decrypt.return_value = sentinel.plaintext_data
mock_wrapping_algorithm = MagicMock(encryption_type=EncryptionType.ASYMMETRIC)
test_wrapping_key = WrappingKey(
wrapping_algorithm=mock_wrapping_algorithm,
wrapping_key=sentinel.wrapping_key,
wrapping_key_type=EncryptionKeyType.PRIVATE,
)
test = test_wrapping_key.decrypt(
encrypted_wrapped_data_key=mock_encrypted_data(), encryption_context=sentinel.encryption_context
)
private_key.decrypt.assert_called_once_with(
ciphertext=VALUES["ciphertext"], padding=mock_wrapping_algorithm.padding
)
assert not patch_serialize_encryption_context.called
assert not patch_decrypt.called
assert test is sentinel.plaintext_data
def test_wrapping_key_decrypt_public(
patch_default_backend, patch_serialization, patch_serialize_encryption_context, patch_decrypt
):
private_key, _ = mock_wrapping_rsa_keys()
patch_serialization.load_pem_private_key.return_value = private_key
private_key.decrypt.return_value = sentinel.plaintext_data
mock_wrapping_algorithm = MagicMock(encryption_type=EncryptionType.ASYMMETRIC)
test_wrapping_key = WrappingKey(
wrapping_algorithm=mock_wrapping_algorithm,
wrapping_key=sentinel.wrapping_key,
wrapping_key_type=EncryptionKeyType.PUBLIC,
)
with pytest.raises(IncorrectMasterKeyError) as excinfo:
test_wrapping_key.decrypt(
encrypted_wrapped_data_key=mock_encrypted_data(), encryption_context=sentinel.encryption_context
)
excinfo.match(r"Public key cannot decrypt")
| 42.924658
| 119
| 0.80884
| 1,537
| 12,534
| 6.163305
| 0.09499
| 0.092896
| 0.05067
| 0.044125
| 0.818642
| 0.746015
| 0.70569
| 0.686055
| 0.622506
| 0.605616
| 0
| 0.000732
| 0.128052
| 12,534
| 291
| 120
| 43.072165
| 0.866044
| 0.05154
| 0
| 0.471861
| 0
| 0
| 0.020303
| 0.004549
| 0
| 0
| 0
| 0
| 0.155844
| 1
| 0.08658
| false
| 0.017316
| 0.038961
| 0.004329
| 0.134199
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cba540a1391f43fcabd223531cddcc2049e6caa6
| 908
|
py
|
Python
|
hfcommon_tests/util_test.py
|
huntflow/hfcommon
|
f26c300b89cfa2fc1c20be77f8ad09f13661b348
|
[
"MIT"
] | null | null | null |
hfcommon_tests/util_test.py
|
huntflow/hfcommon
|
f26c300b89cfa2fc1c20be77f8ad09f13661b348
|
[
"MIT"
] | null | null | null |
hfcommon_tests/util_test.py
|
huntflow/hfcommon
|
f26c300b89cfa2fc1c20be77f8ad09f13661b348
|
[
"MIT"
] | null | null | null |
# coding=utf-8
import unittest
from hfcommon.util import try_int, host_included
class TestUtil(unittest.TestCase):
def test_try_int(self):
self.assertEqual(try_int('1'), 1)
self.assertEqual(try_int('123'), 123)
self.assertEqual(try_int(' '), None)
self.assertEqual(try_int(''), None)
self.assertEqual(try_int(u'цифра'), None)
self.assertEqual(try_int('number'), None)
self.assertEqual(try_int(123), 123)
def test_host_included(self):
self.assertEqual(host_included('https://ya.ru', ['ya.ru']), True)
self.assertEqual(host_included('http://127.0.0.1:8400/docs', ['127.0.0.1']), True)
self.assertEqual(host_included('https://yandex.ru', ['ya.ru']), False)
self.assertEqual(host_included('https://ya.ru:80', ['127.0.0.1', 'ya.ru']), True)
self.assertEqual(host_included('https://', ['ya.ru']), False)
| 36.32
| 90
| 0.639868
| 127
| 908
| 4.433071
| 0.291339
| 0.319716
| 0.223801
| 0.261101
| 0.605684
| 0.554174
| 0.394316
| 0.12611
| 0.12611
| 0
| 0
| 0.051862
| 0.171806
| 908
| 24
| 91
| 37.833333
| 0.696809
| 0.013216
| 0
| 0.117647
| 0
| 0
| 0.149888
| 0
| 0
| 0
| 0
| 0
| 0.705882
| 1
| 0.117647
| false
| 0
| 0.117647
| 0
| 0.294118
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
cbb63785d8ee1223809d99721877325dbe14a245
| 116
|
py
|
Python
|
mumpy.py
|
chrisrink10/mumpy
|
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
|
[
"BSD-3-Clause"
] | 1
|
2021-07-07T20:32:58.000Z
|
2021-07-07T20:32:58.000Z
|
mumpy.py
|
whitten/mumpy
|
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
|
[
"BSD-3-Clause"
] | null | null | null |
mumpy.py
|
whitten/mumpy
|
3cda42eeafcb1bfc419a665bbdb86afbacf8fde9
|
[
"BSD-3-Clause"
] | 8
|
2021-07-13T23:49:58.000Z
|
2022-01-18T22:56:52.000Z
|
#!/usr/bin/env python3
"""MUMPy :: MUMPS interpreter"""
import mumpy
if __name__ == "__main__":
mumpy.main()
| 12.888889
| 32
| 0.646552
| 14
| 116
| 4.785714
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010417
| 0.172414
| 116
| 8
| 33
| 14.5
| 0.6875
| 0.413793
| 0
| 0
| 0
| 0
| 0.129032
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cbd44ad2a2bcdc7b1c359cd3cdf0d86c12d6b24d
| 334
|
py
|
Python
|
zvt/domain/meta/__init__.py
|
h521822/zvt
|
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
|
[
"MIT"
] | 2
|
2021-02-09T05:55:38.000Z
|
2021-07-26T00:06:46.000Z
|
zvt/domain/meta/__init__.py
|
h521822/zvt
|
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
|
[
"MIT"
] | null | null | null |
zvt/domain/meta/__init__.py
|
h521822/zvt
|
c6bcc2b340406da55d920a411f59ab8d4cc7e76d
|
[
"MIT"
] | 1
|
2021-07-22T02:48:31.000Z
|
2021-07-22T02:48:31.000Z
|
# -*- coding: utf-8 -*-
# the __all__ is generated
__all__ = []
# __init__.py structure:
# common code of the package
# export interface in __all__ which contains __all__ of its sub modules
# import all from submodule stock_meta
from .stock_meta import *
from .stock_meta import __all__ as _stock_meta_all
__all__ += _stock_meta_all
| 27.833333
| 71
| 0.766467
| 50
| 334
| 4.38
| 0.56
| 0.205479
| 0.118721
| 0.173516
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.003571
| 0.161677
| 334
| 12
| 72
| 27.833333
| 0.778571
| 0.607784
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
cbdbf4a37b79b0d23e657492cb696db5fe1e793c
| 238
|
py
|
Python
|
src/credentials.py
|
cyril-blanco/iRacingRPMToolbox
|
abb0e489946aba69ed06d4375431c168b131e1fd
|
[
"MIT"
] | null | null | null |
src/credentials.py
|
cyril-blanco/iRacingRPMToolbox
|
abb0e489946aba69ed06d4375431c168b131e1fd
|
[
"MIT"
] | null | null | null |
src/credentials.py
|
cyril-blanco/iRacingRPMToolbox
|
abb0e489946aba69ed06d4375431c168b131e1fd
|
[
"MIT"
] | 3
|
2022-03-25T12:53:21.000Z
|
2022-03-25T16:31:52.000Z
|
"""
File encapsulating the management of credentials.
"""
import os
def get_credentials():
'''
Obtains the credentials from environment variables.
'''
return {"user":os.getenv('IRAPI_USR'), "pwd":os.getenv('IRAPI_PWD')}
| 19.833333
| 72
| 0.676471
| 28
| 238
| 5.642857
| 0.714286
| 0.101266
| 0.164557
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172269
| 238
| 11
| 73
| 21.636364
| 0.80203
| 0.42437
| 0
| 0
| 0
| 0
| 0.219298
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1df4b076cdef2e986f73ac273cd6ad2ebd17d751
| 25
|
py
|
Python
|
AI/cost_function/GreedyEvaluate.py
|
vineet131/Blokus
|
5462496778e368407f9d12d9118b775768bea7c0
|
[
"MIT"
] | null | null | null |
AI/cost_function/GreedyEvaluate.py
|
vineet131/Blokus
|
5462496778e368407f9d12d9118b775768bea7c0
|
[
"MIT"
] | null | null | null |
AI/cost_function/GreedyEvaluate.py
|
vineet131/Blokus
|
5462496778e368407f9d12d9118b775768bea7c0
|
[
"MIT"
] | null | null | null |
def greedy_evaluate():
| 6.25
| 22
| 0.72
| 3
| 25
| 5.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16
| 25
| 3
| 23
| 8.333333
| 0.809524
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.