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
af2937c92052a2e1fb3760a9e1adbb2a97e1f105
72
py
Python
project/experiments/exp_008_validate_selected_bodies/src/0.init.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
project/experiments/exp_008_validate_selected_bodies/src/0.init.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
project/experiments/exp_008_validate_selected_bodies/src/0.init.py
liusida/thesis-bodies
dceb8a36efd2cefc611f6749a52b56b9d3572f7a
[ "MIT" ]
null
null
null
import common.common as common common.get_output_data_folder(init=True)
24
40
0.861111
12
72
4.916667
0.75
0.40678
0
0
0
0
0
0
0
0
0
0
0.069444
72
3
40
24
0.880597
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
af58f26bb384aafcbe6efc1830aea9d156b00f3b
32
py
Python
astrodust/__init__.py
kehoffman3/dustyforest
7b169c6e91e50f200b5425ff216964ea7914d55f
[ "MIT" ]
1
2021-04-13T02:02:59.000Z
2021-04-13T02:02:59.000Z
astrodust/__init__.py
kehoffman3/dustyforest
7b169c6e91e50f200b5425ff216964ea7914d55f
[ "MIT" ]
null
null
null
astrodust/__init__.py
kehoffman3/dustyforest
7b169c6e91e50f200b5425ff216964ea7914d55f
[ "MIT" ]
1
2021-07-26T20:56:54.000Z
2021-07-26T20:56:54.000Z
from .astrodust import DustModel
32
32
0.875
4
32
7
1
0
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
af69974cde073cb5be6dde056384694ef35a4c69
142
py
Python
atmusers/admin.py
andkononykhin/atmsite
f6dc190adb8bfe74b06cf08069863d7e18a1d228
[ "MIT" ]
null
null
null
atmusers/admin.py
andkononykhin/atmsite
f6dc190adb8bfe74b06cf08069863d7e18a1d228
[ "MIT" ]
null
null
null
atmusers/admin.py
andkononykhin/atmsite
f6dc190adb8bfe74b06cf08069863d7e18a1d228
[ "MIT" ]
null
null
null
from django.contrib import admin from atmusers.models import ATMUser, Operation admin.site.register(ATMUser) admin.site.register(Operation)
20.285714
46
0.830986
19
142
6.210526
0.578947
0.152542
0.288136
0
0
0
0
0
0
0
0
0
0.091549
142
6
47
23.666667
0.914729
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
af78d7a42b28909dfbf3c5fa3e22e0affde4d63c
358
py
Python
examples/dev/run.py
TyberiusPrime/anysnake2
331fb30e8f679585abff315e88c9c1ac58ba35e7
[ "MIT" ]
2
2021-08-19T13:26:28.000Z
2022-03-23T08:26:03.000Z
examples/dev/run.py
TyberiusPrime/anysnake2
331fb30e8f679585abff315e88c9c1ac58ba35e7
[ "MIT" ]
1
2022-02-17T12:14:37.000Z
2022-02-18T06:33:56.000Z
examples/dev/run.py
TyberiusPrime/anysnake2
331fb30e8f679585abff315e88c9c1ac58ba35e7
[ "MIT" ]
null
null
null
import sys import os print(sys.path) import pandas as pd print('pandas', pd.__version__) import dppd print(sys.modules['dppd']) print('venv', os.listdir("/anysnake2/venv")) print('linked-in', os.listdir("/anysnake2/venv/linked_in")) print('mbf-r', os.listdir("/anysnake2/venv/linked_in/mbf-r/src")) import mbf_sampledata print(sys.modules['mbf_sampledata'])
27.538462
65
0.751397
56
358
4.660714
0.357143
0.091954
0.206897
0.252874
0.229885
0.229885
0
0
0
0
0
0.008955
0.064246
358
12
66
29.833333
0.770149
0
0
0
0
0
0.326816
0.167598
0
0
0
0
0
1
0
true
0
0.416667
0
0.416667
0.583333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
af89e7fee696252a8cbedba5c81119b1e7138ccb
342
py
Python
Game/Scenes/__init__.py
anchitmulye/Sudoku-pygame
55aaf692dd4063a015b67d0b53a2284c78451987
[ "MIT" ]
3
2018-07-18T05:18:20.000Z
2020-11-03T19:44:39.000Z
Game/Scenes/__init__.py
anchitmulye/Sudoku-pygame
55aaf692dd4063a015b67d0b53a2284c78451987
[ "MIT" ]
null
null
null
Game/Scenes/__init__.py
anchitmulye/Sudoku-pygame
55aaf692dd4063a015b67d0b53a2284c78451987
[ "MIT" ]
4
2019-06-11T05:48:48.000Z
2022-01-26T14:08:37.000Z
from Game.Scenes.Scene import Scene from Game.Scenes.GameOverScene import GameOverScene from Game.Scenes.HighScoreScene import HighScoreScene from Game.Scenes.PlayingGameScene import PlayingGameScene from Game.Scenes.MenuScene import MenuScene from Game.Scenes.Instructions import Instructions from Game.Scenes.SavingScene import SavingScene
42.75
57
0.877193
42
342
7.142857
0.261905
0.186667
0.326667
0
0
0
0
0
0
0
0
0
0.081871
342
7
58
48.857143
0.955414
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a5209d42fd1a89c7642a0b83019ded400fffccbc
88
py
Python
pygraphql/__init__.py
bendidi/pygraphql-async
7a1200ba870b00b8d64333a3bdf51efff440bde7
[ "MIT" ]
1
2020-10-16T00:31:27.000Z
2020-10-16T00:31:27.000Z
pygraphql/__init__.py
bendidi/pygraphql-async
7a1200ba870b00b8d64333a3bdf51efff440bde7
[ "MIT" ]
null
null
null
pygraphql/__init__.py
bendidi/pygraphql-async
7a1200ba870b00b8d64333a3bdf51efff440bde7
[ "MIT" ]
null
null
null
from .auth import BaseAuth from .client import BaseClientAsync from .query import Query
22
35
0.829545
12
88
6.083333
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.136364
88
3
36
29.333333
0.960526
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a5adec867f09bc9dbbfa42fcd9772cb44e385294
141
py
Python
C32/scope.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
2
2020-10-20T10:18:48.000Z
2020-12-02T09:41:18.000Z
C32/scope.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
null
null
null
C32/scope.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
1
2020-12-02T10:03:29.000Z
2020-12-02T10:03:29.000Z
def generate(): class Spam: count = 1 def method(self): print(count) return Spam() generate().method()
14.1
25
0.51773
15
141
4.866667
0.666667
0
0
0
0
0
0
0
0
0
0
0.011111
0.361702
141
9
26
15.666667
0.8
0
0
0
1
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0
0.714286
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
3c02245c55aadea0690ad90561ee52b998ee3500
115
py
Python
scripts/addons/animation_nodes/base_types/sockets/__init__.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/base_types/sockets/__init__.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/base_types/sockets/__init__.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
from . base_socket import AnimationNodeSocket from . list_sockets import ListSocket, PythonListSocket, CListSocket
38.333333
68
0.86087
12
115
8.083333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.104348
115
2
69
57.5
0.941748
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3c2c65fa618d9f7fea68af48cc93d9ddca00c508
98
py
Python
pygame_gui/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
pygame_gui/__init__.py
jtiai/pygame_gui
3da0e1f2c4c60a2780c798d5592f2603ba786b34
[ "MIT" ]
null
null
null
from .ui_manager import UIManager from . import core from . import elements from . import windows
19.6
33
0.795918
14
98
5.5
0.571429
0.38961
0
0
0
0
0
0
0
0
0
0
0.163265
98
4
34
24.5
0.939024
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
b1c5d3e17e46385b654e20cdb03aa91cc11a7f27
14,017
py
Python
mmdet/models/roi_heads/bbox_heads/lvis_instances.py
kostas1515/LongTailActivations
0f11aa536dad928d9de5eabb1d4445edf6cdc056
[ "Apache-2.0" ]
18
2021-09-28T02:46:04.000Z
2022-03-23T15:11:32.000Z
mmdet/models/roi_heads/bbox_heads/lvis_instances.py
kostas1515/LongTailActivations
0f11aa536dad928d9de5eabb1d4445edf6cdc056
[ "Apache-2.0" ]
2
2021-12-30T05:47:13.000Z
2022-01-11T09:26:18.000Z
fasa/lvis_instances.py
yuhangzang/FASA
01d08a7f889c89afffe1400fe24446075fe413bb
[ "MIT" ]
null
null
null
LVIS_INSTANCES = {'0': 109, '1': 1081, '2': 3720, '3': 158, '4': 207, '5': 39, '6': 1700, '7': 25, '8': 16, '9': 39, '10': 1018, '11': 17451, '12': 7, '13': 62, '14': 881, '15': 36, '16': 8, '17': 85, '18': 1112, '19': 11, '20': 23, '21': 293, '22': 2722, '23': 136, '24': 969, '25': 67, '26': 1048, '27': 163, '28': 4270, '29': 8, '30': 3, '31': 447, '32': 42, '33': 3907, '34': 3947, '35': 8537, '36': 372, '37': 6, '38': 9, '39': 1, '40': 755, '41': 12, '42': 1556, '43': 243, '44': 50552, '45': 19, '46': 92, '47': 219, '48': 3, '49': 5907, '50': 4, '51': 3, '52': 707, '53': 119, '54': 30, '55': 404, '56': 1013, '57': 2698, '58': 9028, '59': 2536, '60': 3984, '61': 56, '62': 6, '63': 47, '64': 336, '65': 1210, '66': 53, '67': 868, '68': 26, '69': 155, '70': 3, '71': 1371, '72': 231, '73': 20, '74': 1907, '75': 1069, '76': 2137, '77': 2, '78': 188, '79': 8085, '80': 1242, '81': 4, '82': 1227, '83': 203, '84': 9, '85': 590, '86': 4369, '87': 3683, '88': 589, '89': 4374, '90': 57, '91': 96, '92': 2, '93': 4566, '94': 777, '95': 1025, '96': 311, '97': 22, '98': 11557, '99': 16, '100': 12, '101': 180, '102': 60, '103': 311, '104': 23, '105': 1, '106': 214, '107': 406, '108': 154, '109': 3075, '110': 124, '111': 316, '112': 3, '113': 1269, '114': 623, '115': 2114, '116': 17, '117': 9981, '118': 2, '119': 190, '120': 43, '121': 125, '122': 1, '123': 46, '124': 11261, '125': 10, '126': 33353, '127': 113, '128': 439, '129': 15, '130': 10, '131': 4194, '132': 7969, '133': 15, '134': 53, '135': 6, '136': 1144, '137': 359, '138': 5308, '139': 1, '140': 89, '141': 38, '142': 7855, '143': 22, '144': 88, '145': 3219, '146': 4, '147': 118, '148': 17, '149': 6550, '150': 3, '151': 118, '152': 84, '153': 12166, '154': 9, '155': 144, '156': 217, '157': 590, '158': 4, '159': 1346, '160': 19, '161': 230, '162': 21, '163': 4, '164': 80, '165': 76, '166': 27, '167': 15, '168': 1780, '169': 44, '170': 1404, '171': 14, '172': 3281, '173': 84, '174': 308, '175': 296, '176': 7884, '177': 414, '178': 20, '179': 14, '180': 7371, '181': 95, '182': 2297, '183': 60, '184': 251, '185': 301, '186': 45, '187': 34, '188': 2471, '189': 167, '190': 102, '191': 1424, '192': 22, '193': 4288, '194': 530, '195': 29, '196': 107, '197': 106, '198': 218, '199': 96, '200': 193, '201': 2, '202': 636, '203': 5293, '204': 27, '205': 87, '206': 10528, '207': 928, '208': 10, '209': 1, '210': 16, '211': 122, '212': 22, '213': 15, '214': 22, '215': 49, '216': 18049, '217': 231, '218': 51, '219': 206, '220': 33, '221': 12, '222': 74, '223': 15, '224': 2387, '225': 1035, '226': 49, '227': 37, '228': 911, '229': 2902, '230': 13, '231': 11549, '232': 15, '233': 1, '234': 392, '235': 19, '236': 2, '237': 3, '238': 903, '239': 13, '240': 417, '241': 265, '242': 354, '243': 2, '244': 41, '245': 541, '246': 21, '247': 179, '248': 80, '249': 7, '250': 1, '251': 1380, '252': 840, '253': 557, '254': 303, '255': 106, '256': 38, '257': 3, '258': 269, '259': 35, '260': 901, '261': 1, '262': 197, '263': 63, '264': 8, '265': 108, '266': 301, '267': 36, '268': 1, '269': 1, '270': 2677, '271': 932, '272': 47, '273': 111, '274': 1, '275': 390, '276': 4145, '277': 282, '278': 16, '279': 132, '280': 1, '281': 4, '282': 273, '283': 271, '284': 709, '285': 32, '286': 7, '287': 305, '288': 16, '289': 72, '290': 1, '291': 13, '292': 40, '293': 97, '294': 1, '295': 2745, '296': 2985, '297': 4081, '298': 1775, '299': 4, '300': 5, '301': 1, '302': 1920, '303': 18, '304': 499, '305': 326, '306': 7, '307': 15, '308': 1883, '309': 10, '310': 65, '311': 149, '312': 1, '313': 12, '314': 124, '315': 6, '316': 12, '317': 29, '318': 535, '319': 50, '320': 5, '321': 510, '322': 12, '323': 1832, '324': 59, '325': 10, '326': 152, '327': 40, '328': 128, '329': 6991, '330': 140, '331': 24, '332': 1, '333': 126, '334': 99, '335': 35, '336': 86, '337': 3021, '338': 20, '339': 55, '340': 189, '341': 1533, '342': 17, '343': 4637, '344': 80, '345': 1623, '346': 1628, '347': 20, '348': 2, '349': 4506, '350': 7174, '351': 3, '352': 24, '353': 1, '354': 3, '355': 11, '356': 103, '357': 1787, '358': 130, '359': 20, '360': 1662, '361': 11, '362': 89, '363': 2, '364': 25, '365': 15, '366': 312, '367': 10, '368': 532, '369': 153, '370': 32, '371': 223, '372': 317, '373': 9, '374': 610, '375': 2, '376': 352, '377': 2684, '378': 733, '379': 398, '380': 2, '381': 2, '382': 38, '383': 49, '384': 4072, '385': 78, '386': 11911, '387': 2, '388': 8, '389': 7927, '390': 23, '391': 2842, '392': 76, '393': 306, '394': 152, '395': 24, '396': 2, '397': 1, '398': 59, '399': 25, '400': 1090, '401': 36, '402': 77, '403': 666, '404': 13, '405': 95, '406': 7, '407': 48, '408': 767, '409': 39, '410': 3070, '411': 43, '412': 39, '413': 1, '414': 813, '415': 15, '416': 90, '417': 52, '418': 337, '419': 1, '420': 1702, '421': 5325, '422': 29, '423': 210, '424': 41, '425': 5, '426': 9, '427': 3, '428': 737, '429': 3185, '430': 14, '431': 5, '432': 32, '433': 17, '434': 147, '435': 115, '436': 1056, '437': 53, '438': 3, '439': 151, '440': 179, '441': 165, '442': 67, '443': 530, '444': 1458, '445': 2, '446': 525, '447': 96, '448': 33, '449': 84, '450': 7007, '451': 1082, '452': 309, '453': 18, '454': 218, '455': 10, '456': 48, '457': 2, '458': 1103, '459': 49, '460': 3960, '461': 86, '462': 30, '463': 303, '464': 22, '465': 35, '466': 7, '467': 41, '468': 3137, '469': 14, '470': 121, '471': 41, '472': 39, '473': 2332, '474': 84, '475': 37, '476': 310, '477': 4, '478': 9, '479': 11, '480': 4, '481': 18, '482': 18, '483': 50, '484': 38, '485': 8, '486': 487, '487': 12, '488': 82, '489': 248, '490': 2, '491': 2, '492': 112, '493': 247, '494': 93, '495': 3923, '496': 56, '497': 6420, '498': 59, '499': 5951, '500': 842, '501': 3202, '502': 11, '503': 14, '504': 25, '505': 8, '506': 413, '507': 10, '508': 101, '509': 6377, '510': 64, '511': 778, '512': 10, '513': 2571, '514': 1618, '515': 4, '516': 747, '517': 3, '518': 44, '519': 46, '520': 315, '521': 1398, '522': 68, '523': 165, '524': 53, '525': 20, '526': 3, '527': 1765, '528': 126, '529': 41, '530': 15, '531': 5, '532': 12, '533': 144, '534': 7, '535': 619, '536': 204, '537': 10, '538': 86, '539': 8314, '540': 5, '541': 2, '542': 2, '543': 7213, '544': 7, '545': 57, '546': 1114, '547': 850, '548': 7326, '549': 235, '550': 10, '551': 133, '552': 347, '553': 64, '554': 68, '555': 4845, '556': 6, '557': 98, '558': 5283, '559': 24, '560': 15, '561': 73, '562': 551, '563': 90, '564': 208, '565': 1157, '566': 3, '567': 1, '568': 4744, '569': 610, '570': 4, '571': 6, '572': 70, '573': 2, '574': 4, '575': 18, '576': 9, '577': 196, '578': 180, '579': 1, '580': 26, '581': 4, '582': 14, '583': 77, '584': 7, '585': 172, '586': 38, '587': 24, '588': 8013, '589': 29, '590': 2002, '591': 5421, '592': 55, '593': 116, '594': 8117, '595': 87, '596': 1, '597': 51, '598': 12, '599': 21, '600': 124, '601': 6, '602': 4, '603': 130, '604': 447, '605': 1, '606': 19, '607': 38, '608': 519, '609': 11, '610': 11174, '611': 60, '612': 702, '613': 1765, '614': 3515, '615': 16, '616': 8432, '617': 10, '618': 15, '619': 42, '620': 975, '621': 226, '622': 68, '623': 618, '624': 8, '625': 4139, '626': 2234, '627': 2475, '628': 364, '629': 1065, '630': 2852, '631': 7, '632': 702, '633': 12, '634': 20, '635': 154, '636': 331, '637': 333, '638': 2168, '639': 2, '640': 5500, '641': 4392, '642': 524, '643': 689, '644': 7075, '645': 6, '646': 1134, '647': 6, '648': 69, '649': 29, '650': 66, '651': 22, '652': 7363, '653': 59, '654': 2029, '655': 41, '656': 5, '657': 1379, '658': 5638, '659': 16, '660': 240, '661': 2, '662': 16, '663': 2, '664': 1, '665': 401, '666': 126, '667': 445, '668': 186, '669': 501, '670': 3, '671': 10, '672': 58, '673': 2, '674': 1595, '675': 2985, '676': 114, '677': 11, '678': 354, '679': 139, '680': 57, '681': 174, '682': 243, '683': 167, '684': 435, '685': 3, '686': 1105, '687': 5, '688': 227, '689': 8, '690': 1, '691': 1046, '692': 27, '693': 3490, '694': 156, '695': 108, '696': 122, '697': 2955, '698': 166, '699': 985, '700': 720, '701': 64, '702': 5247, '703': 269, '704': 1832, '705': 333, '706': 352, '707': 1785, '708': 6257, '709': 6, '710': 33, '711': 10, '712': 3979, '713': 4, '714': 2709, '715': 4069, '716': 61, '717': 20, '718': 1179, '719': 39, '720': 35, '721': 4, '722': 120, '723': 290, '724': 187, '725': 790, '726': 7, '727': 488, '728': 5, '729': 17, '730': 28, '731': 36, '732': 10, '733': 9779, '734': 13034, '735': 223, '736': 71, '737': 157, '738': 929, '739': 76, '740': 73, '741': 109, '742': 12, '743': 264, '744': 306, '745': 184, '746': 91, '747': 2645, '748': 163, '749': 68, '750': 643, '751': 21, '752': 295, '753': 11, '754': 206, '755': 957, '756': 600, '757': 3, '758': 4, '759': 61, '760': 46, '761': 385, '762': 45, '763': 17, '764': 89, '765': 1075, '766': 76, '767': 465, '768': 1, '769': 12, '770': 4972, '771': 20, '772': 1869, '773': 1041, '774': 50, '775': 1069, '776': 18, '777': 1, '778': 9, '779': 76, '780': 987, '781': 543, '782': 2, '783': 4, '784': 18, '785': 229, '786': 235, '787': 15, '788': 697, '789': 91, '790': 28, '791': 22, '792': 13439, '793': 103, '794': 194, '795': 24, '796': 138, '797': 126, '798': 632, '799': 838, '800': 228, '801': 1850, '802': 5, '803': 6115, '804': 112, '805': 1636, '806': 141, '807': 4, '808': 172, '809': 7, '810': 4762, '811': 9, '812': 28, '813': 488, '814': 4, '815': 4103, '816': 1123, '817': 5214, '818': 148, '819': 3, '820': 49, '821': 12, '822': 11, '823': 20, '824': 21, '825': 34, '826': 14276, '827': 1695, '828': 14, '829': 57, '830': 10, '831': 951, '832': 57, '833': 276, '834': 3378, '835': 1719, '836': 3902, '837': 4393, '838': 112, '839': 272, '840': 131, '841': 16, '842': 779, '843': 179, '844': 217, '845': 64, '846': 54, '847': 1458, '848': 8, '849': 2, '850': 2, '851': 4, '852': 13, '853': 1192, '854': 6, '855': 18, '856': 57, '857': 6, '858': 33, '859': 513, '860': 139, '861': 6, '862': 64, '863': 13, '864': 195, '865': 123, '866': 519, '867': 66, '868': 3, '869': 303, '870': 132, '871': 778, '872': 6, '873': 35, '874': 26, '875': 3650, '876': 89, '877': 28, '878': 22, '879': 3426, '880': 2467, '881': 50, '882': 32, '883': 37, '884': 2314, '885': 3, '886': 3, '887': 77, '888': 70, '889': 2, '890': 35, '891': 31, '892': 52, '893': 3, '894': 41, '895': 574, '896': 32, '897': 3631, '898': 955, '899': 648, '900': 56, '901': 15, '902': 863, '903': 171, '904': 6, '905': 290, '906': 27, '907': 14, '908': 22, '909': 543, '910': 3145, '911': 2315, '912': 3, '913': 26, '914': 555, '915': 2704, '916': 5, '917': 13, '918': 178, '919': 4, '920': 1310, '921': 142, '922': 1376, '923': 161, '924': 1, '925': 88, '926': 141, '927': 202, '928': 126, '929': 23, '930': 4, '931': 451, '932': 11, '933': 24, '934': 254, '935': 20, '936': 7, '937': 5, '938': 12, '939': 33, '940': 9, '941': 38, '942': 13304, '943': 2, '944': 2, '945': 41, '946': 10177, '947': 9374, '948': 377, '949': 90, '950': 5305, '951': 24, '952': 331, '953': 110, '954': 450, '955': 1, '956': 479, '957': 6, '958': 8091, '959': 95, '960': 2182, '961': 3597, '962': 81, '963': 8496, '964': 8124, '965': 1727, '966': 8263, '967': 1784, '968': 1, '969': 102, '970': 33, '971': 1, '972': 121, '973': 53, '974': 16, '975': 2119, '976': 61, '977': 23, '978': 895, '979': 670, '980': 6866, '981': 2408, '982': 5, '983': 52, '984': 22, '985': 193, '986': 2, '987': 44, '988': 49, '989': 2, '990': 10, '991': 12, '992': 508, '993': 9, '994': 3040, '995': 54, '996': 19, '997': 5, '998': 116, '999': 2111, '1000': 85, '1001': 403, '1002': 6, '1003': 19, '1004': 1, '1005': 68, '1006': 28, '1007': 1934, '1008': 139, '1009': 1, '1010': 901, '1011': 5, '1012': 43, '1013': 77, '1014': 7, '1015': 18, '1016': 625, '1017': 583, '1018': 1349, '1019': 1334, '1020': 1133, '1021': 99, '1022': 7435, '1023': 1154, '1024': 4386, '1025': 8350, '1026': 7381, '1027': 1, '1028': 11, '1029': 1, '1030': 10, '1031': 31, '1032': 461, '1033': 618, '1034': 5603, '1035': 170, '1036': 3835, '1037': 337, '1038': 22, '1039': 56, '1040': 145, '1041': 1894, '1042': 1482, '1043': 137, '1044': 3141, '1045': 72, '1046': 14, '1047': 5, '1048': 5, '1049': 2804, '1050': 81, '1051': 2496, '1052': 10, '1053': 21, '1054': 7550, '1055': 9222, '1056': 1, '1057': 7, '1058': 304, '1059': 1799, '1060': 560, '1061': 35, '1062': 29, '1063': 1315, '1064': 68, '1065': 276, '1066': 42, '1067': 152, '1068': 40, '1069': 209, '1070': 4886, '1071': 945, '1072': 62, '1073': 3725, '1074': 1, '1075': 117, '1076': 2205, '1077': 2835, '1078': 3035, '1079': 2, '1080': 33, '1081': 49, '1082': 153, '1083': 6, '1084': 320, '1085': 224, '1086': 31, '1087': 67, '1088': 45, '1089': 62, '1090': 421, '1091': 70, '1092': 587, '1093': 125, '1094': 240, '1095': 114, '1096': 2295, '1097': 1683, '1098': 12338, '1099': 294, '1100': 39, '1101': 1683, '1102': 326, '1103': 423, '1104': 306, '1105': 135, '1106': 45, '1107': 2212, '1108': 987, '1109': 6756, '1110': 80, '1111': 7298, '1112': 47, '1113': 297, '1114': 2192, '1115': 7, '1116': 2397, '1117': 16, '1118': 1, '1119': 15, '1120': 132, '1121': 7806, '1122': 1797, '1123': 4, '1124': 334, '1125': 15, '1126': 124, '1127': 120, '1128': 109, '1129': 31, '1130': 13, '1131': 14, '1132': 9161, '1133': 164, '1134': 2, '1135': 381, '1136': 81, '1137': 38, '1138': 4971, '1139': 65, '1140': 3370, '1141': 1313, '1142': 228, '1143': 1, '1144': 10, '1145': 3, '1146': 33, '1147': 16, '1148': 61, '1149': 4, '1150': 121, '1151': 209, '1152': 21, '1153': 100, '1154': 3069, '1155': 123, '1156': 1, '1157': 1, '1158': 15, '1159': 68, '1160': 2703, '1161': 1449, '1162': 39, '1163': 109, '1164': 7, '1165': 23, '1166': 1, '1167': 54, '1168': 98, '1169': 60, '1170': 44, '1171': 814, '1172': 237, '1173': 27, '1174': 140, '1175': 49, '1176': 2907, '1177': 11272, '1178': 107, '1179': 201, '1180': 13, '1181': 69, '1182': 28, '1183': 202, '1184': 253, '1185': 4793, '1186': 26, '1187': 4449, '1188': 21, '1189': 4259, '1190': 271, '1191': 60, '1192': 16, '1193': 123, '1194': 119, '1195': 80, '1196': 268, '1197': 1330, '1198': 50, '1199': 116, '1200': 20, '1201': 5443, '1202': 798} # noqa
14,017
14,017
0.484554
2,409
14,017
2.819012
0.594022
0.001178
0
0
0
0
0
0
0
0
0
0.583613
0.171934
14,017
1
14,017
14,017
0.001465
0.000285
0
0
0
0
0.264202
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
591990644c95f6d07e3688d288e504d7a8bf8e9d
91
py
Python
sources/dataset/__init__.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
3
2020-11-02T12:21:29.000Z
2021-08-02T14:01:37.000Z
sources/dataset/__init__.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
2
2020-11-06T07:58:13.000Z
2022-03-13T16:11:30.000Z
sources/dataset/__init__.py
lthamm/concept-embeddings-and-ilp
27592c6424147a2fbb54d7daebc92cd72b3f4a0c
[ "MIT" ]
1
2020-11-03T14:54:16.000Z
2020-11-03T14:54:16.000Z
"""Handles for the picasso dataset.""" from .picasso_mask_handle import PicassoMaskHandle
22.75
50
0.802198
11
91
6.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.10989
91
3
51
30.333333
0.876543
0.351648
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
591c3823e6eca3374d7fd5c7c125a64989e633a6
231
py
Python
lib/subscriptions.py
pooyadav/app-hello-world
d8f838effa4bdecc96c57dd531bfb8c02cb07969
[ "MIT" ]
null
null
null
lib/subscriptions.py
pooyadav/app-hello-world
d8f838effa4bdecc96c57dd531bfb8c02cb07969
[ "MIT" ]
4
2021-03-18T20:27:10.000Z
2022-03-11T23:18:36.000Z
lib/subscriptions.py
pooyadav/app-hello-world
d8f838effa4bdecc96c57dd531bfb8c02cb07969
[ "MIT" ]
null
null
null
import lib.utils as utils def connect(href): print("Not yet implemented") def subscribe(href, dataSourceID, type): print("Not yet implemented") def unsubscribe(href, dataSourceID, type): print("Not yet implemented")
21
42
0.722944
30
231
5.566667
0.5
0.143713
0.197605
0.39521
0.670659
0.502994
0.502994
0
0
0
0
0
0.164502
231
10
43
23.1
0.865285
0
0
0.428571
0
0
0.246753
0
0
0
0
0
0
1
0.428571
false
0
0.142857
0
0.571429
0.428571
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
0
1
1
0
5
5929ac28edf396e2604416c77268c74b74c8d54f
333
py
Python
src/python/squarepants/plugins/thrift_linter/register.py
ericzundel/mvn2pants
59776864939515bc0cae28e1b89944ce55b98b21
[ "Apache-2.0" ]
8
2015-04-14T22:37:56.000Z
2021-01-20T19:46:40.000Z
src/python/squarepants/plugins/thrift_linter/register.py
ericzundel/mvn2pants
59776864939515bc0cae28e1b89944ce55b98b21
[ "Apache-2.0" ]
1
2016-01-13T23:19:14.000Z
2016-01-22T22:47:48.000Z
src/python/squarepants/plugins/thrift_linter/register.py
ericzundel/mvn2pants
59776864939515bc0cae28e1b89944ce55b98b21
[ "Apache-2.0" ]
3
2015-12-13T08:35:34.000Z
2018-08-01T17:44:59.000Z
# coding=utf-8 # Copyright 2015 Square, Inc. from pants.goal.task_registrar import TaskRegistrar as task from squarepants.plugins.thrift_linter.tasks.thrift_linter import ThriftLinterDummy def register_goals(): task(name='thrift-linter', action=ThriftLinterDummy).install().with_description('Standin for thrift-linter options')
33.3
118
0.816817
43
333
6.209302
0.744186
0.179775
0
0
0
0
0
0
0
0
0
0.016447
0.087087
333
9
119
37
0.861842
0.12012
0
0
0
0
0.158621
0
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
5
593b4b4fd9cb0f686ee3302c6de321c0015aadc2
963
py
Python
tests/unit/resources/test_input.py
sehovaclj/k_means
1135f65e95a9a6bcf1981db71e67822e023bede1
[ "MIT" ]
null
null
null
tests/unit/resources/test_input.py
sehovaclj/k_means
1135f65e95a9a6bcf1981db71e67822e023bede1
[ "MIT" ]
null
null
null
tests/unit/resources/test_input.py
sehovaclj/k_means
1135f65e95a9a6bcf1981db71e67822e023bede1
[ "MIT" ]
null
null
null
import pytest from k_means.resources.input import default_message @pytest.mark.default_message def test_default_message(): assert type(default_message['NumberClusters']) == int and default_message['NumberClusters'] > 0 assert type(default_message['NumberDistributions']) == int and default_message['NumberDistributions'] > 0 assert type(default_message['NumberSamples']) == int and default_message['NumberSamples'] > 0 assert type(default_message['EpsilonForConvergence']) == float and \ 0 < default_message['EpsilonForConvergence'] < 1 assert type(default_message['MaxIterations']) == int and default_message['MaxIterations'] > 0 assert type(default_message['AddNoise']) == bool assert type(default_message['ShowPlots']) == bool assert type(default_message['PauseLength']) == float and default_message['PauseLength'] > 0 assert type(default_message['Seed']) == int and default_message['Seed'] > 0 return True
53.5
109
0.742471
110
963
6.309091
0.281818
0.383285
0.220461
0.311239
0.260807
0
0
0
0
0
0
0.009615
0.136033
963
17
110
56.647059
0.824519
0
0
0
0
0
0.214953
0.043614
0
0
0
0
0.6
1
0.066667
true
0
0.133333
0
0.266667
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
1
0
0
0
0
0
0
5
3cf639371e2c4379394a5924f12a4f8b0df29e04
61,791
py
Python
experiments/experiments_gdsc/convergence/nmf_gibbs.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
16
2017-04-19T12:04:47.000Z
2021-12-03T00:50:43.000Z
experiments/experiments_gdsc/convergence/nmf_gibbs.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
1
2017-04-20T11:26:16.000Z
2017-04-20T11:26:16.000Z
experiments/experiments_gdsc/convergence/nmf_gibbs.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
8
2015-12-15T05:29:43.000Z
2019-06-05T03:14:11.000Z
""" Run NMF Gibbs on the Sanger dataset. We can plot the MSE, R2 and Rp as it converges, on the entire dataset. We give flat priors (1/10). """ import sys, os project_location = os.path.dirname(__file__)+"/../../../../" sys.path.append(project_location) from BNMTF.code.models.bnmf_gibbs_optimised import bnmf_gibbs_optimised from BNMTF.data_drug_sensitivity.gdsc.load_data import load_gdsc import numpy, matplotlib.pyplot as plt ########## standardised = False #standardised Sanger or unstandardised iterations = 1000 init_UV = 'random' I, J, K = 622,138,25 alpha, beta = 1., 1. lambdaU = numpy.ones((I,K))/10 lambdaV = numpy.ones((J,K))/10 priors = { 'alpha':alpha, 'beta':beta, 'lambdaU':lambdaU, 'lambdaV':lambdaV } # Load in data (_,R,M,_,_,_,_) = load_gdsc(standardised=standardised) # Run the Gibbs sampler BNMF = bnmf_gibbs_optimised(R,M,K,priors) BNMF.initialise(init_UV) BNMF.run(iterations) # Extract the performances across all iterations print "gibbs_all_performances = %s" % BNMF.all_performances ''' gibbs_all_performances = {'R^2': [-8097.120524618645, -92.03487885308488, -6.1422176349457756, -0.9038601900265792, 0.05832803080595805, 0.4541099367061112, 0.6049897886014735, 0.6736775260991249, 0.7113260353160478, 0.7369323486022221, 0.7525628528289362, 0.7659397349827468, 0.7773012058774671, 0.7855698093348511, 0.7930877773146086, 0.7981951259097773, 0.8033683532126303, 0.8083365002626853, 0.8119712286388999, 0.8143321065006544, 0.8174307057444653, 0.8203981211408663, 0.824072689104962, 0.8262040538252395, 0.8280595312721502, 0.8300349108022617, 0.831698141327422, 0.833322847879864, 0.8347412513742691, 0.8361247549331208, 0.8379854025250282, 0.8382916154890347, 0.8396590145998284, 0.8409666592263021, 0.8416328694506152, 0.8423226039002082, 0.8436124922062069, 0.8443654471055815, 0.8453909498730786, 0.845580518865929, 0.8465652093896273, 0.8473266413053484, 0.8475762860160989, 0.8484714859501538, 0.8492485657082272, 0.84966685946956, 0.8505509120849405, 0.85143711565206, 0.851852342846928, 0.8521812307471013, 0.852139235169544, 0.8533607840336465, 0.8538099348560734, 0.8541389391880759, 0.8547553473683829, 0.8551349698989649, 0.8554572833125114, 0.8555974212169639, 0.8562449936037535, 0.8562960240997501, 0.8571512526606135, 0.8574317831241824, 0.8578119177871499, 0.8579728992983436, 0.8580465976062377, 0.8586124715798914, 0.859267244033816, 0.8594562427751072, 0.8594384799184416, 0.8602714365040705, 0.8604894643211488, 0.860582665238959, 0.8610246381518363, 0.8613466343545377, 0.8614398141537936, 0.8617954338275668, 0.8622262163772405, 0.861905573949389, 0.862334418720568, 0.8628297028804424, 0.8628435094308295, 0.8634237727418607, 0.8632092252941954, 0.8636937263449179, 0.8637203890138985, 0.8640835967054745, 0.8642409583561601, 0.8640804715773884, 0.8645989544651734, 0.8651739238553432, 0.8655308475374881, 0.8653673995029159, 0.8655456853941349, 0.8655640745445357, 0.8658403125015841, 0.8663842177748899, 0.8667337429325581, 0.8667530964887968, 0.8668809138224083, 0.8667922423687051, 0.8666434734617718, 0.86712992023443, 0.8666621878076579, 0.8671240046046882, 0.8669761667431293, 0.8674455977960188, 0.8673842265418769, 0.8675186960418493, 0.8677119115944193, 0.8674869033419581, 0.8676845902882724, 0.8679810495489251, 0.8685090295740011, 0.8681921196951283, 0.8679386407884324, 0.8685689055910684, 0.8686292405923675, 0.8689979745997642, 0.8686733209624224, 0.8688539889067889, 0.8689575178877409, 0.8694702389597223, 0.8693889935182963, 0.8691664671604185, 0.8693314628576805, 0.8695296386156133, 0.8699234023085682, 0.8700626367293269, 0.8698235714484666, 0.8698417878864653, 0.8699605755411289, 0.8699548491894418, 0.8699177614295612, 0.8702401532205712, 0.870089029705315, 0.8701709473716509, 0.8705157718817089, 0.8707897374566467, 0.8705681409883498, 0.8705077836816242, 0.8704211202866602, 0.8709499553159825, 0.8705323689139849, 0.8707828962071351, 0.8708432466981006, 0.8708162776386472, 0.8708752487165031, 0.8709395522623583, 0.8712577197500219, 0.8715952816152841, 0.8719170982721198, 0.8720101023103196, 0.8721999840699668, 0.8724102627545355, 0.8724269566330951, 0.8721872229249841, 0.872624671270274, 0.8723150046165411, 0.8727134321121253, 0.8727809445597847, 0.8729836051892527, 0.8725220514452008, 0.8729064306688725, 0.8727540629259423, 0.872811021288973, 0.8730114623442058, 0.8730120206782903, 0.873148828139038, 0.8730567472128643, 0.8732358404117283, 0.8731992488974761, 0.8735205417375718, 0.8737142814404085, 0.8733196505195533, 0.873779786914497, 0.8735748615376708, 0.8735316352600613, 0.8739230682270438, 0.874008164332888, 0.8737181024742783, 0.873392278996135, 0.8731817547281827, 0.8737761689477963, 0.873726112530435, 0.8736718633040765, 0.8743360122054964, 0.8742358139574171, 0.8745797936948219, 0.8745306149812437, 0.8745080879713857, 0.8748673454911532, 0.8747381575101926, 0.8750171522010532, 0.8748271842107753, 0.8751481079866305, 0.8750341987717516, 0.875070401257694, 0.8753040865153376, 0.8752875238839548, 0.8756194967501238, 0.8754649720978467, 0.8752305012455419, 0.8754660392907536, 0.8750430069344697, 0.8753753112421354, 0.8753228876209207, 0.8754190096499348, 0.8753742732211153, 0.874932023597963, 0.8753178929551866, 0.8754591290908846, 0.8756386225083636, 0.875327743517445, 0.8758326034658949, 0.8755754904552859, 0.8757111996209137, 0.8756139901465797, 0.8756489396742231, 0.8754978448654253, 0.875687357985614, 0.875904318511274, 0.8759004388455014, 0.8758937941307692, 0.8765213049190524, 0.8763542096831669, 0.8766003816992559, 0.8763511813248714, 0.8765320511402347, 0.8765361349231945, 0.8767221424150524, 0.8763962819611748, 0.8765337596797868, 0.8765651125433056, 0.8765205587540978, 0.8767898443549997, 0.8770749262760689, 0.8768779974522254, 0.8774617455282151, 0.8771975343547003, 0.8774017084933295, 0.8775479100226988, 0.8776549254193673, 0.878002327573694, 0.8783410061964131, 0.877584117631878, 0.8777600854721646, 0.8773919495895153, 0.8773866088567158, 0.8778120356420893, 0.8778296992781149, 0.8778781797574046, 0.8777438538680431, 0.8775108488094653, 0.8778780826280024, 0.8778141378815467, 0.8779622806719389, 0.8783804379144875, 0.8783616419844514, 0.8784345054783582, 0.8783779566782007, 0.878685921429486, 0.8781496611658914, 0.878369104818205, 0.878549660705894, 0.8788113344036906, 0.8787222834008148, 0.8787909126431644, 0.8787860679141768, 0.8792155718373028, 0.8788732756509796, 0.8791408982027165, 0.8789349770168012, 0.8790324450103074, 0.8789716990660366, 0.8790491844352575, 0.8794264945784204, 0.8793745156201396, 0.8795214315046469, 0.8795572180962931, 0.8796702839284319, 0.8791682242962183, 0.8794015606423875, 0.8793688367311017, 0.8793072154557543, 0.879498787464662, 0.8793769251079315, 0.8796242871925027, 0.8798471122918762, 0.8796497898358203, 0.8793723808175908, 0.879602795011505, 0.8797602833141777, 0.8795713875252283, 0.8793271051258167, 0.879181917781312, 0.8795858854534391, 0.879497792677256, 0.8799848781504043, 0.880132579757744, 0.8798416357359783, 0.8804438151975417, 0.879985743668034, 0.8797555197282148, 0.8797906113602598, 0.8799882230631781, 0.8803768936633788, 0.8805490623689693, 0.8798189423722694, 0.8800451066946586, 0.8802178393670685, 0.8804099598973915, 0.88017332296716, 0.8801566657123907, 0.8798535142703103, 0.8798990334278867, 0.8799703587742911, 0.8802857013732331, 0.8800439850882587, 0.8800917052445562, 0.8804827828542173, 0.8808959714400665, 0.8804798849154631, 0.8809540924891105, 0.8807764699353184, 0.8808858160267399, 0.8808202212020417, 0.8809102224538164, 0.8808603483264676, 0.8812348814768288, 0.8810101108401295, 0.8810229663556421, 0.8813515856611203, 0.8812895158573928, 0.881109302217869, 0.8811061573533391, 0.8810843911911028, 0.8814852226699503, 0.8810197404585685, 0.8810031828279404, 0.88106642719292, 0.8810714987368234, 0.8813460547810501, 0.8812561636490028, 0.881684472899955, 0.8816039022223956, 0.8814772534490188, 0.8816542675730777, 0.8821094330330805, 0.882067896525182, 0.8819211691504016, 0.8819025253544251, 0.8818385107548776, 0.881800292063456, 0.8818945575636021, 0.8816727475214896, 0.8818639952923207, 0.881825677726259, 0.8816686184893145, 0.8819482306564362, 0.8816423288860238, 0.8816724317793293, 0.8815274639878543, 0.8814530804585867, 0.881574266086974, 0.8816608480934317, 0.8813446777912521, 0.8816579480340355, 0.8817015880788085, 0.8817540147485188, 0.8817328475916443, 0.8819051988500844, 0.881936338495981, 0.8819493713243178, 0.8819681964444197, 0.8820528329611529, 0.8823066673277756, 0.8823634158776184, 0.8821833365310139, 0.8822090032809478, 0.8820009631317465, 0.8820211585168174, 0.88209522910204, 0.8817595137084046, 0.8816991655993722, 0.8817649436748548, 0.8818480989425592, 0.8819867549060114, 0.8822002534508783, 0.8820011972105416, 0.88213572494363, 0.8822448338077196, 0.8821069514258616, 0.8824167213717884, 0.8820802430906017, 0.8822698469912832, 0.8822934811702775, 0.8821810684779078, 0.8821800477452143, 0.8823559193822448, 0.8825678977970318, 0.882288977370051, 0.8821310815246239, 0.882406454522845, 0.8827041411491623, 0.8826998813242738, 0.8828259560298077, 0.8825230338988669, 0.882554862281831, 0.8824798803185648, 0.8826431761723457, 0.8827866547484304, 0.8825199618345575, 0.8829243456619593, 0.8827757757596811, 0.8829442810149261, 0.8827430806600383, 0.882385904194805, 0.8823720602932045, 0.8826575684943072, 0.8825380445330001, 0.8825116824354196, 0.8828954027607119, 0.8828642440416647, 0.8828706679303298, 0.8830171911168937, 0.8828793945087832, 0.8829665249989219, 0.8838070861669896, 0.8832405655264856, 0.8832324927600742, 0.883024970903529, 0.8830418861501715, 0.8830072571234296, 0.8832545910701987, 0.8831505450762547, 0.8833043597502448, 0.883184797344809, 0.8833056300135701, 0.8831224326229611, 0.883302936005317, 0.8832597336788235, 0.883551011617595, 0.8834210433962496, 0.8834033380637913, 0.883057199329653, 0.8834776306335889, 0.8835235464455033, 0.8835250356217219, 0.8835201070852376, 0.8835426188136185, 0.8834743242449845, 0.8833529158019313, 0.8831089334269735, 0.8830735248371071, 0.8831418804495536, 0.8832270458147763, 0.8830847278149905, 0.8831741349208921, 0.8830412061977555, 0.8829683291558491, 0.8829776515780637, 0.8832489762840519, 0.8833135079841824, 0.883325180919543, 0.8837597265887456, 0.8835777442484358, 0.8838575059973188, 0.8838359064725356, 0.8844484758831598, 0.8841571035581643, 0.884049358015375, 0.8840958439375419, 0.884213178027971, 0.8840797975566118, 0.8838209667420592, 0.8841117474279783, 0.8839950829331353, 0.884072782261511, 0.8835113779542265, 0.8838630640350119, 0.8837274001927073, 0.8838734239759831, 0.8839148658121109, 0.8837933629764947, 0.884110906390748, 0.8844284656012616, 0.8843058766450629, 0.8841246803621507, 0.884005689337822, 0.8838520284355581, 0.8840316654277575, 0.8839912955267794, 0.8840863397933251, 0.8841285161910367, 0.8842227673409914, 0.8842513894743921, 0.8841503886790125, 0.8841527870620856, 0.8840874771018112, 0.8840407673095213, 0.8838633717784687, 0.8838838069026591, 0.8834519692821029, 0.8836302736179938, 0.8840806166111697, 0.8839679569866545, 0.883916965223105, 0.8842050778124985, 0.8847727791244839, 0.8847088630804918, 0.8841717984667983, 0.8844685826637968, 0.8846572721549342, 0.8847739477249252, 0.8846042970863779, 0.884362703853601, 0.8844404324888259, 0.884345487624207, 0.8843270489088968, 0.8845341509017453, 0.8843569376878041, 0.8844534903483312, 0.8844426251651443, 0.8847366232090356, 0.8847318463837691, 0.8846779930417522, 0.8848675722372796, 0.8847071335594104, 0.8846313196572319, 0.8847695897536374, 0.8852002925022526, 0.8849434830023856, 0.8850574523976309, 0.8848237940186497, 0.885187146887056, 0.8855123650329709, 0.8853035988121922, 0.8853121322098495, 0.8849191720296313, 0.8849450531579128, 0.8850598175908879, 0.8849699384714567, 0.8850246858764342, 0.8850254199411649, 0.8852961506255522, 0.8852843330043558, 0.8848010276622433, 0.8851758630104641, 0.8851361279792316, 0.8853305570557476, 0.88533695132133, 0.8853445690364108, 0.8850536556576839, 0.8852974248798672, 0.8854842466590023, 0.8850341416403156, 0.8852857920761271, 0.8851619097715835, 0.8850860679679015, 0.8851422622130587, 0.8851408472208426, 0.8849524361130161, 0.8847810878871345, 0.8846922709735019, 0.884823019706124, 0.8850387468000227, 0.8850092101159812, 0.8849460583674205, 0.8848954592858158, 0.8849393331344371, 0.8854465542932138, 0.8851212751443385, 0.8853224359216089, 0.8849135076315469, 0.8850740987933868, 0.8853147447463385, 0.8845884691155067, 0.885032901526111, 0.8848315211551345, 0.8850328907707198, 0.8850285706020307, 0.8851292540124098, 0.8852918009660319, 0.8855363133975207, 0.8856059770550685, 0.8853435726759948, 0.8857345382113256, 0.8858693116340052, 0.8857691762019493, 0.8861239374313212, 0.8858015582435145, 0.8858579767299745, 0.8857380756317571, 0.8854769375641524, 0.8857883440906792, 0.8858073079006552, 0.8858423425623367, 0.8858047087885955, 0.8856496029515406, 0.885678525730419, 0.8856103105571498, 0.8856971276517793, 0.8860031076906716, 0.885333764954096, 0.8851049189948728, 0.8849032495967838, 0.8852780190516907, 0.8855371838187627, 0.8854696892707883, 0.8857775568362554, 0.8854066757239494, 0.8855664906290239, 0.8854477594721885, 0.8853791196206057, 0.8853531105635697, 0.8852534906673994, 0.8851160579881581, 0.8850136886823138, 0.884788054046282, 0.8852801462899875, 0.8853158710870375, 0.8852818666321864, 0.8852883442453379, 0.8852503788707302, 0.8851811401276978, 0.8856391880652099, 0.885306063981389, 0.8854999630826965, 0.8857844179662042, 0.8860817089520552, 0.885636109678027, 0.8858627336561052, 0.885877754130326, 0.8860488624446385, 0.8863002570180794, 0.8864187108259031, 0.886667104300022, 0.8867140019063984, 0.8864593520934897, 0.8865380936070256, 0.8864339111646542, 0.8863975493970135, 0.8864856631680333, 0.8861100151894936, 0.8864622338256677, 0.8860332393588589, 0.8858783865418227, 0.8857868652509804, 0.8857975831009766, 0.8858918761729189, 0.8856393077476215, 0.885368196416833, 0.8856307809523633, 0.8858630416812926, 0.8859462400411013, 0.8860829282348391, 0.8861262575386575, 0.8862941845414389, 0.8859531247974936, 0.8863959625150064, 0.8864891439419631, 0.8866438758797961, 0.8865322705626931, 0.8865269535945615, 0.8862323746354378, 0.8864076972316539, 0.8861669766489841, 0.8860611153055064, 0.8861507586609968, 0.885984557275075, 0.8857247213687698, 0.8858154914700013, 0.8856974002153534, 0.8855337219639209, 0.8853331159979118, 0.8851290957971637, 0.8854805534718266, 0.885898927498177, 0.885516107860453, 0.8860396030794969, 0.8858227323098672, 0.8858998761549918, 0.8858372973796993, 0.8860581403583567, 0.8857401714239368, 0.8858194841786413, 0.8858219703490599, 0.8860460284600564, 0.8862794874048704, 0.8861659669633665, 0.8861841977325703, 0.8859571388294847, 0.8861591290090042, 0.8861778721124087, 0.886075517087606, 0.8861153942676638, 0.8863493482296616, 0.8863588053367283, 0.8862855171694561, 0.8859522358455347, 0.8861881413646316, 0.88635919271561, 0.8866150672343261, 0.88654301302033, 0.8863308168970878, 0.8864878406571476, 0.8865920791660741, 0.8865282934881934, 0.8861324687594393, 0.886499999490782, 0.8867613222651942, 0.8867015249226922, 0.8864541399495274, 0.8862886890345055, 0.8867196084510127, 0.8865279899931009, 0.8865048203708887, 0.8864352997649659, 0.8865299602743015, 0.8864135657205212, 0.8865718553942905, 0.8861959021091852, 0.8862738925916949, 0.8863226709576972, 0.8861503604810642, 0.8860617778477002, 0.8863049282736523, 0.8865571213664623, 0.8867652877313581, 0.886519354823718, 0.8865398180490415, 0.8864300887393763, 0.8863778263209242, 0.8864502685513204, 0.8864001356937976, 0.8864619607900333, 0.886117507465142, 0.8864898693791723, 0.8862616397468371, 0.8864203307182813, 0.8861489143443313, 0.8864813836158378, 0.8863573171914811, 0.8862357329915082, 0.8864369477571208, 0.8864368087225932, 0.8861249691183342, 0.8858822806566068, 0.886328931471174, 0.8865216443730759, 0.8862349428078365, 0.8862938519407512, 0.8864305098942695, 0.8866093265863396, 0.8866769178416114, 0.8866594305117043, 0.8865791563163847, 0.886575074194492, 0.8867175327231442, 0.8868718511084557, 0.8865477383542729, 0.886276306679302, 0.886161681176577, 0.8864468201009081, 0.8866686380271538, 0.8864278223420893, 0.8866868094871566, 0.8865815864540443, 0.8867997401157333, 0.8866653322100713, 0.8866855913444673, 0.886660110090162, 0.8869666562282644, 0.886796054352894, 0.8865010781771416, 0.8862260037695419, 0.886271774497799, 0.8863760663420235, 0.8863932330238726, 0.8861578910581166, 0.886198387869516, 0.8862255611336365, 0.8865602455757948, 0.8865932390135045, 0.8869227081520129, 0.8866545743348462, 0.8867931842599903, 0.8867516474116198, 0.8868499807822032, 0.8867491065997263, 0.8867111163634813, 0.8867844068606505, 0.8867153203893243, 0.8868451847011102, 0.8867842631332229, 0.8868809246879129, 0.8870755295822882, 0.8870495155093687, 0.8870435700839171, 0.8870529943177412, 0.8868819212859723, 0.8869410269511423, 0.8866352999594027, 0.8868859153530155, 0.8870110870950605, 0.8867961225506547, 0.8864798502126707, 0.8867088668266693, 0.8868666729168021, 0.8868459347531128, 0.8868373091590261, 0.8867172720971221, 0.8867458573939145, 0.8869391146442525, 0.8867135916002784, 0.8864547461496559, 0.8865756292130951, 0.8868875992596796, 0.8862852633205196, 0.886560065002256, 0.886740138943271, 0.8869774686018966, 0.8869787198416665, 0.8867743319735734, 0.8865932902381132, 0.88693725818608, 0.8871352571270734, 0.8867709077254926, 0.8868371947167154, 0.8870526719801723, 0.886961521718147, 0.8869519103249646, 0.8865510605389585, 0.8862901930825455, 0.8861671465136208, 0.8865366766885663, 0.8865301793481626, 0.8864226350235148, 0.8863422535312271, 0.8867166851138877, 0.8866410356798157, 0.8866047539509775, 0.8866195654416535, 0.8866504139538347, 0.8868632201730076, 0.8870580774839936, 0.8869005082252339, 0.8868965448224995, 0.8870637678707096, 0.887050191655253, 0.8866409655994814, 0.8866595123088015, 0.886598657191479, 0.8865231220076876, 0.886700624072653, 0.8867349479544991, 0.8868710355638849, 0.8868908039848267, 0.8866028410912757, 0.886410830219349, 0.8864217377859681, 0.8867154760004796, 0.886349959718782, 0.8868709647173981, 0.8870982087272005, 0.8870586352537466, 0.8869645748884123, 0.8868685843412969, 0.8867986678053389, 0.8871434661877957, 0.8871572728457117, 0.8870824042811187, 0.8871600993031206, 0.886824024403074, 0.8867461117768587, 0.886719700715262, 0.8863056073655038, 0.8861596887388066, 0.8859960320739404, 0.8861735940248185, 0.8862430936757228, 0.8864181414095205, 0.8864176596875383, 0.8864555000460892, 0.8865307221786273, 0.8865203206232013, 0.8862417747061914, 0.8862313138283079, 0.8865247329402326, 0.8863891119719655, 0.886407524432922, 0.88640118657897, 0.8868251551743832, 0.8865192976073032, 0.8867823158259955, 0.8870416072982047, 0.886732360250583, 0.8868263825878785, 0.8869592730305085, 0.8870058133340738, 0.8869699692193139, 0.8867577662465964, 0.8866904966731739, 0.8867433927636496, 0.8868575898771585, 0.8870484047028097, 0.8870453910767528, 0.8865840767143341, 0.8867536974907636, 0.8868500514585902, 0.8869487371439763, 0.8870580933144936, 0.8869553328800597, 0.8870747630579054, 0.8874638796376468, 0.8872084643724794, 0.8871573389609362, 0.8874155187966375, 0.8876146932353551, 0.8876924130594047, 0.8877458253902962, 0.8879117232738927, 0.8874326951645379, 0.8874147804144568, 0.887542649090779, 0.8876354822587322, 0.8877945685839165, 0.8877181906744973, 0.8876646145975096, 0.8876390112866566, 0.8875405988901918, 0.8871655928407496, 0.8869247205165992, 0.8867992359272762, 0.8869447207580359, 0.8871833812880315, 0.8870079486690066, 0.887200716562372, 0.8872326115161795, 0.88739037775038, 0.887576526858284, 0.8873508802724428, 0.8873444372584421, 0.8874309825068387, 0.8873425546874489, 0.8874947475707057, 0.8874590751080943, 0.8872952701780269, 0.8871807539196388, 0.8871069116207407, 0.8872617452817327, 0.8872980845403687, 0.8868868485734503, 0.8867771984709133, 0.8868716048886842, 0.8865290677516751, 0.8867558197384083, 0.886823837383965, 0.8867628018800351, 0.886953774684374, 0.8870813461952152, 0.8874118488826606, 0.887363247218449, 0.8871255630723053, 0.8870579091478876, 0.8871299035419601, 0.8872220041914413, 0.8872899196189045, 0.8873164054597948, 0.8870584866091407, 0.8871639332838321, 0.8870366558531979, 0.8869687084819746, 0.8866656306618202, 0.8867322022225995, 0.8866909082201544, 0.8867862271242137, 0.8870588217726434, 0.8872519259894909, 0.88729541341738, 0.8871447102941838, 0.8873539629187063, 0.8869080787178747, 0.887406446733914, 0.887185636927453, 0.8869347122832676, 0.8865376176044902, 0.8865296113014239, 0.8864976786675496, 0.8864347026635753, 0.8864546428150488, 0.886720188911171, 0.8868620661647653, 0.8870429278494079, 0.8871962242022878, 0.8869608455278348, 0.8869419502233197, 0.8869563352915487, 0.8868897550819352, 0.8871412043455362], 'MSE': [94713.290145945168, 1088.1092035759793, 83.533324687824575, 22.267001587234756, 11.013524702360355, 6.3845732840555938, 4.6199259012092337, 3.8165738652267929, 3.3762477221193312, 3.0767636415269872, 2.8939537565108702, 2.7375015875377922, 2.6046210893944259, 2.5079138798659706, 2.4199858871409892, 2.360251805893355, 2.2997472262150827, 2.2416412062306801, 2.1991304678128518, 2.1715183188901843, 2.1352779927141423, 2.1005719551133866, 2.0575952643261388, 2.0326674351409868, 2.0109663042113777, 1.9878628329781407, 1.9684101667909426, 1.9494080659163442, 1.9328188263142398, 1.916637766327653, 1.8948761668681313, 1.8912947880508817, 1.8753020810601448, 1.8600082453437605, 1.8522164420380749, 1.8441495061546993, 1.8290633432591821, 1.8202569991655779, 1.8082630135403768, 1.8060458690847059, 1.7945292117329814, 1.7856237228925973, 1.7827039501069448, 1.7722339489708774, 1.7631454474637447, 1.7582532038545127, 1.7479135785537692, 1.7375487963396983, 1.7326924184104666, 1.7288458400568971, 1.7293370082619048, 1.7150501238371239, 1.7097969849100749, 1.7059490448032928, 1.6987397118905181, 1.6942997558815105, 1.6905300708339304, 1.6888910581809933, 1.6813172376662144, 1.6807203996518976, 1.6707178922083603, 1.6674368885347297, 1.6629909427725342, 1.6611081492858897, 1.6602461950586564, 1.6536278957026807, 1.6459698652720869, 1.6437593903147552, 1.6439671395810302, 1.6342251187585668, 1.6316751280741799, 1.6305850769266832, 1.6254158887666972, 1.6216499137259901, 1.6205601095750353, 1.6164008840805146, 1.6113625751922971, 1.6151127168714516, 1.6100970716835628, 1.604304370501078, 1.6041428930559389, 1.5973563001456881, 1.5998655854297257, 1.5941990003926685, 1.5938871614794852, 1.5896391887096428, 1.5877987320711033, 1.5896757393095338, 1.5836117124730349, 1.5768870357396327, 1.5727125589379876, 1.574624200173157, 1.5725390196312488, 1.5723239454134537, 1.5690931456623607, 1.5627317859115495, 1.5586438401257472, 1.5584174864944549, 1.5569225716969752, 1.5579596475341062, 1.5596996059113906, 1.5540102642697995, 1.5594807283006644, 1.5540794517750269, 1.5558085209132082, 1.5503181902394825, 1.5510359707889938, 1.5494632541656794, 1.5472034605955989, 1.5498350924459521, 1.5475230027397782, 1.5440557004336075, 1.5378805978089596, 1.5415870846680462, 1.5445517011074752, 1.5371803051225232, 1.5364746442884285, 1.5321620373170859, 1.5359590929495635, 1.5338460525986781, 1.5326352073931007, 1.5266385690982174, 1.5275887924300904, 1.5301913967547283, 1.528261654501559, 1.525943847795185, 1.521338500815425, 1.5197100550480986, 1.5225060938624277, 1.5222930396392467, 1.520903733371489, 1.5209707071349907, 1.5214044749150266, 1.517633873187159, 1.5194013703866427, 1.518443284905429, 1.5144103165430458, 1.5112060939200058, 1.5137978225233679, 1.5145037442353186, 1.5155173343945791, 1.5093322318860072, 1.5142162024237584, 1.5112861072080259, 1.5105802652112443, 1.5108956875793369, 1.5102059788018245, 1.509453903011216, 1.5057327075211675, 1.5017846809649322, 1.4980208058410651, 1.496933057340907, 1.4947122548546736, 1.492252895796913, 1.4920576489913269, 1.4948615055386654, 1.4897452354207597, 1.4933670076004113, 1.4887071141255406, 1.4879175079417117, 1.4855472474668758, 1.4909454474004822, 1.4864498584762351, 1.4882319078049855, 1.4875657391615855, 1.4852214381890696, 1.4852149080740893, 1.4836148473335096, 1.4846917993807258, 1.4825971768006343, 1.483025140634429, 1.4792673919206023, 1.4770014680396499, 1.4816169578676781, 1.4762353348418755, 1.4786320831508943, 1.4791376452699947, 1.4745595577913271, 1.4735642981951516, 1.4769567783257265, 1.4807675160799907, 1.4832297474104221, 1.4762776495405543, 1.4768630950111168, 1.4774975783706403, 1.4697298837050612, 1.4709017736162573, 1.466878685472027, 1.4674538655714056, 1.4677173350041364, 1.4635155623084337, 1.465026507803366, 1.461763466085928, 1.4639852771008348, 1.4602318448562914, 1.4615640942944566, 1.4611406804239617, 1.4584075648148835, 1.4586012765912111, 1.4547186173620155, 1.4565258932825629, 1.4592681969810064, 1.4565134117010481, 1.4614610765548917, 1.4575745408812115, 1.4581876724876768, 1.4570634568631067, 1.4575866812767218, 1.4627591057605542, 1.4582460886625683, 1.456594231412631, 1.4544949279906476, 1.4581308793175793, 1.4522261824641274, 1.4552333023384327, 1.4536460869419101, 1.4547830210143953, 1.454374261384048, 1.4561414228410441, 1.4539249318559644, 1.4513874239052518, 1.4514327993610601, 1.4515105140347866, 1.4441713282101611, 1.4461256260636348, 1.4432464689166442, 1.4461610448718676, 1.4440456434958244, 1.4439978807440612, 1.441822390580374, 1.4456335607922, 1.4440256609082811, 1.4436589668278035, 1.4441800551410133, 1.4410305681492086, 1.4376963319368059, 1.4399995548604565, 1.4331722051408182, 1.4362623430883636, 1.4338743810453798, 1.4321644499781852, 1.4309128286564314, 1.4268497129075308, 1.4228886250770514, 1.4317409761877844, 1.4296829069033441, 1.4339885183795491, 1.4340509820553726, 1.4290753126470888, 1.4288687238369027, 1.428301710085081, 1.4298727470799641, 1.432597907276268, 1.4283028460826519, 1.4290507254586073, 1.4273180899604339, 1.4224274430356656, 1.4226472748311612, 1.4217950843483864, 1.4224564628621341, 1.4188545956443603, 1.4251265415588685, 1.4225599916725005, 1.4204482619043064, 1.4173878015434573, 1.4184293164786241, 1.4176266485850799, 1.4176833111428784, 1.4126599567032665, 1.4166633545179224, 1.41353331807117, 1.4159417130770844, 1.414801755438664, 1.4155122225436447, 1.4146059759355862, 1.4101930649452201, 1.4108009959018135, 1.4090827099422385, 1.408664160251899, 1.4073417747758608, 1.4132137199354633, 1.410484685094709, 1.4108674145558102, 1.411588119281481, 1.4093475481256974, 1.410772815225118, 1.4078797393792004, 1.4052736410598936, 1.4075814677927652, 1.4108259639388512, 1.4081311057510055, 1.4062891678272267, 1.4084984386835588, 1.4113554954169927, 1.4130535648695015, 1.4083288750821075, 1.4093591828732821, 1.4036623711743317, 1.4019348956263367, 1.4053376932836392, 1.398294775375762, 1.4036522483288953, 1.4063448813595294, 1.4059344597169428, 1.4036232500359018, 1.3990774704051714, 1.397063834708212, 1.4056031083431961, 1.4029579554312348, 1.4009377237404488, 1.398690737235845, 1.40145837475916, 1.4016531932234193, 1.4051987653601432, 1.4046663863759568, 1.4038321856242841, 1.4001440292208114, 1.4029710734173237, 1.4024129521846902, 1.397839020863118, 1.3930064859190461, 1.39787291432188, 1.3923267188342079, 1.3944041411722217, 1.3931252607145113, 1.3938924389313354, 1.3928398101581621, 1.3934231236171306, 1.3890426915364285, 1.3916715443011265, 1.3915211898865394, 1.3876777529393256, 1.3884037035240162, 1.390511430456036, 1.3905482118877002, 1.3908027826653251, 1.3861147728931438, 1.3915589190515463, 1.3917525723404836, 1.3910128844249732, 1.39095356910511, 1.3877424405229764, 1.3887937813674671, 1.3837843994702361, 1.3847267309578621, 1.3862079786106958, 1.3841376722919703, 1.378814187892522, 1.3792999869507461, 1.3810160681547332, 1.3812341206339946, 1.3819828169916362, 1.3824298118219311, 1.3813273096254093, 1.3839215361267341, 1.381684757166304, 1.3821329084059719, 1.3839698281003134, 1.3806995645579982, 1.3842773037444125, 1.3839252289562913, 1.3856207305796682, 1.3864906989591437, 1.3850733466799248, 1.3840607084172412, 1.3877585453998884, 1.3840946266784226, 1.3835842252574999, 1.3829710579967076, 1.383218622979782, 1.3812028521971624, 1.3808386518487148, 1.3806862236342983, 1.3804660504401831, 1.379476166066157, 1.3765073922695872, 1.3758436775409326, 1.3779498338215639, 1.3776496428913103, 1.3800828206827997, 1.3798466212634393, 1.3789803129875697, 1.382906743742359, 1.3836125578807341, 1.3828432364154029, 1.3818706763042869, 1.3802489960073596, 1.3777519783889829, 1.3800800829644895, 1.3785066852633878, 1.3772305793483683, 1.3788432120573069, 1.3752202318018443, 1.3791555850701682, 1.3769380323425375, 1.3766616137778043, 1.3779763603188244, 1.3779882985150349, 1.3759313543962268, 1.3734521157823572, 1.3767142889308013, 1.3785609933575007, 1.3753403099162527, 1.3718586526940315, 1.3719084743815968, 1.3704339408612571, 1.3739768310408005, 1.373604575421562, 1.3744815429130866, 1.3725716815407156, 1.3708935973525234, 1.3740127610220099, 1.3692832040021308, 1.3710208348781656, 1.3690500458435226, 1.3714032273665719, 1.3755806606465648, 1.3757425749407595, 1.3724033530796027, 1.3738012709782383, 1.3741095944947153, 1.3696217118565368, 1.3699861352790732, 1.3699110033235598, 1.3681973102462648, 1.3698089397701065, 1.3687898865999313, 1.3589589247669263, 1.3655847873525215, 1.3656792041082464, 1.3681063200977945, 1.367908484234736, 1.368313495378656, 1.3654207486243859, 1.3666376406653205, 1.3648386684467613, 1.366237035976877, 1.3648238118119997, 1.3669664358391411, 1.3648553201582347, 1.3653606021519653, 1.3619538990973359, 1.3634739700595568, 1.3636810465392344, 1.3677293856887374, 1.3628121419955781, 1.362275123856256, 1.3622577068792128, 1.3623153496254043, 1.3620520589204383, 1.3628508125663938, 1.3642707708219062, 1.367124318555559, 1.3675384472457259, 1.3667389796488847, 1.3657429100149243, 1.3674074204362907, 1.3663617406224835, 1.3679164367627659, 1.3687687856990505, 1.3686597533282183, 1.3654864175493922, 1.3647316733319543, 1.3645951500349371, 1.3595128287822797, 1.3616412419303423, 1.3583692289227394, 1.3586218507566072, 1.3514574149907275, 1.3548652219595041, 1.3561253828604345, 1.3555816968754564, 1.3542093910772126, 1.3557693707348666, 1.3587965815503766, 1.3553956942221925, 1.3567601686229116, 1.355851419610075, 1.3624174430328388, 1.3583042237113367, 1.3598909090192972, 1.3581830568193252, 1.3576983650149228, 1.3591194272587221, 1.3554055307519131, 1.3516914494965806, 1.3531252146945489, 1.3552444343412122, 1.3566361191621223, 1.3584332929107668, 1.3563323102801184, 1.3568044650391, 1.3556928546145965, 1.3551995715890317, 1.3540972372282238, 1.3537624809823594, 1.3549437572561165, 1.354915706457023, 1.3556795529814196, 1.3562258572870127, 1.358300624432315, 1.3580616210931169, 1.363112269787137, 1.3610268735216475, 1.3557597913081654, 1.3570774258965861, 1.3576738109073343, 1.3543041288692663, 1.3476644574893635, 1.3484120011695555, 1.3546933545316384, 1.3512222518633596, 1.3490153938069431, 1.3476507898744738, 1.3496349749830225, 1.3524605799963985, 1.3515514882190758, 1.3526619360672136, 1.3528775899819432, 1.3504553845975171, 1.3525280194142857, 1.3513987672473087, 1.3515258433070609, 1.3480873266847455, 1.3481431950601372, 1.3487730482701843, 1.3465557844869342, 1.3484322291510349, 1.3493189267609691, 1.3477017594541161, 1.3426643838961412, 1.3456679539960421, 1.3443350007056079, 1.3470678019495743, 1.3428181312332523, 1.3390144732707496, 1.3414561429867258, 1.3413563388203409, 1.3459522881460717, 1.3456495899082801, 1.3443073380850614, 1.3453585384334481, 1.3447182285199799, 1.34470964310987, 1.3415432548369568, 1.3416814703379254, 1.347334070710744, 1.3429501042107306, 1.3434148337156377, 1.341140847118268, 1.3410660616258154, 1.3409769670196652, 1.3443794062847931, 1.3415283515247269, 1.3393433376910844, 1.3446076366233393, 1.3416644054538447, 1.3431132972823276, 1.3440003212202272, 1.3433430894798588, 1.3433596388221298, 1.3455632409873539, 1.3475672805894543, 1.348606057684111, 1.3470768580863277, 1.3445537759989901, 1.3448992285662935, 1.3456378332667895, 1.3462296255823734, 1.3457164896588401, 1.3397841767680467, 1.3435885482036414, 1.3412358295690303, 1.346018537318042, 1.3441403092452466, 1.3413257833444434, 1.3498200943811578, 1.3446221406426497, 1.3469774275821329, 1.3446222664346144, 1.3446727938859275, 1.3434952296559146, 1.3415941272045562, 1.3387343800820619, 1.3379196139656648, 1.3409886201647225, 1.3364159996323073, 1.3348397284163616, 1.3360108836494027, 1.3318616982738711, 1.335632152598295, 1.3349722981960992, 1.3363746269796435, 1.3394288227637159, 1.3357867015319296, 1.3355649062609074, 1.3351551509273174, 1.3355953047285369, 1.3374093780192029, 1.3370711055102411, 1.3378689305708302, 1.3368535427844566, 1.3332748881923988, 1.3411033284611784, 1.3437798450268128, 1.346138512344333, 1.3417553165135809, 1.3387241998853863, 1.3395135967196439, 1.3359128661592667, 1.340250585052521, 1.3383814358557462, 1.3397700813411451, 1.3405728733172295, 1.3408770677729653, 1.3420421934464604, 1.3436495665628447, 1.3448468485416689, 1.3474858063942325, 1.3417304369458578, 1.341312609987354, 1.3417103163179498, 1.3416345560162848, 1.3420785881259298, 1.3428883845642807, 1.3375311875363478, 1.3414273110763237, 1.3391595229166706, 1.3358326203553674, 1.3323555904303273, 1.337567191468068, 1.3349166625552789, 1.3347409874058818, 1.3327397537405399, 1.3297995150637956, 1.3284141133727256, 1.3255089746910924, 1.3249604737659257, 1.327938784787885, 1.3270178466769509, 1.3282363345794765, 1.3286616113629346, 1.3276310580221826, 1.3320245288128456, 1.32790508087658, 1.33292247686153, 1.3347335909027795, 1.3358039976160083, 1.3356786447229083, 1.3345758200545832, 1.3375297877652597, 1.3407006279690776, 1.3376295147118826, 1.3349130599812189, 1.333939995877236, 1.3323413300493248, 1.3318345629652966, 1.3298705370052692, 1.3338594737452447, 1.3286801710787979, 1.3275903478907232, 1.3257806476178919, 1.3270859513298416, 1.3271481370609406, 1.3305934479008512, 1.3285429252056065, 1.3313583239541416, 1.3325964478014685, 1.3315480048803716, 1.3334918485215739, 1.3365308146013462, 1.3354691935859042, 1.3368503549592337, 1.3387646887446312, 1.3411109184661905, 1.3434970800959589, 1.3393865321468177, 1.3344933497810103, 1.3389706982362597, 1.3328480486139684, 1.3353845068039485, 1.3344822545635611, 1.3352141579333907, 1.3326312419282895, 1.3363501151966686, 1.3354224960132088, 1.335393418478553, 1.3327728992096859, 1.3300424304904181, 1.3313701329469292, 1.3311569111100923, 1.3338125267807646, 1.3314501076958294, 1.3312308937454327, 1.3324280086972988, 1.331961616660587, 1.3292253583626119, 1.3291147507564602, 1.3299719080968604, 1.3338698706718588, 1.331110787522956, 1.3291102200843974, 1.3261175852553118, 1.3269603106328498, 1.3294420955022381, 1.3276055907353437, 1.3263864470945037, 1.3271324660501249, 1.3317619183122218, 1.32746338451177, 1.3244070284499641, 1.3251064009812978, 1.3279997445256275, 1.3299348108748796, 1.3248949012315137, 1.3271360156414977, 1.3274070008836274, 1.328220093909332, 1.3271129717988608, 1.328474289046498, 1.3266229785166981, 1.3310200200852014, 1.3301078658172931, 1.3295373680680953, 1.331552661878421, 1.3325886988983924, 1.3297448814011972, 1.3267953034714164, 1.3243606494974405, 1.3272370101007354, 1.3269976780987618, 1.3282810405669083, 1.3288922867921953, 1.3280450232863639, 1.3286313627790847, 1.3279082742228858, 1.3319369013102447, 1.3275818633856244, 1.3302511715691152, 1.328395167577048, 1.3315695754780106, 1.3276811104346598, 1.3291321556755586, 1.3305541695334899, 1.3282008194667443, 1.3282024455746186, 1.3318496319590891, 1.3346880464554869, 1.3294641469018285, 1.3272102321894932, 1.3305634112946028, 1.3298744270073199, 1.328276114860323, 1.3261847262242217, 1.3253941983292092, 1.3255987251137065, 1.326537589030268, 1.3265853323546679, 1.3249191783480707, 1.3231143148666704, 1.3269050444851784, 1.3300796313424827, 1.3314202582774248, 1.3280853553712539, 1.3254910366593744, 1.3283075476981854, 1.3252785084859053, 1.3265091668386571, 1.3239577043118724, 1.3255297005458344, 1.3252927555326881, 1.3255907769593855, 1.3220055014336689, 1.3240008119347018, 1.3274507685061356, 1.3306679597172968, 1.3301326384347303, 1.3289128709995759, 1.3287120944226061, 1.3314645864136065, 1.3309909473468133, 1.3306731366596263, 1.3267587636170033, 1.3263728818523139, 1.3225195055022316, 1.3256555215625068, 1.3240343797163987, 1.3245201827566855, 1.3233701039166905, 1.3245498993623281, 1.3249942222465387, 1.3241370376563335, 1.3249450531685738, 1.3234261975026953, 1.3241387186510178, 1.3230081928892097, 1.3207321499766902, 1.3210364030967567, 1.3211059390840438, 1.3209957159538894, 1.3229965369647423, 1.3223052540926867, 1.3258809491179759, 1.3229498235045545, 1.3214858507856579, 1.3240000143132939, 1.3276990446773815, 1.3250205321825448, 1.3231748775079684, 1.3234174251100486, 1.3235183075793722, 1.3249222265551175, 1.3245879011396364, 1.3223276198844469, 1.3249652725883769, 1.3279926545831546, 1.3265788410166068, 1.3229301290161879, 1.3299748770410624, 1.3267608755532136, 1.3246547824948036, 1.3218790430192899, 1.3218644088785645, 1.324254870639928, 1.326372282744013, 1.3223493324856603, 1.3200335937793899, 1.3242949196613061, 1.3235196460637468, 1.3209994859214502, 1.3220655531882737, 1.3221779652804913, 1.3268661891679367, 1.3299172199612868, 1.3313563372661728, 1.3270344185480092, 1.3271104095739468, 1.3283682170853255, 1.3293083359163893, 1.3249290917423209, 1.32581386578055, 1.326238206453179, 1.326064975515256, 1.3257041801830678, 1.3232152598070235, 1.320936264702373, 1.3227791494652774, 1.3228255042845245, 1.3208697115748365, 1.3210284950888278, 1.3258146854199993, 1.3255977684383666, 1.3263095123999817, 1.3271929501997672, 1.3251169370644396, 1.3247154948075184, 1.3231238532415717, 1.3228926474719502, 1.3262605787104698, 1.3285062826819882, 1.3283787109177934, 1.3249432331852256, 1.3292182065616089, 1.3231246818417191, 1.3204669012160903, 1.3209297411876528, 1.3220298441863745, 1.323152522036446, 1.3239702457460483, 1.3199375829645785, 1.319776104261815, 1.3206517454750499, 1.3197430468283229, 1.3236736822667692, 1.3245849259498355, 1.3248938221353723, 1.3297369389380826, 1.3314435612569346, 1.3333576425720575, 1.3312809290283061, 1.3304680810864757, 1.3284207731030775, 1.3284264071849285, 1.3279838372271509, 1.3271040607848494, 1.3272257143875632, 1.3304835073750259, 1.3306058547961526, 1.3271741091957245, 1.3287602930612663, 1.3285449462099097, 1.3286190719281468, 1.3236604570905364, 1.3272376792874787, 1.3241614937966664, 1.3211288952616047, 1.32474575984878, 1.3236461016150705, 1.3220918531925916, 1.3215475311784073, 1.321966753642553, 1.3244486186214359, 1.3252353842179949, 1.3246167267468472, 1.3232811101290514, 1.3210493947710111, 1.3210846412752151, 1.3264800414700408, 1.3244962056202398, 1.3233692773059822, 1.3222150778933142, 1.3209360795533953, 1.3221379360597869, 1.3207411150255604, 1.3161901193463028, 1.3191773828778806, 1.3197753309971514, 1.3167557338431848, 1.3144262468533869, 1.3135172581290375, 1.3128925628583612, 1.310952268893125, 1.3165548439809436, 1.3167643697489497, 1.315268854461882, 1.3141831044110166, 1.3123224764752355, 1.3132157705517515, 1.3138423809497073, 1.3141418299147034, 1.3152928330186944, 1.3196787959911309, 1.3224959694644114, 1.3239636011551561, 1.3222620523889088, 1.3194707474243628, 1.3215225569147573, 1.3192679990380711, 1.3188949648253816, 1.317049776294335, 1.314872629830075, 1.3175117274441759, 1.3175870830841172, 1.3165748747331529, 1.3176091010933773, 1.3158290968731106, 1.3162463117430629, 1.3181621271253663, 1.3195014763699429, 1.320365114674573, 1.3185542246769113, 1.3181292111523013, 1.3229389088265684, 1.3242213449109115, 1.3231171945823514, 1.3271234104869774, 1.3244713844217508, 1.323675869588516, 1.3243897233000466, 1.3221561602686811, 1.3206641205436698, 1.316798656102276, 1.317367087198116, 1.3201469726577559, 1.3209382335130857, 1.3200962077721825, 1.319019025046831, 1.3182247057270382, 1.3179149349443757, 1.3209314796922402, 1.3196982056918585, 1.3211868059392913, 1.3219814988641201, 1.3255262099399574, 1.3247476080986551, 1.3252305708827947, 1.3241157483768671, 1.3209275597162435, 1.3186690682967745, 1.3181604518390608, 1.3199230322538356, 1.3174756736994722, 1.322690607159213, 1.3168618380813653, 1.3194443661139907, 1.3223791086332279, 1.3270234138657953, 1.3271170532853382, 1.3274905281932585, 1.3282270774355833, 1.3279938631550192, 1.3248881123363339, 1.3232287567557486, 1.3211134504742759, 1.3193205403904493, 1.3220734617158185, 1.3222944557666612, 1.3221262121431183, 1.3229049151386989, 1.3199640368215606], 'Rp': [-0.058665822562235903, 0.069987963002141176, 0.26072417262976488, 0.49299267944152808, 0.63328005586582659, 0.73924052162561027, 0.79692907336806207, 0.82826148313464454, 0.84644963025567499, 0.85997777045662294, 0.86831935607068333, 0.87588067826048066, 0.88201724308952756, 0.8865857178601354, 0.89088527424567909, 0.89367028040651642, 0.89652598871134237, 0.89928461454028497, 0.90129009314510222, 0.90264145993406308, 0.90431301065077918, 0.90588517661969925, 0.90786223791767617, 0.90910963858781169, 0.91008918665069138, 0.911147409523832, 0.91208611836515374, 0.91294870927243665, 0.91369419209053593, 0.91445873778037889, 0.91549619134811777, 0.91563238397959534, 0.91645179098494123, 0.91711167789942405, 0.91745696083817929, 0.91787023985912108, 0.91855436685415714, 0.91896891951119197, 0.91950389267333366, 0.91962102041512794, 0.92016322733721323, 0.92055948775401131, 0.92071349180373618, 0.92121942844540816, 0.92160432851330809, 0.92182806551788044, 0.9223196197156095, 0.92279348261266092, 0.92300941525765012, 0.9231764474277091, 0.92321592868156177, 0.92384977961214665, 0.92406412048170261, 0.92423673328235634, 0.92458337280534619, 0.92480221177059097, 0.92498305295901295, 0.92504518378446954, 0.92536667242273674, 0.92543070770809777, 0.92586296836648418, 0.92602583081028111, 0.92623279334852582, 0.92631028567317608, 0.92635970018444125, 0.92667173976486861, 0.9270266511138836, 0.92714344065609, 0.92710679897542503, 0.92754120317236133, 0.92767176351745295, 0.92773160954925316, 0.92794378124107568, 0.92814171800294942, 0.92818033035930725, 0.92837055829321602, 0.92861235543199927, 0.92845803167762242, 0.92866964475189973, 0.92895547691078584, 0.92894488633644845, 0.92921997722248961, 0.92913276204830142, 0.92940283951274283, 0.92943827908274823, 0.92961176427468017, 0.92968076134388034, 0.92960446463106217, 0.92989361350816935, 0.93018144661672064, 0.93038107771558709, 0.93028255106679736, 0.93041190658961292, 0.93038116355077949, 0.9305423839409549, 0.93081892334967242, 0.93104346650772407, 0.93101942994044395, 0.93110328865850112, 0.93106920031815499, 0.93096985457240322, 0.93123174217536042, 0.93098597407680928, 0.93124060544553344, 0.93117405035978362, 0.93140405536298221, 0.93138548614431083, 0.9314433889353928, 0.93154839325345762, 0.93141844835031085, 0.93153195586844617, 0.93168427153437661, 0.93196731879054295, 0.93179353841170742, 0.93168791163858189, 0.93201243175099457, 0.93205086157724759, 0.93224268406133226, 0.93206730953421579, 0.93214675049516194, 0.93221267924397111, 0.93249017720921468, 0.93246903365999745, 0.93233848075896597, 0.93240716718372874, 0.93252024773843334, 0.93272715311840826, 0.93279694220640286, 0.93267515824248381, 0.93267964806480086, 0.93273593418918266, 0.93277116818686856, 0.93271301571616561, 0.93289743686597537, 0.93283372366205441, 0.93285497082167335, 0.93306170066029159, 0.93318970956762692, 0.93308141092771213, 0.93303398783726377, 0.93301171270178518, 0.9332924192051727, 0.93307890337734867, 0.93320068001299183, 0.93322569699821944, 0.93322956384943834, 0.93324403430909741, 0.93331322156561525, 0.9334515403545659, 0.93364402426817872, 0.93379844037236093, 0.93384418338293496, 0.93395753283023697, 0.93406087577276664, 0.93406482709371397, 0.93394581700844026, 0.93418488365212105, 0.93401341333883514, 0.93423990429940684, 0.93427501523908818, 0.93437593162384114, 0.93415747089571577, 0.93434000708590648, 0.9342582617309233, 0.9342761601049796, 0.93439531842840318, 0.93440126446446803, 0.93445762165883006, 0.93442578680289767, 0.9345031497652192, 0.93449079087832121, 0.93466095929355131, 0.93476926876748023, 0.93454900491899628, 0.93478698483590228, 0.93467000070205197, 0.93466133611504232, 0.93487087200295516, 0.93490988748342696, 0.93475397605329802, 0.93459936264596322, 0.93450445263354576, 0.93479023897410607, 0.9347618521303438, 0.93477590297016599, 0.93511872916721972, 0.93504721169002103, 0.93522704154806779, 0.9351998420830141, 0.93521234721779756, 0.93537928674435589, 0.93531216120836269, 0.93545126500291831, 0.93536234182327316, 0.93554228757055036, 0.9354507554668926, 0.935501763171251, 0.93559614732362528, 0.93559909793438656, 0.93578759841503789, 0.93569466968029025, 0.93556559565840258, 0.93568912251280423, 0.9354741078826786, 0.93565355115482196, 0.93562911589702302, 0.93565075860670743, 0.93563852919291479, 0.93543145214261403, 0.93560784114907958, 0.93568295497897669, 0.9358042207819538, 0.93564925045409053, 0.93591106503889177, 0.93578136876572993, 0.93583329366847856, 0.9357838221598056, 0.9357863470096679, 0.93571223987453622, 0.93580899896523395, 0.93592614573780764, 0.93593973468082958, 0.93593166940016348, 0.93625633484178405, 0.936161601185165, 0.93630592288201409, 0.93617111728053415, 0.93625093332468934, 0.93626883232964253, 0.93639177287977737, 0.93621289236456873, 0.93625966076971434, 0.93629705735775648, 0.9362570967768179, 0.93638558863077337, 0.93655480841235572, 0.93643776081280183, 0.93676168187119868, 0.93662991344370927, 0.93671521298089322, 0.93681456709135691, 0.93687594814064146, 0.93705025446626311, 0.93723111275785775, 0.93684361473512057, 0.93693005086444592, 0.93674211665775198, 0.93672813611824135, 0.93696166417156102, 0.93696272330514119, 0.9369765789647323, 0.93690373317266673, 0.93681186698614616, 0.93698167600256421, 0.93697477309688104, 0.93703239079353073, 0.9372442464806775, 0.93724840351229577, 0.93728734686830906, 0.93725399852803937, 0.93740810460923663, 0.93711940151301076, 0.93725006523748666, 0.93733895156965585, 0.93747379080205517, 0.93742229527564769, 0.93747661479392963, 0.93747437074777573, 0.93770521078021263, 0.93751838251649078, 0.93765919256223751, 0.93753427419985369, 0.93761325535931672, 0.93758538874320796, 0.93760018881318208, 0.93781024047290351, 0.93781780823934824, 0.93785465526407186, 0.93786096895050564, 0.93793220880048689, 0.93768345098243921, 0.93779779284524711, 0.93779686450014144, 0.93773762099943447, 0.93784679132141002, 0.93777250743655538, 0.93791336041824769, 0.93804324649585247, 0.93794716192791039, 0.93780056037219917, 0.93792659874073514, 0.93798109011641639, 0.93788188529227945, 0.93775610884704896, 0.93768924397721853, 0.93788760897509249, 0.9378471375989228, 0.93810959325306997, 0.93817723120426932, 0.93803191289425791, 0.93835018554366167, 0.9381168034020132, 0.9379884069453801, 0.93799834051609043, 0.93810667768614153, 0.93833449588512541, 0.93840025572713404, 0.93802929590748052, 0.93813546734249431, 0.93824946851547397, 0.93832132509506938, 0.93821164531593271, 0.93820143864153915, 0.93803072672811849, 0.93805219970497333, 0.93809499330102974, 0.93826984638461919, 0.93815318667892711, 0.9381645663705992, 0.93837379788039654, 0.93858843656029378, 0.93836698824227505, 0.93863247262127392, 0.93854117815441229, 0.93857705035794103, 0.9385639997985904, 0.93859445607964764, 0.93859612624452393, 0.93877909039371299, 0.93865617984922445, 0.93866490570393857, 0.9388302667846834, 0.93882326388229487, 0.93872275125482363, 0.93873856352300278, 0.93870415703289756, 0.93891464239871525, 0.9386646996908613, 0.93864034520282524, 0.938704045023668, 0.93869212511210443, 0.93882994572208756, 0.93878118739723626, 0.9390050799620564, 0.93897544460635995, 0.93889460661870228, 0.93901230504034672, 0.93927339870595283, 0.93922782068985766, 0.93914507641013167, 0.93912322041297003, 0.93911089107695267, 0.93907649752702482, 0.93913857887799645, 0.93901418040580131, 0.93911188365630061, 0.93910755776284216, 0.9390066618248174, 0.93916350495127254, 0.93897817945120632, 0.93901866218184138, 0.93895115664866857, 0.93888920853446223, 0.93896684233888761, 0.93900878384385944, 0.93882747371097752, 0.9390129691498309, 0.93901420755254739, 0.93904575134125412, 0.9390302851478175, 0.93912042268488116, 0.93915517177008145, 0.93914939245790985, 0.93915414301932021, 0.9392249543132386, 0.93933698059049431, 0.93937755625886676, 0.93927928844913355, 0.93927796286057663, 0.93916859055731128, 0.93917699682198696, 0.93922369454303778, 0.9390372280585827, 0.93901311552611733, 0.93903966570967579, 0.93911462280997537, 0.93918455817421276, 0.93928774684690264, 0.93919607308746544, 0.93925460008273753, 0.93930136227504257, 0.93924801824803528, 0.93940718479337548, 0.93921595423493265, 0.9393222306410266, 0.93933735041976996, 0.93928934514256568, 0.93928003632156831, 0.93937145736942962, 0.9394789083853593, 0.93934007162291211, 0.93923407588614183, 0.9393838480066794, 0.93956796615356875, 0.93955464066312167, 0.93960879575299994, 0.93946307272805885, 0.9394720963671338, 0.93944855113517012, 0.93951315542259217, 0.93961765959022447, 0.93945429630552657, 0.9396632088431125, 0.93958936564582496, 0.93968160589603511, 0.93956670814355114, 0.93939011466260558, 0.93938702693050069, 0.93953556256259596, 0.93948349183514201, 0.93945183774644303, 0.93967118166253982, 0.93964798011679163, 0.9396350402133381, 0.93971805596458668, 0.93965073788141962, 0.93969819046770953, 0.94013543170066771, 0.93985907659600187, 0.93984390821728203, 0.93973303061452129, 0.93973561145807394, 0.93971155775417425, 0.93983952967972173, 0.939801269644436, 0.93987725925572885, 0.93981382929907387, 0.93986910599007767, 0.93977553254275692, 0.93987398638793118, 0.93984889395666815, 0.94000409270888474, 0.93993369150047246, 0.93993856588207547, 0.9397573512134052, 0.93996016183455966, 0.94000463099104503, 0.93999791754412831, 0.93999625535139175, 0.94000839306494444, 0.93998409890448154, 0.93991980608600878, 0.9397752093910462, 0.93975995019797554, 0.93979519159686531, 0.93982705595553528, 0.93975763193081696, 0.93979616494577678, 0.93973187349040244, 0.93969606651952742, 0.9396878608436352, 0.9398374718251955, 0.93987810569804964, 0.93988516485359885, 0.94012544793609076, 0.94002997766613594, 0.94016212680953637, 0.94016249272345231, 0.94048395598667112, 0.94031774562871273, 0.94027528530570925, 0.94029465536384915, 0.94034951057646254, 0.94028241299310511, 0.94015379000848809, 0.94031171021764515, 0.94024523514004554, 0.9402739483648469, 0.93998294471697519, 0.94018085427831899, 0.94009796932641698, 0.94017009468756962, 0.94022643828364194, 0.94015144111040017, 0.94030366772010554, 0.94047194837297932, 0.94042104884529043, 0.94033267281758459, 0.94023674666027168, 0.9401676830482032, 0.94025725737043275, 0.9402516610109255, 0.94030495498670652, 0.94031620329131649, 0.94035918802017404, 0.940374199574464, 0.94032080812323715, 0.9403411649840665, 0.94028404424530287, 0.94026073378304509, 0.94018719191254774, 0.94018454543822039, 0.93994991334799105, 0.94007314034675171, 0.94028058135106518, 0.94022575666211183, 0.94019210993178159, 0.9403525237864252, 0.94065576391839933, 0.94062420323242724, 0.94034451492276139, 0.94050597760269095, 0.94058709098707016, 0.94065801796986603, 0.94055702381138595, 0.940433230085715, 0.94049407361499682, 0.94043514489853519, 0.9404062475439382, 0.94052457059919625, 0.94045594757833473, 0.94049239360426595, 0.94047191183649381, 0.94062904923034951, 0.94063967503698864, 0.9406140767198925, 0.94070012657697177, 0.94062594816172773, 0.94059370991209656, 0.94065196590211775, 0.94088335183391092, 0.94073919368151404, 0.9407987987332096, 0.94066570402531569, 0.94088710180206214, 0.94104556886510393, 0.94092280739060852, 0.94094989824715591, 0.9407312706662625, 0.94075259337477957, 0.94080206931405652, 0.94074814807104101, 0.94079443132509744, 0.94078582137541089, 0.94093009835337404, 0.94092016054188421, 0.94065718068842274, 0.94086319352571723, 0.94085138270363577, 0.94095621102892102, 0.94093952633922906, 0.94093481942691937, 0.94081828036481774, 0.94093914927256472, 0.94102985089367353, 0.94080860712157466, 0.940933828473838, 0.9408617633651315, 0.94081544917878679, 0.94086184914536253, 0.94085709899386927, 0.94073529760709107, 0.94065182403144065, 0.94061206848960821, 0.94067159681474755, 0.94079755406170662, 0.94078483756414111, 0.94072272454433636, 0.94072422980545733, 0.94073657546728429, 0.94102039503515844, 0.94083947224743225, 0.94095911209416472, 0.9407287702212096, 0.94083000270558537, 0.94093532412494785, 0.94056066990398568, 0.94078908341973821, 0.94070093850175585, 0.94079037919960495, 0.94078519506565039, 0.94085419430844663, 0.94092705432878243, 0.94106626323668385, 0.94111210521028499, 0.94095429361812555, 0.94115747743252565, 0.94122839337843234, 0.94118741343742107, 0.94137708383922691, 0.94121614100716244, 0.94122313460501295, 0.94115905387710541, 0.94104806971062593, 0.94118676442484384, 0.94121000593294857, 0.94121169650675229, 0.94118817762924789, 0.94113097798901613, 0.94113016566484942, 0.94110257559249033, 0.9411512206652547, 0.94131921520969808, 0.94094509816126626, 0.94083154567437299, 0.94072829807119762, 0.94092656049069023, 0.94104696612279726, 0.94103175687555107, 0.9412166690379804, 0.94100600612857865, 0.94107541497688907, 0.94101578744654291, 0.94096762571648285, 0.94096999628222211, 0.94092235119168699, 0.94084073268056767, 0.94077094439655229, 0.94065040250650211, 0.9409310998067717, 0.94093336960677121, 0.94091225850142013, 0.94091708839680654, 0.94091440671544979, 0.94087956212248514, 0.94111172113685826, 0.94095164832409239, 0.94106042751405805, 0.94117852424458326, 0.94134571172630888, 0.94109944190346484, 0.94122354758894067, 0.94125111416732299, 0.94132815574047202, 0.94147591816286047, 0.94151738577630606, 0.94166830851247985, 0.94167488411596156, 0.94155866580216208, 0.94159231547195199, 0.94152927331080971, 0.94152108311200466, 0.94156539513863224, 0.94136080347711237, 0.94155291336594404, 0.94130598090490203, 0.94123285747870067, 0.94120199641501368, 0.94120615213168934, 0.94124445080303398, 0.9411217433912541, 0.9409827588724633, 0.94110011671537497, 0.94123204528101601, 0.94127390509890951, 0.9413300247529256, 0.94136777090368562, 0.94147197833713903, 0.94129379240610611, 0.94152197993840958, 0.94157966118185643, 0.94164295720356239, 0.9416053496746295, 0.94158707513845108, 0.94145195730692388, 0.94151561014518548, 0.94138816279244897, 0.9413445659306976, 0.94138136156203556, 0.94130670247450077, 0.94115283830269614, 0.94124538531692259, 0.9411361955348162, 0.94106158594921774, 0.94095784242355551, 0.94082806041320233, 0.94105918344003148, 0.94124502416766187, 0.94106027685491833, 0.94131573795803691, 0.94122930032830576, 0.94125220273295052, 0.94122760013454787, 0.94134775646338287, 0.94115629036995496, 0.94119778868960169, 0.94121677924359359, 0.94133463327580136, 0.9414317120126241, 0.94139410873455809, 0.94142527616956062, 0.94128914653597218, 0.94138829924878453, 0.94139809407087949, 0.94135609332923298, 0.94135903492439932, 0.94148337054655717, 0.94149339600934567, 0.94148121080972469, 0.94127657858589009, 0.94139372784737929, 0.94149783294566847, 0.94162208828629579, 0.94158396197058447, 0.94148027919872734, 0.94157207980621926, 0.94161161315184383, 0.94158254166683031, 0.94138600909498737, 0.94156264202169182, 0.94169941504521082, 0.94166575743287639, 0.94153365981531523, 0.94145028507686368, 0.94166849543707365, 0.94157186994978059, 0.94157111452796927, 0.94152076672283924, 0.94159263757541756, 0.94153676986883683, 0.94159302369126818, 0.94139707810569206, 0.94145177383708467, 0.94147290042555454, 0.94138112899129356, 0.94134820895057969, 0.94148397428646813, 0.94161017301416738, 0.94171487946929644, 0.94158699870583751, 0.94157386464844961, 0.94156557936931096, 0.94151072670380931, 0.94151965236216906, 0.94153149309178619, 0.9415460222820301, 0.94135902782679226, 0.94156574730677745, 0.94144951460611936, 0.94152756018338624, 0.94138548529577848, 0.9415448112165874, 0.94150259717297302, 0.94142941712124184, 0.94152152326564964, 0.94153569025808548, 0.94137151986838552, 0.94125565219729856, 0.94147679028976128, 0.9415790429980031, 0.94144273576873183, 0.94147585806832379, 0.94152095266333302, 0.94161517938027584, 0.94167417256526464, 0.94165069899315024, 0.94161782856502041, 0.9415974750198115, 0.94167717520949934, 0.94175523046496312, 0.94159684796652687, 0.94143924063924633, 0.94139602740722583, 0.94153699282503145, 0.94164669460375872, 0.94153748837940354, 0.94165334393904321, 0.94162776719209507, 0.94173130352268908, 0.941660193997095, 0.94164929223712834, 0.94166933801814701, 0.941810460237406, 0.94172621318159888, 0.94157738824819248, 0.94140930134317846, 0.94144049610332192, 0.94150002499227425, 0.94150719964460228, 0.9413817974289248, 0.94142207364742037, 0.94141812170808536, 0.94160012772996515, 0.94161116532088585, 0.94178349612764822, 0.94166022758537515, 0.94172040941294866, 0.9417128174444267, 0.94177569674602124, 0.9417055190910163, 0.94168914270741155, 0.94171217407408159, 0.94167661397523184, 0.94174386787297848, 0.94170520166175276, 0.94177058316541395, 0.94186674737110776, 0.94186287761090859, 0.94186040125532522, 0.94185530666538275, 0.94176871037382048, 0.94181108394105939, 0.94164172588825623, 0.94177916990340849, 0.9418349508818078, 0.94172799237327565, 0.9415748720839191, 0.94168080699986578, 0.94174630509503909, 0.94176259588329936, 0.94175637053311301, 0.94166814044334457, 0.94169136109101448, 0.94178058726547886, 0.94167266788389259, 0.94154456488299143, 0.94160943807025022, 0.94177756992535733, 0.94145854695165254, 0.94159852253706977, 0.94169140773480531, 0.94181272635563063, 0.9418107904741474, 0.94170564672229451, 0.94162185926457886, 0.9417847127200768, 0.94189830481190584, 0.94171437619840503, 0.94175295469900711, 0.94185615481593932, 0.9418094746648954, 0.94179863775345429, 0.9415979612896942, 0.9414631954590591, 0.9413877497145251, 0.94158444177646572, 0.94158759079511334, 0.94152789636681422, 0.94147290907172598, 0.94169687082893683, 0.94163834343217634, 0.94161277839184299, 0.94162615463628496, 0.94164665509411727, 0.9417529215282161, 0.94187155619621454, 0.94177615490359556, 0.94179682296658818, 0.94188098741533421, 0.94184544823626248, 0.94164024848571359, 0.94165054675002524, 0.94163757429258466, 0.94156958270010671, 0.9416680302020829, 0.94168236150798335, 0.94175443292425953, 0.94175745544165446, 0.94162558132850005, 0.94151724456673413, 0.94151787033774981, 0.94168058216265205, 0.94148284459125464, 0.94177257625410371, 0.94188863834055159, 0.94185920339442641, 0.94181359746703786, 0.94177455469314175, 0.9417433959359125, 0.94190205501748758, 0.94190424348669477, 0.94186835561335591, 0.94191677621298409, 0.94173536110643952, 0.94170071034725888, 0.94167777900566685, 0.94147165453489889, 0.94136830013459327, 0.94129740477767221, 0.94140446619784035, 0.94144364169615269, 0.9415258346808455, 0.94152569726506785, 0.94153655073382725, 0.94159140931000673, 0.94157700943472833, 0.94143686000421489, 0.94142119174495265, 0.94156539162335295, 0.94151298201632283, 0.94150343833845007, 0.94151300444709651, 0.94174491616549494, 0.94157335165679612, 0.94170240314846176, 0.94184267107118536, 0.94170240510706316, 0.94174424493871656, 0.94182807445997341, 0.94182099996744306, 0.94180765540439682, 0.9416964709893183, 0.94167409293362347, 0.94169317077565062, 0.94175303014892608, 0.94185359456192685, 0.94185776392221909, 0.94161414850627878, 0.94170583253941254, 0.94173884181789214, 0.94180393337750434, 0.9418616440370573, 0.9418043596319059, 0.94187358009818867, 0.94206786434747325, 0.94194484186238892, 0.94192573217803788, 0.9420453395506031, 0.94216845630337365, 0.94219793682492259, 0.94223206895846068, 0.94232891767723559, 0.94205742438082596, 0.9420577998586489, 0.94211710455179465, 0.94217236568480378, 0.94225819854260429, 0.94221524798461187, 0.94218266934560313, 0.9421860186567349, 0.94212679972232949, 0.94192633550159233, 0.94178763683351108, 0.94172750327354771, 0.94180460817250022, 0.94195613698493796, 0.94184168188053619, 0.9419498678570255, 0.94196191866562495, 0.94202925429010786, 0.94213898914399685, 0.942019276580909, 0.94201140000489103, 0.94205473854257848, 0.94200614672336014, 0.94209115964136958, 0.94207785161200541, 0.94198401011890809, 0.94192911048952044, 0.94189462793528789, 0.94196313801018117, 0.94198930638886202, 0.94176916856428439, 0.94170957663528743, 0.94175577158148671, 0.94157279894732226, 0.94170187153727736, 0.94174685668283031, 0.9417072995509751, 0.94180475392604746, 0.9418723517977986, 0.94206010787427907, 0.94201881457920689, 0.94189327062864237, 0.94185811056253543, 0.94189899868824478, 0.94194489032696593, 0.94198648020812814, 0.94200140116922604, 0.94185255262777579, 0.94190706214940312, 0.94185132201787802, 0.94181202440730893, 0.94164676363034117, 0.94170548141491384, 0.94165750218312971, 0.94172303616239605, 0.94185725738668646, 0.94194872947715125, 0.94199265045723124, 0.9418973290348982, 0.94201585109590436, 0.9417736191693864, 0.94204400122430654, 0.94191928350265541, 0.94178609249539535, 0.94158645127675489, 0.9415772456992888, 0.9415527837343951, 0.94152716019835991, 0.94154899022964034, 0.94167625026294333, 0.94175821082596323, 0.94184370403946138, 0.94191892533709376, 0.94181623255172309, 0.94180406219104129, 0.94181223554762339, 0.94176957458275112, 0.94189549698837005]} ''' plt.figure() plt.plot(BNMF.all_performances['MSE']) plt.ylim(0,10)
1,261.040816
60,690
0.849072
6,173
61,791
8.494249
0.500891
0.001144
0.00103
0
0
0
0
0
0
0
0
0.880818
0.050833
61,791
49
60,691
1,261.040816
0.013214
0.001926
0
0
0
0
0.088235
0.026961
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.045455
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
1
0
0
0
0
0
0
0
0
5
3cf85adde600f4bf2b6f0ac0481df8d4c12f2fc1
163
py
Python
resources/healthcheck.py
SchulzWill/PyHealthChecker
2f01d553c8acd1391860ee3ebcf2947536503405
[ "MIT" ]
null
null
null
resources/healthcheck.py
SchulzWill/PyHealthChecker
2f01d553c8acd1391860ee3ebcf2947536503405
[ "MIT" ]
null
null
null
resources/healthcheck.py
SchulzWill/PyHealthChecker
2f01d553c8acd1391860ee3ebcf2947536503405
[ "MIT" ]
null
null
null
from flask_restful import Resource from flask import request, json, jsonify class HealthCheck(Resource): def get(self): return {'status':'ok'},200
23.285714
40
0.705521
21
163
5.428571
0.809524
0.157895
0
0
0
0
0
0
0
0
0
0.022901
0.196319
163
7
41
23.285714
0.847328
0
0
0
0
0
0.04878
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
a71be5adce20f5c98b81dadf322e28c0ae4ffda7
209
py
Python
test/service/test_do.py
thibalbo/pyskel
1808a65a11f8f708a3e68cc175d579b8ced32f00
[ "MIT" ]
1
2019-10-24T01:29:25.000Z
2019-10-24T01:29:25.000Z
test/service/test_do.py
thibalbo/pyskel
1808a65a11f8f708a3e68cc175d579b8ced32f00
[ "MIT" ]
2
2017-03-10T14:43:02.000Z
2017-05-24T02:10:05.000Z
test/service/test_do.py
thibalbo/pyskel
1808a65a11f8f708a3e68cc175d579b8ced32f00
[ "MIT" ]
3
2018-04-25T08:04:24.000Z
2020-06-14T21:08:29.000Z
"""test.service.test_do""" from pyskel.service import do def test_do_something(): assert do.do_something([]) is True assert do.do_something({}) is False def test_run(): assert do.run() is None
17.416667
39
0.688995
33
209
4.181818
0.424242
0.23913
0.144928
0.275362
0.304348
0
0
0
0
0
0
0
0.177033
209
11
40
19
0.802326
0.095694
0
0
0
0
0
0
0
0
0
0
0.5
1
0.333333
true
0
0.166667
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
0
0
0
0
null
0
0
0
1
0
1
1
0
0
0
0
0
0
5
59586267502427a79fcd93bb06e9a1efd8650544
752
py
Python
smart-pizza-store_factory-part3/taiwan_pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
smart-pizza-store_factory-part3/taiwan_pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
4
2022-01-02T06:49:43.000Z
2022-02-15T12:36:41.000Z
smart-pizza-store_factory-part3/taiwan_pizza_ingredients_factory.py
johnklee/learn_dp_from_bad_smell_design
88506487ce64a1b9492ec28fe235ae596ddf1472
[ "MIT" ]
null
null
null
import pizza_recipes import pizza_ingredients import pizza_ingredients_factory class TaiwanIngredientsFactory(pizza_ingredients_factory.PizzaIngredientFactory): def create_topping(self) -> pizza_ingredients.Topping: return pizza_ingredients.SpinachTopping() def create_dough(self) -> pizza_ingredients.Dough: return pizza_ingredients.ThinCrustDough() def create_sauce(self) -> pizza_ingredients.Sauce: return pizza_ingredients.MarinaraSauce() def create_cheese(self) -> pizza_ingredients.Cheese: return pizza_ingredients.ReggianCheese() def create_clams(self) -> pizza_ingredients.Clams: return pizza_ingredients.FreshClams() def create_oil(self) -> pizza_ingredients.Oil: return pizza_ingredients.OliveOil()
31.333333
81
0.807181
82
752
7.109756
0.292683
0.411664
0.205832
0
0
0
0
0
0
0
0
0
0.115691
752
23
82
32.695652
0.876692
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0.1875
0.375
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
595cde4bb9f57a9e2c7990a50ea7e2d28bdb289a
38,913
py
Python
glmatrix.py
fesoliveira014/pyglm
9b17dd1d2a51f768d7f01fb53d72a8a7159da788
[ "Unlicense" ]
1
2019-11-03T23:20:36.000Z
2019-11-03T23:20:36.000Z
glmatrix.py
fesoliveira014/pyglm
9b17dd1d2a51f768d7f01fb53d72a8a7159da788
[ "Unlicense" ]
null
null
null
glmatrix.py
fesoliveira014/pyglm
9b17dd1d2a51f768d7f01fb53d72a8a7159da788
[ "Unlicense" ]
null
null
null
import math import glvector has_numpy = False try: import numpy as np has_numpy = True except: has_numpy = False class mat2(object): def __init__(self, a=0, b=0, c=0, d=0): self.cols = [glvector.vec2(a,b), glvector.vec2(c,d)] def __getitem__(self, key): if type(key) is int: return self.cols[key] else: raise TypeError("Invalid type.") def __setitem__(self, key, val): if type(key) is int: self.cols[key] = val else: raise TypeError("Invalid type.") def __iter__(self): return iter(self.cols) def __add__(self, other): if type(other) is int or type(other) is float: a = self[0][0] + other b = self[0][1] + other c = self[1][0] + other d = self[1][1] + other return mat2(a,b,c,d) elif type(other) is mat2: a = self[0][0] + other[0][0] b = self[0][1] + other[0][1] c = self[1][0] + other[1][0] d = self[1][1] + other[1][1] print("a = {0}, b = {1}, c = {2}, d={3}".format(a,b,c,d)) return mat2(a,b,c,d) else: raise TypeError("Invalid type.") def __sub__(self, other): if type(other) is int or type(other) is float: a = self[0][0] - other b = self[0][1] - other c = self[1][0] - other d = self[1][1] - other return mat2(a,b,c,d) elif type(other) is mat2: a = self[0][0] - other[0][0] b = self[0][1] - other[0][1] c = self[1][0] - other[1][0] d = self[1][1] - other[1][1] return mat2(a,b,c,d) else: raise TypeError("Invalid type.") def __mul__(self, other): if type(other) is int or type(other) is float: a = self[0][0] * other b = self[0][1] * other c = self[1][0] * other d = self[1][1] * other return mat2(a,b,c,d) elif type(other) is mat2: a = self[0][0] * other[0][0] + self[0][1] * other[1][0] b = self[0][0] * other[0][1] + self[0][1] * other[1][1] c = self[1][0] * other[0][0] + self[1][1] * other[1][0] d = self[1][0] * other[0][1] + self[1][1] * other[1][1] return mat2(a,b,c,d) elif type(other) is glvector.vec2: a = self[0][0] * other[0] + self[0][1] * other[1] b = self[1][0] * other[0] + self[1][1] * other[1] return glvector.vec2(a,b) else: raise TypeError("Invalid type.") def __truediv__(self, other): if type(other) is int or type(other) is float: a = self[0][0] / other b = self[0][1] / other c = self[1][0] / other d = self[1][1] / other return mat2(a,b,c,d) elif type(other) is mat2: return self * mat2._inverse(other) else: raise TypeError("Invalid type.") def __iadd__(self, other): self = self + other return self def __isub__(self, other): self = self - other return self def __imul__(self, other): self = self * other return self def __itruediv__(self, other): self = self / other return self def __radd__(self, other): self = self + other return self def __rsub__(self, other): self = self - other return self def __rmul__(self, other): pass def __rtruediv__(self, other): pass def __eq__(self, other): return (self[0] == other[0] and self[1] == other[1]) def __ne__(self, other): return not self == other def __pos__(self): a = +self[0][0] b = +self[0][1] c = +self[1][0] d = +self[1][1] return mat2(a,b,c,d) def __neg__(self): a = -self[0][0] b = -self[0][1] c = -self[1][0] d = -self[1][1] return mat2(a,b,c,d) def __abs__(self): a = abs(self[0][0]) b = abs(self[0][1]) c = abs(self[1][0]) d = abs(self[1][1]) return mat2(a,b,c,d) def __round__(self, n=0): a = round(self[0][0], n) b = round(self[0][1], n) c = round(self[1][0], n) d = round(self[1][1], n) return mat2(a,b,c,d) def __floor__(self): a = math.floor(self[0][0]) b = math.floor(self[0][1]) c = math.floor(self[1][0]) d = math.floor(self[1][1]) return mat2(a,b,c,d) def __ceil__(self): a = math.ceil(self[0][0]) b = math.ceil(self[0][1]) c = math.ceil(self[1][0]) d = math.ceil(self[1][1]) return mat2(a,b,c,d) def __trunc__(self): a = math.trunc(self[0][0]) b = math.trunc(self[0][1]) c = math.trunc(self[1][0]) d = math.trunc(self[1][1]) return mat2(a,b,c,d) def __str__(self): return "([" + str(self[0][0]) + ', ' + str(self[0][1]) + "]," + \ "[" + str(self[1][0]) + ', ' + str(self[1][1]) + "]" def __repr__(self): return "mat2(" + str(self[0][0]) + ', ' + str(self[0][1]) + ', ' + \ str(self[1][0]) + ', ' + str(self[1][1]) + ")" def asArray(self): if has_numpy: return np.matrix([self.cols[0].asArray(), self.cols[1].asArray()], dtype=np.float32) else: return [self.cols[0].asArray(), self.cols[1].asArray()] @classmethod def fromVec2(cls, u, v): a = u[0] b = u[1] c = v[0] d = v[1] return cls(a,b,c,d) @classmethod def _inverse(cls, matrix): if type(matrix) is not mat2: raise TypeError("Parameter must be of type " + str(mat2)) determinant = mat2._determinant(matrix) if determinant is not 0: oneOverDeterminant = 1 / determinant a = + matrix[1][1] * oneOverDeterminant b = - matrix[0][1] * oneOverDeterminant c = - matrix[1][0] * oneOverDeterminant d = + matrix[0][0] * oneOverDeterminant return cls(a,b,c,d) else: raise ArithmeticError("Can't invert a matrix which determinant is zero.") @classmethod def _transpose(cls, matrix): if type(matrix) is not mat2: raise TypeError("Parameter must be of type " + str(mat2)) a = matrix[0][0] b = matrix[1][0] c = matrix[0][1] d = matrix[1][1] return cls(a,b,c,d) @staticmethod def _determinant(matrix): if type(matrix) is not mat2: raise TypeError("Parameter must be of type " + str(mat2)) return matrix[0][0] * matrix[1][1] - matrix[1][0] * matrix[0][1] class mat3(object): def __init__(self, a=0, b=0, c=0, d=0, e=0, f=0, g=0, h=0, i=0): self.cols = [glvector.vec3(a,b,c), glvector.vec3(d,e,f), glvector.vec3(g,h,i)] def __getitem__(self, key): if type(key) is int: return self.cols[key] else: raise TypeError("Invalid type.") def __setitem__(self, key, val): if type(key) is int: self.cols[key] = val else: raise TypeError("Invalid type.") def __iter__(self): return iter(self.cols) def __add__(self, other): if type(other) is int or type(other) is float: a = self[0][0] + other b = self[0][1] + other c = self[0][2] + other d = self[1][0] + other e = self[1][1] + other f = self[1][2] + other g = self[2][0] + other h = self[2][1] + other i = self[2][2] + other return mat3(a,b,c,d,e,f,g,h,i) elif type(other) is mat3: a = self[0][0] + other[0][0] b = self[0][1] + other[0][1] c = self[0][2] + other[0][2] d = self[1][0] + other[1][0] e = self[1][1] + other[1][1] f = self[1][2] + other[1][2] g = self[2][0] + other[2][0] h = self[2][1] + other[2][1] i = self[2][2] + other[2][2] return mat3(a,b,c,d,e,f,g,h,i) else: raise TypeError("Invalid type.") def __sub__(self, other): if type(other) is int or type(other) is float: a = self[0][0] - other b = self[0][1] - other c = self[0][2] - other d = self[1][0] - other e = self[1][1] - other f = self[1][2] - other g = self[2][0] - other h = self[2][1] - other i = self[2][2] - other return mat3(a,b,c,d,e,f,g,h,i) elif type(other) is mat3: a = self[0][0] - other[0][0] b = self[0][1] - other[0][1] c = self[0][2] - other[0][2] d = self[1][0] - other[1][0] e = self[1][1] - other[1][1] f = self[1][2] - other[1][2] g = self[2][0] - other[2][0] h = self[2][1] - other[2][1] i = self[2][2] - other[2][2] return mat3(a,b,c,d,e,f,g,h,i) else: raise TypeError("Invalid type.") def __mul__(self, other): if type(other) is int or type(other) is float: a = self[0][0] * other b = self[0][1] * other c = self[0][2] * other d = self[1][0] * other e = self[1][1] * other f = self[1][2] * other g = self[2][0] * other h = self[2][1] * other i = self[2][2] * other return mat3(a,b,c,d,e,f,g,h,i) elif type(other) is mat3: a = self[0][0] * other[0][0] + self[0][1] * other[1][0] + self[0][2] * other[2][0] b = self[0][0] * other[0][1] + self[0][1] * other[1][1] + self[0][2] * other[2][1] c = self[0][0] * other[0][2] + self[0][1] * other[1][2] + self[0][2] * other[2][2] d = self[1][0] * other[0][0] + self[1][1] * other[1][0] + self[1][2] * other[2][0] e = self[1][0] * other[0][1] + self[1][1] * other[1][1] + self[1][2] * other[2][1] f = self[1][0] * other[0][2] + self[1][1] * other[1][2] + self[1][2] * other[2][2] g = self[2][0] * other[0][0] + self[2][1] * other[1][0] + self[2][2] * other[2][0] h = self[2][0] * other[0][1] + self[2][1] * other[1][1] + self[2][2] * other[2][1] i = self[2][0] * other[0][2] + self[2][1] * other[1][2] + self[2][2] * other[2][2] return mat3(a,b,c,d,e,f,g,h,i) elif type(other) is glvector.vec3: a = self[0][0] * other[0] + self[0][1] * other[1] + self[0][2] * other[2] b = self[1][0] * other[0] + self[1][1] * other[1] + self[1][2] * other[2] c = self[2][0] * other[0] + self[2][1] * other[1] + self[2][2] * other[2] return glvector.vec3(a,b,c) else: raise TypeError("Invalid type.") def __truediv__(self, other): if type(other) is int or type(other) is float: a = self[0][0] / other b = self[0][1] / other c = self[0][2] / other d = self[1][0] / other e = self[1][1] / other f = self[1][2] / other g = self[2][0] / other h = self[2][1] / other i = self[2][2] / other return mat3(a,b,c,d,e,f,g,h,i) elif type(other) is mat3: return round(self * mat3._inverse(other)) else: raise TypeError("Invalid type.") def __iadd__(self, other): self = self + other return self def __isub__(self, other): self = self - other return self def __imul__(self, other): self = self * other return self def __itruediv__(self, other): self = self / other return self def __radd__(self, other): self = self + other return self def __rsub__(self, other): self = self - other return self def __rmul__(self, other): pass def __rtruediv__(self, other): pass def __eq__(self, other): return (self[0] == other[0] and self[1] == other[1] and self[2] == other[2]) def __ne__(self, other): return not self == other def __pos__(self): a = +self[0][0] b = +self[0][1] c = +self[0][2] d = +self[1][0] e = +self[1][1] f = +self[1][2] g = +self[2][0] h = +self[2][1] i = +self[2][2] return mat3(a,b,c,d,e,f,g,h,i) def __neg__(self): a = -self[0][0] b = -self[0][1] c = -self[0][2] d = -self[1][0] e = -self[1][1] f = -self[1][2] g = -self[2][0] h = -self[2][1] i = -self[2][2] return mat3(a,b,c,d,e,f,g,h,i) def __abs__(self): a = abs(self[0][0]) b = abs(self[0][1]) c = abs(self[0][2]) d = abs(self[1][0]) e = abs(self[1][1]) f = abs(self[1][2]) g = abs(self[2][0]) h = abs(self[2][1]) i = abs(self[2][2]) return mat3(a,b,c,d,e,f,g,h,i) def __round__(self, n=0): a = round(self[0][0], n) b = round(self[0][1], n) c = round(self[0][2], n) d = round(self[1][0], n) e = round(self[1][1], n) f = round(self[1][2], n) g = round(self[2][0], n) h = round(self[2][1], n) i = round(self[2][2], n) return mat3(a,b,c,d,e,f,g,h,i) def __floor__(self): a = math.floor(self[0][0]) b = math.floor(self[0][1]) c = math.floor(self[0][2]) d = math.floor(self[1][0]) e = math.floor(self[1][1]) f = math.floor(self[1][2]) g = math.floor(self[2][0]) h = math.floor(self[2][1]) i = math.floor(self[2][2]) return mat3(a,b,c,d,e,f,g,h,i) def __ceil__(self): a = math.ceil(self[0][0]) b = math.ceil(self[0][1]) c = math.ceil(self[0][2]) d = math.ceil(self[1][0]) e = math.ceil(self[1][1]) f = math.ceil(self[1][2]) g = math.ceil(self[2][0]) h = math.ceil(self[2][1]) i = math.ceil(self[2][2]) return mat3(a,b,c,d,e,f,g,h,i) def __trunc__(self): a = math.trunc(self[0][0]) b = math.trunc(self[0][1]) c = math.trunc(self[0][2]) d = math.trunc(self[1][0]) e = math.trunc(self[1][1]) f = math.trunc(self[1][2]) g = math.trunc(self[2][0]) h = math.trunc(self[2][1]) i = math.trunc(self[2][2]) return mat3(a,b,c,d,e,f,g,h,i) def asArray(self): if has_numpy: return np.matrix([self.cols[0].asArray(), self.cols[1].asArray(), self.cols[2].asArray()], dtype=np.float32) else: return [self.cols[0].asArray(), self.cols[1].asArray(), self.cols[2].asArray()] @classmethod def fromVec3(cls, u, v, w): a = u[0] b = u[1] c = u[2] d = v[0] e = v[1] f = v[2] g = w[0] h = w[1] i = w[2] return cls(a,b,c,d,e,f,g,h,i) @classmethod def fromMat2(cls, m): a = m[0][0] b = m[0][1] c = 0 d = [1][0] e = [1][1] f = 0 g = 0 i = 0 h = 1 return cls(a,b,c,d,e,f,g,h,i) @classmethod def fromMat3(cls, m): a = m[0][0] b = m[0][1] c = m[0][2] d = m[1][0] e = m[1][1] f = m[1][2] g = m[2][0] h = m[2][1] i = m[2][2] return cls(a,b,c,d,e,f,g,h,i) def __str__(self): return "([" + str(self[0]) + ', ' + str(self[1]) + ', ' + str(self[2]) + "])" def __repr__(self): return "mat3(" + str(self[0]) + ', ' + str(self[1]) + ', ' + str(self[2]) + ")" @classmethod def zero(cls): return cls() @classmethod def identity(cls): return cls(a=1, e=1, i=1) @classmethod def _inverse(cls, matrix): if type(matrix) is not mat3: raise TypeError("Parameter must be of type " + str(mat3)) determinant = mat3._determinant(matrix) if determinant is not 0: oneOverDeterminant = 1 / determinant a = + (matrix[1][1] * matrix[2][2] - matrix[2][1] * matrix[1][2]) * oneOverDeterminant; d = - (matrix[1][0] * matrix[2][2] - matrix[2][0] * matrix[1][2]) * oneOverDeterminant; g = + (matrix[1][0] * matrix[2][1] - matrix[2][0] * matrix[1][1]) * oneOverDeterminant; b = - (matrix[0][1] * matrix[2][2] - matrix[2][1] * matrix[0][2]) * oneOverDeterminant; e = + (matrix[0][0] * matrix[2][2] - matrix[2][0] * matrix[0][2]) * oneOverDeterminant; h = - (matrix[0][0] * matrix[2][1] - matrix[2][0] * matrix[0][1]) * oneOverDeterminant; c = + (matrix[0][1] * matrix[1][2] - matrix[1][1] * matrix[0][2]) * oneOverDeterminant; f = - (matrix[0][0] * matrix[1][2] - matrix[1][0] * matrix[0][2]) * oneOverDeterminant; i = + (matrix[0][0] * matrix[1][1] - matrix[1][0] * matrix[0][1]) * oneOverDeterminant; return cls(a,b,c,d,e,f,g,h,i) else: raise ArithmeticError("Can't invert a matrix which determinant is zero.") @classmethod def _transpose(cls, matrix): if type(matrix) is not mat3: raise TypeError("Parameter must be of type " + str(mat3)) a = matrix[0][0] d = matrix[0][1] g = matrix[0][2] b = matrix[1][0] e = matrix[1][1] h = matrix[1][2] c = matrix[2][0] f = matrix[2][1] i = matrix[2][2] return cls(a,b,c,d,e,f,g,h,i) @staticmethod def _determinant(matrix): if type(matrix) is not mat3: raise TypeError("Parameter must be of type " + str(mat3)) return (matrix[0][0] * matrix[1][1] * matrix[2][2] + matrix[0][1] * matrix[1][2] * matrix[2][0] + matrix[0][2] * matrix[1][0] * matrix[2][1] - matrix[0][2] * matrix[1][1] * matrix[2][0] - matrix[0][1] * matrix[1][0] * matrix[2][2] - matrix[0][0] * matrix[1][2] * matrix[2][1]) class mat4(object): def __init__(self, a=0, b=0, c=0, d=0, e=0, f=0, g=0, h=0, i=0, j=0, k=0, l=0, m=0, n=0, o=0, p=0): self.cols = [glvector.vec4(a,b,c,d), glvector.vec4(e,f,g,h), glvector.vec4(i,j,k,l), glvector.vec4(m,n,o,p)] def __getitem__(self, key): if type(key) is int: return self.cols[key] else: raise TypeError("Invalid type.") def __setitem__(self, key, val): if type(key) is int: self.cols[key] = val else: raise TypeError("Invalid type.") def __iter__(self): return iter(self.cols) def __add__(self, other): if type(other) is int or type(other) is float: a = self[0][0] + other b = self[0][1] + other c = self[0][2] + other d = self[0][3] + other e = self[1][0] + other f = self[1][1] + other g = self[1][2] + other h = self[1][3] + other i = self[2][0] + other j = self[2][1] + other k = self[2][2] + other l = self[2][3] + other m = self[3][0] + other n = self[3][1] + other o = self[3][2] + other p = self[3][3] + other return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) elif type(other) is mat4: a = self[0][0] + other[0][0] b = self[0][1] + other[0][1] c = self[0][2] + other[0][2] d = self[0][3] + other[1][0] e = self[1][0] + other[1][1] f = self[1][1] + other[1][2] g = self[1][2] + other[2][0] h = self[1][3] + other[2][1] i = self[2][0] + other[2][2] j = self[2][1] + other[2][1] k = self[2][2] + other[2][2] l = self[2][3] + other[2][3] m = self[3][0] + other[3][0] n = self[3][1] + other[3][1] o = self[3][2] + other[3][2] p = self[3][3] + other[3][3] return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) else: raise TypeError("Invalid type.") def __sub__(self, other): if type(other) is int or type(other) is float: a = self[0][0] - other b = self[0][1] - other c = self[0][2] - other d = self[0][3] - other e = self[1][0] - other f = self[1][1] - other g = self[1][2] - other h = self[1][3] - other i = self[2][0] - other j = self[2][1] - other k = self[2][2] - other l = self[2][3] - other m = self[3][0] - other n = self[3][1] - other o = self[3][2] - other p = self[3][3] - other return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) elif type(other) is mat4: a = self[0][0] - other[0][0] b = self[0][1] - other[0][1] c = self[0][2] - other[0][2] d = self[0][3] - other[1][0] e = self[1][0] - other[1][1] f = self[1][1] - other[1][2] g = self[1][2] - other[2][0] h = self[1][3] - other[2][1] i = self[2][0] - other[2][2] j = self[2][1] - other[2][1] k = self[2][2] - other[2][2] l = self[2][3] - other[2][3] m = self[3][0] - other[3][0] n = self[3][1] - other[3][1] o = self[3][2] - other[3][2] p = self[3][3] - other[3][3] return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) else: raise TypeError("Invalid type.") def __mul__(self, other): if type(other) is int or type(other) is float: a = self[0][0] * other b = self[0][1] * other c = self[0][2] * other d = self[0][3] * other e = self[1][0] * other f = self[1][1] * other g = self[1][2] * other h = self[1][3] * other i = self[2][0] * other j = self[2][1] * other k = self[2][2] * other l = self[2][3] * other m = self[3][0] * other n = self[3][1] * other o = self[3][2] * other p = self[3][3] * other return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) elif type(other) is mat4: a = self[0][0] * other[0][0] + self[0][1] * other[1][0] + self[0][2] * other[2][0] + self[0][3] * other[3][0] b = self[0][0] * other[0][1] + self[0][1] * other[1][1] + self[0][2] * other[2][1] + self[0][3] * other[3][1] c = self[0][0] * other[0][2] + self[0][1] * other[1][2] + self[0][2] * other[2][2] + self[0][3] * other[3][2] d = self[0][0] * other[0][3] + self[0][1] * other[1][3] + self[0][2] * other[2][3] + self[0][3] * other[3][3] e = self[1][0] * other[0][0] + self[1][1] * other[1][0] + self[1][2] * other[2][0] + self[1][3] * other[3][0] f = self[1][0] * other[0][1] + self[1][1] * other[1][1] + self[1][2] * other[2][1] + self[1][3] * other[3][1] g = self[1][0] * other[0][2] + self[1][1] * other[1][2] + self[1][2] * other[2][2] + self[1][3] * other[3][2] h = self[1][0] * other[0][3] + self[1][1] * other[1][3] + self[1][2] * other[2][3] + self[1][3] * other[3][3] i = self[2][0] * other[0][0] + self[2][1] * other[1][0] + self[2][2] * other[2][0] + self[2][3] * other[3][0] j = self[2][0] * other[0][1] + self[2][1] * other[1][1] + self[2][2] * other[2][1] + self[2][3] * other[3][1] k = self[2][0] * other[0][2] + self[2][1] * other[1][2] + self[2][2] * other[2][2] + self[2][3] * other[3][2] l = self[2][0] * other[0][3] + self[2][1] * other[1][3] + self[2][2] * other[2][3] + self[2][3] * other[3][3] m = self[3][0] * other[0][0] + self[3][1] * other[1][0] + self[3][2] * other[2][0] + self[3][3] * other[3][0] n = self[3][0] * other[0][1] + self[3][1] * other[1][1] + self[3][2] * other[2][1] + self[3][3] * other[3][1] o = self[3][0] * other[0][2] + self[3][1] * other[1][2] + self[3][2] * other[2][2] + self[3][3] * other[3][2] p = self[3][0] * other[0][3] + self[3][1] * other[1][3] + self[3][2] * other[2][3] + self[3][3] * other[3][3] return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) elif type(other) is glvector.vec4: a = self[0][0] * other[0] + self[0][1] * other[1] + self[0][2] * other[2] + self[0][3] * other[3] b = self[1][0] * other[0] + self[1][1] * other[1] + self[1][2] * other[2] + self[1][3] * other[3] c = self[2][0] * other[0] + self[2][1] * other[1] + self[2][2] * other[2] + self[2][3] * other[3] d = self[3][0] * other[0] + self[3][1] * other[1] + self[3][2] * other[2] + self[3][3] * other[3] return glvector.vec3(a,b,c) else: raise TypeError("Invalid type.") def __truediv__(self, other): if type(other) is int or type(other) is float: a = self[0][0] / other b = self[0][1] / other c = self[0][2] / other d = self[0][3] / other e = self[1][0] / other f = self[1][1] / other g = self[1][2] / other h = self[1][3] / other i = self[2][0] / other j = self[2][1] / other k = self[2][2] / other l = self[2][3] / other m = self[3][0] / other n = self[3][1] / other o = self[3][2] / other p = self[3][3] / other return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) elif type(other) is mat4: return self * mat4._inverse(other) else: raise TypeError("Invalid type.") def __iadd__(self, other): self = self + other return self def __isub__(self, other): self = self - other return self def __imul__(self, other): self = self * other return self def __itruediv__(self, other): self = self / other return self def __radd__(self, other): self = self + other return self def __rsub__(self, other): self = self - other return self def __rmul__(self, other): pass def __rtruediv__(self, other): pass def __eq__(self, other): return (self[0] == other[0] and self[1] == other[1] and self[2] == other[2]) def __ne__(self, other): return not self == other def __pos__(self): a = +self[0][0] b = +self[0][1] c = +self[0][2] d = +self[0][3] e = +self[1][0] f = +self[1][1] g = +self[1][2] h = +self[1][3] i = +self[2][0] j = +self[2][1] k = +self[2][2] l = +self[2][3] m = +self[3][0] n = +self[3][1] o = +self[3][2] p = +self[3][3] return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __neg__(self): a = -self[0][0] b = -self[0][1] c = -self[0][2] d = -self[0][3] e = -self[1][0] f = -self[1][1] g = -self[1][2] h = -self[1][3] i = -self[2][0] j = -self[2][1] k = -self[2][2] l = -self[2][3] m = -self[3][0] n = -self[3][1] o = -self[3][2] p = -self[3][3] return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __abs__(self): a = abs(self[0][0]) b = abs(self[0][1]) c = abs(self[0][2]) d = abs(self[0][3]) e = abs(self[1][0]) f = abs(self[1][1]) g = abs(self[1][2]) h = abs(self[1][3]) i = abs(self[2][0]) j = abs(self[2][1]) k = abs(self[2][2]) l = abs(self[2][3]) m = abs(self[3][0]) n = abs(self[3][1]) o = abs(self[3][2]) p = abs(self[3][3]) return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __round__(self, n=0): a = abs(self[0][0], n) b = abs(self[0][1], n) c = abs(self[0][2], n) d = abs(self[0][3], n) e = abs(self[1][0], n) f = abs(self[1][1], n) g = abs(self[1][2], n) h = abs(self[1][3], n) i = abs(self[2][0], n) j = abs(self[2][1], n) k = abs(self[2][2], n) l = abs(self[2][3], n) m = abs(self[3][0], n) n = abs(self[3][1], n) o = abs(self[3][2], n) p = abs(self[3][3], n) return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __floor__(self): a = math.floor(self[0][0]) b = math.floor(self[0][1]) c = math.floor(self[0][2]) d = math.floor(self[0][3]) e = math.floor(self[1][0]) f = math.floor(self[1][1]) g = math.floor(self[1][2]) h = math.floor(self[1][3]) i = math.floor(self[2][0]) j = math.floor(self[2][1]) k = math.floor(self[2][2]) l = math.floor(self[2][3]) m = math.floor(self[3][0]) n = math.floor(self[3][1]) o = math.floor(self[3][2]) p = math.floor(self[3][3]) return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __ceil__(self): a = math.ceil(self[0][0]) b = math.ceil(self[0][1]) c = math.ceil(self[0][2]) d = math.ceil(self[0][3]) e = math.ceil(self[1][0]) f = math.ceil(self[1][1]) g = math.ceil(self[1][2]) h = math.ceil(self[1][3]) i = math.ceil(self[2][0]) j = math.ceil(self[2][1]) k = math.ceil(self[2][2]) l = math.ceil(self[2][3]) m = math.ceil(self[3][0]) n = math.ceil(self[3][1]) o = math.ceil(self[3][2]) p = math.ceil(self[3][3]) return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __trunc__(self): a = math.trunc(self[0][0]) b = math.trunc(self[0][1]) c = math.trunc(self[0][2]) d = math.trunc(self[0][3]) e = math.trunc(self[1][0]) f = math.trunc(self[1][1]) g = math.trunc(self[1][2]) h = math.trunc(self[1][3]) i = math.trunc(self[2][0]) j = math.trunc(self[2][1]) k = math.trunc(self[2][2]) l = math.trunc(self[2][3]) m = math.trunc(self[3][0]) n = math.trunc(self[3][1]) o = math.trunc(self[3][2]) p = math.trunc(self[3][3]) return mat4(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def asArray(self): if has_numpy: return np.matrix([self.cols[0].asArray(), self.cols[1].asArray(), self.cols[2].asArray(), self.cols[3].asArray()], dtype=np.float32) else: return [self.cols[0].asArray(), self.cols[1].asArray(), self.cols[2].asArray(), self.cols[3].asArray()] @classmethod def fromVec4(cls, u, v, w, z): a = u[0] b = u[1] c = u[2] d = u[3] e = v[0] f = v[1] g = v[2] h = v[3] i = w[0] j = w[1] k = w[2] l = w[3] m = z[0] n = z[1] o = z[2] p = z[3] return cls(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) @classmethod def fromMat4(cls, m): a = m[0][0] b = m[0][1] c = m[0][2] d = m[0][3] e = m[1][0] f = m[1][1] g = m[1][2] h = m[1][3] i = m[2][0] j = m[2][1] k = m[2][2] l = m[2][3] m = m[3][0] n = m[3][1] o = m[3][2] p = m[3][3] return cls(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) def __str__(self): return "([" + str(self[0][0]) + ', ' + str(self[0][1]) + ', ' + str(self[0][2]) + ', ' + str(self[0][3]) + "]," + \ "[" + str(self[1][0]) + ', ' + str(self[1][1]) + ', ' + str(self[1][2]) + ', ' + str(self[1][3]) + "]," + \ "[" + str(self[2][0]) + ', ' + str(self[2][1]) + ', ' + str(self[2][2]) + ', ' + str(self[2][3]) + "]," + \ "[" + str(self[3][0]) + ', ' + str(self[3][1]) + ', ' + str(self[3][2]) + ', ' + str(self[3][3]) + "]" def __repr__(self): return "mat4(" + str(self[0][0]) + ', ' + str(self[0][1]) + ', ' + str(self[0][2]) + ', ' + str(self[0][3]) + ', ' + \ str(self[1][0]) + ', ' + str(self[1][1]) + ', ' + str(self[1][2]) + ', ' + str(self[1][3]) + ', ' + \ str(self[2][0]) + ', ' + str(self[2][1]) + ', ' + str(self[2][2]) + ', ' + str(self[2][3]) + ', ' + \ str(self[3][0]) + ', ' + str(self[3][1]) + ', ' + str(self[3][2]) + ', ' + str(self[3][3]) + ")" @classmethod def zero(cls): return cls(); @classmethod def identity(cls): return cls(a=1, f=1, k=1, p=1) @classmethod def _inverse(cls, matrix): coef00 = matrix[2][2] * matrix[3][3] - matrix[3][2] * matrix[2][3] coef02 = matrix[1][2] * matrix[3][3] - matrix[3][2] * matrix[1][3] coef03 = matrix[1][2] * matrix[2][3] - matrix[2][2] * matrix[1][3] coef04 = matrix[2][1] * matrix[3][3] - matrix[3][1] * matrix[2][3] coef06 = matrix[1][1] * matrix[3][3] - matrix[3][1] * matrix[1][3] coef07 = matrix[1][1] * matrix[2][3] - matrix[2][1] * matrix[1][3] coef08 = matrix[2][1] * matrix[3][2] - matrix[3][1] * matrix[2][2] coef10 = matrix[1][1] * matrix[3][2] - matrix[3][1] * matrix[1][2] coef11 = matrix[1][1] * matrix[2][2] - matrix[2][1] * matrix[1][2] coef12 = matrix[2][0] * matrix[3][3] - matrix[3][0] * matrix[2][3] coef14 = matrix[1][0] * matrix[3][3] - matrix[3][0] * matrix[1][3] coef15 = matrix[1][0] * matrix[2][3] - matrix[2][0] * matrix[1][3] coef16 = matrix[2][0] * matrix[3][2] - matrix[3][0] * matrix[2][2] coef18 = matrix[1][0] * matrix[3][2] - matrix[3][0] * matrix[1][2] coef19 = matrix[1][0] * matrix[2][2] - matrix[2][0] * matrix[1][2] coef20 = matrix[2][0] * matrix[3][1] - matrix[3][0] * matrix[2][1] coef22 = matrix[1][0] * matrix[3][1] - matrix[3][0] * matrix[1][1] coef23 = matrix[1][0] * matrix[2][1] - matrix[2][0] * matrix[1][1] fac0 = glvector.vec4(coef00, coef00, coef02, coef03) fac1 = glvector.vec4(coef04, coef04, coef06, coef07) fac2 = glvector.vec4(coef08, coef08, coef10, coef11) fac3 = glvector.vec4(coef12, coef12, coef14, coef15) fac4 = glvector.vec4(coef16, coef16, coef18, coef19) fac5 = glvector.vec4(coef20, coef20, coef22, coef23) v0 = glvector.vec4(matrix[1][0], matrix[0][0], matrix[0][0], matrix[0][0]) v1 = glvector.vec4(matrix[1][1], matrix[0][1], matrix[0][1], matrix[0][1]) v2 = glvector.vec4(matrix[1][2], matrix[0][2], matrix[0][2], matrix[0][2]) v3 = glvector.vec4(matrix[1][3], matrix[0][3], matrix[0][3], matrix[0][3]) inv0 = glvector.vec4.fromVec4(v1 * fac0 - v2 * fac1 + v3 * fac2) inv1 = glvector.vec4.fromVec4(v0 * fac0 - v2 * fac3 + v3 * fac4) inv2 = glvector.vec4.fromVec4(v0 * fac1 - v1 * fac3 + v3 * fac5) inv3 = glvector.vec4.fromVec4(v0 * fac2 - v1 * fac4 + v2 * fac5) signA = glvector.vec4(+1, -1, +1, -1) signB = glvector.vec4(-1, +1, -1, +1) inverse = mat4.fromVec4(inv0 * signA, inv1 * signB, inv2 * signA, inv3 * signB) row0 = glvector.vec4(inverse[0][0], inverse[1][0], inverse[2][0], inverse[3][0]) d0 = glvector.vec4.fromVec4(matrix[0] * row0) d1 = (d0.x + d0.y) + (d0.z + d0.w) if d1 != 0: oneOverDeterminant = 1 / d1 return inverse * oneOverDeterminant else: raise ArithmeticError("Can't invert a matrix which determinant is zero.") @classmethod def _transpose(cls, matrix): if type(matrix) is not mat4: raise TypeError("Parameter must be of type " + str(mat4)) a = matrix[0][0] b = matrix[1][0] c = matrix[2][0] d = matrix[3][0] e = matrix[0][1] f = matrix[1][1] g = matrix[2][1] h = matrix[3][1] i = matrix[0][2] j = matrix[1][2] k = matrix[2][2] l = matrix[3][2] m = matrix[0][3] n = matrix[1][3] o = matrix[2][3] p = matrix[3][3] return cls(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) @staticmethod def _determinant(matrix): if type(matrix) is not mat4: raise TypeError("Parameter must be of type " + str(mat4)) subFactor00 = matrix[2][2] * matrix[3][3] - matrix[3][2] * matrix[2][3] subFactor01 = matrix[2][1] * matrix[3][3] - matrix[3][1] * matrix[2][3] subFactor02 = matrix[2][1] * matrix[3][2] - matrix[3][1] * matrix[2][2] subFactor03 = matrix[2][0] * matrix[3][3] - matrix[3][0] * matrix[2][3] subFactor04 = matrix[2][0] * matrix[3][2] - matrix[3][0] * matrix[2][2] subFactor05 = matrix[2][0] * matrix[3][1] - matrix[3][0] * matrix[2][1] detCof = glvector.vec4( + (matrix[1][1] * subFactor00 - matrix[1][2] * subFactor01 + matrix[1][3] * subFactor02), - (matrix[1][0] * subFactor00 - matrix[1][2] * subFactor03 + matrix[1][3] * subFactor04), + (matrix[1][0] * subFactor01 - matrix[1][1] * subFactor03 + matrix[1][3] * subFactor05), - (matrix[1][0] * subFactor02 - matrix[1][1] * subFactor04 + matrix[1][2] * subFactor05)) return matrix[0][0] * detCof[0] + matrix[0][1] * detCof[1] + \ matrix[0][2] * detCof[2] + matrix[0][3] * detCof[3] def inverse(matrix): if type(matrix) is mat2: return mat2._inverse(matrix) elif type(matrix) is mat3: return mat3._inverse(matrix) elif type(matrix) is mat4: return mat4._inverse(matrix) else: raise TypeError("Argument must be a matrix.") def transpose(matrix): if type(matrix) is mat2: return mat2._transpose(matrix) elif type(matrix) is mat3: return mat3._transpose(matrix) elif type(matrix) is mat4: return mat4._transpose(matrix) else: raise TypeError("Argument must be a matrix.") def determinant(matrix): if type(matrix) is mat2: return mat2._determinant(matrix) elif type(matrix) is mat3: return mat3._determinant(matrix) elif type(matrix) is mat4: return mat4._determinant(matrix) else: raise TypeError("Argument must be a matrix.")
34.620107
144
0.454681
6,284
38,913
2.759389
0.026735
0.049596
0.010035
0.012687
0.858881
0.760381
0.737082
0.715052
0.6797
0.669839
0
0.093254
0.33945
38,913
1,123
145
34.650935
0.581349
0
0
0.46209
0
0
0.020765
0
0
0
0
0
0
1
0.108607
false
0.006148
0.003074
0.019467
0.226434
0.001025
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
595e91358d1172a25e02c728f07e2e32736e5a21
287
py
Python
PyObjCTest/test_nssharingservicepickertoolbaritem.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nssharingservicepickertoolbaritem.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
PyObjCTest/test_nssharingservicepickertoolbaritem.py
linuxfood/pyobjc-framework-Cocoa-test
3475890f165ab26a740f13d5afe4c62b4423a140
[ "MIT" ]
null
null
null
import AppKit # noqa: F401 from PyObjCTools.TestSupport import TestCase, min_sdk_level import objc class TestNSSharingServicePickerToolbarItem(TestCase): @min_sdk_level("10.15") def test_protocols(self): objc.protocolNamed("NSSharingServicePickerToolbarItemDelegate")
28.7
71
0.797909
29
287
7.724138
0.758621
0.098214
0.125
0.169643
0
0
0
0
0
0
0
0.028
0.12892
287
9
72
31.888889
0.868
0.034843
0
0
0
0
0.167273
0.149091
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
596a7a038aa786fa02a48b660a6a41bb5f2f4a68
125
py
Python
configtree/compat/colabc.py
Cottonwood-Technology/ConfigTree
ce7d92a4e536ba0104b92a9ce871819279f5b63a
[ "BSD-2-Clause" ]
null
null
null
configtree/compat/colabc.py
Cottonwood-Technology/ConfigTree
ce7d92a4e536ba0104b92a9ce871819279f5b63a
[ "BSD-2-Clause" ]
null
null
null
configtree/compat/colabc.py
Cottonwood-Technology/ConfigTree
ce7d92a4e536ba0104b92a9ce871819279f5b63a
[ "BSD-2-Clause" ]
null
null
null
try: from collections.abc import * # noqa except ImportError: # pragma: no cover from collections import * # noqa
25
41
0.688
15
125
5.733333
0.733333
0.348837
0
0
0
0
0
0
0
0
0
0
0.24
125
4
42
31.25
0.905263
0.208
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
59749c1900bde8de91ce8543e0389f6fda0c2711
175
py
Python
boucanpy/core/http_request/__init__.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
34
2019-11-16T17:22:15.000Z
2022-02-11T23:12:46.000Z
boucanpy/core/http_request/__init__.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
1
2021-02-09T09:34:55.000Z
2021-02-10T21:46:20.000Z
boucanpy/core/http_request/__init__.py
bbhunter/boucanpy
7d2fb105e7b1e90653a511534fb878bb62d02f17
[ "MIT" ]
9
2019-11-18T22:18:07.000Z
2021-02-08T13:23:51.000Z
from .repos import HttpRequestRepo from .responses import HttpRequestResponse, HttpRequestsResponse from .data import HttpRequestData from .forms import HttpRequestCreateForm
35
64
0.874286
17
175
9
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.097143
175
4
65
43.75
0.968354
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
597769705e52ea36684ce61f778cf32894f1d8b9
30
py
Python
remob/orderbook.py
adamgilman/remob
a1ef722f8d378cd890ff0cddd61337e7781c69c4
[ "MIT" ]
17
2017-03-17T00:26:52.000Z
2022-02-10T02:51:03.000Z
remob/orderbook.py
adamgilman/remob
a1ef722f8d378cd890ff0cddd61337e7781c69c4
[ "MIT" ]
1
2019-06-13T18:39:46.000Z
2019-06-13T18:39:46.000Z
remob/orderbook.py
adamgilman/remob
a1ef722f8d378cd890ff0cddd61337e7781c69c4
[ "MIT" ]
4
2017-05-09T20:55:15.000Z
2021-11-23T18:21:31.000Z
class OrderBook(object): pass
15
24
0.8
4
30
6
1
0
0
0
0
0
0
0
0
0
0
0
0.1
30
2
25
15
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
59835f5de7b5806e09cdac4400bd411190389470
77
py
Python
overload/decorator/__init__.py
diarts/overload
4a84de5c5284bc9c36a93b1a25ec1c30c8110d76
[ "MIT" ]
null
null
null
overload/decorator/__init__.py
diarts/overload
4a84de5c5284bc9c36a93b1a25ec1c30c8110d76
[ "MIT" ]
null
null
null
overload/decorator/__init__.py
diarts/overload
4a84de5c5284bc9c36a93b1a25ec1c30c8110d76
[ "MIT" ]
null
null
null
"""Module with decorators for activate overload.""" from .decorator import *
25.666667
51
0.753247
9
77
6.444444
1
0
0
0
0
0
0
0
0
0
0
0
0.12987
77
2
52
38.5
0.865672
0.584416
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
59b2da7e9e9c3ef275b7f6cb2a64abf2d5122196
32
py
Python
NDS/webapp/__init__.py
lincis/ObsDataRest
64b1b0e702418201ec9d48c75892b7caaf080a0c
[ "MIT" ]
null
null
null
NDS/webapp/__init__.py
lincis/ObsDataRest
64b1b0e702418201ec9d48c75892b7caaf080a0c
[ "MIT" ]
3
2021-03-20T02:14:29.000Z
2021-04-20T18:54:00.000Z
NDS/webapp/__init__.py
lincis/numericDatastorage
64b1b0e702418201ec9d48c75892b7caaf080a0c
[ "MIT" ]
null
null
null
from ._app import app, socketio
16
31
0.78125
5
32
4.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.15625
32
1
32
32
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ab891c34a61ec4581fba9dc2358c3821f1aa4a70
70
py
Python
get.py
DBeath/python-snippets
c9642c37183d947eb8a1a781e47bd70b1306d5ca
[ "MIT" ]
null
null
null
get.py
DBeath/python-snippets
c9642c37183d947eb8a1a781e47bd70b1306d5ca
[ "MIT" ]
2
2019-10-19T07:27:43.000Z
2021-03-22T16:58:21.000Z
get.py
DBeath/python-snippets
c9642c37183d947eb8a1a781e47bd70b1306d5ca
[ "MIT" ]
null
null
null
def get_url(): return None result = get_url().text print(result)
11.666667
23
0.685714
11
70
4.181818
0.727273
0.26087
0
0
0
0
0
0
0
0
0
0
0.185714
70
5
24
14
0.807018
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
aba65f8c60b0010e6a689777168ca6e2a6362a96
32
py
Python
owen/automatics/phase_space.py
SkirOwen/JazzyWithManim
a6aa7bc13145c92df948781540f84e31c5698c39
[ "MIT" ]
null
null
null
owen/automatics/phase_space.py
SkirOwen/JazzyWithManim
a6aa7bc13145c92df948781540f84e31c5698c39
[ "MIT" ]
null
null
null
owen/automatics/phase_space.py
SkirOwen/JazzyWithManim
a6aa7bc13145c92df948781540f84e31c5698c39
[ "MIT" ]
null
null
null
from manimlib.constants import *
32
32
0.84375
4
32
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
abac70f1037cf999a9093fd3f2c7916c428857b1
50
py
Python
smt_switch/src/__init__.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
1
2020-06-24T02:12:24.000Z
2020-06-24T02:12:24.000Z
smt_switch/src/__init__.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
null
null
null
smt_switch/src/__init__.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
1
2019-10-10T22:21:19.000Z
2019-10-10T22:21:19.000Z
from .api import smt from .solvers import SOLVERS
16.666667
28
0.8
8
50
5
0.625
0
0
0
0
0
0
0
0
0
0
0
0.16
50
2
29
25
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
abc5dd8a2bbe770241cc5b2a033ed910c4ad4d84
65
py
Python
otpmanager/__init__.py
ercas/otp_manager
1beeee5b6434554ea493d8ef2465acc3bff1b9ba
[ "Apache-2.0" ]
null
null
null
otpmanager/__init__.py
ercas/otp_manager
1beeee5b6434554ea493d8ef2465acc3bff1b9ba
[ "Apache-2.0" ]
null
null
null
otpmanager/__init__.py
ercas/otp_manager
1beeee5b6434554ea493d8ef2465acc3bff1b9ba
[ "Apache-2.0" ]
1
2021-12-03T21:29:57.000Z
2021-12-03T21:29:57.000Z
from .manager import OTPManager, GraphHopperManager, JavaManager
32.5
64
0.861538
6
65
9.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.092308
65
1
65
65
0.949153
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
abd23285317afd4ea95f5350b0dcc479a810985d
175
py
Python
alerter/src/alerter/grouped_alerts_metric_code/internal.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
41
2019-08-23T12:40:42.000Z
2022-03-28T11:06:02.000Z
alerter/src/alerter/grouped_alerts_metric_code/internal.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
147
2019-08-30T22:09:48.000Z
2022-03-30T08:46:26.000Z
alerter/src/alerter/grouped_alerts_metric_code/internal.py
SimplyVC/panic
2f5c327ea0d14b6a49dc8f4599a255048bc2ff6d
[ "Apache-2.0" ]
3
2019-09-03T21:12:28.000Z
2021-08-18T14:27:56.000Z
from .grouped_alerts_metric_code import GroupedAlertsMetricCode class GroupedInternalAlertsMetricCode(GroupedAlertsMetricCode): ComponentReset = 'component_reset_alert'
29.166667
63
0.874286
14
175
10.571429
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.085714
175
5
64
35
0.925
0
0
0
0
0
0.12
0.12
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
28015390dd9eafd529533389774d97626b611434
12,268
py
Python
Client/App/Core/Engine/Pong.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
Client/App/Core/Engine/Pong.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
Client/App/Core/Engine/Pong.py
Dragon-KK/ComputerProject2021
669431f3f2d41bda822931e6fffe661c99736dfe
[ "MIT" ]
null
null
null
from . import World,Physics from . import Entities from ..DataTypes.Standard import Vector from ..DataTypes.Physics import EulersVector from .Helpers import LocalMultiplayer,Arcade,OnlineMultiplayer from random import randint class Pong: ''' Deals with world physics and adding entitites ''' def __init__( self, worldContainer, gameSettings, # Settings paddles = [], balls = [], walls = [], goals = [], renderDelay = 15 ): self.World = World(worldContainer, renderDelay=renderDelay) self.IsPaused = True self.RoundHasStarted = False for ball in balls:self.World.Entities += ball for wall in walls:self.World.Entities += wall for goal in goals:self.World.Entities += goal for paddle in paddles:self.World.Entities += paddle def StartRound(self): for entity in self.World.Entities: entity.Reset() self.RoundHasStarted = True self.ContinueRound() def TogglePause(self): if not self.RoundHasStarted:return if self.IsPaused: self.ContinueRound() else: self.PauseRound() def ContinueRound(self): self.World.Continue() self.IsPaused = False def PauseRound(self): self.World.Pause() self.IsPaused = True class LocalMultiplayerPong(Pong): def __init__(self, container, settings, physicsDelay = 10, renderDelay = 15, onGoal = lambda winner="":0): #region Random Velocity def PlusMinus(n): tmp = randint(0, 1) return n* (-1 if tmp else 1) def GetRandomDirection(): return Vector(PlusMinus(randint(5, 10)), PlusMinus(randint(2,7))).normalized() def GetRandomVelocity(): return EulersVector(magnitude=settings.Difficulty, direction=GetRandomDirection()) # endregion balls = [ Entities.Ball(GetRandomVelocity, settings.DifficultySlope,initialPosition=Vector(50, 25.625)) for _ in range(settings.BallCount) ] walls = [ Entities.Wall( # The horizontal wall on top Vector(0, 0),Vector(100, 0) ), Entities.Wall( # The horizontal wall on bottom Vector(0, 51.25),Vector(100, 51.25) ) ] goals = [ Entities.Goal( # The goal on the left Vector(0, 0), Vector(0, 51.25), "P2Goal" ), Entities.Goal( # The goal on the right Vector(100, 0), Vector(100, 51.25), "P1Goal" ) ] paddles = [ Entities.Paddle(Vector(2, 25.625), Vector(2, 10), Entities.Paddle.OrientationTypes.Left, name = "LeftPaddle"), Entities.Paddle(Vector(98, 25.625), Vector(2, 10), Entities.Paddle.OrientationTypes.Right, name = "RightPaddle"), ] super().__init__( container, settings, paddles = paddles, walls = walls, goals = goals, balls = balls, renderDelay=renderDelay ) self.Physics = Physics(container, balls, walls, goals,paddles, physicsDelay, self.OnGoal) self.Score = [0, 0] self.OnGoalCallback = onGoal self.InputManager = LocalMultiplayer.InputManager(container,paddles) self.Settings = settings def ContinueRound(self): self.InputManager.Continue() self.World.Continue() self.Physics.Continue() self.IsPaused = False def CheckForWinner(self): if self.Score[1] >= self.Settings.WinCondition and (not self.Settings.Duece or self.Score[1] - self.Score[0] > 1): return "Player2" elif self.Score[0] >= self.Settings.WinCondition and (not self.Settings.Duece or self.Score[0] - self.Score[1] > 1): return "Player1" else: return "" def OnGoal(self, goal): self.PauseRound() self.World.Render() # Soemtimes the world misses a render self.RoundHasStarted = False if goal.GoalName == "P1Goal": self.Score[0] += 1 elif goal.GoalName == "P2Goal": self.Score[1] += 1 self.OnGoalCallback(winner = self.CheckForWinner()) def PauseRound(self): self.World.Pause() self.InputManager.Pause() self.Physics.Pause() self.IsPaused = True class ArcadePong(Pong): def __init__(self, container, settings, physicsDelay = 10, renderDelay = 15, onGoal = lambda:0): #region Random Velocity def PlusMinus(n): tmp = randint(0, 1) return n* (-1 if tmp else 1) def GetRandomDirection(): return Vector(PlusMinus(randint(5, 10)), PlusMinus(randint(1,6))).normalized() def GetRandomVelocity(): return EulersVector(magnitude=settings.Difficulty, direction=GetRandomDirection()) # endregion balls = [ Entities.Ball(GetRandomVelocity, settings.DifficultySlope,initialPosition=Vector(50, 25.625)) for _ in range(settings.BallCount) ] walls = [ Entities.Wall( # The horizontal wall on top Vector(0, 0),Vector(100, 0) ), Entities.Wall( # The horizontal wall on bottom Vector(0, 51.25),Vector(100, 51.25) ), Entities.Wall( # The wall on the right Vector(100, 0), Vector(100, 51.25),horizontal=False ) ] goals = [ Entities.Goal( # The goal on the left Vector(0, 0), Vector(0, 51.25), "P2Goal" ) ] paddles = [ Entities.Paddle(Vector(2, 25.625), Vector(2, 10), Entities.Paddle.OrientationTypes.Left, name = "LeftPaddle") ] super().__init__( container, settings, paddles = paddles, walls = walls, goals = goals, balls = balls, renderDelay=renderDelay ) self.Physics = Physics(container, balls, walls, goals,paddles, physicsDelay, self.OnGoal) self.Score = [0, 0] self.OnGoalCallback = onGoal self.InputManager = Arcade.InputManager(container,paddles[0]) self.Settings = settings def ContinueRound(self): self.InputManager.Continue() self.World.Continue() self.Physics.Continue() self.IsPaused = False def OnGoal(self, goal): self.PauseRound() self.World.Render() # Soemtimes the world misses a render self.RoundHasStarted = False self.OnGoalCallback() def PauseRound(self): self.World.Pause() self.InputManager.Pause() self.Physics.Pause() self.IsPaused = True class OnlineMultiplayerPong(Pong): def __init__(self, container, settings,isLeft = True, physicsDelay = 10, renderDelay = 15, onGoal = lambda winner="":0): #region Random Velocity def PlusMinus(n): tmp = randint(0, 1) return n* (-1 if tmp else 1) def GetRandomDirection(): return Vector(PlusMinus(randint(5, 10)), PlusMinus(randint(1,6))).normalized() def GetRandomVelocity(): return EulersVector(magnitude=settings.Difficulty, direction=GetRandomDirection()) # endregion self.balls = [ Entities.Ball(GetRandomVelocity, settings.DifficultySlope,initialPosition=Vector(50, 25.625)) for _ in range(settings.BallCount) ] self.walls = [ Entities.Wall( # The horizontal wall on top Vector(0, 0),Vector(100, 0) ), Entities.Wall( # The horizontal wall on bottom Vector(0, 51.25),Vector(100, 51.25) ) ] self.goals = [ Entities.Goal( # The goal on the left Vector(0, 0), Vector(0, 51.25), "P2Goal" ), Entities.Goal( # The goal on the right Vector(100, 0), Vector(100, 51.25), "P1Goal" ) ] self.paddles = [ Entities.Paddle(Vector(2, 25.625), Vector(2, 10), Entities.Paddle.OrientationTypes.Left, name = "LeftPaddle"), Entities.Paddle(Vector(98, 25.625), Vector(2, 10), Entities.Paddle.OrientationTypes.Right, name = "RightPaddle"), ] super().__init__( container, settings, paddles = self.paddles, walls = self.walls, goals = self.goals, balls = self.balls, renderDelay=renderDelay ) self.RoundHasEnded = False self.IsLeft = isLeft self.Physics = Physics(container, self.balls, self.walls, self.goals,self.paddles, physicsDelay, self.OnGoal) self.Score = [0, 0] self.OnGoalCallback = onGoal self.InputManager = OnlineMultiplayer.InputManager(container,self.paddles[0] if isLeft else self.paddles[1]) self.Settings = settings def GetInitialImage(self): return { "Balls" : [ { "direction" : (ball.Velocity.Direction.x,ball.Velocity.Direction.y) } for ball in self.balls ] } def UpdateFromInitialImage(self, img): for i in range(self.Settings.BallCount): self.balls[i].Velocity.Direction = Vector(*img['Balls'][i]['direction']) def GetImage(self): if self.IsLeft: return { "LeftPaddle" : { 'position' : (self.paddles[0].Position.x,self.paddles[0].Position.y) } } else: return { "RightPaddle" : { 'position' : (self.paddles[1].Position.x,self.paddles[1].Position.y) } } def UpdateFromImage(self, img): if self.RoundHasEnded:return # If the round has ended from our side just return if img.get("Balls"):return self.UpdateFromInitialImage(img) # If the img has ball position it must be the initial image (this will be changed in the future) if self.IsLeft: self.paddles[1].Position = Vector(*img['RightPaddle']['position']) else: self.paddles[0].Position = Vector(*img['LeftPaddle']['position']) def ContinueRound(self): self.InputManager.Continue() self.World.Continue() self.Physics.Continue() self.IsPaused = False def CheckForWinner(self): if self.Score[1] >= self.Settings.WinCondition and (not self.Settings.Duece or self.Score[1] - self.Score[0] > 1): return "Player2" elif self.Score[0] >= self.Settings.WinCondition and (not self.Settings.Duece or self.Score[0] - self.Score[1] > 1): return "Player1" else: return "" def Reset(self): self.RoundHasEnded = False for entity in self.World.Entities: entity.Reset() def StartRound(self): self.RoundHasStarted = True self.ContinueRound() def StartRoundWithReset(self): self.RoundHasEnded = False for entity in self.World.Entities: entity.Reset() self.RoundHasStarted = True self.ContinueRound() def ContinueRound(self): self.InputManager.Continue() self.World.Continue() self.Physics.Continue() self.IsPaused = False def PauseRound(self): self.World.Pause() self.InputManager.Pause() self.Physics.Pause() self.IsPaused = True def OnGoal(self, goal): self.PauseRound() self.RoundHasEnded = True self.World.Render() # Soemtimes the world misses a render self.RoundHasStarted = False if goal.GoalName == "P1Goal": self.Score[0] += 1 elif goal.GoalName == "P2Goal": self.Score[1] += 1 self.OnGoalCallback(winner = self.CheckForWinner())
33.427793
164
0.566025
1,251
12,268
5.525979
0.119904
0.026038
0.015912
0.021698
0.720527
0.718067
0.707218
0.702155
0.702155
0.702155
0
0.032942
0.326948
12,268
367
165
33.427793
0.804287
0.057467
0
0.679868
0
0
0.020913
0
0
0
0
0
0
1
0.118812
false
0
0.019802
0.023102
0.211221
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f9feb7c02d0eef85dd504b6cbbd134226cc1ca67
83
py
Python
torchseq/datasets/__init__.py
xlthu/pytorch-models
3a1fdd33f94a4ca038f2b10d3a6b0b73b079a1ea
[ "MIT" ]
null
null
null
torchseq/datasets/__init__.py
xlthu/pytorch-models
3a1fdd33f94a4ca038f2b10d3a6b0b73b079a1ea
[ "MIT" ]
null
null
null
torchseq/datasets/__init__.py
xlthu/pytorch-models
3a1fdd33f94a4ca038f2b10d3a6b0b73b079a1ea
[ "MIT" ]
null
null
null
from . import wikitext2 from . import cbt from . import tatoeba from . import utils
20.75
23
0.771084
12
83
5.333333
0.5
0.625
0
0
0
0
0
0
0
0
0
0.014706
0.180723
83
4
24
20.75
0.926471
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e60907e4fd6d76c076e7fba38f63509364bfb263
825
py
Python
bouncer/app/exceptions.py
Klarrio/bouncer
f2116912adc43dafbb4b96668ebca17b3f924603
[ "Apache-2.0" ]
6
2018-11-30T22:10:20.000Z
2022-02-13T14:20:37.000Z
bouncer/app/exceptions.py
Klarrio/bouncer
f2116912adc43dafbb4b96668ebca17b3f924603
[ "Apache-2.0" ]
6
2018-11-30T10:38:23.000Z
2019-08-19T08:27:59.000Z
bouncer/app/exceptions.py
Klarrio/bouncer
f2116912adc43dafbb4b96668ebca17b3f924603
[ "Apache-2.0" ]
7
2018-11-28T14:50:50.000Z
2022-03-01T13:16:36.000Z
# Copyright (C) Mesosphere, Inc. See LICENSE file for details. from bouncer.exceptions import BouncerException class InvalidPassword(BouncerException): """Password does not comply with rules.""" class InvalidPubkey(BouncerException): """Serialized public key does not comply with rules.""" class EntityExists(BouncerException): pass class EntityNotFound(BouncerException): pass class UidValidationError(BouncerException): pass class ProviderTypeValidationError(BouncerException): pass class ProviderIdValidationError(BouncerException): pass class GidValidationError(BouncerException): pass class RidValidationError(BouncerException): pass class RidValidationWithUserMessageError(RidValidationError): pass class ActionValidationError(BouncerException): pass
16.836735
62
0.780606
70
825
9.2
0.514286
0.248447
0.271739
0.052795
0.083851
0.083851
0
0
0
0
0
0
0.153939
825
48
63
17.1875
0.922636
0.179394
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
true
0.47619
0.047619
0
0.571429
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
1
1
0
0
1
0
0
5
e611f55cb75515da24d3bbe517af56576891d00d
14
py
Python
mgz/header/__init__.py
Namek/aoc-mgz
0c8196dccb550a48ecc375d7861138ef88b53716
[ "MIT" ]
117
2015-03-07T10:55:58.000Z
2022-03-18T18:22:01.000Z
mgz/header/__init__.py
Namek/aoc-mgz
0c8196dccb550a48ecc375d7861138ef88b53716
[ "MIT" ]
71
2015-10-02T00:05:07.000Z
2022-03-25T16:47:56.000Z
mgz/header/__init__.py
Namek/aoc-mgz
0c8196dccb550a48ecc375d7861138ef88b53716
[ "MIT" ]
41
2015-03-07T02:50:59.000Z
2021-09-13T06:16:12.000Z
"""Header."""
7
13
0.428571
1
14
6
1
0
0
0
0
0
0
0
0
0
0
0
0.071429
14
1
14
14
0.461538
0.5
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
e6591a8db00bb3e47b1d2f4f356d37aeb7f81375
1,703
py
Python
covfefe/frameworks/torch/objectives.py
deepnn/pybrew
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
4
2017-06-08T08:59:48.000Z
2020-02-13T18:17:00.000Z
covfefe/frameworks/torch/objectives.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
covfefe/frameworks/torch/objectives.py
deepnn/coffee
1417c910f6663e1c5f3c5eafdf1a34b68dce88a1
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import torch.nn as nn def l1_loss(size_ave=True): return nn.L1Loss(size_average=size_ave) def mse_loss(size_ave=True): return nn.MSELoss(size_average=size_ave) def ce_loss(loss_weight=None, size_ave=True): return nn.CrossEntropyLoss(weight=loss_weight,size_average=size_ave) def log_loss(loss_weight=None, size_ave=True, dim=2): if dim == 1: return nn.NLLLoss(weight=loss_weight,size_average=size_ave) elif dim == 2: return nn.NLLLoss2d(weight=loss_weight,size_average=size_ave) def kldiv_loss(loss_weight=None, size_ave=True): return nn.KLDivLoss(weight=loss_weight,size_average=size_ave) def bce_loss(loss_weight=None, size_ave=True): return nn.BCELoss(weight=loss_weight,size_average=size_ave) def mr_loss(margin=0, size_ave=True): return nn.MarginRankingLoss(margin=margin,size_average=size_ave) def he_loss(size_ave=True): return nn.HingeEmbeddingLoss(size_average=size_ave) def mlm_loss(size_ave=True): return nn.MultiLabelMarginLoss(size_average=size_ave) def smoothl1_loss(size_ave=True): return nn.SmoothL1Loss(size_average=size_ave) def sm_loss(size_ave=True): return nn.SoftMarginLoss(size_average=size_ave) def mlsm_loss(loss_weight=None, size_ave=True): return nn.MultiLabelSoftMarginLoss(weight=loss_weight,size_average=size_ave) def cosem_loss(margin=0, size_ave=True): return nn.CosineEmbeddingLoss(margin=margin, size_average=size_ave) def mm_loss(p=1, margin=1, loss_weight=None, size_ave=True): return nn.MultiMarginLoss(p=p, margin=margin, weight=loss_weight,size_average=size_ave)
32.75
80
0.775103
267
1,703
4.640449
0.205993
0.163842
0.181598
0.217918
0.688458
0.586764
0.475383
0.343826
0.119451
0
0
0.00807
0.126835
1,703
51
81
33.392157
0.825151
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.085714
0.371429
0.914286
0.028571
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
052b1c6c1201c7a30e82ed4ef9b728fbfe3b18ba
521
py
Python
src/utils/exceptions.py
SecureThemAll/cb-repair
3d1d4422e9a9ab459641e1ca759e3b73887d2950
[ "MIT" ]
null
null
null
src/utils/exceptions.py
SecureThemAll/cb-repair
3d1d4422e9a9ab459641e1ca759e3b73887d2950
[ "MIT" ]
null
null
null
src/utils/exceptions.py
SecureThemAll/cb-repair
3d1d4422e9a9ab459641e1ca759e3b73887d2950
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class InitializationException(Exception): """Raise when initialization errors occur.""" class ChallengeNotFound(Exception): """Raise when challenge not found.""" class ChallengeNotCovered(Exception): """Raise when challenge not found.""" class TestNotFound(Exception): """Raise when test not found.""" class NotEmptyDirectory(Exception): """Raise when test not found.""" class IncorrectTestNameFormat(Exception): """Raise when test name doesn't match format."""
20.038462
52
0.715931
55
521
6.781818
0.472727
0.225201
0.289544
0.176944
0.402145
0.402145
0.402145
0
0
0
0
0.002278
0.15739
521
25
53
20.84
0.84738
0.426104
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
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
1
0
0
0
1
0
0
5
054ca67dc55113c82c37f776456161e57d16dffc
195
py
Python
scripts/update_activities_file.py
WeiXu94/hiking
e13c8e05d51bc63ab52a7cb11d7511da5adf6377
[ "MIT" ]
2
2021-09-23T21:17:36.000Z
2022-01-19T16:13:16.000Z
scripts/update_activities_file.py
WeiXu94/hiking
e13c8e05d51bc63ab52a7cb11d7511da5adf6377
[ "MIT" ]
3
2021-03-04T02:24:37.000Z
2021-09-04T17:16:25.000Z
scripts/update_activities_file.py
WeiXu94/hiking
e13c8e05d51bc63ab52a7cb11d7511da5adf6377
[ "MIT" ]
2
2021-02-04T02:45:44.000Z
2021-09-05T03:00:53.000Z
from config import GPX_FOLDER, JSON_FILE, SQL_FILE, config from utils import make_activities_file_only if __name__ == "__main__": make_activities_file_only(SQL_FILE, GPX_FOLDER, JSON_FILE)
27.857143
62
0.815385
30
195
4.633333
0.5
0.129496
0.18705
0.244604
0
0
0
0
0
0
0
0
0.123077
195
6
63
32.5
0.812866
0
0
0
0
0
0.041026
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
054e9afc3c294f6a8c1aed1b186f84aa1495c650
19,220
py
Python
models.py
Ohyeon5/SQM_discreteness
4f44d4f3e15e834ed544df35c065b715f1f7ce92
[ "Apache-2.0" ]
1
2020-09-21T09:44:19.000Z
2020-09-21T09:44:19.000Z
models.py
Ohyeon5/SQM_discreteness
4f44d4f3e15e834ed544df35c065b715f1f7ce92
[ "Apache-2.0" ]
null
null
null
models.py
Ohyeon5/SQM_discreteness
4f44d4f3e15e834ed544df35c065b715f1f7ce92
[ "Apache-2.0" ]
null
null
null
# model specifications import os,sys import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.functional as F from convlstm_SreenivasVRao import * ############### # Networks # ############### # Discrete network: High level class Net_disc_high(nn.Module): ''' High level discrete network with 'simple' or 'redundant' secondary convLSTM Input images are processed continuously in the primary convlstm and then outputs from every window frame are fed to secondary convlstm ''' def __init__(self, n_classes, window, disc_type='simple', n_convBlocks=2, norm_type='bn', conv_n_feats=[3, 32, 64], clstm_hidden=[128, 256], return_all_layers=True, device='cpu', fc_n_hidden=None): super(Net_disc_high, self).__init__() # initial parameter settings self.disc_type = disc_type # 'simple' or 'redundant' is available in the moment self.n_classes = n_classes self.window = window self.device = device self.conv_n_feats = conv_n_feats self.clstm_hidden = clstm_hidden if fc_n_hidden is None: self.fc_n_hidden = n_classes*5 else: self.fc_n_hidden = fc_n_hidden # primary convolution blocks for preprocessing and feature extraction self.primary_conv3D = Primary_conv3D(n_convBlocks=n_convBlocks, norm_type=norm_type,conv_n_feats=self.conv_n_feats,device=self.device) # Two layers of convLSTM self.primary_convlstm = ConvLSTM_block(in_channels=self.conv_n_feats[n_convBlocks],hidden_channels=self.clstm_hidden[0], return_all_layers=True, device=self.device) self.secondary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[0],hidden_channels=self.clstm_hidden[1], return_all_layers=return_all_layers, device=self.device) self.ff_classifier = FF_classifier(in_channels=self.clstm_hidden[-1], n_classes=self.n_classes, hidden_channels=self.fc_n_hidden, norm_type=norm_type) def forward(self,x): if self.disc_type is 'simple': return self.forward_simple(x) elif self.disc_type is 'redundant': return self.forward_redundant(x) def forward_redundant(self,x): # arg: x is a list of images x = self.primary_conv3D(x) # Primary feature extraction: list x -> B x C x T x H x W transposed to -> B x T x C x H x W x = self.primary_convlstm(x) # discrete step: high level - redundant - repeat the output of nth frame to have same T imgs = [] for t in range(0, x[-1].shape[1], self.window): mm = x[0][:,t,:,:,:].unsqueeze(1).repeat(1,min(self.window, x[-1].shape[1]-t),1,1,1) imgs.append(mm) img = torch.cat(imgs,1) img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() img = self.ff_classifier(img) return img def forward_simple(self,x): # arg: x is a list of images x = self.primary_conv3D(x) # Primary feature extraction: list x -> B x C x T x H x W transposed to -> B x T x C x H x W x = self.primary_convlstm(x) # discrete step: high level - simple - every window frame img = x[0][:,slice(self.window-1,None,self.window),:,:,:] img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() img = self.ff_classifier(img) return img # Discrete network: Low level - simple class Net_disc_low(nn.Module): ''' Low level discrete network with 'simple' or 'redundant' secondary convLSTM Input images are divided every 'window' frames and are processed in individual primary_convlstm and only the last output from each window are stacked and fed to secondary convlstm ''' def __init__(self, n_classes, window, disc_type='simple', n_convBlocks=2, norm_type='bn', conv_n_feats=[3, 32, 64], clstm_hidden=[128, 256], return_all_layers=True, device='cpu', fc_n_hidden=None): super(Net_disc_low, self).__init__() # initial parameter settings self.disc_type = disc_type # 'simple' or 'redundant' is available in the moment self.n_classes = n_classes self.window = window self.device = device self.conv_n_feats = conv_n_feats self.clstm_hidden = clstm_hidden if fc_n_hidden is None: self.fc_n_hidden = n_classes*5 else: self.fc_n_hidden = fc_n_hidden # primary convolution blocks for preprocessing and feature extraction self.primary_conv3D = Primary_conv3D(n_convBlocks=n_convBlocks, norm_type=norm_type,conv_n_feats=self.conv_n_feats,device=self.device) # Two layers of convLSTM self.primary_convlstm = ConvLSTM_block(in_channels=self.conv_n_feats[n_convBlocks],hidden_channels=self.clstm_hidden[0], return_all_layers=True, device=self.device) self.secondary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[0],hidden_channels=self.clstm_hidden[1], return_all_layers=return_all_layers, device=self.device) self.ff_classifier = FF_classifier(in_channels=self.clstm_hidden[-1], n_classes=self.n_classes, hidden_channels=self.fc_n_hidden, norm_type=norm_type) def forward(self,x): if self.disc_type is 'simple': return self.forward_simple(x) elif self.disc_type is 'redundant': return self.forward_redundant(x) def forward_redundant(self,x): # arg: x is a list of images x = self.primary_conv3D(x) # Primary feature extraction: list x -> B x C x T x H x W transposed to -> B x T x C x H x W # discrete step: input is fed every window frames individually, and only the last output of the primary convlstm is saved imgs = [] for t in range(0, x.shape[1], self.window): ind_end = t+self.window if t+self.window<x.shape[1] else None mm = self.primary_convlstm(x[:,t:ind_end,:,:,:]) # mm: 5D tensor => B x T x Filters x H x W imgs.append(mm[0][:,-1,:,:,:].unsqueeze(1).repeat(1,min(self.window,x.shape[1]-t),1,1,1)) img = torch.cat(imgs,1) # stacked img: 5D tensor => B x T x C x H x W img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() img = self.ff_classifier(img) return img def forward_simple(self,x): # arg: x is a list of images x = self.primary_conv3D(x) # Primary feature extraction: list x -> B x C x T x H x W transposed to -> B x T x C x H x W # discrete step: input is fed every window frames individually, and only the last output of the primary convlstm is saved imgs = [] for t in range(0, x.shape[1], self.window): ind_end = t+self.window if t+self.window<x.shape[1] else None mm = self.primary_convlstm(x[:,t:ind_end,:,:,:]) # mm: 5D tensor => B x T x Filters x H x W imgs.append(mm[0][:,-1,:,:,:]) img = torch.stack(imgs,1) # stacked img: 5D tensor => B x T x C x H x W img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() img = self.ff_classifier(img) return img # Baseline network (continuous) class Net_continuous(nn.Module): def __init__(self, n_classes, n_convBlocks=2, norm_type='bn', conv_n_feats=[3, 32, 64], clstm_hidden=[128, 256], return_all_layers=True, device='cpu', fc_n_hidden=None): super(Net_continuous, self).__init__() # initial parameter settings self.device = device self.conv_n_feats = conv_n_feats self.clstm_hidden = clstm_hidden self.n_classes = n_classes if fc_n_hidden is None: self.fc_n_hidden = n_classes*5 else: self.fc_n_hidden = fc_n_hidden # primary convolution blocks for preprocessing and feature extraction self.primary_conv3D = Primary_conv3D(n_convBlocks=n_convBlocks, norm_type=norm_type,conv_n_feats=self.conv_n_feats,device=self.device) # Two layers of convLSTM # self.primary_convlstm = ConvLSTM_block(in_channels=self.conv_n_feats[n_convBlocks],hidden_channels=self.clstm_hidden[0], # return_all_layers=True, device=self.device) # self.secondary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[0],hidden_channels=self.clstm_hidden[1], # return_all_layers=return_all_layers, device=self.device) self.convlstm = ConvLSTM(in_channels=self.conv_n_feats[n_convBlocks], hidden_channels=self.clstm_hidden, kernel_size=(3,3), num_layers=2, batch_first=True, bias=True, return_all_layers=return_all_layers, device=self.device) self.ff_classifier = FF_classifier(in_channels=self.clstm_hidden[-1], n_classes=self.n_classes, hidden_channels=self.fc_n_hidden, norm_type=norm_type) def forward(self,x): # arg: x is a list of images img = self.primary_conv3D(x) # Primary feature extraction: list x -> B x C x T x H x W transposed to -> B x T x C x H x W # img = self.primary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # img = self.secondary_convlstm(img[0]) # img: 5D tensor => B x T x Filters x H x W img,_ = self.convlstm(img) # Base Network: use the last layer only img = img[0][:,-1,:,:,:].squeeze() # print(img.mean()) img = self.ff_classifier(img) # print(img.mean()) return img ########################### # Network Building Blocks # ########################### # 1) Primary feature extraction conv layer class Primary_conv3D(nn.Module): ''' Primary feedforward feature extraction convolution layers ''' def __init__(self, n_convBlocks=2, norm_type='bn',conv_n_feats=[3, 32, 64],device='cpu'): super(Primary_conv3D, self).__init__() # initial parameter settings self.device = device self.conv_n_feats = conv_n_feats # primary convolution blocks for preprocessing and feature extraction layers = [] for ii in range(n_convBlocks): block = Conv3D_Block(self.conv_n_feats[ii],self.conv_n_feats[ii+1],norm_type=norm_type) layers.append(block) self.primary_conv3D = nn.Sequential(*layers) def forward(self, x): # arg: x is a list of images # Stack to 5D layer and then pass 5d (BxCxTxHxW) to primaryConv3D and transpose it to BxTxCxHxW img = torch.stack(x,2).to(self.device) # stacked img: 5D tensor => B x C x T x H x W img = self.primary_conv3D(img) img = torch.transpose(img,2,1) # Transpose B x C x T x H x W --> B x T x C x H x W return img # 2) Primary and Secondary convLSTMs class ConvLSTM_block(nn.Module): ''' ConvLSTM blocks ''' def __init__(self, in_channels, hidden_channels, kernel_size=(3,3), num_layers=1, return_all_layers=True, device='cpu'): super(ConvLSTM_block, self).__init__() self.convlstm_block = ConvLSTM(in_channels=in_channels, hidden_channels=hidden_channels, kernel_size=kernel_size, num_layers=num_layers, bias=True, batch_first=True, return_all_layers=return_all_layers, device=device) def forward(self, x): # arg: x is a 5D tensor => B x T x Filters x H x W x, _ = self.convlstm_block(x) return x # 2-1) wrapper compatible: low discrete network class ConvLSTM_disc_low(nn.Module): ''' Low level discrete network with 'simple' or 'redundant' secondary convLSTM Input images are divided every 'window' frames and are processed in individual primary_convlstm and only the last output from each window are stacked and fed to secondary convlstm ''' def __init__(self, window, disc_type='simple', clstm_hidden=[64, 128, 256], return_all_layers=False, device='cpu'): super(ConvLSTM_disc_low, self).__init__() # initial parameter settings self.disc_type = disc_type # 'simple' or 'redundant' is available in the moment self.window = window self.device = device self.clstm_hidden = clstm_hidden # Two layers of convLSTM self.primary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[0],hidden_channels=self.clstm_hidden[1], return_all_layers=False, device=self.device) self.secondary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[1],hidden_channels=self.clstm_hidden[2], return_all_layers=return_all_layers, device=self.device) def forward(self,x): if self.disc_type is 'simple': return self.forward_simple(x) elif self.disc_type is 'redundant': return self.forward_redundant(x) def forward_redundant(self,x): # arg: x is a 5D tensor B x T x C x H x W # discrete step: input is fed every window frames individually, and only the last output of the primary convlstm is saved imgs = [] for t in range(0, x.shape[1], self.window): ind_end = t+self.window if t+self.window<x.shape[1] else None mm = self.primary_convlstm(x[:,t:ind_end,:,:,:]) # mm: 5D tensor => B x T x Filters x H x W imgs.append(mm[0][:,-1,:,:,:].unsqueeze(1).repeat(1,min(self.window,x.shape[1]-t),1,1,1)) img = torch.cat(imgs,1) # stacked img: 5D tensor => B x T x C x H x W img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() return img def forward_simple(self,x): # arg: x is a 5D tensor B x T x C x H x W # discrete step: input is fed every window frames individually, and only the last output of the primary convlstm is saved imgs = [] for t in range(0, x.shape[1], self.window): ind_end = t+self.window if t+self.window<x.shape[1] else None mm = self.primary_convlstm(x[:,t:ind_end,:,:,:]) # mm: 5D tensor => B x T x Filters x H x W imgs.append(mm[0][:,-1,:,:,:]) img = torch.stack(imgs,1) # stacked img: 5D tensor => B x T x C x H x W img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() return img # 2-1) wrapper compatible: high discrete network class ConvLSTM_disc_high(nn.Module): ''' High level discrete network with 'simple' or 'redundant' secondary convLSTM Input images are processed continuously in the primary convlstm and then outputs from every window frame are fed to secondary convlstm ''' def __init__(self, window, disc_type='simple', clstm_hidden=[64, 128, 256], return_all_layers=False, device='cpu'): super(ConvLSTM_disc_high, self).__init__() # initial parameter settings self.disc_type = disc_type # 'simple' or 'redundant' is available in the moment self.window = window self.device = device self.clstm_hidden = clstm_hidden # Two layers of convLSTM self.primary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[0],hidden_channels=self.clstm_hidden[1], return_all_layers=False, device=self.device) self.secondary_convlstm = ConvLSTM_block(in_channels=self.clstm_hidden[1],hidden_channels=self.clstm_hidden[2], return_all_layers=return_all_layers, device=self.device) def forward(self,x): if self.disc_type is 'simple': return self.forward_simple(x) elif self.disc_type is 'redundant': return self.forward_redundant(x) def forward_redundant(self,x): # arg: x is a 5D tensor B x T x C x H x W x = self.primary_convlstm(x) # discrete step: high level - redundant - repeat the output of nth frame to have same T imgs = [] for t in range(0, x[-1].shape[1], self.window): mm = x[0][:,t,:,:,:].unsqueeze(1).repeat(1,min(self.window, x[-1].shape[1]-t),1,1,1) imgs.append(mm) img = torch.cat(imgs,1) img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() return img def forward_simple(self,x): # arg: x is a 5D tensor B x T x C x H x W x = self.primary_convlstm(x) # discrete step: high level - simple - every window frame img = x[0][:,slice(self.window-1,None,self.window),:,:,:] img = self.secondary_convlstm(img) # img: 5D tensor => B x T x Filters x H x W # Base Network: use the last layer only img = img[-1][:,-1,:,:,:].squeeze() return img # 3) Feedforward classifier class FF_classifier(nn.Module): ''' Feedforward fully connected classifier ''' def __init__(self, in_channels, n_classes, hidden_channels=None, norm_type=None): super(FF_classifier, self).__init__() if hidden_channels is None: self.hidden_channels = n_classes*5 else: self.hidden_channels = hidden_channels self.avgpool = nn.AdaptiveAvgPool2d((2, 2)) self.norm_layer = define_norm(in_channels,norm_type,dim_mode=2) self.classifier = nn.Sequential( nn.Dropout(), nn.Linear(2*2*in_channels, hidden_channels), nn.ReLU(inplace=True), nn.Dropout(), nn.Linear(hidden_channels, n_classes)) def forward(self, x): # arg: x is a 4D tensor B x C x H x W x = self.avgpool(x) if self.norm_layer is not None: x = self.norm_layer(x) x = x.contiguous().view(x.shape[0],-1) x = self.classifier(x) return x # Conv3D block class Conv3D_Block(nn.Module): ''' use conv3D than multiple Conv2D blocks (for a sake of reducing computational burden) INPUT dimension: BxCxTxHxW ''' def __init__(self, in_channels, out_channels, kernel_size=3, stride=1,padding=1,norm_type=None): # kernel_size, stride, padding should be int scalar value, not tuple nor list super(Conv3D_Block,self).__init__() # parameters self.norm_type = norm_type # layers self.conv = nn.Conv3d(in_channels,out_channels,kernel_size=(1,kernel_size,kernel_size), stride=(1,stride,stride),padding=(1,padding,padding)) self.relu = nn.ReLU(inplace=True) self.maxpool = nn.MaxPool3d(kernel_size=(1,2,2), stride=(1,2,2)) self.norm_layer= define_norm(out_channels,norm_type,dim_mode=3) def forward(self,x): x = self.conv(x) x = self.relu(x) x = self.maxpool(x) if self.norm_layer is not None: x = self.norm_layer(x) return x ################## # Aid functions # ################## # Define normalization type def define_norm(n_channel,norm_type,n_group=None,dim_mode=2): # define and use different types of normalization steps # Referred to https://pytorch.org/docs/stable/_modules/torch/nn/modules/normalization.html if norm_type is 'bn': if dim_mode == 2: return nn.BatchNorm2d(n_channel) elif dim_mode==3: return nn.BatchNorm3d(n_channel) elif norm_type is 'gn': if n_group is None: n_group=2 # default group num is 2 return nn.GroupNorm(n_group,n_channel) elif norm_type is 'in': return nn.GroupNorm(n_channel,n_channel) elif norm_type is 'ln': return nn.GroupNorm(1,n_channel) elif norm_type is None: return else: return ValueError('Normalization type - '+norm_type+' is not defined yet') if __name__ == '__main__': # usage example device = torch.device("cuda" if torch.cuda.is_available() else "cpu") print(device) net = Net_continuous(n_classes=5, device=device) print(net) net = net.to(device) loss_fn = torch.nn.CrossEntropyLoss() x1 = torch.randn([5, 3, 100, 100]).to(device) x2 = torch.randn([5, 3, 100, 100]).to(device) x3 = torch.randn([5, 3, 100, 100]).to(device) tar = torch.rand(5,5).to(device) x_in = [x1,x2,x3] out = net(x_in) print(out) out.sum().backward() # # gradient check # res = torch.autograd.gradcheck(loss_fn, (out, tar), eps=1e-6, atol=1e-2, raise_exception=True) # print(res)
36.12782
136
0.698647
3,157
19,220
4.077289
0.082673
0.006215
0.008623
0.011498
0.787368
0.758779
0.739901
0.734385
0.716905
0.710457
0
0.018954
0.17924
19,220
532
137
36.12782
0.797021
0.318262
0
0.657627
0
0
0.013759
0
0
0
0
0
0
1
0.091525
false
0
0.023729
0
0.240678
0.010169
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
552e7beaee15efd18381efd500a65805b4383c43
57
py
Python
spectrai/metrics/skl.py
franckalbinet/spectrai
3458bc64672077ebeee98fa53c6716a23231ba7e
[ "BSD-3-Clause" ]
1
2020-09-13T10:05:41.000Z
2020-09-13T10:05:41.000Z
spectrai/metrics/skl.py
franckalbinet/spectrai
3458bc64672077ebeee98fa53c6716a23231ba7e
[ "BSD-3-Clause" ]
4
2020-11-13T18:56:11.000Z
2022-02-10T01:52:45.000Z
spectrai/metrics/skl.py
franckalbinet/spectrai
3458bc64672077ebeee98fa53c6716a23231ba7e
[ "BSD-3-Clause" ]
null
null
null
from sklearn.metrics import mean_squared_error, r2_score
28.5
56
0.877193
9
57
5.222222
1
0
0
0
0
0
0
0
0
0
0
0.019231
0.087719
57
1
57
57
0.884615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
553e9945e6a8296de18c2420f78dfe5d0688196c
75
py
Python
training/__init__.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
12
2019-10-11T12:32:13.000Z
2021-09-05T06:26:43.000Z
training/__init__.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
null
null
null
training/__init__.py
ecs-vlc/opponency
f2eae25818be6c9c6e6541802b04b6c5e56112a2
[ "MIT" ]
1
2021-11-05T01:36:19.000Z
2021-11-05T01:36:19.000Z
from .model import BaselineModel from .model_imagenet import ImageNetModel
25
41
0.866667
9
75
7.111111
0.666667
0.28125
0
0
0
0
0
0
0
0
0
0
0.106667
75
2
42
37.5
0.955224
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
555f261c75dfaa448ecbf5327b055fd67254aa96
53
py
Python
19. Packages/package_eg/Module1.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
3
2020-08-07T04:33:19.000Z
2021-10-06T08:58:01.000Z
19. Packages/package_eg/Module1.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
null
null
null
19. Packages/package_eg/Module1.py
riyabhatia26/Python-Programming
2882728982c15c3b6380033eb2e90761b538dd93
[ "MIT" ]
2
2021-10-06T08:58:05.000Z
2021-10-06T09:46:42.000Z
def show(): print("This is method from module1")
17.666667
40
0.660377
8
53
4.375
1
0
0
0
0
0
0
0
0
0
0
0.02381
0.207547
53
2
41
26.5
0.809524
0
0
0
0
0
0.509434
0
0
0
0
0
0
1
0.5
true
0
0
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
1
0
5
556368812dd65736b3402ed60370bed59de551db
241
py
Python
pointnet_ops/__init__.py
jackd/pointnet_ops
26d9b85ce4b503fac7547b965e233442aa243430
[ "MIT" ]
3
2019-04-13T02:06:56.000Z
2021-07-01T12:18:57.000Z
pointnet_ops/__init__.py
jackd/pointnet_ops
26d9b85ce4b503fac7547b965e233442aa243430
[ "MIT" ]
2
2019-04-13T02:31:03.000Z
2020-06-14T02:59:05.000Z
pointnet_ops/__init__.py
jackd/pointnet_ops
26d9b85ce4b503fac7547b965e233442aa243430
[ "MIT" ]
null
null
null
"""TensorFlow pointnet ops example.""" from __future__ import absolute_import from pointnet_ops import interpolate from pointnet_ops import group from pointnet_ops import sample __all__ = [ 'interpolate', 'group', 'sample', ]
17.214286
38
0.746888
28
241
6
0.428571
0.261905
0.267857
0.375
0
0
0
0
0
0
0
0
0.174274
241
13
39
18.538462
0.844221
0.13278
0
0
0
0
0.108374
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
55644fd489b08c7b223379cd0d641f1eb93faad2
1,967
py
Python
modules/courses/views.py
hyphev/campus
01ceb3f1ebfb2c033fee12a107b3ba55e3f2715e
[ "MIT" ]
null
null
null
modules/courses/views.py
hyphev/campus
01ceb3f1ebfb2c033fee12a107b3ba55e3f2715e
[ "MIT" ]
null
null
null
modules/courses/views.py
hyphev/campus
01ceb3f1ebfb2c033fee12a107b3ba55e3f2715e
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader def index(request): template = loader.get_template('courses/index.html') context = {"courses_page": "active"} return HttpResponse(template.render(context)) def add(request): template = loader.get_template('courses/add.html') context = {"courses_page_add": "active"} return HttpResponse(template.render(context)) def edit(request): template = loader.get_template('courses/edit.html') context = {"courses_page_edit": "active"} return HttpResponse(template.render(context)) def delete(request): template = loader.get_template('courses/delete.html') context = {"courses_page_delete": "active"} return HttpResponse(template.render(context)) def classroom(request): template = loader.get_template('courses/classroom.html') context = {"classroom_page_classroom": "active"} return HttpResponse(template.render(context)) def add_classroom(request): template = loader.get_template('courses/add_classroom.html') context = {"couses_page_add_classroom": "active"} return HttpResponse(template.render(context)) def edit_classroom(request): template = loader.get_template('courses/edit_classroom.html') context = {"courses_page_edit_classroom": "active"} return HttpResponse(template.render(context)) def category(request): template = loader.get_template('courses/category.html') context = {"courses_page_category": "active"} return HttpResponse(template.render(context)) def add_category(request): template = loader.get_template('courses/add_category.html') context = {"courses_page_add_category": "active"} return HttpResponse(template.render(context)) def edit_category(request): template = loader.get_template('courses/edit_category.html') context = {"couses_page_edit_category": "active"} return HttpResponse(template.render(context))
33.913793
65
0.746314
226
1,967
6.314159
0.110619
0.105116
0.147162
0.168185
0.806587
0.708479
0.653819
0.280308
0
0
0
0
0.130147
1,967
57
66
34.508772
0.834015
0
0
0.232558
0
0
0.248094
0.149466
0
0
0
0
0
1
0.232558
false
0
0.069767
0
0.534884
0
0
0
0
null
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
558a71122098f9f13e399b640b4e3a3b28981f30
83
py
Python
build/lib.linux-x86_64-2.7/datagon/checker/checker.py
AceSrc/datagon
e53ad7a832fb46c2c60834ab4daa0a3a94ea9d1d
[ "MIT" ]
5
2017-04-16T05:43:02.000Z
2020-01-17T03:11:31.000Z
datagon/checker/checker.py
AceSrc/datagon
e53ad7a832fb46c2c60834ab4daa0a3a94ea9d1d
[ "MIT" ]
null
null
null
datagon/checker/checker.py
AceSrc/datagon
e53ad7a832fb46c2c60834ab4daa0a3a94ea9d1d
[ "MIT" ]
null
null
null
import datagon.generator.generator def CompareStd(argv) : print('in Checker')
16.6
34
0.746988
10
83
6.2
0.9
0
0
0
0
0
0
0
0
0
0
0
0.144578
83
4
35
20.75
0.873239
0
0
0
0
0
0.120482
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
55a1e1a264850ad01716e632cfcc398628bf2a17
182
py
Python
python/tvm/tg/__init__.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/tg/__init__.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
python/tvm/tg/__init__.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
"""Namespace for Tensor Graph """ from .autodiff import gradient from .autodiff import expr_equal, grad_op from .graph import * from .auto_schedule import * from .runtime import *
18.2
41
0.763736
25
182
5.44
0.6
0.176471
0.264706
0
0
0
0
0
0
0
0
0
0.153846
182
9
42
20.222222
0.883117
0.142857
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e956bf9eea578eb720bead8851adc63bb69922dc
323
py
Python
venv/src/users/models.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
1
2019-10-28T03:44:38.000Z
2019-10-28T03:44:38.000Z
venv/src/users/models.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
null
null
null
venv/src/users/models.py
ddelgadoJS/ProyectoWeb
f899c910bf16a79d5c3498bc6e8aa6b741fb56e1
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class User(models.Model): username = models.CharField(max_length=40) firstname = models.CharField(max_length=50) lastname = models.CharField(max_length=50) password = models.CharField(max_length=50) email = models.EmailField(max_length=50)
35.888889
48
0.736842
43
323
5.418605
0.511628
0.193133
0.309013
0.412017
0.334764
0
0
0
0
0
0
0.037037
0.164087
323
9
48
35.888889
0.825926
0.074303
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.142857
0.142857
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
e96b8c3313c366bc1188d841c687caa3c1bcc8c6
151
py
Python
ctmicro/__init__.py
ischoegl/ctmicro
a2d4fbb23b488a89f4b763fce3c09e187a931b26
[ "BSD-3-Clause" ]
null
null
null
ctmicro/__init__.py
ischoegl/ctmicro
a2d4fbb23b488a89f4b763fce3c09e187a931b26
[ "BSD-3-Clause" ]
1
2020-05-17T12:13:37.000Z
2020-05-19T02:41:40.000Z
ctmicro/__init__.py
ischoegl/ctmicro
a2d4fbb23b488a89f4b763fce3c09e187a931b26
[ "BSD-3-Clause" ]
6
2019-05-06T17:49:41.000Z
2021-06-16T21:07:51.000Z
# This file is part of the ctmicro add-on package to Cantera. # See LICENSE in the top-level directory from ._ctmicro import * from .channel import *
25.166667
61
0.754967
25
151
4.52
0.84
0
0
0
0
0
0
0
0
0
0
0
0.18543
151
5
62
30.2
0.918699
0.649007
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e96c74a883d8861968261d8465e33e398cbdad7c
172
py
Python
base/admin.py
ggs134/ether-x
bf8636bd307d325179bfbcabbac93bc4396b2627
[ "BSD-3-Clause" ]
null
null
null
base/admin.py
ggs134/ether-x
bf8636bd307d325179bfbcabbac93bc4396b2627
[ "BSD-3-Clause" ]
null
null
null
base/admin.py
ggs134/ether-x
bf8636bd307d325179bfbcabbac93bc4396b2627
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import EthAccount, Transaction admin.site.register(EthAccount) admin.site.register(Transaction)
24.571429
43
0.825581
22
172
6.454545
0.545455
0.126761
0.239437
0
0
0
0
0
0
0
0
0
0.098837
172
7
44
24.571429
0.916129
0.151163
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e98a96bf27b6f84e06d120600b24ee28ffb9ff9f
20
py
Python
neuralNet.py
rodrigoga799/delta-octo-broccoli
919887e78e49bdd26e6ca8e7f9e4555dc9abefb4
[ "Apache-2.0" ]
1
2019-01-13T21:09:35.000Z
2019-01-13T21:09:35.000Z
neuralNet.py
rodrigoga799/delta-octo-broccoli
919887e78e49bdd26e6ca8e7f9e4555dc9abefb4
[ "Apache-2.0" ]
null
null
null
neuralNet.py
rodrigoga799/delta-octo-broccoli
919887e78e49bdd26e6ca8e7f9e4555dc9abefb4
[ "Apache-2.0" ]
null
null
null
#New neural network
10
19
0.8
3
20
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.15
20
1
20
20
0.941176
0.9
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
e9b7fd7b3662043373ac6d1f3e41b700be9e8e4a
120
py
Python
reviews/admin.py
male-of-sigma-variety/Maturitni-prace
31e95afac498cc6227651283d5684b0a9d402634
[ "MIT" ]
1
2022-03-24T18:56:38.000Z
2022-03-24T18:56:38.000Z
reviews/admin.py
male-of-sigma-variety/Maturitni-prace
31e95afac498cc6227651283d5684b0a9d402634
[ "MIT" ]
null
null
null
reviews/admin.py
male-of-sigma-variety/Maturitni-prace
31e95afac498cc6227651283d5684b0a9d402634
[ "MIT" ]
1
2022-03-24T18:56:41.000Z
2022-03-24T18:56:41.000Z
from django.contrib import admin from .models import Food, Review admin.site.register(Food) admin.site.register(Review)
24
32
0.816667
18
120
5.444444
0.555556
0.183673
0.346939
0
0
0
0
0
0
0
0
0
0.091667
120
5
33
24
0.899083
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
e9bbfe1f6deefe0292afb49430aa9c1c5d9b70ed
99
py
Python
src/Decision.py
Dorijan-Cirkveni/kolinahr_nesheh
8645d0ac9832845f14d52e39f525d1152c3d1517
[ "MIT" ]
null
null
null
src/Decision.py
Dorijan-Cirkveni/kolinahr_nesheh
8645d0ac9832845f14d52e39f525d1152c3d1517
[ "MIT" ]
null
null
null
src/Decision.py
Dorijan-Cirkveni/kolinahr_nesheh
8645d0ac9832845f14d52e39f525d1152c3d1517
[ "MIT" ]
null
null
null
from src.CNF import ClauseSet class Decision: def __init__(self,cs:ClauseSet): return
16.5
36
0.707071
13
99
5.076923
0.923077
0
0
0
0
0
0
0
0
0
0
0
0.222222
99
6
37
16.5
0.857143
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
7569f61b8785c33f1f06ddbff313e99b40f14e30
17
py
Python
tests/__init__.py
ToriRobert/ad
69f7a6b1d39d10b88b996fa22c3cf3518f797b47
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tests/__init__.py
ToriRobert/ad
69f7a6b1d39d10b88b996fa22c3cf3518f797b47
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tests/__init__.py
ToriRobert/ad
69f7a6b1d39d10b88b996fa22c3cf3518f797b47
[ "Apache-2.0", "CC-BY-4.0" ]
2
2020-12-11T06:57:03.000Z
2020-12-21T11:28:05.000Z
# in __init__.py
8.5
16
0.705882
3
17
2.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.571429
0.823529
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
75b06f72d04a5afaa6856f17dddee9a40b6bc9a8
632
py
Python
GraphTheory/matrix_representation_bfs.py
ankschoubey/notes
e8f86e90ceb93282073c1760bedcfbb8ad35a1df
[ "MIT" ]
3
2018-04-17T08:47:07.000Z
2020-02-13T18:39:16.000Z
GraphTheory/matrix_representation_bfs.py
ankschoubey/notes
e8f86e90ceb93282073c1760bedcfbb8ad35a1df
[ "MIT" ]
null
null
null
GraphTheory/matrix_representation_bfs.py
ankschoubey/notes
e8f86e90ceb93282073c1760bedcfbb8ad35a1df
[ "MIT" ]
null
null
null
matrix = [ #0, 1, 2, 3, 4, 5, 6, 7], #0 [0, 1, 1, 0, 0, 0, 0, 0], #0 [1, 0, 1, 1, 0, 0, 0, 0], #1 [1, 1, 0, 0, 0, 0, 0, 0], #2 [0, 1, 0, 0, 1, 1, 0, 0], #3 [0, 0, 0, 1, 0, 0, 1, 0], #4 [0, 0, 0, 1, 0, 0, 1, 0], #5 [0, 0, 0, 0, 1, 1, 0, 1], #6 [0, 0, 0, 0, 0, 0, 1, 0], #7 ] def convert_to_adjacency(): adjacency = {} for i, array in enumerate(matrix): adjacency[i] = [] for j, v in enumerate(array): if v == 1: adjacency[i].append(j) return adjacency import pprint output = convert_to_adjacency() pprint(output)
24.307692
39
0.414557
118
632
2.186441
0.220339
0.232558
0.209302
0.170543
0.255814
0.244186
0.189922
0.162791
0
0
0
0.207071
0.373418
632
26
40
24.307692
0.444444
0.053797
0
0.095238
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0.095238
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f954fdd4493ef6bba59cc0afc59b11507d4929e5
45
py
Python
numpy/tests/typing/pass/dtype.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
1
2020-07-01T03:50:43.000Z
2020-07-01T03:50:43.000Z
numpy/tests/typing/pass/dtype.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
24
2021-05-03T11:31:55.000Z
2021-08-02T11:23:24.000Z
numpy/tests/typing/pass/dtype.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
2
2021-08-16T05:10:04.000Z
2022-01-15T09:10:09.000Z
import numpy as np np.dtype(dtype=np.int64)
11.25
24
0.755556
9
45
3.777778
0.666667
0
0
0
0
0
0
0
0
0
0
0.051282
0.133333
45
3
25
15
0.820513
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f98ebb6432416891f4ce7899dc9b705df0845bc3
110
py
Python
learn/02week/code/use_pkg.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
learn/02week/code/use_pkg.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
learn/02week/code/use_pkg.py
tmax818/nucamp_intro_python
6fac59f53054055ba4ab40559c44eba07b7f9fd6
[ "MIT" ]
null
null
null
from my_pkg import convert print(convert.lb_to_oz(2)) print(convert.oz_to_lb(40)) print(convert.ft_to_in(5))
18.333333
27
0.790909
23
110
3.478261
0.608696
0.45
0
0
0
0
0
0
0
0
0
0.039216
0.072727
110
5
28
22
0.745098
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.75
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
f9bbf094d7c7e093379a30c3770c458c8e7420bc
143
py
Python
wikimetrics/models/cohorts/fixed_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
6
2015-01-28T05:59:08.000Z
2018-01-09T07:48:57.000Z
wikimetrics/models/cohorts/fixed_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
2
2020-05-09T16:36:43.000Z
2020-05-09T16:52:35.000Z
wikimetrics/models/cohorts/fixed_cohort.py
wikimedia/analytics-wikimetrics
1d2036657b06ccd16ecfc76edd3f9a6119ff75f4
[ "MIT" ]
1
2016-01-13T07:19:44.000Z
2016-01-13T07:19:44.000Z
from validated_cohort import ValidatedCohort class FixedCohort(ValidatedCohort): """ A cohort that has fix number of members """
17.875
44
0.727273
16
143
6.4375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.20979
143
7
45
20.428571
0.911504
0.272727
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ddae6ca5d3f896281bdcc702784b59859c1b8af0
203
py
Python
Scripts/rst2odt_prepstyles.py
saranya515/python-api
9870b064c1238845b3e6714c8116e3c949868c62
[ "bzip2-1.0.6" ]
null
null
null
Scripts/rst2odt_prepstyles.py
saranya515/python-api
9870b064c1238845b3e6714c8116e3c949868c62
[ "bzip2-1.0.6" ]
null
null
null
Scripts/rst2odt_prepstyles.py
saranya515/python-api
9870b064c1238845b3e6714c8116e3c949868c62
[ "bzip2-1.0.6" ]
null
null
null
#!C:\Python27\python.exe # EASY-INSTALL-SCRIPT: 'docutils==0.12','rst2odt_prepstyles.py' __requires__ = 'docutils==0.12' __import__('pkg_resources').run_script('docutils==0.12', 'rst2odt_prepstyles.py')
40.6
81
0.753695
28
203
5.035714
0.642857
0.191489
0.234043
0.241135
0.510638
0.510638
0.510638
0
0
0
0
0.06701
0.044335
203
4
82
50.75
0.659794
0.418719
0
0
0
0
0.534483
0.181034
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
ddcdfb834a3c4ea6ea2236db9265920d5a931b90
878
py
Python
tests/conftest.py
rigidus/et
11cc30260f9aa7587a06c84ab9e0895e2c068875
[ "Xnet", "X11" ]
null
null
null
tests/conftest.py
rigidus/et
11cc30260f9aa7587a06c84ab9e0895e2c068875
[ "Xnet", "X11" ]
null
null
null
tests/conftest.py
rigidus/et
11cc30260f9aa7587a06c84ab9e0895e2c068875
[ "Xnet", "X11" ]
1
2021-04-19T08:07:09.000Z
2021-04-19T08:07:09.000Z
import pytest from brownie import chain, Wei, ZERO_ADDRESS @pytest.fixture(scope="function", autouse=True) def shared_setup(fn_isolation): pass @pytest.fixture(scope='module') def ldo_holder(accounts): return accounts.at('0xAD4f7415407B83a081A0Bee22D05A8FDC18B42da', force=True) @pytest.fixture(scope='module') def dao_acl(interface): return interface.ACL(lido_dao_acl_address) @pytest.fixture(scope='module') def dao_voting(interface): return interface.Voting(lido_dao_voting_address) @pytest.fixture(scope='module') def dao_token_manager(interface): return interface.TokenManager(lido_dao_token_manager_address) # Lido DAO Agent app @pytest.fixture(scope='module') def dao_agent(interface): return interface.Agent(lido_dao_agent_address) @pytest.fixture(scope='module') def ldo_token(interface): return interface.ERC20(ldo_token_address)
25.085714
80
0.790433
115
878
5.817391
0.330435
0.136024
0.188341
0.215247
0.300448
0.300448
0.110613
0
0
0
0
0.03287
0.099089
878
34
81
25.823529
0.812895
0.020501
0
0.26087
0
0
0.100233
0.048951
0
0
0.048951
0
0
1
0.304348
false
0.043478
0.086957
0.26087
0.652174
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
ddd3568b00bd3c4b4d0c301726426b4a8435dc08
20
py
Python
checkov/version.py
mzwennes/checkov
d0d3a8faede28fbf2d180be4410c32e71c08d500
[ "Apache-2.0" ]
null
null
null
checkov/version.py
mzwennes/checkov
d0d3a8faede28fbf2d180be4410c32e71c08d500
[ "Apache-2.0" ]
null
null
null
checkov/version.py
mzwennes/checkov
d0d3a8faede28fbf2d180be4410c32e71c08d500
[ "Apache-2.0" ]
null
null
null
version = '2.0.572'
10
19
0.6
4
20
3
1
0
0
0
0
0
0
0
0
0
0
0.294118
0.15
20
1
20
20
0.411765
0
0
0
0
0
0.35
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ddeabcbc045713e012a00d3d953c863b47ae2d80
8,115
py
Python
rom.py
varkenvarken/fpga-experiments
ed56b1f5efbf7a7f4060a3429cbcc8c96a9a7058
[ "Apache-2.0" ]
2
2019-12-17T19:45:40.000Z
2021-04-29T19:30:48.000Z
rom.py
varkenvarken/fpga-experiments
ed56b1f5efbf7a7f4060a3429cbcc8c96a9a7058
[ "Apache-2.0" ]
null
null
null
rom.py
varkenvarken/fpga-experiments
ed56b1f5efbf7a7f4060a3429cbcc8c96a9a7058
[ "Apache-2.0" ]
null
null
null
template = """ module rom32x4 ( input [4:0] addr, input clk, output [4:0] data); wire [7:0] rdata; wire [15:0] RDATA; wire RCLK; wire [10:0] RADDR; SB_RAM40_4KNR #( // negative edge readclock so we can apply and addres on the positive edge and guarantee data is available on the next posedge .WRITE_MODE(1), .READ_MODE(1), .INIT_0(256'h{init[0][0]:04x}{init[0][1]:04x}{init[0][2]:04x}{init[0][3]:04x}{init[0][4]:04x}{init[0][5]:04x}{init[0][6]:04x}{init[0][7]:04x}{init[0][8]:04x}{init[0][9]:04x}{init[0][10]:04x}{init[0][11]:04x}{init[0][12]:04x}{init[0][13]:04x}{init[0][14]:04x}{init[0][15]:04x}), .INIT_1(256'h{init[1][0]:04x}{init[1][1]:04x}{init[1][2]:04x}{init[1][3]:04x}{init[1][4]:04x}{init[1][5]:04x}{init[1][6]:04x}{init[1][7]:04x}{init[1][8]:04x}{init[1][9]:04x}{init[1][10]:04x}{init[1][11]:04x}{init[1][12]:04x}{init[1][13]:04x}{init[1][14]:04x}{init[1][15]:04x}), .INIT_2(256'h{init[2][0]:04x}{init[2][1]:04x}{init[2][2]:04x}{init[2][3]:04x}{init[2][4]:04x}{init[2][5]:04x}{init[2][6]:04x}{init[2][7]:04x}{init[2][8]:04x}{init[2][9]:04x}{init[2][10]:04x}{init[2][11]:04x}{init[2][12]:04x}{init[2][13]:04x}{init[2][14]:04x}{init[2][15]:04x}), .INIT_3(256'h{init[3][0]:04x}{init[3][1]:04x}{init[3][2]:04x}{init[3][3]:04x}{init[3][4]:04x}{init[3][5]:04x}{init[3][6]:04x}{init[3][7]:04x}{init[3][8]:04x}{init[3][9]:04x}{init[3][10]:04x}{init[3][11]:04x}{init[3][12]:04x}{init[3][13]:04x}{init[3][14]:04x}{init[3][15]:04x}), .INIT_4(256'h{init[4][0]:04x}{init[4][1]:04x}{init[4][2]:04x}{init[4][3]:04x}{init[4][4]:04x}{init[4][5]:04x}{init[4][6]:04x}{init[4][7]:04x}{init[4][8]:04x}{init[4][9]:04x}{init[4][10]:04x}{init[4][11]:04x}{init[4][12]:04x}{init[4][13]:04x}{init[4][14]:04x}{init[4][15]:04x}), .INIT_5(256'h{init[5][0]:04x}{init[5][1]:04x}{init[5][2]:04x}{init[5][3]:04x}{init[5][4]:04x}{init[5][5]:04x}{init[5][6]:04x}{init[5][7]:04x}{init[5][8]:04x}{init[5][9]:04x}{init[5][10]:04x}{init[5][11]:04x}{init[5][12]:04x}{init[5][13]:04x}{init[5][14]:04x}{init[5][15]:04x}), .INIT_6(256'h{init[6][0]:04x}{init[6][1]:04x}{init[6][2]:04x}{init[6][3]:04x}{init[6][4]:04x}{init[6][5]:04x}{init[6][6]:04x}{init[6][7]:04x}{init[6][8]:04x}{init[6][9]:04x}{init[6][10]:04x}{init[6][11]:04x}{init[6][12]:04x}{init[6][13]:04x}{init[6][14]:04x}{init[6][15]:04x}), .INIT_7(256'h{init[7][0]:04x}{init[7][1]:04x}{init[7][2]:04x}{init[7][3]:04x}{init[7][4]:04x}{init[7][5]:04x}{init[7][6]:04x}{init[7][7]:04x}{init[7][8]:04x}{init[7][9]:04x}{init[7][10]:04x}{init[7][11]:04x}{init[7][12]:04x}{init[7][13]:04x}{init[7][14]:04x}{init[7][15]:04x}), .INIT_8(256'h{init[8][0]:04x}{init[8][1]:04x}{init[8][2]:04x}{init[8][3]:04x}{init[8][4]:04x}{init[8][5]:04x}{init[8][6]:04x}{init[8][7]:04x}{init[8][8]:04x}{init[8][9]:04x}{init[8][10]:04x}{init[8][11]:04x}{init[8][12]:04x}{init[8][13]:04x}{init[8][14]:04x}{init[8][15]:04x}), .INIT_9(256'h{init[9][0]:04x}{init[9][1]:04x}{init[9][2]:04x}{init[9][3]:04x}{init[9][4]:04x}{init[9][5]:04x}{init[9][6]:04x}{init[9][7]:04x}{init[9][8]:04x}{init[9][9]:04x}{init[9][10]:04x}{init[9][11]:04x}{init[9][12]:04x}{init[9][13]:04x}{init[9][14]:04x}{init[9][15]:04x}), .INIT_A(256'h{init[10][0]:04x}{init[10][1]:04x}{init[10][2]:04x}{init[10][3]:04x}{init[10][4]:04x}{init[10][5]:04x}{init[10][6]:04x}{init[10][7]:04x}{init[10][8]:04x}{init[10][9]:04x}{init[10][10]:04x}{init[10][11]:04x}{init[10][12]:04x}{init[10][13]:04x}{init[10][14]:04x}{init[10][15]:04x}), .INIT_B(256'h{init[11][0]:04x}{init[11][1]:04x}{init[11][2]:04x}{init[11][3]:04x}{init[11][4]:04x}{init[11][5]:04x}{init[11][6]:04x}{init[11][7]:04x}{init[11][8]:04x}{init[11][9]:04x}{init[11][10]:04x}{init[11][11]:04x}{init[11][12]:04x}{init[11][13]:04x}{init[11][14]:04x}{init[11][15]:04x}), .INIT_C(256'h{init[12][0]:04x}{init[12][1]:04x}{init[12][2]:04x}{init[12][3]:04x}{init[12][4]:04x}{init[12][5]:04x}{init[12][6]:04x}{init[12][7]:04x}{init[12][8]:04x}{init[12][9]:04x}{init[12][10]:04x}{init[12][11]:04x}{init[12][12]:04x}{init[12][13]:04x}{init[12][14]:04x}{init[12][15]:04x}), .INIT_D(256'h{init[13][0]:04x}{init[13][1]:04x}{init[13][2]:04x}{init[13][3]:04x}{init[13][4]:04x}{init[13][5]:04x}{init[13][6]:04x}{init[13][7]:04x}{init[13][8]:04x}{init[13][9]:04x}{init[13][10]:04x}{init[13][11]:04x}{init[13][12]:04x}{init[13][13]:04x}{init[13][14]:04x}{init[13][15]:04x}), .INIT_E(256'h{init[14][0]:04x}{init[14][1]:04x}{init[14][2]:04x}{init[14][3]:04x}{init[14][4]:04x}{init[14][5]:04x}{init[14][6]:04x}{init[14][7]:04x}{init[14][8]:04x}{init[14][9]:04x}{init[14][10]:04x}{init[14][11]:04x}{init[14][12]:04x}{init[14][13]:04x}{init[14][14]:04x}{init[14][15]:04x}), .INIT_F(256'h{init[15][0]:04x}{init[15][1]:04x}{init[15][2]:04x}{init[15][3]:04x}{init[15][4]:04x}{init[15][5]:04x}{init[15][6]:04x}{init[15][7]:04x}{init[15][8]:04x}{init[15][9]:04x}{init[15][10]:04x}{init[15][11]:04x}{init[15][12]:04x}{init[15][13]:04x}{init[15][14]:04x}{init[15][15]:04x}) ) rom( .RDATA(RDATA), .RCLKN(RCLK), // negative edge readclock has an N appended .RCLKE(1), .RE(1), .RADDR(RADDR), .WCLK(0), .WCLKE(0), .WE(0), .WADDR(11'hxxxx), .MASK(16'hxxxx), .WDATA(8'hxx) ); assign rdata = {{RDATA[14],RDATA[12],RDATA[10],RDATA[8],RDATA[6],RDATA[4],RDATA[2],RDATA[0]}}; assign data = rdata[4:0]; assign RADDR = {{6'b0, addr}}; assign RCLK = clk; endmodule """ # https://github.com/jamesbowman/swapforth/blob/master/j1a/mkrom.py # https://stackoverflow.com/questions/41499494/how-can-i-use-ice40-4k-block-ram-in-512x8-read-mode-with-icestorm def fanbits(byt): f = 0 for i in range(8): if byt & (1 << i): f += 1 << i*2+1 return f def genrom(data): init = a=[[0] * 16 for i in range(16)] for i,d in enumerate(data): row = (i % 256) // 16 col = 15 - i % 16 bits= fanbits(d) bits= (bits >> 1) if i < 256 else bits init[row][col] |= bits return template.format(init = init) START = 0; # next is START unless overruled FETCH = 1; # next state is always WAIT DECODE = 2; # next is FETCH unless overruled OPLOAD = 3; # next state is always DECODE ECHO = 4; # next state is always ECHO1 ECHO1 = 5; # next is ECHO1 unless overruled WAIT = 6; # next state is always OPLOAD WAIT2 = 7; # next state is always OPLOAD2 OPLOAD2 = 8; # next state is always DECODE2 DECODE2 = 9; # next is FETCH unless overruled WAIT3 = 10; # next state is always MEMLOAD MEMLOAD = 11; # next state is always FETCH READ = 12; # next is READ unless overruled STACKPUSH = 13; # next state is always STACKPUSH2 STACKPUSH2= 14; # next state is always FETCH CALL1 = 15; # next state is always CALL2 CALL2 = 16; # next state is always CALL3 CALL3 = 17; # next state is always CALL4 CALL4 = 18; # next state is always CALL5 CALL5 = 19; # next state is always FETCH RETURN1 = 20; # next state is always RETURN2 RETURN2 = 21; # next state is always RETURN3 RETURN3 = 22; # next state is always RETURN4 RETURN4 = 23; # next state is always RETURN5 RETURN5 = 24; # next state is always FETCH STIDPWAIT = 25; # next state is always STIDPWAIT1 WAITBASER = 26; # next state is always WAITBASER1 WAITBASER1= 27; # next state is always FETCH STIDPWAIT1= 31; # next state is always FETCH data = { START :START, FETCH :WAIT, DECODE :FETCH, OPLOAD :DECODE, ECHO :ECHO1, ECHO1 :ECHO1, WAIT :OPLOAD, WAIT2 :OPLOAD2, OPLOAD2 :DECODE2, DECODE2 :FETCH, WAIT3 :MEMLOAD, MEMLOAD :FETCH, READ :READ, STACKPUSH :STACKPUSH2, STACKPUSH2:FETCH, CALL1 :CALL2, CALL2 :CALL3, CALL3 :CALL4, CALL4 :CALL5, CALL5 :FETCH, RETURN1 :RETURN2, RETURN2 :RETURN3, RETURN3 :RETURN4, RETURN4 :RETURN5, RETURN5 :FETCH, STIDPWAIT :STIDPWAIT1, WAITBASER :WAITBASER1, WAITBASER1:FETCH, STIDPWAIT1:FETCH, } data = [data[k] for k in sorted(data)] nbytes = len(data) data = data + [0] * (512 - nbytes) print(genrom(data))
55.965517
297
0.594455
1,588
8,115
3.025189
0.105793
0.371565
0.054954
0.084929
0.038301
0
0
0
0
0
0
0.208028
0.125077
8,115
144
298
56.354167
0.468592
0.124214
0
0
0
0.142857
0.755725
0.651117
0
0
0
0
0
1
0.015873
false
0
0
0
0.031746
0.007937
0
0
0
null
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
fb31c646f393293785bed967ff3f69db578ffd3a
78
py
Python
python/catkin/package_version.py
dseifert/catkin
f972729b3f99479e0844e304b575b6f2a96c5779
[ "BSD-3-Clause" ]
250
2015-01-02T09:29:09.000Z
2022-03-28T08:48:28.000Z
python/catkin/package_version.py
dseifert/catkin
f972729b3f99479e0844e304b575b6f2a96c5779
[ "BSD-3-Clause" ]
456
2015-01-01T00:42:47.000Z
2022-03-22T13:36:33.000Z
python/catkin/package_version.py
dseifert/catkin
f972729b3f99479e0844e304b575b6f2a96c5779
[ "BSD-3-Clause" ]
261
2015-01-10T14:07:49.000Z
2022-03-26T13:29:58.000Z
# for backward compatibility from catkin_pkg.package_version import * # noqa
26
48
0.807692
10
78
6.1
1
0
0
0
0
0
0
0
0
0
0
0
0.141026
78
2
49
39
0.910448
0.397436
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3493341d2fd8731f0098d23cd0381bf490e14c67
246
py
Python
store_item_models/class_projects/item_stock_management.py
reimibeta/django-store-item-models
0be5fad0df0b3ebc7283fc6369f0e769a4743987
[ "Apache-2.0" ]
null
null
null
store_item_models/class_projects/item_stock_management.py
reimibeta/django-store-item-models
0be5fad0df0b3ebc7283fc6369f0e769a4743987
[ "Apache-2.0" ]
null
null
null
store_item_models/class_projects/item_stock_management.py
reimibeta/django-store-item-models
0be5fad0df0b3ebc7283fc6369f0e769a4743987
[ "Apache-2.0" ]
null
null
null
""" item supply by purchase """ from store_item_models.class_projects.item_stocks.item_stock_supply import item_stock_supply """ item outlet by use """ from store_item_models.class_projects.item_stocks.item_stock_outlet import item_stock_outlet
41
92
0.841463
38
246
5.026316
0.368421
0.188482
0.136126
0.198953
0.534031
0.534031
0.534031
0.534031
0.534031
0.534031
0
0
0.085366
246
5
93
49.2
0.848889
0.093496
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
34ccf5b51e36526f5d570dafaf3f77fc00d6a00c
121
py
Python
accepted/chennaipy/october/samplecode/basicpackage/foo.py
tasdikrahman/talks
bba44283e149ab27fb8cc2f6f8644adf9f2c8a11
[ "MIT" ]
1
2017-04-16T06:59:02.000Z
2017-04-16T06:59:02.000Z
accepted/chennaipy/october/samplecode/basicpackage/foo.py
prodicus/talks
bba44283e149ab27fb8cc2f6f8644adf9f2c8a11
[ "MIT" ]
null
null
null
accepted/chennaipy/october/samplecode/basicpackage/foo.py
prodicus/talks
bba44283e149ab27fb8cc2f6f8644adf9f2c8a11
[ "MIT" ]
1
2019-10-26T00:28:07.000Z
2019-10-26T00:28:07.000Z
# basicpackage/foo.py a = 10 class Foo(object): pass print("inside 'basicpackage/foo.py' with a variable in it")
12.1
59
0.68595
19
121
4.368421
0.736842
0.361446
0.409639
0
0
0
0
0
0
0
0
0.020408
0.190083
121
9
60
13.444444
0.826531
0.157025
0
0
0
0
0.505051
0.212121
0
0
0
0
0
1
0
false
0.25
0
0
0.25
0.25
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
5
34df194b3cd32ee1dbd7af3de41cde655858cbaf
67
py
Python
server/api/__init__.py
dtwest/Porthole
743757bb13c21d69dab5ec7dccd6736b01c4fbc4
[ "MIT" ]
1
2021-07-08T03:05:23.000Z
2021-07-08T03:05:23.000Z
server/api/__init__.py
dtwest/Porthole
743757bb13c21d69dab5ec7dccd6736b01c4fbc4
[ "MIT" ]
null
null
null
server/api/__init__.py
dtwest/Porthole
743757bb13c21d69dab5ec7dccd6736b01c4fbc4
[ "MIT" ]
null
null
null
from server.api.scan import ScanApi, ScanListApi, ScanByAddressApi
33.5
66
0.850746
8
67
7.125
1
0
0
0
0
0
0
0
0
0
0
0
0.089552
67
1
67
67
0.934426
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
550c45d8365eafbd81a04722f92634de8c47a20b
80
py
Python
scrapy/lesson01/lesson01/middlewares/__init__.py
IBBD/python-share-docs
a62bab50a75bf242d48078b348433c63965cc6be
[ "MIT" ]
null
null
null
scrapy/lesson01/lesson01/middlewares/__init__.py
IBBD/python-share-docs
a62bab50a75bf242d48078b348433c63965cc6be
[ "MIT" ]
null
null
null
scrapy/lesson01/lesson01/middlewares/__init__.py
IBBD/python-share-docs
a62bab50a75bf242d48078b348433c63965cc6be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Author: # Created Time: 2017年04月27日 星期四 23时36分28秒
11.428571
41
0.625
9
80
5.555556
1
0
0
0
0
0
0
0
0
0
0
0.234375
0.2
80
6
42
13.333333
0.546875
0.8625
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9b7ba9e3ee1afc5cfe9260fa13d14439cc9ab6b6
127
py
Python
exporters/setup.py
caiomedeirospinto/pelorus
2cd21f11cb36b1d1cd34add6c7d23c13079d803c
[ "Apache-2.0" ]
71
2019-11-27T19:36:42.000Z
2021-02-09T22:22:58.000Z
exporters/setup.py
caiomedeirospinto/pelorus
2cd21f11cb36b1d1cd34add6c7d23c13079d803c
[ "Apache-2.0" ]
176
2019-11-27T18:46:20.000Z
2021-02-15T14:39:21.000Z
exporters/setup.py
caiomedeirospinto/pelorus
2cd21f11cb36b1d1cd34add6c7d23c13079d803c
[ "Apache-2.0" ]
43
2019-12-11T20:43:58.000Z
2021-02-14T18:50:00.000Z
from setuptools import find_packages, setup setup(name="pelorus", packages=find_packages(where="."), python_requires=">=3.9")
31.75
81
0.76378
17
127
5.529412
0.764706
0.255319
0
0
0
0
0
0
0
0
0
0.016949
0.070866
127
3
82
42.333333
0.779661
0
0
0
0
0
0.102362
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9b8687f00fccdd631dcf2fe53d3dddf64188164e
165
py
Python
pyclinrec/recognizer/similarity/__init__.py
twktheainur/pyclinrec
40592dca54413fb438ec4916e1a247f6a5a7f964
[ "Apache-2.0" ]
null
null
null
pyclinrec/recognizer/similarity/__init__.py
twktheainur/pyclinrec
40592dca54413fb438ec4916e1a247f6a5a7f964
[ "Apache-2.0" ]
null
null
null
pyclinrec/recognizer/similarity/__init__.py
twktheainur/pyclinrec
40592dca54413fb438ec4916e1a247f6a5a7f964
[ "Apache-2.0" ]
null
null
null
from .similarity import jaccard, jaccard_count, tverski_contrast, tverski_ratio, compute_hard_overlap, \ geometric_mean_aggregation, arithmetic_mean_aggregation
55
104
0.860606
19
165
7
0.789474
0.225564
0
0
0
0
0
0
0
0
0
0
0.090909
165
2
105
82.5
0.886667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9bb56d83fdf3efa0d07af250a038f74ef4629d8d
72
py
Python
magi/__init__.py
akbir/magi
cff26ddb87165bb6e19796dc77521e3191afcffc
[ "Apache-2.0" ]
86
2021-11-24T21:53:29.000Z
2022-03-27T13:35:45.000Z
magi/__init__.py
akbir/magi
cff26ddb87165bb6e19796dc77521e3191afcffc
[ "Apache-2.0" ]
7
2021-11-26T17:23:29.000Z
2022-03-07T21:49:44.000Z
magi/__init__.py
akbir/magi
cff26ddb87165bb6e19796dc77521e3191afcffc
[ "Apache-2.0" ]
3
2021-11-27T11:13:18.000Z
2022-01-24T14:38:53.000Z
"""Magi is a JAX RL library.""" from magi._metadata import __version__
18
38
0.736111
11
72
4.363636
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.152778
72
3
39
24
0.786885
0.347222
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
32d4f87f9921ba3d961c2caa92ba9c0533a3bf2e
58
py
Python
AprendaPython/Sets/ex001.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
AprendaPython/Sets/ex001.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
AprendaPython/Sets/ex001.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
lista = [1, 2, 3, 33, 4, 4, 11, 22, 3] print(set(lista))
14.5
38
0.517241
13
58
2.307692
0.769231
0
0
0
0
0
0
0
0
0
0
0.266667
0.224138
58
3
39
19.333333
0.4
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
32e2f2d3343c1d45534ce0d4fb208c63ebd071fd
23,898
py
Python
python/pyxbos/pyxbos/flexstat_pb2.py
anandkp92/xboswave
f7d8a72cde048a21422f9d0838374b83b1b6a256
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/flexstat_pb2.py
anandkp92/xboswave
f7d8a72cde048a21422f9d0838374b83b1b6a256
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/flexstat_pb2.py
anandkp92/xboswave
f7d8a72cde048a21422f9d0838374b83b1b6a256
[ "BSD-3-Clause" ]
3
2019-02-05T23:01:09.000Z
2019-03-25T22:22:10.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: flexstat.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from . import nullabletypes_pb2 as nullabletypes__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='flexstat.proto', package='xbospb', syntax='proto3', serialized_options=None, serialized_pb=_b('\n\x0e\x66lexstat.proto\x12\x06xbospb\x1a\x13nullabletypes.proto\"V\n\x18\x46lexstatActuationMessage\x12\x0c\n\x04time\x18\x01 \x01(\x04\x12,\n\tsetpoints\x18\x02 \x03(\x0b\x32\x19.xbospb.FlexstatSetpoints\"|\n\x11\x46lexstatSetpoints\x12\x13\n\x0b\x63hange_time\x18\x01 \x01(\x04\x12(\n\x10heating_setpoint\x18\x02 \x01(\x0b\x32\x0e.xbospb.Double\x12(\n\x10\x63ooling_setpoint\x18\x03 \x01(\x0b\x32\x0e.xbospb.Double\"\xd5\n\n\rFlexstatState\x12)\n\x11space_temp_sensor\x18\x01 \x01(\x0b\x32\x0e.xbospb.Double\x12,\n\x14minimum_proportional\x18\x02 \x01(\x0b\x32\x0e.xbospb.Double\x12,\n\x14\x61\x63tive_cooling_setpt\x18\x03 \x01(\x0b\x32\x0e.xbospb.Double\x12,\n\x14\x61\x63tive_heating_setpt\x18\x04 \x01(\x0b\x32\x0e.xbospb.Double\x12+\n\x13unocc_cooling_setpt\x18\x05 \x01(\x0b\x32\x0e.xbospb.Double\x12+\n\x13unocc_heating_setpt\x18\x06 \x01(\x0b\x32\x0e.xbospb.Double\x12)\n\x11occ_min_clg_setpt\x18\x07 \x01(\x0b\x32\x0e.xbospb.Double\x12)\n\x11occ_max_htg_setpt\x18\x08 \x01(\x0b\x32\x0e.xbospb.Double\x12&\n\x0eoverride_timer\x18\t \x01(\x0b\x32\x0e.xbospb.Double\x12)\n\x11occ_cooling_setpt\x18\n \x01(\x0b\x32\x0e.xbospb.Double\x12)\n\x11occ_heating_setpt\x18\x0b \x01(\x0b\x32\x0e.xbospb.Double\x12*\n\x12\x63urrent_mode_setpt\x18\x0c \x01(\x0b\x32\x0e.xbospb.Double\x12 \n\x08ui_setpt\x18\r \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0c\x63ooling_need\x18\x0e \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0cheating_need\x18\x0f \x01(\x0b\x32\x0e.xbospb.Double\x12+\n\x13unocc_min_clg_setpt\x18\x10 \x01(\x0b\x32\x0e.xbospb.Double\x12+\n\x13unocc_max_htg_setpt\x18\x11 \x01(\x0b\x32\x0e.xbospb.Double\x12&\n\x0emin_setpt_diff\x18\x12 \x01(\x0b\x32\x0e.xbospb.Double\x12\'\n\x0fmin_setpt_limit\x18\x13 \x01(\x0b\x32\x0e.xbospb.Double\x12\"\n\nspace_temp\x18\x14 \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0c\x63ooling_prop\x18\x15 \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0cheating_prop\x18\x16 \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0c\x63ooling_intg\x18\x17 \x01(\x0b\x32\x0e.xbospb.Double\x12$\n\x0cheating_intg\x18\x18 \x01(\x0b\x32\x0e.xbospb.Double\x12\x1a\n\x03\x66\x61n\x18\x19 \x01(\x0b\x32\r.xbospb.Int64\x12%\n\x0eoccupancy_mode\x18\x1a \x01(\x0b\x32\r.xbospb.Int64\x12*\n\x13setpt_override_mode\x18\x1b \x01(\x0b\x32\r.xbospb.Int64\x12 \n\tfan_alarm\x18\x1c \x01(\x0b\x32\r.xbospb.Int64\x12\x1f\n\x08\x66\x61n_need\x18\x1d \x01(\x0b\x32\r.xbospb.Int64\x12+\n\x14heating_cooling_mode\x18\x1e \x01(\x0b\x32\r.xbospb.Int64\x12&\n\x0focc_fan_auto_on\x18\x1f \x01(\x0b\x32\r.xbospb.Int64\x12(\n\x11unocc_fan_auto_on\x18 \x01(\x0b\x32\r.xbospb.Int64\x12!\n\nfan_status\x18! \x01(\x0b\x32\r.xbospb.Int64\x12\x0c\n\x04time\x18\" \x01(\x04\x62\x06proto3') , dependencies=[nullabletypes__pb2.DESCRIPTOR,]) _FLEXSTATACTUATIONMESSAGE = _descriptor.Descriptor( name='FlexstatActuationMessage', full_name='xbospb.FlexstatActuationMessage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='time', full_name='xbospb.FlexstatActuationMessage.time', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='setpoints', full_name='xbospb.FlexstatActuationMessage.setpoints', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=47, serialized_end=133, ) _FLEXSTATSETPOINTS = _descriptor.Descriptor( name='FlexstatSetpoints', full_name='xbospb.FlexstatSetpoints', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='change_time', full_name='xbospb.FlexstatSetpoints.change_time', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heating_setpoint', full_name='xbospb.FlexstatSetpoints.heating_setpoint', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='cooling_setpoint', full_name='xbospb.FlexstatSetpoints.cooling_setpoint', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=135, serialized_end=259, ) _FLEXSTATSTATE = _descriptor.Descriptor( name='FlexstatState', full_name='xbospb.FlexstatState', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='space_temp_sensor', full_name='xbospb.FlexstatState.space_temp_sensor', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='minimum_proportional', full_name='xbospb.FlexstatState.minimum_proportional', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='active_cooling_setpt', full_name='xbospb.FlexstatState.active_cooling_setpt', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='active_heating_setpt', full_name='xbospb.FlexstatState.active_heating_setpt', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='unocc_cooling_setpt', full_name='xbospb.FlexstatState.unocc_cooling_setpt', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='unocc_heating_setpt', full_name='xbospb.FlexstatState.unocc_heating_setpt', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occ_min_clg_setpt', full_name='xbospb.FlexstatState.occ_min_clg_setpt', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occ_max_htg_setpt', full_name='xbospb.FlexstatState.occ_max_htg_setpt', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='override_timer', full_name='xbospb.FlexstatState.override_timer', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occ_cooling_setpt', full_name='xbospb.FlexstatState.occ_cooling_setpt', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occ_heating_setpt', full_name='xbospb.FlexstatState.occ_heating_setpt', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='current_mode_setpt', full_name='xbospb.FlexstatState.current_mode_setpt', index=11, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ui_setpt', full_name='xbospb.FlexstatState.ui_setpt', index=12, number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='cooling_need', full_name='xbospb.FlexstatState.cooling_need', index=13, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heating_need', full_name='xbospb.FlexstatState.heating_need', index=14, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='unocc_min_clg_setpt', full_name='xbospb.FlexstatState.unocc_min_clg_setpt', index=15, number=16, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='unocc_max_htg_setpt', full_name='xbospb.FlexstatState.unocc_max_htg_setpt', index=16, number=17, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='min_setpt_diff', full_name='xbospb.FlexstatState.min_setpt_diff', index=17, number=18, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='min_setpt_limit', full_name='xbospb.FlexstatState.min_setpt_limit', index=18, number=19, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='space_temp', full_name='xbospb.FlexstatState.space_temp', index=19, number=20, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='cooling_prop', full_name='xbospb.FlexstatState.cooling_prop', index=20, number=21, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heating_prop', full_name='xbospb.FlexstatState.heating_prop', index=21, number=22, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='cooling_intg', full_name='xbospb.FlexstatState.cooling_intg', index=22, number=23, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heating_intg', full_name='xbospb.FlexstatState.heating_intg', index=23, number=24, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='fan', full_name='xbospb.FlexstatState.fan', index=24, number=25, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occupancy_mode', full_name='xbospb.FlexstatState.occupancy_mode', index=25, number=26, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='setpt_override_mode', full_name='xbospb.FlexstatState.setpt_override_mode', index=26, number=27, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='fan_alarm', full_name='xbospb.FlexstatState.fan_alarm', index=27, number=28, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='fan_need', full_name='xbospb.FlexstatState.fan_need', index=28, number=29, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='heating_cooling_mode', full_name='xbospb.FlexstatState.heating_cooling_mode', index=29, number=30, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='occ_fan_auto_on', full_name='xbospb.FlexstatState.occ_fan_auto_on', index=30, number=31, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='unocc_fan_auto_on', full_name='xbospb.FlexstatState.unocc_fan_auto_on', index=31, number=32, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='fan_status', full_name='xbospb.FlexstatState.fan_status', index=32, number=33, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='time', full_name='xbospb.FlexstatState.time', index=33, number=34, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=262, serialized_end=1627, ) _FLEXSTATACTUATIONMESSAGE.fields_by_name['setpoints'].message_type = _FLEXSTATSETPOINTS _FLEXSTATSETPOINTS.fields_by_name['heating_setpoint'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSETPOINTS.fields_by_name['cooling_setpoint'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['space_temp_sensor'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['minimum_proportional'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['active_cooling_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['active_heating_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['unocc_cooling_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['unocc_heating_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['occ_min_clg_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['occ_max_htg_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['override_timer'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['occ_cooling_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['occ_heating_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['current_mode_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['ui_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['cooling_need'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['heating_need'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['unocc_min_clg_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['unocc_max_htg_setpt'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['min_setpt_diff'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['min_setpt_limit'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['space_temp'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['cooling_prop'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['heating_prop'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['cooling_intg'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['heating_intg'].message_type = nullabletypes__pb2._DOUBLE _FLEXSTATSTATE.fields_by_name['fan'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['occupancy_mode'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['setpt_override_mode'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['fan_alarm'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['fan_need'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['heating_cooling_mode'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['occ_fan_auto_on'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['unocc_fan_auto_on'].message_type = nullabletypes__pb2._INT64 _FLEXSTATSTATE.fields_by_name['fan_status'].message_type = nullabletypes__pb2._INT64 DESCRIPTOR.message_types_by_name['FlexstatActuationMessage'] = _FLEXSTATACTUATIONMESSAGE DESCRIPTOR.message_types_by_name['FlexstatSetpoints'] = _FLEXSTATSETPOINTS DESCRIPTOR.message_types_by_name['FlexstatState'] = _FLEXSTATSTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) FlexstatActuationMessage = _reflection.GeneratedProtocolMessageType('FlexstatActuationMessage', (_message.Message,), dict( DESCRIPTOR = _FLEXSTATACTUATIONMESSAGE, __module__ = 'flexstat_pb2' # @@protoc_insertion_point(class_scope:xbospb.FlexstatActuationMessage) )) _sym_db.RegisterMessage(FlexstatActuationMessage) FlexstatSetpoints = _reflection.GeneratedProtocolMessageType('FlexstatSetpoints', (_message.Message,), dict( DESCRIPTOR = _FLEXSTATSETPOINTS, __module__ = 'flexstat_pb2' # @@protoc_insertion_point(class_scope:xbospb.FlexstatSetpoints) )) _sym_db.RegisterMessage(FlexstatSetpoints) FlexstatState = _reflection.GeneratedProtocolMessageType('FlexstatState', (_message.Message,), dict( DESCRIPTOR = _FLEXSTATSTATE, __module__ = 'flexstat_pb2' # @@protoc_insertion_point(class_scope:xbospb.FlexstatState) )) _sym_db.RegisterMessage(FlexstatState) # @@protoc_insertion_point(module_scope)
54.561644
2,681
0.769144
3,192
23,898
5.424812
0.073308
0.05544
0.052148
0.045045
0.784304
0.739778
0.707207
0.689247
0.66401
0.622141
0
0.045816
0.114989
23,898
437
2,682
54.686499
0.772908
0.014395
0
0.62439
1
0.004878
0.227809
0.171282
0
0
0
0
0
1
0
false
0
0.014634
0
0.014634
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
32fbc8d1f24e92b249e6039b11e7540d45b7604b
132
py
Python
src/waldur_auth_valimo/urls.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_auth_valimo/urls.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_auth_valimo/urls.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
from . import views def register_in(router): router.register(r'auth-valimo', views.AuthResultViewSet, basename='auth-valimo')
22
84
0.757576
17
132
5.823529
0.705882
0.20202
0
0
0
0
0
0
0
0
0
0
0.113636
132
5
85
26.4
0.846154
0
0
0
0
0
0.166667
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
5
fd3dd70c856c3d10d492512cc831f782e73d3254
35
py
Python
ceefax/fonts/size4bold/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2020-03-28T15:53:22.000Z
2020-03-28T15:53:22.000Z
ceefax/fonts/size4bold/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
1
2021-02-05T13:43:52.000Z
2021-02-05T13:43:52.000Z
ceefax/fonts/size4bold/__init__.py
mscroggs/CEEFAX
8e7a075de1809064b77360da24ebbbaa409c3bf2
[ "MIT" ]
null
null
null
from .default import size4boldfont
17.5
34
0.857143
4
35
7.5
1
0
0
0
0
0
0
0
0
0
0
0.032258
0.114286
35
1
35
35
0.935484
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
fd44e778695f79716b693c8aa71fa9e6f745cbbb
149
py
Python
applications/__init__.py
Joxis/AdaptiveReID
34852a61ffe1ab7b94d8187c86bac37c7a0f0eb1
[ "MIT" ]
44
2020-07-17T01:32:56.000Z
2020-10-14T03:24:51.000Z
applications/__init__.py
Joxis/AdaptiveReID
34852a61ffe1ab7b94d8187c86bac37c7a0f0eb1
[ "MIT" ]
15
2020-10-27T11:41:49.000Z
2021-09-23T19:43:22.000Z
applications/__init__.py
Joxis/AdaptiveReID
34852a61ffe1ab7b94d8187c86bac37c7a0f0eb1
[ "MIT" ]
13
2020-07-22T00:06:43.000Z
2020-10-14T04:11:50.000Z
from .resnet_common import (ResNet50, ResNet50V2, ResNet101, ResNet101V2, ResNet152, ResNet152V2, ResNeXt50, ResNeXt101)
49.666667
74
0.671141
12
149
8.25
1
0
0
0
0
0
0
0
0
0
0
0.218182
0.261745
149
2
75
74.5
0.681818
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
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
1
0
1
0
0
0
0
5
fd4c7df62d45613925f8ac18885978e63b4497a6
9,647
py
Python
tests/integration/test_oai.py
axfelix/viringo
44b3035a374c7c53b8077f6061402d9fdf595450
[ "MIT" ]
null
null
null
tests/integration/test_oai.py
axfelix/viringo
44b3035a374c7c53b8077f6061402d9fdf595450
[ "MIT" ]
63
2019-07-31T09:03:56.000Z
2022-02-03T11:23:22.000Z
tests/integration/test_oai.py
axfelix/viringo
44b3035a374c7c53b8077f6061402d9fdf595450
[ "MIT" ]
1
2020-06-19T16:35:52.000Z
2020-06-19T16:35:52.000Z
"""Tests for http endpoints of OAI-PMH verbs""" import datetime from lxml import etree from . import factories def construct_oai_xml_comparisons(fixture_file_path, target_xml, oai_element): """Return element xml strings for comparison based on fixture file and a target xml string""" # Load metadata from our file and the response # Pick out just the main chunk for comparison, header is different. fixture_et = etree.parse(fixture_file_path) metadata_a = fixture_et.getroot().find("./{http://www.openarchives.org/OAI/2.0/}" + oai_element) response_et = etree.fromstring(target_xml) metadata_b = response_et.find("./{http://www.openarchives.org/OAI/2.0/}" + oai_element) original = '' target = '' if metadata_a is not None: original = etree.tostring(metadata_a, encoding='unicode', pretty_print=True) if metadata_b is not None: target = etree.tostring(metadata_b, encoding='unicode', pretty_print=True) return original, target def test_identify(client): """Test the identify verb responds and conforms as expected""" response = client.get('/oai') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_identify.xml', response.get_data(), "Identify" ) # Compare the main part of the request against test case assert original == target def test_get_record_dc(client, mocker): """Test the getRecord verb responds and conforms as expected in dc format""" # Mock the datacite service to ensure the same record data is returned. mocked_get_metadata = mocker.patch('viringo.services.datacite.get_metadata') # Get fake result result = factories.MetadataFactory() # Set the mocked service to use the fake result mocked_get_metadata.return_value = result response = client.get( '/oai?verb=GetRecord&metadataPrefix=oai_dc&identifier=doi:10.5072/not-a-real-doi' ) assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_getrecord_dc.xml', response.get_data(), "GetRecord" ) # Compare the main part of the request against test case assert original == target def test_get_record_oai_datacite(client, mocker): """Test the getRecord verb responds and conforms as expected in oai_datacite format""" # Mock the datacite service to ensure the same record data is returned. mocked_get_metadata = mocker.patch('viringo.services.datacite.get_metadata') # Get fake result result = factories.MetadataFactory() # Set the mocked service to use the fake result mocked_get_metadata.return_value = result response = client.get( '/oai?verb=GetRecord&metadataPrefix=oai_datacite&identifier=doi:10.5072/not-a-real-doi' ) assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_getrecord_oaidatacite.xml', response.get_data(), "GetRecord" ) # Compare the main part of the request against test case assert original == target def test_get_record_datacite(client, mocker): """Test the getRecord verb responds and conforms as expected in datacite format""" # Mock the datacite service to ensure the same record data is returned. mocked_get_metadata = mocker.patch('viringo.services.datacite.get_metadata') # Get fake result result = factories.MetadataFactory() # Set the mocked service to use the fake result mocked_get_metadata.return_value = result response = client.get( '/oai?verb=GetRecord&metadataPrefix=datacite&identifier=doi:10.5072/not-a-real-doi' ) assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_getrecord_datacite.xml', response.get_data(), "GetRecord" ) # Compare the main part of the request against test case assert original == target def test_list_records_dc(client, mocker): """Test the listRecords verb responds and conforms as expected""" # Mock the datacite service to ensure the same record data is returned. mocked_get_metadata_list = mocker.patch('viringo.services.datacite.get_metadata_list') # Get fake results result_1 = factories.MetadataFactory() result_2 = factories.MetadataFactory( identifier="10.5072/not-a-real-doi-2", updated_datetime=datetime.datetime(2018, 5, 17, 6, 33), dates=[ {'type': 'Issued', 'date': '2018-02-16'}, {'type': 'Created', 'date': '2018-02-16'}, {'type': 'Updated', 'date': '2018-02-16'} ], identifiers=[ {'type': 'DOI', 'identifier': '10.5072/not-a-real-doi-2'} ], relations=[] ) results = [result_1, result_2], 2, 1 # Set the mocked service to use the fake result mocked_get_metadata_list.return_value = results response = client.get('/oai?verb=ListRecords&metadataPrefix=oai_dc&set=DATACITE.DATACITE') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_listrecords_dc.xml', response.get_data(), "ListRecords" ) # Compare the main part of the request against test case assert original == target def test_list_identifiers(client, mocker): """Test the listIdentifiers verb responds and conforms as expected""" # Mock the datacite service to ensure the same record data is returned. mocked_get_metadata_list = mocker.patch('viringo.services.datacite.get_metadata_list') # Get fake results result_1 = factories.MetadataFactory() result_2 = factories.MetadataFactory( identifier="10.5072/not-a-real-doi-2", updated_datetime=datetime.datetime(2018, 5, 17, 6, 33), ) results = [result_1, result_2], 2, 1 # Set the mocked service to use the fake result mocked_get_metadata_list.return_value = results response = client.get('/oai?verb=ListIdentifiers&metadataPrefix=oai_dc&set=DATACITE.DATACITE') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_listidentifiers.xml', response.get_data(), "ListIdentifiers" ) # Compare the main part of the request against test case assert original == target def test_list_sets(client, mocker): """Test the listIdentifiers verb responds and conforms as expected""" # Mock the datacite service to ensure the same record data is returned. mocked_get_sets = mocker.patch('viringo.services.datacite.get_sets') # Get fake results results = [ ('datacite', 'DataCite'), ('datacite.axiom', 'Axiom Data Science'), ('datacite.becker', 'Pascal Becker'), ('datacite.blog', 'DataCite Blog'), ('datacite.datacite', 'DataCite'), ('datacite.dcppc', 'NIH Data Commons Pilot Phase Consortium'), ('datacite.force11', 'Force11'), ('datacite.gtex', 'GTEx'), ('datacite.lare', 'LA Referencia'), ('datacite.neg', 'NASA Earthdata Group'), ('datacite.transfer', 'DOI Transfer Client') ] # Set the mocked service to use the fake result mocked_get_sets.return_value = results, len(results) response = client.get('/oai?verb=ListSets') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_listsets.xml', response.get_data(), "ListSets" ) # Compare the main part of the request against test case assert original == target def test_list_metadata_formats(client): """Test the identify verb responds and conforms as expected""" response = client.get('/oai?verb=ListMetadataFormats') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' # Compare just the verb part of the oai xml original, target = construct_oai_xml_comparisons( 'tests/integration/fixtures/oai_listmetadataformats.xml', response.get_data(), "ListMetadataFormats" ) # Compare the main part of the request against test case assert original == target def test_responds_to_get_post(client): """Test OAI responds on both GET and POST method requests as per OAI spec""" response = client.get('/oai/') print(response.get_data()) assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8' response = client.post('/oai') assert response.status_code == 200 assert response.content_type == 'application/xml; charset=utf-8'
36.131086
100
0.696486
1,245
9,647
5.259438
0.139759
0.042761
0.021991
0.036652
0.779322
0.757789
0.747404
0.747404
0.743128
0.743128
0
0.018632
0.204416
9,647
266
101
36.266917
0.834528
0.250233
0
0.474684
0
0.018987
0.283814
0.155279
0
0
0
0
0.177215
1
0.063291
false
0
0.018987
0
0.088608
0.018987
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
b5baf1b7979659f986d543f9e893d70c7e394a44
42
py
Python
tests/__init__.py
rmcd-mscb/onhm2thredds
53cf0ada773bda522bef1edfe5b2d8e3b0130b8f
[ "MIT" ]
null
null
null
tests/__init__.py
rmcd-mscb/onhm2thredds
53cf0ada773bda522bef1edfe5b2d8e3b0130b8f
[ "MIT" ]
null
null
null
tests/__init__.py
rmcd-mscb/onhm2thredds
53cf0ada773bda522bef1edfe5b2d8e3b0130b8f
[ "MIT" ]
null
null
null
"""Unit test package for onhm2thredds."""
21
41
0.714286
5
42
6
1
0
0
0
0
0
0
0
0
0
0
0.027027
0.119048
42
1
42
42
0.783784
0.833333
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
bd1ce933fc32cc75fc1f84ed9d7b154b64454f71
38
py
Python
lstm/__init__.py
andfoy/vqa-detection
e4ff42371b669bc7b39bc95574ec5e32f6db897d
[ "MIT" ]
3
2018-05-11T04:45:57.000Z
2019-09-04T03:22:55.000Z
lstm/__init__.py
andfoy/vqa-detection
e4ff42371b669bc7b39bc95574ec5e32f6db897d
[ "MIT" ]
null
null
null
lstm/__init__.py
andfoy/vqa-detection
e4ff42371b669bc7b39bc95574ec5e32f6db897d
[ "MIT" ]
2
2017-11-29T21:59:31.000Z
2020-10-11T17:21:26.000Z
from model import RNNModel RNNModel
7.6
26
0.815789
5
38
6.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.184211
38
4
27
9.5
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
bd323bcde7f2cf81512e7c44241528d0339d966b
124
py
Python
AtieP/coin_collector.py
AtieP/game-jam-2020
25c6034cde3e1ff6e08fa9982d7036b55be85909
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
AtieP/coin_collector.py
AtieP/game-jam-2020
25c6034cde3e1ff6e08fa9982d7036b55be85909
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
AtieP/coin_collector.py
AtieP/game-jam-2020
25c6034cde3e1ff6e08fa9982d7036b55be85909
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
import arcade import src.platformer def main(): src.platformer.platformer_main() if __name__ == "__main__": main()
15.5
36
0.709677
15
124
5.266667
0.533333
0.329114
0
0
0
0
0
0
0
0
0
0
0.169355
124
8
37
15.5
0.76699
0
0
0
0
0
0.064
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
bd49e104a1d3e306aa5d4939a0dc835e0d9518e3
175
py
Python
py3dtiles_merger/__init__.py
Tofull/py3dtiles_merger
9d290e0f93dd3130219106b6b43c32f5c37b1eba
[ "MIT" ]
9
2018-10-10T12:14:37.000Z
2022-02-16T05:56:52.000Z
py3dtiles_merger/__init__.py
Tofull/py3dtiles_merger
9d290e0f93dd3130219106b6b43c32f5c37b1eba
[ "MIT" ]
2
2018-08-02T14:38:04.000Z
2019-11-12T19:20:26.000Z
py3dtiles_merger/__init__.py
Tofull/py3dtiles_merger
9d290e0f93dd3130219106b6b43c32f5c37b1eba
[ "MIT" ]
8
2018-12-14T12:36:47.000Z
2022-02-09T09:33:49.000Z
import py3dtiles_merger.TilesetUtilities import py3dtiles_merger.TilesetParser import py3dtiles_merger.TilesetMerger import py3dtiles_merger.NullObject __version__ = '0.0.1'
25
40
0.88
20
175
7.3
0.5
0.410959
0.575342
0
0
0
0
0
0
0
0
0.042945
0.068571
175
6
41
29.166667
0.852761
0
0
0
0
0
0.028571
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
1fad3d78f046fb2b069a31837288e892d4c34b3c
8,472
py
Python
tests/test.ui.016.raster.py
ceccopierangiolieugenio/py-ttk
117d61844bb7344bbe22a7797b7e3763d5fe4de5
[ "MIT" ]
null
null
null
tests/test.ui.016.raster.py
ceccopierangiolieugenio/py-ttk
117d61844bb7344bbe22a7797b7e3763d5fe4de5
[ "MIT" ]
null
null
null
tests/test.ui.016.raster.py
ceccopierangiolieugenio/py-ttk
117d61844bb7344bbe22a7797b7e3763d5fe4de5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2021 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. import sys, os sys.path.append(os.path.join(sys.path[0],'..')) import TermTk as ttk ttk.TTkLog.use_default_file_logging() from TermTk import TTkWidget, TTkColor, TTkString class TTkPeppered(TTkWidget): # to save space I just recycle the 20x20 imageArray (~10K) # used in the "TtkAbout" Widget peppered_20= ttk.TTkAbout.peppered peppered_10=[ [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x67,0x01], [0x25,0x93,0x1c], [0x22,0x7e,0x12], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x0a,0x00,0x00], [0x3e,0x29,0x08], [0x2f,0x97,0x2d], [0x2e,0x9a,0x2b], [0x6b,0x3b,0x10], [0x92,0x15,0x16], [0x4b,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0xcd,0x1e,0x1e], [0xff,0x82,0x82], [0xec,0x0a,0x0c], [0xfb,0x80,0x61], [0x61,0x9f,0x33], [0xea,0x4e,0x42], [0xff,0x70,0x71], [0x81,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0xa7,0x00,0x00], [0xdd,0x00,0x00], [0xc7,0x00,0x00], [0xff,0x12,0x0e], [0xff,0x2f,0x1d], [0xf1,0x00,0x00], [0x6b,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x3e,0x00,0x00], [0x65,0x00,0x00], [0xb8,0x00,0x00], [0xdc,0x00,0x00], [0x97,0x00,0x00], [0x86,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x3f,0x00,0x00], [0xd4,0x00,0x00], [0xc0,0x00,0x00], [0xff,0x00,0x00], [0xea,0x00,0x00], [0xd9,0x00,0x00], [0x22,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x15,0x00,0x00], [0xd7,0x00,0x00], [0xff,0x05,0x06], [0xff,0x09,0x09], [0xff,0x0a,0x0a], [0xe0,0x00,0x00], [0x1e,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0xa2,0x00,0x00], [0xff,0x00,0x00], [0xff,0x69,0x69], [0xff,0x00,0x00], [0xbc,0x00,0x00], [0x14,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x58,0x00,0x00], [0xb0,0x00,0x00], [0xff,0x72,0x71], [0xe0,0x05,0x05], [0x7c,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00]], [[0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x15,0x00,0x00], [0x55,0x00,0x00], [0x21,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00], [0x00,0x00,0x00]]] peppered_old=[ ['#000000', '#000000', '#000000', '#006701', '#25931c', '#227e12', '#000000', '#000000', '#000000', '#000000'], ['#000000', '#000000', '#0a0000', '#3e2908', '#2f972d', '#2e9a2b', '#6b3b10', '#921516', '#4b0000', '#000000'], ['#000000', '#cd1e1e', '#ff8282', '#ec0a0c', '#fb8061', '#619f33', '#ea4e42', '#ff7071', '#810000', '#000000'], ['#000000', '#a70000', '#dd0000', '#c70000', '#ff120e', '#ff2f1d', '#f10000', '#6b0000', '#000000', '#000000'], ['#000000', '#000000', '#3e0000', '#650000', '#b80000', '#dc0000', '#970000', '#860000', '#000000', '#000000'], ['#000000', '#000000', '#3f0000', '#d40000', '#c00000', '#ff0000', '#ea0000', '#d90000', '#220000', '#000000'], ['#000000', '#000000', '#150000', '#d70000', '#ff0506', '#ff0909', '#ff0a0a', '#e00000', '#1e0000', '#000000'], ['#000000', '#000000', '#000000', '#a20000', '#ff0000', '#ff6969', '#ff0000', '#bc0000', '#140000', '#000000'], ['#000000', '#000000', '#000000', '#580000', '#b00000', '#ff7271', '#e00505', '#7c0000', '#000000', '#000000'], ['#000000', '#000000', '#000000', '#000000', '#150000', '#550000', '#210000', '#000000', '#000000', '#000000']] def __init__(self, *args, **kwargs): TTkWidget.__init__(self, *args, **kwargs) self._name = kwargs.get('name' , 'TTkPeppered' ) self.setGeometry(0,0,40,40) def reduce(self, a,b,c,d): # quadblitter notcurses like l = (a,b,c,d) def delta(i): return max([v[i] for v in l]) - min([v[i] for v in l]) deltaR = delta(0) deltaG = delta(1) deltaB = delta(2) def midColor(c1,c2): return ((c1[0]+c2[0])//2,(c1[1]+c2[1])//2,(c1[2]+c2[2])//2) def closer(a,b,c): return \ ( (a[0]-c[0])**2 + (a[1]-c[1])**2 + (a[2]-c[2])**2 ) > \ ( (b[0]-c[0])**2 + (b[1]-c[1])**2 + (b[2]-c[2])**2 ) def splitReduce(i): s = sorted(l,key=lambda x:x[i]) mid = (s[3][i]+s[0][i])//2 if s[1][i] < mid: if s[2][i] > mid: c1 = midColor(s[0],s[1]) c2 = midColor(s[2],s[3]) else: c1 = midColor(s[0],s[1]) c1 = midColor(c1,s[2]) c2 = s[3] else: c1 = s[0] c2 = midColor(s[1],s[2]) c2 = midColor(c1,s[3]) ch = 0x01 if closer(c1,c2,l[0]) else 0 ch |= 0x02 if closer(c1,c2,l[1]) else 0 ch |= 0x04 if closer(c1,c2,l[2]) else 0 ch |= 0x08 if closer(c1,c2,l[3]) else 0 # 0x00 0x01 0x02 0x03 quad = [ ' ', '▘', '▝', '▀', # 0x04 0x05 0x06 0x07 '▖', '▌', '▞', '▛', # 0x08 0x09 0x0A 0x0B '▗', '▚', '▐', '▜', # 0x0C 0x0D 0x0E 0x0F '▄', '▙', '▟', '█'] return TTkString() + \ (TTkColor.bg(f'#{c1[0]:02X}{c1[1]:02X}{c1[2]:02X}') + \ TTkColor.fg(f'#{c2[0]:02X}{c2[1]:02X}{c2[2]:02X}')) + \ quad[ch] if deltaR >= deltaG and deltaR >= deltaB: # Use Red as splitter return splitReduce(0) elif deltaG >= deltaB and deltaG >= deltaR: # Use Green as splitter return splitReduce(1) else: # Use Blue as splitter return splitReduce(2) def paintEvent(self): for y, row in enumerate(TTkPeppered.peppered_old): for x, col in enumerate(row): if col == "#000000": color=TTkColor.RST else: color=TTkColor.bg(col) self._canvas.drawText(pos=(x,y), text=' ', color=color) img = self.peppered_20 for y in range(0, len(img)&(~1), 2): for x in range(0, min(len(img[y])&(~1),len(img[y+1])&(~1)), 2): self._canvas.drawText( \ pos=(x//2+11,y//2), \ text=self.reduce( img[y][x] , img[y][x+1] , img[y+1][x] , img[y+1][x+1] )) img = self.peppered_10 for y in range(0, len(img)&(~1), 2): for x in range(0, min(len(img[y])&(~1),len(img[y+1])&(~1)), 2): self._canvas.drawText( \ pos=(x//2+22,y//2), \ text=self.reduce( img[y][x] , img[y][x+1] , img[y+1][x] , img[y+1][x+1] )) self._canvas.drawText(pos=(22,6), text='TEST Peppered') root = ttk.TTk() win = ttk.TTkWindow(parent=root,pos = (1,1), size=(40,15), title="About", border=True) TTkPeppered(parent=win) root.mainloop()
52.296296
193
0.528565
1,142
8,472
3.915061
0.323993
0.282711
0.322076
0.390069
0.236189
0.210691
0.184299
0.184299
0.169984
0.169984
0
0.253868
0.267705
8,472
162
194
52.296296
0.464378
0.164424
0
0.166667
0
0
0.117338
0.009648
0
0
0.172531
0
0
1
0.064815
false
0
0.027778
0.027778
0.194444
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1ff3e8550395814de742e4cfa9f232ed1912c6a0
50
py
Python
wazimap_ng/points/admin/forms/__init__.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/points/admin/forms/__init__.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/points/admin/forms/__init__.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
from .category_admin_form import CategoryAdminForm
50
50
0.92
6
50
7.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.06
50
1
50
50
0.93617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1ff405daee86458badad80ee4e55860ce0cc9cfd
825
py
Python
test/lmp/model/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/model/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/model/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test :py:mod:`lmp.model` signatures.""" import lmp.model def test_module_attribute() -> None: """Ensure module attributes' signatures.""" assert hasattr(lmp.model, 'BaseModel') assert hasattr(lmp.model, 'ElmanNet') assert hasattr(lmp.model, 'LSTM1997') assert hasattr(lmp.model, 'LSTM2000') assert hasattr(lmp.model, 'LSTM2002') assert hasattr(lmp.model, 'ALL_MODELS') assert lmp.model.ALL_MODELS == [ lmp.model.ElmanNet, lmp.model.LSTM1997, lmp.model.LSTM2000, lmp.model.LSTM2002, ] assert hasattr(lmp.model, 'MODEL_OPTS') assert lmp.model.MODEL_OPTS == { lmp.model.ElmanNet.model_name: lmp.model.ElmanNet, lmp.model.LSTM1997.model_name: lmp.model.LSTM1997, lmp.model.LSTM2000.model_name: lmp.model.LSTM2000, lmp.model.LSTM2002.model_name: lmp.model.LSTM2002, }
30.555556
54
0.713939
109
825
5.311927
0.220183
0.317789
0.193437
0.253886
0.376511
0.376511
0.127807
0
0
0
0
0.067606
0.139394
825
26
55
31.730769
0.747887
0.089697
0
0
0
0
0.082432
0
0
0
0
0
0.428571
1
0.047619
true
0
0.047619
0
0.095238
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
1
0
0
0
0
0
0
5
1fff8046a599bd40006745c5d329d8ae3a8071af
134
py
Python
managedstate/__init__.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
managedstate/__init__.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
managedstate/__init__.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
from .state import State from .keyquery import KeyQuery from .attributename import AttributeName from .constants import ErrorMessages
26.8
40
0.850746
16
134
7.125
0.4375
0
0
0
0
0
0
0
0
0
0
0
0.119403
134
4
41
33.5
0.966102
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
1f26ad383fed15dffaeef8a2469e50997b3b96e6
1,971
py
Python
starvine/bvcopula/copula/copula_rotation.py
wgurecky/StarVine
b952a88eeaff476484ba6a26420cfe4ef575d162
[ "BSD-3-Clause" ]
12
2018-10-04T06:15:13.000Z
2020-01-08T03:32:30.000Z
starvine/bvcopula/copula/copula_rotation.py
wgurecky/StarVine
b952a88eeaff476484ba6a26420cfe4ef575d162
[ "BSD-3-Clause" ]
25
2017-08-29T06:28:37.000Z
2020-10-16T23:56:57.000Z
starvine/bvcopula/copula/copula_rotation.py
wgurecky/StarVine
b952a88eeaff476484ba6a26420cfe4ef575d162
[ "BSD-3-Clause" ]
3
2017-04-08T20:19:09.000Z
2020-01-09T20:01:02.000Z
## # \breif Copula function rotation helpers # # These helpers must be implemented outside of # copula_base since we need access to them in all # our child copula classes as decorators. # # Rotate the data before fitting copula # # Always rotate data to original orientation after # evaluation of copula functions def rotatePDF(input_pdf): def rotatedFn(self, *args, **kwargs): if args[2] == 0: # 0 deg rotation (no action) return input_pdf(self, *args, **kwargs) if args[2] == 1: # 90 deg rotation (flip U) return input_pdf(self, *args, **kwargs) if args[2] == 2: # 180 deg rotation # TODO: Implement return input_pdf(self, *args, **kwargs) if args[2] == 3: # 180 deg rotation # TODO: Implement return input_pdf(self, *args, **kwargs) return rotatedFn def rotateCDF(input_cdf): def rotatedFn(self, *args, **kwargs): if args[2] == 0: # 0 deg rotation (no action) return input_cdf(self, *args, **kwargs) if args[2] == 1: # 90 deg rotation (flip U) return input_cdf(self, *args, **kwargs) return rotatedFn def rotateHfun(input_h): """! H fun provides U given v """ def rotatedFn(self, *args, **kwargs): if args[2] == 0: # 0 deg rotation (no action) return input_h(self, *args, **kwargs) if args[2] == 1: # 90 deg rotation (flip U) return input_h(self, *args, **kwargs) return rotatedFn def rotateVFun(input_v): """! V fun provides V given u """ def rotatedFn(self, *args, **kwargs): if args[2] == 0: # 0 deg rotation (no action) return input_v(self, *args, **kwargs) if args[2] == 1: # 90 deg rotation (no action) return input_v(self, *args, **kwargs) return rotatedFn
29.863636
51
0.558092
251
1,971
4.322709
0.270916
0.103226
0.180645
0.147465
0.674654
0.660829
0.57788
0.57788
0.57788
0.546544
0
0.028744
0.329274
1,971
65
52
30.323077
0.791982
0.315576
0
0.8125
0
0
0
0
0
0
0
0.015385
0
1
0.25
false
0
0
0
0.6875
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
1
0
0
1
0
0
0
0
1
0
0
5
1f37812ad77dfcb2fc559832acc65ad8e41123d6
46,336
py
Python
tests.py
diskovod/mailgun_beta
5a595704c1eb887f87ad72b900c1e6fb613412a1
[ "MIT" ]
null
null
null
tests.py
diskovod/mailgun_beta
5a595704c1eb887f87ad72b900c1e6fb613412a1
[ "MIT" ]
null
null
null
tests.py
diskovod/mailgun_beta
5a595704c1eb887f87ad72b900c1e6fb613412a1
[ "MIT" ]
null
null
null
import unittest import os from mailgun.client import Client class MessagesTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.data = {"from": os.environ["MESSAGES_FROM"], "to": os.environ["MESSAGES_TO"], "cc": os.environ["MESSAGES_CC"], "subject": "Hello Vasyl Bodaj", "text": "Congratulations !!!!!, you just sent an email with Mailgun! You are truly awesome!", "o:tag": "Python test"} def test_post_right_message(self): req = self.client.messages.create(data=self.data, domain=self.domain) self.assertEqual(req.status_code, 200) def test_post_wrong_message(self): req = self.client.messages.create(data={"from": "sdsdsd"}, domain=self.domain) self.assertEqual(req.status_code, 400) class DomainTests(unittest.TestCase): """ All the tests of this part will work only on fresh setup, or you have to change self.test_domain variable every time you're running this again. It's happening because domain name is not deleting permanently after API call, so every new create will cause an error, as that domain is still exists. Maybe in this case it's good to implement something like random name generator to avoid this problems. """ def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.test_domain = "mailgun.wrapper.test2" self.post_domain_data = { "name": self.test_domain, } self.post_domain_creds = { "login": "alice_bob@{domain}".format(domain=self.domain), "password": "test_new_creds123" } self.put_domain_creds = { "password": "test_new_creds" } self.put_domain_connections_data = { "require_tls": "false", "skip_verification": "false" } self.put_domain_tracking_data = { "active": "yes", "skip_verification": "false" } self.put_domain_unsubscribe_data = { "active": "yes", "html_footer": "\n<br>\n<p><a href=\"%unsubscribe_url%\">UnSuBsCrIbE</a></p>\n", "text_footer": "\n\nTo unsubscribe here click: <%unsubscribe_url%>\n\n" } self.put_domain_dkim_authority_data = { "self": "false" } self.put_domain_webprefix_data = { "web_prefix": "python" } self.put_dkim_selector_data = { "dkim_selector": "s" } def test_get_domain_list(self): req = self.client.domainlist.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("items", req.json()) def test_post_domain(self): # ### Problem with smtp_password!!!! # self.client.domains.delete(domain=self.test_domain) request = self.client.domains.create(data=self.post_domain_data) self.assertEqual(request.status_code, 200) self.assertIn("Domain has been created", request.json()["message"]) def test_get_single_domain(self): self.client.domains.create(data=self.post_domain_data) req = self.client.domains.get(domain_name=self.post_domain_data["name"]) self.assertEqual(req.status_code, 200) self.assertIn("domain", req.json()) def test_verify_domain(self): self.client.domains.create(data=self.post_domain_data) req = self.client.domains.put(domain=self.post_domain_data["name"], verify=True) self.assertEqual(req.status_code, 200) self.assertIn("domain", req.json()) def test_delete_domain(self): self.client.domains.create(data=self.post_domain_data) request = self.client.domains.delete(domain=self.test_domain) self.assertEqual(request.json()["message"], "Domain will be deleted on the background") self.assertEqual(request.status_code, 200) def test_get_smtp_creds(self): request = self.client.domains_credentials.get(domain=self.domain) self.assertEqual(request.status_code, 200) self.assertIn("items", request.json()) def test_post_domain_creds(self): request = self.client.domains_credentials.create(domain=self.domain, data=self.post_domain_creds) self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_put_domain_creds(self): self.client.domains_credentials.create(domain=self.domain, data=self.post_domain_creds) request = self.client.domains_credentials.put(domain=self.domain, data=self.put_domain_creds, login="alice_bob") self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_delete_domain_creds(self): self.client.domains_credentials.create(domain=self.domain, data=self.post_domain_creds) request = self.client.domains_credentials.delete(domain=self.domain, login="alice_bob") self.assertEqual(request.status_code, 200) def test_put_domain_connections(self): request = self.client.domains_connection.put(domain=self.domain, data=self.put_domain_connections_data) self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_put_domain_tracking_open(self): request = self.client.domains_tracking_open.put(domain=self.domain, data=self.put_domain_tracking_data) self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_put_domain_tracking_click(self): request = self.client.domains_tracking_click.put(domain=self.domain, data=self.put_domain_tracking_data) self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_put_domain_unsubscribe(self): request = self.client.domains_tracking_unsubscribe.put(domain=self.domain, data=self.put_domain_unsubscribe_data) self.assertEqual(request.status_code, 200) self.assertIn("message", request.json()) def test_put_dkim_authority(self): self.client.domains.create(data=self.post_domain_data) request = self.client.domains_dkimauthority.put(domain=self.test_domain, data=self.put_domain_dkim_authority_data) self.assertIn("message", request.json()) def test_put_webprefix(self): self.client.domains.create(data=self.post_domain_data) request = self.client.domains_webprefix.put(domain=self.test_domain, data=self.put_domain_webprefix_data) self.assertIn("message", request.json()) def test_put_dkim_selector(self): self.client.domains.create(data=self.post_domain_data) request = self.client.domains_dkimselector.put(domain=self.domain, data=self.put_dkim_selector_data) self.assertIn("message", request.json()) class IpTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.ip_data = { "ip": os.environ["DOMAINS_DEDICATED_IP"] } def test_get_ip_from_domain(self): req = self.client.ips.get(domain=self.domain, params={"dedicated": "true"}) self.assertIn("items", req.json()) self.assertEqual(req.status_code, 200) def test_get_ip_by_address(self): self.client.domains_ips.create(domain=self.domain, data=self.ip_data) req = self.client.ips.get(domain=self.domain, ip=self.ip_data["ip"]) self.assertIn("ip", req.json()) self.assertEqual(req.status_code, 200) def test_create_ip(self): request = self.client.domains_ips.create(domain=self.domain, data=self.ip_data) self.assertEqual("success", request.json()["message"]) self.assertEqual(request.status_code, 200) def test_delete_ip(self): request = self.client.domains_ips.delete(domain=self.domain, ip=self.ip_data["ip"]) self.assertEqual("success", request.json()["message"]) self.assertEqual(request.status_code, 200) class IpPoolsTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.data = { "name": "test_pool", "description": "Test", "add_ip": os.environ["DOMAINS_DEDICATED_IP"] } self.patch_data = { "name": "test_pool1", "description": "Test1" } self.ippool_id = "" def test_get_ippools(self): self.client.ippools.create(domain=self.domain, data=self.data) req = self.client.ippools.get(domain=self.domain) self.assertIn("ip_pools", req.json()) self.assertEqual(req.status_code, 200) def test_patch_ippool(self): req_post = self.client.ippools.create(domain=self.domain, data=self.data) self.ippool_id = req_post.json()["pool_id"] req = self.client.ippools.patch(domain=self.domain, data=self.patch_data, pool_id=self.ippool_id) self.assertEqual("success", req.json()["message"]) self.assertEqual(req.status_code, 200) def test_link_domain_ippool(self): pool_create = self.client.ippools.create(domain=self.domain, data=self.data) self.ippool_id = pool_create.json()["pool_id"] self.client.ippools.patch(domain=self.domain, data=self.patch_data, pool_id=self.ippool_id) data = { "pool_id": self.ippool_id } req = self.client.domains_ips.create(domain=self.domain, data=data) self.assertIn("message", req.json()) def test_delete_ippool(self): req = self.client.ippools.create(domain=self.domain, data=self.data) self.ippool_id = req.json()["pool_id"] req_del = self.client.ippools.delete(domain=self.domain, pool_id=self.ippool_id) self.assertEqual("started", req_del.json()["message"]) class EventsTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.params = { "event": "rejected" } def test_events_get(self): req = self.client.events.get(domain=self.domain) self.assertIn("items", req.json()) self.assertEqual(req.status_code, 200) def test_event_params(self): req = self.client.events.get(domain=self.domain, filters=self.params) self.assertIn("items", req.json()) self.assertEqual(req.status_code, 200) class StatsTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.params = { "event": ["accepted"], "duration": "1m" } def test_stats_total_get(self): req = self.client.stats_total.get(filters=self.params, domain=self.domain) self.assertIn("stats", req.json()) self.assertEqual(req.status_code, 200) class TagsTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.data = { "description": "Tests running" } self.put_tags_data = { "description": "Python testtt" } self.stats_params = { "event": "accepted" } self.tag_name = "Python test" def test_get_tags(self): req = self.client.tags.get(domain=self.domain) self.assertIn('items', req.json()) self.assertEqual(req.status_code, 200) def test_tag_get_by_name(self): req = self.client.tags.get(domain=self.domain, tag_name=self.tag_name) self.assertIn('tag', req.json()) self.assertEqual(req.status_code, 200) def test_tag_put(self): req = self.client.tags.put(domain=self.domain, tag_name=self.tag_name, data=self.put_tags_data) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_tags_stats_get(self): req = self.client.tags_stats.get(domain=self.domain, filters=self.stats_params, tag_name=self.tag_name) self.assertEqual(req.status_code, 200) self.assertIn("tag", req.json()) def test_tags_stats_agregate_get(self): req = self.client.tags_stats_aggregates_devices.get(domain=self.domain, filters=self.stats_params, tag_name=self.tag_name) self.assertEqual(req.status_code, 200) self.assertIn("tag", req.json()) # def test_delete_tags(self): # req = self.client.tags.delete(domain=self.domain, # tag_name=self.tag_name) # # self.assertEqual(req.status_code, 200) # self.assertIn("message", req.json()) class BouncesTests(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.bounces_data = { "address": "test30@gmail.com", "code": 550, "error": "Test error" } self.bounces_json_data = [{ "address": "test40@gmail.com", "code": "550", "error": "Test error2312" }, { "address": "test50@gmail.com", "code": "550", "error": "Test error" }] def test_bounces_get(self): req = self.client.bounces.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn('items', req.json()) def test_bounces_create(self): req = self.client.bounces.create(data=self.bounces_data, domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn('address', req.json()) def test_bounces_get_address(self): self.client.bounces.create(data=self.bounces_data, domain=self.domain) req = self.client.bounces.get(domain=self.domain, bounce_address=self.bounces_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn('address', req.json()) def test_bounces_create_json(self): req = self.client.bounces.create(data=self.bounces_json_data, domain=self.domain, headers='application/json') self.assertEqual(req.status_code, 200) self.assertIn('message', req.json()) def test_bounces_delete_single(self): self.client.bounces.create(data=self.bounces_data, domain=self.domain) req = self.client.bounces.delete(domain=self.domain, bounce_address=self.bounces_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn('message', req.json()) def test_bounces_delete_all(self): req = self.client.bounces.delete(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn('message', req.json()) class UnsubscribesTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.unsub_data = { "address": "test@gmail.com", "tag": "unsub_test_tag" } self.unsub_json_data = [{ "address": "test1@gmail.com", "tags": ["some tag"], "error": "Test error2312" }, { "address": "test2@gmail.com", "code": ["*"], "error": "Test error" }, { "address": "test3@gmail.com" }] def test_unsub_create(self): req = self.client.unsubscribes.create(data=self.unsub_data, domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_unsub_get(self): req = self.client.unsubscribes.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("items", req.json()) def test_unsub_get_single(self): req = self.client.unsubscribes.get(domain=self.domain, unsubscribe_address=self.unsub_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("address", req.json()) def test_unsub_create_multiple(self): req = self.client.unsubscribes.create(data=self.unsub_json_data, domain=self.domain, headers='application/json') self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_unsub_delete(self): req = self.client.bounces.delete(domain=self.domain, unsubscribe_address=self.unsub_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_unsub_delete_all(self): req = self.client.bounces.delete(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class ComplaintsTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.compl_data = { "address": "test@gmail.com", "tag": "compl_test_tag" } self.compl_json_data = [{ "address": "test1@gmail.com", "tags": ["some tag"], "error": "Test error2312" }, { "address": "test3@gmail.com" }] def test_compl_create(self): req = self.client.complaints.create(data=self.compl_data, domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_compl_get_all(self): req = self.client.complaints.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn('items', req.json()) def test_compl_get_single(self): self.client.complaints.create(data=self.compl_data, domain=self.domain) req = self.client.complaints.get(domain=self.domain, complaint_address=self.compl_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn('address', req.json()) def test_compl_create_multiple(self): req = self.client.complaints.create(data=self.compl_json_data, domain=self.domain, headers='application/json') self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_compl_delete_single(self): self.client.complaints.create(data=self.compl_json_data, domain=self.domain, headers='application/json') req = self.client.complaints.delete(domain=self.domain, unsubscribe_address=self.compl_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_compl_delete_all(self): req = self.client.complaints.delete(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class WhiteListTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.whitel_data = { "address": "test@gmail.com", "tag": "whitel_test" } self.whitl_json_data = [{ "address": "test1@gmail.com", "domain": self.domain }, { "address": "test3@gmail.com", "domain": self.domain }] def test_whitel_create(self): req = self.client.whitelists.create(data=self.whitel_data, domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_whitel_get_simple(self): self.client.whitelists.create(data=self.whitel_data, domain=self.domain) req = self.client.whitelists.get(domain=self.domain, whitelist_address=self.whitel_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("value", req.json()) def test_whitel_delete_simple(self): self.client.whitelists.create(data=self.whitel_data, domain=self.domain) req = self.client.whitelists.delete(domain=self.domain, whitelist_address=self.whitel_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class RoutesTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.routes_data = { "priority": 0, "description": "Sample route", "expression": "match_recipient('.*@{domain_name}')".format(domain_name=self.domain), "action": ["forward('http://myhost.com/messages/')", "stop()"] } self.routes_params = { "skip": 1, "limit": 1 } self.routes_put_data = { "priority": 2 } def test_routes_create(self): req = self.client.routes.create(domain=self.domain, data=self.routes_data) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_routes_get_all(self): self.client.routes.create(domain=self.domain, data=self.routes_data) req = self.client.routes.get(domain=self.domain, filters=self.routes_params) self.assertEqual(req.status_code, 200) self.assertIn("items", req.json()) def test_get_route_by_id(self): req_post = self.client.routes.create(domain=self.domain, data=self.routes_data) self.client.routes.create(domain=self.domain, data=self.routes_data) req = self.client.routes.get(domain=self.domain, route_id=req_post.json()["route"]["id"]) self.assertEqual(req.status_code, 200) self.assertIn("route", req.json()) def test_routes_put(self): req_post = self.client.routes.create(domain=self.domain, data=self.routes_data) req = self.client.routes.put(domain=self.domain, data=self.routes_put_data, route_id=req_post.json()["route"]["id"]) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) def test_routes_delete(self): req_post = self.client.routes.create(domain=self.domain, data=self.routes_data) req = self.client.routes.delete(domain=self.domain, route_id=req_post.json()["route"]["id"]) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class WebhooksTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.webhooks_data = { 'id': 'clicked', 'url': ['https://i.ua'] } self.webhooks_data_put = { 'url': 'https://twitter.com' } def test_webhooks_create(self): req = self.client.domains_webhooks.create(domain=self.domain, data=self.webhooks_data) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) self.client.domains_webhooks_clicked.delete(domain=self.domain) def test_webhooks_get(self): req = self.client.domains_webhooks.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("webhooks", req.json()) def test_webhook_put(self): self.client.domains_webhooks.create(domain=self.domain, data=self.webhooks_data) req = self.client.domains_webhooks_clicked.put(domain=self.domain, data=self.webhooks_data_put) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) self.client.domains_webhooks_clicked.delete(domain=self.domain) def test_webhook_get_simple(self): self.client.domains_webhooks.create(domain=self.domain, data=self.webhooks_data) req = self.client.domains_webhooks_clicked.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("webhook", req.json()) self.client.domains_webhooks_clicked.delete(domain=self.domain) def test_webhook_delete(self): self.client.domains_webhooks.create(domain=self.domain, data=self.webhooks_data) req = self.client.domains_webhooks_clicked.delete(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class MailingListsTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.maillist_address = os.environ["MAILLIST_ADDRESS"] self.mailing_lists_data = { 'address': 'python_sdk@{domain}'.format(domain=self.domain), 'description': "Mailgun developers list" } self.mailing_lists_data_update = { 'description': "Mailgun developers list 121212" } self.mailing_lists_members_data = { 'subscribed': True, 'address': 'bar@example.com', 'name': 'Bob Bar', 'description': 'Developer', 'vars': '{"age": 26}' } self.mailing_lists_members_put_data = { 'subscribed': True, 'address': 'bar@example.com', 'name': 'Bob Bar', 'description': 'Developer', 'vars': '{"age": 28}' } self.mailing_lists_members_data_mult = { 'upsert': True, 'members': '[{"address": "Alice <alice@example.com>", "vars": {"age": 26}},' '{"name": "Bob", "address": "bob2@example.com", "vars": {"age": 34}}]' } def test_maillist_pages_get(self): req = self.client.lists_pages.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("items", req.json()) def test_maillist_lists_get(self): req = self.client.lists.get(domain=self.domain, address=self.maillist_address) self.assertEqual(req.status_code, 200) self.assertIn("list", req.json()) def test_maillist_lists_create(self): self.client.lists.delete(domain=self.domain, address='python_sdk@{domain}'.format(domain=self.domain)) req = self.client.lists.create(domain=self.domain, data=self.mailing_lists_data) self.assertEqual(req.status_code, 200) self.assertIn("list", req.json()) def test_maillists_lists_put(self): self.client.lists.create(domain=self.domain, data=self.mailing_lists_data) req = self.client.lists.put(domain=self.domain, data=self.mailing_lists_data_update, address='python_sdk@{domain}'.format(domain=self.domain)) self.assertEqual(req.status_code, 200) self.assertIn("list", req.json()) def test_maillists_lists_delete(self): self.client.lists.create(domain=self.domain, data=self.mailing_lists_data) req = self.client.lists.delete(domain=self.domain, address='python_sdk@{domain}'.format(domain=self.domain)) self.assertEqual(req.status_code, 200) def test_maillists_lists_validate_create(self): req = self.client.lists.create(domain=self.domain, address=self.maillist_address, validate=True) self.assertEqual(req.status_code, 202) self.assertIn("message", req.json()) def test_maillists_lists_validate_get(self): req = self.client.lists.get(domain=self.domain, address=self.maillist_address, validate=True) self.assertEqual(req.status_code, 200) self.assertIn("id", req.json()) def test_maillists_lists_validate_delete(self): self.client.lists.create(domain=self.domain, address=self.maillist_address, validate=True) req = self.client.lists.get(domain=self.domain, address=self.maillist_address, validate=True) self.assertEqual(req.status_code, 200) def test_maillists_lists_members_pages_get(self): req = self.client.lists_members_pages.get(domain=self.domain, address=self.maillist_address) self.assertEqual(req.status_code, 200) self.assertIn("items", req.json()) def test_maillists_lists_members_create(self): self.client.lists_members.delete(domain=self.domain, address=self.maillist_address, member_address=self.mailing_lists_members_data["address"]) req = self.client.lists_members.create(domain=self.domain, address=self.maillist_address, data=self.mailing_lists_members_data) self.assertEqual(req.status_code, 200) self.assertIn("member", req.json()) def test_maillists_lists_members_update(self): self.client.lists_members.create(domain=self.domain, address=self.maillist_address, data=self.mailing_lists_members_data) req = self.client.lists_members.put(domain=self.domain, address=self.maillist_address, data=self.mailing_lists_members_put_data, member_address=self.mailing_lists_members_data["address"]) self.assertEqual(req.status_code, 200) self.assertIn("member", req.json()) def test_maillists_lists_members_delete(self): self.client.lists_members.create(domain=self.domain, address=self.maillist_address, data=self.mailing_lists_members_data) req = self.client.lists_members.delete(domain=self.domain, address=self.maillist_address, member_address=self.mailing_lists_members_data["address"]) self.assertEqual(req.status_code, 200) def test_maillists_lists_members_create_mult(self): req = self.client.lists_members.create(domain=self.domain, address=self.maillist_address, data=self.mailing_lists_members_data_mult, multiple=True) self.assertEqual(req.status_code, 200) self.assertIn("message", req.json()) class TemplatesTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.post_template_data = {'name': 'template.name20', 'description': 'template description', 'template': '{{fname}} {{lname}}', 'engine': 'handlebars', 'comment': 'version comment'} self.put_template_data = {'description': 'new template description'} self.post_template_version_data = {'tag': 'v11', 'template': '{{fname}} {{lname}}', 'engine': 'handlebars', 'active': 'no' } self.put_template_version_data = { 'template': '{{fname}} {{lname}}', 'comment': 'Updated version comment', 'active': 'no' } self.put_template_version = 'v11' def test_create_template(self): self.client.templates.delete(domain=self.domain, template_name=self.post_template_data["name"]) req = self.client.templates.create(data=self.post_template_data, domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_get_template(self): params = {"active": "yes"} self.client.templates.create(data=self.post_template_data, domain=self.domain) req = self.client.templates.get(domain=self.domain, filters=params, template_name=self.post_template_data["name"]) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_put_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) req = self.client.templates.put(domain=self.domain, data=self.put_template_data, template_name=self.post_template_data["name"]) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_delete_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) req = self.client.templates.delete(domain=self.domain, template_name=self.post_template_data["name"]) self.assertEqual(req.status_code, 200) def test_post_version_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) self.client.templates.delete(domain=self.domain, template_name=self.post_template_data["name"], versions=True, tag=self.put_template_version) req = self.client.templates.create(data=self.post_template_version_data, domain=self.domain, template_name=self.post_template_data["name"], versions=True) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_get_version_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) self.client.templates.create(data=self.post_template_version_data, domain=self.domain, template_name=self.post_template_data["name"], versions=True) req = self.client.templates.get(domain=self.domain, template_name=self.post_template_data["name"], versions=True) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_put_version_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) self.client.templates.create(data=self.post_template_version_data, domain=self.domain, template_name=self.post_template_data["name"], versions=True) req = self.client.templates.put(domain=self.domain, data=self.put_template_version_data, template_name=self.post_template_data["name"], versions=True, tag=self.put_template_version) self.assertEqual(req.status_code, 200) self.assertIn("template", req.json()) def test_delete_version_template(self): self.client.templates.create(data=self.post_template_data, domain=self.domain) self.post_template_version_data["tag"] = 'v0' self.post_template_version_data["active"] = 'no' self.client.templates.create(data=self.post_template_version_data, domain=self.domain, template_name=self.post_template_data["name"], versions=True) req = self.client.templates.delete(domain=self.domain, template_name=self.post_template_data["name"], versions=True, tag='v0') self.client.templates.delete(domain=self.domain, template_name=self.post_template_data["name"], versions=True, tag=self.put_template_version) self.assertEqual(req.status_code, 200) class EmailValidationTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.validation_address_1 = os.environ["VALIDATION_ADDRESS_1"] self.validation_address_2 = os.environ["VALIDATION_ADDRESS_2"] self.get_params_address_validate = { "address": self.validation_address_1, "provider_lookup": "false" } self.post_params_address_validate = { "provider_lookup": "false" } self.post_address_validate = {"address": self.validation_address_1} def test_post_address_validate(self): req = self.client.addressvalidate.create(domain=self.domain, data=self.post_address_validate, filters=self.post_params_address_validate) self.assertEqual(req.status_code, 200) self.assertIn("address", req.json()) def test_get_address_validate(self): req = self.client.addressvalidate.get(domain=self.domain, filters=self.get_params_address_validate) self.assertEqual(req.status_code, 200) self.assertIn("address", req.json()) def test_get_bulk_address_validate_status(self): params = {"limit": 1} req = self.client.addressvalidate_bulk.get(domain=self.domain, filters=params) self.assertEqual(req.status_code, 200) self.assertIn("jobs", req.json()) class InboxPlacementTest(unittest.TestCase): def setUp(self): self.auth = ( "api", os.environ["APIKEY"] ) self.client = Client(auth=self.auth) self.domain = os.environ["DOMAIN"] self.post_inbox_test = { 'domain': 'domain.com', 'from': 'user@sending_domain.com', 'subject': 'testSubject', 'html': '<html>HTML version of the body</html>' } def test_post_inbox_tests(self): req = self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) self.assertEqual(req.status_code, 201) self.assertIn("tid", req.json()) def test_get_inbox_tests(self): self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) req = self.client.inbox_tests.get(domain=self.domain) self.assertEqual(req.status_code, 200) self.assertIn("tests", req.json()) def test_get_simple_inbox_tests(self): test_id = self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) req = self.client.inbox_tests.get(domain=self.domain, test_id=test_id.json()["tid"]) self.assertEqual(req.status_code, 200) self.assertEqual(req.json()["tid"], test_id.json()["tid"]) def test_delete_inbox_tests(self): test_id = self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) req = self.client.inbox_tests.delete(domain=self.domain, test_id=test_id.json()["tid"]) self.assertEqual(req.status_code, 200) def test_get_counters_inbox_tests(self): test_id = self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) req = self.client.inbox_tests.get(domain=self.domain, test_id=test_id.json()["tid"], counters=True) self.assertEqual(req.status_code, 200) self.assertIn("counters", req.json()) def test_get_checks_inbox_tests(self): test_id = self.client.inbox_tests.create(domain=self.domain, data=self.post_inbox_test) req = self.client.inbox_tests.get(domain=self.domain, test_id=test_id.json()["tid"], checks=True) self.assertEqual(req.status_code, 200) self.assertIn("checks", req.json()) if __name__ == '__main__': unittest.main()
39.468484
115
0.549551
4,834
46,336
5.079851
0.065784
0.08389
0.095781
0.077211
0.842279
0.802044
0.756353
0.722797
0.689567
0.64302
0
0.011365
0.339175
46,336
1,173
116
39.502131
0.790594
0.014157
0
0.534464
0
0.00106
0.07818
0.003177
0
0
0
0
0.186638
1
0.11877
false
0.002121
0.003181
0
0.139979
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1f3866bc8d4edc66082912b0fdbbabdf6059b5a9
41
py
Python
python/testData/intentions/replaceExceptPart.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/replaceExceptPart.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/replaceExceptPart.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
try: pass except e,<caret> name: pass
10.25
22
0.658537
7
41
3.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.219512
41
4
23
10.25
0.84375
0
0
0.5
0
0
0
0
0
0
0
0
0
0
null
null
0.5
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
1
0
0
0
0
0
5
1f3b5e53e7a99629d0420f7df1d18bd54021ad72
241
py
Python
check.version/check_version_(python3).py
ronidandrade/python
022f8a7f2c6105f86fca05987242c45077a56549
[ "MIT" ]
null
null
null
check.version/check_version_(python3).py
ronidandrade/python
022f8a7f2c6105f86fca05987242c45077a56549
[ "MIT" ]
null
null
null
check.version/check_version_(python3).py
ronidandrade/python
022f8a7f2c6105f86fca05987242c45077a56549
[ "MIT" ]
null
null
null
# Importando as bibliotecas necessárias para verificar a versão do Python e do Requests import sys import requests # Exibindo as versões print(f"\n\t Versão do Python {sys.version}\n") print(f"\t Versão do Requests {requests.__version__}")
30.125
87
0.780083
38
241
4.842105
0.552632
0.130435
0.152174
0
0
0
0
0
0
0
0
0
0.136929
241
7
88
34.428571
0.884615
0.435685
0
0
0
0
0.609023
0.165414
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
1f51bbe66b241cd6d570b085228adfd289611a10
70
py
Python
test_package/__main__.py
Mishuni/Pip_Package_Practice
420c0549dd9f663c0b83afe51a689fdd8918151d
[ "MIT" ]
null
null
null
test_package/__main__.py
Mishuni/Pip_Package_Practice
420c0549dd9f663c0b83afe51a689fdd8918151d
[ "MIT" ]
null
null
null
test_package/__main__.py
Mishuni/Pip_Package_Practice
420c0549dd9f663c0b83afe51a689fdd8918151d
[ "MIT" ]
null
null
null
from test_package.modules import add def main(): print(add(2,4))
14
36
0.7
12
70
4
0.916667
0
0
0
0
0
0
0
0
0
0
0.034483
0.171429
70
4
37
17.5
0.793103
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
1f5bdc8379a4fbb693bfa356c4a42ee762827d0f
81
py
Python
refine_label/__init__.py
yuta-hi/remove-island
949fd0f610cbac885f9d23785d435b7278feeeb4
[ "MIT" ]
2
2020-03-16T01:31:26.000Z
2020-04-09T07:18:23.000Z
refine_label/__init__.py
yuta-hi/remove-island
949fd0f610cbac885f9d23785d435b7278feeeb4
[ "MIT" ]
null
null
null
refine_label/__init__.py
yuta-hi/remove-island
949fd0f610cbac885f9d23785d435b7278feeeb4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .remove_island import remove_island
20.25
40
0.876543
11
81
5.818182
0.545455
0.375
0
0
0
0
0
0
0
0
0
0
0.111111
81
3
41
27
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1f5dfdc1cf4a902382f5367adf7e83e6e854f160
129
py
Python
functions/pow.py
caiodangelo/essential-functions
fa5db63af74aa2c3473888ce35cac66fb30653b4
[ "MIT" ]
null
null
null
functions/pow.py
caiodangelo/essential-functions
fa5db63af74aa2c3473888ce35cac66fb30653b4
[ "MIT" ]
null
null
null
functions/pow.py
caiodangelo/essential-functions
fa5db63af74aa2c3473888ce35cac66fb30653b4
[ "MIT" ]
null
null
null
def pow(base,exponent): """ Given a base b and an exponent e, this function returns b^e """ return base**exponent
25.8
63
0.635659
20
129
4.1
0.7
0.292683
0
0
0
0
0
0
0
0
0
0
0.255814
129
5
64
25.8
0.854167
0.457364
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
1f8f332ae79caf6b04441660179dfa236a05f92b
157
py
Python
discord/types/__init__.py
Hype3808/RPD
78ba69cf132fd0c07264a9a142866b79e94a60d5
[ "Apache-2.0" ]
12
2021-11-11T14:10:31.000Z
2022-03-16T03:08:16.000Z
discord/types/__init__.py
Hype3808/RPD
78ba69cf132fd0c07264a9a142866b79e94a60d5
[ "Apache-2.0" ]
24
2021-12-27T04:03:20.000Z
2022-01-26T10:24:51.000Z
discord/types/__init__.py
Hype3808/RPD
78ba69cf132fd0c07264a9a142866b79e94a60d5
[ "Apache-2.0" ]
13
2021-11-12T09:06:11.000Z
2022-03-12T13:42:47.000Z
""" discord.types ~~~~~~~~~~~~~ Types for the Discord API, and discord.io """ from .allowed_mentions import * from .dict import * from .embed_parse import *
17.444444
41
0.675159
21
157
4.952381
0.666667
0.192308
0
0
0
0
0
0
0
0
0
0
0.146497
157
8
42
19.625
0.776119
0.43949
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2f3d79417975ffb8eba4de68417bba573a6093dc
133
py
Python
django_zabbix_api/backend/schema.py
LiveStalker/django-zabbix-api
4150cdc05c422486450f0f5865f6946bde7dbf33
[ "MIT" ]
1
2020-04-07T04:33:21.000Z
2020-04-07T04:33:21.000Z
django_zabbix_api/backend/schema.py
LiveStalker/django-zabbix-api
4150cdc05c422486450f0f5865f6946bde7dbf33
[ "MIT" ]
null
null
null
django_zabbix_api/backend/schema.py
LiveStalker/django-zabbix-api
4150cdc05c422486450f0f5865f6946bde7dbf33
[ "MIT" ]
1
2020-04-07T16:06:22.000Z
2020-04-07T16:06:22.000Z
from django.db.backends.base.schema import BaseDatabaseSchemaEditor class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): pass
22.166667
67
0.849624
12
133
9.416667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.097744
133
5
68
26.6
0.941667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
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
1
1
1
0
0
0
0
5
85cd8f9d766323c8289b33fae6fae8a6c9caff5c
271
py
Python
{{cookiecutter.repo_name}}/tests/test_{{cookiecutter.package_name}}.py
janw/python-cookiecutter
4ef8b96b718b36db970d18c176e1b14f8a9c7f21
[ "MIT" ]
4
2019-12-09T17:48:01.000Z
2021-12-21T09:06:33.000Z
{{cookiecutter.repo_name}}/tests/test_{{cookiecutter.package_name}}.py
janw/python-cookiecutter
4ef8b96b718b36db970d18c176e1b14f8a9c7f21
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/tests/test_{{cookiecutter.package_name}}.py
janw/python-cookiecutter
4ef8b96b718b36db970d18c176e1b14f8a9c7f21
[ "MIT" ]
null
null
null
from {{cookiecutter.package_name}} import base def test_fib() -> None: assert base.fib(0) == 0 assert base.fib(1) == 1 assert base.fib(2) == 1 assert base.fib(3) == 2 assert base.fib(4) == 3 assert base.fib(5) == 5 assert base.fib(10) == 55
22.583333
46
0.590406
45
271
3.511111
0.422222
0.443038
0.575949
0.177215
0
0
0
0
0
0
0
0.078049
0.243542
271
11
47
24.636364
0.692683
0
0
0
0
0
0
0
0
0
0
0
0.777778
0
null
null
0
0.111111
null
null
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
1
0
0
0
0
0
0
0
0
5
85e750c89acdfe9b5d3045e77d3d6bbf5e3d64c1
187
py
Python
src/spellbook/apps.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
src/spellbook/apps.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
src/spellbook/apps.py
adrienlina/dnd-spellbook
4356e3a36e4805bf89071a425259ca8d2c69ed92
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SpellbookConfig(AppConfig): name = 'spellbook' verbose_name = 'Spellbook' def ready(self): import spellbook.signals # NOQA
18.7
40
0.695187
20
187
6.45
0.75
0.20155
0
0
0
0
0
0
0
0
0
0
0.224599
187
9
41
20.777778
0.889655
0.02139
0
0
0
0
0.099448
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
c80d8cd3ae4476db1fa49b979328a62c02442e90
32
py
Python
test/login.py
liudelong123/liudelong
c32f43fe0dcaca9baa7206fe58d4ea8d5394e4a2
[ "MIT" ]
null
null
null
test/login.py
liudelong123/liudelong
c32f43fe0dcaca9baa7206fe58d4ea8d5394e4a2
[ "MIT" ]
null
null
null
test/login.py
liudelong123/liudelong
c32f43fe0dcaca9baa7206fe58d4ea8d5394e4a2
[ "MIT" ]
null
null
null
num1 = 10 Num2 = 20 num3 = 30 爸爸
8
9
0.625
7
32
2.857143
1
0
0
0
0
0
0
0
0
0
0
0.391304
0.28125
32
4
10
8
0.478261
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
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c81e955b23d58e7e632d1470f2fa2cfac4bdef57
13
py
Python
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
main.py
Unexecuted/replit_test
8fc78e332c7a060f9a3cb2f543913244081e95ac
[ "Apache-2.0" ]
null
null
null
print("bruh")
13
13
0.692308
2
13
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0
13
1
13
13
0.692308
0
0
0
0
0
0.285714
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
c830bc356cfe15aa6de5d2b3813e8c63836547a0
205
py
Python
dropbox/__init__.py
ali-darakjian/dropbox-sdk-python
a3fd60ec35b59ea1015e0057ee5874da8cb519f5
[ "MIT" ]
32
2015-11-06T02:59:41.000Z
2021-02-12T02:44:42.000Z
dropbox/__init__.py
ali-darakjian/dropbox-sdk-python
a3fd60ec35b59ea1015e0057ee5874da8cb519f5
[ "MIT" ]
14
2021-07-19T21:20:42.000Z
2022-03-31T21:18:09.000Z
dropbox/__init__.py
oneflower/dropbox-sdk-python
d5179c31345f413d067b33de9206fe7e8017388f
[ "MIT" ]
4
2016-03-05T15:18:14.000Z
2019-08-19T14:19:17.000Z
from __future__ import absolute_import from .dropbox import __version__, Dropbox, DropboxTeam, create_session # noqa: F401 from .oauth import DropboxOAuth2Flow, DropboxOAuth2FlowNoRedirect # noqa: F401
41
84
0.829268
22
205
7.272727
0.636364
0.1
0
0
0
0
0
0
0
0
0
0.044444
0.121951
205
4
85
51.25
0.844444
0.102439
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c852d077cac2f32d0126ba5f2dd584e998324e03
153
py
Python
train_compare_models.py
PointCloudYC/img-cls-tensorflow2
6f345a3ebcf39cc58b6851b520ee31efba77559a
[ "MIT" ]
4
2021-02-02T07:23:09.000Z
2022-02-24T02:46:02.000Z
train_compare_models.py
PointCloudYC/img-cls-tensorflow2
6f345a3ebcf39cc58b6851b520ee31efba77559a
[ "MIT" ]
null
null
null
train_compare_models.py
PointCloudYC/img-cls-tensorflow2
6f345a3ebcf39cc58b6851b520ee31efba77559a
[ "MIT" ]
null
null
null
# train 4 types of models, record the loss and metrics # define 4 models # train these models and handle loss and metrics # plotting # save to a table
19.125
54
0.745098
26
153
4.384615
0.692308
0.122807
0.245614
0
0
0
0
0
0
0
0
0.016667
0.215686
153
8
55
19.125
0.933333
0.915033
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
c08ecd1b974729fd0b29c08551b5723a206821e4
161
py
Python
aia/psf.py
MSKirk/aia
f8050adb3cd01a13e2a73b61a76d58ec4ad638c7
[ "BSD-3-Clause" ]
1
2020-06-28T15:32:28.000Z
2020-06-28T15:32:28.000Z
aia/psf.py
MSKirk/aia
f8050adb3cd01a13e2a73b61a76d58ec4ad638c7
[ "BSD-3-Clause" ]
null
null
null
aia/psf.py
MSKirk/aia
f8050adb3cd01a13e2a73b61a76d58ec4ad638c7
[ "BSD-3-Clause" ]
null
null
null
# # Implements the point spread function of the AIA channels as described in # Poduval et al, 2013, ApJ, 765, 144. # import numpy as np import astropy.units as u
26.833333
74
0.751553
28
161
4.321429
0.857143
0
0
0
0
0
0
0
0
0
0
0.076336
0.186335
161
6
75
26.833333
0.847328
0.670807
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c0acd3fc6b519ba078d1d02d877ce971f6c755c6
565
py
Python
swagger_server/controllers/authorization_controller.py
sgrade/words-api-python-flask
b078226588cf6c1700093b89a548543cf6308872
[ "MIT" ]
null
null
null
swagger_server/controllers/authorization_controller.py
sgrade/words-api-python-flask
b078226588cf6c1700093b89a548543cf6308872
[ "MIT" ]
null
null
null
swagger_server/controllers/authorization_controller.py
sgrade/words-api-python-flask
b078226588cf6c1700093b89a548543cf6308872
[ "MIT" ]
null
null
null
from typing import List """ controller generated to handled auth operation described at: https://connexion.readthedocs.io/en/latest/security.html """ def check_BasicAuth(username, password, required_scopes): return {'test_key': 'test_value'} def check_api_key(api_key, required_scopes): return {'test_key': 'test_value'} def check_wordstore_auth(token): return {'scopes': ['read:pets', 'write:pets'], 'uid': 'test_value'} def validate_scope_wordstore_auth(required_scopes, token_scopes): return set(required_scopes).issubset(set(token_scopes))
29.736842
71
0.761062
76
565
5.394737
0.552632
0.136585
0.087805
0.117073
0.214634
0.214634
0.214634
0.214634
0.214634
0
0
0
0.109735
565
18
72
31.388889
0.815109
0
0
0.222222
1
0
0.16895
0
0
0
0
0
0
1
0.444444
false
0.111111
0.111111
0.444444
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
5
239073c9a7bb24467f09219608706f02eb1d6f5e
285
py
Python
tests/emulated_modules/sub_module_1/sub_sample_1_1.py
alisaifee/hiro
e93551b575c10729766b077bb1a79b1f87436a4e
[ "MIT" ]
5
2017-03-16T06:55:38.000Z
2021-04-07T15:42:23.000Z
tests/emulated_modules/sub_module_1/sub_sample_1_1.py
alisaifee/hiro
e93551b575c10729766b077bb1a79b1f87436a4e
[ "MIT" ]
8
2017-01-12T12:26:58.000Z
2020-05-26T02:20:57.000Z
tests/emulated_modules/sub_module_1/sub_sample_1_1.py
alisaifee/hiro
e93551b575c10729766b077bb1a79b1f87436a4e
[ "MIT" ]
4
2016-06-20T11:32:14.000Z
2019-06-27T07:14:44.000Z
""" """ import datetime import time def sub_sample_1_1_now(): return datetime.datetime.now() def sub_sample_1_1_today(): return datetime.date.today() def sub_sample_1_1_sleep(seconds): datetime.time.sleep(seconds) def sub_sample_1_1_time(): return time.time()
12.954545
34
0.722807
44
285
4.318182
0.295455
0.126316
0.252632
0.273684
0.294737
0
0
0
0
0
0
0.033473
0.161404
285
21
35
13.571429
0.761506
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.3
0.9
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5