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
bdbac4dd986b8cd8f42855a568b8f69822a8a76a
6,527
py
Python
relational/student_projects/2020_borukhson/models/TransitiveInference/Trabasso.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
null
null
null
relational/student_projects/2020_borukhson/models/TransitiveInference/Trabasso.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
11
2020-05-04T09:05:29.000Z
2021-04-08T13:22:34.000Z
relational/student_projects/2020_borukhson/models/TransitiveInference/Trabasso.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
12
2020-05-02T09:36:14.000Z
2021-06-22T08:10:45.000Z
""" Transitive-Inference model implementation. """ import ccobra import random import numpy as np from modelfunctions import * def setEq(a, b): for aI in a: if aI not in b: return False for bI in b: if bI not in a: return False return True class Trabasso(ccobra.CCobraModel): """ News reasoning CCOBRA implementation. """ def __init__(self, name='Trabasso-Riley74'): """ Initializes the news reasoning model. Parameters ---------- name : str Unique name of the model. Will be used throughout the ORCA framework as a means for identifying the model. """ #Done; various other interpretations conceivable self.intArrs = [] self.h = 0.5 super().__init__(name, ['spatial-relational'], ['single-choice']) def predict(self, item, **kwargs): """ Predicts weighted responses to a given syllogism. """ # Generate and return the current prediction first, second = item.choices[0][0][0], item.choices[1][0][0] for array in self.intArrs: if first in array and second in array: if array.index(first) < array.index(second): chance = random.random() if chance < array.index(first)/max(0.0001,len(array)*self.h): return int(first) if chance < (len(array) - array.index(second))/max(0.0001,len(array)*self.h): return int(first) elif array.index(second) < array.index(first): chance = random.random() if chance < array.index(second)/max(0.0001,len(array)*self.h): return int(second) if chance < (len(array) - array.index(first))/max(0.0001,len(array)*self.h): return int(second) return int([first, second][np.random.randint(0, len([first, second]))]) def predictS(self, pair): first, second = pair for array in self.intArrs: if first in array and second in array: if array.index(first) < array.index(second): return max(array.index(first)/max(0.0001,len(array)*self.h), (len(array) - array.index(second))/max(0.0001,len(array)*self.h)) elif array.index(second) < array.index(first): return max(1 - array.index(second)/max(0.0001,len(array)*self.h), 1 - array.index(first)/max(0.0001,len(array)*self.h)) return 0.5 def adaptS(self, pair): first, second = sortedPair(pair) first, second = str(first), str(second) pairsFound = 0 for array in self.intArrs: if first in array and second in array: pairsFound += 1 if array.index(first) < array.index(second): return if array.index(first) > array.index(second): array[array.index(first)] = second array[array.index(second)] = first elif first in array: pairsFound += 1 newArrs = [array[:array.index(first)+1] + [second] + array[array.index(first)+1:]] for eachArray in self.intArrs: if not setEq(eachArray, array): newArrs.append(eachArray) self.intArrs = newArrs elif second in array: pairsFound += 1 newArrs = [array[:array.index(second)] + [first] + array[array.index(second):]] for eachArray in self.intArrs: if not setEq(eachArray, array): newArrs.append(eachArray) self.intArrs = newArrs for otherArray in self.intArrs: if array[0] == otherArray[-1]: newArrs = [otherArray[:-1] + array] for eachArray in self.intArrs: if not setEq(eachArray, otherArray): newArrs.append(eachArray) self.intArrs = newArrs if array[-1] == otherArray[0]: newArrs = [array[:-1] + otherArray] for eachArray in self.intArrs: if not setEq(eachArray, otherArray): newArrs.append(eachArray) self.intArrs = newArrs if pairsFound == 0: self.intArrs.append([first, second]) def adapt(self, item, target, **kwargs): first, second = sortedPair((item.choices[0][0][0], item.choices[1][0][0])) pairsFound = 0 for array in self.intArrs: if first in array and second in array: pairsFound += 1 if array.index(first) < array.index(second): return if array.index(first) > array.index(second): array[array.index(first)] = second array[array.index(second)] = first elif first in array: pairsFound += 1 newArrs = [array[:array.index(first)+1] + [second] + array[array.index(first)+1:]] for eachArray in self.intArrs: if not setEq(eachArray, array): newArrs.append(eachArray) self.intArrs = newArrs elif second in array: pairsFound += 1 newArrs = [array[:array.index(second)] + [first] + array[array.index(second):]] for eachArray in self.intArrs: if not setEq(eachArray, array): newArrs.append(eachArray) self.intArrs = newArrs for otherArray in self.intArrs: if array[0] == otherArray[-1]: newArrs = [otherArray[:-1] + array] for eachArray in self.intArrs: if not setEq(eachArray, otherArray): newArrs.append(eachArray) self.intArrs = newArrs if array[-1] == otherArray[0]: newArrs = [array[:-1] + otherArray] for eachArray in self.intArrs: if not setEq(eachArray, otherArray): newArrs.append(eachArray) self.intArrs = newArrs if pairsFound == 0: self.intArrs.append([first, second])
45.013793
146
0.513865
700
6,527
4.78
0.14
0.107591
0.080693
0.062762
0.748356
0.748356
0.741184
0.704722
0.702929
0.702929
0
0.021466
0.379041
6,527
144
147
45.326389
0.804096
0.064655
0
0.741935
0
0
0.007796
0
0
0
0
0
0
1
0.048387
false
0
0.032258
0
0.193548
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
da0468f7a5d289dde917f03cfa5d56b85dc2f4ae
2,726
py
Python
timeSerial/mlp/main.py
Patataman/Gw2PricePredictor
b07782e2d01e25208f2e20e225a2a2963dbe1f40
[ "MIT" ]
1
2022-03-20T21:49:27.000Z
2022-03-20T21:49:27.000Z
timeSerial/mlp/main.py
Patataman/Gw2PricePredictor
b07782e2d01e25208f2e20e225a2a2963dbe1f40
[ "MIT" ]
null
null
null
timeSerial/mlp/main.py
Patataman/Gw2PricePredictor
b07782e2d01e25208f2e20e225a2a2963dbe1f40
[ "MIT" ]
1
2021-01-20T10:37:48.000Z
2021-01-20T10:37:48.000Z
from mlp_class import mlp red_mlp = None while True: key = input("1. Crear una red para comprar\ \n2. Crear una red para vender\ \n3. Predecir precio (Necesaria una red)\ \n4. Salir\n >> ") if key == '1': objeto = input("Selecciona el objeto que quieres predecir (Escribe el número):\ \n\t- 19727\ \n\t- 24325\ \n\t- 24292\ \n\t- 24344\ \n\t- 24289\n") previos = input("Número par de objetos usados para predecir. Por defecto 10.\n") while int(previos)%2 != 0: previos = input("Te dije número par! >:( \n") iteraciones = input("Número de iteraciones para entrenar. Por defecto 100.\n") while int(iteraciones) <= 0: iteraciones = input("Pon un número grandote anda.\n") neuronas_ocultas = input("Número de neuronas ocultas. Por defecto 10.\n") while int(neuronas_ocultas) <= 0: neuronas_ocultas = input("Pon un número más mejor.\n") alpha = input("Ratio de aprendizaje. Por defecto 0.01.\n") while float(alpha) <= 0: alpha = input("Pon un número más mejor.\n") red_mlp = mlp('buy', objeto, int(previos), int(iteraciones), int(neuronas_ocultas), float(alpha)) print(">>> Red entrenada! <<<\n") elif key == '2': objeto = input("Selecciona el objeto que quieres predecir (Escribe el número):\ \n\t- 19727\ \n\t- 24325\ \n\t- 24292\ \n\t- 24344\ \n\t- 24289\n") previos = input("Número par de objetos usados para predecir. Por defecto 10.\n") while int(previos)%2 != 0: previos = input("Te dije número par! >:( \n") iteraciones = input("Número de iteraciones para entrenar. Por defecto 100.\n") while int(iteraciones) <= 0: iteraciones = input("Pon un número grandote anda.\n") neuronas_ocultas = input("Número de neuronas ocultas. Por defecto 10.\n") while int(neuronas_ocultas) <= 0: neuronas_ocultas = input("Pon un número más mejor.\n") alpha = input("Ratio de aprendizaje. Por defecto 0.01.\n") while float(alpha) <= 0: alpha = input("Pon un número más mejor.\n") red_mlp = mlp('sell', objeto, int(previos), int(iteraciones), int(neuronas_ocultas), float(alpha)) print(">>> Red entrenada! <<<\n") elif key == '3': pasos = input("Introduce cuantos pasos de 2h quieres predecir\n") print("El proximo valor será %s" % red_mlp.predict(int(pasos))) elif key == '4': print("Bye bye!") exit() else: print("%s no, eso caca.\n" % key)
38.942857
106
0.569699
358
2,726
4.301676
0.248603
0.012987
0.035065
0.062338
0.811688
0.811688
0.811688
0.811688
0.811688
0.811688
0
0.046427
0.296772
2,726
69
107
39.507246
0.756912
0
0
0.666667
0
0
0.285138
0
0
0
0
0
0
1
0
false
0
0.017544
0
0.017544
0.087719
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
da18c52a2693650f4dc489f44b85f78fe7e5969e
120
py
Python
jh_hpc_interface/__init__.py
pc2/JHub-HPC-Interface
6c205d2269d134dc3cbac55375eeec0ec586d921
[ "MIT" ]
2
2021-04-09T08:28:34.000Z
2021-04-09T11:12:08.000Z
jh_hpc_interface/__init__.py
pc2/JHub-HPC-Interface
6c205d2269d134dc3cbac55375eeec0ec586d921
[ "MIT" ]
null
null
null
jh_hpc_interface/__init__.py
pc2/JHub-HPC-Interface
6c205d2269d134dc3cbac55375eeec0ec586d921
[ "MIT" ]
null
null
null
from jh_hpc_interface.jh_interface import manageInstance from jh_hpc_interface.jh_environment import JupyterEnvironment
40
62
0.916667
16
120
6.5
0.5
0.115385
0.173077
0.346154
0.384615
0
0
0
0
0
0
0
0.066667
120
2
63
60
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
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
da2397c8e4d8f0dbdd49405e9a1e57d8ef73fe68
38
py
Python
test/system/benchmark/pos/__init__.py
iljoongkr/poseidonos
01ed7c323c4f6dbd99970f4b036ade2f0a4e4383
[ "BSD-3-Clause" ]
38
2021-04-06T03:20:55.000Z
2022-03-02T09:33:28.000Z
test/system/benchmark/pos/__init__.py
iljoongkr/poseidonos
01ed7c323c4f6dbd99970f4b036ade2f0a4e4383
[ "BSD-3-Clause" ]
19
2021-04-08T02:27:44.000Z
2022-03-23T00:59:04.000Z
test/system/benchmark/pos/__init__.py
iljoongkr/poseidonos
01ed7c323c4f6dbd99970f4b036ade2f0a4e4383
[ "BSD-3-Clause" ]
28
2021-04-08T04:39:18.000Z
2022-03-24T05:56:00.000Z
from .env import * from .cli import *
12.666667
18
0.684211
6
38
4.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.210526
38
2
19
19
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
da3a1f1214fb5a0f44a5ab80ae2b8a8e4adc82ef
11,304
py
Python
python/fonts.py
wyojustin/WorldClock
2a2b0c40c0f5bbaded5cef0553cc61436d1fec7d
[ "Apache-2.0" ]
null
null
null
python/fonts.py
wyojustin/WorldClock
2a2b0c40c0f5bbaded5cef0553cc61436d1fec7d
[ "Apache-2.0" ]
null
null
null
python/fonts.py
wyojustin/WorldClock
2a2b0c40c0f5bbaded5cef0553cc61436d1fec7d
[ "Apache-2.0" ]
null
null
null
font_5x6 = [ [0x00,0x00,0x00,0x00,0x00,0x00], # [0x5c,0x00,0x00,0x00,0x00,0x00], # ! [0x06,0x00,0x06,0x00,0x00,0x00], # " [0x28,0x7c,0x28,0x7c,0x28,0x00], # # [0x5c,0x54,0xfe,0x54,0x74,0x00], # $ [0x44,0x20,0x10,0x08,0x44,0x00], # % [0x28,0x54,0x54,0x20,0x50,0x00], # & [0x06,0x00,0x00,0x00,0x00,0x00], # ' [0x38,0x44,0x00,0x00,0x00,0x00], # ( [0x44,0x38,0x00,0x00,0x00,0x00], # ) [0x02,0x07,0x02,0x00,0x00,0x00], # * [0x10,0x10,0x7c,0x10,0x10,0x00], # + [0xc0,0x00,0x00,0x00,0x00,0x00], # , [0x10,0x10,0x10,0x10,0x10,0x00], # - [0x40,0x00,0x00,0x00,0x00,0x00], # . [0x60,0x10,0x0c,0x00,0x00,0x00], # / [0x7c,0x64,0x54,0x4c,0x7c,0x00], # 0 [0x48,0x7c,0x40,0x00,0x00,0x00], # 1 [0x64,0x54,0x54,0x54,0x48,0x00], # 2 [0x44,0x54,0x54,0x54,0x6c,0x00], # 3 [0x3c,0x20,0x70,0x20,0x20,0x00], # 4 [0x5c,0x54,0x54,0x54,0x24,0x00], # 5 [0x7c,0x54,0x54,0x54,0x74,0x00], # 6 [0x04,0x04,0x64,0x14,0x0c,0x00], # 7 [0x7c,0x54,0x54,0x54,0x7c,0x00], # 8 [0x5c,0x54,0x54,0x54,0x7c,0x00], # 9 [0x44,0x00,0x00,0x00,0x00,0x00], # : [0xc4,0x00,0x00,0x00,0x00,0x00], # ; [0x10,0x28,0x44,0x00,0x00,0x00], # < [0x28,0x28,0x28,0x28,0x28,0x00], # = [0x44,0x28,0x10,0x00,0x00,0x00], # > [0x08,0x04,0x54,0x08,0x00,0x00], # ? [0x7c,0x44,0x54,0x54,0x5c,0x00], # @ [0x7c,0x24,0x24,0x24,0x7c,0x00], # A [0x7c,0x54,0x54,0x54,0x6c,0x00], # B [0x7c,0x44,0x44,0x44,0x44,0x00], # C [0x7c,0x44,0x44,0x44,0x38,0x00], # D [0x7c,0x54,0x54,0x54,0x44,0x00], # E [0x7c,0x14,0x14,0x14,0x04,0x00], # F [0x7c,0x44,0x44,0x54,0x74,0x00], # G [0x7c,0x10,0x10,0x10,0x7c,0x00], # H [0x44,0x44,0x7c,0x44,0x44,0x00], # I [0x60,0x40,0x40,0x44,0x7c,0x00], # J [0x7c,0x10,0x10,0x28,0x44,0x00], # K [0x7c,0x40,0x40,0x40,0x40,0x00], # L [0x7c,0x08,0x10,0x08,0x7c,0x00], # M [0x7c,0x08,0x10,0x20,0x7c,0x00], # N [0x38,0x44,0x44,0x44,0x38,0x00], # O [0x7c,0x14,0x14,0x14,0x08,0x00], # P [0x3c,0x24,0x64,0x24,0x3c,0x00], # Q [0x7c,0x14,0x14,0x14,0x68,0x00], # R [0x5c,0x54,0x54,0x54,0x74,0x00], # S [0x04,0x04,0x7c,0x04,0x04,0x00], # T [0x7c,0x40,0x40,0x40,0x7c,0x00], # U [0x0c,0x30,0x40,0x30,0x0c,0x00], # V [0x3c,0x40,0x30,0x40,0x3c,0x00], # W [0x44,0x28,0x10,0x28,0x44,0x00], # X [0x0c,0x10,0x60,0x10,0x0c,0x00], # Y [0x44,0x64,0x54,0x4c,0x44,0x00], # Z [0x7c,0x44,0x00,0x00,0x00,0x00], # [ [0x0c,0x10,0x60,0x00,0x00,0x00], # "\" [0x44,0x7c,0x00,0x00,0x00,0x00], # ] [0x00,0x01,0x00,0x01,0x00,0x00], # ^ [0x40,0x40,0x40,0x40,0x40,0x40], # _ [0x00,0x01,0x00,0x00,0x00,0x00], # ` [0x7c,0x24,0x24,0x24,0x7c,0x00], # a [0x7c,0x54,0x54,0x54,0x6c,0x00], # b [0x7c,0x44,0x44,0x44,0x44,0x00], # c [0x7c,0x44,0x44,0x44,0x38,0x00], # d [0x7c,0x54,0x54,0x54,0x44,0x00], # e [0x7c,0x14,0x14,0x14,0x04,0x00], # f [0x7c,0x44,0x44,0x54,0x74,0x00], # g [0x7c,0x10,0x10,0x10,0x7c,0x00], # h [0x44,0x44,0x7c,0x44,0x44,0x00], # i [0x60,0x40,0x40,0x44,0x7c,0x00], # j [0x7c,0x10,0x10,0x28,0x44,0x00], # k [0x7c,0x40,0x40,0x40,0x40,0x00], # l [0x7c,0x08,0x10,0x08,0x7c,0x00], # m [0x7c,0x08,0x10,0x20,0x7c,0x00], # n [0x38,0x44,0x44,0x44,0x38,0x00], # o [0x7c,0x14,0x14,0x14,0x08,0x00], # p [0x3c,0x24,0x64,0x24,0x3c,0x00], # q [0x7c,0x14,0x14,0x14,0x68,0x00], # r [0x5c,0x54,0x54,0x54,0x74,0x00], # s [0x04,0x04,0x7c,0x04,0x04,0x00], # t [0x7c,0x40,0x40,0x40,0x7c,0x00], # u [0x0c,0x30,0x40,0x30,0x0c,0x00], # v [0x3c,0x40,0x30,0x40,0x3c,0x00], # w [0x44,0x28,0x10,0x28,0x44,0x00], # x [0x0c,0x10,0x60,0x10,0x0c,0x00], # y [0x44,0x64,0x54,0x4c,0x44,0x00], # z [0x10,0x7c,0x44,0x00,0x00,0x00], # [ [0x6c,0x00,0x00,0x00,0x00,0x00], # | [0x44,0x7c,0x10,0x00,0x00,0x00], # ] [0x02,0x01,0x02,0x01,0x00,0x00], # ~ [0x00,0x00,0x00,0x00,0x00,0x00] ] font_7x13 = [ [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00],# space :32 0 [0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18],# ! :33 [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x36, 0x36, 0x36], [0x00, 0x00, 0x00, 0x66, 0x66, 0xff, 0x66, 0x66, 0xff, 0x66, 0x66, 0x00, 0x00], [0x00, 0x00, 0x18, 0x7e, 0xff, 0x1b, 0x1f, 0x7e, 0xf8, 0xd8, 0xff, 0x7e, 0x18], [0x00, 0x00, 0x0e, 0x1b, 0xdb, 0x6e, 0x30, 0x18, 0x0c, 0x76, 0xdb, 0xd8, 0x70], [0x00, 0x00, 0x7f, 0xc6, 0xcf, 0xd8, 0x70, 0x70, 0xd8, 0xcc, 0xcc, 0x6c, 0x38], [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x1c, 0x0c, 0x0e], [0x00, 0x00, 0x0c, 0x18, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x18, 0x0c], [0x00, 0x00, 0x30, 0x18, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x18, 0x30], [0x00, 0x00, 0x00, 0x00, 0x99, 0x5a, 0x3c, 0xff, 0x3c, 0x5a, 0x99, 0x00, 0x00], [0x00, 0x00, 0x00, 0x18, 0x18, 0x18, 0xff, 0xff, 0x18, 0x18, 0x18, 0x00, 0x00], [0x00, 0x00, 0x30, 0x18, 0x1c, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x60, 0x60, 0x30, 0x30, 0x18, 0x18, 0x0c, 0x0c, 0x06, 0x06, 0x03, 0x03], [0x00, 0x00, 0x3c, 0x66, 0xc3, 0xe3, 0xf3, 0xdb, 0xcf, 0xc7, 0xc3, 0x66, 0x3c], [0x00, 0x00, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x78, 0x38, 0x18], [0x00, 0x00, 0xff, 0xc0, 0xc0, 0x60, 0x30, 0x18, 0x0c, 0x06, 0x03, 0xe7, 0x7e], [0x00, 0x00, 0x7e, 0xe7, 0x03, 0x03, 0x07, 0x7e, 0x07, 0x03, 0x03, 0xe7, 0x7e], [0x00, 0x00, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0xff, 0xcc, 0x6c, 0x3c, 0x1c, 0x0c], [0x00, 0x00, 0x7e, 0xe7, 0x03, 0x03, 0x07, 0xfe, 0xc0, 0xc0, 0xc0, 0xc0, 0xff], [0x00, 0x00, 0x7e, 0xe7, 0xc3, 0xc3, 0xc7, 0xfe, 0xc0, 0xc0, 0xc0, 0xe7, 0x7e], [0x00, 0x00, 0x30, 0x30, 0x30, 0x30, 0x18, 0x0c, 0x06, 0x03, 0x03, 0x03, 0xff], [0x00, 0x00, 0x7e, 0xe7, 0xc3, 0xc3, 0xe7, 0x7e, 0xe7, 0xc3, 0xc3, 0xe7, 0x7e], [0x00, 0x00, 0x7e, 0xe7, 0x03, 0x03, 0x03, 0x7f, 0xe7, 0xc3, 0xc3, 0xe7, 0x7e], [0x00, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x30, 0x18, 0x1c, 0x1c, 0x00, 0x00, 0x1c, 0x1c, 0x00, 0x00, 0x00], [0x00, 0x00, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, 0x60, 0x30, 0x18, 0x0c, 0x06], [0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x60, 0x30, 0x18, 0x0c, 0x06, 0x03, 0x06, 0x0c, 0x18, 0x30, 0x60], [0x00, 0x00, 0x18, 0x00, 0x00, 0x18, 0x18, 0x0c, 0x06, 0x03, 0xc3, 0xc3, 0x7e], [0x00, 0x00, 0x3f, 0x60, 0xcf, 0xdb, 0xd3, 0xdd, 0xc3, 0x7e, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc3, 0xc3, 0xc3, 0xc3, 0xff, 0xc3, 0xc3, 0xc3, 0x66, 0x3c, 0x18], [0x00, 0x00, 0xfe, 0xc7, 0xc3, 0xc3, 0xc7, 0xfe, 0xc7, 0xc3, 0xc3, 0xc7, 0xfe], [0x00, 0x00, 0x7e, 0xe7, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xe7, 0x7e], [0x00, 0x00, 0xfc, 0xce, 0xc7, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc7, 0xce, 0xfc], [0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xc0, 0xfc, 0xc0, 0xc0, 0xc0, 0xc0, 0xff], [0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xfc, 0xc0, 0xc0, 0xc0, 0xff], [0x00, 0x00, 0x7e, 0xe7, 0xc3, 0xc3, 0xcf, 0xc0, 0xc0, 0xc0, 0xc0, 0xe7, 0x7e], [0x00, 0x00, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xff, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3], [0x00, 0x00, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x7e], [0x00, 0x00, 0x7c, 0xee, 0xc6, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06], [0x00, 0x00, 0xc3, 0xc6, 0xcc, 0xd8, 0xf0, 0xe0, 0xf0, 0xd8, 0xcc, 0xc6, 0xc3], [0x00, 0x00, 0xff, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0], [0x00, 0x00, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xdb, 0xff, 0xff, 0xe7, 0xc3], [0x00, 0x00, 0xc7, 0xc7, 0xcf, 0xcf, 0xdf, 0xdb, 0xfb, 0xf3, 0xf3, 0xe3, 0xe3], [0x00, 0x00, 0x7e, 0xe7, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xe7, 0x7e], [0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xfe, 0xc7, 0xc3, 0xc3, 0xc7, 0xfe], [0x00, 0x00, 0x3f, 0x6e, 0xdf, 0xdb, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0x66, 0x3c], [0x00, 0x00, 0xc3, 0xc6, 0xcc, 0xd8, 0xf0, 0xfe, 0xc7, 0xc3, 0xc3, 0xc7, 0xfe], [0x00, 0x00, 0x7e, 0xe7, 0x03, 0x03, 0x07, 0x7e, 0xe0, 0xc0, 0xc0, 0xe7, 0x7e], [0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0xff], [0x00, 0x00, 0x7e, 0xe7, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3], [0x00, 0x00, 0x18, 0x3c, 0x3c, 0x66, 0x66, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3], [0x00, 0x00, 0xc3, 0xe7, 0xff, 0xff, 0xdb, 0xdb, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3], [0x00, 0x00, 0xc3, 0x66, 0x66, 0x3c, 0x3c, 0x18, 0x3c, 0x3c, 0x66, 0x66, 0xc3], [0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x3c, 0x3c, 0x66, 0x66, 0xc3], [0x00, 0x00, 0xff, 0xc0, 0xc0, 0x60, 0x30, 0x7e, 0x0c, 0x06, 0x03, 0x03, 0xff], [0x00, 0x00, 0x3c, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x3c], [0x00, 0x03, 0x03, 0x06, 0x06, 0x0c, 0x0c, 0x18, 0x18, 0x30, 0x30, 0x60, 0x60], [0x00, 0x00, 0x3c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x3c], [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x66, 0x3c, 0x18], [0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0x30, 0x70], [0x00, 0x00, 0x7f, 0xc3, 0xc3, 0x7f, 0x03, 0xc3, 0x7e, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xfe, 0xc3, 0xc3, 0xc3, 0xc3, 0xfe, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0], [0x00, 0x00, 0x7e, 0xc3, 0xc0, 0xc0, 0xc0, 0xc3, 0x7e, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x7f, 0xc3, 0xc3, 0xc3, 0xc3, 0x7f, 0x03, 0x03, 0x03, 0x03, 0x03], [0x00, 0x00, 0x7f, 0xc0, 0xc0, 0xfe, 0xc3, 0xc3, 0x7e, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0xfc, 0x30, 0x30, 0x30, 0x33, 0x1e], [0x7e, 0xc3, 0x03, 0x03, 0x7f, 0xc3, 0xc3, 0xc3, 0x7e, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xc3, 0xfe, 0xc0, 0xc0, 0xc0, 0xc0], [0x00, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00, 0x00, 0x18, 0x00], [0x38, 0x6c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x00, 0x00, 0x0c, 0x00], [0x00, 0x00, 0xc6, 0xcc, 0xf8, 0xf0, 0xd8, 0xcc, 0xc6, 0xc0, 0xc0, 0xc0, 0xc0], [0x00, 0x00, 0x7e, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x78], [0x00, 0x00, 0xdb, 0xdb, 0xdb, 0xdb, 0xdb, 0xdb, 0xfe, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xfc, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x7c, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x7c, 0x00, 0x00, 0x00, 0x00], [0xc0, 0xc0, 0xc0, 0xfe, 0xc3, 0xc3, 0xc3, 0xc3, 0xfe, 0x00, 0x00, 0x00, 0x00], [0x03, 0x03, 0x03, 0x7f, 0xc3, 0xc3, 0xc3, 0xc3, 0x7f, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xe0, 0xfe, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xfe, 0x03, 0x03, 0x7e, 0xc0, 0xc0, 0x7f, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x1c, 0x36, 0x30, 0x30, 0x30, 0x30, 0xfc, 0x30, 0x30, 0x30, 0x00], [0x00, 0x00, 0x7e, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0xc6, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x18, 0x3c, 0x3c, 0x66, 0x66, 0xc3, 0xc3, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc3, 0xe7, 0xff, 0xdb, 0xc3, 0xc3, 0xc3, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xc3, 0x66, 0x3c, 0x18, 0x3c, 0x66, 0xc3, 0x00, 0x00, 0x00, 0x00], [0xc0, 0x60, 0x60, 0x30, 0x18, 0x3c, 0x66, 0x66, 0xc3, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0xff, 0x60, 0x30, 0x18, 0x0c, 0x06, 0xff, 0x00, 0x00, 0x00, 0x00], [0x00, 0x00, 0x0f, 0x18, 0x18, 0x18, 0x38, 0xf0, 0x38, 0x18, 0x18, 0x18, 0x0f], [0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18], [0x00, 0x00, 0xf0, 0x18, 0x18, 0x18, 0x1c, 0x0f, 0x1c, 0x18, 0x18, 0x18, 0xf0], [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x8f, 0xf1, 0x60, 0x00, 0x00, 0x00] ] # :126
57.380711
92
0.649062
1,882
11,304
3.896918
0.062699
0.374148
0.361603
0.344696
0.775566
0.667576
0.589037
0.47832
0.381783
0.311426
0
0.485676
0.144639
11,304
196
93
57.673469
0.272831
0.018666
0
0.266667
0
0
0
0
0
0
0.659085
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
6
da3e7985da6fe7af1743ec9a51897e69a8ad933b
79
py
Python
faceformer/models/__init__.py
manycore-research/faceformer
d0dd196013db034ecd74c3150aed2b89e4a84fc3
[ "MIT" ]
27
2022-03-04T15:37:41.000Z
2022-03-30T08:20:47.000Z
faceformer/models/__init__.py
manycore-research/faceformer
d0dd196013db034ecd74c3150aed2b89e4a84fc3
[ "MIT" ]
null
null
null
faceformer/models/__init__.py
manycore-research/faceformer
d0dd196013db034ecd74c3150aed2b89e4a84fc3
[ "MIT" ]
2
2022-03-10T05:47:08.000Z
2022-03-10T18:48:48.000Z
from .model import SurfaceFormer from .model_para import SurfaceFormer_Parallel
39.5
46
0.886076
10
79
6.8
0.6
0.264706
0
0
0
0
0
0
0
0
0
0
0.088608
79
2
46
39.5
0.944444
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
e54082d4f9dfd2235250b4dda22fdd8b665b0bd7
41
py
Python
inverse_covariance/pyquic/__init__.py
aldanor/skggm
d2e29d692d1654285653ab07fd24534628fcb076
[ "MIT" ]
199
2016-10-21T14:36:02.000Z
2022-03-29T20:59:08.000Z
inverse_covariance/pyquic/__init__.py
aldanor/skggm
d2e29d692d1654285653ab07fd24534628fcb076
[ "MIT" ]
66
2016-10-17T01:47:28.000Z
2022-03-06T11:02:56.000Z
inverse_covariance/pyquic/__init__.py
aldanor/skggm
d2e29d692d1654285653ab07fd24534628fcb076
[ "MIT" ]
36
2016-10-15T23:42:10.000Z
2022-03-06T00:03:13.000Z
from .pyquic import quic # NOQA # NOQA
20.5
40
0.682927
6
41
4.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.243902
41
1
41
41
0.903226
0.268293
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
e5a8c8ecb432638a6b5bf5c0b1672a3962ecbdca
39,224
py
Python
tests/vmf_converter_test.py
project-schumann/nmf-converter-core
31592bdcf75e4a09e60848be0024c0f2c331e2f6
[ "MIT" ]
null
null
null
tests/vmf_converter_test.py
project-schumann/nmf-converter-core
31592bdcf75e4a09e60848be0024c0f2c331e2f6
[ "MIT" ]
37
2015-01-20T19:05:12.000Z
2015-05-09T13:28:02.000Z
tests/vmf_converter_test.py
project-schumann/vmf-converter
31592bdcf75e4a09e60848be0024c0f2c331e2f6
[ "MIT" ]
null
null
null
import unittest import json from music21 import converter from music21 import duration from music21.chord import Chord from music21.meter import TimeSignature from music21.note import Note, Rest from music21.key import KeySignature from music21.tempo import MetronomeMark from vmf_converter.core import vmf_converter_core class vmfConverterTest(unittest.TestCase): """Test Class for vmf_converter_core module""" def test_convert_score_to_vmf_001(self): """ Tests the conversion of a score stream to an vmf data structure. """ score = converter.parse('./fixtures/simple.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/simple.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_002(self): """ Tests the conversion of a score stream with ties to a vmf data structure. """ score = converter.parse('./fixtures/ties.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/ties.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_003(self): """ Tests the conversion of a score stream with triplets to a vmf data structure. """ score = converter.parse('./fixtures/triplets.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/triplets.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_004(self): """ Tests the conversion of a score stream with duplets to a vmf data structure. """ score = converter.parse('./fixtures/duplets.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/duplets.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_005(self): """ Tests the conversion of a score stream with quintuplets to a vmf data structure. """ score = converter.parse('./fixtures/quintuplets.xml') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/quintuplets.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_006(self): """ Tests the conversion of a score stream with a simple to simple meter change to a vmf data structure. """ score = converter.parse('./fixtures/SimpleToSimple.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/SimpleToSimple.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) print(actual) assert expected == actual def test_convert_score_to_vmf_007(self): """ Tests the conversion of a score stream with a compound to compound meter change to a vmf data structure. """ score = converter.parse('./fixtures/CompoundToCompound.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/CompoundToCompound.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) print(actual) assert expected == actual def test_convert_score_to_vmf_008(self): """ Tests the conversion of a score stream with a simple to compound meter change to a vmf data structure. """ score = converter.parse('./fixtures/SimpleToCompound.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/SimpleToCompound.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_009(self): """ Tests the conversion of a score stream with a compound to simple meter change to a vmf data structure. """ score = converter.parse('./fixtures/CompoundToSimple.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/CompoundToSimple.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_010(self): """ Tests the conversion of a score stream with chords to a vmf data structure. """ score = converter.parse('./fixtures/chords.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/chords.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_011(self): """ Tests the conversion of a score stream with multiple voices to a vmf data structure. """ score = converter.parse('./fixtures/voices.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/voices.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_012(self): """ Tests the conversion of a score stream with dynamics to a vmf data structure. """ score = converter.parse('./fixtures/dynamics.mid') first_phrase = score.measures(0, 5) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/dynamics.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_013(self): """ Tests the conversion of a score stream with dynamics to a vmf data structure. """ score = converter.parse('./fixtures/dottedQuarter.mid') first_phrase = score.measures(0, 2) actual = vmf_converter_core.convert_score_to_vmf(first_phrase) with open('./expected/dottedQuarter.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_014(self): """ Tests a key signature change. """ score = converter.parse('./fixtures/keyChange.mid') actual = vmf_converter_core.convert_score_to_vmf(score) with open('./expected/keyChange.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_015(self): """ Tests a tempo change. """ score = converter.parse('./fixtures/tempoChange.mid') actual = vmf_converter_core.convert_score_to_vmf(score) with open('./expected/tempoChange.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_016(self): """ Tests an explicit anacrusis. """ score = converter.parse('./fixtures/anacrusis2.xml') actual = vmf_converter_core.convert_score_to_vmf(score) with open('./expected/anacrusis.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_017(self): """ Tests the conversion of a score stream with chords and sustained notes.. """ score = converter.parse('./fixtures/chordsAndSustain.xml') actual = vmf_converter_core.convert_score_to_vmf(score) with open('./expected/chordsAndSustain.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_convert_score_to_vmf_018(self): """ Tests the conversion of a score stream with syncopated chords.. """ score = converter.parse('./fixtures/syncopated.xml') actual = vmf_converter_core.convert_score_to_vmf(score) with open('./expected/syncopated.vmf', 'r') as expected_file: expected_json = expected_file.read() expected = json.loads(expected_json) assert expected == actual def test_scan_score_durations_001(self): """ Tests the scanning function which pre-analyzes the score to determine the smallest necessary note value to accurately encode the score as a vmf. """ score = converter.parse('./fixtures/aus_meines_herz.mid') shortest_duration = vmf_converter_core.scan_score_durations(score) assert shortest_duration == duration.convertTypeToQuarterLength('eighth') def test_scan_score_for_largest_chord_001(self): """ Tests the scanning function which pre-analyzes the score to determine the largest chord size. """ score = converter.parse('./fixtures/chords.mid') largest_chord_size = vmf_converter_core.scan_score_for_largest_chord(score) assert largest_chord_size == 3 def test_scan_score_for_number_of_voices_001(self): """ Tests the scanning function which pre-analyzes the score to determine the number of voices in each part. """ score = converter.parse('./fixtures/voices.mid') first_phrase = score.measures(0, 2) number_of_parts = vmf_converter_core.scan_score_for_number_of_voices(first_phrase) assert number_of_parts == 3 def test_convert_vmf_to_midi_001(self): """ Tests the conversion of a simple vmf file to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/simple.vmf') expected_score = converter.parse('./fixtures/simple.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_002(self): """ Tests the conversion of a vmf file with ties to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/ties.vmf') expected_score = converter.parse('./fixtures/ties.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_003(self): """ Tests the conversion of a vmf file with rhythmic dots to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/dottedQuarter.vmf') expected_score = converter.parse('./fixtures/dottedQuarter.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_004(self): """ Tests the conversion of a vmf file with triplets to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/triplets.vmf') expected_score = converter.parse('./fixtures/triplets.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_005(self): """ Tests the conversion of a vmf file with duplets to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/duplets.vmf') expected_score = converter.parse('./fixtures/duplets.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_006(self): """ Tests the conversion of a vmf file with a simple to simple meter change to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/SimpleToSimple.vmf') expected_score = converter.parse('./fixtures/SimpleToSimple.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the time signatures are encoded. expected_time_signatures = expected_score.flat.getElementsByClass(TimeSignature) actual_time_signatures = actual_score.flat.getElementsByClass(TimeSignature) # Ensure we have the right number of time signatures. assert len(expected_time_signatures) == len(actual_time_signatures) for expected, actual in zip(expected_time_signatures, actual_time_signatures): assert expected.ratioString == actual.ratioString assert expected.offset == actual.offset def test_convert_vmf_to_midi_007(self): """ Tests the conversion of a vmf file with a compound to compound meter change to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/CompoundToCompound.vmf') expected_score = converter.parse('./fixtures/CompoundToCompound.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the time signatures are encoded. expected_time_signatures = expected_score.flat.getElementsByClass(TimeSignature) actual_time_signatures = actual_score.flat.getElementsByClass(TimeSignature) # Ensure we have the right number of time signatures. assert len(expected_time_signatures) == len(actual_time_signatures) for expected, actual in zip(expected_time_signatures, actual_time_signatures): assert expected.ratioString == actual.ratioString assert expected.offset == actual.offset def test_convert_vmf_to_midi_008(self): """ Tests the conversion of a vmf file with a simple to compound meter change to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/SimpleToCompound.vmf') expected_score = converter.parse('./fixtures/SimpleToCompound.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the time signatures are encoded. expected_time_signatures = expected_score.flat.getElementsByClass(TimeSignature) actual_time_signatures = actual_score.flat.getElementsByClass(TimeSignature) # Ensure we have the right number of time signatures. assert len(expected_time_signatures) == len(actual_time_signatures) for expected, actual in zip(expected_time_signatures, actual_time_signatures): assert expected.ratioString == actual.ratioString assert expected.offset == actual.offset def test_convert_vmf_to_midi_009(self): """ Tests the conversion of a vmf file with a compound to simple meter change to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/CompoundToSimple.vmf') expected_score = converter.parse('./fixtures/CompoundToSimple.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the time signatures are encoded. expected_time_signatures = expected_score.flat.getElementsByClass(TimeSignature) actual_time_signatures = actual_score.flat.getElementsByClass(TimeSignature) # Ensure we have the right number of time signatures. assert len(expected_time_signatures) == len(actual_time_signatures) for expected, actual in zip(expected_time_signatures, actual_time_signatures): assert expected.ratioString == actual.ratioString assert expected.offset == actual.offset def test_convert_vmf_to_midi_010(self): """ Tests the conversion of a vmf file with chords to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/chords.vmf') expected_score = converter.parse('./fixtures/chords.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Chord: assert len(expected_element.pitches) == len(actual_element.pitches) assert expected_element.quarterLength == actual_element.quarterLength for actual_pitch, expected_pitch in zip(expected_element.pitches, actual_element.pitches): assert expected_pitch.pitchClass == actual_pitch.pitchClass assert expected_pitch.octave == actual_pitch.octave if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the time signatures are encoded. expected_time_signatures = expected_score.flat.getElementsByClass(TimeSignature) actual_time_signatures = actual_score.flat.getElementsByClass(TimeSignature) # Ensure we have the right number of time signatures. assert len(expected_time_signatures) == len(actual_time_signatures) for expected, actual in zip(expected_time_signatures, actual_time_signatures): assert expected.ratioString == actual.ratioString assert expected.offset == actual.offset def test_convert_vmf_to_midi_011(self): """ Tests the conversion of a vmf file with multiple voices to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/voices.vmf') expected_score = converter.parse('./fixtures/voices.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Chord: assert len(expected_element.pitches) == len(actual_element.pitches) assert expected_element.quarterLength == actual_element.quarterLength for actual_pitch, expected_pitch in zip(expected_element.pitches, actual_element.pitches): assert expected_pitch.pitchClass == actual_pitch.pitchClass assert expected_pitch.octave == actual_pitch.octave if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_012(self): """ Tests the conversion of a vmf file with dynamics to a midi file. """ actual_score = vmf_converter_core.read_vmf_file('./expected/dynamics.vmf') expected_score = converter.parse('./fixtures/dynamics.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Chord: assert len(expected_element.pitches) == len(actual_element.pitches) assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.volume.velocity == actual_element.volume.velocity for actual_pitch, expected_pitch in zip(expected_element.pitches, actual_element.pitches): assert expected_pitch.pitchClass == actual_pitch.pitchClass assert expected_pitch.octave == actual_pitch.octave elif type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave assert expected_element.volume.velocity == actual_element.volume.velocity elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_convert_vmf_to_midi_013(self): """ Tests a key signature change. """ actual_score = vmf_converter_core.read_vmf_file('./expected/keyChange.vmf') expected_score = converter.parse('./fixtures/keyChange.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the key signatures are encoded. expected_key_signatures = expected_score.flat.getElementsByClass(KeySignature) actual_key_signatures = actual_score.flat.getElementsByClass(KeySignature) # Ensure we have the right number of key signatures. assert len(expected_key_signatures) == len(actual_key_signatures) for expected, actual in zip(expected_key_signatures, actual_key_signatures): assert expected.sharps == actual.sharps assert expected.offset == actual.offset def test_convert_vmf_to_midi_014(self): """ Tests a tempo change. """ actual_score = vmf_converter_core.read_vmf_file('./expected/tempoChange.vmf') expected_score = converter.parse('./fixtures/tempoChange.mid') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength # Check that the tempos are encoded. expected_tempos = expected_score.flat.getElementsByClass(MetronomeMark) actual_tempos = actual_score.flat.getElementsByClass(MetronomeMark) # Ensure we have the right number of tempos. assert len(expected_tempos) == len(actual_tempos) for expected, actual in zip(expected_tempos, actual_tempos): assert expected.number == actual.number assert expected.offset == actual.offset def test_read_vmf_string_001(self): """ Tests reading a VMF file with articulations """ actual_score = vmf_converter_core.read_vmf_file('./expected/articulation.vmf') expected_score = converter.parse('./fixtures/articulation.xml') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Chord: assert len(expected_element.pitches) == len(actual_element.pitches) assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.volume.velocity == actual_element.volume.velocity for actual_pitch, expected_pitch in zip(expected_element.pitches, actual_element.pitches): assert expected_pitch.pitchClass == actual_pitch.pitchClass assert expected_pitch.octave == actual_pitch.octave elif type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave # Equality on articulations is not well implemented in music21. for a, b in zip(expected_element.articulations, actual_element.articulations): assert type(a) == type(b) elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_read_vmf_string_002(self): """ Tests reading a VMF file with a pickup measure. """ actual_score = vmf_converter_core.read_vmf_file('./expected/anacrusis.vmf') expected_score = converter.parse('./fixtures/anacrusis.xml') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_read_vmf_string_003(self): """ Tests reading a VMF file with a pickup and a measure of rests. """ actual_score = vmf_converter_core.read_vmf_file('./expected/anacrusisAndRests.vmf') expected_score = converter.parse('./fixtures/anacrusisAndRests.xml') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_read_vmf_string_004(self): """ Tests reading a VMF file with a quintuplet. """ actual_score = vmf_converter_core.read_vmf_file('./expected/quintuplets.vmf') expected_score = converter.parse('./fixtures/quintuplets.xml') # Assert that the file has the right number of parts. assert len(expected_score.parts) == len(actual_score.parts) # Assert that the notes and rests match for expected, actual in zip(expected_score.parts, actual_score.parts): for expected_element, actual_element in zip(expected.flat.notesAndRests.elements, actual.flat.notesAndRests.elements): if type(expected_element) is Note: assert expected_element.quarterLength == actual_element.quarterLength assert expected_element.pitch.pitchClass == actual_element.pitch.pitchClass assert expected_element.pitch.octave == actual_element.pitch.octave elif type(expected_element) is Rest: assert expected_element.quarterLength == actual_element.quarterLength def test_find_number_of_notes_in_tick_001(self): """ Tests finding the number of notes in a tick """ tick = [1,-1,0,0,4,-1,-1,-1,-1,0] number_of_notes = vmf_converter_core.find_number_of_notes_in_tick(tick) assert number_of_notes == 1 def test_find_number_of_notes_in_tick_002(self): """ Tests finding the number of notes in a tick """ tick = [1,-1,0,0,4,0,0,-1,-1,0] number_of_notes = vmf_converter_core.find_number_of_notes_in_tick(tick) assert number_of_notes == 2
48.604709
130
0.667678
4,543
39,224
5.544354
0.041382
0.086946
0.065865
0.033349
0.919922
0.910394
0.85767
0.845641
0.840956
0.798992
0
0.006582
0.256297
39,224
807
131
48.604709
0.856878
0.134051
0
0.686695
0
0
0.058736
0.055701
0
0
0
0
0.330472
1
0.087983
false
0
0.021459
0
0.111588
0.004292
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
e5b65de6caaa51982c061649267b4e8734c7f5a8
2,314
py
Python
cogs/owneronly.py
mossyegghead01/Mossy-The-Bot
da044651fe7dd2dee62515d7b07938f4d774c650
[ "MIT" ]
1
2020-11-29T11:13:06.000Z
2020-11-29T11:13:06.000Z
cogs/owneronly.py
mossyegghead01/Mossy-The-Bot
da044651fe7dd2dee62515d7b07938f4d774c650
[ "MIT" ]
null
null
null
cogs/owneronly.py
mossyegghead01/Mossy-The-Bot
da044651fe7dd2dee62515d7b07938f4d774c650
[ "MIT" ]
null
null
null
import discord from discord.ext import commands class owneronly(commands.Cog): def __init__(self, client): self.client = client @commands.command(hidden=True) @commands.is_owner() async def resetstatus(self, ctx): """ Reset the bot status, owner only, hidden """ if ctx.author.id == 645405908309901322 or ctx.author.id == 689802280102527124: guilds = list(self.client.guilds) await self.client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f'!help in {str(len(guilds))} servers')) else: await ctx.send("I won't change to that, you not my creator or the choosed.") @commands.command(hidden=True) @commands.is_owner() async def status(self, ctx, *, name): """ change the bot status, owner only, hidden """ if ctx.author.id == 645405908309901322 or ctx.author.id == 689802280102527124: await self.client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=name)) else: await ctx.send("I won't change to that, you not my creator or the choosed.") @commands.command(hidden=True) @commands.is_owner() async def load(self, ctx, *, module : str): """Loads a module.""" try: self.client.load_extension(f'cogs.{module}') except Exception as e: await ctx.send('\N{PISTOL}') await ctx.send('{}: {}'.format(type(e).__name__, e)) else: await ctx.send('\N{OK HAND SIGN}') @commands.command(hidden=True) @commands.is_owner() async def unload(self, ctx, *, module : str): """Unloads a module.""" try: self.client.unload_extension(f'cogs.{module}') except Exception as e: await ctx.send('\N{PISTOL}') await ctx.send('{}: {}'.format(type(e).__name__, e)) else: await ctx.send('\N{OK HAND SIGN}') @commands.command(hidden=True) @commands.is_owner() async def reload(self,ctx, *, module : str): """Reloads a module.""" try: self.client.unload_extension(f'cogs.{module}') self.client.load_extension(f'cogs.{module}') except Exception as e: await ctx.send('\N{PISTOL}') await ctx.send('{}: {}'.format(type(e).__name__, e)) else: await ctx.send('\N{OK HAND SIGN}') def setup(client): client.add_cog(owneronly(client))
35.6
147
0.652982
315
2,314
4.707937
0.260317
0.059339
0.089009
0.052596
0.78085
0.774107
0.774107
0.774107
0.774107
0.74174
0
0.038565
0.193172
2,314
65
148
35.6
0.755758
0
0
0.716981
0
0
0.139005
0
0
0
0
0
0
1
0.037736
false
0
0.037736
0
0.09434
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
e5da074c762dc1b38888d24890745a7f41bfb2f7
46
py
Python
wlpac/__init__.py
sevagh/warped-linear-prediction
43663aeffe14f979fe465457f369afce5494f7cf
[ "MIT" ]
2
2019-07-13T16:16:22.000Z
2022-03-26T06:46:13.000Z
wlpac/__init__.py
sevagh/warped-linear-prediction
43663aeffe14f979fe465457f369afce5494f7cf
[ "MIT" ]
null
null
null
wlpac/__init__.py
sevagh/warped-linear-prediction
43663aeffe14f979fe465457f369afce5494f7cf
[ "MIT" ]
2
2020-12-31T08:23:42.000Z
2021-04-20T06:41:32.000Z
from .wlpac import wlpac_encode, wlpac_decode
23
45
0.847826
7
46
5.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.108696
46
1
46
46
0.902439
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
e5ea1d3bf665001fa7466855fa82acb2130f6bbd
43
py
Python
packages/auto-nlp-deployment/src/projects/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
4
2021-10-05T17:34:02.000Z
2022-03-23T07:33:19.000Z
packages/auto-nlp-deployment/src/projects/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
11
2022-03-01T14:37:52.000Z
2022-03-31T05:11:23.000Z
packages/auto-nlp-deployment/src/projects/__init__.py
fhswf/tagflip-autonlp
f94abb35ed06198567e5d9cbb7abb7e112149d6c
[ "MIT" ]
1
2022-01-29T13:32:22.000Z
2022-01-29T13:32:22.000Z
from .project_service import ProjectService
43
43
0.906977
5
43
7.6
1
0
0
0
0
0
0
0
0
0
0
0
0.069767
43
1
43
43
0.95
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
f90065e75a7bd2a1d97f6cc718c131489c3144c2
6,592
py
Python
tests/test_datasets.py
EliotBerriot/django-modelstats
b111c887b1c98c479e33f8919a9adaaf2b9bfbc2
[ "BSD-3-Clause" ]
1
2015-06-22T11:57:51.000Z
2015-06-22T11:57:51.000Z
tests/test_datasets.py
EliotBerriot/django-modelstats
b111c887b1c98c479e33f8919a9adaaf2b9bfbc2
[ "BSD-3-Clause" ]
null
null
null
tests/test_datasets.py
EliotBerriot/django-modelstats
b111c887b1c98c479e33f8919a9adaaf2b9bfbc2
[ "BSD-3-Clause" ]
null
null
null
import datetime from .base import TestBase from modelstats import models from modelstats import datasets class TestDateDataSet(TestBase): def test_datedataset(self): self.create_users() queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', fill_missing_dates=False, queryset=queryset).process() for i, date_data in enumerate(self.default_dates_joined): date, quantity = date_data self.assertEqual(dataset.data[i]['key'], date.strftime('%Y-%m-%d')) self.assertEqual(dataset.data[i]['value'], quantity) def test_datedataset_lookup_year(self): dates_joined = [ (datetime.datetime(2016, 1, 1, 12, 12), 11), (datetime.datetime(2016, 2, 1, 12, 12), 9), (datetime.datetime(2017, 1, 2, 12, 12), 8), (datetime.datetime(2018, 1, 5, 12, 12), 7), ] self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', queryset=queryset, fill_missing_dates=False, year=2016).process() self.assertEqual(sum([d['value'] for d in dataset.data]), 20) def test_datedataset_lookup_month(self): dates_joined = [ (datetime.datetime(2016, 1, 1, 12, 12), 11), (datetime.datetime(2016, 2, 1, 12, 12), 9), (datetime.datetime(2017, 1, 2, 12, 12), 8), (datetime.datetime(2018, 1, 1, 12, 12), 8), (datetime.datetime(2019, 2, 1, 12, 12), 5), ] self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', queryset=queryset, fill_missing_dates=False, month=2).process() self.assertEqual(sum([d['value'] for d in dataset.data]), 14) def test_datedataset_lookup_day(self): dates_joined = [ (datetime.datetime(2016, 1, 1, 12, 12), 11), (datetime.datetime(2016, 2, 2, 12, 12), 9), (datetime.datetime(2017, 1, 1, 12, 12), 8), (datetime.datetime(2018, 1, 4, 12, 12), 8), (datetime.datetime(2019, 2, 5, 12, 12), 5), ] self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', queryset=queryset, fill_missing_dates=False, day=1).process() self.assertEqual(sum([d['value'] for d in dataset.data]), 19) def test_datedataset_group_by_month(self): self.create_users() queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', group_by='month', fill_missing_dates=False, queryset=queryset).process() total_quantity = sum([quantity for date, quantity in self.default_dates_joined]) self.assertEqual(dataset.data[0]['key'], '2015-01-01') self.assertEqual(dataset.data[0]['value'], total_quantity) def test_datedataset_group_by_year(self): self.create_users() queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', group_by='year', fill_missing_dates=False, queryset=queryset).process() total_quantity = sum([quantity for date, quantity in self.default_dates_joined]) self.assertEqual(dataset.data[0]['key'], '2015-01-01') self.assertEqual(dataset.data[0]['value'], total_quantity) def test_datedataset_sort_reverse(self): dates_joined = [ (datetime.datetime(2015, 1, 1, 12, 12), 11), (datetime.datetime(2015, 1, 2, 12, 12), 8), (datetime.datetime(2015, 1, 3, 12, 12), 7), ] users = self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', sort='reverse', fill_missing_dates=False, queryset=queryset).process() self.assertEqual(dataset.data[0]['key'], '2015-01-03') self.assertEqual(dataset.data[1]['key'], '2015-01-02') self.assertEqual(dataset.data[2]['key'], '2015-01-01') def test_datedataset_fill_missing_dates_day(self): dates_joined = [ (datetime.datetime(2015, 1, 1, 12, 12), 11), (datetime.datetime(2015, 1, 2, 12, 12), 8), (datetime.datetime(2015, 1, 5, 12, 12), 7), ] users = self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', fill_missing_dates=True, queryset=queryset).process() self.assertEqual(dataset.data[0]['key'], '2015/01/01') self.assertEqual(dataset.data[1]['key'], '2015/01/02') self.assertEqual(dataset.data[2]['key'], '2015/01/03') self.assertEqual(dataset.data[3]['key'], '2015/01/04') self.assertEqual(dataset.data[4]['key'], '2015/01/05') self.assertEqual(dataset.data[2]['value'], 0) def test_datedataset_fill_missing_dates_month(self): dates_joined = [ (datetime.datetime(2015, 1, 1, 12, 12), 11), (datetime.datetime(2015, 3, 1, 12, 12), 8), (datetime.datetime(2015, 5, 1, 12, 12), 7), ] users = self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', group_by='month', fill_missing_dates=True, queryset=queryset).process() self.assertEqual(dataset.data[0]['key'], '2015/01') self.assertEqual(dataset.data[1]['key'], '2015/02') self.assertEqual(dataset.data[2]['key'], '2015/03') self.assertEqual(dataset.data[3]['key'], '2015/04') self.assertEqual(dataset.data[4]['key'], '2015/05') def test_datedataset_fill_missing_dates_year(self): dates_joined = [ (datetime.datetime(2015, 1, 1, 12, 12), 11), (datetime.datetime(2017, 3, 1, 12, 12), 8), (datetime.datetime(2020, 5, 1, 12, 12), 7), ] users = self.create_users(dates_joined) queryset = self.user_model.objects.all() dataset = datasets.DateDataSet(field='date_joined', group_by='year', fill_missing_dates=True, queryset=queryset).process() self.assertEqual(dataset.data[0]['key'], '2015') self.assertEqual(dataset.data[1]['key'], '2016') self.assertEqual(dataset.data[2]['key'], '2017') self.assertEqual(dataset.data[3]['key'], '2018') self.assertEqual(dataset.data[4]['key'], '2019') self.assertEqual(dataset.data[5]['key'], '2020')
43.655629
132
0.627275
847
6,592
4.744982
0.094451
0.108236
0.142324
0.168201
0.891018
0.861159
0.798955
0.748943
0.695198
0.695198
0
0.08994
0.217385
6,592
150
133
43.946667
0.689087
0
0
0.389831
0
0
0.061135
0
0
0
0
0
0.245763
1
0.084746
false
0
0.033898
0
0.127119
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
005a2faa5a5b937d3a949d88137367f81b53c7ae
29
py
Python
src/services/__init__.py
kirill-kundik/CinemaChallengeBackend
aea4ac801a9a5c907f36f07b67df162b4bd85044
[ "MIT" ]
null
null
null
src/services/__init__.py
kirill-kundik/CinemaChallengeBackend
aea4ac801a9a5c907f36f07b67df162b4bd85044
[ "MIT" ]
null
null
null
src/services/__init__.py
kirill-kundik/CinemaChallengeBackend
aea4ac801a9a5c907f36f07b67df162b4bd85044
[ "MIT" ]
null
null
null
from .oauth import with_auth
14.5
28
0.827586
5
29
4.6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.92
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
0089235efe4802bc1d040d25a405656c926d55b5
329
py
Python
mrinversion/kernel/nmr.py
DeepanshS/mrinversion
b1060f3150a5bf04162dfed499221f040b3bae21
[ "BSD-3-Clause" ]
1
2020-10-27T14:48:50.000Z
2020-10-27T14:48:50.000Z
mrinversion/kernel/nmr.py
deepanshs/mrinversion
b1060f3150a5bf04162dfed499221f040b3bae21
[ "BSD-3-Clause" ]
13
2021-06-07T00:59:53.000Z
2022-03-02T16:31:54.000Z
mrinversion/kernel/nmr.py
deepanshs/mrinversion
b1060f3150a5bf04162dfed499221f040b3bae21
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from mrinversion.kernel.csa_aniso import MAF # NOQA from mrinversion.kernel.csa_aniso import ShieldingPALineshape # NOQA from mrinversion.kernel.csa_aniso import SpinningSidebands # NOQA # from mrinversion.kernel.quad_aniso import MQMAS # NOQA # from mrinversion.kernel.lineshape import DAS # NOQA
36.555556
69
0.787234
42
329
6.071429
0.404762
0.294118
0.411765
0.392157
0.443137
0.443137
0.305882
0
0
0
0
0.003509
0.133739
329
8
70
41.125
0.891228
0.43465
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
00c542765a56fa63620b1b57b612ba54d4f1bd47
105
py
Python
tensorflow_datasets_bw/waterloo_exploration/__init__.py
HedgehogCode/tensorflow-datasets-bw
a6de02cbcdce77fffb8767dfb1cd0d15c071f69d
[ "RSA-MD" ]
1
2021-12-09T09:53:32.000Z
2021-12-09T09:53:32.000Z
tensorflow_datasets_bw/waterloo_exploration/__init__.py
HedgehogCode/tensorflow-datasets-bw
a6de02cbcdce77fffb8767dfb1cd0d15c071f69d
[ "RSA-MD" ]
null
null
null
tensorflow_datasets_bw/waterloo_exploration/__init__.py
HedgehogCode/tensorflow-datasets-bw
a6de02cbcdce77fffb8767dfb1cd0d15c071f69d
[ "RSA-MD" ]
null
null
null
"""waterloo_exploration dataset.""" from .waterloo_exploration import WaterlooExploration # noqa: F401
26.25
67
0.8
10
105
8.2
0.8
0.463415
0
0
0
0
0
0
0
0
0
0.031915
0.104762
105
3
68
35
0.840426
0.390476
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
00f0581cacf709c9351acb07f0af8a350e497989
6,868
py
Python
tests/unit/project_lifecycle/project/ansiblermtests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
3
2021-07-19T09:46:01.000Z
2022-03-07T13:51:25.000Z
tests/unit/project_lifecycle/project/ansiblermtests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
43
2019-08-27T12:36:29.000Z
2020-08-27T14:50:40.000Z
tests/unit/project_lifecycle/project/ansiblermtests/test_validate.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
7
2020-09-22T20:32:17.000Z
2022-03-29T12:25:51.000Z
import os from tests.common.project_testing import (ProjectSimTestCase, PROJECT_CONTAINS_DIR, ARM_DESCRIPTOR_DIR, ARM_LIFECYCLE_DIR, ARM_METAINF_DIR, ARM_MANIFEST_FILE) from lmctl.project.source.core import Project, Options, ValidateOptions, BuildOptions from lmctl.project.validation import ValidationResult import tests.common.simulations.project_lab as project_lab class TestValidateAnsibleRmProjects(ProjectSimTestCase): def test_validate_resource(self): project_sim = self.simlab.simulate_arm_basic() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) self.assertIsInstance(result, ValidationResult) self.assertFalse(result.has_errors()) self.assertFalse(result.has_warnings()) def test_validate_resource_descriptor_name(self): project_sim = self.simlab.simulate_invalid_arm_mismatch_descriptor_name() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) descriptor_path = os.path.join(project_sim.path, ARM_DESCRIPTOR_DIR, 'invalid_mismatch_descriptor_name.yml') expected_errors = [] expected_errors.append( 'Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes type \'assembly\' but this should be \'resource\' based on project configuration'.format(descriptor_path)) expected_errors.append( 'Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes \'notvalid\' but this should be \'invalid_mismatch_descriptor_name\' based on project configuration'.format(descriptor_path)) expected_errors.append('Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes version \'9.7\' but this should be \'1.0\' based on project configuration'.format(descriptor_path)) self.assert_validation_errors(result, *expected_errors) def test_validate_resource_without_descriptor(self): project_sim = self.simlab.simulate_invalid_arm_no_descriptor() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) descriptor_path = os.path.join(project_sim.path, ARM_DESCRIPTOR_DIR, 'invalid_no_descriptor.yml') self.assert_validation_errors(result, 'No descriptor found at: {0}'.format(descriptor_path)) def test_validate_resource_without_lifecycle(self): project_sim = self.simlab.simulate_invalid_arm_no_lifecycle() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) lifecycle_path = os.path.join(project_sim.path, ARM_LIFECYCLE_DIR) self.assert_validation_errors(result, 'No lifecycle sources found at: {0}'.format(lifecycle_path)) def test_validate_resource_without_manifest(self): project_sim = self.simlab.simulate_invalid_arm_no_manifest() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) manifest_path = os.path.join(project_sim.path, ARM_METAINF_DIR, ARM_MANIFEST_FILE) self.assert_validation_errors(result, 'No manifest found at: {0}'.format(manifest_path)) class TestValidateAnsibleRmSubprojects(ProjectSimTestCase): def test_validate_resource_subproject(self): project_sim = self.simlab.simulate_assembly_contains_arm_basic() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) self.assertIsInstance(result, ValidationResult) self.assertFalse(result.has_errors()) self.assertFalse(result.has_warnings()) def test_validate_resource_descriptor_name(self): project_sim = self.simlab.simulate_assembly_contains_invalid_arm_mismatch_descriptor_name() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) descriptor_path = os.path.join(project_sim.path, PROJECT_CONTAINS_DIR, project_lab.SUBPROJECT_NAME_INVALID_ARM_MISMATCH_DESCRIPTOR_NAME, ARM_DESCRIPTOR_DIR, 'sub_invalid_mismatch_descriptor_name.yml') expected_errors = [] expected_errors.append( 'Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes type \'assembly\' but this should be \'resource\' based on project configuration'.format(descriptor_path)) expected_errors.append( 'Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes \'notvalid\' but this should be \'sub_invalid_mismatch_descriptor_name-contains_invalid_mismatch_descriptor_name\' based on project configuration'.format(descriptor_path)) expected_errors.append('Descriptor [{0}]: name \'assembly::notvalid::9.7\' includes version \'9.7\' but this should be \'1.0\' based on project configuration'.format(descriptor_path)) self.assert_validation_errors(result, *expected_errors) def test_validate_subproject_without_descriptor(self): project_sim = self.simlab.simulate_assembly_contains_invalid_arm_no_descriptor() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) descriptor_path = os.path.join(project_sim.path, PROJECT_CONTAINS_DIR, project_lab.SUBPROJECT_NAME_INVALID_ARM_NO_DESCRIPTOR, ARM_DESCRIPTOR_DIR, 'sub_invalid_no_descriptor.yml') self.assert_validation_errors(result, 'No descriptor found at: {0}'.format(descriptor_path)) def test_validate_subproject_without_lifecycle(self): project_sim = self.simlab.simulate_assembly_contains_invalid_arm_no_lifecycle() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) lifecycle_path = os.path.join(project_sim.path, PROJECT_CONTAINS_DIR, project_lab.SUBPROJECT_NAME_INVALID_ARM_NO_LIFECYCLE, ARM_LIFECYCLE_DIR) self.assert_validation_errors(result, 'No lifecycle sources found at: {0}'.format(lifecycle_path)) def test_validate_subproject_without_manifest(self): project_sim = self.simlab.simulate_assembly_contains_invalid_arm_no_manifest() project = Project(project_sim.path) validate_options = ValidateOptions() result = project.validate(validate_options) manifest_path = os.path.join(project_sim.path, PROJECT_CONTAINS_DIR, project_lab.SUBPROJECT_NAME_INVALID_ARM_NO_MANIFEST, ARM_METAINF_DIR, ARM_MANIFEST_FILE) self.assert_validation_errors(result, 'No manifest found at: {0}'.format(manifest_path))
63.009174
244
0.743302
799
6,868
6.048811
0.097622
0.057935
0.052142
0.037244
0.917856
0.87813
0.858266
0.858266
0.828471
0.808607
0
0.005602
0.168317
6,868
108
245
63.592593
0.840511
0
0
0.595745
0
0
0.123762
0.018928
0
0
0
0
0.148936
1
0.106383
false
0
0.053191
0
0.180851
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
dac568e219c76329ac797a4612de712c2b0fc76f
4,907
py
Python
authors/apps/friends/tests/test_friends.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
null
null
null
authors/apps/friends/tests/test_friends.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
26
2019-01-07T14:22:05.000Z
2019-02-28T17:11:48.000Z
authors/apps/friends/tests/test_friends.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
3
2019-09-19T22:16:09.000Z
2019-10-16T21:16:16.000Z
from rest_framework import status from .base_tests import BaseTestCase from authors.apps.authentication.models import User class TestUserFollow(BaseTestCase): """Test the follow/unfollow functionality""" friend_url = 'http://127.0.0.1:8000/api/profiles' def test_follow_other_user(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data["number_of_followers"], 1) def test_only_authenticated_users_can_follow(self): response = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_unfollow_other_user(self): # test that a user is followed successfully self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) res1 = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(res1.status_code, status.HTTP_200_OK) self.assertEqual(res1.data["number_of_followers"], 1) # test that a user is unfollowed successfullly res2 = self.client.delete(self.friend_url + '/andrew/follow') self.assertEqual(res2.status_code, status.HTTP_200_OK) self.assertEqual(res2.data["number_of_followers"], 0) def test_follow_self(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.post(self.friend_url + '/testuser/follow') self.assertEqual(response.status_code, status.HTTP_406_NOT_ACCEPTABLE) self.assertEqual( response.data['message'], 'You cannot follow yourself') def test_unfollow_self(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.delete(self.friend_url + '/testuser/follow') self.assertEqual(response.status_code, status.HTTP_406_NOT_ACCEPTABLE) self.assertEqual( response.data['message'], 'You cannot unfollow yourself') def test_follow_nonexisting_user(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.post(self.friend_url + '/ken/follow') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) assert response.data['detail'] == 'Not found.' def test_unfollow_nonexisting_user(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.delete(self.friend_url + '/ken/follow') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) assert response.data['detail'] == 'Not found.' def test_get_followers(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.get(self.friend_url + '/andrew/followers') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data), 0) def test_get_following(self): self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.get(self.friend_url + '/andrew/following') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data), 0) def test_follow_user_that_i_follow(self): # first test to follow a user self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) response = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data["number_of_followers"], 1) # second test to follow the same user res2 = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(res2.status_code, status.HTTP_406_NOT_ACCEPTABLE) self.assertEqual( res2.data['message'], 'you already follow this user') def test_unfollow_user_i_dont_follow(self): # first test that a user is followed successfully self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token) res1 = self.client.post(self.friend_url + '/andrew/follow') self.assertEqual(res1.status_code, status.HTTP_200_OK) self.assertEqual(res1.data["number_of_followers"], 1) # second test that a user is unfollowed successfullly res2 = self.client.delete(self.friend_url + '/andrew/follow') self.assertEqual(res2.status_code, status.HTTP_200_OK) self.assertEqual(res2.data["number_of_followers"], 0) # third test that i cannot unfollow a user i don't follow res3 = self.client.delete(self.friend_url + '/andrew/follow') self.assertEqual(res3.status_code, status.HTTP_406_NOT_ACCEPTABLE) self.assertEqual(res3.data['message'], "you don't follow this user")
51.652632
78
0.707764
625
4,907
5.3552
0.1472
0.121004
0.058261
0.089633
0.80251
0.80251
0.80251
0.797729
0.797729
0.77323
0
0.020159
0.18117
4,907
94
79
52.202128
0.812842
0.070512
0
0.575342
0
0
0.129699
0
0
0
0
0
0.39726
1
0.150685
false
0
0.041096
0
0.219178
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
dae147d828ef914b684f72988603f621480682f7
18
py
Python
tests/integrate_test/samples/sample_deploy_scores/import_test/exec_in_indirect_submodule/subpackage/sub_module2.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
52
2018-08-24T02:28:43.000Z
2021-07-06T04:44:22.000Z
tests/integrate_test/samples/sample_deploy_scores/import_test/exec_in_indirect_submodule/subpackage/sub_module2.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
62
2018-09-17T06:59:16.000Z
2021-12-15T06:02:51.000Z
tests/integrate_test/samples/sample_deploy_scores/import_test/exec_in_indirect_submodule/subpackage/sub_module2.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
35
2018-09-14T02:42:10.000Z
2022-02-05T10:34:46.000Z
exec('import os')
9
17
0.666667
3
18
4
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
18
1
18
18
0.75
0
0
0
0
0
0.5
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
9727ae532dcbde0b66237ba430d97e7e1c63b419
158
py
Python
examples/app.py
kgz/Quart-Sockets-Extended
938bccd870f65b58b43bdc17a91d199bb8fe735c
[ "MIT" ]
null
null
null
examples/app.py
kgz/Quart-Sockets-Extended
938bccd870f65b58b43bdc17a91d199bb8fe735c
[ "MIT" ]
null
null
null
examples/app.py
kgz/Quart-Sockets-Extended
938bccd870f65b58b43bdc17a91d199bb8fe735c
[ "MIT" ]
null
null
null
""".""" from quart import (Quart, jsonify, render_template, render_template_string, request, websocket, send_file) from QSE import Socket
26.333333
75
0.683544
18
158
5.777778
0.722222
0.269231
0
0
0
0
0
0
0
0
0
0
0.221519
158
5
76
31.6
0.845528
0.006329
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
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
972cb43385b61c953fe57d8416477cdd5070ca3c
160
py
Python
components/buttons.py
cruor99/kivy-gopher-client
7768b51b69c6235a3f2c0a90e2ca9c057b6cbc27
[ "WTFPL" ]
1
2017-12-24T16:41:17.000Z
2017-12-24T16:41:17.000Z
components/buttons.py
cruor99/kivy-gopher-client
7768b51b69c6235a3f2c0a90e2ca9c057b6cbc27
[ "WTFPL" ]
null
null
null
components/buttons.py
cruor99/kivy-gopher-client
7768b51b69c6235a3f2c0a90e2ca9c057b6cbc27
[ "WTFPL" ]
null
null
null
from kivymd.label import MDLabel from kivy.lang import Builder Builder.load_file("kv/components/buttons.kv") class MDScrollableTextButton(MDLabel): pass
17.777778
45
0.8
21
160
6.047619
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.11875
160
8
46
20
0.900709
0
0
0
0
0
0.15
0.15
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
979a39f7fdd3ddf131bd3f9e40e053bf8c2a5de3
19,891
py
Python
pybind/slxos/v17r_2_00/isis_state/ipv6_routes/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/isis_state/ipv6_routes/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/isis_state/ipv6_routes/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from decimal import Decimal from bitarray import bitarray import __builtin__ import ipv6_route_entry class ipv6_routes(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module brocade-isis-operational - based on the path /isis-state/ipv6-routes. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: ISIS IPv6 Route Table """ __slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__level1_route_count','__level2_route_count','__ecmp_route_count','__total_routes_count','__ipv6_route_entry',) _yang_name = 'ipv6-routes' _rest_name = 'ipv6-routes' _pybind_generated_by = 'container' def __init__(self, *args, **kwargs): path_helper_ = kwargs.pop("path_helper", None) if path_helper_ is False: self._path_helper = False elif path_helper_ is not None and isinstance(path_helper_, xpathhelper.YANGPathHelper): self._path_helper = path_helper_ elif hasattr(self, "_parent"): path_helper_ = getattr(self._parent, "_path_helper", False) self._path_helper = path_helper_ else: self._path_helper = False extmethods = kwargs.pop("extmethods", None) if extmethods is False: self._extmethods = False elif extmethods is not None and isinstance(extmethods, dict): self._extmethods = extmethods elif hasattr(self, "_parent"): extmethods = getattr(self._parent, "_extmethods", None) self._extmethods = extmethods else: self._extmethods = False self.__level2_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level2-route-count", rest_name="level2-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) self.__ecmp_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="ecmp-route-count", rest_name="ecmp-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) self.__ipv6_route_entry = YANGDynClass(base=YANGListType("ipv6_dest_addr ipv6_prefix_len",ipv6_route_entry.ipv6_route_entry, yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ipv6-dest-addr ipv6-prefix-len', extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}), is_container='list', yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='list', is_config=False) self.__total_routes_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="total-routes-count", rest_name="total-routes-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) self.__level1_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level1-route-count", rest_name="level1-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) load = kwargs.pop("load", None) if args: if len(args) > 1: raise TypeError("cannot create a YANG container with >1 argument") all_attr = True for e in self._pyangbind_elements: if not hasattr(args[0], e): all_attr = False break if not all_attr: raise ValueError("Supplied object did not have the correct attributes") for e in self._pyangbind_elements: nobj = getattr(args[0], e) if nobj._changed() is False: continue setmethod = getattr(self, "_set_%s" % e) if load is None: setmethod(getattr(args[0], e)) else: setmethod(getattr(args[0], e), load=load) def _path(self): if hasattr(self, "_parent"): return self._parent._path()+[self._yang_name] else: return [u'isis-state', u'ipv6-routes'] def _rest_path(self): if hasattr(self, "_parent"): if self._rest_name: return self._parent._rest_path()+[self._rest_name] else: return self._parent._rest_path() else: return [u'isis-state', u'ipv6-routes'] def _get_level1_route_count(self): """ Getter method for level1_route_count, mapped from YANG variable /isis_state/ipv6_routes/level1_route_count (uint32) YANG Description: Number of Level-1 Routes """ return self.__level1_route_count def _set_level1_route_count(self, v, load=False): """ Setter method for level1_route_count, mapped from YANG variable /isis_state/ipv6_routes/level1_route_count (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_level1_route_count is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_level1_route_count() directly. YANG Description: Number of Level-1 Routes """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level1-route-count", rest_name="level1-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """level1_route_count must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level1-route-count", rest_name="level1-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False)""", }) self.__level1_route_count = t if hasattr(self, '_set'): self._set() def _unset_level1_route_count(self): self.__level1_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level1-route-count", rest_name="level1-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) def _get_level2_route_count(self): """ Getter method for level2_route_count, mapped from YANG variable /isis_state/ipv6_routes/level2_route_count (uint32) YANG Description: Number of Level-1 Routes """ return self.__level2_route_count def _set_level2_route_count(self, v, load=False): """ Setter method for level2_route_count, mapped from YANG variable /isis_state/ipv6_routes/level2_route_count (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_level2_route_count is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_level2_route_count() directly. YANG Description: Number of Level-1 Routes """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level2-route-count", rest_name="level2-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """level2_route_count must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level2-route-count", rest_name="level2-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False)""", }) self.__level2_route_count = t if hasattr(self, '_set'): self._set() def _unset_level2_route_count(self): self.__level2_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="level2-route-count", rest_name="level2-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) def _get_ecmp_route_count(self): """ Getter method for ecmp_route_count, mapped from YANG variable /isis_state/ipv6_routes/ecmp_route_count (uint32) YANG Description: Equal-cost multi-path Routes """ return self.__ecmp_route_count def _set_ecmp_route_count(self, v, load=False): """ Setter method for ecmp_route_count, mapped from YANG variable /isis_state/ipv6_routes/ecmp_route_count (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_ecmp_route_count is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ecmp_route_count() directly. YANG Description: Equal-cost multi-path Routes """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="ecmp-route-count", rest_name="ecmp-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """ecmp_route_count must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="ecmp-route-count", rest_name="ecmp-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False)""", }) self.__ecmp_route_count = t if hasattr(self, '_set'): self._set() def _unset_ecmp_route_count(self): self.__ecmp_route_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="ecmp-route-count", rest_name="ecmp-route-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) def _get_total_routes_count(self): """ Getter method for total_routes_count, mapped from YANG variable /isis_state/ipv6_routes/total_routes_count (uint32) YANG Description: Total number of IPv6 ISIS routes """ return self.__total_routes_count def _set_total_routes_count(self, v, load=False): """ Setter method for total_routes_count, mapped from YANG variable /isis_state/ipv6_routes/total_routes_count (uint32) If this variable is read-only (config: false) in the source YANG file, then _set_total_routes_count is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_total_routes_count() directly. YANG Description: Total number of IPv6 ISIS routes """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="total-routes-count", rest_name="total-routes-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """total_routes_count must be of a type compatible with uint32""", 'defined-type': "uint32", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="total-routes-count", rest_name="total-routes-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False)""", }) self.__total_routes_count = t if hasattr(self, '_set'): self._set() def _unset_total_routes_count(self): self.__total_routes_count = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name="total-routes-count", rest_name="total-routes-count", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='uint32', is_config=False) def _get_ipv6_route_entry(self): """ Getter method for ipv6_route_entry, mapped from YANG variable /isis_state/ipv6_routes/ipv6_route_entry (list) YANG Description: ISIS IPv6 Route Entry """ return self.__ipv6_route_entry def _set_ipv6_route_entry(self, v, load=False): """ Setter method for ipv6_route_entry, mapped from YANG variable /isis_state/ipv6_routes/ipv6_route_entry (list) If this variable is read-only (config: false) in the source YANG file, then _set_ipv6_route_entry is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_ipv6_route_entry() directly. YANG Description: ISIS IPv6 Route Entry """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=YANGListType("ipv6_dest_addr ipv6_prefix_len",ipv6_route_entry.ipv6_route_entry, yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ipv6-dest-addr ipv6-prefix-len', extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}), is_container='list', yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='list', is_config=False) except (TypeError, ValueError): raise ValueError({ 'error-string': """ipv6_route_entry must be of a type compatible with list""", 'defined-type': "list", 'generated-type': """YANGDynClass(base=YANGListType("ipv6_dest_addr ipv6_prefix_len",ipv6_route_entry.ipv6_route_entry, yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ipv6-dest-addr ipv6-prefix-len', extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}), is_container='list', yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='list', is_config=False)""", }) self.__ipv6_route_entry = t if hasattr(self, '_set'): self._set() def _unset_ipv6_route_entry(self): self.__ipv6_route_entry = YANGDynClass(base=YANGListType("ipv6_dest_addr ipv6_prefix_len",ipv6_route_entry.ipv6_route_entry, yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ipv6-dest-addr ipv6-prefix-len', extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}), is_container='list', yang_name="ipv6-route-entry", rest_name="ipv6-route-entry", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'isis-ipv6-route', u'cli-suppress-show-path': None}}, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='list', is_config=False) level1_route_count = __builtin__.property(_get_level1_route_count) level2_route_count = __builtin__.property(_get_level2_route_count) ecmp_route_count = __builtin__.property(_get_ecmp_route_count) total_routes_count = __builtin__.property(_get_total_routes_count) ipv6_route_entry = __builtin__.property(_get_ipv6_route_entry) _pyangbind_elements = {'level1_route_count': level1_route_count, 'level2_route_count': level2_route_count, 'ecmp_route_count': ecmp_route_count, 'total_routes_count': total_routes_count, 'ipv6_route_entry': ipv6_route_entry, }
69.548951
834
0.750138
2,751
19,891
5.137041
0.069793
0.057317
0.047552
0.030569
0.854585
0.827554
0.798542
0.785239
0.769035
0.75559
0
0.024361
0.12292
19,891
285
835
69.792982
0.785682
0.157106
0
0.449704
0
0.029586
0.36751
0.175924
0
0
0
0
0
1
0.106509
false
0
0.053254
0
0.284024
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
c102039b916f5ede671a074e4b877d0428c61e2d
122
py
Python
Configuration/PyReleaseValidation/python/Options.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/Options.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
Configuration/PyReleaseValidation/python/Options.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
print "This file has moved to Configuration/Applications; please update" from Configuration.Applications.Options import *
40.666667
72
0.836066
15
122
6.8
0.866667
0.490196
0
0
0
0
0
0
0
0
0
0
0.106557
122
2
73
61
0.93578
0
0
0
0
0
0.52459
0.221311
0
0
0
0
0
0
null
null
0
0.5
null
null
0.5
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
6
c1992cdbcb45f6883c234b38594827b01c95a6db
5,445
py
Python
poda/layers/optimizer.py
gideonmanurung/poda
0a64cfa474f82acb891454141bc537d81bc77092
[ "MIT" ]
null
null
null
poda/layers/optimizer.py
gideonmanurung/poda
0a64cfa474f82acb891454141bc537d81bc77092
[ "MIT" ]
4
2020-09-26T01:08:59.000Z
2022-02-10T01:40:42.000Z
poda/layers/optimizer.py
gideonmanurung/poda
0a64cfa474f82acb891454141bc537d81bc77092
[ "MIT" ]
null
null
null
import tensorflow as tf def adadelta(learning_rates=0.0001, rho=0.95, epsilon=1e-08, use_lockings=False, names=None): """[summary] Keyword Arguments: learning_rates {float} -- [Value of learning rate] (default: {0.0001}) rho {float} -- [Value of learning rho] (default: {0.999}) epsilons {[type]} -- [Value of learning epsilons] (default: {1e-08}) use_lockings {bool} -- [State of locking] (default: {False}) names {[type]} -- [Name of the optimizer] (default: {None}) Returns: [Optimizer] -- [Optimizer for training graph] """ if names!=None: names = str(names) else: names= '' optimizer = tf.compat.v1.train.AdadeltaOptimizer(learning_rate=learning_rates,rho=rho,epsilon=epsilon,use_locking=use_lockings,name=names) return optimizer def adagrad(learning_rates=0.0001, initial_accumulator_value=0.1, use_lockings=False, names=None): """[summary] Keyword Arguments: learning_rates {float} -- [Value of learning rate] (default: {0.0001}) initial_accumulator_value {float} -- [Value of learning rho] (default: {0.999}) use_lockings {bool} -- [State of locking] (default: {False}) names {[type]} -- [Name of the optimizer] (default: {None}) Returns: [Optimizer] -- [Optimizer for training graph] """ if names!=None: names = str(names) else: names= '' optimizer = tf.compat.v1.train.AdagradOptimizer(learning_rate=learning_rates,initial_accumulator_value=initial_accumulator_value,use_locking=use_lockings,name=names) return optimizer def adam(learning_rates=0.0001, beta1=0.9, beta2=0.999, epsilon=1e-08, use_lockings=False, names=None): """[summary] Keyword Arguments: learning_rates {float} -- [Value of learning rate] (default: {0.0001}) beta1 {float} -- [Value of learning beta1] (default: {0.9}) beta2 {float} -- [Value of learning beta2] (default: {0.999}) epsilons {[type]} -- [Value of learning epsilons] (default: {1e-08}) use_lockings {bool} -- [State of locking] (default: {False}) names {[type]} -- [Name of the optimizer] (default: {None}) Returns: [Optimizer] -- [Optimizer for training graph] """ if names!=None: names = str(names) else: names= '' optimizer = tf.compat.v1.train.AdamOptimizer(learning_rate=learning_rates,beta1=beta1,beta2=beta2,epsilon=epsilon,use_locking=use_lockings,name=names) return optimizer def optimizers(optimizers_names='adam', learning_rates=0.0001): """[summary] Keyword Arguments: optimizers_names {str} -- [Type of optimizer] (default: {'adam'}) learning_rates {float} -- [Value of learning rate] (default: {0.0001}) Returns: [Optimizer] -- [Optimizer for training graph] """ optimizers_function = None if optimizers_names=='adam': optimizers_function = tf.compat.v1.train.AdamOptimizer(learning_rate=learning_rates,beta1=0.9,beta2=0.999,epsilon=1e-08,use_locking=False,name='Adam') elif optimizers_names=='adadelta': optimizers_function = tf.compat.v1.train.AdadeltaOptimizer(learning_rate=learning_rates,rho=0.95,epsilon=1e-08,use_locking=False,name='Adadelta') elif optimizers_names=='adagrad': optimizers_function = tf.compat.v1.train.AdagradOptimizer(learning_rate=learning_rates,initial_accumulator_value=0.1,use_locking=False,name='Adagrad') elif optimizers_names=='sgd': optimizers_function = tf.compat.v1.train.GradientDescentOptimizer(learning_rate=learning_rates,use_locking=False,name='GradientDescent') elif optimizers_names=='rmsprop': optimizers_function = tf.compat.v1.train.RMSPropOptimizer(learning_rate=learning_rates,decay=0.9,momentum=0.0,epsilon=1e-10,use_locking=False,centered=False,name='RMSProp') return optimizers_function def rmsprop(learning_rates=0.0001, decay=0.9, momentum=0.0, epsilon=1e-10, use_lockings=False, centered=False, names=None): """[summary] Keyword Arguments: learning_rates {float} -- [Value of learning rate] (default: {0.0001}) rho {float} -- [Value of learning rho] (default: {0.999}) epsilons {[type]} -- [Value of learning epsilons] (default: {1e-08}) use_lockings {bool} -- [State of locking] (default: {False}) names {[type]} -- [Name of the optimizer] (default: {None}) Returns: [Optimizer] -- [Optimizer for training graph] """ if names!=None: names = str(names) else: names= '' optimizer = tf.compat.v1.train.RMSPropOptimizer(learning_rate=learning_rates,decay=decay,momentum=momentum,epsilon=epsilon,use_locking=use_lockings,centered=centered,name=names) return optimizer def sgd(learning_rates=0.0001, use_lockings=False, names=None): """[summary] Keyword Arguments: learning_rates {float} -- [Value of learning rate] (default: {0.0001}) use_lockings {bool} -- [State of locking] (default: {False}) names {[type]} -- [Name of the optimizer] (default: {None}) Returns: [Optimizer] -- [Optimizer for training graph] """ if names!=None: names = str(names) else: names= '' optimizer = tf.compat.v1.train.GradientDescentOptimizer(learning_rate=learning_rates,use_locking=use_lockings,name=names) return optimizer
42.874016
181
0.670891
666
5,445
5.363363
0.106607
0.080067
0.058791
0.06159
0.820549
0.792833
0.737962
0.722564
0.703247
0.68981
0
0.035731
0.193021
5,445
127
182
42.874016
0.777196
0.415243
0
0.510204
0
0
0.025308
0
0
0
0
0
0
1
0.122449
false
0
0.020408
0
0.265306
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
c1cde5511f2e6d0432126990275b64fbe2b23a30
81,613
py
Python
src/pyensae/languages/CSharpParserListener.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
28
2015-07-19T21:20:51.000Z
2022-02-16T11:50:53.000Z
src/pyensae/languages/CSharpParserListener.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
34
2015-06-16T15:38:25.000Z
2021-12-29T11:04:01.000Z
src/pyensae/languages/CSharpParserListener.py
sdpython/pyensae
ada4dbb0b9901bf481eff2ea239e74ed964d93b0
[ "MIT" ]
27
2015-01-13T08:24:22.000Z
2022-03-31T14:51:23.000Z
# Generated from \CSharpParser.g4 by ANTLR 4.9 from antlr4 import * if __name__ is not None and "." in __name__: from .CSharpParser import CSharpParser else: from CSharpParser import CSharpParser # This class defines a complete listener for a parse tree produced by CSharpParser. class CSharpParserListener(ParseTreeListener): # Enter a parse tree produced by CSharpParser#compilation_unit. def enterCompilation_unit(self, ctx: CSharpParser.Compilation_unitContext): pass # Exit a parse tree produced by CSharpParser#compilation_unit. def exitCompilation_unit(self, ctx: CSharpParser.Compilation_unitContext): pass # Enter a parse tree produced by CSharpParser#namespace_or_type_name. def enterNamespace_or_type_name(self, ctx: CSharpParser.Namespace_or_type_nameContext): pass # Exit a parse tree produced by CSharpParser#namespace_or_type_name. def exitNamespace_or_type_name(self, ctx: CSharpParser.Namespace_or_type_nameContext): pass # Enter a parse tree produced by CSharpParser#cstype. def enterCstype(self, ctx: CSharpParser.CstypeContext): pass # Exit a parse tree produced by CSharpParser#cstype. def exitCstype(self, ctx: CSharpParser.CstypeContext): pass # Enter a parse tree produced by CSharpParser#base_type. def enterBase_type(self, ctx: CSharpParser.Base_typeContext): pass # Exit a parse tree produced by CSharpParser#base_type. def exitBase_type(self, ctx: CSharpParser.Base_typeContext): pass # Enter a parse tree produced by CSharpParser#simple_type. def enterSimple_type(self, ctx: CSharpParser.Simple_typeContext): pass # Exit a parse tree produced by CSharpParser#simple_type. def exitSimple_type(self, ctx: CSharpParser.Simple_typeContext): pass # Enter a parse tree produced by CSharpParser#numeric_type. def enterNumeric_type(self, ctx: CSharpParser.Numeric_typeContext): pass # Exit a parse tree produced by CSharpParser#numeric_type. def exitNumeric_type(self, ctx: CSharpParser.Numeric_typeContext): pass # Enter a parse tree produced by CSharpParser#integral_type. def enterIntegral_type(self, ctx: CSharpParser.Integral_typeContext): pass # Exit a parse tree produced by CSharpParser#integral_type. def exitIntegral_type(self, ctx: CSharpParser.Integral_typeContext): pass # Enter a parse tree produced by CSharpParser#floating_point_type. def enterFloating_point_type(self, ctx: CSharpParser.Floating_point_typeContext): pass # Exit a parse tree produced by CSharpParser#floating_point_type. def exitFloating_point_type(self, ctx: CSharpParser.Floating_point_typeContext): pass # Enter a parse tree produced by CSharpParser#class_type. def enterClass_type(self, ctx: CSharpParser.Class_typeContext): pass # Exit a parse tree produced by CSharpParser#class_type. def exitClass_type(self, ctx: CSharpParser.Class_typeContext): pass # Enter a parse tree produced by CSharpParser#type_argument_list. def enterType_argument_list(self, ctx: CSharpParser.Type_argument_listContext): pass # Exit a parse tree produced by CSharpParser#type_argument_list. def exitType_argument_list(self, ctx: CSharpParser.Type_argument_listContext): pass # Enter a parse tree produced by CSharpParser#argument_list. def enterArgument_list(self, ctx: CSharpParser.Argument_listContext): pass # Exit a parse tree produced by CSharpParser#argument_list. def exitArgument_list(self, ctx: CSharpParser.Argument_listContext): pass # Enter a parse tree produced by CSharpParser#argument. def enterArgument(self, ctx: CSharpParser.ArgumentContext): pass # Exit a parse tree produced by CSharpParser#argument. def exitArgument(self, ctx: CSharpParser.ArgumentContext): pass # Enter a parse tree produced by CSharpParser#expression. def enterExpression(self, ctx: CSharpParser.ExpressionContext): pass # Exit a parse tree produced by CSharpParser#expression. def exitExpression(self, ctx: CSharpParser.ExpressionContext): pass # Enter a parse tree produced by CSharpParser#non_assignment_expression. def enterNon_assignment_expression(self, ctx: CSharpParser.Non_assignment_expressionContext): pass # Exit a parse tree produced by CSharpParser#non_assignment_expression. def exitNon_assignment_expression(self, ctx: CSharpParser.Non_assignment_expressionContext): pass # Enter a parse tree produced by CSharpParser#assignment. def enterAssignment(self, ctx: CSharpParser.AssignmentContext): pass # Exit a parse tree produced by CSharpParser#assignment. def exitAssignment(self, ctx: CSharpParser.AssignmentContext): pass # Enter a parse tree produced by CSharpParser#assignment_operator. def enterAssignment_operator(self, ctx: CSharpParser.Assignment_operatorContext): pass # Exit a parse tree produced by CSharpParser#assignment_operator. def exitAssignment_operator(self, ctx: CSharpParser.Assignment_operatorContext): pass # Enter a parse tree produced by CSharpParser#conditional_expression. def enterConditional_expression(self, ctx: CSharpParser.Conditional_expressionContext): pass # Exit a parse tree produced by CSharpParser#conditional_expression. def exitConditional_expression(self, ctx: CSharpParser.Conditional_expressionContext): pass # Enter a parse tree produced by CSharpParser#null_coalescing_expression. def enterNull_coalescing_expression(self, ctx: CSharpParser.Null_coalescing_expressionContext): pass # Exit a parse tree produced by CSharpParser#null_coalescing_expression. def exitNull_coalescing_expression(self, ctx: CSharpParser.Null_coalescing_expressionContext): pass # Enter a parse tree produced by CSharpParser#conditional_or_expression. def enterConditional_or_expression(self, ctx: CSharpParser.Conditional_or_expressionContext): pass # Exit a parse tree produced by CSharpParser#conditional_or_expression. def exitConditional_or_expression(self, ctx: CSharpParser.Conditional_or_expressionContext): pass # Enter a parse tree produced by CSharpParser#conditional_and_expression. def enterConditional_and_expression(self, ctx: CSharpParser.Conditional_and_expressionContext): pass # Exit a parse tree produced by CSharpParser#conditional_and_expression. def exitConditional_and_expression(self, ctx: CSharpParser.Conditional_and_expressionContext): pass # Enter a parse tree produced by CSharpParser#inclusive_or_expression. def enterInclusive_or_expression(self, ctx: CSharpParser.Inclusive_or_expressionContext): pass # Exit a parse tree produced by CSharpParser#inclusive_or_expression. def exitInclusive_or_expression(self, ctx: CSharpParser.Inclusive_or_expressionContext): pass # Enter a parse tree produced by CSharpParser#exclusive_or_expression. def enterExclusive_or_expression(self, ctx: CSharpParser.Exclusive_or_expressionContext): pass # Exit a parse tree produced by CSharpParser#exclusive_or_expression. def exitExclusive_or_expression(self, ctx: CSharpParser.Exclusive_or_expressionContext): pass # Enter a parse tree produced by CSharpParser#and_expression. def enterAnd_expression(self, ctx: CSharpParser.And_expressionContext): pass # Exit a parse tree produced by CSharpParser#and_expression. def exitAnd_expression(self, ctx: CSharpParser.And_expressionContext): pass # Enter a parse tree produced by CSharpParser#equality_expression. def enterEquality_expression(self, ctx: CSharpParser.Equality_expressionContext): pass # Exit a parse tree produced by CSharpParser#equality_expression. def exitEquality_expression(self, ctx: CSharpParser.Equality_expressionContext): pass # Enter a parse tree produced by CSharpParser#relational_expression. def enterRelational_expression(self, ctx: CSharpParser.Relational_expressionContext): pass # Exit a parse tree produced by CSharpParser#relational_expression. def exitRelational_expression(self, ctx: CSharpParser.Relational_expressionContext): pass # Enter a parse tree produced by CSharpParser#shift_expression. def enterShift_expression(self, ctx: CSharpParser.Shift_expressionContext): pass # Exit a parse tree produced by CSharpParser#shift_expression. def exitShift_expression(self, ctx: CSharpParser.Shift_expressionContext): pass # Enter a parse tree produced by CSharpParser#additive_expression. def enterAdditive_expression(self, ctx: CSharpParser.Additive_expressionContext): pass # Exit a parse tree produced by CSharpParser#additive_expression. def exitAdditive_expression(self, ctx: CSharpParser.Additive_expressionContext): pass # Enter a parse tree produced by CSharpParser#multiplicative_expression. def enterMultiplicative_expression(self, ctx: CSharpParser.Multiplicative_expressionContext): pass # Exit a parse tree produced by CSharpParser#multiplicative_expression. def exitMultiplicative_expression(self, ctx: CSharpParser.Multiplicative_expressionContext): pass # Enter a parse tree produced by CSharpParser#unary_expression. def enterUnary_expression(self, ctx: CSharpParser.Unary_expressionContext): pass # Exit a parse tree produced by CSharpParser#unary_expression. def exitUnary_expression(self, ctx: CSharpParser.Unary_expressionContext): pass # Enter a parse tree produced by CSharpParser#primary_expression. def enterPrimary_expression(self, ctx: CSharpParser.Primary_expressionContext): pass # Exit a parse tree produced by CSharpParser#primary_expression. def exitPrimary_expression(self, ctx: CSharpParser.Primary_expressionContext): pass # Enter a parse tree produced by CSharpParser#literalExpression. def enterLiteralExpression(self, ctx: CSharpParser.LiteralExpressionContext): pass # Exit a parse tree produced by CSharpParser#literalExpression. def exitLiteralExpression(self, ctx: CSharpParser.LiteralExpressionContext): pass # Enter a parse tree produced by CSharpParser#simpleNameExpression. def enterSimpleNameExpression(self, ctx: CSharpParser.SimpleNameExpressionContext): pass # Exit a parse tree produced by CSharpParser#simpleNameExpression. def exitSimpleNameExpression(self, ctx: CSharpParser.SimpleNameExpressionContext): pass # Enter a parse tree produced by CSharpParser#parenthesisExpressions. def enterParenthesisExpressions(self, ctx: CSharpParser.ParenthesisExpressionsContext): pass # Exit a parse tree produced by CSharpParser#parenthesisExpressions. def exitParenthesisExpressions(self, ctx: CSharpParser.ParenthesisExpressionsContext): pass # Enter a parse tree produced by CSharpParser#memberAccessExpression. def enterMemberAccessExpression(self, ctx: CSharpParser.MemberAccessExpressionContext): pass # Exit a parse tree produced by CSharpParser#memberAccessExpression. def exitMemberAccessExpression(self, ctx: CSharpParser.MemberAccessExpressionContext): pass # Enter a parse tree produced by CSharpParser#literalAccessExpression. def enterLiteralAccessExpression(self, ctx: CSharpParser.LiteralAccessExpressionContext): pass # Exit a parse tree produced by CSharpParser#literalAccessExpression. def exitLiteralAccessExpression(self, ctx: CSharpParser.LiteralAccessExpressionContext): pass # Enter a parse tree produced by CSharpParser#thisReferenceExpression. def enterThisReferenceExpression(self, ctx: CSharpParser.ThisReferenceExpressionContext): pass # Exit a parse tree produced by CSharpParser#thisReferenceExpression. def exitThisReferenceExpression(self, ctx: CSharpParser.ThisReferenceExpressionContext): pass # Enter a parse tree produced by CSharpParser#baseAccessExpression. def enterBaseAccessExpression(self, ctx: CSharpParser.BaseAccessExpressionContext): pass # Exit a parse tree produced by CSharpParser#baseAccessExpression. def exitBaseAccessExpression(self, ctx: CSharpParser.BaseAccessExpressionContext): pass # Enter a parse tree produced by CSharpParser#objectCreationExpression. def enterObjectCreationExpression(self, ctx: CSharpParser.ObjectCreationExpressionContext): pass # Exit a parse tree produced by CSharpParser#objectCreationExpression. def exitObjectCreationExpression(self, ctx: CSharpParser.ObjectCreationExpressionContext): pass # Enter a parse tree produced by CSharpParser#typeofExpression. def enterTypeofExpression(self, ctx: CSharpParser.TypeofExpressionContext): pass # Exit a parse tree produced by CSharpParser#typeofExpression. def exitTypeofExpression(self, ctx: CSharpParser.TypeofExpressionContext): pass # Enter a parse tree produced by CSharpParser#checkedExpression. def enterCheckedExpression(self, ctx: CSharpParser.CheckedExpressionContext): pass # Exit a parse tree produced by CSharpParser#checkedExpression. def exitCheckedExpression(self, ctx: CSharpParser.CheckedExpressionContext): pass # Enter a parse tree produced by CSharpParser#uncheckedExpression. def enterUncheckedExpression(self, ctx: CSharpParser.UncheckedExpressionContext): pass # Exit a parse tree produced by CSharpParser#uncheckedExpression. def exitUncheckedExpression(self, ctx: CSharpParser.UncheckedExpressionContext): pass # Enter a parse tree produced by CSharpParser#defaultValueExpression. def enterDefaultValueExpression(self, ctx: CSharpParser.DefaultValueExpressionContext): pass # Exit a parse tree produced by CSharpParser#defaultValueExpression. def exitDefaultValueExpression(self, ctx: CSharpParser.DefaultValueExpressionContext): pass # Enter a parse tree produced by CSharpParser#anonymousMethodExpression. def enterAnonymousMethodExpression(self, ctx: CSharpParser.AnonymousMethodExpressionContext): pass # Exit a parse tree produced by CSharpParser#anonymousMethodExpression. def exitAnonymousMethodExpression(self, ctx: CSharpParser.AnonymousMethodExpressionContext): pass # Enter a parse tree produced by CSharpParser#sizeofExpression. def enterSizeofExpression(self, ctx: CSharpParser.SizeofExpressionContext): pass # Exit a parse tree produced by CSharpParser#sizeofExpression. def exitSizeofExpression(self, ctx: CSharpParser.SizeofExpressionContext): pass # Enter a parse tree produced by CSharpParser#nameofExpression. def enterNameofExpression(self, ctx: CSharpParser.NameofExpressionContext): pass # Exit a parse tree produced by CSharpParser#nameofExpression. def exitNameofExpression(self, ctx: CSharpParser.NameofExpressionContext): pass # Enter a parse tree produced by CSharpParser#member_access. def enterMember_access(self, ctx: CSharpParser.Member_accessContext): pass # Exit a parse tree produced by CSharpParser#member_access. def exitMember_access(self, ctx: CSharpParser.Member_accessContext): pass # Enter a parse tree produced by CSharpParser#bracket_expression. def enterBracket_expression(self, ctx: CSharpParser.Bracket_expressionContext): pass # Exit a parse tree produced by CSharpParser#bracket_expression. def exitBracket_expression(self, ctx: CSharpParser.Bracket_expressionContext): pass # Enter a parse tree produced by CSharpParser#indexer_argument. def enterIndexer_argument(self, ctx: CSharpParser.Indexer_argumentContext): pass # Exit a parse tree produced by CSharpParser#indexer_argument. def exitIndexer_argument(self, ctx: CSharpParser.Indexer_argumentContext): pass # Enter a parse tree produced by CSharpParser#predefined_type. def enterPredefined_type(self, ctx: CSharpParser.Predefined_typeContext): pass # Exit a parse tree produced by CSharpParser#predefined_type. def exitPredefined_type(self, ctx: CSharpParser.Predefined_typeContext): pass # Enter a parse tree produced by CSharpParser#expression_list. def enterExpression_list(self, ctx: CSharpParser.Expression_listContext): pass # Exit a parse tree produced by CSharpParser#expression_list. def exitExpression_list(self, ctx: CSharpParser.Expression_listContext): pass # Enter a parse tree produced by CSharpParser#object_or_collection_initializer. def enterObject_or_collection_initializer(self, ctx: CSharpParser.Object_or_collection_initializerContext): pass # Exit a parse tree produced by CSharpParser#object_or_collection_initializer. def exitObject_or_collection_initializer(self, ctx: CSharpParser.Object_or_collection_initializerContext): pass # Enter a parse tree produced by CSharpParser#object_initializer. def enterObject_initializer(self, ctx: CSharpParser.Object_initializerContext): pass # Exit a parse tree produced by CSharpParser#object_initializer. def exitObject_initializer(self, ctx: CSharpParser.Object_initializerContext): pass # Enter a parse tree produced by CSharpParser#member_initializer_list. def enterMember_initializer_list(self, ctx: CSharpParser.Member_initializer_listContext): pass # Exit a parse tree produced by CSharpParser#member_initializer_list. def exitMember_initializer_list(self, ctx: CSharpParser.Member_initializer_listContext): pass # Enter a parse tree produced by CSharpParser#member_initializer. def enterMember_initializer(self, ctx: CSharpParser.Member_initializerContext): pass # Exit a parse tree produced by CSharpParser#member_initializer. def exitMember_initializer(self, ctx: CSharpParser.Member_initializerContext): pass # Enter a parse tree produced by CSharpParser#initializer_value. def enterInitializer_value(self, ctx: CSharpParser.Initializer_valueContext): pass # Exit a parse tree produced by CSharpParser#initializer_value. def exitInitializer_value(self, ctx: CSharpParser.Initializer_valueContext): pass # Enter a parse tree produced by CSharpParser#collection_initializer. def enterCollection_initializer(self, ctx: CSharpParser.Collection_initializerContext): pass # Exit a parse tree produced by CSharpParser#collection_initializer. def exitCollection_initializer(self, ctx: CSharpParser.Collection_initializerContext): pass # Enter a parse tree produced by CSharpParser#element_initializer. def enterElement_initializer(self, ctx: CSharpParser.Element_initializerContext): pass # Exit a parse tree produced by CSharpParser#element_initializer. def exitElement_initializer(self, ctx: CSharpParser.Element_initializerContext): pass # Enter a parse tree produced by CSharpParser#anonymous_object_initializer. def enterAnonymous_object_initializer(self, ctx: CSharpParser.Anonymous_object_initializerContext): pass # Exit a parse tree produced by CSharpParser#anonymous_object_initializer. def exitAnonymous_object_initializer(self, ctx: CSharpParser.Anonymous_object_initializerContext): pass # Enter a parse tree produced by CSharpParser#member_declarator_list. def enterMember_declarator_list(self, ctx: CSharpParser.Member_declarator_listContext): pass # Exit a parse tree produced by CSharpParser#member_declarator_list. def exitMember_declarator_list(self, ctx: CSharpParser.Member_declarator_listContext): pass # Enter a parse tree produced by CSharpParser#member_declarator. def enterMember_declarator(self, ctx: CSharpParser.Member_declaratorContext): pass # Exit a parse tree produced by CSharpParser#member_declarator. def exitMember_declarator(self, ctx: CSharpParser.Member_declaratorContext): pass # Enter a parse tree produced by CSharpParser#unbound_type_name. def enterUnbound_type_name(self, ctx: CSharpParser.Unbound_type_nameContext): pass # Exit a parse tree produced by CSharpParser#unbound_type_name. def exitUnbound_type_name(self, ctx: CSharpParser.Unbound_type_nameContext): pass # Enter a parse tree produced by CSharpParser#generic_dimension_specifier. def enterGeneric_dimension_specifier(self, ctx: CSharpParser.Generic_dimension_specifierContext): pass # Exit a parse tree produced by CSharpParser#generic_dimension_specifier. def exitGeneric_dimension_specifier(self, ctx: CSharpParser.Generic_dimension_specifierContext): pass # Enter a parse tree produced by CSharpParser#isType. def enterIsType(self, ctx: CSharpParser.IsTypeContext): pass # Exit a parse tree produced by CSharpParser#isType. def exitIsType(self, ctx: CSharpParser.IsTypeContext): pass # Enter a parse tree produced by CSharpParser#lambda_expression. def enterLambda_expression(self, ctx: CSharpParser.Lambda_expressionContext): pass # Exit a parse tree produced by CSharpParser#lambda_expression. def exitLambda_expression(self, ctx: CSharpParser.Lambda_expressionContext): pass # Enter a parse tree produced by CSharpParser#anonymous_function_signature. def enterAnonymous_function_signature(self, ctx: CSharpParser.Anonymous_function_signatureContext): pass # Exit a parse tree produced by CSharpParser#anonymous_function_signature. def exitAnonymous_function_signature(self, ctx: CSharpParser.Anonymous_function_signatureContext): pass # Enter a parse tree produced by CSharpParser#explicit_anonymous_function_parameter_list. def enterExplicit_anonymous_function_parameter_list(self, ctx: CSharpParser.Explicit_anonymous_function_parameter_listContext): pass # Exit a parse tree produced by CSharpParser#explicit_anonymous_function_parameter_list. def exitExplicit_anonymous_function_parameter_list(self, ctx: CSharpParser.Explicit_anonymous_function_parameter_listContext): pass # Enter a parse tree produced by CSharpParser#explicit_anonymous_function_parameter. def enterExplicit_anonymous_function_parameter(self, ctx: CSharpParser.Explicit_anonymous_function_parameterContext): pass # Exit a parse tree produced by CSharpParser#explicit_anonymous_function_parameter. def exitExplicit_anonymous_function_parameter(self, ctx: CSharpParser.Explicit_anonymous_function_parameterContext): pass # Enter a parse tree produced by CSharpParser#implicit_anonymous_function_parameter_list. def enterImplicit_anonymous_function_parameter_list(self, ctx: CSharpParser.Implicit_anonymous_function_parameter_listContext): pass # Exit a parse tree produced by CSharpParser#implicit_anonymous_function_parameter_list. def exitImplicit_anonymous_function_parameter_list(self, ctx: CSharpParser.Implicit_anonymous_function_parameter_listContext): pass # Enter a parse tree produced by CSharpParser#anonymous_function_body. def enterAnonymous_function_body(self, ctx: CSharpParser.Anonymous_function_bodyContext): pass # Exit a parse tree produced by CSharpParser#anonymous_function_body. def exitAnonymous_function_body(self, ctx: CSharpParser.Anonymous_function_bodyContext): pass # Enter a parse tree produced by CSharpParser#query_expression. def enterQuery_expression(self, ctx: CSharpParser.Query_expressionContext): pass # Exit a parse tree produced by CSharpParser#query_expression. def exitQuery_expression(self, ctx: CSharpParser.Query_expressionContext): pass # Enter a parse tree produced by CSharpParser#from_clause. def enterFrom_clause(self, ctx: CSharpParser.From_clauseContext): pass # Exit a parse tree produced by CSharpParser#from_clause. def exitFrom_clause(self, ctx: CSharpParser.From_clauseContext): pass # Enter a parse tree produced by CSharpParser#query_body. def enterQuery_body(self, ctx: CSharpParser.Query_bodyContext): pass # Exit a parse tree produced by CSharpParser#query_body. def exitQuery_body(self, ctx: CSharpParser.Query_bodyContext): pass # Enter a parse tree produced by CSharpParser#query_body_clause. def enterQuery_body_clause(self, ctx: CSharpParser.Query_body_clauseContext): pass # Exit a parse tree produced by CSharpParser#query_body_clause. def exitQuery_body_clause(self, ctx: CSharpParser.Query_body_clauseContext): pass # Enter a parse tree produced by CSharpParser#let_clause. def enterLet_clause(self, ctx: CSharpParser.Let_clauseContext): pass # Exit a parse tree produced by CSharpParser#let_clause. def exitLet_clause(self, ctx: CSharpParser.Let_clauseContext): pass # Enter a parse tree produced by CSharpParser#where_clause. def enterWhere_clause(self, ctx: CSharpParser.Where_clauseContext): pass # Exit a parse tree produced by CSharpParser#where_clause. def exitWhere_clause(self, ctx: CSharpParser.Where_clauseContext): pass # Enter a parse tree produced by CSharpParser#combined_join_clause. def enterCombined_join_clause(self, ctx: CSharpParser.Combined_join_clauseContext): pass # Exit a parse tree produced by CSharpParser#combined_join_clause. def exitCombined_join_clause(self, ctx: CSharpParser.Combined_join_clauseContext): pass # Enter a parse tree produced by CSharpParser#orderby_clause. def enterOrderby_clause(self, ctx: CSharpParser.Orderby_clauseContext): pass # Exit a parse tree produced by CSharpParser#orderby_clause. def exitOrderby_clause(self, ctx: CSharpParser.Orderby_clauseContext): pass # Enter a parse tree produced by CSharpParser#ordering. def enterOrdering(self, ctx: CSharpParser.OrderingContext): pass # Exit a parse tree produced by CSharpParser#ordering. def exitOrdering(self, ctx: CSharpParser.OrderingContext): pass # Enter a parse tree produced by CSharpParser#select_or_group_clause. def enterSelect_or_group_clause(self, ctx: CSharpParser.Select_or_group_clauseContext): pass # Exit a parse tree produced by CSharpParser#select_or_group_clause. def exitSelect_or_group_clause(self, ctx: CSharpParser.Select_or_group_clauseContext): pass # Enter a parse tree produced by CSharpParser#query_continuation. def enterQuery_continuation(self, ctx: CSharpParser.Query_continuationContext): pass # Exit a parse tree produced by CSharpParser#query_continuation. def exitQuery_continuation(self, ctx: CSharpParser.Query_continuationContext): pass # Enter a parse tree produced by CSharpParser#labeledStatement. def enterLabeledStatement(self, ctx: CSharpParser.LabeledStatementContext): pass # Exit a parse tree produced by CSharpParser#labeledStatement. def exitLabeledStatement(self, ctx: CSharpParser.LabeledStatementContext): pass # Enter a parse tree produced by CSharpParser#declarationStatement. def enterDeclarationStatement(self, ctx: CSharpParser.DeclarationStatementContext): pass # Exit a parse tree produced by CSharpParser#declarationStatement. def exitDeclarationStatement(self, ctx: CSharpParser.DeclarationStatementContext): pass # Enter a parse tree produced by CSharpParser#embeddedStatement. def enterEmbeddedStatement(self, ctx: CSharpParser.EmbeddedStatementContext): pass # Exit a parse tree produced by CSharpParser#embeddedStatement. def exitEmbeddedStatement(self, ctx: CSharpParser.EmbeddedStatementContext): pass # Enter a parse tree produced by CSharpParser#labeled_Statement. def enterLabeled_Statement(self, ctx: CSharpParser.Labeled_StatementContext): pass # Exit a parse tree produced by CSharpParser#labeled_Statement. def exitLabeled_Statement(self, ctx: CSharpParser.Labeled_StatementContext): pass # Enter a parse tree produced by CSharpParser#embedded_statement. def enterEmbedded_statement(self, ctx: CSharpParser.Embedded_statementContext): pass # Exit a parse tree produced by CSharpParser#embedded_statement. def exitEmbedded_statement(self, ctx: CSharpParser.Embedded_statementContext): pass # Enter a parse tree produced by CSharpParser#emptyStatement. def enterEmptyStatement(self, ctx: CSharpParser.EmptyStatementContext): pass # Exit a parse tree produced by CSharpParser#emptyStatement. def exitEmptyStatement(self, ctx: CSharpParser.EmptyStatementContext): pass # Enter a parse tree produced by CSharpParser#expressionStatement. def enterExpressionStatement(self, ctx: CSharpParser.ExpressionStatementContext): pass # Exit a parse tree produced by CSharpParser#expressionStatement. def exitExpressionStatement(self, ctx: CSharpParser.ExpressionStatementContext): pass # Enter a parse tree produced by CSharpParser#ifStatement. def enterIfStatement(self, ctx: CSharpParser.IfStatementContext): pass # Exit a parse tree produced by CSharpParser#ifStatement. def exitIfStatement(self, ctx: CSharpParser.IfStatementContext): pass # Enter a parse tree produced by CSharpParser#switchStatement. def enterSwitchStatement(self, ctx: CSharpParser.SwitchStatementContext): pass # Exit a parse tree produced by CSharpParser#switchStatement. def exitSwitchStatement(self, ctx: CSharpParser.SwitchStatementContext): pass # Enter a parse tree produced by CSharpParser#whileStatement. def enterWhileStatement(self, ctx: CSharpParser.WhileStatementContext): pass # Exit a parse tree produced by CSharpParser#whileStatement. def exitWhileStatement(self, ctx: CSharpParser.WhileStatementContext): pass # Enter a parse tree produced by CSharpParser#doStatement. def enterDoStatement(self, ctx: CSharpParser.DoStatementContext): pass # Exit a parse tree produced by CSharpParser#doStatement. def exitDoStatement(self, ctx: CSharpParser.DoStatementContext): pass # Enter a parse tree produced by CSharpParser#forStatement. def enterForStatement(self, ctx: CSharpParser.ForStatementContext): pass # Exit a parse tree produced by CSharpParser#forStatement. def exitForStatement(self, ctx: CSharpParser.ForStatementContext): pass # Enter a parse tree produced by CSharpParser#foreachStatement. def enterForeachStatement(self, ctx: CSharpParser.ForeachStatementContext): pass # Exit a parse tree produced by CSharpParser#foreachStatement. def exitForeachStatement(self, ctx: CSharpParser.ForeachStatementContext): pass # Enter a parse tree produced by CSharpParser#breakStatement. def enterBreakStatement(self, ctx: CSharpParser.BreakStatementContext): pass # Exit a parse tree produced by CSharpParser#breakStatement. def exitBreakStatement(self, ctx: CSharpParser.BreakStatementContext): pass # Enter a parse tree produced by CSharpParser#continueStatement. def enterContinueStatement(self, ctx: CSharpParser.ContinueStatementContext): pass # Exit a parse tree produced by CSharpParser#continueStatement. def exitContinueStatement(self, ctx: CSharpParser.ContinueStatementContext): pass # Enter a parse tree produced by CSharpParser#gotoStatement. def enterGotoStatement(self, ctx: CSharpParser.GotoStatementContext): pass # Exit a parse tree produced by CSharpParser#gotoStatement. def exitGotoStatement(self, ctx: CSharpParser.GotoStatementContext): pass # Enter a parse tree produced by CSharpParser#returnStatement. def enterReturnStatement(self, ctx: CSharpParser.ReturnStatementContext): pass # Exit a parse tree produced by CSharpParser#returnStatement. def exitReturnStatement(self, ctx: CSharpParser.ReturnStatementContext): pass # Enter a parse tree produced by CSharpParser#throwStatement. def enterThrowStatement(self, ctx: CSharpParser.ThrowStatementContext): pass # Exit a parse tree produced by CSharpParser#throwStatement. def exitThrowStatement(self, ctx: CSharpParser.ThrowStatementContext): pass # Enter a parse tree produced by CSharpParser#tryStatement. def enterTryStatement(self, ctx: CSharpParser.TryStatementContext): pass # Exit a parse tree produced by CSharpParser#tryStatement. def exitTryStatement(self, ctx: CSharpParser.TryStatementContext): pass # Enter a parse tree produced by CSharpParser#checkedStatement. def enterCheckedStatement(self, ctx: CSharpParser.CheckedStatementContext): pass # Exit a parse tree produced by CSharpParser#checkedStatement. def exitCheckedStatement(self, ctx: CSharpParser.CheckedStatementContext): pass # Enter a parse tree produced by CSharpParser#uncheckedStatement. def enterUncheckedStatement(self, ctx: CSharpParser.UncheckedStatementContext): pass # Exit a parse tree produced by CSharpParser#uncheckedStatement. def exitUncheckedStatement(self, ctx: CSharpParser.UncheckedStatementContext): pass # Enter a parse tree produced by CSharpParser#lockStatement. def enterLockStatement(self, ctx: CSharpParser.LockStatementContext): pass # Exit a parse tree produced by CSharpParser#lockStatement. def exitLockStatement(self, ctx: CSharpParser.LockStatementContext): pass # Enter a parse tree produced by CSharpParser#usingStatement. def enterUsingStatement(self, ctx: CSharpParser.UsingStatementContext): pass # Exit a parse tree produced by CSharpParser#usingStatement. def exitUsingStatement(self, ctx: CSharpParser.UsingStatementContext): pass # Enter a parse tree produced by CSharpParser#yieldStatement. def enterYieldStatement(self, ctx: CSharpParser.YieldStatementContext): pass # Exit a parse tree produced by CSharpParser#yieldStatement. def exitYieldStatement(self, ctx: CSharpParser.YieldStatementContext): pass # Enter a parse tree produced by CSharpParser#unsafeStatement. def enterUnsafeStatement(self, ctx: CSharpParser.UnsafeStatementContext): pass # Exit a parse tree produced by CSharpParser#unsafeStatement. def exitUnsafeStatement(self, ctx: CSharpParser.UnsafeStatementContext): pass # Enter a parse tree produced by CSharpParser#fixedStatement. def enterFixedStatement(self, ctx: CSharpParser.FixedStatementContext): pass # Exit a parse tree produced by CSharpParser#fixedStatement. def exitFixedStatement(self, ctx: CSharpParser.FixedStatementContext): pass # Enter a parse tree produced by CSharpParser#block. def enterBlock(self, ctx: CSharpParser.BlockContext): pass # Exit a parse tree produced by CSharpParser#block. def exitBlock(self, ctx: CSharpParser.BlockContext): pass # Enter a parse tree produced by CSharpParser#local_variable_declaration. def enterLocal_variable_declaration(self, ctx: CSharpParser.Local_variable_declarationContext): pass # Exit a parse tree produced by CSharpParser#local_variable_declaration. def exitLocal_variable_declaration(self, ctx: CSharpParser.Local_variable_declarationContext): pass # Enter a parse tree produced by CSharpParser#local_variable_type. def enterLocal_variable_type(self, ctx: CSharpParser.Local_variable_typeContext): pass # Exit a parse tree produced by CSharpParser#local_variable_type. def exitLocal_variable_type(self, ctx: CSharpParser.Local_variable_typeContext): pass # Enter a parse tree produced by CSharpParser#local_variable_declarator. def enterLocal_variable_declarator(self, ctx: CSharpParser.Local_variable_declaratorContext): pass # Exit a parse tree produced by CSharpParser#local_variable_declarator. def exitLocal_variable_declarator(self, ctx: CSharpParser.Local_variable_declaratorContext): pass # Enter a parse tree produced by CSharpParser#local_variable_initializer. def enterLocal_variable_initializer(self, ctx: CSharpParser.Local_variable_initializerContext): pass # Exit a parse tree produced by CSharpParser#local_variable_initializer. def exitLocal_variable_initializer(self, ctx: CSharpParser.Local_variable_initializerContext): pass # Enter a parse tree produced by CSharpParser#local_constant_declaration. def enterLocal_constant_declaration(self, ctx: CSharpParser.Local_constant_declarationContext): pass # Exit a parse tree produced by CSharpParser#local_constant_declaration. def exitLocal_constant_declaration(self, ctx: CSharpParser.Local_constant_declarationContext): pass # Enter a parse tree produced by CSharpParser#if_body. def enterIf_body(self, ctx: CSharpParser.If_bodyContext): pass # Exit a parse tree produced by CSharpParser#if_body. def exitIf_body(self, ctx: CSharpParser.If_bodyContext): pass # Enter a parse tree produced by CSharpParser#switch_section. def enterSwitch_section(self, ctx: CSharpParser.Switch_sectionContext): pass # Exit a parse tree produced by CSharpParser#switch_section. def exitSwitch_section(self, ctx: CSharpParser.Switch_sectionContext): pass # Enter a parse tree produced by CSharpParser#switch_label. def enterSwitch_label(self, ctx: CSharpParser.Switch_labelContext): pass # Exit a parse tree produced by CSharpParser#switch_label. def exitSwitch_label(self, ctx: CSharpParser.Switch_labelContext): pass # Enter a parse tree produced by CSharpParser#statement_list. def enterStatement_list(self, ctx: CSharpParser.Statement_listContext): pass # Exit a parse tree produced by CSharpParser#statement_list. def exitStatement_list(self, ctx: CSharpParser.Statement_listContext): pass # Enter a parse tree produced by CSharpParser#for_initializer. def enterFor_initializer(self, ctx: CSharpParser.For_initializerContext): pass # Exit a parse tree produced by CSharpParser#for_initializer. def exitFor_initializer(self, ctx: CSharpParser.For_initializerContext): pass # Enter a parse tree produced by CSharpParser#for_iterator. def enterFor_iterator(self, ctx: CSharpParser.For_iteratorContext): pass # Exit a parse tree produced by CSharpParser#for_iterator. def exitFor_iterator(self, ctx: CSharpParser.For_iteratorContext): pass # Enter a parse tree produced by CSharpParser#catch_clauses. def enterCatch_clauses(self, ctx: CSharpParser.Catch_clausesContext): pass # Exit a parse tree produced by CSharpParser#catch_clauses. def exitCatch_clauses(self, ctx: CSharpParser.Catch_clausesContext): pass # Enter a parse tree produced by CSharpParser#specific_catch_clause. def enterSpecific_catch_clause(self, ctx: CSharpParser.Specific_catch_clauseContext): pass # Exit a parse tree produced by CSharpParser#specific_catch_clause. def exitSpecific_catch_clause(self, ctx: CSharpParser.Specific_catch_clauseContext): pass # Enter a parse tree produced by CSharpParser#general_catch_clause. def enterGeneral_catch_clause(self, ctx: CSharpParser.General_catch_clauseContext): pass # Exit a parse tree produced by CSharpParser#general_catch_clause. def exitGeneral_catch_clause(self, ctx: CSharpParser.General_catch_clauseContext): pass # Enter a parse tree produced by CSharpParser#exception_filter. def enterException_filter(self, ctx: CSharpParser.Exception_filterContext): pass # Exit a parse tree produced by CSharpParser#exception_filter. def exitException_filter(self, ctx: CSharpParser.Exception_filterContext): pass # Enter a parse tree produced by CSharpParser#finally_clause. def enterFinally_clause(self, ctx: CSharpParser.Finally_clauseContext): pass # Exit a parse tree produced by CSharpParser#finally_clause. def exitFinally_clause(self, ctx: CSharpParser.Finally_clauseContext): pass # Enter a parse tree produced by CSharpParser#resource_acquisition. def enterResource_acquisition(self, ctx: CSharpParser.Resource_acquisitionContext): pass # Exit a parse tree produced by CSharpParser#resource_acquisition. def exitResource_acquisition(self, ctx: CSharpParser.Resource_acquisitionContext): pass # Enter a parse tree produced by CSharpParser#namespace_declaration. def enterNamespace_declaration(self, ctx: CSharpParser.Namespace_declarationContext): pass # Exit a parse tree produced by CSharpParser#namespace_declaration. def exitNamespace_declaration(self, ctx: CSharpParser.Namespace_declarationContext): pass # Enter a parse tree produced by CSharpParser#qualified_identifier. def enterQualified_identifier(self, ctx: CSharpParser.Qualified_identifierContext): pass # Exit a parse tree produced by CSharpParser#qualified_identifier. def exitQualified_identifier(self, ctx: CSharpParser.Qualified_identifierContext): pass # Enter a parse tree produced by CSharpParser#namespace_body. def enterNamespace_body(self, ctx: CSharpParser.Namespace_bodyContext): pass # Exit a parse tree produced by CSharpParser#namespace_body. def exitNamespace_body(self, ctx: CSharpParser.Namespace_bodyContext): pass # Enter a parse tree produced by CSharpParser#extern_alias_directives. def enterExtern_alias_directives(self, ctx: CSharpParser.Extern_alias_directivesContext): pass # Exit a parse tree produced by CSharpParser#extern_alias_directives. def exitExtern_alias_directives(self, ctx: CSharpParser.Extern_alias_directivesContext): pass # Enter a parse tree produced by CSharpParser#extern_alias_directive. def enterExtern_alias_directive(self, ctx: CSharpParser.Extern_alias_directiveContext): pass # Exit a parse tree produced by CSharpParser#extern_alias_directive. def exitExtern_alias_directive(self, ctx: CSharpParser.Extern_alias_directiveContext): pass # Enter a parse tree produced by CSharpParser#using_directives. def enterUsing_directives(self, ctx: CSharpParser.Using_directivesContext): pass # Exit a parse tree produced by CSharpParser#using_directives. def exitUsing_directives(self, ctx: CSharpParser.Using_directivesContext): pass # Enter a parse tree produced by CSharpParser#usingAliasDirective. def enterUsingAliasDirective(self, ctx: CSharpParser.UsingAliasDirectiveContext): pass # Exit a parse tree produced by CSharpParser#usingAliasDirective. def exitUsingAliasDirective(self, ctx: CSharpParser.UsingAliasDirectiveContext): pass # Enter a parse tree produced by CSharpParser#usingNamespaceDirective. def enterUsingNamespaceDirective(self, ctx: CSharpParser.UsingNamespaceDirectiveContext): pass # Exit a parse tree produced by CSharpParser#usingNamespaceDirective. def exitUsingNamespaceDirective(self, ctx: CSharpParser.UsingNamespaceDirectiveContext): pass # Enter a parse tree produced by CSharpParser#usingStaticDirective. def enterUsingStaticDirective(self, ctx: CSharpParser.UsingStaticDirectiveContext): pass # Exit a parse tree produced by CSharpParser#usingStaticDirective. def exitUsingStaticDirective(self, ctx: CSharpParser.UsingStaticDirectiveContext): pass # Enter a parse tree produced by CSharpParser#namespace_member_declarations. def enterNamespace_member_declarations(self, ctx: CSharpParser.Namespace_member_declarationsContext): pass # Exit a parse tree produced by CSharpParser#namespace_member_declarations. def exitNamespace_member_declarations(self, ctx: CSharpParser.Namespace_member_declarationsContext): pass # Enter a parse tree produced by CSharpParser#namespace_member_declaration. def enterNamespace_member_declaration(self, ctx: CSharpParser.Namespace_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#namespace_member_declaration. def exitNamespace_member_declaration(self, ctx: CSharpParser.Namespace_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#type_declaration. def enterType_declaration(self, ctx: CSharpParser.Type_declarationContext): pass # Exit a parse tree produced by CSharpParser#type_declaration. def exitType_declaration(self, ctx: CSharpParser.Type_declarationContext): pass # Enter a parse tree produced by CSharpParser#qualified_alias_member. def enterQualified_alias_member(self, ctx: CSharpParser.Qualified_alias_memberContext): pass # Exit a parse tree produced by CSharpParser#qualified_alias_member. def exitQualified_alias_member(self, ctx: CSharpParser.Qualified_alias_memberContext): pass # Enter a parse tree produced by CSharpParser#type_parameter_list. def enterType_parameter_list(self, ctx: CSharpParser.Type_parameter_listContext): pass # Exit a parse tree produced by CSharpParser#type_parameter_list. def exitType_parameter_list(self, ctx: CSharpParser.Type_parameter_listContext): pass # Enter a parse tree produced by CSharpParser#type_parameter. def enterType_parameter(self, ctx: CSharpParser.Type_parameterContext): pass # Exit a parse tree produced by CSharpParser#type_parameter. def exitType_parameter(self, ctx: CSharpParser.Type_parameterContext): pass # Enter a parse tree produced by CSharpParser#class_base. def enterClass_base(self, ctx: CSharpParser.Class_baseContext): pass # Exit a parse tree produced by CSharpParser#class_base. def exitClass_base(self, ctx: CSharpParser.Class_baseContext): pass # Enter a parse tree produced by CSharpParser#interface_type_list. def enterInterface_type_list(self, ctx: CSharpParser.Interface_type_listContext): pass # Exit a parse tree produced by CSharpParser#interface_type_list. def exitInterface_type_list(self, ctx: CSharpParser.Interface_type_listContext): pass # Enter a parse tree produced by CSharpParser#type_parameter_constraints_clauses. def enterType_parameter_constraints_clauses(self, ctx: CSharpParser.Type_parameter_constraints_clausesContext): pass # Exit a parse tree produced by CSharpParser#type_parameter_constraints_clauses. def exitType_parameter_constraints_clauses(self, ctx: CSharpParser.Type_parameter_constraints_clausesContext): pass # Enter a parse tree produced by CSharpParser#type_parameter_constraints_clause. def enterType_parameter_constraints_clause(self, ctx: CSharpParser.Type_parameter_constraints_clauseContext): pass # Exit a parse tree produced by CSharpParser#type_parameter_constraints_clause. def exitType_parameter_constraints_clause(self, ctx: CSharpParser.Type_parameter_constraints_clauseContext): pass # Enter a parse tree produced by CSharpParser#type_parameter_constraints. def enterType_parameter_constraints(self, ctx: CSharpParser.Type_parameter_constraintsContext): pass # Exit a parse tree produced by CSharpParser#type_parameter_constraints. def exitType_parameter_constraints(self, ctx: CSharpParser.Type_parameter_constraintsContext): pass # Enter a parse tree produced by CSharpParser#primary_constraint. def enterPrimary_constraint(self, ctx: CSharpParser.Primary_constraintContext): pass # Exit a parse tree produced by CSharpParser#primary_constraint. def exitPrimary_constraint(self, ctx: CSharpParser.Primary_constraintContext): pass # Enter a parse tree produced by CSharpParser#secondary_constraints. def enterSecondary_constraints(self, ctx: CSharpParser.Secondary_constraintsContext): pass # Exit a parse tree produced by CSharpParser#secondary_constraints. def exitSecondary_constraints(self, ctx: CSharpParser.Secondary_constraintsContext): pass # Enter a parse tree produced by CSharpParser#constructor_constraint. def enterConstructor_constraint(self, ctx: CSharpParser.Constructor_constraintContext): pass # Exit a parse tree produced by CSharpParser#constructor_constraint. def exitConstructor_constraint(self, ctx: CSharpParser.Constructor_constraintContext): pass # Enter a parse tree produced by CSharpParser#class_body. def enterClass_body(self, ctx: CSharpParser.Class_bodyContext): pass # Exit a parse tree produced by CSharpParser#class_body. def exitClass_body(self, ctx: CSharpParser.Class_bodyContext): pass # Enter a parse tree produced by CSharpParser#class_member_declarations. def enterClass_member_declarations(self, ctx: CSharpParser.Class_member_declarationsContext): pass # Exit a parse tree produced by CSharpParser#class_member_declarations. def exitClass_member_declarations(self, ctx: CSharpParser.Class_member_declarationsContext): pass # Enter a parse tree produced by CSharpParser#class_member_declaration. def enterClass_member_declaration(self, ctx: CSharpParser.Class_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#class_member_declaration. def exitClass_member_declaration(self, ctx: CSharpParser.Class_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#all_member_modifiers. def enterAll_member_modifiers(self, ctx: CSharpParser.All_member_modifiersContext): pass # Exit a parse tree produced by CSharpParser#all_member_modifiers. def exitAll_member_modifiers(self, ctx: CSharpParser.All_member_modifiersContext): pass # Enter a parse tree produced by CSharpParser#all_member_modifier. def enterAll_member_modifier(self, ctx: CSharpParser.All_member_modifierContext): pass # Exit a parse tree produced by CSharpParser#all_member_modifier. def exitAll_member_modifier(self, ctx: CSharpParser.All_member_modifierContext): pass # Enter a parse tree produced by CSharpParser#common_member_declaration. def enterCommon_member_declaration(self, ctx: CSharpParser.Common_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#common_member_declaration. def exitCommon_member_declaration(self, ctx: CSharpParser.Common_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#typed_member_declaration. def enterTyped_member_declaration(self, ctx: CSharpParser.Typed_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#typed_member_declaration. def exitTyped_member_declaration(self, ctx: CSharpParser.Typed_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#constant_declarators. def enterConstant_declarators(self, ctx: CSharpParser.Constant_declaratorsContext): pass # Exit a parse tree produced by CSharpParser#constant_declarators. def exitConstant_declarators(self, ctx: CSharpParser.Constant_declaratorsContext): pass # Enter a parse tree produced by CSharpParser#constant_declarator. def enterConstant_declarator(self, ctx: CSharpParser.Constant_declaratorContext): pass # Exit a parse tree produced by CSharpParser#constant_declarator. def exitConstant_declarator(self, ctx: CSharpParser.Constant_declaratorContext): pass # Enter a parse tree produced by CSharpParser#variable_declarators. def enterVariable_declarators(self, ctx: CSharpParser.Variable_declaratorsContext): pass # Exit a parse tree produced by CSharpParser#variable_declarators. def exitVariable_declarators(self, ctx: CSharpParser.Variable_declaratorsContext): pass # Enter a parse tree produced by CSharpParser#variable_declarator. def enterVariable_declarator(self, ctx: CSharpParser.Variable_declaratorContext): pass # Exit a parse tree produced by CSharpParser#variable_declarator. def exitVariable_declarator(self, ctx: CSharpParser.Variable_declaratorContext): pass # Enter a parse tree produced by CSharpParser#variable_initializer. def enterVariable_initializer(self, ctx: CSharpParser.Variable_initializerContext): pass # Exit a parse tree produced by CSharpParser#variable_initializer. def exitVariable_initializer(self, ctx: CSharpParser.Variable_initializerContext): pass # Enter a parse tree produced by CSharpParser#return_type. def enterReturn_type(self, ctx: CSharpParser.Return_typeContext): pass # Exit a parse tree produced by CSharpParser#return_type. def exitReturn_type(self, ctx: CSharpParser.Return_typeContext): pass # Enter a parse tree produced by CSharpParser#member_name. def enterMember_name(self, ctx: CSharpParser.Member_nameContext): pass # Exit a parse tree produced by CSharpParser#member_name. def exitMember_name(self, ctx: CSharpParser.Member_nameContext): pass # Enter a parse tree produced by CSharpParser#method_body. def enterMethod_body(self, ctx: CSharpParser.Method_bodyContext): pass # Exit a parse tree produced by CSharpParser#method_body. def exitMethod_body(self, ctx: CSharpParser.Method_bodyContext): pass # Enter a parse tree produced by CSharpParser#formal_parameter_list. def enterFormal_parameter_list(self, ctx: CSharpParser.Formal_parameter_listContext): pass # Exit a parse tree produced by CSharpParser#formal_parameter_list. def exitFormal_parameter_list(self, ctx: CSharpParser.Formal_parameter_listContext): pass # Enter a parse tree produced by CSharpParser#fixed_parameters. def enterFixed_parameters(self, ctx: CSharpParser.Fixed_parametersContext): pass # Exit a parse tree produced by CSharpParser#fixed_parameters. def exitFixed_parameters(self, ctx: CSharpParser.Fixed_parametersContext): pass # Enter a parse tree produced by CSharpParser#fixed_parameter. def enterFixed_parameter(self, ctx: CSharpParser.Fixed_parameterContext): pass # Exit a parse tree produced by CSharpParser#fixed_parameter. def exitFixed_parameter(self, ctx: CSharpParser.Fixed_parameterContext): pass # Enter a parse tree produced by CSharpParser#parameter_modifier. def enterParameter_modifier(self, ctx: CSharpParser.Parameter_modifierContext): pass # Exit a parse tree produced by CSharpParser#parameter_modifier. def exitParameter_modifier(self, ctx: CSharpParser.Parameter_modifierContext): pass # Enter a parse tree produced by CSharpParser#parameter_array. def enterParameter_array(self, ctx: CSharpParser.Parameter_arrayContext): pass # Exit a parse tree produced by CSharpParser#parameter_array. def exitParameter_array(self, ctx: CSharpParser.Parameter_arrayContext): pass # Enter a parse tree produced by CSharpParser#accessor_declarations. def enterAccessor_declarations(self, ctx: CSharpParser.Accessor_declarationsContext): pass # Exit a parse tree produced by CSharpParser#accessor_declarations. def exitAccessor_declarations(self, ctx: CSharpParser.Accessor_declarationsContext): pass # Enter a parse tree produced by CSharpParser#get_accessor_declaration. def enterGet_accessor_declaration(self, ctx: CSharpParser.Get_accessor_declarationContext): pass # Exit a parse tree produced by CSharpParser#get_accessor_declaration. def exitGet_accessor_declaration(self, ctx: CSharpParser.Get_accessor_declarationContext): pass # Enter a parse tree produced by CSharpParser#set_accessor_declaration. def enterSet_accessor_declaration(self, ctx: CSharpParser.Set_accessor_declarationContext): pass # Exit a parse tree produced by CSharpParser#set_accessor_declaration. def exitSet_accessor_declaration(self, ctx: CSharpParser.Set_accessor_declarationContext): pass # Enter a parse tree produced by CSharpParser#accessor_modifier. def enterAccessor_modifier(self, ctx: CSharpParser.Accessor_modifierContext): pass # Exit a parse tree produced by CSharpParser#accessor_modifier. def exitAccessor_modifier(self, ctx: CSharpParser.Accessor_modifierContext): pass # Enter a parse tree produced by CSharpParser#accessor_body. def enterAccessor_body(self, ctx: CSharpParser.Accessor_bodyContext): pass # Exit a parse tree produced by CSharpParser#accessor_body. def exitAccessor_body(self, ctx: CSharpParser.Accessor_bodyContext): pass # Enter a parse tree produced by CSharpParser#event_accessor_declarations. def enterEvent_accessor_declarations(self, ctx: CSharpParser.Event_accessor_declarationsContext): pass # Exit a parse tree produced by CSharpParser#event_accessor_declarations. def exitEvent_accessor_declarations(self, ctx: CSharpParser.Event_accessor_declarationsContext): pass # Enter a parse tree produced by CSharpParser#add_accessor_declaration. def enterAdd_accessor_declaration(self, ctx: CSharpParser.Add_accessor_declarationContext): pass # Exit a parse tree produced by CSharpParser#add_accessor_declaration. def exitAdd_accessor_declaration(self, ctx: CSharpParser.Add_accessor_declarationContext): pass # Enter a parse tree produced by CSharpParser#remove_accessor_declaration. def enterRemove_accessor_declaration(self, ctx: CSharpParser.Remove_accessor_declarationContext): pass # Exit a parse tree produced by CSharpParser#remove_accessor_declaration. def exitRemove_accessor_declaration(self, ctx: CSharpParser.Remove_accessor_declarationContext): pass # Enter a parse tree produced by CSharpParser#overloadable_operator. def enterOverloadable_operator(self, ctx: CSharpParser.Overloadable_operatorContext): pass # Exit a parse tree produced by CSharpParser#overloadable_operator. def exitOverloadable_operator(self, ctx: CSharpParser.Overloadable_operatorContext): pass # Enter a parse tree produced by CSharpParser#conversion_operator_declarator. def enterConversion_operator_declarator(self, ctx: CSharpParser.Conversion_operator_declaratorContext): pass # Exit a parse tree produced by CSharpParser#conversion_operator_declarator. def exitConversion_operator_declarator(self, ctx: CSharpParser.Conversion_operator_declaratorContext): pass # Enter a parse tree produced by CSharpParser#constructor_initializer. def enterConstructor_initializer(self, ctx: CSharpParser.Constructor_initializerContext): pass # Exit a parse tree produced by CSharpParser#constructor_initializer. def exitConstructor_initializer(self, ctx: CSharpParser.Constructor_initializerContext): pass # Enter a parse tree produced by CSharpParser#body. def enterBody(self, ctx: CSharpParser.BodyContext): pass # Exit a parse tree produced by CSharpParser#body. def exitBody(self, ctx: CSharpParser.BodyContext): pass # Enter a parse tree produced by CSharpParser#struct_interfaces. def enterStruct_interfaces(self, ctx: CSharpParser.Struct_interfacesContext): pass # Exit a parse tree produced by CSharpParser#struct_interfaces. def exitStruct_interfaces(self, ctx: CSharpParser.Struct_interfacesContext): pass # Enter a parse tree produced by CSharpParser#struct_body. def enterStruct_body(self, ctx: CSharpParser.Struct_bodyContext): pass # Exit a parse tree produced by CSharpParser#struct_body. def exitStruct_body(self, ctx: CSharpParser.Struct_bodyContext): pass # Enter a parse tree produced by CSharpParser#struct_member_declaration. def enterStruct_member_declaration(self, ctx: CSharpParser.Struct_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#struct_member_declaration. def exitStruct_member_declaration(self, ctx: CSharpParser.Struct_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#array_type. def enterArray_type(self, ctx: CSharpParser.Array_typeContext): pass # Exit a parse tree produced by CSharpParser#array_type. def exitArray_type(self, ctx: CSharpParser.Array_typeContext): pass # Enter a parse tree produced by CSharpParser#rank_specifier. def enterRank_specifier(self, ctx: CSharpParser.Rank_specifierContext): pass # Exit a parse tree produced by CSharpParser#rank_specifier. def exitRank_specifier(self, ctx: CSharpParser.Rank_specifierContext): pass # Enter a parse tree produced by CSharpParser#array_initializer. def enterArray_initializer(self, ctx: CSharpParser.Array_initializerContext): pass # Exit a parse tree produced by CSharpParser#array_initializer. def exitArray_initializer(self, ctx: CSharpParser.Array_initializerContext): pass # Enter a parse tree produced by CSharpParser#variant_type_parameter_list. def enterVariant_type_parameter_list(self, ctx: CSharpParser.Variant_type_parameter_listContext): pass # Exit a parse tree produced by CSharpParser#variant_type_parameter_list. def exitVariant_type_parameter_list(self, ctx: CSharpParser.Variant_type_parameter_listContext): pass # Enter a parse tree produced by CSharpParser#variant_type_parameter. def enterVariant_type_parameter(self, ctx: CSharpParser.Variant_type_parameterContext): pass # Exit a parse tree produced by CSharpParser#variant_type_parameter. def exitVariant_type_parameter(self, ctx: CSharpParser.Variant_type_parameterContext): pass # Enter a parse tree produced by CSharpParser#variance_annotation. def enterVariance_annotation(self, ctx: CSharpParser.Variance_annotationContext): pass # Exit a parse tree produced by CSharpParser#variance_annotation. def exitVariance_annotation(self, ctx: CSharpParser.Variance_annotationContext): pass # Enter a parse tree produced by CSharpParser#interface_base. def enterInterface_base(self, ctx: CSharpParser.Interface_baseContext): pass # Exit a parse tree produced by CSharpParser#interface_base. def exitInterface_base(self, ctx: CSharpParser.Interface_baseContext): pass # Enter a parse tree produced by CSharpParser#interface_body. def enterInterface_body(self, ctx: CSharpParser.Interface_bodyContext): pass # Exit a parse tree produced by CSharpParser#interface_body. def exitInterface_body(self, ctx: CSharpParser.Interface_bodyContext): pass # Enter a parse tree produced by CSharpParser#interface_member_declaration. def enterInterface_member_declaration(self, ctx: CSharpParser.Interface_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#interface_member_declaration. def exitInterface_member_declaration(self, ctx: CSharpParser.Interface_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#interface_accessors. def enterInterface_accessors(self, ctx: CSharpParser.Interface_accessorsContext): pass # Exit a parse tree produced by CSharpParser#interface_accessors. def exitInterface_accessors(self, ctx: CSharpParser.Interface_accessorsContext): pass # Enter a parse tree produced by CSharpParser#enum_base. def enterEnum_base(self, ctx: CSharpParser.Enum_baseContext): pass # Exit a parse tree produced by CSharpParser#enum_base. def exitEnum_base(self, ctx: CSharpParser.Enum_baseContext): pass # Enter a parse tree produced by CSharpParser#enum_body. def enterEnum_body(self, ctx: CSharpParser.Enum_bodyContext): pass # Exit a parse tree produced by CSharpParser#enum_body. def exitEnum_body(self, ctx: CSharpParser.Enum_bodyContext): pass # Enter a parse tree produced by CSharpParser#enum_member_declaration. def enterEnum_member_declaration(self, ctx: CSharpParser.Enum_member_declarationContext): pass # Exit a parse tree produced by CSharpParser#enum_member_declaration. def exitEnum_member_declaration(self, ctx: CSharpParser.Enum_member_declarationContext): pass # Enter a parse tree produced by CSharpParser#global_attribute_section. def enterGlobal_attribute_section(self, ctx: CSharpParser.Global_attribute_sectionContext): pass # Exit a parse tree produced by CSharpParser#global_attribute_section. def exitGlobal_attribute_section(self, ctx: CSharpParser.Global_attribute_sectionContext): pass # Enter a parse tree produced by CSharpParser#global_attribute_target. def enterGlobal_attribute_target(self, ctx: CSharpParser.Global_attribute_targetContext): pass # Exit a parse tree produced by CSharpParser#global_attribute_target. def exitGlobal_attribute_target(self, ctx: CSharpParser.Global_attribute_targetContext): pass # Enter a parse tree produced by CSharpParser#attributes. def enterAttributes(self, ctx: CSharpParser.AttributesContext): pass # Exit a parse tree produced by CSharpParser#attributes. def exitAttributes(self, ctx: CSharpParser.AttributesContext): pass # Enter a parse tree produced by CSharpParser#attribute_section. def enterAttribute_section(self, ctx: CSharpParser.Attribute_sectionContext): pass # Exit a parse tree produced by CSharpParser#attribute_section. def exitAttribute_section(self, ctx: CSharpParser.Attribute_sectionContext): pass # Enter a parse tree produced by CSharpParser#attribute_target. def enterAttribute_target(self, ctx: CSharpParser.Attribute_targetContext): pass # Exit a parse tree produced by CSharpParser#attribute_target. def exitAttribute_target(self, ctx: CSharpParser.Attribute_targetContext): pass # Enter a parse tree produced by CSharpParser#attribute_list. def enterAttribute_list(self, ctx: CSharpParser.Attribute_listContext): pass # Exit a parse tree produced by CSharpParser#attribute_list. def exitAttribute_list(self, ctx: CSharpParser.Attribute_listContext): pass # Enter a parse tree produced by CSharpParser#attribute. def enterAttribute(self, ctx: CSharpParser.AttributeContext): pass # Exit a parse tree produced by CSharpParser#attribute. def exitAttribute(self, ctx: CSharpParser.AttributeContext): pass # Enter a parse tree produced by CSharpParser#attribute_argument. def enterAttribute_argument(self, ctx: CSharpParser.Attribute_argumentContext): pass # Exit a parse tree produced by CSharpParser#attribute_argument. def exitAttribute_argument(self, ctx: CSharpParser.Attribute_argumentContext): pass # Enter a parse tree produced by CSharpParser#pointer_type. def enterPointer_type(self, ctx: CSharpParser.Pointer_typeContext): pass # Exit a parse tree produced by CSharpParser#pointer_type. def exitPointer_type(self, ctx: CSharpParser.Pointer_typeContext): pass # Enter a parse tree produced by CSharpParser#fixed_pointer_declarators. def enterFixed_pointer_declarators(self, ctx: CSharpParser.Fixed_pointer_declaratorsContext): pass # Exit a parse tree produced by CSharpParser#fixed_pointer_declarators. def exitFixed_pointer_declarators(self, ctx: CSharpParser.Fixed_pointer_declaratorsContext): pass # Enter a parse tree produced by CSharpParser#fixed_pointer_declarator. def enterFixed_pointer_declarator(self, ctx: CSharpParser.Fixed_pointer_declaratorContext): pass # Exit a parse tree produced by CSharpParser#fixed_pointer_declarator. def exitFixed_pointer_declarator(self, ctx: CSharpParser.Fixed_pointer_declaratorContext): pass # Enter a parse tree produced by CSharpParser#fixed_pointer_initializer. def enterFixed_pointer_initializer(self, ctx: CSharpParser.Fixed_pointer_initializerContext): pass # Exit a parse tree produced by CSharpParser#fixed_pointer_initializer. def exitFixed_pointer_initializer(self, ctx: CSharpParser.Fixed_pointer_initializerContext): pass # Enter a parse tree produced by CSharpParser#fixed_size_buffer_declarator. def enterFixed_size_buffer_declarator(self, ctx: CSharpParser.Fixed_size_buffer_declaratorContext): pass # Exit a parse tree produced by CSharpParser#fixed_size_buffer_declarator. def exitFixed_size_buffer_declarator(self, ctx: CSharpParser.Fixed_size_buffer_declaratorContext): pass # Enter a parse tree produced by CSharpParser#local_variable_initializer_unsafe. def enterLocal_variable_initializer_unsafe(self, ctx: CSharpParser.Local_variable_initializer_unsafeContext): pass # Exit a parse tree produced by CSharpParser#local_variable_initializer_unsafe. def exitLocal_variable_initializer_unsafe(self, ctx: CSharpParser.Local_variable_initializer_unsafeContext): pass # Enter a parse tree produced by CSharpParser#right_arrow. def enterRight_arrow(self, ctx: CSharpParser.Right_arrowContext): pass # Exit a parse tree produced by CSharpParser#right_arrow. def exitRight_arrow(self, ctx: CSharpParser.Right_arrowContext): pass # Enter a parse tree produced by CSharpParser#right_shift. def enterRight_shift(self, ctx: CSharpParser.Right_shiftContext): pass # Exit a parse tree produced by CSharpParser#right_shift. def exitRight_shift(self, ctx: CSharpParser.Right_shiftContext): pass # Enter a parse tree produced by CSharpParser#right_shift_assignment. def enterRight_shift_assignment(self, ctx: CSharpParser.Right_shift_assignmentContext): pass # Exit a parse tree produced by CSharpParser#right_shift_assignment. def exitRight_shift_assignment(self, ctx: CSharpParser.Right_shift_assignmentContext): pass # Enter a parse tree produced by CSharpParser#literal. def enterLiteral(self, ctx: CSharpParser.LiteralContext): pass # Exit a parse tree produced by CSharpParser#literal. def exitLiteral(self, ctx: CSharpParser.LiteralContext): pass # Enter a parse tree produced by CSharpParser#boolean_literal. def enterBoolean_literal(self, ctx: CSharpParser.Boolean_literalContext): pass # Exit a parse tree produced by CSharpParser#boolean_literal. def exitBoolean_literal(self, ctx: CSharpParser.Boolean_literalContext): pass # Enter a parse tree produced by CSharpParser#string_literal. def enterString_literal(self, ctx: CSharpParser.String_literalContext): pass # Exit a parse tree produced by CSharpParser#string_literal. def exitString_literal(self, ctx: CSharpParser.String_literalContext): pass # Enter a parse tree produced by CSharpParser#interpolated_regular_string. def enterInterpolated_regular_string(self, ctx: CSharpParser.Interpolated_regular_stringContext): pass # Exit a parse tree produced by CSharpParser#interpolated_regular_string. def exitInterpolated_regular_string(self, ctx: CSharpParser.Interpolated_regular_stringContext): pass # Enter a parse tree produced by CSharpParser#interpolated_verbatium_string. def enterInterpolated_verbatium_string(self, ctx: CSharpParser.Interpolated_verbatium_stringContext): pass # Exit a parse tree produced by CSharpParser#interpolated_verbatium_string. def exitInterpolated_verbatium_string(self, ctx: CSharpParser.Interpolated_verbatium_stringContext): pass # Enter a parse tree produced by CSharpParser#interpolated_regular_string_part. def enterInterpolated_regular_string_part(self, ctx: CSharpParser.Interpolated_regular_string_partContext): pass # Exit a parse tree produced by CSharpParser#interpolated_regular_string_part. def exitInterpolated_regular_string_part(self, ctx: CSharpParser.Interpolated_regular_string_partContext): pass # Enter a parse tree produced by CSharpParser#interpolated_verbatium_string_part. def enterInterpolated_verbatium_string_part(self, ctx: CSharpParser.Interpolated_verbatium_string_partContext): pass # Exit a parse tree produced by CSharpParser#interpolated_verbatium_string_part. def exitInterpolated_verbatium_string_part(self, ctx: CSharpParser.Interpolated_verbatium_string_partContext): pass # Enter a parse tree produced by CSharpParser#interpolated_string_expression. def enterInterpolated_string_expression(self, ctx: CSharpParser.Interpolated_string_expressionContext): pass # Exit a parse tree produced by CSharpParser#interpolated_string_expression. def exitInterpolated_string_expression(self, ctx: CSharpParser.Interpolated_string_expressionContext): pass # Enter a parse tree produced by CSharpParser#keyword. def enterKeyword(self, ctx: CSharpParser.KeywordContext): pass # Exit a parse tree produced by CSharpParser#keyword. def exitKeyword(self, ctx: CSharpParser.KeywordContext): pass # Enter a parse tree produced by CSharpParser#class_definition. def enterClass_definition(self, ctx: CSharpParser.Class_definitionContext): pass # Exit a parse tree produced by CSharpParser#class_definition. def exitClass_definition(self, ctx: CSharpParser.Class_definitionContext): pass # Enter a parse tree produced by CSharpParser#struct_definition. def enterStruct_definition(self, ctx: CSharpParser.Struct_definitionContext): pass # Exit a parse tree produced by CSharpParser#struct_definition. def exitStruct_definition(self, ctx: CSharpParser.Struct_definitionContext): pass # Enter a parse tree produced by CSharpParser#interface_definition. def enterInterface_definition(self, ctx: CSharpParser.Interface_definitionContext): pass # Exit a parse tree produced by CSharpParser#interface_definition. def exitInterface_definition(self, ctx: CSharpParser.Interface_definitionContext): pass # Enter a parse tree produced by CSharpParser#enum_definition. def enterEnum_definition(self, ctx: CSharpParser.Enum_definitionContext): pass # Exit a parse tree produced by CSharpParser#enum_definition. def exitEnum_definition(self, ctx: CSharpParser.Enum_definitionContext): pass # Enter a parse tree produced by CSharpParser#delegate_definition. def enterDelegate_definition(self, ctx: CSharpParser.Delegate_definitionContext): pass # Exit a parse tree produced by CSharpParser#delegate_definition. def exitDelegate_definition(self, ctx: CSharpParser.Delegate_definitionContext): pass # Enter a parse tree produced by CSharpParser#event_declaration. def enterEvent_declaration(self, ctx: CSharpParser.Event_declarationContext): pass # Exit a parse tree produced by CSharpParser#event_declaration. def exitEvent_declaration(self, ctx: CSharpParser.Event_declarationContext): pass # Enter a parse tree produced by CSharpParser#field_declaration. def enterField_declaration(self, ctx: CSharpParser.Field_declarationContext): pass # Exit a parse tree produced by CSharpParser#field_declaration. def exitField_declaration(self, ctx: CSharpParser.Field_declarationContext): pass # Enter a parse tree produced by CSharpParser#property_declaration. def enterProperty_declaration(self, ctx: CSharpParser.Property_declarationContext): pass # Exit a parse tree produced by CSharpParser#property_declaration. def exitProperty_declaration(self, ctx: CSharpParser.Property_declarationContext): pass # Enter a parse tree produced by CSharpParser#constant_declaration. def enterConstant_declaration(self, ctx: CSharpParser.Constant_declarationContext): pass # Exit a parse tree produced by CSharpParser#constant_declaration. def exitConstant_declaration(self, ctx: CSharpParser.Constant_declarationContext): pass # Enter a parse tree produced by CSharpParser#indexer_declaration. def enterIndexer_declaration(self, ctx: CSharpParser.Indexer_declarationContext): pass # Exit a parse tree produced by CSharpParser#indexer_declaration. def exitIndexer_declaration(self, ctx: CSharpParser.Indexer_declarationContext): pass # Enter a parse tree produced by CSharpParser#destructor_definition. def enterDestructor_definition(self, ctx: CSharpParser.Destructor_definitionContext): pass # Exit a parse tree produced by CSharpParser#destructor_definition. def exitDestructor_definition(self, ctx: CSharpParser.Destructor_definitionContext): pass # Enter a parse tree produced by CSharpParser#constructor_declaration. def enterConstructor_declaration(self, ctx: CSharpParser.Constructor_declarationContext): pass # Exit a parse tree produced by CSharpParser#constructor_declaration. def exitConstructor_declaration(self, ctx: CSharpParser.Constructor_declarationContext): pass # Enter a parse tree produced by CSharpParser#method_declaration. def enterMethod_declaration(self, ctx: CSharpParser.Method_declarationContext): pass # Exit a parse tree produced by CSharpParser#method_declaration. def exitMethod_declaration(self, ctx: CSharpParser.Method_declarationContext): pass # Enter a parse tree produced by CSharpParser#method_member_name. def enterMethod_member_name(self, ctx: CSharpParser.Method_member_nameContext): pass # Exit a parse tree produced by CSharpParser#method_member_name. def exitMethod_member_name(self, ctx: CSharpParser.Method_member_nameContext): pass # Enter a parse tree produced by CSharpParser#operator_declaration. def enterOperator_declaration(self, ctx: CSharpParser.Operator_declarationContext): pass # Exit a parse tree produced by CSharpParser#operator_declaration. def exitOperator_declaration(self, ctx: CSharpParser.Operator_declarationContext): pass # Enter a parse tree produced by CSharpParser#arg_declaration. def enterArg_declaration(self, ctx: CSharpParser.Arg_declarationContext): pass # Exit a parse tree produced by CSharpParser#arg_declaration. def exitArg_declaration(self, ctx: CSharpParser.Arg_declarationContext): pass # Enter a parse tree produced by CSharpParser#method_invocation. def enterMethod_invocation(self, ctx: CSharpParser.Method_invocationContext): pass # Exit a parse tree produced by CSharpParser#method_invocation. def exitMethod_invocation(self, ctx: CSharpParser.Method_invocationContext): pass # Enter a parse tree produced by CSharpParser#object_creation_expression. def enterObject_creation_expression(self, ctx: CSharpParser.Object_creation_expressionContext): pass # Exit a parse tree produced by CSharpParser#object_creation_expression. def exitObject_creation_expression(self, ctx: CSharpParser.Object_creation_expressionContext): pass # Enter a parse tree produced by CSharpParser#documented_item. def enterDocumented_item(self, ctx: CSharpParser.Documented_itemContext): pass # Exit a parse tree produced by CSharpParser#documented_item. def exitDocumented_item(self, ctx: CSharpParser.Documented_itemContext): pass # Enter a parse tree produced by CSharpParser#identifier. def enterIdentifier(self, ctx: CSharpParser.IdentifierContext): pass # Exit a parse tree produced by CSharpParser#identifier. def exitIdentifier(self, ctx: CSharpParser.IdentifierContext): pass del CSharpParser
42.003603
131
0.768738
8,920
81,613
6.848318
0.072085
0.047441
0.079068
0.142322
0.892858
0.821075
0.821075
0.689345
0.59723
0.269534
0
0.00006
0.177913
81,613
1,942
132
42.025232
0.910423
0.373776
0
0.496395
1
0
0.00002
0
0
0
0
0
0
1
0.496395
false
0.496395
0.00309
0
0.500515
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
6
c1dc1801f8e667104127231816ffba59c670030f
50
py
Python
hs_core/tests/__init__.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/tests/__init__.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/tests/__init__.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from .api.native import * from .api.rest import *
16.666667
25
0.72
8
50
4.5
0.625
0.388889
0
0
0
0
0
0
0
0
0
0
0.16
50
2
26
25
0.857143
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
de02c0e636b0ca273b2dda8605194a81ddf05c08
40
py
Python
build/lib/ESINet/ann/__init__.py
The-Platypus/ESINet
b9b4e8ed8c6a0fa6d082e303014859a054233fd4
[ "MIT" ]
null
null
null
build/lib/ESINet/ann/__init__.py
The-Platypus/ESINet
b9b4e8ed8c6a0fa6d082e303014859a054233fd4
[ "MIT" ]
null
null
null
build/lib/ESINet/ann/__init__.py
The-Platypus/ESINet
b9b4e8ed8c6a0fa6d082e303014859a054233fd4
[ "MIT" ]
null
null
null
from .ann import * from .losses import *
20
21
0.725
6
40
4.833333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.175
40
2
21
20
0.878788
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
de140e5f99c03df15195c0f944af711d12e0df18
365
py
Python
tests/plugins/task.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
1
2020-07-21T20:07:27.000Z
2020-07-21T20:07:27.000Z
tests/plugins/task.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
2
2021-03-11T04:29:11.000Z
2021-10-06T21:12:45.000Z
tests/plugins/task.py
jason-azze/dispatch
56a9435d08b32429c6b44f83cb0f5aff5a8b6931
[ "Apache-2.0" ]
null
null
null
from dispatch.plugins.bases import TaskPlugin class TestTaskPlugin(TaskPlugin): title = "Test Task" slug = "test-task" def get(self, **kwargs): return def create(self, **kwargs): return def delete(self, **kwargs): return def list(self, **kwargs): return def resolve(self, **kwargs): return
16.590909
45
0.589041
40
365
5.375
0.525
0.232558
0.372093
0.353488
0
0
0
0
0
0
0
0
0.29589
365
21
46
17.380952
0.836576
0
0
0.357143
0
0
0.049315
0
0
0
0
0
0
1
0.357143
false
0
0.071429
0.357143
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
a9e631ea8844798036512a318c499b5372f6f8c8
260,830
py
Python
instances/passenger_demand/pas-20210422-1717-int14000000000000001e/71.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int14000000000000001e/71.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int14000000000000001e/71.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 26857 passenger_arriving = ( (11, 6, 8, 11, 5, 4, 6, 5, 2, 1, 1, 1, 0, 8, 2, 7, 3, 8, 6, 6, 2, 3, 2, 2, 2, 0), # 0 (5, 4, 4, 7, 2, 3, 5, 4, 1, 2, 1, 1, 0, 4, 4, 6, 3, 7, 4, 3, 1, 6, 3, 3, 0, 0), # 1 (9, 8, 6, 3, 5, 4, 2, 3, 3, 3, 0, 1, 0, 7, 9, 5, 5, 3, 3, 3, 1, 4, 4, 2, 0, 0), # 2 (14, 7, 9, 11, 7, 4, 5, 5, 3, 3, 2, 0, 0, 4, 6, 7, 5, 9, 10, 5, 2, 6, 1, 1, 0, 0), # 3 (9, 12, 6, 11, 4, 3, 5, 1, 3, 0, 0, 3, 0, 7, 4, 8, 9, 10, 4, 3, 6, 4, 2, 2, 0, 0), # 4 (11, 8, 8, 9, 6, 1, 5, 6, 4, 2, 1, 2, 0, 5, 10, 5, 8, 9, 1, 1, 1, 4, 4, 2, 0, 0), # 5 (11, 14, 8, 5, 13, 2, 3, 3, 5, 0, 1, 1, 0, 6, 7, 8, 6, 11, 7, 10, 1, 9, 4, 0, 1, 0), # 6 (7, 12, 5, 13, 5, 5, 1, 4, 5, 0, 2, 1, 0, 12, 5, 10, 5, 8, 6, 5, 2, 4, 1, 1, 0, 0), # 7 (14, 15, 6, 12, 7, 2, 3, 5, 7, 2, 1, 0, 0, 24, 6, 4, 6, 4, 3, 6, 2, 4, 1, 1, 1, 0), # 8 (17, 9, 5, 8, 5, 4, 5, 6, 9, 1, 2, 0, 0, 8, 10, 3, 8, 9, 5, 4, 5, 3, 3, 1, 2, 0), # 9 (12, 9, 7, 13, 6, 5, 5, 3, 5, 1, 0, 0, 0, 8, 15, 6, 4, 11, 6, 2, 6, 1, 4, 3, 2, 0), # 10 (17, 20, 11, 15, 5, 4, 7, 4, 2, 0, 0, 0, 0, 6, 7, 10, 13, 11, 1, 9, 4, 5, 2, 2, 0, 0), # 11 (8, 14, 9, 6, 9, 5, 5, 2, 2, 1, 2, 1, 0, 10, 4, 11, 8, 13, 9, 4, 2, 4, 3, 3, 0, 0), # 12 (7, 10, 12, 5, 10, 6, 2, 4, 9, 1, 1, 0, 0, 13, 12, 5, 11, 14, 8, 11, 4, 5, 2, 2, 1, 0), # 13 (9, 10, 9, 11, 5, 2, 4, 2, 3, 3, 3, 1, 0, 18, 7, 9, 6, 12, 2, 4, 2, 6, 3, 4, 1, 0), # 14 (11, 14, 10, 7, 14, 4, 4, 5, 6, 3, 0, 4, 0, 17, 11, 15, 6, 12, 10, 6, 9, 4, 6, 1, 1, 0), # 15 (14, 14, 4, 7, 10, 5, 6, 8, 3, 1, 1, 1, 0, 5, 15, 10, 7, 9, 11, 10, 3, 6, 2, 4, 0, 0), # 16 (10, 8, 12, 11, 3, 3, 6, 5, 9, 3, 2, 0, 0, 12, 11, 13, 11, 8, 5, 2, 1, 8, 4, 2, 1, 0), # 17 (10, 12, 13, 7, 8, 3, 8, 5, 13, 5, 5, 2, 0, 15, 11, 13, 7, 8, 11, 7, 2, 2, 1, 2, 1, 0), # 18 (10, 13, 19, 15, 1, 7, 6, 9, 6, 2, 2, 0, 0, 18, 6, 12, 9, 7, 13, 8, 2, 3, 6, 2, 2, 0), # 19 (13, 13, 10, 10, 13, 4, 4, 5, 8, 4, 3, 1, 0, 14, 8, 3, 7, 9, 10, 6, 2, 7, 7, 2, 1, 0), # 20 (12, 15, 14, 9, 9, 3, 9, 4, 6, 5, 1, 0, 0, 9, 18, 11, 9, 11, 10, 7, 1, 4, 5, 3, 2, 0), # 21 (17, 10, 9, 11, 3, 5, 11, 3, 8, 1, 4, 3, 0, 12, 10, 13, 6, 9, 11, 7, 6, 4, 7, 1, 2, 0), # 22 (11, 10, 7, 13, 5, 2, 2, 7, 7, 2, 5, 1, 0, 12, 15, 10, 9, 7, 5, 3, 5, 6, 5, 3, 0, 0), # 23 (12, 12, 15, 13, 5, 6, 5, 7, 5, 1, 3, 0, 0, 14, 13, 10, 7, 8, 5, 5, 2, 6, 3, 1, 1, 0), # 24 (19, 9, 7, 17, 8, 1, 9, 5, 6, 1, 2, 1, 0, 12, 12, 9, 10, 7, 13, 8, 2, 3, 2, 3, 0, 0), # 25 (19, 15, 6, 13, 5, 4, 2, 7, 5, 2, 2, 0, 0, 11, 16, 15, 6, 12, 8, 6, 4, 9, 6, 3, 0, 0), # 26 (18, 15, 15, 10, 13, 7, 1, 6, 4, 4, 2, 1, 0, 9, 17, 10, 7, 17, 9, 2, 4, 3, 2, 2, 1, 0), # 27 (19, 16, 12, 15, 7, 5, 12, 5, 9, 2, 1, 1, 0, 15, 7, 10, 8, 14, 7, 7, 3, 3, 6, 4, 3, 0), # 28 (18, 13, 12, 13, 11, 5, 9, 5, 3, 1, 2, 0, 0, 18, 14, 14, 7, 12, 11, 7, 3, 4, 3, 3, 0, 0), # 29 (14, 10, 12, 11, 8, 5, 3, 6, 7, 4, 3, 1, 0, 23, 9, 7, 11, 12, 13, 5, 2, 5, 3, 2, 1, 0), # 30 (11, 22, 17, 14, 8, 6, 3, 2, 5, 4, 3, 0, 0, 18, 13, 14, 7, 14, 4, 9, 3, 8, 2, 2, 1, 0), # 31 (9, 8, 9, 15, 8, 5, 8, 2, 4, 2, 1, 0, 0, 16, 11, 11, 11, 9, 7, 4, 4, 3, 3, 7, 1, 0), # 32 (11, 15, 7, 15, 10, 7, 6, 3, 6, 4, 2, 0, 0, 8, 13, 14, 4, 11, 11, 8, 0, 7, 7, 3, 2, 0), # 33 (16, 11, 12, 24, 13, 7, 3, 6, 4, 2, 5, 4, 0, 17, 12, 9, 11, 12, 4, 8, 5, 5, 8, 4, 2, 0), # 34 (12, 20, 10, 14, 13, 4, 5, 9, 4, 1, 1, 0, 0, 21, 14, 10, 8, 14, 8, 4, 4, 9, 2, 1, 1, 0), # 35 (16, 13, 12, 19, 9, 8, 14, 6, 3, 3, 6, 1, 0, 12, 12, 6, 10, 11, 3, 6, 7, 6, 5, 5, 1, 0), # 36 (15, 15, 11, 13, 16, 2, 7, 5, 4, 3, 1, 3, 0, 11, 18, 9, 11, 10, 11, 4, 2, 5, 3, 2, 1, 0), # 37 (12, 6, 15, 20, 10, 7, 5, 3, 6, 2, 2, 4, 0, 15, 10, 5, 8, 12, 4, 5, 4, 7, 8, 2, 1, 0), # 38 (18, 16, 23, 19, 11, 7, 12, 7, 7, 3, 1, 1, 0, 21, 15, 9, 7, 11, 6, 4, 2, 6, 4, 3, 3, 0), # 39 (14, 11, 10, 16, 16, 3, 7, 5, 4, 4, 2, 1, 0, 18, 7, 11, 10, 7, 6, 6, 1, 4, 8, 2, 4, 0), # 40 (13, 17, 13, 13, 6, 5, 8, 5, 4, 5, 2, 0, 0, 13, 12, 10, 8, 11, 5, 5, 2, 5, 5, 1, 2, 0), # 41 (24, 13, 5, 11, 11, 3, 6, 6, 4, 2, 4, 3, 0, 11, 20, 20, 4, 13, 8, 8, 5, 7, 1, 1, 0, 0), # 42 (11, 13, 8, 11, 11, 7, 6, 7, 5, 4, 2, 2, 0, 20, 7, 7, 7, 11, 6, 5, 1, 7, 6, 4, 0, 0), # 43 (13, 14, 11, 13, 9, 2, 5, 6, 4, 2, 1, 1, 0, 18, 10, 10, 7, 11, 5, 2, 3, 5, 1, 2, 1, 0), # 44 (11, 12, 10, 8, 12, 4, 7, 2, 8, 3, 3, 1, 0, 18, 13, 8, 6, 8, 11, 3, 1, 4, 3, 1, 1, 0), # 45 (15, 11, 11, 14, 8, 5, 1, 6, 4, 2, 2, 2, 0, 12, 15, 8, 12, 12, 10, 6, 5, 2, 4, 4, 2, 0), # 46 (12, 12, 11, 12, 13, 5, 5, 3, 8, 1, 1, 1, 0, 13, 20, 9, 3, 9, 8, 5, 5, 2, 5, 1, 1, 0), # 47 (14, 15, 15, 10, 13, 6, 6, 6, 3, 0, 2, 2, 0, 11, 10, 11, 11, 15, 8, 9, 3, 10, 5, 3, 1, 0), # 48 (17, 13, 13, 12, 10, 4, 2, 8, 6, 4, 0, 0, 0, 13, 9, 10, 3, 13, 8, 7, 1, 8, 3, 2, 1, 0), # 49 (15, 22, 18, 8, 4, 4, 2, 11, 5, 1, 6, 0, 0, 15, 14, 11, 10, 11, 7, 5, 13, 6, 5, 0, 1, 0), # 50 (8, 16, 8, 9, 12, 5, 3, 4, 8, 1, 0, 1, 0, 21, 9, 12, 7, 9, 3, 4, 5, 3, 2, 1, 0, 0), # 51 (14, 18, 12, 11, 12, 4, 8, 4, 4, 4, 2, 1, 0, 10, 13, 18, 11, 11, 8, 2, 5, 4, 5, 1, 4, 0), # 52 (9, 11, 14, 13, 7, 8, 7, 4, 6, 2, 3, 0, 0, 12, 14, 9, 6, 15, 8, 11, 6, 2, 3, 5, 0, 0), # 53 (15, 6, 12, 12, 8, 3, 4, 4, 8, 3, 2, 1, 0, 11, 15, 9, 7, 14, 8, 7, 1, 10, 5, 2, 1, 0), # 54 (18, 14, 11, 20, 17, 3, 5, 4, 4, 0, 3, 0, 0, 9, 14, 11, 4, 10, 8, 8, 2, 5, 1, 2, 1, 0), # 55 (16, 13, 13, 20, 13, 5, 9, 10, 5, 2, 3, 0, 0, 13, 12, 4, 7, 14, 6, 3, 2, 7, 2, 4, 1, 0), # 56 (13, 14, 13, 14, 13, 4, 6, 7, 7, 3, 2, 1, 0, 14, 24, 10, 4, 17, 5, 4, 5, 2, 9, 4, 1, 0), # 57 (15, 15, 8, 10, 12, 5, 3, 5, 8, 1, 3, 2, 0, 14, 16, 9, 7, 9, 5, 5, 5, 4, 4, 1, 1, 0), # 58 (16, 10, 20, 9, 13, 2, 2, 5, 3, 3, 4, 2, 0, 10, 11, 5, 3, 11, 2, 5, 4, 7, 3, 1, 1, 0), # 59 (15, 14, 13, 11, 9, 6, 7, 3, 4, 4, 1, 1, 0, 16, 11, 14, 4, 14, 3, 8, 4, 6, 1, 3, 1, 0), # 60 (18, 11, 17, 11, 5, 5, 5, 3, 5, 0, 2, 2, 0, 15, 5, 12, 10, 7, 10, 10, 5, 4, 8, 2, 0, 0), # 61 (16, 19, 12, 13, 14, 1, 6, 5, 6, 1, 1, 1, 0, 18, 6, 8, 11, 3, 6, 5, 3, 7, 5, 1, 0, 0), # 62 (10, 13, 23, 14, 8, 4, 8, 2, 5, 5, 2, 0, 0, 16, 12, 7, 9, 11, 6, 8, 6, 6, 6, 2, 0, 0), # 63 (15, 15, 14, 16, 9, 6, 3, 2, 4, 4, 0, 0, 0, 17, 10, 11, 11, 10, 5, 3, 2, 7, 4, 0, 1, 0), # 64 (22, 10, 15, 9, 11, 4, 4, 6, 7, 2, 0, 0, 0, 15, 11, 5, 11, 8, 9, 3, 9, 8, 2, 1, 1, 0), # 65 (11, 24, 11, 15, 8, 3, 8, 2, 3, 4, 2, 4, 0, 16, 11, 8, 9, 12, 3, 5, 6, 7, 4, 0, 1, 0), # 66 (11, 11, 10, 9, 9, 3, 4, 2, 4, 2, 4, 4, 0, 14, 8, 9, 7, 14, 3, 4, 3, 6, 5, 8, 1, 0), # 67 (18, 15, 8, 9, 6, 7, 9, 2, 2, 1, 4, 1, 0, 10, 12, 9, 11, 14, 2, 6, 2, 6, 4, 2, 1, 0), # 68 (18, 10, 13, 4, 5, 8, 4, 7, 0, 0, 0, 1, 0, 10, 9, 9, 5, 8, 6, 3, 5, 9, 6, 3, 1, 0), # 69 (19, 16, 14, 10, 5, 7, 5, 4, 8, 4, 1, 1, 0, 15, 11, 6, 5, 10, 7, 3, 2, 8, 4, 0, 1, 0), # 70 (12, 16, 17, 15, 11, 2, 10, 3, 2, 1, 1, 0, 0, 8, 15, 11, 9, 7, 5, 4, 1, 6, 2, 2, 2, 0), # 71 (21, 14, 14, 10, 8, 4, 6, 5, 6, 1, 1, 1, 0, 12, 11, 16, 9, 8, 7, 3, 2, 5, 3, 1, 0, 0), # 72 (14, 5, 15, 9, 9, 4, 5, 4, 5, 1, 1, 1, 0, 18, 13, 7, 10, 15, 7, 4, 4, 4, 3, 4, 1, 0), # 73 (10, 12, 15, 6, 7, 10, 6, 5, 6, 2, 2, 4, 0, 21, 12, 8, 10, 8, 5, 5, 4, 6, 4, 3, 2, 0), # 74 (19, 14, 8, 12, 13, 4, 5, 4, 5, 3, 1, 2, 0, 11, 17, 13, 10, 12, 3, 8, 3, 7, 6, 2, 0, 0), # 75 (11, 15, 11, 6, 17, 3, 6, 6, 6, 3, 2, 0, 0, 14, 12, 7, 3, 8, 5, 2, 4, 2, 5, 2, 0, 0), # 76 (14, 6, 13, 19, 15, 8, 3, 3, 2, 2, 0, 0, 0, 16, 11, 6, 11, 10, 3, 2, 3, 4, 6, 4, 0, 0), # 77 (13, 10, 12, 16, 8, 4, 4, 4, 7, 0, 2, 0, 0, 13, 9, 12, 8, 13, 5, 4, 3, 11, 5, 1, 2, 0), # 78 (9, 12, 19, 12, 9, 3, 7, 6, 8, 2, 5, 0, 0, 14, 11, 6, 4, 8, 6, 7, 5, 5, 7, 2, 1, 0), # 79 (9, 10, 11, 13, 8, 4, 3, 4, 10, 4, 1, 1, 0, 12, 12, 7, 7, 11, 5, 4, 0, 9, 2, 1, 4, 0), # 80 (12, 11, 12, 10, 6, 4, 7, 2, 9, 2, 1, 0, 0, 13, 10, 16, 3, 9, 7, 11, 3, 4, 5, 2, 3, 0), # 81 (14, 9, 12, 11, 9, 3, 6, 3, 4, 3, 0, 0, 0, 19, 12, 10, 4, 9, 6, 3, 2, 9, 2, 3, 1, 0), # 82 (20, 8, 11, 9, 6, 8, 2, 7, 7, 1, 3, 2, 0, 13, 14, 9, 8, 18, 7, 7, 3, 4, 4, 5, 0, 0), # 83 (13, 12, 13, 12, 12, 1, 6, 4, 4, 2, 0, 0, 0, 12, 13, 6, 10, 9, 10, 7, 2, 4, 6, 2, 0, 0), # 84 (11, 16, 14, 3, 6, 1, 5, 3, 4, 3, 0, 0, 0, 16, 13, 12, 7, 9, 5, 6, 4, 6, 2, 3, 1, 0), # 85 (15, 13, 12, 6, 8, 8, 8, 2, 5, 1, 3, 2, 0, 13, 17, 9, 8, 15, 1, 3, 6, 7, 3, 4, 3, 0), # 86 (16, 13, 18, 13, 10, 7, 4, 3, 4, 3, 1, 1, 0, 12, 10, 11, 9, 6, 4, 4, 6, 4, 1, 2, 1, 0), # 87 (11, 6, 9, 17, 7, 5, 3, 4, 4, 2, 1, 2, 0, 16, 12, 3, 6, 16, 3, 7, 6, 4, 5, 3, 0, 0), # 88 (21, 15, 6, 14, 8, 2, 8, 1, 3, 3, 3, 0, 0, 16, 11, 10, 5, 4, 5, 7, 4, 4, 7, 4, 0, 0), # 89 (19, 14, 11, 18, 10, 5, 5, 5, 2, 3, 2, 1, 0, 13, 10, 12, 3, 11, 6, 8, 2, 5, 5, 4, 3, 0), # 90 (11, 14, 17, 12, 6, 7, 4, 5, 6, 1, 1, 0, 0, 10, 11, 9, 3, 12, 4, 7, 0, 3, 5, 2, 2, 0), # 91 (16, 14, 3, 16, 16, 4, 1, 1, 3, 2, 4, 0, 0, 20, 10, 5, 3, 19, 8, 7, 5, 7, 3, 2, 4, 0), # 92 (12, 12, 15, 10, 14, 5, 6, 4, 3, 1, 3, 2, 0, 10, 8, 8, 4, 19, 9, 5, 0, 7, 3, 4, 0, 0), # 93 (14, 14, 14, 15, 10, 6, 6, 3, 10, 7, 2, 1, 0, 7, 13, 7, 5, 5, 3, 5, 4, 9, 3, 1, 1, 0), # 94 (22, 12, 9, 12, 11, 3, 1, 3, 4, 1, 0, 2, 0, 18, 9, 5, 4, 9, 4, 7, 2, 11, 8, 0, 0, 0), # 95 (15, 12, 9, 16, 8, 6, 2, 3, 7, 0, 1, 0, 0, 21, 9, 8, 6, 13, 5, 6, 6, 2, 2, 1, 0, 0), # 96 (10, 7, 16, 13, 12, 3, 7, 3, 5, 1, 0, 1, 0, 20, 11, 12, 7, 11, 7, 7, 8, 12, 5, 2, 2, 0), # 97 (10, 12, 8, 11, 13, 6, 4, 3, 5, 2, 2, 1, 0, 12, 16, 15, 8, 12, 8, 3, 3, 3, 5, 2, 1, 0), # 98 (15, 13, 13, 14, 8, 6, 2, 5, 9, 2, 2, 1, 0, 15, 9, 13, 4, 7, 7, 10, 1, 4, 3, 3, 1, 0), # 99 (13, 9, 12, 11, 7, 8, 5, 2, 9, 1, 2, 0, 0, 15, 10, 5, 4, 16, 5, 4, 4, 5, 2, 3, 1, 0), # 100 (13, 10, 8, 10, 7, 3, 6, 7, 4, 3, 3, 0, 0, 14, 12, 4, 9, 13, 2, 8, 4, 8, 7, 4, 2, 0), # 101 (16, 14, 11, 7, 4, 7, 4, 1, 4, 0, 5, 0, 0, 8, 10, 10, 4, 10, 5, 5, 4, 9, 6, 2, 2, 0), # 102 (17, 19, 16, 17, 8, 8, 7, 4, 4, 3, 0, 0, 0, 11, 12, 13, 6, 6, 6, 2, 3, 7, 3, 1, 0, 0), # 103 (13, 5, 12, 18, 9, 8, 3, 6, 5, 1, 2, 0, 0, 11, 11, 10, 2, 9, 6, 3, 5, 4, 4, 3, 2, 0), # 104 (15, 11, 10, 9, 13, 6, 3, 5, 8, 1, 4, 1, 0, 13, 10, 9, 8, 8, 6, 5, 3, 7, 7, 0, 0, 0), # 105 (13, 9, 10, 7, 4, 2, 4, 8, 5, 3, 0, 2, 0, 11, 5, 7, 7, 16, 3, 4, 4, 3, 5, 4, 0, 0), # 106 (10, 11, 5, 13, 14, 4, 6, 3, 7, 1, 1, 0, 0, 9, 9, 13, 2, 8, 5, 5, 3, 4, 6, 1, 0, 0), # 107 (14, 16, 11, 11, 12, 3, 2, 4, 5, 4, 2, 0, 0, 15, 7, 8, 3, 11, 1, 2, 6, 6, 4, 3, 0, 0), # 108 (16, 18, 3, 10, 12, 6, 4, 6, 7, 1, 3, 2, 0, 16, 11, 13, 3, 10, 8, 5, 5, 6, 8, 1, 3, 0), # 109 (19, 12, 7, 10, 7, 2, 9, 3, 4, 2, 1, 0, 0, 17, 12, 3, 4, 12, 5, 4, 5, 3, 3, 2, 0, 0), # 110 (18, 12, 14, 8, 10, 5, 4, 4, 5, 3, 3, 0, 0, 13, 11, 6, 3, 7, 8, 2, 3, 8, 7, 1, 0, 0), # 111 (17, 9, 12, 18, 9, 5, 5, 4, 0, 3, 1, 1, 0, 9, 12, 12, 9, 12, 5, 3, 5, 4, 7, 2, 0, 0), # 112 (20, 7, 14, 17, 13, 4, 5, 2, 2, 4, 4, 2, 0, 16, 12, 7, 8, 13, 4, 7, 3, 8, 8, 1, 2, 0), # 113 (12, 6, 10, 14, 11, 3, 4, 6, 3, 3, 2, 1, 0, 9, 6, 12, 5, 7, 5, 3, 3, 4, 5, 2, 4, 0), # 114 (14, 12, 11, 8, 11, 4, 2, 3, 5, 2, 1, 1, 0, 13, 10, 10, 8, 15, 7, 8, 5, 6, 3, 0, 0, 0), # 115 (14, 8, 6, 13, 14, 6, 4, 3, 2, 2, 0, 0, 0, 11, 11, 6, 6, 14, 1, 4, 6, 10, 0, 0, 2, 0), # 116 (19, 7, 8, 11, 10, 4, 7, 2, 7, 3, 2, 2, 0, 25, 13, 6, 3, 14, 3, 4, 3, 6, 2, 0, 1, 0), # 117 (15, 10, 15, 15, 10, 1, 4, 1, 3, 2, 0, 1, 0, 15, 13, 11, 6, 7, 4, 2, 6, 7, 9, 1, 0, 0), # 118 (11, 10, 7, 9, 13, 5, 2, 3, 2, 7, 1, 0, 0, 13, 10, 7, 7, 8, 3, 1, 3, 9, 3, 0, 0, 0), # 119 (9, 13, 16, 12, 11, 5, 4, 2, 6, 1, 1, 0, 0, 10, 11, 6, 3, 7, 3, 10, 6, 5, 3, 0, 1, 0), # 120 (10, 11, 13, 12, 12, 5, 5, 6, 6, 2, 2, 2, 0, 13, 11, 5, 6, 13, 7, 8, 5, 3, 1, 3, 0, 0), # 121 (13, 10, 7, 12, 10, 3, 3, 6, 4, 5, 3, 1, 0, 9, 14, 8, 6, 9, 3, 6, 2, 7, 9, 2, 0, 0), # 122 (12, 9, 7, 16, 3, 3, 1, 3, 5, 0, 3, 1, 0, 16, 11, 5, 5, 10, 6, 6, 1, 3, 3, 1, 2, 0), # 123 (12, 10, 20, 10, 10, 8, 2, 7, 1, 2, 3, 1, 0, 11, 14, 6, 3, 12, 1, 5, 5, 8, 4, 0, 1, 0), # 124 (13, 10, 5, 3, 11, 0, 4, 2, 3, 3, 1, 1, 0, 17, 12, 10, 8, 5, 3, 3, 4, 7, 5, 0, 2, 0), # 125 (10, 9, 10, 10, 6, 4, 3, 3, 5, 1, 0, 1, 0, 15, 10, 9, 6, 15, 8, 4, 4, 1, 4, 3, 1, 0), # 126 (8, 9, 5, 9, 7, 4, 2, 5, 4, 2, 0, 2, 0, 14, 4, 5, 8, 11, 4, 9, 9, 6, 5, 3, 3, 0), # 127 (10, 12, 5, 11, 14, 6, 3, 3, 7, 4, 1, 1, 0, 11, 17, 9, 13, 5, 1, 2, 4, 5, 2, 0, 0, 0), # 128 (19, 6, 11, 7, 17, 2, 8, 7, 7, 5, 0, 1, 0, 16, 11, 9, 6, 12, 6, 1, 1, 6, 2, 2, 0, 0), # 129 (10, 9, 9, 17, 8, 2, 3, 0, 3, 2, 0, 1, 0, 11, 12, 4, 8, 13, 4, 3, 6, 0, 6, 4, 0, 0), # 130 (12, 7, 12, 9, 7, 2, 7, 4, 8, 3, 3, 1, 0, 10, 7, 9, 9, 13, 3, 3, 4, 4, 4, 4, 1, 0), # 131 (14, 9, 9, 13, 9, 5, 2, 1, 4, 0, 4, 2, 0, 7, 13, 10, 5, 9, 3, 1, 5, 5, 3, 2, 2, 0), # 132 (18, 9, 10, 15, 7, 5, 1, 7, 7, 4, 3, 1, 0, 9, 6, 7, 4, 12, 3, 8, 3, 3, 6, 1, 0, 0), # 133 (11, 10, 13, 13, 6, 5, 4, 5, 6, 1, 0, 1, 0, 13, 15, 1, 9, 14, 5, 4, 2, 4, 3, 1, 1, 0), # 134 (10, 12, 5, 11, 10, 4, 8, 4, 2, 2, 2, 0, 0, 12, 12, 12, 4, 11, 3, 1, 3, 6, 3, 4, 0, 0), # 135 (12, 7, 10, 13, 9, 3, 3, 6, 3, 1, 1, 1, 0, 15, 12, 3, 9, 16, 4, 5, 1, 4, 1, 0, 0, 0), # 136 (12, 3, 12, 7, 9, 6, 2, 3, 8, 0, 4, 0, 0, 11, 9, 12, 6, 9, 3, 4, 6, 3, 2, 4, 1, 0), # 137 (11, 9, 8, 10, 15, 6, 0, 0, 5, 3, 1, 0, 0, 14, 9, 8, 3, 7, 5, 5, 1, 3, 2, 2, 1, 0), # 138 (12, 13, 14, 8, 12, 1, 6, 4, 9, 3, 1, 0, 0, 15, 10, 8, 4, 16, 7, 6, 0, 1, 2, 3, 0, 0), # 139 (15, 13, 12, 13, 18, 1, 5, 1, 6, 2, 1, 0, 0, 7, 9, 4, 9, 6, 9, 7, 3, 3, 7, 1, 2, 0), # 140 (5, 8, 12, 9, 16, 5, 5, 4, 4, 3, 1, 0, 0, 12, 5, 10, 2, 4, 4, 5, 6, 1, 2, 2, 0, 0), # 141 (13, 11, 11, 10, 16, 3, 3, 1, 6, 2, 2, 0, 0, 10, 10, 4, 3, 7, 2, 3, 4, 5, 7, 2, 0, 0), # 142 (7, 8, 5, 18, 8, 7, 4, 3, 1, 3, 4, 2, 0, 21, 12, 6, 5, 10, 3, 5, 2, 6, 4, 2, 3, 0), # 143 (9, 7, 9, 10, 8, 7, 2, 4, 3, 2, 1, 0, 0, 10, 11, 4, 4, 11, 2, 2, 1, 9, 4, 5, 2, 0), # 144 (9, 4, 6, 8, 13, 3, 3, 1, 9, 2, 5, 0, 0, 12, 10, 7, 7, 13, 11, 3, 2, 7, 3, 1, 1, 0), # 145 (11, 12, 16, 9, 10, 2, 4, 5, 5, 4, 3, 3, 0, 9, 9, 7, 5, 12, 2, 1, 4, 2, 2, 0, 0, 0), # 146 (9, 10, 7, 11, 9, 6, 7, 4, 4, 4, 5, 3, 0, 18, 6, 6, 4, 9, 4, 2, 2, 6, 4, 2, 1, 0), # 147 (16, 6, 15, 11, 11, 3, 3, 4, 6, 3, 2, 1, 0, 12, 9, 7, 6, 15, 6, 4, 3, 5, 2, 2, 1, 0), # 148 (9, 5, 13, 9, 6, 4, 1, 3, 5, 3, 3, 1, 0, 10, 8, 14, 4, 7, 6, 2, 5, 5, 4, 1, 1, 0), # 149 (14, 9, 13, 13, 8, 4, 7, 5, 3, 3, 0, 1, 0, 6, 10, 3, 5, 10, 5, 2, 1, 3, 4, 2, 1, 0), # 150 (11, 10, 15, 9, 7, 6, 5, 3, 7, 1, 3, 2, 0, 7, 8, 9, 2, 7, 5, 3, 3, 1, 3, 3, 1, 0), # 151 (8, 16, 7, 12, 10, 4, 4, 5, 2, 2, 0, 0, 0, 13, 6, 12, 2, 11, 3, 5, 3, 3, 2, 1, 1, 0), # 152 (15, 7, 11, 8, 10, 2, 1, 0, 4, 2, 1, 1, 0, 14, 7, 12, 7, 9, 3, 4, 2, 4, 2, 0, 1, 0), # 153 (18, 9, 15, 13, 7, 5, 4, 4, 3, 3, 1, 0, 0, 12, 11, 8, 9, 13, 8, 6, 1, 3, 0, 5, 2, 0), # 154 (10, 2, 12, 11, 11, 5, 4, 2, 5, 1, 0, 0, 0, 9, 5, 13, 3, 5, 3, 4, 1, 9, 3, 2, 0, 0), # 155 (16, 7, 9, 9, 7, 6, 5, 2, 5, 1, 2, 0, 0, 18, 12, 3, 2, 9, 3, 3, 4, 6, 2, 3, 1, 0), # 156 (7, 5, 8, 9, 8, 7, 5, 4, 7, 2, 0, 0, 0, 15, 11, 4, 2, 12, 4, 3, 4, 5, 3, 3, 1, 0), # 157 (15, 6, 9, 13, 9, 8, 0, 2, 3, 4, 0, 2, 0, 15, 8, 5, 9, 10, 6, 5, 3, 2, 2, 1, 1, 0), # 158 (12, 5, 10, 10, 11, 5, 2, 5, 3, 2, 0, 2, 0, 10, 5, 4, 3, 10, 4, 1, 2, 4, 2, 3, 1, 0), # 159 (6, 12, 10, 2, 6, 4, 0, 4, 5, 0, 0, 2, 0, 13, 5, 10, 6, 7, 7, 3, 1, 7, 1, 2, 1, 0), # 160 (10, 6, 9, 14, 8, 0, 5, 1, 2, 1, 3, 2, 0, 14, 10, 5, 9, 7, 3, 2, 2, 4, 1, 0, 0, 0), # 161 (9, 11, 12, 2, 8, 1, 2, 5, 2, 3, 3, 0, 0, 12, 7, 7, 2, 12, 3, 5, 5, 6, 6, 1, 2, 0), # 162 (9, 6, 12, 12, 8, 2, 5, 2, 5, 3, 0, 2, 0, 8, 6, 1, 2, 8, 5, 6, 0, 4, 3, 0, 0, 0), # 163 (8, 8, 9, 9, 10, 5, 4, 3, 6, 2, 0, 0, 0, 9, 9, 7, 5, 7, 2, 3, 2, 4, 1, 1, 1, 0), # 164 (5, 7, 10, 5, 7, 6, 3, 2, 2, 0, 3, 2, 0, 15, 8, 4, 6, 7, 4, 4, 4, 1, 3, 0, 0, 0), # 165 (3, 7, 5, 9, 7, 3, 4, 4, 4, 2, 3, 1, 0, 6, 9, 6, 3, 6, 4, 3, 4, 2, 2, 2, 0, 0), # 166 (9, 5, 9, 8, 11, 3, 2, 1, 3, 1, 1, 2, 0, 10, 9, 4, 6, 9, 6, 0, 2, 3, 2, 1, 1, 0), # 167 (4, 3, 11, 10, 8, 6, 3, 2, 3, 3, 0, 1, 0, 6, 8, 4, 2, 11, 2, 3, 2, 4, 3, 2, 1, 0), # 168 (9, 1, 5, 4, 7, 4, 3, 1, 3, 1, 1, 1, 0, 10, 5, 3, 2, 11, 3, 3, 2, 3, 3, 0, 1, 0), # 169 (7, 5, 5, 5, 5, 4, 0, 4, 0, 0, 2, 4, 0, 9, 9, 5, 3, 8, 1, 0, 4, 1, 2, 1, 0, 0), # 170 (8, 4, 11, 6, 5, 3, 2, 2, 4, 3, 2, 0, 0, 8, 10, 5, 2, 8, 3, 2, 1, 3, 2, 1, 0, 0), # 171 (7, 3, 11, 4, 7, 1, 1, 5, 5, 1, 1, 0, 0, 10, 9, 7, 2, 12, 1, 1, 2, 3, 2, 0, 0, 0), # 172 (8, 2, 12, 10, 4, 2, 4, 5, 3, 0, 2, 0, 0, 8, 4, 6, 1, 11, 2, 3, 1, 1, 3, 2, 3, 0), # 173 (4, 4, 6, 4, 4, 0, 2, 4, 1, 1, 0, 1, 0, 3, 7, 5, 2, 9, 6, 1, 0, 0, 1, 1, 1, 0), # 174 (7, 3, 1, 6, 6, 1, 1, 4, 4, 2, 2, 0, 0, 6, 10, 4, 6, 6, 2, 1, 1, 1, 4, 1, 1, 0), # 175 (4, 8, 4, 7, 4, 3, 1, 4, 9, 2, 1, 0, 0, 6, 1, 4, 3, 6, 2, 1, 0, 1, 3, 0, 0, 0), # 176 (6, 5, 4, 8, 5, 5, 2, 2, 4, 0, 1, 0, 0, 4, 7, 1, 3, 3, 2, 3, 1, 1, 2, 2, 1, 0), # 177 (7, 5, 6, 5, 5, 2, 1, 1, 3, 0, 0, 0, 0, 7, 5, 3, 1, 3, 2, 1, 2, 5, 1, 2, 0, 0), # 178 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 179 ) station_arriving_intensity = ( (7.029211809720476, 7.735403983570434, 7.29579652145751, 8.700534883408807, 7.776559850653457, 4.394116904852274, 5.804449861523481, 6.514446642171193, 8.52613868703521, 5.541221021731318, 5.887371229439844, 6.857081109628643, 7.117432297609708), # 0 (7.496058012827964, 8.246084971802663, 7.777485227862214, 9.275201954587263, 8.291486472463932, 4.684377017659578, 6.187256517769172, 6.943319212067992, 9.089143456866074, 5.90657296918801, 6.2763345903385845, 7.309703325140097, 7.587708306415797), # 1 (7.9614122125716245, 8.754739239247371, 8.257259199766379, 9.847582786530712, 8.804548163249642, 4.9734791603174235, 6.568545911144986, 7.370475347066188, 9.64990152962857, 6.270479285028765, 6.663752408286839, 7.760525712874277, 8.056110759493567), # 2 (8.423460910405188, 9.259348702711026, 8.733215217047796, 10.415406970544904, 9.313726346402664, 5.260276871619158, 6.946805098307138, 7.79422162049231, 10.206189225289531, 6.631495777796654, 7.0480877765583365, 8.207759958902646, 8.520781928755916), # 3 (8.880390607782374, 9.757895279000085, 9.203450059584252, 10.976404097935598, 9.81700244531509, 5.543623690358135, 7.320521135911843, 8.212864605672882, 10.75578286381579, 6.988178256034751, 7.4278037884268056, 8.64961774929667, 8.979864086115745), # 4 (9.330387806156915, 10.248360884921025, 9.666060507253526, 11.528303760008551, 10.312357883378994, 5.822373155327701, 7.688181080615314, 8.62471087593443, 11.296458765174183, 7.339082528286129, 7.801363537165986, 9.084310770127807, 9.43149950348596), # 5 (9.771639006982534, 10.728727437280302, 10.119143339933412, 12.068835548069513, 10.79777408398646, 6.09537880532121, 8.048271989073768, 9.028067004603484, 11.825993249331543, 7.682764403093862, 8.167230116049597, 9.510050707467531, 9.87383045277945), # 6 (10.202330711712957, 11.196976852884385, 10.56079533750169, 12.595729053424249, 11.271232470529577, 6.36149417913201, 8.39928091794342, 9.421239565006573, 12.342162636254702, 8.017779689001022, 8.523866618351377, 9.925049247387301, 10.304999205909127), # 7 (10.62064942180191, 11.651091048539739, 10.989113279836156, 13.1067138673785, 11.730714466400421, 6.619572815553446, 8.739694923880478, 9.802535130470215, 12.842743245910489, 8.342684194550685, 8.86973613734505, 10.327518075958585, 10.723148034787885), # 8 (11.02478163870312, 12.089051941052832, 11.402193946814586, 13.599519581238038, 12.174201494991074, 6.868468253378878, 9.068001063541168, 10.170260274320949, 13.325511398265744, 8.65603372828592, 9.20330176630435, 10.71566887925284, 11.126419211328628), # 9 (11.412913863870306, 12.508841447230123, 11.798134118314776, 14.071875786308604, 12.599674979693622, 7.107034031401651, 9.382686393581697, 10.522721569885295, 13.7882434132873, 8.956384098749801, 9.523026598503003, 11.087713343341534, 11.512955007444255), # 10 (11.783232598757209, 12.90844148387809, 12.175030574214501, 14.521512073895957, 13.005116343900148, 7.334123688415116, 9.682237970658283, 10.85822559048978, 14.228715610941991, 9.242291114485408, 9.82737372721475, 11.441863154296136, 11.880897695047656), # 11 (12.133924344817538, 13.285833967803178, 12.530980094391557, 14.946158035305858, 13.38850701100273, 7.5485907632126175, 9.965142851427137, 11.17507890946093, 14.644704311196652, 9.512310584035802, 10.114806245713309, 11.776329998188096, 12.22838954605175), # 12 (12.463175603505027, 13.639000815811869, 12.864079458723728, 15.343543261844063, 13.747828404393443, 7.749288794587514, 10.22988809254448, 11.471588100125276, 15.033985834018106, 9.764998315944066, 10.383787247272418, 12.08932556108889, 12.55357283236943), # 13 (12.769172876273403, 13.965923944710624, 13.172425447088806, 15.71139734481631, 14.081061947464386, 7.935071321333148, 10.474960750666526, 11.746059735809345, 15.39433649937319, 9.998910118753269, 10.6327798251658, 12.379061529069986, 12.85458982591359), # 14 (13.050102664576398, 14.264585271305906, 13.45411483936456, 16.047449875528383, 14.386189063607633, 8.104791882242878, 10.698847882449478, 11.99680038983966, 15.723532627228748, 10.212601801006487, 10.860247072667189, 12.64374958820284, 13.129582798597134), # 15 (13.30415146986772, 14.532966712404187, 13.707244415428796, 16.349430445286004, 14.661191176215267, 8.257304016110044, 10.900036544549568, 12.222116635542745, 16.019350537551603, 10.404629171246796, 11.06465208305032, 12.881601424558916, 13.376694022332964), # 16 (13.529505793601107, 14.769050184811926, 13.929910955159293, 16.61506864539496, 14.904049708679375, 8.391461261728, 11.077013793622996, 12.420315046245145, 16.27956655030858, 10.573548038017254, 11.24445794958892, 13.090828724209679, 13.594065769033982), # 17 (13.724352137230287, 14.970817605335585, 14.120211238433834, 16.842094067160993, 15.112746084392025, 8.506117157890104, 11.228266686325993, 12.589702195273366, 16.501956985466535, 10.717914209860952, 11.398127765556712, 13.269643173226603, 13.779840310613086), # 18 (13.88687700220898, 15.136250890781643, 14.27624204513021, 17.02823630188984, 15.285261726745313, 8.600125243389693, 11.352282279314753, 12.728584655953943, 16.68429816299229, 10.83628349532096, 11.52412462422743, 13.416256457681136, 13.932159918983176), # 19 (14.015266889990915, 15.263331957956549, 14.396100155126206, 17.171224940887296, 15.419578059131322, 8.672339057020126, 11.44754762924551, 12.835269001613405, 16.82436640285268, 10.927211702940342, 11.62091161887481, 13.528880263644748, 14.049166866057154), # 20 (14.107708302029813, 15.350042723666784, 14.477882348299607, 17.26878957545908, 15.513676504942126, 8.72161213757475, 11.512549792774463, 12.908061805578273, 16.91993802501453, 10.989254641262178, 11.686951842772585, 13.60572627718891, 14.12900342374791), # 21 (14.162387739779412, 15.394365104718803, 14.5196854045282, 17.31865979691097, 15.565538487569807, 8.746798023846914, 11.54577582655784, 12.945269641175082, 16.968789349444684, 11.02096811882954, 11.720708389194478, 13.645006184385087, 14.16981186396836), # 22 (14.182550708679697, 15.39961303155007, 14.524892455418383, 17.324903137860087, 15.578824878445637, 8.75, 11.549725603163076, 12.949291358024693, 16.974896728395063, 11.024709181527207, 11.724941252026436, 13.649856607224509, 14.175), # 23 (14.197417378247815, 15.396551851851854, 14.524040740740743, 17.324134722222226, 15.586350659060795, 8.75, 11.547555337690634, 12.943700000000002, 16.974078333333335, 11.02241086419753, 11.724474410774413, 13.648720987654322, 14.175), # 24 (14.211970122296213, 15.390517832647463, 14.522359396433473, 17.322614454732513, 15.593710923832306, 8.75, 11.543278463648836, 12.932716049382718, 16.97246141975309, 11.01788637402835, 11.723548759196907, 13.646479195244629, 14.175), # 25 (14.226207826667249, 15.381603155006863, 14.519871467764064, 17.320359619341563, 15.600905415789548, 8.75, 11.53696140563221, 12.916546913580248, 16.97006672839506, 11.011210992226795, 11.722172677391198, 13.643161957018751, 14.175), # 26 (14.240129377203292, 15.3699, 14.5166, 17.3173875, 15.607933877961901, 8.75, 11.528670588235297, 12.895400000000002, 16.966915, 11.00246, 11.720354545454546, 13.638800000000003, 14.175), # 27 (14.253733659746702, 15.355500548696845, 14.51256803840878, 17.313715380658437, 15.614796053378763, 8.75, 11.518472436052612, 12.869482716049385, 16.963026975308644, 10.9917086785551, 11.718102743484225, 13.633424051211708, 14.175), # 28 (14.26701956013985, 15.338496982167355, 14.50779862825789, 17.30936054526749, 15.62149168506951, 8.75, 11.506433373678693, 12.839002469135803, 16.95842339506173, 10.979032309099225, 11.715425651577503, 13.627064837677183, 14.175), # 29 (14.279985964225098, 15.318981481481483, 14.502314814814815, 17.30434027777778, 15.628020516063533, 8.75, 11.492619825708061, 12.804166666666665, 16.953125, 10.964506172839508, 11.71233164983165, 13.619753086419752, 14.175), # 30 (14.292631757844802, 15.297046227709194, 14.496139643347053, 17.29867186213992, 15.634382289390214, 8.75, 11.477098216735257, 12.765182716049384, 16.947152530864198, 10.948205550983083, 11.708829118343933, 13.611519524462738, 14.175), # 31 (14.304955826841338, 15.27278340192044, 14.489296159122084, 17.29237258230453, 15.640576748078935, 8.75, 11.4599349713548, 12.72225802469136, 16.940526728395064, 10.930205724737084, 11.704926437211622, 13.602394878829449, 14.175), # 32 (14.316957057057056, 15.246285185185185, 14.481807407407409, 17.28545972222222, 15.646603635159089, 8.75, 11.441196514161222, 12.675600000000001, 16.933268333333334, 10.910581975308643, 11.700631986531986, 13.59240987654321, 14.175), # 33 (14.328634334334335, 15.217643758573388, 14.473696433470508, 17.27795056584362, 15.652462693660054, 8.75, 11.420949269749054, 12.625416049382716, 16.925398086419758, 10.889409583904893, 11.695954146402293, 13.581595244627344, 14.175), # 34 (14.339986544515531, 15.186951303155007, 14.464986282578877, 17.26986239711934, 15.65815366661122, 8.75, 11.399259662712824, 12.571913580246914, 16.916936728395065, 10.866763831732968, 11.690901296919815, 13.569981710105168, 14.175), # 35 (14.35101257344301, 15.1543, 14.455700000000002, 17.2612125, 15.663676297041972, 8.75, 11.37619411764706, 12.515300000000002, 16.907905, 10.84272, 11.685481818181819, 13.557600000000003, 14.175), # 36 (14.361711306959135, 15.119782030178326, 14.445860631001374, 17.252018158436215, 15.669030327981691, 8.75, 11.351819059146292, 12.455782716049384, 16.89832364197531, 10.817353369913125, 11.679704090285574, 13.544480841335163, 14.175), # 37 (14.372081630906267, 15.083489574759948, 14.43549122085048, 17.242296656378603, 15.674215502459768, 8.75, 11.326200911805053, 12.393569135802473, 16.88821339506173, 10.790739222679472, 11.673576493328346, 13.530654961133976, 14.175), # 38 (14.382122431126781, 15.045514814814815, 14.424614814814818, 17.232065277777778, 15.679231563505585, 8.75, 11.299406100217867, 12.328866666666666, 16.877595000000003, 10.762952839506175, 11.667107407407409, 13.516153086419752, 14.175), # 39 (14.39183259346303, 15.005949931412895, 14.413254458161866, 17.221341306584364, 15.684078254148528, 8.75, 11.271501048979264, 12.261882716049385, 16.866489197530868, 10.734069501600368, 11.660305212620028, 13.501005944215823, 14.175), # 40 (14.40121100375738, 14.964887105624143, 14.401433196159124, 17.210142026748972, 15.688755317417984, 8.75, 11.242552182683774, 12.192824691358027, 16.85491672839506, 10.704164490169182, 11.653178289063476, 13.485244261545498, 14.175), # 41 (14.410256547852201, 14.922418518518521, 14.389174074074077, 17.198484722222226, 15.693262496343333, 8.75, 11.212625925925927, 12.121900000000002, 16.842898333333338, 10.673313086419753, 11.645735016835017, 13.4688987654321, 14.175), # 42 (14.418968111589852, 14.878636351165984, 14.376500137174213, 17.186386676954736, 15.697599533953966, 8.75, 11.181788703300251, 12.049316049382718, 16.83045475308642, 10.641590571559215, 11.637983776031925, 13.452000182898951, 14.175), # 43 (14.427344580812699, 14.83363278463649, 14.363434430727025, 17.173865174897124, 15.701766173279264, 8.75, 11.150106939401276, 11.975280246913583, 16.817606728395063, 10.609072226794698, 11.629932946751465, 13.434579240969367, 14.175), # 44 (14.435384841363105, 14.787500000000001, 14.350000000000001, 17.160937500000003, 15.705762157348616, 8.75, 11.11764705882353, 11.9, 16.804375, 10.575833333333335, 11.62159090909091, 13.416666666666666, 14.175), # 45 (14.443087779083434, 14.740330178326476, 14.336219890260631, 17.147620936213993, 15.709587229191404, 8.75, 11.084475486161544, 11.823682716049385, 16.790780308641974, 10.541949172382258, 11.612966043147525, 13.398293187014175, 14.175), # 46 (14.45045227981605, 14.692215500685872, 14.322117146776408, 17.133932767489714, 15.713241131837016, 8.75, 11.050658646009847, 11.746535802469136, 16.776843395061732, 10.507495025148607, 11.604066729018582, 13.37948952903521, 14.175), # 47 (14.457477229403315, 14.64324814814815, 14.307714814814817, 17.11989027777778, 15.716723608314837, 8.75, 11.016262962962964, 11.668766666666668, 16.762585, 10.472546172839506, 11.594901346801347, 13.360286419753088, 14.175), # 48 (14.464161513687602, 14.593520301783265, 14.29303593964335, 17.10551075102881, 15.720034401654251, 8.75, 10.981354861615428, 11.590582716049383, 16.748025864197533, 10.437177896662096, 11.585478276593093, 13.340714586191131, 14.175), # 49 (14.470504018511264, 14.543124142661183, 14.278103566529495, 17.090811471193415, 15.723173254884642, 8.75, 10.94600076656177, 11.512191358024692, 16.73318672839506, 10.401465477823503, 11.575805898491085, 13.32080475537266, 14.175), # 50 (14.476503629716676, 14.492151851851853, 14.262940740740742, 17.075809722222225, 15.726139911035398, 8.75, 10.910267102396515, 11.433800000000002, 16.718088333333338, 10.365484197530865, 11.565892592592595, 13.30058765432099, 14.175), # 51 (14.482159233146191, 14.440695610425243, 14.247570507544584, 17.060522788065846, 15.728934113135901, 8.75, 10.874220293714194, 11.355616049382716, 16.70275141975309, 10.329309336991313, 11.555746738994888, 13.280094010059445, 14.175), # 52 (14.487469714642183, 14.388847599451307, 14.232015912208508, 17.0449679526749, 15.731555604215542, 8.75, 10.837926765109337, 11.277846913580248, 16.687196728395065, 10.293016177411982, 11.545376717795238, 13.259354549611341, 14.175), # 53 (14.492433960047004, 14.336700000000002, 14.2163, 17.0291625, 15.734004127303704, 8.75, 10.801452941176471, 11.2007, 16.671445000000002, 10.256680000000001, 11.534790909090908, 13.2384, 14.175), # 54 (14.497050855203032, 14.284344993141291, 14.200445816186559, 17.01312371399177, 15.736279425429768, 8.75, 10.764865246510128, 11.124382716049384, 16.655516975308643, 10.220376085962506, 11.523997692979176, 13.217261088248744, 14.175), # 55 (14.501319285952622, 14.231874759945132, 14.184476406035667, 16.996868878600825, 15.738381241623124, 8.75, 10.728230105704835, 11.049102469135804, 16.63943339506173, 10.184179716506632, 11.513005449557303, 13.195968541380887, 14.175), # 56 (14.505238138138138, 14.179381481481483, 14.168414814814819, 16.98041527777778, 15.740309318913155, 8.75, 10.69161394335512, 10.975066666666669, 16.623215000000002, 10.148166172839508, 11.50182255892256, 13.174553086419753, 14.175), # 57 (14.508806297601952, 14.126957338820304, 14.152284087791497, 16.96378019547325, 15.742063400329245, 8.75, 10.655083184055517, 10.902482716049382, 16.606882530864198, 10.112410736168268, 11.490457401172218, 13.153045450388662, 14.175), # 58 (14.51202265018642, 14.07469451303155, 14.136107270233198, 16.946980915637862, 15.743643228900785, 8.75, 10.61870425240055, 10.83155802469136, 16.590456728395065, 10.076988687700048, 11.478918356403542, 13.131476360310929, 14.175), # 59 (14.51488608173391, 14.022685185185187, 14.119907407407407, 16.930034722222224, 15.745048547657152, 8.75, 10.582543572984749, 10.762500000000001, 16.573958333333337, 10.041975308641977, 11.467213804713806, 13.109876543209879, 14.175), # 60 (14.517395478086781, 13.971021536351168, 14.10370754458162, 16.912958899176957, 15.746279099627737, 8.75, 10.546667570402647, 10.695516049382718, 16.557408086419755, 10.00744588020119, 11.455352126200275, 13.088276726108827, 14.175), # 61 (14.519549725087407, 13.919795747599453, 14.087530727023323, 16.89577073045268, 15.74733462784193, 8.75, 10.51114266924877, 10.630813580246915, 16.540826728395064, 9.973475683584821, 11.44334170096022, 13.066707636031095, 14.175), # 62 (14.521347708578144, 13.869100000000001, 14.071400000000002, 16.878487500000002, 15.7482148753291, 8.75, 10.476035294117647, 10.568600000000002, 16.524235, 9.94014, 11.43119090909091, 13.045200000000001, 14.175), # 63 (14.522788314401359, 13.819026474622772, 14.05533840877915, 16.86112649176955, 15.74891958511865, 8.75, 10.44141186960381, 10.509082716049384, 16.50765364197531, 9.907514110653864, 11.41890813068961, 13.023784545038868, 14.175), # 64 (14.523870428399414, 13.769667352537724, 14.03936899862826, 16.843704989711934, 15.749448500239955, 8.75, 10.407338820301785, 10.45246913580247, 16.49110339506173, 9.875673296753543, 11.4065017458536, 13.00249199817101, 14.175), # 65 (14.524592936414676, 13.721114814814818, 14.023514814814817, 16.826240277777778, 15.749801363722403, 8.75, 10.373882570806101, 10.398966666666668, 16.474605000000004, 9.844692839506173, 11.393980134680135, 12.981353086419755, 14.175), # 66 (14.524954724289511, 13.673461042524005, 14.00779890260631, 16.808749639917696, 15.749977918595382, 8.75, 10.341109545711289, 10.348782716049385, 16.458179197530864, 9.814648020118886, 11.381351677266494, 12.960398536808412, 14.175), # 67 (14.524708260273156, 13.626548095048452, 13.99216832990398, 16.7910984366613, 15.749829137416285, 8.74983761621704, 10.308921272761506, 10.301681390032009, 16.44172298811157, 9.785468618306034, 11.368400383956526, 12.939542030659641, 14.174825210048013), # 68 (14.522398389694043, 13.578943727598569, 13.976183796296295, 16.772396920289854, 15.748474945533768, 8.748553909465022, 10.27637545388526, 10.25513827160494, 16.424516975308645, 9.756328946986201, 11.35380797448166, 12.918106562703056, 14.17344039351852), # 69 (14.517840102582454, 13.5304294437807, 13.95977580589849, 16.752521973966722, 15.74579903978052, 8.746025758268557, 10.243324188385918, 10.208733424782809, 16.40646404892547, 9.727087334247829, 11.337408441136512, 12.895991865809934, 14.170705268347055), # 70 (14.511097524900102, 13.481034236028144, 13.942950120027435, 16.731502905260335, 15.74183531025579, 8.742294131992075, 10.209782323354585, 10.162482213077277, 16.387591095107457, 9.697744503079695, 11.319262319097408, 12.873214112097802, 14.166655842764062), # 71 (14.502234782608697, 13.430787096774193, 13.9257125, 16.709369021739132, 15.736617647058825, 8.737400000000001, 10.175764705882354, 10.1164, 16.367925000000003, 9.668301176470589, 11.299430143540672, 12.849789473684211, 14.161328125), # 72 (14.491316001669949, 13.379717018452144, 13.90806870713306, 16.686149630971553, 15.730179940288872, 8.73138433165676, 10.141286183060329, 10.070502149062644, 16.347492649748517, 9.63875807740929, 11.277972449642624, 12.825734122686688, 14.154758123285324), # 73 (14.478405308045566, 13.32785299349529, 13.890024502743485, 16.661874040526033, 15.722556080045187, 8.72428809632678, 10.106361601979613, 10.024804023776863, 16.3263209304984, 9.609115928884586, 11.254949772579598, 12.801064231222776, 14.146981845850483), # 74 (14.463566827697262, 13.275224014336917, 13.871585648148148, 16.636571557971017, 15.713779956427018, 8.716152263374488, 10.0710058097313, 9.979320987654322, 16.30443672839506, 9.579375453885259, 11.23042264752791, 12.775795971410007, 14.138035300925928), # 75 (14.44686468658675, 13.22185907341033, 13.852757904663925, 16.610271490874936, 15.703885459533609, 8.707017802164305, 10.035233653406493, 9.934068404206677, 16.281866929583906, 9.549537375400092, 11.20445160966389, 12.749945515365916, 14.127954496742113), # 76 (14.428363010675731, 13.167787163148816, 13.833547033607681, 16.583003146806227, 15.692906479464213, 8.696925682060662, 9.999059980096293, 9.88906163694559, 16.258638420210335, 9.519602416417872, 11.177097194163862, 12.723529035208049, 14.116775441529496), # 77 (14.408125925925928, 13.113037275985667, 13.813958796296298, 16.554795833333333, 15.680876906318085, 8.685916872427983, 9.962499636891796, 9.844316049382718, 16.23477808641975, 9.489571299927379, 11.148419936204148, 12.696562703053933, 14.10453414351852), # 78 (14.386217558299041, 13.057638404354178, 13.793998954046641, 16.525678858024694, 15.667830630194468, 8.674032342630696, 9.925567470884102, 9.799847005029722, 16.210312814357568, 9.4594447489174, 11.118480370961072, 12.669062691021107, 14.091266610939643), # 79 (14.362702033756786, 13.001619540687642, 13.773673268175584, 16.495681528448742, 15.653801541192612, 8.661313062033226, 9.888278329164315, 9.755669867398264, 16.185269490169183, 9.429223486376719, 11.087339033610965, 12.64104517122711, 14.07700885202332), # 80 (14.337643478260873, 12.945009677419357, 13.752987500000001, 16.464833152173917, 15.638823529411765, 8.6478, 9.85064705882353, 9.711800000000002, 16.159675, 9.398908235294119, 11.055056459330146, 12.612526315789475, 14.061796875), # 81 (14.311106017773009, 12.887837806982612, 13.731947410836765, 16.433163036768654, 15.622930484951183, 8.633534125895444, 9.812688506952853, 9.668252766346594, 16.133556229995428, 9.368499718658382, 11.02169318329494, 12.583522296825743, 14.045666688100141), # 82 (14.283153778254908, 12.8301329218107, 13.710558762002744, 16.400700489801395, 15.606156297910111, 8.618556409083983, 9.774417520643375, 9.625043529949703, 16.10694006630087, 9.337998659458297, 10.987309740681672, 12.554049286453447, 14.028654299554185), # 83 (14.253850885668278, 12.77192401433692, 13.688827314814816, 16.36747481884058, 15.588534858387801, 8.602907818930042, 9.735848946986202, 9.582187654320988, 16.07985339506173, 9.307405780682645, 10.951966666666667, 12.524123456790125, 14.010795717592593), # 84 (14.223261465974833, 12.713240076994557, 13.666758830589849, 16.333515331454645, 15.5701000564835, 8.58662932479805, 9.696997633072435, 9.53970050297211, 16.05232310242341, 9.276721805320209, 10.915724496426252, 12.493760979953313, 13.992126950445819), # 85 (14.191449645136279, 12.654110102216913, 13.644359070644722, 16.298851335212028, 15.550885782296458, 8.569761896052432, 9.65787842599317, 9.497597439414724, 16.024376074531325, 9.245947456359774, 10.878643765136749, 12.462978028060553, 13.97268400634431), # 86 (14.15847954911433, 12.594563082437277, 13.621633796296296, 16.26351213768116, 15.53092592592593, 8.552346502057613, 9.618506172839506, 9.455893827160494, 15.996039197530868, 9.215083456790124, 10.840785007974482, 12.43179077322937, 13.95250289351852), # 87 (14.124415303870702, 12.534628010088941, 13.598588768861456, 16.22752704643049, 15.510254377471155, 8.534424112178023, 9.578895720702548, 9.414605029721079, 15.967339357567447, 9.184130529600042, 10.802208760115779, 12.400215387577312, 13.931619620198905), # 88 (14.089321035367092, 12.474333877605204, 13.575229749657066, 16.19092536902845, 15.488905027031391, 8.516035695778085, 9.539061916673392, 9.37374641060814, 15.938303440786468, 9.153089397778317, 10.762975556736963, 12.36826804322191, 13.910070194615912), # 89 (14.053260869565218, 12.413709677419357, 13.551562500000001, 16.153736413043482, 15.466911764705886, 8.497222222222224, 9.499019607843138, 9.333333333333334, 15.908958333333336, 9.121960784313726, 10.723145933014354, 12.335964912280703, 13.887890625), # 90 (14.016298932426789, 12.352784401964689, 13.527592781207133, 16.11598948604402, 15.444308480593882, 8.478024660874867, 9.458783641302887, 9.293381161408323, 15.879330921353455, 9.090745412195057, 10.682780424124285, 12.303322166871226, 13.865116919581618), # 91 (13.978499349913523, 12.2915870436745, 13.503326354595337, 16.0777138955985, 15.421129064794641, 8.458483981100443, 9.418368864143739, 9.253905258344766, 15.84944809099223, 9.059444004411093, 10.641939565243074, 12.270355979111017, 13.841785086591221), # 92 (13.939926247987117, 12.230146594982081, 13.478768981481483, 16.038938949275366, 15.397407407407409, 8.438641152263374, 9.37779012345679, 9.214920987654322, 15.819336728395063, 9.028057283950616, 10.600683891547051, 12.23708252111761, 13.81793113425926), # 93 (13.900643752609293, 12.168492048320722, 13.453926423182445, 15.999693954643051, 15.37317739853143, 8.418537143728091, 9.337062266333147, 9.176443712848654, 15.789023719707364, 8.996585973802416, 10.559073938212535, 12.203517965008546, 13.793591070816188), # 94 (13.860715989741754, 12.106652396123724, 13.42880444101509, 15.960008219269996, 15.34847292826596, 8.398212924859017, 9.296200139863902, 9.138488797439416, 15.758535951074533, 8.96503079695527, 10.517170240415854, 12.169678482901354, 13.768800904492457), # 95 (13.820207085346219, 12.044656630824377, 13.403408796296299, 15.91991105072464, 15.32332788671024, 8.377709465020576, 9.25521859114016, 9.101071604938273, 15.727900308641976, 8.933392476397968, 10.475033333333334, 12.135580246913582, 13.74359664351852), # 96 (13.779181165384388, 11.98253374485597, 13.377745250342937, 15.879431756575416, 15.297776163963531, 8.357067733577198, 9.21413246725302, 9.064207498856883, 15.6971436785551, 8.901671735119288, 10.432723752141296, 12.101239429162758, 13.718014296124831), # 97 (13.737702355817978, 11.9203127306518, 13.35181956447188, 15.83859964439077, 15.271851650125074, 8.336328699893311, 9.17295661529358, 9.027911842706905, 15.666292946959304, 8.86986929610802, 10.390302032016068, 12.066672201766417, 13.69208987054184), # 98 (13.695834782608697, 11.858022580645162, 13.325637500000003, 15.797444021739132, 15.24558823529412, 8.315533333333335, 9.131705882352943, 8.9922, 15.635375000000002, 8.83798588235294, 10.347828708133973, 12.031894736842107, 13.665859375000002), # 99 (13.653642571718258, 11.795692287269347, 13.29920481824417, 15.755994196188944, 15.21901980956992, 8.294722603261699, 9.090395115522204, 8.957087334247829, 15.60441672382259, 8.806022216842843, 10.305364315671335, 11.996923206507354, 13.639358817729768), # 100 (13.611189849108369, 11.733350842957654, 13.272527280521263, 15.714279475308645, 15.192180263051725, 8.273937479042829, 9.049039161892468, 8.922589208962048, 15.573445004572475, 8.773979022566504, 10.262969389804478, 11.961773782879694, 13.612624206961591), # 101 (13.568540740740744, 11.67102724014337, 13.245610648148148, 15.67232916666667, 15.165103485838781, 8.253218930041154, 9.00765286855483, 8.888720987654322, 15.542486728395062, 8.741857022512711, 10.22070446570973, 11.926462638076675, 13.585691550925928), # 102 (13.525759372577088, 11.60875047125979, 13.218460682441702, 15.630172577831457, 15.137823368030341, 8.232607925621096, 8.966251082600394, 8.855498033836307, 15.511568781435757, 8.709656939670245, 10.178630078563414, 11.891005944215824, 13.558596857853223), # 103 (13.482909870579116, 11.546549528740211, 13.191083144718794, 15.587839016371445, 15.110373799725652, 8.212145435147082, 8.924848651120257, 8.822935711019662, 15.480718049839965, 8.677379497027893, 10.13680676354185, 11.855419873414677, 13.53137613597394), # 104 (13.440056360708535, 11.484453405017922, 13.163483796296298, 15.545357789855073, 15.082788671023966, 8.19187242798354, 8.883460421205521, 8.79104938271605, 15.449961419753087, 8.64502541757444, 10.095295055821373, 11.819720597790775, 13.50406539351852), # 105 (13.39726296892706, 11.42249109252622, 13.135668398491084, 15.50275820585078, 15.055101872024531, 8.171829873494895, 8.842101239947283, 8.759854412437129, 15.41932577732053, 8.612595424298663, 10.054155490578298, 11.783924289461654, 13.476700638717421), # 106 (13.3545938211964, 11.360691583698395, 13.10764271262003, 15.460069571927, 15.027347292826596, 8.152058741045574, 8.800785954436646, 8.72936616369456, 15.388838008687703, 8.580090240189355, 10.013448602988953, 11.748047120544847, 13.449317879801098), # 107 (13.312113043478263, 11.299083870967744, 13.079412500000002, 15.417321195652177, 14.999558823529412, 8.132600000000002, 8.759529411764706, 8.699600000000002, 15.358525000000002, 8.547510588235296, 9.973234928229665, 11.712105263157897, 13.421953125000002), # 108 (13.26988476173436, 11.237696946767558, 13.050983521947876, 15.374542384594738, 14.97177035423223, 8.113494619722603, 8.718346459022568, 8.670571284865114, 15.328413637402836, 8.514857191425268, 9.933575001476758, 11.676114889418335, 13.394642382544584), # 109 (13.227973101926404, 11.176559803531132, 13.022361539780524, 15.331762446323136, 14.944015775034297, 8.094783569577809, 8.677251943301325, 8.642295381801555, 15.29853080704161, 8.482130772748057, 9.894529357906551, 11.640092171443701, 13.367421660665297), # 110 (13.186442190016104, 11.11570143369176, 12.993552314814819, 15.2890106884058, 14.91632897603486, 8.076507818930043, 8.636260711692085, 8.614787654320988, 15.26890339506173, 8.449332055192448, 9.856158532695375, 11.60405328135153, 13.340326967592594), # 111 (13.14535615196517, 11.055150829682729, 12.96456160836763, 15.246316418411165, 14.888743847333174, 8.05870833714373, 8.595387611285942, 8.588063465935072, 15.239558287608595, 8.416461761747223, 9.818523061019553, 11.568014391259355, 13.313394311556928), # 112 (13.104705913184263, 10.995038066300333, 12.935464959552897, 15.203767435488858, 14.861245952243188, 8.04141767690032, 8.554736349119478, 8.562193596292849, 15.21059793576207, 8.383626631257822, 9.781693468614014, 11.5320701111062, 13.286621461180511), # 113 (13.064073257060091, 10.935956056935751, 12.906663945030267, 15.161705189788272, 14.833550696392859, 8.024596451941862, 8.514825491774811, 8.537495763307168, 15.182466649998286, 8.351441235077896, 9.745742071958476, 11.496677040958165, 13.25978557982405), # 114 (13.023338864205595, 10.877926078156266, 12.878175705790246, 15.120118307254492, 14.805570749044042, 8.008200917498272, 8.475683510268187, 8.513963715990194, 15.155174970136306, 8.319955459183308, 9.710616315997932, 11.461852615582393, 13.232809284324528), # 115 (12.982451822532688, 10.820863593808383, 12.849945065977423, 15.078932610372966, 14.777263936937292, 7.992192428201937, 8.43724674453905, 8.491532438058591, 15.128653874918964, 8.289110701829367, 9.676248303780074, 11.427532476482286, 13.205650163658248), # 116 (12.941361219953283, 10.76468406773861, 12.82191684973638, 15.038073921629142, 14.748588086813156, 7.976532338685248, 8.399451534526854, 8.47013691322902, 15.102834343089086, 8.258848361271381, 9.642570138352598, 11.39365226516125, 13.178265806801516), # 117 (12.900016144379297, 10.709302963793455, 12.794035881211714, 14.997468063508467, 14.71950102541218, 7.9611820035805945, 8.362234220171041, 8.449712125218136, 15.07764735338951, 8.229109835764664, 9.609513922763194, 11.36014762312269, 13.150613802730636), # 118 (12.858365683722639, 10.654635745819421, 12.766246984548014, 14.95704085849639, 14.689960579474912, 7.946102777520366, 8.325531141411059, 8.430193057742605, 15.053023884563062, 8.199836523564521, 9.577011760059559, 11.326954191870009, 13.122651740421906), # 119 (12.816358925895228, 10.600597877663022, 12.738494983889867, 14.916718129078353, 14.659924575741897, 7.931256015136952, 8.289278638186355, 8.41151469451908, 15.028894915352582, 8.170969822926269, 9.544995753289383, 11.294007612906617, 13.094337208851638), # 120 (12.773944958808976, 10.547104823170763, 12.710724703381864, 14.876425697739808, 14.629350840953688, 7.9166030710627435, 8.253413050436373, 8.39361201926423, 15.0051914245009, 8.142451132105215, 9.513398005500363, 11.261243527735912, 13.065627796996127), # 121 (12.731072870375797, 10.494072046189146, 12.682880967168597, 14.836089386966199, 14.598197201850828, 7.902105299930128, 8.217870718100565, 8.376420015694709, 14.981844390750846, 8.11422184935667, 9.482150619740192, 11.228597577861303, 13.036481093831679), # 122 (12.687691748507607, 10.441415010564684, 12.65490859939465, 14.795635019242972, 14.56642148517387, 7.887724056371495, 8.182587981118376, 8.359873667527177, 14.958784792845258, 8.086223372935942, 9.451185699056563, 11.19600540478619, 13.0068546883346), # 123 (12.643750681116316, 10.389049180143882, 12.62675242420462, 14.754988417055582, 14.533981517663353, 7.873420695019235, 8.147501179429248, 8.343907958478297, 14.935943609526962, 8.058397101098347, 9.420435346497168, 11.163402650013985, 12.976706169481197), # 124 (12.599198756113843, 10.33689001877325, 12.598357265743093, 14.714075402889465, 14.500835126059833, 7.859156570505739, 8.112546652972636, 8.328457872264728, 14.913251819538791, 8.030684432099187, 9.389831665109703, 11.130724955048088, 12.94599312624776), # 125 (12.553985061412101, 10.284852990299292, 12.56966794815466, 14.672821799230077, 14.466940137103851, 7.844893037463395, 8.077660741687978, 8.31345839260313, 14.890640401623585, 8.00302676419378, 9.359306757941859, 11.097907961391908, 12.91467314761061), # 126 (12.508058684923006, 10.232853558568515, 12.540629295583907, 14.63115342856286, 14.432254377535958, 7.830591450524592, 8.042779785514732, 8.298844503210164, 14.86804033452417, 7.975365495637434, 9.32879272804133, 11.064887310548842, 12.88270382254604), # 127 (12.461368714558466, 10.18080718742743, 12.51118613217543, 14.588996113373266, 14.396735674096707, 7.816213164321722, 8.007840124392336, 8.284551187802489, 14.845382596983379, 7.947642024685458, 9.298221678455814, 11.031598644022305, 12.850042740030352), # 128 (12.413864238230394, 10.128629340722538, 12.481283282073816, 14.546275676146736, 14.360341853526638, 7.801719533487173, 7.972778098260239, 8.270513430096765, 14.822598167744045, 7.919797749593164, 9.267525712233, 10.997977603315691, 12.816647489039854), # 129 (12.365494343850713, 10.076235482300353, 12.450865569423652, 14.502917939368722, 14.3230307425663, 7.7870719126533325, 7.937530047057888, 8.256666213809652, 14.799618025549002, 7.89177406861586, 9.236636932420582, 10.963959829932413, 12.78247565855085), # 130 (12.316208119331334, 10.023541076007378, 12.419877818369534, 14.458848725524668, 14.284760167956243, 7.772231656452593, 7.902032310724733, 8.24294452265781, 14.776373149141081, 7.86351238000886, 9.205487442066255, 10.929480965375875, 12.747484837539638), # 131 (12.265954652584163, 9.970461585690122, 12.388264853056045, 14.413993857100023, 14.245487956437017, 7.757160119517344, 7.8662212292002165, 8.229283340357902, 14.752794517263117, 7.834954082027471, 9.17400934421771, 10.894476651149478, 12.711632614982527), # 132 (12.21468303152113, 9.91691247519509, 12.355971497627777, 14.368279156580234, 14.205171934749162, 7.741818656479974, 7.830033142423786, 8.215617650626585, 14.728813108657938, 7.806040572927006, 9.142134741922645, 10.85888252875663, 12.674876579855821), # 133 (12.162342344054133, 9.862809208368793, 12.322942576229327, 14.321630446450746, 14.163769929633231, 7.726168621972872, 7.79340439033489, 8.201882437180522, 14.704359902068381, 7.776713250962773, 9.109795738228751, 10.822634239700733, 12.637174321135817), # 134 (12.108881678095097, 9.808067249057736, 12.289122913005274, 14.273973549197011, 14.12123976782977, 7.710171370628429, 7.756271312872975, 8.18801268373637, 14.679365876237274, 7.746913514390087, 9.07692443618372, 10.785667425485194, 12.59848342779883), # 135 (12.05425012155593, 9.752602061108423, 12.254457332100213, 14.225234287304469, 14.077539276079325, 7.693788257079036, 7.718570249977489, 8.173943374010788, 14.65376200990745, 7.716582761464252, 9.043452938835248, 10.747917727613418, 12.558761488821151), # 136 (11.998396762348548, 9.696329108367367, 12.218890657658735, 14.175338483258576, 14.032626281122448, 7.6769806359570785, 7.6802375415878785, 8.159609491720442, 14.627479281821747, 7.685662390440583, 9.009313349231029, 10.709320787588808, 12.517966093179089), # 137 (11.941270688384867, 9.639163854681073, 12.182367713825425, 14.12421195954477, 13.986458609699687, 7.6597098618949495, 7.6412095276435865, 8.144946020581987, 14.600448670722995, 7.654093799574386, 8.974437770418753, 10.66981224691477, 12.476054829848946), # 138 (11.882820987576796, 9.581021763896047, 12.144833324744877, 14.071780538648504, 13.938994088551583, 7.641937289525037, 7.601422548084064, 8.129887944312085, 14.572601155354022, 7.621818387120976, 8.938758305446116, 10.62932774709471, 12.432985287807028), # 139 (11.822996747836257, 9.521818299858795, 12.106232314561684, 14.017970043055223, 13.890190544418692, 7.623624273479732, 7.560812942848756, 8.114370246627395, 14.543867714457667, 7.588777551335661, 8.902207057360812, 10.58780292963203, 12.38871505602964), # 140 (11.761747057075162, 9.46146892641583, 12.066509507420426, 13.962706295250376, 13.840005804041555, 7.604732168391422, 7.519317051877113, 8.09832791124458, 14.514179326776754, 7.554912690473753, 8.864716129210535, 10.545173436030137, 12.34320172349308), # 141 (11.69902100320542, 9.399889107413653, 12.0256097274657, 13.90591511771941, 13.788397694160723, 7.585222328892499, 7.476871215108577, 8.081695921880296, 14.48346697105412, 7.52016520279056, 8.826217624042977, 10.501374907792433, 12.296402879173653), # 142 (11.634767674138946, 9.336994306698774, 11.983477798842097, 13.847522332947767, 13.735324041516742, 7.56505610961535, 7.4334117724825965, 8.064409262251205, 14.451661626032607, 7.484476486541395, 8.786643644905832, 10.456342986422326, 12.248276112047666), # 143 (11.56893615778766, 9.2726999881177, 11.9400585456942, 13.787453763420901, 13.680742672850162, 7.544194865192366, 7.3888750639386185, 8.04640291607397, 14.418694270455035, 7.4477879399815645, 8.745926294846791, 10.41001331342322, 12.198779011091421), # 144 (11.501475542063469, 9.20692161551694, 11.895296792166606, 13.725635231624254, 13.624611414901528, 7.5225999502559375, 7.343197429416091, 8.027611867065247, 14.384495883064238, 7.410040961366383, 8.703997676913554, 10.36232153029852, 12.14786916528122), # 145 (11.432334914878291, 9.139574652742999, 11.849137362403903, 13.661992560043277, 13.566888094411391, 7.500232719438453, 7.2963152088544625, 8.007971098941699, 14.34899744260305, 7.37117694895116, 8.660789894153808, 10.313203278551628, 12.095504163593366), # 146 (11.361463364144042, 9.070574563642383, 11.801525080550675, 13.596451571163414, 13.507530538120294, 7.477054527372301, 7.2481647421931745, 7.987415595419982, 14.312129927814308, 7.331137300991204, 8.616235049615252, 10.262594199685955, 12.041641595004167), # 147 (11.288809977772631, 8.999836812061604, 11.752404770751518, 13.528938087470117, 13.446496572768787, 7.453026728689875, 7.198682369371678, 7.965880340216761, 14.273824317440841, 7.289863415741826, 8.570265246345576, 10.210429935204898, 11.986239048489919), # 148 (11.214323843675977, 8.927276861847163, 11.701721257151021, 13.459377931448826, 13.38374402509742, 7.42811067802356, 7.147804430329418, 7.943300317048694, 14.234011590225474, 7.247296691458339, 8.522812587392474, 10.156646126611868, 11.929254113026934), # 149 (11.137954049765991, 8.852810176845571, 11.649419363893772, 13.387696925584994, 13.319230721846738, 7.402267730005749, 7.0954672650058415, 7.91961050963244, 14.192622724911054, 7.2033785263960475, 8.473809175803641, 10.101178415410269, 11.870644377591507), # 150 (11.059649683954586, 8.776352220903336, 11.59544391512436, 13.313820892364063, 13.252914489757288, 7.375459239268828, 7.041607213340397, 7.8947459016846615, 14.149588700240406, 7.15805031881027, 8.423187114626767, 10.043962443103501, 11.810367431159946), # 151 (10.979359834153682, 8.697818457866962, 11.539739734987382, 13.237675654271488, 13.184753155569618, 7.34764656044519, 6.986160615272531, 7.8686414769220185, 14.10484049495636, 7.11125346695631, 8.37087850690955, 9.984933851194974, 11.748380862708558), # 152 (10.897033588275185, 8.61712435158296, 11.482251647627416, 13.159187033792707, 13.11470454602428, 7.318791048167222, 6.929063810741687, 7.841232219061167, 14.058309087801755, 7.062929369089481, 8.316815455699683, 9.92402828118809, 11.68464226121364), # 153 (10.81262003423102, 8.534185365897834, 11.422924477189063, 13.078280853413174, 13.042726487861813, 7.288854057067317, 6.87025313968732, 7.8124531118187726, 14.009925457519413, 7.013019423465095, 8.260930064044857, 9.861181374586256, 11.6191092156515), # 154 (10.72606825993309, 8.448916964658093, 11.361703047816906, 12.99488293561833, 12.968776807822776, 7.257796941777861, 6.809664942048866, 7.782239138911491, 13.95962058285218, 6.9614650283384565, 8.203154434992767, 9.796328772892876, 11.551739314998438), # 155 (10.637327353293314, 8.361234611710243, 11.298532183655539, 12.908919102893627, 12.892813332647707, 7.225581056931246, 6.74723555776578, 7.750525284055986, 13.907325442542877, 6.9082075819648825, 8.143420671591107, 9.729406117611353, 11.48249014823076), # 156 (10.546346402223609, 8.271053770900794, 11.233356708849547, 12.820315177724513, 12.81479388907716, 7.19216775715986, 6.6829013267775075, 7.717246530968915, 13.852971015334345, 6.853188482599679, 8.08166087688757, 9.660349050245092, 11.411319304324769), # 157 (10.450553324967336, 8.176634369081162, 11.163028735463298, 12.725677414311741, 12.731153548219398, 7.155434266843955, 6.615149409299001, 7.680115733289122, 13.792326928238738, 6.794712282807602, 8.01583405355452, 9.586639389872076, 11.335080203181485), # 158 (10.335201473769764, 8.06829144743927, 11.069432945764184, 12.605568022303835, 12.62126783369428, 7.103165507209945, 6.535497868740003, 7.626098945870136, 13.700998165711002, 6.723193391738244, 7.934383709866593, 9.493907533156353, 11.235598705688274), # 159 (10.198820932866035, 7.945135419957, 10.950689341138245, 12.458008514572404, 12.482988183885514, 7.034077814466758, 6.443141247737298, 7.553838865338286, 13.576395318120113, 6.637687912608051, 7.8361633120533565, 9.380702728442985, 11.110988852451014), # 160 (10.042510876420344, 7.8079692153126565, 10.808065760674433, 12.28440150525942, 12.317750373994958, 6.94900813819844, 6.338754024409627, 7.464240746353693, 13.420161673798626, 6.5389214704393135, 7.7220383164395905, 9.248074456470599, 10.962523662746737), # 161 (9.8673704785969, 7.657595762184535, 10.642830043461695, 12.086149608506858, 12.126990179224487, 6.848793427989039, 6.223010676875733, 7.358209843576484, 13.233940521079093, 6.427619690254325, 7.592874179350069, 9.09707219797781, 10.791476155852466), # 162 (9.674498913559898, 7.494817989250934, 10.456250028588983, 11.864655438456708, 11.912143374775964, 6.734270633422602, 6.096585683254362, 7.2366514116667755, 13.019375148294069, 6.304508197075376, 7.449536357109572, 8.928745433703247, 10.599119351045232), # 163 (9.464995355473539, 7.320438825190149, 10.249593555145248, 11.621321609250947, 11.674645735851264, 6.606276704083181, 5.960153521664253, 7.100470705284697, 12.778108843776113, 6.170312615924756, 7.292890306042875, 8.744143644385526, 10.386726267602059), # 164 (9.239958978502024, 7.135261198680485, 10.024128462219437, 11.357550735031554, 11.415933037652254, 6.465648589554821, 5.814388670224151, 6.950572979090365, 12.511784895857772, 6.02575857182476, 7.123801482474756, 8.544316310763268, 10.155569924799979), # 165 (9.000488956809557, 6.940088038400237, 9.7811225889005, 11.074745429940503, 11.137441055380801, 6.313223239421572, 5.659965607052801, 6.787863487743908, 12.222046592871603, 5.871571689797677, 6.943135342729992, 8.330312913575103, 9.906923341916015), # 166 (8.747684464560333, 6.735722273027703, 9.521843774277388, 10.774308308119782, 10.840605564238773, 6.149837603267482, 5.497558810268945, 6.613247485905448, 11.91053722315016, 5.7084775948658, 6.751757343133359, 8.103182933559642, 9.642059538227196), # 167 (8.482644675918554, 6.52296683124118, 9.247559857439049, 10.457641983711365, 10.526862339428039, 5.9763286306765995, 5.327842757991326, 6.427630228235103, 11.578900075025999, 5.5372019120514215, 6.550532940009634, 7.863975851455517, 9.362251533010546), # 168 (8.206468765048422, 6.302624641718972, 8.959538677474432, 10.126149070857236, 10.197647156150468, 5.793533271232973, 5.151491928338689, 6.231916969393004, 11.228778436831673, 5.358470266376831, 6.3403275896835956, 7.613741148001342, 9.0687723455431), # 169 (7.9202559061141375, 6.0754986331393726, 8.659048073472489, 9.781232183699368, 9.854395789607928, 5.60228847452065, 4.9691807994297745, 6.027012964039266, 10.861815596899735, 5.173008282864322, 6.122006748480023, 7.353528303935743, 8.762894995101878), # 170 (7.6251052732799005, 5.842391734180682, 8.34735588452217, 9.424293936379751, 9.498544015002288, 5.403431190123678, 4.781583849383328, 5.813823466834017, 10.47965484356274, 4.981541586536184, 5.896435872723688, 7.0843867999973416, 8.445892500963913), # 171 (7.322116040709912, 5.604106873521197, 8.025729949712423, 9.056736943040356, 9.131527607535416, 5.197798367626108, 4.5893755563180925, 5.593253732437379, 10.083939465153241, 4.784795802414712, 5.664480418739371, 6.80736611692476, 8.119037882406225), # 172 (7.012387382568372, 5.3614469798392195, 7.695438108132197, 8.679963817823166, 8.754782342409182, 4.9862269566119855, 4.39323039835281, 5.366209015509473, 9.676312750003792, 4.583496555522195, 5.427005842851849, 6.523515735456615, 7.783604158705848), # 173 (6.697018473019482, 5.115214981813045, 7.357748198870443, 8.295377174870158, 8.369743994825454, 4.76955390666536, 4.193822853606226, 5.133594570710425, 9.25841798644695, 4.3783694708809255, 5.1848776013858995, 6.233885136331535, 7.440864349139807), # 174 (6.377108486227438, 4.866213808120973, 7.013928061016112, 7.904379628323315, 7.977848339986097, 4.54861616737028, 3.9918274001970815, 4.896315652700355, 8.831898462815268, 4.170140173513194, 4.938961150666297, 5.939523800288141, 7.092091472985131), # 175 (6.053756596356447, 4.615246387441302, 6.66524553365815, 7.508373792324615, 7.580531153092983, 4.324250688310793, 3.787918516244121, 4.655277516139389, 8.3983974674413, 3.959534288441294, 4.690121947017822, 5.641481208065051, 6.738558549518844), # 176 (5.7280619775707065, 4.363115648452332, 6.3129684558855095, 7.108762281016037, 7.179228209347984, 4.097294419070949, 3.582770679866088, 4.411385415687646, 7.959558288657599, 3.7472774406875144, 4.43922544676525, 5.340806840400891, 6.381538598017975), # 177 (5.401123804034416, 4.11062451983236, 5.95836466678714, 6.7069477085395635, 6.775375283952959, 3.8685843092347962, 3.3770583691817246, 4.165544606005252, 7.51702421479672, 3.5340952552741505, 4.187137106233358, 5.038550178034279, 6.022304637759553), # 178 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179 ) passenger_arriving_acc = ( (11, 6, 8, 11, 5, 4, 6, 5, 2, 1, 1, 1, 0, 8, 2, 7, 3, 8, 6, 6, 2, 3, 2, 2, 2, 0), # 0 (16, 10, 12, 18, 7, 7, 11, 9, 3, 3, 2, 2, 0, 12, 6, 13, 6, 15, 10, 9, 3, 9, 5, 5, 2, 0), # 1 (25, 18, 18, 21, 12, 11, 13, 12, 6, 6, 2, 3, 0, 19, 15, 18, 11, 18, 13, 12, 4, 13, 9, 7, 2, 0), # 2 (39, 25, 27, 32, 19, 15, 18, 17, 9, 9, 4, 3, 0, 23, 21, 25, 16, 27, 23, 17, 6, 19, 10, 8, 2, 0), # 3 (48, 37, 33, 43, 23, 18, 23, 18, 12, 9, 4, 6, 0, 30, 25, 33, 25, 37, 27, 20, 12, 23, 12, 10, 2, 0), # 4 (59, 45, 41, 52, 29, 19, 28, 24, 16, 11, 5, 8, 0, 35, 35, 38, 33, 46, 28, 21, 13, 27, 16, 12, 2, 0), # 5 (70, 59, 49, 57, 42, 21, 31, 27, 21, 11, 6, 9, 0, 41, 42, 46, 39, 57, 35, 31, 14, 36, 20, 12, 3, 0), # 6 (77, 71, 54, 70, 47, 26, 32, 31, 26, 11, 8, 10, 0, 53, 47, 56, 44, 65, 41, 36, 16, 40, 21, 13, 3, 0), # 7 (91, 86, 60, 82, 54, 28, 35, 36, 33, 13, 9, 10, 0, 77, 53, 60, 50, 69, 44, 42, 18, 44, 22, 14, 4, 0), # 8 (108, 95, 65, 90, 59, 32, 40, 42, 42, 14, 11, 10, 0, 85, 63, 63, 58, 78, 49, 46, 23, 47, 25, 15, 6, 0), # 9 (120, 104, 72, 103, 65, 37, 45, 45, 47, 15, 11, 10, 0, 93, 78, 69, 62, 89, 55, 48, 29, 48, 29, 18, 8, 0), # 10 (137, 124, 83, 118, 70, 41, 52, 49, 49, 15, 11, 10, 0, 99, 85, 79, 75, 100, 56, 57, 33, 53, 31, 20, 8, 0), # 11 (145, 138, 92, 124, 79, 46, 57, 51, 51, 16, 13, 11, 0, 109, 89, 90, 83, 113, 65, 61, 35, 57, 34, 23, 8, 0), # 12 (152, 148, 104, 129, 89, 52, 59, 55, 60, 17, 14, 11, 0, 122, 101, 95, 94, 127, 73, 72, 39, 62, 36, 25, 9, 0), # 13 (161, 158, 113, 140, 94, 54, 63, 57, 63, 20, 17, 12, 0, 140, 108, 104, 100, 139, 75, 76, 41, 68, 39, 29, 10, 0), # 14 (172, 172, 123, 147, 108, 58, 67, 62, 69, 23, 17, 16, 0, 157, 119, 119, 106, 151, 85, 82, 50, 72, 45, 30, 11, 0), # 15 (186, 186, 127, 154, 118, 63, 73, 70, 72, 24, 18, 17, 0, 162, 134, 129, 113, 160, 96, 92, 53, 78, 47, 34, 11, 0), # 16 (196, 194, 139, 165, 121, 66, 79, 75, 81, 27, 20, 17, 0, 174, 145, 142, 124, 168, 101, 94, 54, 86, 51, 36, 12, 0), # 17 (206, 206, 152, 172, 129, 69, 87, 80, 94, 32, 25, 19, 0, 189, 156, 155, 131, 176, 112, 101, 56, 88, 52, 38, 13, 0), # 18 (216, 219, 171, 187, 130, 76, 93, 89, 100, 34, 27, 19, 0, 207, 162, 167, 140, 183, 125, 109, 58, 91, 58, 40, 15, 0), # 19 (229, 232, 181, 197, 143, 80, 97, 94, 108, 38, 30, 20, 0, 221, 170, 170, 147, 192, 135, 115, 60, 98, 65, 42, 16, 0), # 20 (241, 247, 195, 206, 152, 83, 106, 98, 114, 43, 31, 20, 0, 230, 188, 181, 156, 203, 145, 122, 61, 102, 70, 45, 18, 0), # 21 (258, 257, 204, 217, 155, 88, 117, 101, 122, 44, 35, 23, 0, 242, 198, 194, 162, 212, 156, 129, 67, 106, 77, 46, 20, 0), # 22 (269, 267, 211, 230, 160, 90, 119, 108, 129, 46, 40, 24, 0, 254, 213, 204, 171, 219, 161, 132, 72, 112, 82, 49, 20, 0), # 23 (281, 279, 226, 243, 165, 96, 124, 115, 134, 47, 43, 24, 0, 268, 226, 214, 178, 227, 166, 137, 74, 118, 85, 50, 21, 0), # 24 (300, 288, 233, 260, 173, 97, 133, 120, 140, 48, 45, 25, 0, 280, 238, 223, 188, 234, 179, 145, 76, 121, 87, 53, 21, 0), # 25 (319, 303, 239, 273, 178, 101, 135, 127, 145, 50, 47, 25, 0, 291, 254, 238, 194, 246, 187, 151, 80, 130, 93, 56, 21, 0), # 26 (337, 318, 254, 283, 191, 108, 136, 133, 149, 54, 49, 26, 0, 300, 271, 248, 201, 263, 196, 153, 84, 133, 95, 58, 22, 0), # 27 (356, 334, 266, 298, 198, 113, 148, 138, 158, 56, 50, 27, 0, 315, 278, 258, 209, 277, 203, 160, 87, 136, 101, 62, 25, 0), # 28 (374, 347, 278, 311, 209, 118, 157, 143, 161, 57, 52, 27, 0, 333, 292, 272, 216, 289, 214, 167, 90, 140, 104, 65, 25, 0), # 29 (388, 357, 290, 322, 217, 123, 160, 149, 168, 61, 55, 28, 0, 356, 301, 279, 227, 301, 227, 172, 92, 145, 107, 67, 26, 0), # 30 (399, 379, 307, 336, 225, 129, 163, 151, 173, 65, 58, 28, 0, 374, 314, 293, 234, 315, 231, 181, 95, 153, 109, 69, 27, 0), # 31 (408, 387, 316, 351, 233, 134, 171, 153, 177, 67, 59, 28, 0, 390, 325, 304, 245, 324, 238, 185, 99, 156, 112, 76, 28, 0), # 32 (419, 402, 323, 366, 243, 141, 177, 156, 183, 71, 61, 28, 0, 398, 338, 318, 249, 335, 249, 193, 99, 163, 119, 79, 30, 0), # 33 (435, 413, 335, 390, 256, 148, 180, 162, 187, 73, 66, 32, 0, 415, 350, 327, 260, 347, 253, 201, 104, 168, 127, 83, 32, 0), # 34 (447, 433, 345, 404, 269, 152, 185, 171, 191, 74, 67, 32, 0, 436, 364, 337, 268, 361, 261, 205, 108, 177, 129, 84, 33, 0), # 35 (463, 446, 357, 423, 278, 160, 199, 177, 194, 77, 73, 33, 0, 448, 376, 343, 278, 372, 264, 211, 115, 183, 134, 89, 34, 0), # 36 (478, 461, 368, 436, 294, 162, 206, 182, 198, 80, 74, 36, 0, 459, 394, 352, 289, 382, 275, 215, 117, 188, 137, 91, 35, 0), # 37 (490, 467, 383, 456, 304, 169, 211, 185, 204, 82, 76, 40, 0, 474, 404, 357, 297, 394, 279, 220, 121, 195, 145, 93, 36, 0), # 38 (508, 483, 406, 475, 315, 176, 223, 192, 211, 85, 77, 41, 0, 495, 419, 366, 304, 405, 285, 224, 123, 201, 149, 96, 39, 0), # 39 (522, 494, 416, 491, 331, 179, 230, 197, 215, 89, 79, 42, 0, 513, 426, 377, 314, 412, 291, 230, 124, 205, 157, 98, 43, 0), # 40 (535, 511, 429, 504, 337, 184, 238, 202, 219, 94, 81, 42, 0, 526, 438, 387, 322, 423, 296, 235, 126, 210, 162, 99, 45, 0), # 41 (559, 524, 434, 515, 348, 187, 244, 208, 223, 96, 85, 45, 0, 537, 458, 407, 326, 436, 304, 243, 131, 217, 163, 100, 45, 0), # 42 (570, 537, 442, 526, 359, 194, 250, 215, 228, 100, 87, 47, 0, 557, 465, 414, 333, 447, 310, 248, 132, 224, 169, 104, 45, 0), # 43 (583, 551, 453, 539, 368, 196, 255, 221, 232, 102, 88, 48, 0, 575, 475, 424, 340, 458, 315, 250, 135, 229, 170, 106, 46, 0), # 44 (594, 563, 463, 547, 380, 200, 262, 223, 240, 105, 91, 49, 0, 593, 488, 432, 346, 466, 326, 253, 136, 233, 173, 107, 47, 0), # 45 (609, 574, 474, 561, 388, 205, 263, 229, 244, 107, 93, 51, 0, 605, 503, 440, 358, 478, 336, 259, 141, 235, 177, 111, 49, 0), # 46 (621, 586, 485, 573, 401, 210, 268, 232, 252, 108, 94, 52, 0, 618, 523, 449, 361, 487, 344, 264, 146, 237, 182, 112, 50, 0), # 47 (635, 601, 500, 583, 414, 216, 274, 238, 255, 108, 96, 54, 0, 629, 533, 460, 372, 502, 352, 273, 149, 247, 187, 115, 51, 0), # 48 (652, 614, 513, 595, 424, 220, 276, 246, 261, 112, 96, 54, 0, 642, 542, 470, 375, 515, 360, 280, 150, 255, 190, 117, 52, 0), # 49 (667, 636, 531, 603, 428, 224, 278, 257, 266, 113, 102, 54, 0, 657, 556, 481, 385, 526, 367, 285, 163, 261, 195, 117, 53, 0), # 50 (675, 652, 539, 612, 440, 229, 281, 261, 274, 114, 102, 55, 0, 678, 565, 493, 392, 535, 370, 289, 168, 264, 197, 118, 53, 0), # 51 (689, 670, 551, 623, 452, 233, 289, 265, 278, 118, 104, 56, 0, 688, 578, 511, 403, 546, 378, 291, 173, 268, 202, 119, 57, 0), # 52 (698, 681, 565, 636, 459, 241, 296, 269, 284, 120, 107, 56, 0, 700, 592, 520, 409, 561, 386, 302, 179, 270, 205, 124, 57, 0), # 53 (713, 687, 577, 648, 467, 244, 300, 273, 292, 123, 109, 57, 0, 711, 607, 529, 416, 575, 394, 309, 180, 280, 210, 126, 58, 0), # 54 (731, 701, 588, 668, 484, 247, 305, 277, 296, 123, 112, 57, 0, 720, 621, 540, 420, 585, 402, 317, 182, 285, 211, 128, 59, 0), # 55 (747, 714, 601, 688, 497, 252, 314, 287, 301, 125, 115, 57, 0, 733, 633, 544, 427, 599, 408, 320, 184, 292, 213, 132, 60, 0), # 56 (760, 728, 614, 702, 510, 256, 320, 294, 308, 128, 117, 58, 0, 747, 657, 554, 431, 616, 413, 324, 189, 294, 222, 136, 61, 0), # 57 (775, 743, 622, 712, 522, 261, 323, 299, 316, 129, 120, 60, 0, 761, 673, 563, 438, 625, 418, 329, 194, 298, 226, 137, 62, 0), # 58 (791, 753, 642, 721, 535, 263, 325, 304, 319, 132, 124, 62, 0, 771, 684, 568, 441, 636, 420, 334, 198, 305, 229, 138, 63, 0), # 59 (806, 767, 655, 732, 544, 269, 332, 307, 323, 136, 125, 63, 0, 787, 695, 582, 445, 650, 423, 342, 202, 311, 230, 141, 64, 0), # 60 (824, 778, 672, 743, 549, 274, 337, 310, 328, 136, 127, 65, 0, 802, 700, 594, 455, 657, 433, 352, 207, 315, 238, 143, 64, 0), # 61 (840, 797, 684, 756, 563, 275, 343, 315, 334, 137, 128, 66, 0, 820, 706, 602, 466, 660, 439, 357, 210, 322, 243, 144, 64, 0), # 62 (850, 810, 707, 770, 571, 279, 351, 317, 339, 142, 130, 66, 0, 836, 718, 609, 475, 671, 445, 365, 216, 328, 249, 146, 64, 0), # 63 (865, 825, 721, 786, 580, 285, 354, 319, 343, 146, 130, 66, 0, 853, 728, 620, 486, 681, 450, 368, 218, 335, 253, 146, 65, 0), # 64 (887, 835, 736, 795, 591, 289, 358, 325, 350, 148, 130, 66, 0, 868, 739, 625, 497, 689, 459, 371, 227, 343, 255, 147, 66, 0), # 65 (898, 859, 747, 810, 599, 292, 366, 327, 353, 152, 132, 70, 0, 884, 750, 633, 506, 701, 462, 376, 233, 350, 259, 147, 67, 0), # 66 (909, 870, 757, 819, 608, 295, 370, 329, 357, 154, 136, 74, 0, 898, 758, 642, 513, 715, 465, 380, 236, 356, 264, 155, 68, 0), # 67 (927, 885, 765, 828, 614, 302, 379, 331, 359, 155, 140, 75, 0, 908, 770, 651, 524, 729, 467, 386, 238, 362, 268, 157, 69, 0), # 68 (945, 895, 778, 832, 619, 310, 383, 338, 359, 155, 140, 76, 0, 918, 779, 660, 529, 737, 473, 389, 243, 371, 274, 160, 70, 0), # 69 (964, 911, 792, 842, 624, 317, 388, 342, 367, 159, 141, 77, 0, 933, 790, 666, 534, 747, 480, 392, 245, 379, 278, 160, 71, 0), # 70 (976, 927, 809, 857, 635, 319, 398, 345, 369, 160, 142, 77, 0, 941, 805, 677, 543, 754, 485, 396, 246, 385, 280, 162, 73, 0), # 71 (997, 941, 823, 867, 643, 323, 404, 350, 375, 161, 143, 78, 0, 953, 816, 693, 552, 762, 492, 399, 248, 390, 283, 163, 73, 0), # 72 (1011, 946, 838, 876, 652, 327, 409, 354, 380, 162, 144, 79, 0, 971, 829, 700, 562, 777, 499, 403, 252, 394, 286, 167, 74, 0), # 73 (1021, 958, 853, 882, 659, 337, 415, 359, 386, 164, 146, 83, 0, 992, 841, 708, 572, 785, 504, 408, 256, 400, 290, 170, 76, 0), # 74 (1040, 972, 861, 894, 672, 341, 420, 363, 391, 167, 147, 85, 0, 1003, 858, 721, 582, 797, 507, 416, 259, 407, 296, 172, 76, 0), # 75 (1051, 987, 872, 900, 689, 344, 426, 369, 397, 170, 149, 85, 0, 1017, 870, 728, 585, 805, 512, 418, 263, 409, 301, 174, 76, 0), # 76 (1065, 993, 885, 919, 704, 352, 429, 372, 399, 172, 149, 85, 0, 1033, 881, 734, 596, 815, 515, 420, 266, 413, 307, 178, 76, 0), # 77 (1078, 1003, 897, 935, 712, 356, 433, 376, 406, 172, 151, 85, 0, 1046, 890, 746, 604, 828, 520, 424, 269, 424, 312, 179, 78, 0), # 78 (1087, 1015, 916, 947, 721, 359, 440, 382, 414, 174, 156, 85, 0, 1060, 901, 752, 608, 836, 526, 431, 274, 429, 319, 181, 79, 0), # 79 (1096, 1025, 927, 960, 729, 363, 443, 386, 424, 178, 157, 86, 0, 1072, 913, 759, 615, 847, 531, 435, 274, 438, 321, 182, 83, 0), # 80 (1108, 1036, 939, 970, 735, 367, 450, 388, 433, 180, 158, 86, 0, 1085, 923, 775, 618, 856, 538, 446, 277, 442, 326, 184, 86, 0), # 81 (1122, 1045, 951, 981, 744, 370, 456, 391, 437, 183, 158, 86, 0, 1104, 935, 785, 622, 865, 544, 449, 279, 451, 328, 187, 87, 0), # 82 (1142, 1053, 962, 990, 750, 378, 458, 398, 444, 184, 161, 88, 0, 1117, 949, 794, 630, 883, 551, 456, 282, 455, 332, 192, 87, 0), # 83 (1155, 1065, 975, 1002, 762, 379, 464, 402, 448, 186, 161, 88, 0, 1129, 962, 800, 640, 892, 561, 463, 284, 459, 338, 194, 87, 0), # 84 (1166, 1081, 989, 1005, 768, 380, 469, 405, 452, 189, 161, 88, 0, 1145, 975, 812, 647, 901, 566, 469, 288, 465, 340, 197, 88, 0), # 85 (1181, 1094, 1001, 1011, 776, 388, 477, 407, 457, 190, 164, 90, 0, 1158, 992, 821, 655, 916, 567, 472, 294, 472, 343, 201, 91, 0), # 86 (1197, 1107, 1019, 1024, 786, 395, 481, 410, 461, 193, 165, 91, 0, 1170, 1002, 832, 664, 922, 571, 476, 300, 476, 344, 203, 92, 0), # 87 (1208, 1113, 1028, 1041, 793, 400, 484, 414, 465, 195, 166, 93, 0, 1186, 1014, 835, 670, 938, 574, 483, 306, 480, 349, 206, 92, 0), # 88 (1229, 1128, 1034, 1055, 801, 402, 492, 415, 468, 198, 169, 93, 0, 1202, 1025, 845, 675, 942, 579, 490, 310, 484, 356, 210, 92, 0), # 89 (1248, 1142, 1045, 1073, 811, 407, 497, 420, 470, 201, 171, 94, 0, 1215, 1035, 857, 678, 953, 585, 498, 312, 489, 361, 214, 95, 0), # 90 (1259, 1156, 1062, 1085, 817, 414, 501, 425, 476, 202, 172, 94, 0, 1225, 1046, 866, 681, 965, 589, 505, 312, 492, 366, 216, 97, 0), # 91 (1275, 1170, 1065, 1101, 833, 418, 502, 426, 479, 204, 176, 94, 0, 1245, 1056, 871, 684, 984, 597, 512, 317, 499, 369, 218, 101, 0), # 92 (1287, 1182, 1080, 1111, 847, 423, 508, 430, 482, 205, 179, 96, 0, 1255, 1064, 879, 688, 1003, 606, 517, 317, 506, 372, 222, 101, 0), # 93 (1301, 1196, 1094, 1126, 857, 429, 514, 433, 492, 212, 181, 97, 0, 1262, 1077, 886, 693, 1008, 609, 522, 321, 515, 375, 223, 102, 0), # 94 (1323, 1208, 1103, 1138, 868, 432, 515, 436, 496, 213, 181, 99, 0, 1280, 1086, 891, 697, 1017, 613, 529, 323, 526, 383, 223, 102, 0), # 95 (1338, 1220, 1112, 1154, 876, 438, 517, 439, 503, 213, 182, 99, 0, 1301, 1095, 899, 703, 1030, 618, 535, 329, 528, 385, 224, 102, 0), # 96 (1348, 1227, 1128, 1167, 888, 441, 524, 442, 508, 214, 182, 100, 0, 1321, 1106, 911, 710, 1041, 625, 542, 337, 540, 390, 226, 104, 0), # 97 (1358, 1239, 1136, 1178, 901, 447, 528, 445, 513, 216, 184, 101, 0, 1333, 1122, 926, 718, 1053, 633, 545, 340, 543, 395, 228, 105, 0), # 98 (1373, 1252, 1149, 1192, 909, 453, 530, 450, 522, 218, 186, 102, 0, 1348, 1131, 939, 722, 1060, 640, 555, 341, 547, 398, 231, 106, 0), # 99 (1386, 1261, 1161, 1203, 916, 461, 535, 452, 531, 219, 188, 102, 0, 1363, 1141, 944, 726, 1076, 645, 559, 345, 552, 400, 234, 107, 0), # 100 (1399, 1271, 1169, 1213, 923, 464, 541, 459, 535, 222, 191, 102, 0, 1377, 1153, 948, 735, 1089, 647, 567, 349, 560, 407, 238, 109, 0), # 101 (1415, 1285, 1180, 1220, 927, 471, 545, 460, 539, 222, 196, 102, 0, 1385, 1163, 958, 739, 1099, 652, 572, 353, 569, 413, 240, 111, 0), # 102 (1432, 1304, 1196, 1237, 935, 479, 552, 464, 543, 225, 196, 102, 0, 1396, 1175, 971, 745, 1105, 658, 574, 356, 576, 416, 241, 111, 0), # 103 (1445, 1309, 1208, 1255, 944, 487, 555, 470, 548, 226, 198, 102, 0, 1407, 1186, 981, 747, 1114, 664, 577, 361, 580, 420, 244, 113, 0), # 104 (1460, 1320, 1218, 1264, 957, 493, 558, 475, 556, 227, 202, 103, 0, 1420, 1196, 990, 755, 1122, 670, 582, 364, 587, 427, 244, 113, 0), # 105 (1473, 1329, 1228, 1271, 961, 495, 562, 483, 561, 230, 202, 105, 0, 1431, 1201, 997, 762, 1138, 673, 586, 368, 590, 432, 248, 113, 0), # 106 (1483, 1340, 1233, 1284, 975, 499, 568, 486, 568, 231, 203, 105, 0, 1440, 1210, 1010, 764, 1146, 678, 591, 371, 594, 438, 249, 113, 0), # 107 (1497, 1356, 1244, 1295, 987, 502, 570, 490, 573, 235, 205, 105, 0, 1455, 1217, 1018, 767, 1157, 679, 593, 377, 600, 442, 252, 113, 0), # 108 (1513, 1374, 1247, 1305, 999, 508, 574, 496, 580, 236, 208, 107, 0, 1471, 1228, 1031, 770, 1167, 687, 598, 382, 606, 450, 253, 116, 0), # 109 (1532, 1386, 1254, 1315, 1006, 510, 583, 499, 584, 238, 209, 107, 0, 1488, 1240, 1034, 774, 1179, 692, 602, 387, 609, 453, 255, 116, 0), # 110 (1550, 1398, 1268, 1323, 1016, 515, 587, 503, 589, 241, 212, 107, 0, 1501, 1251, 1040, 777, 1186, 700, 604, 390, 617, 460, 256, 116, 0), # 111 (1567, 1407, 1280, 1341, 1025, 520, 592, 507, 589, 244, 213, 108, 0, 1510, 1263, 1052, 786, 1198, 705, 607, 395, 621, 467, 258, 116, 0), # 112 (1587, 1414, 1294, 1358, 1038, 524, 597, 509, 591, 248, 217, 110, 0, 1526, 1275, 1059, 794, 1211, 709, 614, 398, 629, 475, 259, 118, 0), # 113 (1599, 1420, 1304, 1372, 1049, 527, 601, 515, 594, 251, 219, 111, 0, 1535, 1281, 1071, 799, 1218, 714, 617, 401, 633, 480, 261, 122, 0), # 114 (1613, 1432, 1315, 1380, 1060, 531, 603, 518, 599, 253, 220, 112, 0, 1548, 1291, 1081, 807, 1233, 721, 625, 406, 639, 483, 261, 122, 0), # 115 (1627, 1440, 1321, 1393, 1074, 537, 607, 521, 601, 255, 220, 112, 0, 1559, 1302, 1087, 813, 1247, 722, 629, 412, 649, 483, 261, 124, 0), # 116 (1646, 1447, 1329, 1404, 1084, 541, 614, 523, 608, 258, 222, 114, 0, 1584, 1315, 1093, 816, 1261, 725, 633, 415, 655, 485, 261, 125, 0), # 117 (1661, 1457, 1344, 1419, 1094, 542, 618, 524, 611, 260, 222, 115, 0, 1599, 1328, 1104, 822, 1268, 729, 635, 421, 662, 494, 262, 125, 0), # 118 (1672, 1467, 1351, 1428, 1107, 547, 620, 527, 613, 267, 223, 115, 0, 1612, 1338, 1111, 829, 1276, 732, 636, 424, 671, 497, 262, 125, 0), # 119 (1681, 1480, 1367, 1440, 1118, 552, 624, 529, 619, 268, 224, 115, 0, 1622, 1349, 1117, 832, 1283, 735, 646, 430, 676, 500, 262, 126, 0), # 120 (1691, 1491, 1380, 1452, 1130, 557, 629, 535, 625, 270, 226, 117, 0, 1635, 1360, 1122, 838, 1296, 742, 654, 435, 679, 501, 265, 126, 0), # 121 (1704, 1501, 1387, 1464, 1140, 560, 632, 541, 629, 275, 229, 118, 0, 1644, 1374, 1130, 844, 1305, 745, 660, 437, 686, 510, 267, 126, 0), # 122 (1716, 1510, 1394, 1480, 1143, 563, 633, 544, 634, 275, 232, 119, 0, 1660, 1385, 1135, 849, 1315, 751, 666, 438, 689, 513, 268, 128, 0), # 123 (1728, 1520, 1414, 1490, 1153, 571, 635, 551, 635, 277, 235, 120, 0, 1671, 1399, 1141, 852, 1327, 752, 671, 443, 697, 517, 268, 129, 0), # 124 (1741, 1530, 1419, 1493, 1164, 571, 639, 553, 638, 280, 236, 121, 0, 1688, 1411, 1151, 860, 1332, 755, 674, 447, 704, 522, 268, 131, 0), # 125 (1751, 1539, 1429, 1503, 1170, 575, 642, 556, 643, 281, 236, 122, 0, 1703, 1421, 1160, 866, 1347, 763, 678, 451, 705, 526, 271, 132, 0), # 126 (1759, 1548, 1434, 1512, 1177, 579, 644, 561, 647, 283, 236, 124, 0, 1717, 1425, 1165, 874, 1358, 767, 687, 460, 711, 531, 274, 135, 0), # 127 (1769, 1560, 1439, 1523, 1191, 585, 647, 564, 654, 287, 237, 125, 0, 1728, 1442, 1174, 887, 1363, 768, 689, 464, 716, 533, 274, 135, 0), # 128 (1788, 1566, 1450, 1530, 1208, 587, 655, 571, 661, 292, 237, 126, 0, 1744, 1453, 1183, 893, 1375, 774, 690, 465, 722, 535, 276, 135, 0), # 129 (1798, 1575, 1459, 1547, 1216, 589, 658, 571, 664, 294, 237, 127, 0, 1755, 1465, 1187, 901, 1388, 778, 693, 471, 722, 541, 280, 135, 0), # 130 (1810, 1582, 1471, 1556, 1223, 591, 665, 575, 672, 297, 240, 128, 0, 1765, 1472, 1196, 910, 1401, 781, 696, 475, 726, 545, 284, 136, 0), # 131 (1824, 1591, 1480, 1569, 1232, 596, 667, 576, 676, 297, 244, 130, 0, 1772, 1485, 1206, 915, 1410, 784, 697, 480, 731, 548, 286, 138, 0), # 132 (1842, 1600, 1490, 1584, 1239, 601, 668, 583, 683, 301, 247, 131, 0, 1781, 1491, 1213, 919, 1422, 787, 705, 483, 734, 554, 287, 138, 0), # 133 (1853, 1610, 1503, 1597, 1245, 606, 672, 588, 689, 302, 247, 132, 0, 1794, 1506, 1214, 928, 1436, 792, 709, 485, 738, 557, 288, 139, 0), # 134 (1863, 1622, 1508, 1608, 1255, 610, 680, 592, 691, 304, 249, 132, 0, 1806, 1518, 1226, 932, 1447, 795, 710, 488, 744, 560, 292, 139, 0), # 135 (1875, 1629, 1518, 1621, 1264, 613, 683, 598, 694, 305, 250, 133, 0, 1821, 1530, 1229, 941, 1463, 799, 715, 489, 748, 561, 292, 139, 0), # 136 (1887, 1632, 1530, 1628, 1273, 619, 685, 601, 702, 305, 254, 133, 0, 1832, 1539, 1241, 947, 1472, 802, 719, 495, 751, 563, 296, 140, 0), # 137 (1898, 1641, 1538, 1638, 1288, 625, 685, 601, 707, 308, 255, 133, 0, 1846, 1548, 1249, 950, 1479, 807, 724, 496, 754, 565, 298, 141, 0), # 138 (1910, 1654, 1552, 1646, 1300, 626, 691, 605, 716, 311, 256, 133, 0, 1861, 1558, 1257, 954, 1495, 814, 730, 496, 755, 567, 301, 141, 0), # 139 (1925, 1667, 1564, 1659, 1318, 627, 696, 606, 722, 313, 257, 133, 0, 1868, 1567, 1261, 963, 1501, 823, 737, 499, 758, 574, 302, 143, 0), # 140 (1930, 1675, 1576, 1668, 1334, 632, 701, 610, 726, 316, 258, 133, 0, 1880, 1572, 1271, 965, 1505, 827, 742, 505, 759, 576, 304, 143, 0), # 141 (1943, 1686, 1587, 1678, 1350, 635, 704, 611, 732, 318, 260, 133, 0, 1890, 1582, 1275, 968, 1512, 829, 745, 509, 764, 583, 306, 143, 0), # 142 (1950, 1694, 1592, 1696, 1358, 642, 708, 614, 733, 321, 264, 135, 0, 1911, 1594, 1281, 973, 1522, 832, 750, 511, 770, 587, 308, 146, 0), # 143 (1959, 1701, 1601, 1706, 1366, 649, 710, 618, 736, 323, 265, 135, 0, 1921, 1605, 1285, 977, 1533, 834, 752, 512, 779, 591, 313, 148, 0), # 144 (1968, 1705, 1607, 1714, 1379, 652, 713, 619, 745, 325, 270, 135, 0, 1933, 1615, 1292, 984, 1546, 845, 755, 514, 786, 594, 314, 149, 0), # 145 (1979, 1717, 1623, 1723, 1389, 654, 717, 624, 750, 329, 273, 138, 0, 1942, 1624, 1299, 989, 1558, 847, 756, 518, 788, 596, 314, 149, 0), # 146 (1988, 1727, 1630, 1734, 1398, 660, 724, 628, 754, 333, 278, 141, 0, 1960, 1630, 1305, 993, 1567, 851, 758, 520, 794, 600, 316, 150, 0), # 147 (2004, 1733, 1645, 1745, 1409, 663, 727, 632, 760, 336, 280, 142, 0, 1972, 1639, 1312, 999, 1582, 857, 762, 523, 799, 602, 318, 151, 0), # 148 (2013, 1738, 1658, 1754, 1415, 667, 728, 635, 765, 339, 283, 143, 0, 1982, 1647, 1326, 1003, 1589, 863, 764, 528, 804, 606, 319, 152, 0), # 149 (2027, 1747, 1671, 1767, 1423, 671, 735, 640, 768, 342, 283, 144, 0, 1988, 1657, 1329, 1008, 1599, 868, 766, 529, 807, 610, 321, 153, 0), # 150 (2038, 1757, 1686, 1776, 1430, 677, 740, 643, 775, 343, 286, 146, 0, 1995, 1665, 1338, 1010, 1606, 873, 769, 532, 808, 613, 324, 154, 0), # 151 (2046, 1773, 1693, 1788, 1440, 681, 744, 648, 777, 345, 286, 146, 0, 2008, 1671, 1350, 1012, 1617, 876, 774, 535, 811, 615, 325, 155, 0), # 152 (2061, 1780, 1704, 1796, 1450, 683, 745, 648, 781, 347, 287, 147, 0, 2022, 1678, 1362, 1019, 1626, 879, 778, 537, 815, 617, 325, 156, 0), # 153 (2079, 1789, 1719, 1809, 1457, 688, 749, 652, 784, 350, 288, 147, 0, 2034, 1689, 1370, 1028, 1639, 887, 784, 538, 818, 617, 330, 158, 0), # 154 (2089, 1791, 1731, 1820, 1468, 693, 753, 654, 789, 351, 288, 147, 0, 2043, 1694, 1383, 1031, 1644, 890, 788, 539, 827, 620, 332, 158, 0), # 155 (2105, 1798, 1740, 1829, 1475, 699, 758, 656, 794, 352, 290, 147, 0, 2061, 1706, 1386, 1033, 1653, 893, 791, 543, 833, 622, 335, 159, 0), # 156 (2112, 1803, 1748, 1838, 1483, 706, 763, 660, 801, 354, 290, 147, 0, 2076, 1717, 1390, 1035, 1665, 897, 794, 547, 838, 625, 338, 160, 0), # 157 (2127, 1809, 1757, 1851, 1492, 714, 763, 662, 804, 358, 290, 149, 0, 2091, 1725, 1395, 1044, 1675, 903, 799, 550, 840, 627, 339, 161, 0), # 158 (2139, 1814, 1767, 1861, 1503, 719, 765, 667, 807, 360, 290, 151, 0, 2101, 1730, 1399, 1047, 1685, 907, 800, 552, 844, 629, 342, 162, 0), # 159 (2145, 1826, 1777, 1863, 1509, 723, 765, 671, 812, 360, 290, 153, 0, 2114, 1735, 1409, 1053, 1692, 914, 803, 553, 851, 630, 344, 163, 0), # 160 (2155, 1832, 1786, 1877, 1517, 723, 770, 672, 814, 361, 293, 155, 0, 2128, 1745, 1414, 1062, 1699, 917, 805, 555, 855, 631, 344, 163, 0), # 161 (2164, 1843, 1798, 1879, 1525, 724, 772, 677, 816, 364, 296, 155, 0, 2140, 1752, 1421, 1064, 1711, 920, 810, 560, 861, 637, 345, 165, 0), # 162 (2173, 1849, 1810, 1891, 1533, 726, 777, 679, 821, 367, 296, 157, 0, 2148, 1758, 1422, 1066, 1719, 925, 816, 560, 865, 640, 345, 165, 0), # 163 (2181, 1857, 1819, 1900, 1543, 731, 781, 682, 827, 369, 296, 157, 0, 2157, 1767, 1429, 1071, 1726, 927, 819, 562, 869, 641, 346, 166, 0), # 164 (2186, 1864, 1829, 1905, 1550, 737, 784, 684, 829, 369, 299, 159, 0, 2172, 1775, 1433, 1077, 1733, 931, 823, 566, 870, 644, 346, 166, 0), # 165 (2189, 1871, 1834, 1914, 1557, 740, 788, 688, 833, 371, 302, 160, 0, 2178, 1784, 1439, 1080, 1739, 935, 826, 570, 872, 646, 348, 166, 0), # 166 (2198, 1876, 1843, 1922, 1568, 743, 790, 689, 836, 372, 303, 162, 0, 2188, 1793, 1443, 1086, 1748, 941, 826, 572, 875, 648, 349, 167, 0), # 167 (2202, 1879, 1854, 1932, 1576, 749, 793, 691, 839, 375, 303, 163, 0, 2194, 1801, 1447, 1088, 1759, 943, 829, 574, 879, 651, 351, 168, 0), # 168 (2211, 1880, 1859, 1936, 1583, 753, 796, 692, 842, 376, 304, 164, 0, 2204, 1806, 1450, 1090, 1770, 946, 832, 576, 882, 654, 351, 169, 0), # 169 (2218, 1885, 1864, 1941, 1588, 757, 796, 696, 842, 376, 306, 168, 0, 2213, 1815, 1455, 1093, 1778, 947, 832, 580, 883, 656, 352, 169, 0), # 170 (2226, 1889, 1875, 1947, 1593, 760, 798, 698, 846, 379, 308, 168, 0, 2221, 1825, 1460, 1095, 1786, 950, 834, 581, 886, 658, 353, 169, 0), # 171 (2233, 1892, 1886, 1951, 1600, 761, 799, 703, 851, 380, 309, 168, 0, 2231, 1834, 1467, 1097, 1798, 951, 835, 583, 889, 660, 353, 169, 0), # 172 (2241, 1894, 1898, 1961, 1604, 763, 803, 708, 854, 380, 311, 168, 0, 2239, 1838, 1473, 1098, 1809, 953, 838, 584, 890, 663, 355, 172, 0), # 173 (2245, 1898, 1904, 1965, 1608, 763, 805, 712, 855, 381, 311, 169, 0, 2242, 1845, 1478, 1100, 1818, 959, 839, 584, 890, 664, 356, 173, 0), # 174 (2252, 1901, 1905, 1971, 1614, 764, 806, 716, 859, 383, 313, 169, 0, 2248, 1855, 1482, 1106, 1824, 961, 840, 585, 891, 668, 357, 174, 0), # 175 (2256, 1909, 1909, 1978, 1618, 767, 807, 720, 868, 385, 314, 169, 0, 2254, 1856, 1486, 1109, 1830, 963, 841, 585, 892, 671, 357, 174, 0), # 176 (2262, 1914, 1913, 1986, 1623, 772, 809, 722, 872, 385, 315, 169, 0, 2258, 1863, 1487, 1112, 1833, 965, 844, 586, 893, 673, 359, 175, 0), # 177 (2269, 1919, 1919, 1991, 1628, 774, 810, 723, 875, 385, 315, 169, 0, 2265, 1868, 1490, 1113, 1836, 967, 845, 588, 898, 674, 361, 175, 0), # 178 (2269, 1919, 1919, 1991, 1628, 774, 810, 723, 875, 385, 315, 169, 0, 2265, 1868, 1490, 1113, 1836, 967, 845, 588, 898, 674, 361, 175, 0), # 179 ) passenger_arriving_rate = ( (7.029211809720476, 7.090786984939564, 6.079830434547925, 6.525401162556605, 5.184373233768971, 2.563234861163827, 2.9022249307617405, 2.7143527675713304, 2.8420462290117365, 1.3853052554328298, 0.9812285382399741, 0.571423425802387, 0.0, 7.117432297609708, 6.285657683826256, 4.90614269119987, 4.155915766298489, 5.684092458023473, 3.8000938745998627, 2.9022249307617405, 1.8308820436884476, 2.5921866168844856, 2.175133720852202, 1.2159660869095852, 0.6446169986308695, 0.0), # 0 (7.496058012827964, 7.558911224152441, 6.4812376898851785, 6.956401465940448, 5.527657648309288, 2.7325532603014207, 3.093628258884586, 2.893049671694997, 3.0297144856220246, 1.4766432422970026, 1.0460557650564308, 0.6091419437616749, 0.0, 7.587708306415797, 6.700561381378422, 5.230278825282154, 4.429929726891007, 6.059428971244049, 4.050269540372995, 3.093628258884586, 1.9518237573581576, 2.763828824154644, 2.3188004886468163, 1.2962475379770357, 0.687173747650222, 0.0), # 1 (7.9614122125716245, 8.025177635976757, 6.881049333138649, 7.385687089898034, 5.869698775499761, 2.9011961768518306, 3.284272955572493, 3.071031394610912, 3.2166338432095234, 1.5676198212571917, 1.1106254013811399, 0.6467104760728565, 0.0, 8.056110759493567, 7.113815236801421, 5.553127006905699, 4.702859463771574, 6.433267686419047, 4.2994439524552766, 3.284272955572493, 2.0722829834655934, 2.9348493877498805, 2.4618956966326784, 1.37620986662773, 0.7295616032706144, 0.0), # 2 (8.423460910405188, 8.487736310818441, 7.277679347539831, 7.811555227908678, 6.209150897601775, 3.0684948417778424, 3.473402549153569, 3.2475923418717962, 3.4020630750965104, 1.657873944449164, 1.1746812960930562, 0.6839799965752206, 0.0, 8.520781928755916, 7.523779962327425, 5.873406480465281, 4.97362183334749, 6.804126150193021, 4.5466292786205145, 3.473402549153569, 2.191782029841316, 3.1045754488008876, 2.6038517426362264, 1.455535869507966, 0.7716123918925856, 0.0), # 3 (8.880390607782374, 8.94473733908341, 7.669541716320211, 8.232303073451698, 6.5446682968767265, 3.233780486042246, 3.6602605679559215, 3.4220269190303676, 3.585260954605263, 1.7470445640086882, 1.2379672980711345, 0.7208014791080559, 0.0, 8.979864086115745, 7.928816270188614, 6.189836490355671, 5.241133692026064, 7.170521909210526, 4.790837686642515, 3.6602605679559215, 2.30984320431589, 3.2723341484383632, 2.7441010244839, 1.5339083432640421, 0.8131579399166738, 0.0), # 4 (9.330387806156915, 9.394330811177607, 8.055050422711272, 8.646227820006413, 6.874905255585995, 3.396384340607826, 3.844090540307657, 3.593629531639346, 3.765486255058061, 1.8347706320715327, 1.300227256194331, 0.7570258975106506, 0.0, 9.43149950348596, 8.327284872617156, 6.501136280971655, 5.504311896214597, 7.530972510116122, 5.031081344295084, 3.844090540307657, 2.4259888147198754, 3.4374526277929975, 2.8820759400021383, 1.6110100845422546, 0.8540300737434189, 0.0), # 5 (9.771639006982534, 9.834666817506942, 8.43261944994451, 9.051626661052135, 7.198516055990973, 3.5556376364373725, 4.024135994536884, 3.7616945852514516, 3.9419977497771805, 1.920691100773466, 1.3612050193415997, 0.7925042256222944, 0.0, 9.87383045277945, 8.717546481845236, 6.806025096707997, 5.762073302320396, 7.883995499554361, 5.266372419352033, 4.024135994536884, 2.5397411688838374, 3.5992580279954867, 3.017208887017379, 1.6865238899889023, 0.8940606197733586, 0.0), # 6 (10.202330711712957, 10.263895448477353, 8.800662781251408, 9.446796790068186, 7.514154980353052, 3.710871604493673, 4.19964045897171, 3.9255164854194056, 4.1140542120849, 2.004444922250256, 1.4206444363918964, 0.8270874372822752, 0.0, 10.304999205909127, 9.097961810105026, 7.103222181959481, 6.013334766750766, 8.2281084241698, 5.495723079587168, 4.19964045897171, 2.6506225746383376, 3.757077490176526, 3.148932263356063, 1.7601325562502819, 0.9330814044070321, 0.0), # 7 (10.62064942180191, 10.68016679449476, 9.157594399863463, 9.830035400533875, 7.820476310933614, 3.8614174757395103, 4.369847461940239, 4.0843896376959234, 4.280914415303496, 2.0856710486376717, 1.4782893562241752, 0.8606265063298821, 0.0, 10.723148034787885, 9.466891569628702, 7.391446781120876, 6.257013145913014, 8.561828830606991, 5.718145492774292, 4.369847461940239, 2.758155339813936, 3.910238155466807, 3.276678466844626, 1.831518879972693, 0.9709242540449783, 0.0), # 8 (11.02478163870312, 11.081630945965095, 9.501828289012156, 10.199639685928528, 8.116134329994049, 4.006606481137679, 4.534000531770584, 4.237608447633729, 4.441837132755248, 2.1640084320714803, 1.5338836277173917, 0.8929724066044035, 0.0, 11.126419211328628, 9.822696472648436, 7.669418138586958, 6.49202529621444, 8.883674265510496, 5.932651826687221, 4.534000531770584, 2.861861772241199, 4.058067164997024, 3.3998798953095104, 1.9003656578024313, 1.0074209950877362, 0.0), # 9 (11.412913863870306, 11.46643799329428, 9.83177843192898, 10.553906839731454, 8.399783319795748, 4.145769851650964, 4.691343196790848, 4.38446732078554, 4.596081137762433, 2.2390960246874507, 1.5871710997505006, 0.923976111945128, 0.0, 11.512955007444255, 10.163737231396405, 7.935855498752503, 6.717288074062351, 9.192162275524867, 6.138254249099756, 4.691343196790848, 2.961264179750688, 4.199891659897874, 3.517968946577152, 1.9663556863857963, 1.0424034539358438, 0.0), # 10 (11.783232598757209, 11.832738026888249, 10.145858811845418, 10.891134055421968, 8.670077562600099, 4.278238818242151, 4.841118985329142, 4.524260662704076, 4.7429052036473305, 2.3105727786213524, 1.6378956212024585, 0.9534885961913449, 0.0, 11.880897695047656, 10.488374558104791, 8.189478106012292, 6.931718335864056, 9.485810407294661, 6.333964927785706, 4.841118985329142, 3.055884870172965, 4.3350387813000495, 3.63037801847399, 2.0291717623690837, 1.075703456989841, 0.0), # 11 (12.133924344817538, 12.178681137152912, 10.442483411992965, 11.209618526479394, 8.925671340668487, 4.403344611874027, 4.9825714257135685, 4.656282878942054, 4.881568103732217, 2.378077646008951, 1.6858010409522184, 0.9813608331823415, 0.0, 12.22838954605175, 10.794969165005755, 8.429005204761092, 7.134232938026852, 9.763136207464434, 6.518796030518876, 4.9825714257135685, 3.1452461513385908, 4.462835670334243, 3.7365395088264655, 2.0884966823985933, 1.107152830650265, 0.0), # 12 (12.463175603505027, 12.502417414494213, 10.720066215603106, 11.507657446383048, 9.165218936262296, 4.520418463509383, 5.11494404627224, 4.779828375052198, 5.011328611339368, 2.441249578986017, 1.7306312078787365, 1.0074437967574077, 0.0, 12.55357283236943, 11.08188176433148, 8.653156039393682, 7.323748736958049, 10.022657222678736, 6.691759725073078, 5.11494404627224, 3.228870331078131, 4.582609468131148, 3.8358858154610167, 2.1440132431206216, 1.136583401317656, 0.0), # 13 (12.769172876273403, 12.802096949318072, 10.977021205907338, 11.783548008612232, 9.387374631642924, 4.6287916041110035, 5.237480375333263, 4.894191556587227, 5.131445499791063, 2.4997275296883177, 1.7721299708609668, 1.0315884607558323, 0.0, 12.85458982591359, 11.347473068314153, 8.860649854304834, 7.499182589064952, 10.262890999582126, 6.8518681792221185, 5.237480375333263, 3.306279717222145, 4.693687315821462, 3.9278493362040785, 2.195404241181468, 1.1638269953925522, 0.0), # 14 (13.050102664576398, 13.075869832030413, 11.211762366137135, 12.035587406646286, 9.590792709071755, 4.72779526464168, 5.349423941224739, 4.998666829099858, 5.241177542409583, 2.5531504502516222, 1.810041178777865, 1.0536457990169035, 0.0, 13.129582798597134, 11.590103789185937, 9.050205893889325, 7.659451350754866, 10.482355084819165, 6.998133560739801, 5.349423941224739, 3.3769966176011996, 4.795396354535877, 4.0118624688820965, 2.242352473227427, 1.1887154392754924, 0.0), # 15 (13.30415146986772, 13.321886153037171, 11.422703679523998, 12.262072833964503, 9.774127450810177, 4.816760676064193, 5.450018272274784, 5.092548598142811, 5.339783512517201, 2.6011572928116995, 1.8441086805083868, 1.0734667853799098, 0.0, 13.376694022332964, 11.808134639179006, 9.220543402541933, 7.803471878435097, 10.679567025034402, 7.1295680373999355, 5.450018272274784, 3.440543340045852, 4.887063725405088, 4.087357611321502, 2.2845407359047996, 1.2110805593670158, 0.0), # 16 (13.529505793601107, 13.538296002744264, 11.608259129299412, 12.46130148404622, 9.936033139119584, 4.895019069341334, 5.538506896811498, 5.17513126926881, 5.426522183436193, 2.643387009504314, 1.874076324931487, 1.09090239368414, 0.0, 13.594065769033982, 11.999926330525538, 9.370381624657433, 7.9301610285129405, 10.853044366872385, 7.245183776976335, 5.538506896811498, 3.496442192386667, 4.968016569559792, 4.153767161348741, 2.3216518258598824, 1.2307541820676606, 0.0), # 17 (13.724352137230287, 13.723249471557619, 11.766842698694862, 12.631570550370744, 10.07516405626135, 4.961901675435895, 5.6141333431629965, 5.245709248030569, 5.500652328488845, 2.6794785524652385, 1.8996879609261188, 1.1058035977688838, 0.0, 13.779840310613086, 12.163839575457718, 9.498439804630594, 8.038435657395715, 11.00130465697769, 7.343992947242797, 5.6141333431629965, 3.5442154824542103, 5.037582028130675, 4.210523516790249, 2.3533685397389728, 1.2475681337779656, 0.0), # 18 (13.88687700220898, 13.874896649883173, 11.896868370941842, 12.77117722641738, 10.190174484496875, 5.0167397253106545, 5.676141139657377, 5.30357693998081, 5.561432720997431, 2.7090708738302403, 1.9206874373712384, 1.1180213714734282, 0.0, 13.932159918983176, 12.298235086207708, 9.603437186856192, 8.12721262149072, 11.122865441994861, 7.425007715973134, 5.676141139657377, 3.5833855180790386, 5.095087242248438, 4.257059075472461, 2.379373674188369, 1.2613542408984704, 0.0), # 19 (14.015266889990915, 13.991387628126835, 11.996750129271838, 12.87841870566547, 10.279718706087547, 5.058864449928407, 5.723773814622755, 5.348028750672253, 5.608122134284226, 2.731802925735086, 1.936818603145802, 1.1274066886370624, 0.0, 14.049166866057154, 12.401473575007685, 9.68409301572901, 8.195408777205257, 11.216244268568452, 7.487240250941153, 5.723773814622755, 3.6134746070917196, 5.139859353043773, 4.292806235221825, 2.399350025854368, 1.2719443298297126, 0.0), # 20 (14.107708302029813, 14.070872496694552, 12.064901956916339, 12.951592181594311, 10.34245100329475, 5.087607080251938, 5.756274896387231, 5.378359085657614, 5.63997934167151, 2.747313660315545, 1.9478253071287643, 1.133810523099076, 0.0, 14.12900342374791, 12.471915754089835, 9.739126535643821, 8.241940980946634, 11.27995868334302, 7.529702719920659, 5.756274896387231, 3.634005057322813, 5.171225501647375, 4.317197393864771, 2.412980391383268, 1.279170226972232, 0.0), # 21 (14.162387739779412, 14.111501345992236, 12.099737837106835, 12.988994847683228, 10.377025658379871, 5.102298847244033, 5.77288791327892, 5.393862350489618, 5.656263116481561, 2.7552420297073854, 1.9534513981990798, 1.1370838486987573, 0.0, 14.16981186396836, 12.50792233568633, 9.7672569909954, 8.265726089122154, 11.312526232963123, 7.551407290685465, 5.77288791327892, 3.644499176602881, 5.188512829189936, 4.329664949227744, 2.419947567421367, 1.282863758726567, 0.0), # 22 (14.182550708679697, 14.116311945587563, 12.104077046181986, 12.993677353395064, 10.385883252297091, 5.104166666666667, 5.774862801581538, 5.395538065843622, 5.658298909465021, 2.7561772953818022, 1.9541568753377396, 1.1374880506020426, 0.0, 14.175, 12.512368556622466, 9.770784376688697, 8.268531886145405, 11.316597818930042, 7.553753292181072, 5.774862801581538, 3.6458333333333335, 5.192941626148546, 4.331225784465023, 2.4208154092363974, 1.283301085962506, 0.0), # 23 (14.197417378247815, 14.113505864197531, 12.10336728395062, 12.99310104166667, 10.390900439373862, 5.104166666666667, 5.773777668845317, 5.393208333333334, 5.658026111111111, 2.755602716049383, 1.9540790684624023, 1.1373934156378602, 0.0, 14.175, 12.51132757201646, 9.77039534231201, 8.266808148148147, 11.316052222222222, 7.550491666666668, 5.773777668845317, 3.6458333333333335, 5.195450219686931, 4.331033680555557, 2.4206734567901242, 1.2830459876543212, 0.0), # 24 (14.211970122296213, 14.10797467992684, 12.101966163694561, 12.991960841049384, 10.39580728255487, 5.104166666666667, 5.771639231824418, 5.388631687242799, 5.657487139917696, 2.754471593507088, 1.9539247931994848, 1.1372065996037193, 0.0, 14.175, 12.509272595640908, 9.769623965997424, 8.263414780521263, 11.314974279835392, 7.544084362139919, 5.771639231824418, 3.6458333333333335, 5.197903641277435, 4.330653613683129, 2.4203932327389124, 1.2825431527206221, 0.0), # 25 (14.226207826667249, 14.099802892089624, 12.099892889803387, 12.990269714506173, 10.400603610526364, 5.104166666666667, 5.768480702816105, 5.381894547325103, 5.65668890946502, 2.7528027480566992, 1.9536954462318665, 1.136930163084896, 0.0, 14.175, 12.506231793933855, 9.768477231159332, 8.258408244170097, 11.31337781893004, 7.534652366255146, 5.768480702816105, 3.6458333333333335, 5.200301805263182, 4.330089904835392, 2.4199785779606775, 1.2818002629172387, 0.0), # 26 (14.240129377203292, 14.089075, 12.097166666666668, 12.988040625, 10.405289251974601, 5.104166666666667, 5.7643352941176484, 5.3730833333333345, 5.655638333333333, 2.7506150000000003, 1.9533924242424245, 1.1365666666666672, 0.0, 14.175, 12.502233333333336, 9.766962121212122, 8.251845, 11.311276666666666, 7.5223166666666685, 5.7643352941176484, 3.6458333333333335, 5.2026446259873005, 4.329346875000001, 2.4194333333333335, 1.280825, 0.0), # 27 (14.253733659746702, 14.075875502972108, 12.093806698673983, 12.985286535493827, 10.40986403558584, 5.104166666666667, 5.759236218026306, 5.362284465020577, 5.654342325102881, 2.7479271696387753, 1.9530171239140377, 1.1361186709343092, 0.0, 14.175, 12.4973053802774, 9.765085619570188, 8.243781508916324, 11.308684650205763, 7.507198251028808, 5.759236218026306, 3.6458333333333335, 5.20493201779292, 4.32842884516461, 2.418761339734797, 1.2796250457247373, 0.0), # 28 (14.26701956013985, 14.060288900320074, 12.089832190214908, 12.982020408950618, 10.41432779004634, 5.104166666666667, 5.753216686839346, 5.349584362139918, 5.652807798353909, 2.7447580772748066, 1.952570941929584, 1.1355887364730988, 0.0, 14.175, 12.491476101204084, 9.76285470964792, 8.234274231824418, 11.305615596707819, 7.489418106995886, 5.753216686839346, 3.6458333333333335, 5.20716389502317, 4.327340136316874, 2.4179664380429817, 1.2782080818472796, 0.0), # 29 (14.279985964225098, 14.042399691358026, 12.085262345679013, 12.978255208333334, 10.418680344042354, 5.104166666666667, 5.746309912854031, 5.335069444444444, 5.651041666666666, 2.7411265432098775, 1.952055274971942, 1.1349794238683129, 0.0, 14.175, 12.48477366255144, 9.760276374859709, 8.223379629629632, 11.302083333333332, 7.469097222222222, 5.746309912854031, 3.6458333333333335, 5.209340172021177, 4.326085069444446, 2.4170524691358026, 1.276581790123457, 0.0), # 30 (14.292631757844802, 14.022292375400093, 12.080116369455878, 12.97400389660494, 10.422921526260142, 5.104166666666667, 5.7385491083676285, 5.318826131687244, 5.649050843621399, 2.737051387745771, 1.9514715197239891, 1.1342932937052284, 0.0, 14.175, 12.477226230757509, 9.757357598619945, 8.211154163237312, 11.298101687242799, 7.4463565843621415, 5.7385491083676285, 3.6458333333333335, 5.211460763130071, 4.324667965534981, 2.416023273891176, 1.2747538523090995, 0.0), # 31 (14.304955826841338, 14.000051451760402, 12.07441346593507, 12.969279436728398, 10.427051165385956, 5.104166666666667, 5.7299674856774, 5.3009408436214, 5.646842242798354, 2.7325514311842714, 1.950821072868604, 1.1335329065691209, 0.0, 14.175, 12.468861972260328, 9.754105364343019, 8.197654293552812, 11.293684485596708, 7.421317181069961, 5.7299674856774, 3.6458333333333335, 5.213525582692978, 4.3230931455761334, 2.4148826931870144, 1.272731950160037, 0.0), # 32 (14.316957057057056, 13.975761419753086, 12.068172839506175, 12.964094791666666, 10.431069090106059, 5.104166666666667, 5.720598257080611, 5.2815, 5.644422777777778, 2.7276454938271613, 1.9501053310886647, 1.1327008230452675, 0.0, 14.175, 12.459709053497942, 9.750526655443322, 8.182936481481482, 11.288845555555556, 7.394100000000001, 5.720598257080611, 3.6458333333333335, 5.215534545053029, 4.321364930555556, 2.413634567901235, 1.2705237654320989, 0.0), # 33 (14.328634334334335, 13.949506778692271, 12.061413694558757, 12.958462924382715, 10.434975129106702, 5.104166666666667, 5.710474634874527, 5.260590020576132, 5.641799362139919, 2.7223523959762237, 1.9493256910670491, 1.1317996037189455, 0.0, 14.175, 12.449795640908398, 9.746628455335244, 8.16705718792867, 11.283598724279837, 7.3648260288065845, 5.710474634874527, 3.6458333333333335, 5.217487564553351, 4.319487641460906, 2.4122827389117516, 1.2681369798811157, 0.0), # 34 (14.339986544515531, 13.92137202789209, 12.054155235482398, 12.952396797839505, 10.438769111074146, 5.104166666666667, 5.699629831356412, 5.238297325102881, 5.638978909465021, 2.7166909579332423, 1.9484835494866362, 1.1308318091754308, 0.0, 14.175, 12.439149900929737, 9.74241774743318, 8.150072873799726, 11.277957818930043, 7.333616255144034, 5.699629831356412, 3.6458333333333335, 5.219384555537073, 4.317465599279836, 2.41083104709648, 1.2655792752629174, 0.0), # 35 (14.35101257344301, 13.891441666666665, 12.04641666666667, 12.945909375, 10.442450864694647, 5.104166666666667, 5.68809705882353, 5.214708333333334, 5.635968333333333, 2.7106800000000004, 1.9475803030303034, 1.1298000000000004, 0.0, 14.175, 12.427800000000001, 9.737901515151515, 8.13204, 11.271936666666665, 7.300591666666668, 5.68809705882353, 3.6458333333333335, 5.221225432347324, 4.315303125000001, 2.409283333333334, 1.2628583333333334, 0.0), # 36 (14.361711306959135, 13.859800194330132, 12.038217192501145, 12.939013618827161, 10.44602021865446, 5.104166666666667, 5.675909529573146, 5.189909465020577, 5.632774547325103, 2.7043383424782816, 1.9466173483809293, 1.1287067367779304, 0.0, 14.175, 12.415774104557233, 9.733086741904645, 8.113015027434844, 11.265549094650206, 7.265873251028808, 5.675909529573146, 3.6458333333333335, 5.22301010932723, 4.313004539609055, 2.407643438500229, 1.259981835848194, 0.0), # 37 (14.372081630906267, 13.826532110196618, 12.029576017375401, 12.931722492283953, 10.449477001639845, 5.104166666666667, 5.663100455902526, 5.1639871399176975, 5.629404465020576, 2.6976848056698683, 1.9455960822213911, 1.1275545800944982, 0.0, 14.175, 12.403100381039478, 9.727980411106955, 8.093054417009604, 11.258808930041152, 7.229581995884776, 5.663100455902526, 3.6458333333333335, 5.224738500819923, 4.3105741640946516, 2.40591520347508, 1.2569574645633292, 0.0), # 38 (14.382122431126781, 13.791721913580247, 12.020512345679016, 12.924048958333334, 10.452821042337057, 5.104166666666667, 5.649703050108934, 5.137027777777778, 5.625865000000001, 2.690738209876544, 1.9445179012345684, 1.1263460905349796, 0.0, 14.175, 12.389806995884772, 9.722589506172842, 8.07221462962963, 11.251730000000002, 7.191838888888889, 5.649703050108934, 3.6458333333333335, 5.226410521168528, 4.308016319444445, 2.4041024691358035, 1.253792901234568, 0.0), # 39 (14.39183259346303, 13.755454103795152, 12.011045381801555, 12.916005979938273, 10.45605216943235, 5.104166666666667, 5.635750524489632, 5.1091177983539104, 5.622163065843623, 2.6835173754000925, 1.943384202103338, 1.125083828684652, 0.0, 14.175, 12.375922115531171, 9.71692101051669, 8.050552126200277, 11.244326131687245, 7.1527649176954755, 5.635750524489632, 3.6458333333333335, 5.228026084716175, 4.305335326646092, 2.4022090763603114, 1.2504958276177414, 0.0), # 40 (14.40121100375738, 13.717813180155463, 12.001194330132604, 12.90760652006173, 10.459170211611989, 5.104166666666667, 5.621276091341887, 5.080343621399178, 5.618305576131687, 2.676041122542296, 1.9421963815105796, 1.1237703551287916, 0.0, 14.175, 12.361473906416705, 9.710981907552897, 8.028123367626886, 11.236611152263373, 7.112481069958849, 5.621276091341887, 3.6458333333333335, 5.229585105805994, 4.302535506687244, 2.400238866026521, 1.2470739254686787, 0.0), # 41 (14.410256547852201, 13.678883641975311, 11.990978395061731, 12.89886354166667, 10.462174997562222, 5.104166666666667, 5.6063129629629636, 5.050791666666668, 5.614299444444446, 2.668328271604939, 1.9409558361391697, 1.122408230452675, 0.0, 14.175, 12.346490534979424, 9.704779180695848, 8.004984814814815, 11.228598888888891, 7.071108333333335, 5.6063129629629636, 3.6458333333333335, 5.231087498781111, 4.299621180555557, 2.3981956790123466, 1.2435348765432102, 0.0), # 42 (14.418968111589852, 13.638749988568819, 11.980416780978512, 12.889790007716051, 10.46506635596931, 5.104166666666667, 5.5908943516501255, 5.020548353909466, 5.61015158436214, 2.660397642889804, 1.9396639626719878, 1.1210000152415793, 0.0, 14.175, 12.331000167657372, 9.698319813359937, 7.981192928669412, 11.22030316872428, 7.0287676954732525, 5.5908943516501255, 3.6458333333333335, 5.232533177984655, 4.296596669238685, 2.3960833561957027, 1.2398863625971654, 0.0), # 43 (14.427344580812699, 13.597496719250115, 11.969528692272522, 12.880398881172843, 10.467844115519508, 5.104166666666667, 5.575053469700638, 4.98970010288066, 5.605868909465021, 2.652268056698675, 1.938322157791911, 1.1195482700807806, 0.0, 14.175, 12.315030970888586, 9.691610788959554, 7.9568041700960235, 11.211737818930041, 6.985580144032924, 5.575053469700638, 3.6458333333333335, 5.233922057759754, 4.293466293724282, 2.3939057384545044, 1.2361360653863744, 0.0), # 44 (14.435384841363105, 13.555208333333335, 11.958333333333336, 12.870703125000002, 10.470508104899077, 5.104166666666667, 5.558823529411765, 4.958333333333334, 5.601458333333333, 2.6439583333333343, 1.9369318181818187, 1.1180555555555556, 0.0, 14.175, 12.29861111111111, 9.684659090909092, 7.931875000000002, 11.202916666666667, 6.941666666666667, 5.558823529411765, 3.6458333333333335, 5.235254052449538, 4.290234375000002, 2.391666666666667, 1.232291666666667, 0.0), # 45 (14.443087779083434, 13.511969330132603, 11.946849908550526, 12.860715702160494, 10.47305815279427, 5.104166666666667, 5.542237743080772, 4.926534465020577, 5.596926769547324, 2.635487293095565, 1.9354943405245877, 1.1165244322511814, 0.0, 14.175, 12.281768754762993, 9.677471702622938, 7.906461879286693, 11.193853539094649, 6.897148251028808, 5.542237743080772, 3.6458333333333335, 5.236529076397135, 4.286905234053499, 2.3893699817101055, 1.228360848193873, 0.0), # 46 (14.45045227981605, 13.46786420896205, 11.935097622313673, 12.850449575617287, 10.475494087891343, 5.104166666666667, 5.525329323004923, 4.894389917695474, 5.592281131687244, 2.6268737562871523, 1.9340111215030973, 1.1149574607529342, 0.0, 14.175, 12.264532068282275, 9.670055607515485, 7.880621268861455, 11.184562263374488, 6.852145884773663, 5.525329323004923, 3.6458333333333335, 5.237747043945672, 4.283483191872429, 2.387019524462735, 1.2243512917238228, 0.0), # 47 (14.457477229403315, 13.422977469135803, 11.923095679012349, 12.839917708333335, 10.477815738876558, 5.104166666666667, 5.508131481481482, 4.861986111111112, 5.587528333333333, 2.618136543209877, 1.9324835578002246, 1.1133572016460909, 0.0, 14.175, 12.246929218106997, 9.662417789001124, 7.854409629629629, 11.175056666666666, 6.806780555555557, 5.508131481481482, 3.6458333333333335, 5.238907869438279, 4.279972569444446, 2.38461913580247, 1.2202706790123459, 0.0), # 48 (14.464161513687602, 13.377393609967992, 11.910863283036125, 12.829133063271607, 10.480022934436168, 5.104166666666667, 5.490677430807714, 4.829409465020577, 5.582675288065844, 2.6092944741655244, 1.930913046098849, 1.1117262155159278, 0.0, 14.175, 12.228988370675204, 9.654565230494246, 7.827883422496572, 11.165350576131688, 6.761173251028807, 5.490677430807714, 3.6458333333333335, 5.240011467218084, 4.276377687757203, 2.382172656607225, 1.2161266918152722, 0.0), # 49 (14.470504018511264, 13.33119713077275, 11.89841963877458, 12.81810860339506, 10.482115503256427, 5.104166666666667, 5.473000383280885, 4.796746399176955, 5.57772890946502, 2.6003663694558763, 1.9293009830818477, 1.1100670629477218, 0.0, 14.175, 12.210737692424937, 9.646504915409238, 7.8010991083676275, 11.15545781893004, 6.715444958847738, 5.473000383280885, 3.6458333333333335, 5.2410577516282135, 4.272702867798355, 2.379683927754916, 1.211927011888432, 0.0), # 50 (14.476503629716676, 13.284472530864198, 11.885783950617286, 12.806857291666669, 10.484093274023598, 5.104166666666667, 5.455133551198258, 4.764083333333335, 5.572696111111112, 2.5913710493827167, 1.9276487654320995, 1.1083823045267494, 0.0, 14.175, 12.192205349794241, 9.638243827160496, 7.774113148148149, 11.145392222222224, 6.669716666666668, 5.455133551198258, 3.6458333333333335, 5.242046637011799, 4.268952430555557, 2.377156790123457, 1.2076793209876546, 0.0), # 51 (14.482159233146191, 13.237304309556471, 11.87297542295382, 12.795392091049385, 10.485956075423934, 5.104166666666667, 5.437110146857097, 4.731506687242798, 5.567583806584363, 2.582327334247829, 1.9259577898324816, 1.1066745008382872, 0.0, 14.175, 12.173419509221157, 9.629788949162407, 7.746982002743485, 11.135167613168726, 6.624109362139918, 5.437110146857097, 3.6458333333333335, 5.242978037711967, 4.265130697016462, 2.3745950845907644, 1.2033913008687704, 0.0), # 52 (14.487469714642183, 13.189776966163697, 11.860013260173757, 12.783725964506175, 10.487703736143693, 5.104166666666667, 5.418963382554669, 4.699102880658437, 5.5623989094650215, 2.573254044352996, 1.9242294529658732, 1.104946212467612, 0.0, 14.175, 12.15440833714373, 9.621147264829364, 7.719762133058986, 11.124797818930043, 6.578744032921811, 5.418963382554669, 3.6458333333333335, 5.243851868071847, 4.261241988168726, 2.3720026520347517, 1.199070633287609, 0.0), # 53 (14.492433960047004, 13.141975000000002, 11.846916666666667, 12.771871875000002, 10.489336084869135, 5.104166666666667, 5.400726470588236, 4.6669583333333335, 5.557148333333334, 2.5641700000000007, 1.9224651515151516, 1.1032000000000002, 0.0, 14.175, 12.1352, 9.612325757575757, 7.69251, 11.114296666666668, 6.533741666666667, 5.400726470588236, 3.6458333333333335, 5.244668042434568, 4.257290625000001, 2.369383333333334, 1.1947250000000003, 0.0), # 54 (14.497050855203032, 13.093982910379516, 11.833704846822133, 12.759842785493827, 10.490852950286511, 5.104166666666667, 5.382432623255064, 4.6351594650205765, 5.551838991769547, 2.555094021490627, 1.9206662821631961, 1.101438424020729, 0.0, 14.175, 12.115822664228014, 9.603331410815981, 7.66528206447188, 11.103677983539095, 6.4892232510288075, 5.382432623255064, 3.6458333333333335, 5.2454264751432556, 4.253280928497944, 2.3667409693644266, 1.1903620827617745, 0.0), # 55 (14.501319285952622, 13.045885196616371, 11.820397005029724, 12.74765165895062, 10.492254161082082, 5.104166666666667, 5.3641150528524175, 4.603792695473252, 5.5464777983539095, 2.5460449291266585, 1.918834241592884, 1.099664045115074, 0.0, 14.175, 12.096304496265812, 9.59417120796442, 7.638134787379974, 11.092955596707819, 6.445309773662553, 5.3641150528524175, 3.6458333333333335, 5.246127080541041, 4.249217219650207, 2.3640794010059447, 1.1859895633287612, 0.0), # 56 (14.505238138138138, 12.997766358024693, 11.807012345679016, 12.735311458333335, 10.493539545942102, 5.104166666666667, 5.34580697167756, 4.572944444444445, 5.541071666666667, 2.5370415432098774, 1.9169704264870937, 1.097879423868313, 0.0, 14.175, 12.076673662551439, 9.584852132435467, 7.61112462962963, 11.082143333333335, 6.402122222222224, 5.34580697167756, 3.6458333333333335, 5.246769772971051, 4.245103819444446, 2.3614024691358035, 1.1816151234567904, 0.0), # 57 (14.508806297601952, 12.949710893918612, 11.79357007315958, 12.72283514660494, 10.494708933552829, 5.104166666666667, 5.3275415920277585, 4.5427011316872425, 5.535627510288066, 2.5281026840420675, 1.9150762335287033, 1.096087120865722, 0.0, 14.175, 12.05695832952294, 9.575381167643515, 7.584308052126201, 11.071255020576132, 6.35978158436214, 5.3275415920277585, 3.6458333333333335, 5.2473544667764145, 4.240945048868314, 2.3587140146319165, 1.1772464449016922, 0.0), # 58 (14.51202265018642, 12.901803303612255, 11.780089391860999, 12.710235686728396, 10.495762152600523, 5.104166666666667, 5.309352126200275, 4.513149176954733, 5.530152242798355, 2.5192471719250125, 1.9131530594005905, 1.0942896966925775, 0.0, 14.175, 12.037186663618352, 9.565765297002951, 7.557741515775036, 11.06030448559671, 6.3184088477366265, 5.309352126200275, 3.6458333333333335, 5.247881076300262, 4.2367452289094665, 2.3560178783722, 1.172891209419296, 0.0), # 59 (14.51488608173391, 12.854128086419754, 11.76658950617284, 12.697526041666668, 10.496699031771435, 5.104166666666667, 5.291271786492374, 4.484375000000001, 5.524652777777779, 2.5104938271604946, 1.9112023007856345, 1.0924897119341568, 0.0, 14.175, 12.017386831275722, 9.556011503928172, 7.5314814814814826, 11.049305555555557, 6.278125000000001, 5.291271786492374, 3.6458333333333335, 5.248349515885717, 4.232508680555557, 2.353317901234568, 1.1685570987654323, 0.0), # 60 (14.517395478086781, 12.806769741655238, 11.753089620484685, 12.684719174382717, 10.497519399751823, 5.104166666666667, 5.273333785201324, 4.4564650205761325, 5.519136028806585, 2.501861470050298, 1.9092253543667126, 1.0906897271757356, 0.0, 14.175, 11.997586998933091, 9.546126771833563, 7.5055844101508935, 11.03827205761317, 6.2390510288065855, 5.273333785201324, 3.6458333333333335, 5.248759699875912, 4.22823972479424, 2.350617924096937, 1.1642517946959308, 0.0), # 61 (14.519549725087407, 12.759812768632832, 11.739608939186102, 12.671828047839508, 10.498223085227952, 5.104166666666667, 5.255571334624385, 4.429505658436215, 5.513608909465021, 2.4933689208962058, 1.9072236168267036, 1.0888923030025914, 0.0, 14.175, 11.977815333028504, 9.536118084133516, 7.4801067626886155, 11.027217818930042, 6.201307921810701, 5.255571334624385, 3.6458333333333335, 5.249111542613976, 4.2239426826131705, 2.3479217878372207, 1.1599829789666212, 0.0), # 62 (14.521347708578144, 12.713341666666667, 11.72616666666667, 12.658865625, 10.498809916886067, 5.104166666666667, 5.238017647058824, 4.4035833333333345, 5.508078333333334, 2.4850350000000003, 1.9051984848484853, 1.0871000000000002, 0.0, 14.175, 11.9581, 9.525992424242425, 7.455105, 11.016156666666667, 6.165016666666668, 5.238017647058824, 3.6458333333333335, 5.249404958443034, 4.219621875000001, 2.345233333333334, 1.1557583333333337, 0.0), # 63 (14.522788314401359, 12.667440935070873, 11.712782007315958, 12.645844868827162, 10.499279723412432, 5.104166666666667, 5.220705934801905, 4.378784465020577, 5.50255121399177, 2.4768785276634664, 1.9031513551149353, 1.0853153787532392, 0.0, 14.175, 11.938469166285628, 9.515756775574676, 7.430635582990398, 11.00510242798354, 6.130298251028808, 5.220705934801905, 3.6458333333333335, 5.249639861706216, 4.215281622942388, 2.342556401463192, 1.151585539551898, 0.0), # 64 (14.523870428399414, 12.62219507315958, 11.69947416552355, 12.63277874228395, 10.499632333493302, 5.104166666666667, 5.2036694101508925, 4.35519547325103, 5.497034465020577, 2.4689183241883863, 1.9010836243089335, 1.0835409998475842, 0.0, 14.175, 11.918950998323425, 9.505418121544666, 7.406754972565158, 10.994068930041154, 6.097273662551442, 5.2036694101508925, 3.6458333333333335, 5.249816166746651, 4.2109262474279845, 2.3398948331047102, 1.1474722793781438, 0.0), # 65 (14.524592936414676, 12.577688580246916, 11.686262345679015, 12.619680208333333, 10.499867575814935, 5.104166666666667, 5.1869412854030505, 4.332902777777779, 5.491535000000001, 2.4611732098765438, 1.898996689113356, 1.0817794238683132, 0.0, 14.175, 11.899573662551441, 9.49498344556678, 7.38351962962963, 10.983070000000001, 6.06606388888889, 5.1869412854030505, 3.6458333333333335, 5.249933787907468, 4.206560069444445, 2.337252469135803, 1.1434262345679016, 0.0), # 66 (14.524954724289511, 12.534005955647004, 11.673165752171926, 12.606562229938273, 10.499985279063587, 5.104166666666667, 5.1705547728556445, 4.311992798353911, 5.486059732510288, 2.453662005029722, 1.8968919462110825, 1.0800332114007012, 0.0, 14.175, 11.88036532540771, 9.484459731055413, 7.360986015089164, 10.972119465020576, 6.036789917695475, 5.1705547728556445, 3.6458333333333335, 5.2499926395317935, 4.202187409979425, 2.3346331504343856, 1.1394550868770006, 0.0), # 67 (14.524708260273156, 12.491002420461081, 11.660140274919984, 12.593323827495976, 10.499886091610856, 5.104071942793273, 5.154460636380753, 4.292367245846671, 5.480574329370524, 2.446367154576509, 1.894733397326088, 1.078295169221637, 0.0, 14.174825210048013, 11.861246861438005, 9.47366698663044, 7.339101463729525, 10.961148658741047, 6.009314144185339, 5.154460636380753, 3.6457656734237665, 5.249943045805428, 4.197774609165326, 2.3320280549839967, 1.135545674587371, 0.0), # 68 (14.522398389694043, 12.44736508363202, 11.646819830246914, 12.579297690217391, 10.498983297022512, 5.1033231138545965, 5.13818772694263, 4.272974279835392, 5.474838991769548, 2.439082236746551, 1.8923013290802768, 1.0765088802252547, 0.0, 14.17344039351852, 11.8415976824778, 9.461506645401384, 7.317246710239651, 10.949677983539097, 5.982163991769549, 5.13818772694263, 3.6452307956104257, 5.249491648511256, 4.193099230072464, 2.329363966049383, 1.1315786439665476, 0.0), # 69 (14.517840102582454, 12.402893656798973, 11.633146504915409, 12.564391480475042, 10.49719935985368, 5.101848358989992, 5.121662094192959, 4.253638926992837, 5.468821349641823, 2.4317718335619576, 1.8895680735227522, 1.0746659888174948, 0.0, 14.170705268347055, 11.82132587699244, 9.447840367613761, 7.295315500685872, 10.937642699283646, 5.955094497789972, 5.121662094192959, 3.6441773992785653, 5.24859967992684, 4.188130493491681, 2.326629300983082, 1.127535786981725, 0.0), # 70 (14.511097524900102, 12.357614716359132, 11.619125100022863, 12.548627178945251, 10.49455687350386, 5.0996715769953775, 5.104891161677292, 4.234367588782199, 5.462530365035819, 2.4244361257699243, 1.8865437198495683, 1.072767842674817, 0.0, 14.166655842764062, 11.800446269422984, 9.43271859924784, 7.273308377309771, 10.925060730071637, 5.928114624295079, 5.104891161677292, 3.642622554996698, 5.24727843675193, 4.182875726315085, 2.323825020004573, 1.1234195196690122, 0.0), # 71 (14.502234782608697, 12.311554838709677, 11.604760416666666, 12.532026766304348, 10.49107843137255, 5.096816666666667, 5.087882352941177, 4.215166666666667, 5.4559750000000005, 2.4170752941176477, 1.8832383572567788, 1.0708157894736845, 0.0, 14.161328125, 11.778973684210527, 9.416191786283894, 7.251225882352942, 10.911950000000001, 5.901233333333334, 5.087882352941177, 3.6405833333333337, 5.245539215686275, 4.177342255434784, 2.3209520833333337, 1.1192322580645162, 0.0), # 72 (14.491316001669949, 12.264740600247798, 11.590057255944217, 12.514612223228664, 10.486786626859248, 5.0933075267997765, 5.070643091530164, 4.196042562109436, 5.4491642165828384, 2.409689519352323, 1.8796620749404376, 1.0688111768905575, 0.0, 14.154758123285324, 11.75692294579613, 9.398310374702186, 7.229068558056968, 10.898328433165677, 5.8744595869532095, 5.070643091530164, 3.638076804856983, 5.243393313429624, 4.171537407742889, 2.3180114511888434, 1.1149764182043456, 0.0), # 73 (14.478405308045566, 12.21719857737068, 11.575020418952905, 12.496405530394526, 10.481704053363458, 5.089168056190623, 5.053180800989806, 4.177001676573693, 5.4421069768328, 2.402278982221147, 1.8758249620965999, 1.0667553526018982, 0.0, 14.146981845850483, 11.734308878620878, 9.379124810482999, 7.20683694666344, 10.8842139536656, 5.84780234720317, 5.053180800989806, 3.635120040136159, 5.240852026681729, 4.165468510131509, 2.315004083790581, 1.1106544161246077, 0.0), # 74 (14.463566827697262, 12.168955346475506, 11.559654706790123, 12.477428668478263, 10.475853304284678, 5.084422153635118, 5.03550290486565, 4.158050411522635, 5.434812242798353, 2.394843863471315, 1.8717371079213185, 1.0646496642841674, 0.0, 14.138035300925928, 11.711146307125839, 9.358685539606592, 7.184531590413944, 10.869624485596706, 5.821270576131688, 5.03550290486565, 3.63173010973937, 5.237926652142339, 4.159142889492755, 2.311930941358025, 1.10626866786141, 0.0), # 75 (14.44686468658675, 12.12003748395947, 11.543964920553272, 12.457703618156202, 10.469256973022405, 5.079093717929179, 5.017616826703247, 4.139195168419449, 5.427288976527969, 2.3873843438500235, 1.8674086016106486, 1.0624954596138265, 0.0, 14.127954496742113, 11.68745005575209, 9.337043008053241, 7.162153031550069, 10.854577953055937, 5.794873235787229, 5.017616826703247, 3.6279240842351275, 5.234628486511203, 4.152567872718735, 2.3087929841106543, 1.101821589450861, 0.0), # 76 (14.428363010675731, 12.070471566219748, 11.527955861339734, 12.43725236010467, 10.461937652976141, 5.07320664786872, 4.9995299900481465, 4.120442348727329, 5.4195461400701115, 2.3799006041044684, 1.8628495323606438, 1.0602940862673376, 0.0, 14.116775441529496, 11.663234948940712, 9.314247661803218, 7.139701812313404, 10.839092280140223, 5.768619288218261, 4.9995299900481465, 3.623719034191943, 5.230968826488071, 4.145750786701558, 2.305591172267947, 1.0973155969290682, 0.0), # 77 (14.408125925925928, 12.020284169653527, 11.511632330246915, 12.416096875000001, 10.45391793754539, 5.066784842249657, 4.981249818445898, 4.101798353909466, 5.41159269547325, 2.372392824981845, 1.8580699893673582, 1.0580468919211612, 0.0, 14.10453414351852, 11.638515811132772, 9.29034994683679, 7.1171784749455345, 10.8231853909465, 5.742517695473253, 4.981249818445898, 3.6191320301783265, 5.226958968772695, 4.138698958333334, 2.3023264660493834, 1.092753106332139, 0.0), # 78 (14.386217558299041, 11.969501870657995, 11.494999128372202, 12.394259143518521, 10.445220420129644, 5.0598521998679065, 4.962783735442051, 4.0832695854290515, 5.403437604785855, 2.3648611872293506, 1.8530800618268455, 1.0557552242517592, 0.0, 14.091266610939643, 11.613307466769347, 9.265400309134227, 7.094583561688051, 10.80687520957171, 5.716577419600672, 4.962783735442051, 3.61418014276279, 5.222610210064822, 4.131419714506174, 2.2989998256744406, 1.0881365336961817, 0.0), # 79 (14.362702033756786, 11.918151245630337, 11.478061056812987, 12.371761146336556, 10.435867694128408, 5.052432619519382, 4.9441391645821575, 4.064862444749277, 5.395089830056394, 2.35730587159418, 1.847889838935161, 1.0534204309355928, 0.0, 14.07700885202332, 11.587624740291517, 9.239449194675805, 7.071917614782539, 10.790179660112788, 5.690807422648988, 4.9441391645821575, 3.6088804425138443, 5.217933847064204, 4.123920382112186, 2.2956122113625974, 1.0834682950573036, 0.0), # 80 (14.337643478260873, 11.866258870967743, 11.460822916666668, 12.348624864130437, 10.425882352941176, 5.04455, 4.925323529411765, 4.046583333333334, 5.386558333333333, 2.34972705882353, 1.8425094098883579, 1.0510438596491232, 0.0, 14.061796875, 11.561482456140352, 9.212547049441788, 7.049181176470589, 10.773116666666667, 5.665216666666669, 4.925323529411765, 3.60325, 5.212941176470588, 4.11620828804348, 2.2921645833333337, 1.0787508064516131, 0.0), # 81 (14.311106017773009, 11.813851323067393, 11.443289509030638, 12.32487227757649, 10.415286989967456, 5.036228240105676, 4.906344253476426, 4.0284386526444145, 5.3778520766651425, 2.342124929664596, 1.83694886388249, 1.048626858068812, 0.0, 14.045666688100141, 11.53489543875693, 9.18474431941245, 7.026374788993786, 10.755704153330285, 5.63981411370218, 4.906344253476426, 3.5973058857897686, 5.207643494983728, 4.1082907591921645, 2.2886579018061277, 1.0739864839152178, 0.0), # 82 (14.283153778254908, 11.760955178326475, 11.425465635002288, 12.300525367351046, 10.40410419860674, 5.027491238632323, 4.887208760321688, 4.01043480414571, 5.368980022100289, 2.3344996648645746, 1.8312182901136123, 1.0461707738711208, 0.0, 14.028654299554185, 11.507878512582325, 9.156091450568061, 7.0034989945937225, 10.737960044200578, 5.614608725803994, 4.887208760321688, 3.5910651704516594, 5.20205209930337, 4.1001751224503495, 2.2850931270004575, 1.0691777434842251, 0.0), # 83 (14.253850885668278, 11.707597013142175, 11.407356095679013, 12.275606114130436, 10.392356572258533, 5.0183628943758585, 4.867924473493101, 3.9925781893004118, 5.359951131687243, 2.3268514451706617, 1.825327777777778, 1.0436769547325107, 0.0, 14.010795717592593, 11.480446502057614, 9.12663888888889, 6.980554335511984, 10.719902263374486, 5.589609465020577, 4.867924473493101, 3.5845449245541845, 5.196178286129267, 4.091868704710146, 2.281471219135803, 1.0643270011947434, 0.0), # 84 (14.223261465974833, 11.653803403911677, 11.388965692158209, 12.250136498590983, 10.380066704322333, 5.008867106132196, 4.8484988165362175, 3.974875209571713, 5.35077436747447, 2.3191804513300527, 1.8192874160710422, 1.041146748329443, 0.0, 13.992126950445819, 11.452614231623869, 9.09643708035521, 6.957541353990157, 10.70154873494894, 5.564825293400398, 4.8484988165362175, 3.577762218665854, 5.190033352161167, 4.083378832863662, 2.2777931384316417, 1.05943667308288, 0.0), # 85 (14.191449645136279, 11.59960092703217, 11.370299225537268, 12.224138501409021, 10.367257188197637, 4.999027772697253, 4.828939212996585, 3.9573322664228017, 5.341458691510441, 2.311486864089944, 1.8131072941894584, 1.0385815023383795, 0.0, 13.97268400634431, 11.424396525722173, 9.065536470947292, 6.934460592269831, 10.682917383020882, 5.540265172991923, 4.828939212996585, 3.57073412335518, 5.183628594098819, 4.074712833803008, 2.274059845107454, 1.0545091751847429, 0.0), # 86 (14.15847954911433, 11.545016158900838, 11.35136149691358, 12.19763410326087, 10.353950617283953, 4.988868792866941, 4.809253086419753, 3.939955761316873, 5.332013065843622, 2.3037708641975314, 1.8067975013290805, 1.035982564435781, 0.0, 13.95250289351852, 11.39580820879359, 9.033987506645403, 6.9113125925925925, 10.664026131687244, 5.515938065843622, 4.809253086419753, 3.563477709190672, 5.1769753086419765, 4.065878034420291, 2.2702722993827162, 1.0495469235364399, 0.0), # 87 (14.124415303870702, 11.490075675914863, 11.332157307384547, 12.170645284822868, 10.340169584980769, 4.97841406543718, 4.789447860351274, 3.9227520957171165, 5.322446452522482, 2.296032632400011, 1.8003681266859632, 1.0333512822981095, 0.0, 13.931619620198905, 11.366864105279202, 9.001840633429817, 6.888097897200032, 10.644892905044964, 5.491852934003963, 4.789447860351274, 3.556010046740843, 5.1700847924903846, 4.056881761607624, 2.2664314614769094, 1.0445523341740786, 0.0), # 88 (14.089321035367092, 11.434806054471437, 11.312691458047555, 12.143194026771337, 10.325936684687594, 4.967687489203883, 4.769530958336696, 3.905727671086725, 5.312767813595489, 2.2882723494445796, 1.7938292594561607, 1.030689003601826, 0.0, 13.910070194615912, 11.337579039620083, 8.969146297280803, 6.864817048333737, 10.625535627190978, 5.4680187395214155, 4.769530958336696, 3.548348206574202, 5.162968342343797, 4.047731342257113, 2.2625382916095114, 1.0395278231337672, 0.0), # 89 (14.053260869565218, 11.379233870967743, 11.292968750000002, 12.115302309782612, 10.311274509803923, 4.956712962962964, 4.749509803921569, 3.8888888888888893, 5.302986111111112, 2.280490196078432, 1.787190988835726, 1.027997076023392, 0.0, 13.887890625, 11.30796783625731, 8.93595494417863, 6.841470588235294, 10.605972222222224, 5.4444444444444455, 4.749509803921569, 3.54050925925926, 5.155637254901961, 4.0384341032608715, 2.2585937500000006, 1.0344758064516133, 0.0), # 90 (14.016298932426789, 11.323385701800964, 11.272993984339278, 12.086992114533015, 10.296205653729254, 4.945514385510339, 4.729391820651443, 3.8722421505868017, 5.293110307117818, 2.2726863530487647, 1.7804634040207143, 1.025276847239269, 0.0, 13.865116919581618, 11.278045319631957, 8.902317020103572, 6.818059059146293, 10.586220614235636, 5.4211390108215225, 4.729391820651443, 3.5325102753645283, 5.148102826864627, 4.0289973715110055, 2.254598796867856, 1.0293987001637241, 0.0), # 91 (13.978499349913523, 11.267288123368292, 11.252771962162782, 12.058285421698875, 10.280752709863094, 4.934115655641925, 4.709184432071869, 3.8557938576436523, 5.2831493636640765, 2.2648610011027737, 1.7736565942071794, 1.0225296649259181, 0.0, 13.841785086591221, 11.247826314185097, 8.868282971035896, 6.79458300330832, 10.566298727328153, 5.398111400701113, 4.709184432071869, 3.524368325458518, 5.140376354931547, 4.019428473899626, 2.2505543924325564, 1.0242989203062085, 0.0), # 92 (13.939926247987117, 11.210967712066907, 11.232307484567903, 12.029204211956525, 10.264938271604938, 4.9225406721536356, 4.688895061728395, 3.839550411522634, 5.273112242798354, 2.2570143209876545, 1.7667806485911755, 1.019756876759801, 0.0, 13.81793113425926, 11.217325644357809, 8.833903242955877, 6.771042962962962, 10.546224485596708, 5.375370576131688, 4.688895061728395, 3.5161004801097393, 5.132469135802469, 4.009734737318842, 2.246461496913581, 1.0191788829151736, 0.0), # 93 (13.900643752609293, 11.154451044293994, 11.211605352652038, 11.999770465982289, 10.248784932354287, 4.910813333841387, 4.6685311331665735, 3.8235182136869392, 5.263007906569121, 2.2491464934506045, 1.7598456563687561, 1.016959830417379, 0.0, 13.793591070816188, 11.186558134591166, 8.79922828184378, 6.747439480351812, 10.526015813138242, 5.3529254991617155, 4.6685311331665735, 3.5077238098867047, 5.124392466177143, 3.9999234886607637, 2.2423210705304077, 1.014041004026727, 0.0), # 94 (13.860715989741754, 11.097764696446747, 11.190670367512576, 11.970006164452498, 10.232315285510639, 4.898957539501094, 4.648100069931951, 3.807703665599757, 5.252845317024844, 2.241257699238818, 1.752861706735976, 1.014139873575113, 0.0, 13.768800904492457, 11.155538609326241, 8.764308533679879, 6.723773097716453, 10.505690634049689, 5.33078513183966, 4.648100069931951, 3.499255385357924, 5.1161576427553195, 3.9900020548175, 2.2381340735025153, 1.0088876996769771, 0.0), # 95 (13.820207085346219, 11.040935244922345, 11.169507330246915, 11.93993328804348, 10.215551924473493, 4.88699718792867, 4.62760929557008, 3.7921131687242804, 5.242633436213992, 2.2333481190994924, 1.7458388888888892, 1.0112983539094653, 0.0, 13.74359664351852, 11.124281893004117, 8.729194444444445, 6.700044357298475, 10.485266872427983, 5.3089584362139925, 4.62760929557008, 3.490712277091907, 5.1077759622367465, 3.9799777626811608, 2.2339014660493834, 1.0037213859020315, 0.0), # 96 (13.779181165384388, 10.983989266117973, 11.148121041952448, 11.909573817431562, 10.198517442642354, 4.8749561779200326, 4.60706623362651, 3.7767531245237014, 5.2323812261850335, 2.2254179337798226, 1.7387872920235496, 1.0084366190968967, 0.0, 13.718014296124831, 11.09280281006586, 8.693936460117747, 6.676253801339467, 10.464762452370067, 5.287454374333182, 4.60706623362651, 3.482111555657166, 5.099258721321177, 3.969857939143855, 2.2296242083904896, 0.9985444787379977, 0.0), # 97 (13.737702355817978, 10.926953336430817, 11.126516303726566, 11.878949733293078, 10.181234433416716, 4.862858408271099, 4.58647830764679, 3.7616299344612103, 5.222097648986434, 2.2174673240270053, 1.7317170053360116, 1.0055560168138682, 0.0, 13.69208987054184, 11.06111618495255, 8.658585026680058, 6.652401972081014, 10.444195297972868, 5.266281908245695, 4.58647830764679, 3.4734702916222133, 5.090617216708358, 3.9596499110976935, 2.2253032607453136, 0.9933593942209834, 0.0), # 98 (13.695834782608697, 10.869854032258065, 11.10469791666667, 11.848083016304349, 10.163725490196079, 4.850727777777779, 4.5658529411764714, 3.7467500000000005, 5.211791666666667, 2.2094964705882356, 1.724638118022329, 1.0026578947368423, 0.0, 13.665859375000002, 11.029236842105265, 8.623190590111644, 6.628489411764706, 10.423583333333333, 5.245450000000001, 4.5658529411764714, 3.4648055555555564, 5.081862745098039, 3.949361005434784, 2.220939583333334, 0.988168548387097, 0.0), # 99 (13.653642571718258, 10.8127179299969, 11.082670681870143, 11.816995647141708, 10.146013206379946, 4.8385881852359915, 4.545197557761102, 3.732119722603262, 5.201472241274196, 2.201505554210711, 1.717560719278556, 0.9997436005422796, 0.0, 13.639358817729768, 10.997179605965075, 8.58780359639278, 6.6045166626321326, 10.402944482548392, 5.224967611644567, 4.545197557761102, 3.456134418025708, 5.073006603189973, 3.938998549047237, 2.2165341363740287, 0.9829743572724456, 0.0), # 100 (13.611189849108369, 10.755571606044516, 11.060439400434387, 11.785709606481484, 10.128120175367815, 4.82646352944165, 4.524519580946234, 3.7177455037341867, 5.191148334857491, 2.1934947556416264, 1.7104948983007466, 0.9968144819066413, 0.0, 13.612624206961591, 10.964959300973053, 8.552474491503732, 6.580484266924878, 10.382296669714982, 5.204843705227861, 4.524519580946234, 3.4474739496011786, 5.064060087683908, 3.928569868827162, 2.2120878800868775, 0.977779236913138, 0.0), # 101 (13.568540740740744, 10.698441636798089, 11.038008873456791, 11.754246875000002, 10.110068990559187, 4.814377709190674, 4.503826434277415, 3.7036337448559675, 5.180828909465021, 2.1854642556281783, 1.7034507442849551, 0.9938718865063897, 0.0, 13.585691550925928, 10.932590751570284, 8.517253721424776, 6.556392766884533, 10.361657818930041, 5.185087242798355, 4.503826434277415, 3.438841220850481, 5.055034495279593, 3.918082291666668, 2.207601774691358, 0.972585603345281, 0.0), # 102 (13.525759372577088, 10.641354598654807, 11.015383902034753, 11.722629433373593, 10.09188224535356, 4.802354623278973, 4.483125541300197, 3.689790847431795, 5.170522927145252, 2.1774142349175616, 1.696438346427236, 0.9909171620179854, 0.0, 13.558596857853223, 10.900088782197837, 8.482191732136178, 6.532242704752683, 10.341045854290504, 5.1657071864045125, 4.483125541300197, 3.4302533023421233, 5.04594112267678, 3.907543144457865, 2.2030767804069504, 0.9673958726049827, 0.0), # 103 (13.482909870579116, 10.58433706801186, 10.992569287265662, 11.690879262278584, 10.073582533150434, 4.790418170502465, 4.462424325560129, 3.6762232129248593, 5.160239349946655, 2.1693448742569736, 1.689467793923642, 0.9879516561178898, 0.0, 13.53137613597394, 10.867468217296787, 8.447338969618208, 6.50803462277092, 10.32047869989331, 5.146712498094804, 4.462424325560129, 3.421727264644618, 5.036791266575217, 3.896959754092862, 2.1985138574531327, 0.9622124607283511, 0.0), # 104 (13.440056360708535, 10.527415621266428, 10.969569830246915, 11.659018342391304, 10.05519244734931, 4.778592249657065, 4.441730210602761, 3.662937242798354, 5.1499871399176955, 2.1612563543936103, 1.682549175970229, 0.9849767164825647, 0.0, 13.50406539351852, 10.83474388130821, 8.412745879851144, 6.48376906318083, 10.299974279835391, 5.128112139917696, 4.441730210602761, 3.4132801783264752, 5.027596223674655, 3.886339447463769, 2.1939139660493834, 0.9570377837514936, 0.0), # 105 (13.39726296892706, 10.470616834815702, 10.946390332075904, 11.627068654388085, 10.036734581349688, 4.766900759538689, 4.4210506199736415, 3.6499393385154706, 5.139775259106843, 2.153148856074666, 1.67569258176305, 0.9819936907884712, 0.0, 13.476700638717421, 10.801930598673183, 8.378462908815248, 6.459446568223997, 10.279550518213686, 5.109915073921659, 4.4210506199736415, 3.4049291139562063, 5.018367290674844, 3.875689551462696, 2.189278066415181, 0.9518742577105185, 0.0), # 106 (13.3545938211964, 10.413967285056863, 10.923035593850026, 11.59505217894525, 10.018231528551063, 4.755367598943252, 4.400392977218323, 3.6372359015394005, 5.129612669562567, 2.145022560047339, 1.6689081004981592, 0.9790039267120707, 0.0, 13.449317879801098, 10.769043193832776, 8.344540502490794, 6.435067680142016, 10.259225339125134, 5.092130262155161, 4.400392977218323, 3.3966911421023225, 5.009115764275531, 3.865017392981751, 2.1846071187700056, 0.9467242986415331, 0.0), # 107 (13.312113043478263, 10.357493548387097, 10.899510416666669, 11.562990896739132, 9.999705882352941, 4.744016666666668, 4.379764705882353, 3.6248333333333345, 5.119508333333334, 2.1368776470588244, 1.662205821371611, 0.9760087719298248, 0.0, 13.421953125000002, 10.736096491228071, 8.311029106858054, 6.4106329411764715, 10.239016666666668, 5.074766666666668, 4.379764705882353, 3.3885833333333344, 4.999852941176471, 3.854330298913045, 2.179902083333334, 0.9415903225806455, 0.0), # 108 (13.26988476173436, 10.301222201203595, 10.87581960162323, 11.530906788446053, 9.98118023615482, 4.732871861504853, 4.359173229511284, 3.612738035360464, 5.109471212467612, 2.1287142978563174, 1.6555958335794598, 0.9730095741181947, 0.0, 13.394642382544584, 10.70310531530014, 8.277979167897298, 6.386142893568951, 10.218942424935223, 5.05783324950465, 4.359173229511284, 3.3806227582177515, 4.99059011807741, 3.8436355961486854, 2.1751639203246462, 0.9364747455639633, 0.0), # 109 (13.227973101926404, 10.245179819903537, 10.851967949817103, 11.498821834742351, 9.962677183356197, 4.721957082253722, 4.3386259716506625, 3.6009564090839814, 5.099510269013869, 2.1205326931870148, 1.6490882263177586, 0.9700076809536419, 0.0, 13.367421660665297, 10.670084490490058, 8.245441131588793, 6.361598079561043, 10.199020538027739, 5.041338972717574, 4.3386259716506625, 3.372826487324087, 4.981338591678099, 3.832940611580785, 2.170393589963421, 0.9313799836275944, 0.0), # 110 (13.186442190016104, 10.189392980884113, 10.827960262345682, 11.46675801630435, 9.944219317356573, 4.711296227709192, 4.318130355846042, 3.5894948559670787, 5.089634465020577, 2.1123330137981124, 1.6426930887825626, 0.9670044401126275, 0.0, 13.340326967592594, 10.6370488412389, 8.213465443912813, 6.336999041394336, 10.179268930041154, 5.02529279835391, 4.318130355846042, 3.3652115912208513, 4.972109658678287, 3.8222526721014507, 2.1655920524691368, 0.9263084528076467, 0.0), # 111 (13.14535615196517, 10.133888260542502, 10.803801340306359, 11.434737313808373, 9.925829231555449, 4.700913196667176, 4.297693805642971, 3.5783597774729468, 5.079852762536198, 2.1041154404368063, 1.6364205101699256, 0.9640011992716131, 0.0, 13.313394311556928, 10.604013191987741, 8.182102550849628, 6.312346321310418, 10.159705525072397, 5.0097036884621255, 4.297693805642971, 3.357795140476554, 4.962914615777724, 3.8115791046027923, 2.160760268061272, 0.9212625691402275, 0.0), # 112 (13.104705913184263, 10.078784894108638, 10.779554132960747, 11.402825576616644, 9.907497301495457, 4.690826978191853, 4.277368174559739, 3.5675806651220205, 5.07019931192069, 2.095906657814456, 1.6302822447690024, 0.9610058425921835, 0.0, 13.286621461180511, 10.571064268514016, 8.151411223845011, 6.287719973443367, 10.14039862384138, 4.9946129311708285, 4.277368174559739, 3.3505906987084666, 4.953748650747729, 3.8009418588722155, 2.15591082659215, 0.9162531721916946, 0.0), # 113 (13.064073257060091, 10.024626385524439, 10.755553287525224, 11.371278892341204, 9.88903379759524, 4.681014596966087, 4.257412745887406, 3.557289901377987, 5.060822216666095, 2.0878603087694745, 1.6242903453264128, 0.9580564200798471, 0.0, 13.25978557982405, 10.538620620878318, 8.121451726632063, 6.263580926308422, 10.12164443333219, 4.980205861929182, 4.257412745887406, 3.3435818549757763, 4.94451689879762, 3.790426297447069, 2.1511106575050447, 0.9113296714113127, 0.0), # 114 (13.023338864205595, 9.97143223830991, 10.731813088158539, 11.340088730440868, 9.870380499362694, 4.671450535207326, 4.2378417551340934, 3.547484881662581, 5.051724990045435, 2.0799888647958276, 1.6184360526663222, 0.9551543846318662, 0.0, 13.232809284324528, 10.506698230950526, 8.09218026333161, 6.239966594387481, 10.10344998009087, 4.966478834327614, 4.2378417551340934, 3.336750382290947, 4.935190249681347, 3.780029576813624, 2.146362617631708, 0.9064938398463556, 0.0), # 115 (12.982451822532688, 9.919124960991017, 10.708287554981187, 11.309199457779725, 9.851509291291528, 4.662112249784464, 4.218623372269525, 3.5381385158577467, 5.042884624972988, 2.072277675457342, 1.6127080506300124, 0.9522943730401906, 0.0, 13.205650163658248, 10.475238103442095, 8.063540253150062, 6.216833026372026, 10.085769249945976, 4.953393922200846, 4.218623372269525, 3.330080178417474, 4.925754645645764, 3.7697331525932425, 2.1416575109962372, 0.9017386328173653, 0.0), # 116 (12.941361219953283, 9.867627062093726, 10.68493070811365, 11.278555441221856, 9.832392057875436, 4.652977197566394, 4.199725767263427, 3.529223713845425, 5.034278114363028, 2.0647120903178457, 1.6070950230587664, 0.949471022096771, 0.0, 13.178265806801516, 10.44418124306448, 8.035475115293831, 6.1941362709535355, 10.068556228726056, 4.940913199383595, 4.199725767263427, 3.3235551411188533, 4.916196028937718, 3.7595184804072863, 2.1369861416227303, 0.8970570056448843, 0.0), # 117 (12.900016144379297, 9.816861050144, 10.66169656767643, 11.248101047631351, 9.81300068360812, 4.644022835422014, 4.181117110085521, 3.5207133855075567, 5.025882451129837, 2.0572774589411664, 1.6015856537938657, 0.9466789685935577, 0.0, 13.150613802730636, 10.413468654529133, 8.007928268969328, 6.171832376823498, 10.051764902259674, 4.92899873971058, 4.181117110085521, 3.317159168158581, 4.90650034180406, 3.7493670158771177, 2.132339313535286, 0.8924419136494547, 0.0), # 118 (12.858365683722639, 9.766749433667803, 10.638539153790012, 11.217780643872292, 9.793307052983273, 4.635226620220214, 4.162765570705529, 3.512580440726085, 5.017674628187687, 2.0499591308911307, 1.5961686266765933, 0.9439128493225009, 0.0, 13.122651740421906, 10.383041342547507, 7.980843133382966, 6.149877392673391, 10.035349256375374, 4.91761261701652, 4.162765570705529, 3.310876157300153, 4.896653526491637, 3.7392602146240983, 2.1277078307580024, 0.8878863121516185, 0.0), # 119 (12.816358925895228, 9.717214721191104, 10.61541248657489, 11.187538596808764, 9.773283050494598, 4.626566008829889, 4.144639319093177, 3.5047977893829505, 5.009631638450861, 2.0427424557315677, 1.5908326255482306, 0.9411673010755515, 0.0, 13.094337208851638, 10.352840311831065, 7.954163127741153, 6.128227367194702, 10.019263276901722, 4.906716905136131, 4.144639319093177, 3.3046900063070637, 4.886641525247299, 3.729179532269589, 2.1230824973149782, 0.8833831564719186, 0.0), # 120 (12.773944958808976, 9.668179421239865, 10.592270586151553, 11.157319273304857, 9.75290056063579, 4.618018458119934, 4.126706525218187, 3.4973383413600962, 5.001730474833633, 2.035612783026304, 1.5855663342500608, 0.9384369606446594, 0.0, 13.065627796996127, 10.322806567091252, 7.927831671250303, 6.106838349078911, 10.003460949667266, 4.8962736779041345, 4.126706525218187, 3.29858461294281, 4.876450280317895, 3.719106424434953, 2.118454117230311, 0.878925401930897, 0.0), # 121 (12.731072870375797, 9.61956604234005, 10.569067472640498, 11.127067040224649, 9.732131467900551, 4.609561424959241, 4.108935359050283, 3.490175006539462, 4.993948130250281, 2.0285554623391677, 1.5803584366233656, 0.9357164648217753, 0.0, 13.036481093831679, 10.292881113039527, 7.901792183116827, 6.085666387017502, 9.987896260500563, 4.886245009155247, 4.108935359050283, 3.2925438749708866, 4.8660657339502755, 3.7090223467415506, 2.1138134945280997, 0.8745060038490956, 0.0), # 122 (12.687691748507607, 9.571297093017627, 10.54575716616221, 11.09672626443223, 9.71094765678258, 4.601172366216706, 4.091293990559188, 3.4832806948029904, 4.986261597615085, 2.021555843233986, 1.5751976165094272, 0.9330004503988493, 0.0, 13.0068546883346, 10.263004954387341, 7.875988082547136, 6.064667529701957, 9.97252319523017, 4.876592972724187, 4.091293990559188, 3.28655169015479, 4.85547382839129, 3.698908754810744, 2.109151433232442, 0.8701179175470571, 0.0), # 123 (12.643750681116316, 9.523295081798558, 10.522293686837184, 11.066241312791686, 9.689321011775569, 4.592828738761221, 4.073750589714624, 3.476628316032624, 4.97864786984232, 2.014599275274587, 1.5700725577495283, 0.9302835541678323, 0.0, 12.976706169481197, 10.233119095846153, 7.85036278874764, 6.04379782582376, 9.95729573968464, 4.8672796424456735, 4.073750589714624, 3.280591956258015, 4.844660505887784, 3.6887471042638964, 2.104458737367437, 0.8657540983453236, 0.0), # 124 (12.599198756113843, 9.475482517208812, 10.498631054785912, 11.0355565521671, 9.667223417373222, 4.584507999461682, 4.056273326486318, 3.4701907801103036, 4.971083939846263, 2.0076711080247973, 1.5649719441849508, 0.927560412920674, 0.0, 12.94599312624776, 10.203164542127412, 7.824859720924753, 6.023013324074391, 9.942167879692526, 4.858267092154425, 4.056273326486318, 3.2746485710440583, 4.833611708686611, 3.678518850722367, 2.0997262109571824, 0.8614075015644376, 0.0), # 125 (12.553985061412101, 9.427781907774351, 10.474723290128884, 11.004616349422557, 9.644626758069233, 4.5761876051869805, 4.038830370843989, 3.463940996917971, 4.963546800541195, 2.0007566910484456, 1.5598844596569765, 0.9248256634493257, 0.0, 12.91467314761061, 10.173082297942582, 7.799422298284883, 6.002270073145335, 9.92709360108239, 4.849517395685159, 4.038830370843989, 3.268705432276415, 4.822313379034616, 3.66820544980752, 2.094944658025777, 0.8570710825249411, 0.0), # 126 (12.508058684923006, 9.380115762021138, 10.450524412986589, 10.973365071422144, 9.621502918357304, 4.567845012806012, 4.021389892757366, 3.4578518763375685, 4.95601344484139, 1.993841373909359, 1.5547987880068885, 0.9220739425457369, 0.0, 12.88270382254604, 10.142813368003106, 7.773993940034442, 5.981524121728076, 9.91202688968278, 4.8409926268725965, 4.021389892757366, 3.26274643771858, 4.810751459178652, 3.6577883571407157, 2.090104882597318, 0.8527377965473764, 0.0), # 127 (12.461368714558466, 9.332406588475143, 10.425988443479525, 10.941747085029949, 9.597823782731137, 4.5594576791876715, 4.003920062196168, 3.451896328251037, 4.948460865661126, 1.986910506171365, 1.5497036130759692, 0.9192998870018588, 0.0, 12.850042740030352, 10.112298757020445, 7.748518065379845, 5.960731518514094, 9.896921731322252, 4.832654859551452, 4.003920062196168, 3.2567554851340508, 4.798911891365568, 3.6472490283433174, 2.085197688695905, 0.8484005989522859, 0.0), # 128 (12.413864238230394, 9.284576895662326, 10.401069401728181, 10.909706757110053, 9.573561235684425, 4.551003061200851, 3.9863890491301195, 3.446047262540319, 4.9408660559146815, 1.9799494373982915, 1.5445876187055003, 0.916498133609641, 0.0, 12.816647489039854, 10.08147946970605, 7.7229380935275005, 5.939848312194873, 9.881732111829363, 4.824466167556446, 3.9863890491301195, 3.250716472286322, 4.786780617842212, 3.636568919036685, 2.0802138803456365, 0.8440524450602116, 0.0), # 129 (12.365494343850713, 9.236549192108656, 10.375721307853043, 10.877188454526541, 9.548687161710866, 4.542458615714445, 3.968765023528944, 3.440277589087355, 4.933206008516334, 1.9729435171539655, 1.539439488736764, 0.9136633191610346, 0.0, 12.78247565855085, 10.050296510771378, 7.697197443683819, 5.9188305514618955, 9.866412017032667, 4.816388624722297, 3.968765023528944, 3.244613296938889, 4.774343580855433, 3.6257294848421813, 2.075144261570609, 0.8396862901916962, 0.0), # 130 (12.316208119331334, 9.188245986340096, 10.349898181974611, 10.8441365441435, 9.523173445304161, 4.533801799597346, 3.9510161553623666, 3.4345602177740875, 4.92545771638036, 1.9658780950022154, 1.5342479070110426, 0.9107900804479897, 0.0, 12.747484837539638, 10.018690884927885, 7.671239535055213, 5.897634285006645, 9.85091543276072, 4.808384304883723, 3.9510161553623666, 3.238429856855247, 4.761586722652081, 3.614712181381168, 2.0699796363949226, 0.8352950896672816, 0.0), # 131 (12.265954652584163, 9.139589786882611, 10.32355404421337, 10.810495392825016, 9.49699197095801, 4.525010069718451, 3.9331106146001082, 3.4288680584824593, 4.917598172421039, 1.9587385205068681, 1.5290015573696185, 0.9078730542624567, 0.0, 12.711632614982527, 9.986603596887022, 7.645007786848092, 5.876215561520603, 9.835196344842078, 4.800415281875443, 3.9331106146001082, 3.2321500497988938, 4.748495985479005, 3.6034984642750065, 2.0647108088426744, 0.8308717988075103, 0.0), # 132 (12.21468303152113, 9.090503102262165, 10.296642914689816, 10.776209367435175, 9.470114623166108, 4.516060882946651, 3.915016571211893, 3.4231740210944106, 4.909604369552646, 1.9515101432317519, 1.5236891236537742, 0.904906877396386, 0.0, 12.674876579855821, 9.953975651360244, 7.618445618268871, 5.854530429695254, 9.819208739105292, 4.792443629532175, 3.915016571211893, 3.2257577735333225, 4.735057311583054, 3.5920697891450595, 2.059328582937963, 0.8264093729329243, 0.0), # 133 (12.162342344054133, 9.040908441004726, 10.26911881352444, 10.741222834838059, 9.442513286422153, 4.5069316961508425, 3.896702195167445, 3.4174510154918845, 4.90145330068946, 1.9441783127406937, 1.518299289704792, 0.9018861866417278, 0.0, 12.637174321135817, 9.920748053059004, 7.5914964485239596, 5.83253493822208, 9.80290660137892, 4.784431421688638, 3.896702195167445, 3.21923692582203, 4.721256643211077, 3.5804076116126873, 2.053823762704888, 0.8219007673640661, 0.0), # 134 (12.108881678095097, 8.990728311636257, 10.24093576083773, 10.705480161897759, 9.414159845219846, 4.4975999661999175, 3.8781356564364877, 3.4116719515568206, 4.893121958745757, 1.9367283785975222, 1.5128207393639534, 0.898805618790433, 0.0, 12.59848342779883, 9.88686180669476, 7.5641036968197675, 5.810185135792565, 9.786243917491515, 4.776340732179549, 3.8781356564364877, 3.212571404428512, 4.707079922609923, 3.5684933872992537, 2.048187152167546, 0.817338937421478, 0.0), # 135 (12.05425012155593, 8.93988522268272, 10.212047776750177, 10.668925715478352, 9.385026184052883, 4.488043149962771, 3.8592851249887445, 3.4058097391711617, 4.884587336635816, 1.9291456903660635, 1.5072421564725416, 0.8956598106344515, 0.0, 12.558761488821151, 9.852257916978965, 7.536210782362707, 5.787437071098189, 9.769174673271632, 4.768133634839627, 3.8592851249887445, 3.205745107116265, 4.6925130920264415, 3.556308571826118, 2.042409555350036, 0.812716838425702, 0.0), # 136 (11.998396762348548, 8.888301682670086, 10.18240888138228, 10.631503862443932, 9.355084187414965, 4.478238704308296, 3.8401187707939393, 3.399837288216851, 4.875826427273916, 1.9214155976101461, 1.5015522248718383, 0.8924433989657341, 0.0, 12.517966093179089, 9.816877388623073, 7.507761124359191, 5.764246792830437, 9.751652854547832, 4.759772203503592, 3.8401187707939393, 3.1987419316487826, 4.6775420937074825, 3.543834620814645, 2.036481776276456, 0.8080274256972807, 0.0), # 137 (11.941270688384867, 8.835900200124316, 10.15197309485452, 10.593158969658578, 9.32430573979979, 4.4681640861053875, 3.8206047638217933, 3.393727508575828, 4.8668162235743315, 1.913523449893597, 1.4957396284031257, 0.889151020576231, 0.0, 12.476054829848946, 9.78066122633854, 7.478698142015627, 5.740570349680789, 9.733632447148663, 4.751218512006159, 3.8206047638217933, 3.1915457757895624, 4.662152869899895, 3.5310529898861933, 2.0303946189709046, 0.8032636545567561, 0.0), # 138 (11.882820987576796, 8.782603283571376, 10.120694437287398, 10.553835403986378, 9.292662725701055, 4.457796752222938, 3.800711274042032, 3.3874533101300353, 4.85753371845134, 1.9054545967802445, 1.4897930509076862, 0.8857773122578926, 0.0, 12.432985287807028, 9.743550434836816, 7.448965254538431, 5.716363790340733, 9.71506743690268, 4.742434634182049, 3.800711274042032, 3.184140537302099, 4.646331362850527, 3.517945134662127, 2.0241388874574797, 0.7984184803246707, 0.0), # 139 (11.822996747836257, 8.72833344153723, 10.088526928801404, 10.513477532291418, 9.26012702961246, 4.447114159529844, 3.780406471424378, 3.3809876027614147, 4.847955904819222, 1.8971943878339157, 1.4837011762268022, 0.8823169108026693, 0.0, 12.38871505602964, 9.70548601882936, 7.41850588113401, 5.691583163501746, 9.695911809638444, 4.733382643865981, 3.780406471424378, 3.176510113949888, 4.63006351480623, 3.5044925107638067, 2.017705385760281, 0.7934848583215663, 0.0), # 140 (11.761747057075162, 8.673013182547843, 10.055424589517022, 10.472029721437782, 9.226670536027703, 4.436093764894997, 3.7596585259385567, 3.374303296351908, 4.838059775592251, 1.8887281726184386, 1.477452688201756, 0.8787644530025115, 0.0, 12.34320172349308, 9.666408983027624, 7.38726344100878, 5.6661845178553145, 9.676119551184502, 4.724024614892672, 3.7596585259385567, 3.168638403496426, 4.613335268013851, 3.490676573812595, 2.0110849179034047, 0.7884557438679859, 0.0), # 141 (11.69902100320542, 8.616565015129181, 10.02134143955475, 10.429436338289557, 9.192265129440482, 4.424713025187291, 3.7384356075542886, 3.367373300783457, 4.827822323684707, 1.8800413006976404, 1.4710362706738296, 0.8751145756493696, 0.0, 12.296402879173653, 9.626260332143064, 7.355181353369148, 5.64012390209292, 9.655644647369414, 4.71432262109684, 3.7384356075542886, 3.160509303705208, 4.596132564720241, 3.4764787794298533, 2.0042682879109504, 0.7833240922844712, 0.0), # 142 (11.634767674138946, 8.558911447807208, 9.986231499035082, 10.385641749710825, 9.156882694344494, 4.412949397275621, 3.7167058862412983, 3.360170525938002, 4.817220542010869, 1.871119121635349, 1.4644406074843055, 0.8713619155351939, 0.0, 12.248276112047666, 9.584981070887132, 7.322203037421526, 5.6133573649060455, 9.634441084021738, 4.704238736313203, 3.7167058862412983, 3.1521067123397293, 4.578441347172247, 3.4618805832369426, 1.9972462998070164, 0.7780828588915646, 0.0), # 143 (11.56893615778766, 8.499974989107892, 9.950048788078501, 10.340590322565676, 9.12049511523344, 4.400780338028881, 3.6944375319693092, 3.3526678816974873, 4.806231423485011, 1.8619469849953916, 1.4576543824744654, 0.867501109451935, 0.0, 12.198779011091421, 9.542512203971285, 7.288271912372326, 5.585840954986173, 9.612462846970022, 4.693735034376482, 3.6944375319693092, 3.1434145271634857, 4.56024755761672, 3.446863440855226, 1.9900097576157, 0.7727249990098085, 0.0), # 144 (11.501475542063469, 8.439678147557194, 9.912747326805505, 10.294226423718191, 9.083074276601018, 4.388183304315964, 3.6715987147080456, 3.344838277943853, 4.794831961021412, 1.8525102403415963, 1.4506662794855925, 0.8635267941915434, 0.0, 12.14786916528122, 9.498794736106976, 7.253331397427962, 5.557530721024787, 9.589663922042824, 4.682773589121394, 3.6715987147080456, 3.1344166459399743, 4.541537138300509, 3.4314088079060645, 1.9825494653611013, 0.7672434679597451, 0.0), # 145 (11.432334914878291, 8.377943431681082, 9.874281135336586, 10.246494420032459, 9.044592062940927, 4.375135753005765, 3.6481576044272312, 3.336654624559041, 4.782999147534349, 1.8427942372377903, 1.4434649823589683, 0.8594336065459691, 0.0, 12.095504163593366, 9.453769672005658, 7.21732491179484, 5.52838271171337, 9.565998295068699, 4.671316474382658, 3.6481576044272312, 3.125096966432689, 4.522296031470463, 3.41549814001082, 1.9748562270673173, 0.7616312210619166, 0.0), # 146 (11.361463364144042, 8.314693350005518, 9.83460423379223, 10.19733867837256, 9.005020358746862, 4.361615140967176, 3.6240823710965873, 3.3280898314249927, 4.770709975938102, 1.8327843252478015, 1.4360391749358754, 0.855216183307163, 0.0, 12.041641595004167, 9.407378016378791, 7.180195874679377, 5.498352975743403, 9.541419951876204, 4.65932576399499, 3.6240823710965873, 3.1154393864051255, 4.502510179373431, 3.3991128927908543, 1.966920846758446, 0.7558812136368653, 0.0), # 147 (11.288809977772631, 8.24985041105647, 9.793670642292932, 10.146703565602587, 8.964331048512523, 4.347598925069094, 3.599341184685839, 3.3191168084236504, 4.757941439146947, 1.822465853935457, 1.428377541057596, 0.8508691612670749, 0.0, 11.986239048489919, 9.359560773937822, 7.141887705287981, 5.4673975618063695, 9.515882878293894, 4.646763531793111, 3.599341184685839, 3.105427803620781, 4.482165524256262, 3.38223452186753, 1.9587341284585866, 0.7499864010051337, 0.0), # 148 (11.214323843675977, 8.1833371233599, 9.751434380959186, 10.094533448586619, 8.922496016731612, 4.33306456218041, 3.573902215164709, 3.3097084654369557, 4.744670530075158, 1.8118241728645852, 1.4204687645654126, 0.8463871772176558, 0.0, 11.929254113026934, 9.310258949394212, 7.102343822827062, 5.4354725185937545, 9.489341060150316, 4.6335918516117385, 3.573902215164709, 3.09504611584315, 4.461248008365806, 3.3648444828622073, 1.950286876191837, 0.7439397384872637, 0.0), # 149 (11.137954049765991, 8.115075995441773, 9.707849469911476, 10.040772694188746, 8.879487147897825, 4.317989509170021, 3.5477336325029207, 3.29983771234685, 4.730874241637018, 1.8008446315990123, 1.412301529300607, 0.8417648679508558, 0.0, 11.870644377591507, 9.259413547459413, 7.061507646503035, 5.402533894797036, 9.461748483274036, 4.61977279728559, 3.5477336325029207, 3.084278220835729, 4.439743573948912, 3.3469242313962493, 1.9415698939822956, 0.7377341814037977, 0.0), # 150 (11.059649683954586, 8.044989535828057, 9.6628699292703, 9.985365669273047, 8.835276326504857, 4.302351222906816, 3.5208036066701984, 3.2894774590352758, 4.716529566746802, 1.789512579702568, 1.4038645191044614, 0.8369968702586252, 0.0, 11.810367431159946, 9.206965572844876, 7.019322595522306, 5.368537739107703, 9.433059133493604, 4.605268442649386, 3.5208036066701984, 3.0731080163620117, 4.417638163252429, 3.3284552230910167, 1.9325739858540603, 0.731362685075278, 0.0), # 151 (10.979359834153682, 7.973000253044715, 9.616449779156152, 9.928256740703617, 8.789835437046412, 4.286127160259694, 3.4930803076362653, 3.2786006153841747, 4.701613498318786, 1.7778133667390779, 1.3951464178182584, 0.8320778209329146, 0.0, 11.748380862708558, 9.15285603026206, 6.975732089091292, 5.333440100217232, 9.403226996637573, 4.590040861537845, 3.4930803076362653, 3.061519400185496, 4.394917718523206, 3.309418913567873, 1.9232899558312306, 0.7248182048222469, 0.0), # 152 (10.897033588275185, 7.899030655617714, 9.568543039689514, 9.86939027534453, 8.743136364016186, 4.269294778097547, 3.4645319053708437, 3.2671800912754865, 4.686103029267251, 1.7657323422723707, 1.3861359092832806, 0.8270023567656742, 0.0, 11.68464226121364, 9.097025924422415, 6.930679546416402, 5.297197026817111, 9.372206058534502, 4.574052127785681, 3.4645319053708437, 3.049496270069676, 4.371568182008093, 3.2897967584481775, 1.9137086079379029, 0.7180936959652467, 0.0), # 153 (10.81262003423102, 7.823003252073014, 9.519103730990887, 9.80871064005988, 8.695150991907875, 4.251831533289268, 3.43512656984366, 3.2551887965911552, 4.6699751525064706, 1.7532548558662742, 1.3768216773408095, 0.8217651145488547, 0.0, 11.6191092156515, 9.0394162600374, 6.884108386704048, 5.259764567598821, 9.339950305012941, 4.557264315227617, 3.43512656984366, 3.037022523778049, 4.347575495953937, 3.2695702133532945, 1.9038207461981775, 0.7111821138248196, 0.0), # 154 (10.72606825993309, 7.744840550936584, 9.468085873180756, 9.746162201713748, 8.645851205215184, 4.233714882703753, 3.404832471024433, 3.2425996412131215, 4.653206860950727, 1.7403662570846146, 1.3671924058321279, 0.8163607310744064, 0.0, 11.551739314998438, 8.97996804181847, 6.8359620291606396, 5.221098771253843, 9.306413721901453, 4.53963949769837, 3.404832471024433, 3.0240820590741087, 4.322925602607592, 3.2487207339045834, 1.8936171746361512, 0.7040764137215078, 0.0), # 155 (10.637327353293314, 7.664465060734389, 9.415443486379615, 9.68168932717022, 8.595208888431804, 4.214922283209894, 3.37361777888289, 3.2293855350233276, 4.635775147514292, 1.727051895491221, 1.357236778598518, 0.8107838431342794, 0.0, 11.48249014823076, 8.918622274477073, 6.7861838929925895, 5.181155686473662, 9.271550295028584, 4.521139749032659, 3.37361777888289, 3.0106587737213526, 4.297604444215902, 3.2272297757234076, 1.8830886972759233, 0.6967695509758537, 0.0), # 156 (10.546346402223609, 7.581799289992394, 9.361130590707957, 9.615236383293386, 8.543195926051439, 4.195431191676585, 3.3414506633887537, 3.215519387903715, 4.6176570051114485, 1.7132971206499201, 1.3469434794812618, 0.8050290875204243, 0.0, 11.411319304324769, 8.855319962724668, 6.734717397406309, 5.1398913619497595, 9.235314010222897, 4.501727143065201, 3.3414506633887537, 2.996736565483275, 4.2715979630257195, 3.205078794431129, 1.8722261181415913, 0.6892544809083996, 0.0), # 157 (10.450553324967336, 7.495248171657732, 9.302523946219415, 9.544258060733807, 8.48743569881293, 4.174003322325641, 3.3075747046495003, 3.200048222203801, 4.597442309412912, 1.698678070701901, 1.335972342259087, 0.7988866158226731, 0.0, 11.335080203181485, 8.787752774049402, 6.679861711295434, 5.096034212105701, 9.194884618825824, 4.480067511085322, 3.3075747046495003, 2.9814309445183147, 4.243717849406465, 3.1814193535779363, 1.8605047892438833, 0.6813861974234302, 0.0), # 158 (10.335201473769764, 7.395933826819331, 9.224527454803487, 9.454176016727876, 8.414178555796186, 4.143513212539135, 3.2677489343700015, 3.17754122744589, 4.566999388570334, 1.6807983479345614, 1.3223972849777657, 0.7911589610963629, 0.0, 11.235598705688274, 8.70274857205999, 6.611986424888827, 5.042395043803683, 9.133998777140668, 4.448557718424246, 3.2677489343700015, 2.9596522946708106, 4.207089277898093, 3.1513920055759597, 1.8449054909606977, 0.6723576206199392, 0.0), # 159 (10.198820932866035, 7.28304080162725, 9.125574450948537, 9.343506385929302, 8.321992122590341, 4.103212058438943, 3.221570623868649, 3.147432860557619, 4.525465106040038, 1.6594219781520132, 1.3060272186755595, 0.7817252273702489, 0.0, 11.110988852451014, 8.598977501072737, 6.530136093377798, 4.978265934456038, 9.050930212080075, 4.406406004780667, 3.221570623868649, 2.9308657560278157, 4.160996061295171, 3.114502128643102, 1.8251148901897079, 0.6620946183297501, 0.0), # 160 (10.042510876420344, 7.1573051140366015, 9.006721467228694, 9.213301128944565, 8.211833582663305, 4.053588080615757, 3.1693770122048135, 3.1101003109807053, 4.473387224599541, 1.6347303676098288, 1.2870063860732652, 0.77067287137255, 0.0, 10.962523662746737, 8.477401585098049, 6.435031930366326, 4.904191102829485, 8.946774449199083, 4.354140435372988, 3.1693770122048135, 2.8954200575826836, 4.105916791331652, 3.071100376314856, 1.801344293445739, 0.6506641012760548, 0.0), # 161 (9.8673704785969, 7.01946278200249, 8.86902503621808, 9.064612206380144, 8.08466011948299, 3.9951294996602726, 3.1115053384378664, 3.0659207681568685, 4.411313507026364, 1.6069049225635816, 1.2654790298916783, 0.7580893498314843, 0.0, 10.791476155852466, 8.338982848146326, 6.3273951494583915, 4.820714767690744, 8.822627014052728, 4.292289075419616, 3.1115053384378664, 2.8536639283287664, 4.042330059741495, 3.0215374021267154, 1.773805007243616, 0.6381329801820447, 0.0), # 162 (9.674498913559898, 6.870249823480022, 8.71354169049082, 8.898491578842531, 7.941428916517308, 3.928324536163185, 3.048292841627181, 3.015271421527823, 4.339791716098023, 1.5761270492688444, 1.2415893928515955, 0.7440621194752707, 0.0, 10.599119351045232, 8.184683314227977, 6.207946964257977, 4.728381147806532, 8.679583432196045, 4.221379990138953, 3.048292841627181, 2.8059460972594175, 3.970714458258654, 2.9661638596141775, 1.742708338098164, 0.6245681657709112, 0.0), # 163 (9.464995355473539, 6.710402256424303, 8.54132796262104, 8.71599120693821, 7.783097157234176, 3.853661410715189, 2.9800767608321266, 2.9585294605352903, 4.259369614592037, 1.5425781539811894, 1.2154817176738126, 0.7286786370321272, 0.0, 10.386726267602059, 8.015465007353399, 6.077408588369063, 4.627734461943566, 8.518739229184074, 4.141941244749407, 2.9800767608321266, 2.752615293367992, 3.891548578617088, 2.905330402312737, 1.7082655925242083, 0.6100365687658459, 0.0), # 164 (9.239958978502024, 6.5406560987904445, 8.353440385182864, 8.518163051273666, 7.610622025101502, 3.771628343906979, 2.9071943351120755, 2.8960720746209856, 4.1705949652859235, 1.5064396429561904, 1.1873002470791263, 0.7120263592302724, 0.0, 10.155569924799979, 7.832289951532995, 5.936501235395631, 4.51931892886857, 8.341189930571847, 4.05450090446938, 2.9071943351120755, 2.694020245647842, 3.805311012550751, 2.839387683757889, 1.670688077036573, 0.5946050998900405, 0.0), # 165 (9.000488956809557, 6.361747368533551, 8.150935490750417, 8.306059072455376, 7.4249607035872005, 3.682713556329251, 2.8299828035264003, 2.8282764532266285, 4.074015530957201, 1.4678929224494195, 1.157189223788332, 0.6941927427979253, 0.0, 9.906923341916015, 7.636120170777177, 5.78594611894166, 4.403678767348258, 8.148031061914402, 3.95958703451728, 2.8299828035264003, 2.630509683092322, 3.7124803517936003, 2.768686357485126, 1.6301870981500834, 0.5783406698666865, 0.0), # 166 (8.747684464560333, 6.174412083608727, 7.934869811897824, 8.080731231089835, 7.2270703761591815, 3.5874052685726983, 2.7487794051344725, 2.7555197857939366, 3.9701790743833865, 1.4271193987164503, 1.1252928905222266, 0.6752652444633036, 0.0, 9.642059538227196, 7.427917689096338, 5.626464452611132, 4.28135819614935, 7.940358148766773, 3.8577277001115116, 2.7487794051344725, 2.562432334694784, 3.6135351880795907, 2.693577077029946, 1.5869739623795647, 0.5613101894189753, 0.0), # 167 (8.482644675918554, 5.979386261971081, 7.706299881199207, 7.843231487783524, 7.017908226285359, 3.4861917012280164, 2.663921378995663, 2.6781792617646265, 3.8596333583419993, 1.3843004780128556, 1.0917554900016058, 0.6553313209546264, 0.0, 9.362251533010546, 7.20864453050089, 5.458777450008029, 4.152901434038566, 7.7192667166839986, 3.7494509664704774, 2.663921378995663, 2.490136929448583, 3.5089541131426794, 2.614410495927842, 1.5412599762398416, 0.5435805692700985, 0.0), # 168 (8.206468765048422, 5.777405921575724, 7.466282231228694, 7.594611803142927, 6.798431437433646, 3.3795610748859013, 2.5757459641693443, 2.5966320705804184, 3.7429261456105576, 1.339617566594208, 1.0567212649472661, 0.6344784290001119, 0.0, 9.0687723455431, 6.9792627190012295, 5.28360632473633, 4.018852699782624, 7.485852291221115, 3.635284898812586, 2.5757459641693443, 2.413972196347072, 3.399215718716823, 2.5315372677143095, 1.493256446245739, 0.5252187201432478, 0.0), # 169 (7.9202559061141375, 5.569207080377758, 7.215873394560408, 7.335924137774526, 6.569597193071951, 3.268001610137046, 2.4845903997148873, 2.5112554016830275, 3.620605198966578, 1.2932520707160806, 1.020334458080004, 0.6127940253279787, 0.0, 8.762894995101878, 6.740734278607764, 5.101672290400019, 3.879756212148241, 7.241210397933156, 3.5157575623562387, 2.4845903997148873, 2.3342868643836043, 3.2847985965359756, 2.4453080459248424, 1.4431746789120816, 0.5062915527616144, 0.0), # 170 (7.6251052732799005, 5.355525756332291, 6.956129903768475, 7.068220452284813, 6.3323626766681915, 3.152001527572146, 2.390791924691664, 2.4224264445141737, 3.4932182811875796, 1.2453853966340462, 0.9827393121206148, 0.5903655666664452, 0.0, 8.445892500963913, 6.494021233330896, 4.913696560603074, 3.736156189902138, 6.986436562375159, 3.3913970223198433, 2.390791924691664, 2.2514296625515327, 3.1661813383340958, 2.356073484094938, 1.391225980753695, 0.4868659778483902, 0.0), # 171 (7.322116040709912, 5.137097967394431, 6.688108291427019, 6.792552707280267, 6.087685071690277, 3.0320490477818964, 2.2946877781590462, 2.3305223885155746, 3.3613131550510804, 1.1961989506036783, 0.9440800697898953, 0.56728050974373, 0.0, 8.119037882406225, 6.24008560718103, 4.720400348949476, 3.588596851811034, 6.722626310102161, 3.2627313439218044, 2.2946877781590462, 2.165749319844212, 3.0438425358451386, 2.2641842357600894, 1.337621658285404, 0.4670089061267665, 0.0), # 172 (7.012387382568372, 4.914659731519285, 6.412865090110164, 6.509972863367375, 5.836521561606121, 2.9086323913569916, 2.196615199176405, 2.235920423128947, 3.225437583334597, 1.145874138880549, 0.9045009738086416, 0.5436263112880514, 0.0, 7.783604158705848, 5.979889424168563, 4.522504869043208, 3.437622416641646, 6.450875166669194, 3.130288592380526, 2.196615199176405, 2.077594565254994, 2.9182607808030605, 2.169990954455792, 1.282573018022033, 0.446787248319935, 0.0), # 173 (6.697018473019482, 4.6889470666619575, 6.131456832392036, 6.221532881152618, 5.579829329883635, 2.7822397788881266, 2.096911426803113, 2.1389977377960108, 3.08613932881565, 1.0945923677202316, 0.8641462668976501, 0.519490428027628, 0.0, 7.440864349139807, 5.7143947083039075, 4.32073133448825, 3.283777103160694, 6.1722786576313, 2.994596832914415, 2.096911426803113, 1.9873141277772333, 2.7899146649418176, 2.07384429371754, 1.2262913664784072, 0.42626791515108714, 0.0), # 174 (6.377108486227438, 4.460695990777558, 5.84494005084676, 5.928284721242486, 5.318565559990731, 2.653359430965997, 1.9959137000985407, 2.040131521958481, 2.943966154271756, 1.0425350433782987, 0.8231601917777163, 0.49496031669067847, 0.0, 7.092091472985131, 5.444563483597462, 4.115800958888581, 3.1276051301348957, 5.887932308543512, 2.8561841307418736, 1.9959137000985407, 1.8952567364042836, 2.6592827799953653, 1.9760949070808291, 1.1689880101693522, 0.40551781734341447, 0.0), # 175 (6.053756596356447, 4.230642521821194, 5.554371278048459, 5.631280344243462, 5.053687435395322, 2.5224795681812964, 1.8939592581220606, 1.9396989650580787, 2.7994658224804327, 0.9898835721103237, 0.781686991169637, 0.470123434005421, 0.0, 6.738558549518844, 5.17135777405963, 3.9084349558481852, 2.9696507163309707, 5.5989316449608655, 2.71557855108131, 1.8939592581220606, 1.8017711201294973, 2.526843717697661, 1.8770934480811543, 1.1108742556096918, 0.38460386562010856, 0.0), # 176 (5.7280619775707065, 3.9995226777479713, 5.260807046571258, 5.331571710762027, 4.786152139565322, 2.3900884111247205, 1.791385339933044, 1.8380772565365193, 2.6531860962191995, 0.9368193601718788, 0.7398709077942084, 0.4450672367000743, 0.0, 6.381538598017975, 4.895739603700816, 3.699354538971042, 2.8104580805156356, 5.306372192438399, 2.5733081591511273, 1.791385339933044, 1.707206007946229, 2.393076069782661, 1.7771905702540096, 1.0521614093142517, 0.3635929707043611, 0.0), # 177 (5.401123804034416, 3.7680724765129963, 4.9653038889892835, 5.030210781404673, 4.516916855968639, 2.2566741803869648, 1.6885291845908623, 1.7356435858355217, 2.505674738265573, 0.8835238138185378, 0.6978561843722264, 0.41987918150285664, 0.0, 6.022304637759553, 4.618670996531422, 3.489280921861132, 2.6505714414556127, 5.011349476531146, 2.4299010201697304, 1.6885291845908623, 1.611910128847832, 2.2584584279843196, 1.6767369271348913, 0.9930607777978567, 0.34255204331936334, 0.0), # 178 (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179 ) passenger_allighting_rate = ( (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 0 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 1 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 2 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 3 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 4 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 5 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 6 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 7 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 8 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 9 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 10 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 11 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 12 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 13 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 14 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 15 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 16 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 17 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 18 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 19 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 20 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 21 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 22 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 23 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 24 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 25 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 26 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 27 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 28 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 29 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 30 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 31 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 32 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 33 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 34 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 35 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 36 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 37 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 38 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 39 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 40 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 41 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 42 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 43 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 44 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 45 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 46 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 47 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 48 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 49 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 50 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 51 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 52 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 53 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 54 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 55 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 56 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 57 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 58 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 59 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 60 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 61 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 62 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 63 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 64 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 65 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 66 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 67 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 68 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 69 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 70 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 71 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 72 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 73 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 74 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 75 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 76 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 77 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 78 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 79 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 80 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 81 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 82 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 83 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 84 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 85 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 86 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 87 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 88 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 89 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 90 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 91 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 92 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 93 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 94 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 95 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 96 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 97 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 98 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 99 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 100 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 101 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 102 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 103 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 104 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 105 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 106 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 107 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 108 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 109 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 110 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 111 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 112 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 113 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 114 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 115 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 116 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 117 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 118 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 119 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 120 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 121 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 122 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 123 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 124 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 125 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 126 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 127 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 128 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 129 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 130 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 131 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 132 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 133 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 134 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 135 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 136 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 137 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 138 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 139 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 140 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 141 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 142 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 143 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 144 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 145 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 146 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 147 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 148 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 149 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 150 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 151 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 152 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 153 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 154 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 155 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 156 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 157 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 158 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 159 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 160 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 161 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 162 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 163 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 164 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 165 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 166 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 167 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 168 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 169 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 170 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 171 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 172 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 173 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 174 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 175 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 176 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 177 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 178 (0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 179 ) """ parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html """ #initial entropy entropy = 8991598675325360468762009371570610170 #index for seed sequence child child_seed_index = ( 1, # 0 70, # 1 )
278.962567
492
0.77179
32,987
260,830
6.102252
0.22712
0.354107
0.3398
0.643831
0.367207
0.361097
0.359929
0.359612
0.359532
0.359532
0
0.851416
0.094828
260,830
934
493
279.261242
0.001182
0.015378
0
0.200873
0
0
0
0
0
0
0
0
0
1
0
false
0.005459
0
0
0
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
e7061df923a2202dde12cd9c135dba5a5ad0d8a3
43
py
Python
app/usecase/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
2
2021-04-08T19:55:02.000Z
2021-04-08T19:57:07.000Z
app/usecase/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
null
null
null
app/usecase/__init__.py
wax911/anime-meta
5a707a75b277a9c0dc5b9d9447cea44a73d2f83c
[ "Apache-2.0" ]
null
null
null
from .interactors import ServiceInteractor
21.5
42
0.883721
4
43
9.5
1
0
0
0
0
0
0
0
0
0
0
0
0.093023
43
1
43
43
0.974359
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
e709caab4f3b3907930183ea4c6f3039dd6e9645
112
py
Python
generator.py
Marma92/nodeprojectsampler
fd3078ec2c1e870b146e19acd75a7b106872dcc2
[ "MIT" ]
null
null
null
generator.py
Marma92/nodeprojectsampler
fd3078ec2c1e870b146e19acd75a7b106872dcc2
[ "MIT" ]
null
null
null
generator.py
Marma92/nodeprojectsampler
fd3078ec2c1e870b146e19acd75a7b106872dcc2
[ "MIT" ]
null
null
null
#This file will contain the main, will ask you to do some choices to generate a project that fits to your needs
56
111
0.785714
22
112
4
0.863636
0
0
0
0
0
0
0
0
0
0
0
0.196429
112
1
112
112
0.977778
0.982143
0
null
1
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
e7196d85b15a1e5e7dc07bf761748f5a8923aac2
38
py
Python
alarme/extras/common/__init__.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
alarme/extras/common/__init__.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
1
2017-02-04T13:03:05.000Z
2017-02-04T13:03:05.000Z
alarme/extras/common/__init__.py
insolite/alarme
2312e88299a07d47435f475e5617213404e6d365
[ "MIT" ]
null
null
null
from .rf_device import SingleRFDevice
19
37
0.868421
5
38
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.941176
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
e74e945e467760bfe7fb71f2868ce3ee7467e3f9
96
py
Python
venv/lib/python3.8/site-packages/urllib3/contrib/socks.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/urllib3/contrib/socks.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/urllib3/contrib/socks.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/69/18/bd/7965e8f5911bf795d4c5e7f8676d421659e78db122028f473ac7a832de
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.458333
0
96
1
96
96
0.4375
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
99feffd7d63af6168eb35f8696b55508c677414c
57
py
Python
app/domain/repository/interfaces/abstract_repository.py
dmaiabjj/luiza-lab-api-challenger
8f55ebbdd49a170ca3fdf38da229d29bd0548adf
[ "MIT" ]
null
null
null
app/domain/repository/interfaces/abstract_repository.py
dmaiabjj/luiza-lab-api-challenger
8f55ebbdd49a170ca3fdf38da229d29bd0548adf
[ "MIT" ]
null
null
null
app/domain/repository/interfaces/abstract_repository.py
dmaiabjj/luiza-lab-api-challenger
8f55ebbdd49a170ca3fdf38da229d29bd0548adf
[ "MIT" ]
null
null
null
import abc class AbstractRepository(abc.ABC): pass
9.5
34
0.736842
7
57
6
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.192982
57
5
35
11.4
0.913043
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
414b1df260be41cbdaf327357a459e988ca5ce6f
297
py
Python
src/builtins/iostream.py
macaquedev/cobralang
af070ee96cf94970d97a413798e3e9e022749c20
[ "MIT" ]
null
null
null
src/builtins/iostream.py
macaquedev/cobralang
af070ee96cf94970d97a413798e3e9e022749c20
[ "MIT" ]
null
null
null
src/builtins/iostream.py
macaquedev/cobralang
af070ee96cf94970d97a413798e3e9e022749c20
[ "MIT" ]
null
null
null
from ..interpreter.interpreter import RTResult, Number, String def cb_print(symbol_table): print(str(symbol_table.get("value"))) return symbol_table.get("null") def cb_input(symbol_table): print(symbol_table.get("prompt")) return String(input(str(symbol_table.get("prompt"))))
24.75
62
0.734007
41
297
5.121951
0.439024
0.314286
0.266667
0.161905
0
0
0
0
0
0
0
0
0.121212
297
11
63
27
0.804598
0
0
0
0
0
0.070707
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.714286
0.428571
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
1
0
6
ec0691cc330d5060f6d761e7a31e0b2cdf83c86b
52,512
py
Python
test/test_generator.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
67
2021-01-17T20:12:44.000Z
2022-03-07T06:57:01.000Z
test/test_generator.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
null
null
null
test/test_generator.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
3
2021-04-17T09:19:31.000Z
2021-10-03T21:29:56.000Z
import pandas as pd import numpy as np import networkx as nx import pytest from kgextension.endpoints import EUOpenData, DBpedia from kgextension.generator import ( specific_relation_generator, direct_type_generator, unqualified_relation_generator, qualified_relation_generator, custom_sparql_generator, data_properties_generator ) class TestDirectTypeGenerator: def test1_dbpedia_boolean(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"], "uri_type_http://www.w3.org/2002/07/owl#Thing": [True, True, True], "uri_type_http://dbpedia.org/ontology/Company": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q24229398": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q43229": [True, True, False], "uri_type_http://dbpedia.org/ontology/Agent": [True, True, False], "uri_type_http://dbpedia.org/ontology/Organisation": [True, True, False], "uri_type_http://schema.org/Organization": [True, True, False], "uri_type_http://dbpedia.org/ontology/Place": [False, False, True], "uri_type_http://dbpedia.org/ontology/Location": [False, False, True], "uri_type_http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing": [False, False, True], "uri_type_http://schema.org/Place": [False, False, True] }) result = direct_type_generator(df, "uri", result_type = "boolean", bundled_mode=True) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test2_dbpedia_boolean_unbundled_multiplefilter(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"], "uri_type_http://www.w3.org/2002/07/owl#Thing": [True, True, True], "uri_type_http://schema.org/Organization": [True, True, False], "uri_type_http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing": [False, False, True], "uri_type_http://schema.org/Place": [False, False, True] }) result = direct_type_generator(df, ["uri"], result_type = "boolean", bundled_mode=False, regex_filter=["w3.org", "schema.org"]) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test3_dbpedia_boolean_brokenlink(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri_type_http://www.w3.org/2002/07/owl#Thing": [True, True, False], "uri_type_http://dbpedia.org/ontology/Company": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q24229398": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q43229": [True, True, False], "uri_type_http://dbpedia.org/ontology/Agent": [True, True, False], "uri_type_http://dbpedia.org/ontology/Organisation": [True, True, False], "uri_type_http://schema.org/Organization": [True, True, False] }) result = direct_type_generator(df, ["uri"], result_type = "boolean", bundled_mode=True) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test4_dbpedia_boolean_unbundled_brokenlink_nofill(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri_type_http://www.w3.org/2002/07/owl#Thing": [True, True, False], "uri_type_http://dbpedia.org/ontology/Company": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent": [True, True, False], "uri_type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q24229398": [True, True, False], "uri_type_http://www.wikidata.org/entity/Q43229": [True, True, False], "uri_type_http://dbpedia.org/ontology/Agent": [True, True, False], "uri_type_http://dbpedia.org/ontology/Organisation": [True, True, False], "uri_type_http://schema.org/Organization": [True, True, False] }) result = direct_type_generator(df, ["uri"], result_type = "boolean", bundled_mode=True) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test5_dbpedia_boolean_multipleinputs_brokenlink_missing(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri1": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri2": [np.nan, "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri1": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri2": [np.nan, "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"], "type_http://www.w3.org/2002/07/owl#Thing": [True, True, True], "type_http://dbpedia.org/ontology/Company": [True, True, False], "type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent": [True, True, False], "type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson": [True, True, False], "type_http://www.wikidata.org/entity/Q24229398": [True, True, False], "type_http://www.wikidata.org/entity/Q43229": [True, True, False], "type_http://dbpedia.org/ontology/Agent": [True, True, False], "type_http://dbpedia.org/ontology/Organisation": [True, True, False], "type_http://schema.org/Organization": [True, True, False], "type_http://dbpedia.org/ontology/Location": [False, False, True], "type_http://dbpedia.org/ontology/Place": [False, False, True], "type_http://schema.org/Place": [False, False, True], "type_http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing": [False, False, True] }) result = direct_type_generator(df, ["uri1", "uri2"], result_type = "boolean", bundled_mode=True, endpoint=DBpedia) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test6_dbpedia_boolean_multipleinputs_brokenlink_missing_uridatamodel(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri1": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri2": [np.nan, "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"] }) expected_result_df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri1": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_WatermillXX"], "uri2": [np.nan, "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"], "type_http://www.w3.org/2002/07/owl#Thing": [True, True, True], "type_http://dbpedia.org/ontology/Company": [True, True, False], "type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent": [True, True, False], "type_http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson": [True, True, False], "type_http://www.wikidata.org/entity/Q24229398": [True, True, False], "type_http://www.wikidata.org/entity/Q43229": [True, True, False], "type_http://dbpedia.org/ontology/Agent": [True, True, False], "type_http://dbpedia.org/ontology/Organisation": [True, True, False], "type_http://schema.org/Organization": [True, True, False], "type_http://dbpedia.org/ontology/Location": [False, False, True], "type_http://dbpedia.org/ontology/Place": [False, False, True], "type_http://schema.org/Place": [False, False, True], "type_http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing": [False, False, True] }) result = direct_type_generator(df, ["uri1", "uri2"], result_type = "boolean", bundled_mode=True, uri_data_model=True) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test7_eurostat_boolean(self): df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"] }) expected_result_df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"], "uri_type_http://data.europa.eu/bud#Article": [True, False, False], "uri_type_http://data.europa.eu/3rx#Article": [True, False, False], "uri_type_http://data.europa.eu/bud#Item": [False, True, True], "uri_type_http://data.europa.eu/3rx#Item": [False, True, True] }) result = direct_type_generator(df, ["uri"], result_type = "boolean", bundled_mode=True, endpoint=EUOpenData) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test8_eurostat_count_multipleinputs(self): df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri1": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"], "uri2": ["http://data.europa.eu/4rx/ABB2018/SEC301_03_02", "http://data.europa.eu/4rx/ABB2018/SEC301_02", "http://data.europa.eu/4rx/ABB2018/SEC301_01_03"] }) expected_result_df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri1": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"], "uri2": ["http://data.europa.eu/4rx/ABB2018/SEC301_03_02", "http://data.europa.eu/4rx/ABB2018/SEC301_02", "http://data.europa.eu/4rx/ABB2018/SEC301_01_03"], "type_http://data.europa.eu/bud#Article": [2, 0, 1], "type_http://data.europa.eu/3rx#Article": [2, 0, 1], "type_http://data.europa.eu/bud#Item": [0, 1, 1], "type_http://data.europa.eu/3rx#Item": [0, 1, 1], "type_http://data.europa.eu/bud#Chapter": [0, 1, 0], "type_http://data.europa.eu/3rx#Chapter": [0, 1, 0] }) result = direct_type_generator(df, ["uri1","uri2"], result_type = "count", bundled_mode=True, endpoint=EUOpenData) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test9_eurostat_boolean_multipleinputs(self): df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri1": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"], "uri2": ["http://data.europa.eu/4rx/ABB2018/SEC301_03_02", "http://data.europa.eu/4rx/ABB2018/SEC301_02", "http://data.europa.eu/4rx/ABB2018/SEC301_01_03"] }) expected_result_df = pd.DataFrame({ "label": ["Element 1", "Element 2", "Element 3"], "uri1": ["http://data.europa.eu/4rx/ABB2018/SEC301_01_01", "http://data.europa.eu/4rx/ABB2018/SEC301_01_02_01", "http://data.europa.eu/4rx/ABB2018/SEC301_02_77_01"], "uri2": ["http://data.europa.eu/4rx/ABB2018/SEC301_03_02", "http://data.europa.eu/4rx/ABB2018/SEC301_02", "http://data.europa.eu/4rx/ABB2018/SEC301_01_03"], "type_http://data.europa.eu/bud#Article": [True, False, True], "type_http://data.europa.eu/3rx#Article": [True, False, True], "type_http://data.europa.eu/bud#Item": [False, True, True], "type_http://data.europa.eu/3rx#Item": [False, True, True], "type_http://data.europa.eu/bud#Chapter": [False, True, False], "type_http://data.europa.eu/3rx#Chapter": [False, True, False] }) result = direct_type_generator(df, ["uri1","uri2"], result_type = "boolean", bundled_mode=True, endpoint=EUOpenData) pd.testing.assert_frame_equal(result, expected_result_df, check_like = True) def test10_hierarchy(self): df = pd.DataFrame({ "label": ["Explorair", "Rhein-Flugzeugbau", "Buxton Watermill"], "uri": ["http://dbpedia.org/resource/Explorair", "http://dbpedia.org/resource/Rhein-Flugzeugbau", "http://dbpedia.org/resource/Buxton_Watermill"] }) expected_nodes = ["http://dbpedia.org/ontology/Agent", "http://dbpedia.org/ontology/Company", "http://dbpedia.org/ontology/Location", "http://dbpedia.org/ontology/Organisation", "http://dbpedia.org/ontology/Place", "http://schema.org/Organization", "http://schema.org/Place", "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent", "http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson", "http://www.w3.org/2002/07/owl#Thing", "http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing", "http://www.wikidata.org/entity/Q24229398", "http://www.wikidata.org/entity/Q43229", 'http://umbel.org/umbel/rc/Agent-Generic', 'http://purl.org/goodrelations/v1#BusinessEntity', 'http://umbel.org/umbel/rc/Business','http://umbel.org/umbel/rc/Organization', 'http://www.openlinksw.com/virtpivot/icons/Business','http://www.openlinksw.com/virtpivot/icons/Organization', 'http://www.w3.org/2002/07/owl#Thing','http://xmlns.com/foaf/0.1/Organization', 'http://umbel.org/umbel/rc/Place','http://www.wikidata.org/entity/Q874405'] expected_edges = [('http://dbpedia.org/ontology/Company','http://purl.org/goodrelations/v1#BusinessEntity'), ('http://dbpedia.org/ontology/Company','http://dbpedia.org/ontology/Organisation'), ('http://dbpedia.org/ontology/Company', 'http://umbel.org/umbel/rc/Business'), ('http://purl.org/goodrelations/v1#BusinessEntity','http://xmlns.com/foaf/0.1/Organization'), ('http://purl.org/goodrelations/v1#BusinessEntity','http://www.openlinksw.com/virtpivot/icons/Business'), ('http://dbpedia.org/ontology/Organisation','http://dbpedia.org/ontology/Agent'), ('http://dbpedia.org/ontology/Organisation','http://umbel.org/umbel/rc/Organization'), ('http://dbpedia.org/ontology/Place',"http://www.w3.org/2002/07/owl#Thing"), ('http://dbpedia.org/ontology/Place','http://umbel.org/umbel/rc/Place'), ('http://www.wikidata.org/entity/Q43229','http://www.wikidata.org/entity/Q874405'), ('http://dbpedia.org/ontology/Agent', 'http://www.w3.org/2002/07/owl#Thing'), ('http://dbpedia.org/ontology/Agent','http://umbel.org/umbel/rc/Agent-Generic'), ('http://xmlns.com/foaf/0.1/Organization', 'http://www.openlinksw.com/virtpivot/icons/Organization')] expectedGraph = nx.DiGraph() expectedGraph.add_nodes_from(expected_nodes) expectedGraph.add_edges_from(expected_edges) result = direct_type_generator(df, ["uri"], result_type = "boolean", bundled_mode=False, hierarchy = True) outputhierarchyGraph = result.attrs['hierarchy'] assert nx.is_isomorphic(expectedGraph, outputhierarchyGraph) class TestSpecificRelationGenerator: def test1_dbpedia_direct_relation_one_col(self): input = pd.DataFrame({ 'a':[0, 1], 'new_link': ['http://dbpedia.org/resource/Stuttgart', 'http://dbpedia.org/resource/Tübingen'] }) path_expected = "test/data/generator/srg_1_expected.csv" expected = pd.read_csv(path_expected) output = specific_relation_generator(input, 'new_link') expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) def test2_dbpedia_direct_relation_two_cols(self): input = pd.DataFrame({ 'a':['http://dbpedia.org/resource/Boris_Palmer', 'http://dbpedia.org/resource/Patrick_Schmollinger'], 'b': ['http://dbpedia.org/resource/13', 'http://dbpedia.org/resource/753'] }) path_expected = "test/data/generator/srg_2_expected.csv" expected = pd.read_csv(path_expected) output = specific_relation_generator(input, ['a', 'b']) expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) def test3_dbpedia_hierarchy_relation_depth_1(self): input = pd.DataFrame({ 'a': ['http://dbpedia.org/resource/1913', 'http://dbpedia.org/resource/2020'] }) expected_nodes = ['http://dbpedia.org/resource/Category:1913', 'http://dbpedia.org/resource/Category:2020', 'http://dbpedia.org/resource/Category:1910s', 'http://dbpedia.org/resource/Category:Years', 'http://dbpedia.org/resource/Category:2020s', 'http://dbpedia.org/resource/Category:Years_in_the_future'] expected_edges = [('http://dbpedia.org/resource/Category:1913','http://dbpedia.org/resource/Category:1910s'), ('http://dbpedia.org/resource/Category:1913','http://dbpedia.org/resource/Category:Years'), ('http://dbpedia.org/resource/Category:2020', 'http://dbpedia.org/resource/Category:2020s'), ('http://dbpedia.org/resource/Category:2020','http://dbpedia.org/resource/Category:Years'), ('http://dbpedia.org/resource/Category:2020','http://dbpedia.org/resource/Category:Years_in_the_future')] expectedGraph = nx.DiGraph() expectedGraph.add_nodes_from(expected_nodes) expectedGraph.add_edges_from(expected_edges) output = specific_relation_generator(input, 'a', hierarchy_relation='http://www.w3.org/2004/02/skos/core#broader', max_hierarchy_depth=1) outputhierarchyGraph = output.attrs['hierarchy'] assert nx.is_isomorphic(expectedGraph, outputhierarchyGraph) def test4_dbpedia_nonexisting_uris(self): input = pd.DataFrame({ 'a': ['http://dbpedia.org/fake/Angela_Merkel', 'http://dbpedia.org/fake/Donald_Trump'] }) expected = pd.DataFrame({ 'a': ['http://dbpedia.org/fake/Angela_Merkel', 'http://dbpedia.org/fake/Donald_Trump'] }) output = specific_relation_generator(input, 'a', hierarchy_relation='http://www.w3.org/2004/02/skos/core#broader', max_hierarchy_depth=2) pd.testing.assert_frame_equal(output, expected, check_like = True) def test5_dbpedia_duplicate_uris(self): input = pd.DataFrame({ 'a': ['http://dbpedia.org/resource/1913', 'http://dbpedia.org/resource/1913', 'http://dbpedia.org/fake/1913'] }) expected = pd.DataFrame({ 'a': ['http://dbpedia.org/resource/1913', 'http://dbpedia.org/resource/1913', 'http://dbpedia.org/fake/1913'], 'a_in_boolean_http://dbpedia.org/resource/Category:1913': [True, True, np.nan] }) output = specific_relation_generator(input, 'a') expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) def test6_dbpedia_hierarchy_relation_two_cols(self): input = pd.DataFrame({ 'a':['http://dbpedia.org/resource/1913'], 'b': ['http://dbpedia.org/resource/2020'] }) expected_nodes = ['http://dbpedia.org/resource/Category:1913', 'http://dbpedia.org/resource/Category:2020', 'http://dbpedia.org/resource/Category:1910s', 'http://dbpedia.org/resource/Category:Years', 'http://dbpedia.org/resource/Category:2020s', 'http://dbpedia.org/resource/Category:Years_in_the_future'] expected_edges = [('http://dbpedia.org/resource/Category:1913','http://dbpedia.org/resource/Category:1910s'), ('http://dbpedia.org/resource/Category:1913','http://dbpedia.org/resource/Category:Years'), ('http://dbpedia.org/resource/Category:2020', 'http://dbpedia.org/resource/Category:2020s'), ('http://dbpedia.org/resource/Category:2020','http://dbpedia.org/resource/Category:Years'), ('http://dbpedia.org/resource/Category:2020','http://dbpedia.org/resource/Category:Years_in_the_future')] expectedGraph = nx.DiGraph() expectedGraph.add_nodes_from(expected_nodes) expectedGraph.add_edges_from(expected_edges) output = specific_relation_generator(input, ['a', 'b'], hierarchy_relation='http://www.w3.org/2004/02/skos/core#broader', max_hierarchy_depth=1) outputhierarchyGraph = output.attrs['hierarchy'] assert nx.is_isomorphic(expectedGraph, outputhierarchyGraph) def test7_dbpedia_other_direct_relation(self): input = pd.DataFrame({ 'a':[0, 1], 'new_link': ['http://dbpedia.org/resource/Stuttgart', 'http://dbpedia.org/resource/Tübingen'] }) path_expected = "test/data/generator/srg_7_expected.csv" expected = pd.read_csv(path_expected) output = specific_relation_generator(input, 'new_link', direct_relation='https://www.w3.org/2000/01/rdf-schema#seeAlso') expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) def test8_one_nan(self): input = pd.DataFrame({ 'a':[0, 1], 'new_link': [np.nan, 'http://dbpedia.org/resource/Tübingen'] }) path_expected = "test/data/generator/srg_8_expected.csv" expected = pd.read_csv(path_expected) output = specific_relation_generator(input, 'new_link', direct_relation='https://www.w3.org/2000/01/rdf-schema#seeAlso') expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) def test9_all_nan(self): input = pd.DataFrame({ 'a':[0, 1], 'new_link': [np.nan,np.nan] }) expected = input.copy() output = specific_relation_generator(input, 'new_link', direct_relation='https://www.w3.org/2000/01/rdf-schema#seeAlso') expected = expected.apply(lambda x: x.astype('object')) output = output.apply(lambda x: x.astype('object')) pd.testing.assert_frame_equal(output, expected, check_like = True) class TestUnqualifiedRelationGenerator: def test1_out_boolean_bundled(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/unqr_1_expected.csv" expected = pd.read_csv(path_expected) result = unqualified_relation_generator(df, columns="uri") pd.testing.assert_frame_equal(result, expected, check_like = True) def test2_out_count(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/unqr_2_expected.csv" expected = pd.read_csv(path_expected) result = unqualified_relation_generator(df, columns="uri", direction="Out", result_type="count") pd.testing.assert_frame_equal(result, expected, check_like = True) def test3_in_filter_count(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) expected = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"], "Link_In_count_http://dbpedia.org/ontology/birthPlace": [1326, 302], "Link_In_count_http://dbpedia.org/ontology/deathPlace": [768, 157], "Link_In_count_http://dbpedia.org/ontology/wikiPageWikiLink": [7447, 0] }) result = unqualified_relation_generator(df, columns="uri", direction="In", regex_filter=["ontology"], result_type="count") pd.testing.assert_frame_equal(result, expected, check_like = True) def test4_out_boolean_uri_data_model(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/unqr_4_expected.csv" expected = pd.read_csv(path_expected) result = unqualified_relation_generator(df, columns="uri", uri_data_model=True, direction="Out", regex_filter=["ontology"], result_type="boolean") pd.testing.assert_frame_equal(result, expected, check_like = True) def test5_missingvalue(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen","abc"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen", "http://dbpedia.org/resource/abc"] }) expected = pd.DataFrame({ "label": ["Hamburg", "Bremen", "abc"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen","http://dbpedia.org/resource/abc"], "Link_In_count_http://dbpedia.org/ontology/birthPlace": [1326.0, 302.0, 0.0], "Link_In_count_http://dbpedia.org/ontology/deathPlace": [768.0, 157.0, 0.0], "Link_In_count_http://dbpedia.org/ontology/wikiPageWikiLink": [7180.0, 0.0, 0.0], "Link_In_count_http://dbpedia.org/property/birthPlace": [88, 27, 0], "Link_In_count_http://dbpedia.org/property/deathPlace": [113, 27, 0], "Link_In_count_http://www.w3.org/2000/01/rdf-schema#seeAlso": [12, 0, 0] }) result = unqualified_relation_generator(df, columns="uri", direction="In", result_type="count") pd.testing.assert_frame_equal(result, expected, check_like = True) def test6_out_relative(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/unqr_6_expected.csv" expected = pd.read_csv(path_expected) result = unqualified_relation_generator(df, columns="uri", direction="Out", result_type="relative") pd.testing.assert_frame_equal(result, expected, check_like = True) def test7_in_tfidf(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/unqr_7_expected.csv" expected = pd.read_csv(path_expected) result = unqualified_relation_generator(df, columns="uri", direction="In", result_type="tfidf") pd.testing.assert_frame_equal(result, expected, check_like = True) class TestQualifiedRelationGenerator: def test1_in_boolean_types_regex_filter(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/qr_1_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", direction="In", types_regex_filter=["place"], result_type="boolean") pd.testing.assert_frame_equal(result, expected, check_like = True) def test2_in_count_properties_regex_filter(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/qr_2_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", direction="In", properties_regex_filter=["place"], result_type="count") pd.testing.assert_frame_equal(result, expected, check_like = True) def test3_out_count_uri_data_model_filter(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/qr_3_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", uri_data_model=True, direction="Out", types_regex_filter=['City'], result_type="count", hierarchy = False) pd.testing.assert_frame_equal(result, expected, check_like = True) def test4_missingvalue(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen","abc"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen", "http://dbpedia.org/resource/abc"] }) path_expected = "test/data/generator/qr_4_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", direction="In", properties_regex_filter=["place"], result_type="count") pd.testing.assert_frame_equal(result, expected, check_like = True) def test5_in_relative_properties_regex_filter(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/qr_5_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", direction="In", properties_regex_filter=["place"], result_type="relative") pd.testing.assert_frame_equal(result, expected, check_like = True) def test6_out_tfidf_types_regex_filter(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) path_expected = "test/data/generator/qr_6_expected.csv" expected = pd.read_csv(path_expected) result = qualified_relation_generator(df, columns="uri", direction="Out", types_regex_filter=['City'], result_type="tfidf") pd.testing.assert_frame_equal(result, expected, check_like = True) def test7_in_boolean_hierarchy(self): df = pd.DataFrame({ "label": ["Hamburg", "Bremen"], "uri": ["http://dbpedia.org/resource/Hamburg", "http://dbpedia.org/resource/Bremen"] }) expected_nodes = ['http://dbpedia.org/class/yago/DisplacedPerson110017890', 'http://dbpedia.org/class/yago/Refugee110516016', 'http://dbpedia.org/class/yago/Marketplace103722288', 'http://dbpedia.org/class/yago/MercantileEstablishment103748162', 'http://dbpedia.org/class/yago/Workplace104602044', 'http://dbpedia.org/class/yago/GeographicPoint108578706', 'http://dbpedia.org/class/yago/WikicatDisplacedPersonsCampsInTheAftermathOfWorldWarII', 'http://dbpedia.org/class/yago/Camp102944826', 'http://dbpedia.org/class/yago/MilitaryQuarters103763727', 'http://dbpedia.org/class/yago/Point108620061', 'http://dbpedia.org/class/yago/PlaceOfBusiness103953020', 'http://dbpedia.org/class/yago/Exile110071332', 'http://dbpedia.org/class/yago/Absentee109757653', 'http://dbpedia.org/class/yago/LivingQuarters103679384', 'http://dbpedia.org/class/yago/Establishment103297735', 'http://dbpedia.org/class/yago/Location100027167', 'http://dbpedia.org/class/yago/Traveler109629752', 'http://dbpedia.org/class/yago/Structure104341686', 'http://dbpedia.org/class/yago/Housing103546340', 'http://dbpedia.org/class/yago/Object100002684', 'http://dbpedia.org/class/yago/YagoGeoEntity', 'http://dbpedia.org/class/yago/YagoLegalActorGeo', 'http://dbpedia.org/class/yago/PhysicalEntity100001930', 'http://dbpedia.org/class/yago/Artifact100021939', 'http://dbpedia.org/class/yago/Person100007846', 'http://dbpedia.org/class/yago/YagoPermanentlyLocatedEntity', 'http://dbpedia.org/class/yago/Whole100003553', 'http://dbpedia.org/class/yago/CausalAgent100007347', 'http://dbpedia.org/class/yago/Organism100004475', 'http://dbpedia.org/class/yago/YagoLegalActor', 'http://dbpedia.org/class/yago/LivingThing100004258'] expected_edges = [('http://dbpedia.org/class/yago/DisplacedPerson110017890', 'http://dbpedia.org/class/yago/Refugee110516016'), ('http://dbpedia.org/class/yago/Refugee110516016', 'http://dbpedia.org/class/yago/Exile110071332'), ('http://dbpedia.org/class/yago/Marketplace103722288', 'http://dbpedia.org/class/yago/MercantileEstablishment103748162'), ('http://dbpedia.org/class/yago/MercantileEstablishment103748162', 'http://dbpedia.org/class/yago/PlaceOfBusiness103953020'), ('http://dbpedia.org/class/yago/Workplace104602044', 'http://dbpedia.org/class/yago/GeographicPoint108578706'), ('http://dbpedia.org/class/yago/GeographicPoint108578706', 'http://dbpedia.org/class/yago/Point108620061'), ('http://dbpedia.org/class/yago/WikicatDisplacedPersonsCampsInTheAftermathOfWorldWarII', 'http://dbpedia.org/class/yago/Camp102944826'), ('http://dbpedia.org/class/yago/Camp102944826', 'http://dbpedia.org/class/yago/MilitaryQuarters103763727'), ('http://dbpedia.org/class/yago/MilitaryQuarters103763727', 'http://dbpedia.org/class/yago/LivingQuarters103679384'), ('http://dbpedia.org/class/yago/Point108620061', 'http://dbpedia.org/class/yago/Location100027167'), ('http://dbpedia.org/class/yago/PlaceOfBusiness103953020', 'http://dbpedia.org/class/yago/Establishment103297735'), ('http://dbpedia.org/class/yago/Exile110071332', 'http://dbpedia.org/class/yago/Absentee109757653'), ('http://dbpedia.org/class/yago/Absentee109757653', 'http://dbpedia.org/class/yago/Traveler109629752'), ('http://dbpedia.org/class/yago/LivingQuarters103679384', 'http://dbpedia.org/class/yago/Housing103546340'), ('http://dbpedia.org/class/yago/Establishment103297735', 'http://dbpedia.org/class/yago/Structure104341686'), ('http://dbpedia.org/class/yago/Location100027167', 'http://dbpedia.org/class/yago/Object100002684'), ('http://dbpedia.org/class/yago/Location100027167', 'http://dbpedia.org/class/yago/YagoGeoEntity'), ('http://dbpedia.org/class/yago/Location100027167', 'http://dbpedia.org/class/yago/YagoLegalActorGeo'), ('http://dbpedia.org/class/yago/Traveler109629752', 'http://dbpedia.org/class/yago/Person100007846'), ('http://dbpedia.org/class/yago/Structure104341686', 'http://dbpedia.org/class/yago/Artifact100021939'), ('http://dbpedia.org/class/yago/Structure104341686', 'http://dbpedia.org/class/yago/YagoGeoEntity'), ('http://dbpedia.org/class/yago/Housing103546340', 'http://dbpedia.org/class/yago/Structure104341686'), ('http://dbpedia.org/class/yago/Object100002684', 'http://dbpedia.org/class/yago/PhysicalEntity100001930'), ('http://dbpedia.org/class/yago/YagoGeoEntity', 'http://dbpedia.org/class/yago/YagoPermanentlyLocatedEntity'), ('http://dbpedia.org/class/yago/Artifact100021939', 'http://dbpedia.org/class/yago/Whole100003553'), ('http://dbpedia.org/class/yago/Person100007846', 'http://dbpedia.org/class/yago/CausalAgent100007347'), ('http://dbpedia.org/class/yago/Person100007846', 'http://dbpedia.org/class/yago/Organism100004475'), ('http://dbpedia.org/class/yago/Person100007846', 'http://dbpedia.org/class/yago/YagoLegalActor'), ('http://dbpedia.org/class/yago/Whole100003553', 'http://dbpedia.org/class/yago/Object100002684'), ('http://dbpedia.org/class/yago/CausalAgent100007347', 'http://dbpedia.org/class/yago/PhysicalEntity100001930'), ('http://dbpedia.org/class/yago/Organism100004475', 'http://dbpedia.org/class/yago/LivingThing100004258'), ('http://dbpedia.org/class/yago/YagoLegalActor', 'http://dbpedia.org/class/yago/YagoLegalActorGeo'), ('http://dbpedia.org/class/yago/LivingThing100004258', 'http://dbpedia.org/class/yago/Whole100003553')] expectedGraph = nx.DiGraph() expectedGraph.add_nodes_from(expected_nodes) expectedGraph.add_edges_from(expected_edges) result = qualified_relation_generator(df, columns="uri", direction="In", types_regex_filter=["place"], result_type="boolean", hierarchy=True) outputhierarchyGraph = result.attrs['hierarchy'] assert nx.is_isomorphic(expectedGraph, outputhierarchyGraph) class TestCustomSparqlGenerator: def test1_dbpedia_one_result(self): df = pd.DataFrame({ "label": ["Baden-Württemberg", "Brandenburg", "Saarland"], "uri": ["http://dbpedia.org/resource/Baden-Württemberg", "http://dbpedia.org/resource/Brandenburg", "http://dbpedia.org/resource/Saarland"] }) expected_result_df = pd.DataFrame({ "label": ["Baden-Württemberg", "Brandenburg", "Saarland"], "uri": ["http://dbpedia.org/resource/Baden-Württemberg", "http://dbpedia.org/resource/Brandenburg", "http://dbpedia.org/resource/Saarland"], "population": [10777514, 2449600, 1039000] }) sparql_query = "select ?population where {*uri* <http://dbpedia.org/ontology/populationTotal> ?population .}" result = custom_sparql_generator(df, ["uri"], endpoint = DBpedia, query = sparql_query) pd.testing.assert_frame_equal(result, expected_result_df) def test2_dbpedia_multiple_results(self): df = pd.DataFrame({ "label": ["Baden-Württemberg", "Brandenburg", "Saarland"], "uri": ["http://dbpedia.org/resource/Baden-Württemberg", "http://dbpedia.org/resource/Brandenburg", "http://dbpedia.org/resource/Saarland"] }) expected_result_df = pd.DataFrame({ "label": ["Baden-Württemberg", "Brandenburg", "Saarland"], "uri": ["http://dbpedia.org/resource/Baden-Württemberg", "http://dbpedia.org/resource/Brandenburg", "http://dbpedia.org/resource/Saarland"], "capital": ["Stuttgart", "Potsdam", "Saarbrücken"], "populationCap": [623738, 161468, 180515] }) sparql_query = "select ?capital ?populationCap where {*uri* <http://dbpedia.org/ontology/capital> ?capitalLink . \ ?capitalLink rdfs:label ?capital . \ ?capitalLink <http://dbpedia.org/ontology/populationTotal> ?populationCap .}" result = custom_sparql_generator(df, ["uri"], endpoint = DBpedia, query = sparql_query) pd.testing.assert_frame_equal(result, expected_result_df) class TestDataPropertiesGenerator: def test1_dbpedia(self): df = pd.DataFrame({ "label": ["Eratosthenes","Pytheas"], "uri": ["http://dbpedia.org/resource/Eratosthenes","http://dbpedia.org/resource/Pytheas"] }) expected_result_columns = ['label', 'uri', 'uri_data_http://dbpedia.org/ontology/abstract', 'uri_data_http://dbpedia.org/ontology/birthDate', 'uri_data_http://dbpedia.org/ontology/birthYear', 'uri_data_http://dbpedia.org/ontology/deathDate', 'uri_data_http://dbpedia.org/ontology/deathYear', 'uri_data_http://dbpedia.org/ontology/wikiPageID', 'uri_data_http://dbpedia.org/ontology/wikiPageRevisionID', 'uri_data_http://dbpedia.org/property/alt', 'uri_data_http://dbpedia.org/property/birthDate', 'uri_data_http://dbpedia.org/property/caption', 'uri_data_http://dbpedia.org/property/citizenship', 'uri_data_http://dbpedia.org/property/deathDate', 'uri_data_http://dbpedia.org/property/ethnicity', 'uri_data_http://dbpedia.org/property/fields', 'uri_data_http://dbpedia.org/property/imageSize', 'uri_data_http://dbpedia.org/property/influenced', 'uri_data_http://purl.org/dc/terms/description', 'uri_data_http://www.w3.org/2000/01/rdf-schema#comment', 'uri_data_http://www.w3.org/2000/01/rdf-schema#label', 'uri_data_http://xmlns.com/foaf/0.1/gender', 'uri_data_http://xmlns.com/foaf/0.1/name'] result = list(data_properties_generator(df, "uri").columns) assert result == expected_result_columns def test2_dbpedia_string(self): df = pd.DataFrame({ "label": ["Eratosthenes","Pytheas"], "uri": ["http://dbpedia.org/resource/Eratosthenes","http://dbpedia.org/resource/Pytheas"] }) expected_result_columns = ['label', 'uri', 'uri_data_http://dbpedia.org/ontology/birthDate', 'uri_data_http://dbpedia.org/ontology/birthYear', 'uri_data_http://dbpedia.org/ontology/deathDate', 'uri_data_http://dbpedia.org/ontology/deathYear', 'uri_data_http://dbpedia.org/ontology/wikiPageID', 'uri_data_http://dbpedia.org/ontology/wikiPageRevisionID', 'uri_data_http://dbpedia.org/property/alt', 'uri_data_http://dbpedia.org/property/birthDate', 'uri_data_http://dbpedia.org/property/caption', 'uri_data_http://dbpedia.org/property/citizenship', 'uri_data_http://dbpedia.org/property/deathDate', 'uri_data_http://dbpedia.org/property/ethnicity', 'uri_data_http://dbpedia.org/property/fields', 'uri_data_http://dbpedia.org/property/imageSize', 'uri_data_http://dbpedia.org/property/influenced'] result = list(data_properties_generator(df, "uri", type_filter="- xsd:string").columns) assert result == expected_result_columns def test3_dbpedia_regex(self): df = pd.DataFrame({ "label": ["Eratosthenes","Pytheas"], "uri": ["http://dbpedia.org/resource/Eratosthenes","http://dbpedia.org/resource/Pytheas"] }) expected_result_columns = ['label', 'uri', 'uri_data_http://dbpedia.org/property/alt', 'uri_data_http://dbpedia.org/property/birthDate', 'uri_data_http://dbpedia.org/property/caption', 'uri_data_http://dbpedia.org/property/citizenship', 'uri_data_http://dbpedia.org/property/deathDate', 'uri_data_http://dbpedia.org/property/ethnicity', 'uri_data_http://dbpedia.org/property/fields', 'uri_data_http://dbpedia.org/property/imageSize', 'uri_data_http://dbpedia.org/property/influenced'] result = list(data_properties_generator(df, "uri", regex_filter=".*property.*").columns) assert result == expected_result_columns def test4_dbpedia_date_regex(self): df = pd.DataFrame({ "label": ["Eratosthenes","Pytheas"], "uri": ["http://dbpedia.org/resource/Eratosthenes","http://dbpedia.org/resource/Pytheas"] }) expected_result_columns = ['label', 'uri', 'uri_data_http://dbpedia.org/property/alt', 'uri_data_http://dbpedia.org/property/birthDate', 'uri_data_http://dbpedia.org/property/caption', 'uri_data_http://dbpedia.org/property/citizenship', 'uri_data_http://dbpedia.org/property/deathDate', 'uri_data_http://dbpedia.org/property/ethnicity', 'uri_data_http://dbpedia.org/property/fields', 'uri_data_http://dbpedia.org/property/imageSize', 'uri_data_http://dbpedia.org/property/influenced'] result = list(data_properties_generator(df, "uri", type_filter="xsd:date",regex_filter=".*property.*").columns) assert result == expected_result_columns
59.002247
177
0.594359
5,568
52,512
5.438757
0.058908
0.127861
0.162732
0.110425
0.946075
0.937027
0.918403
0.896972
0.880725
0.843675
0
0.045635
0.254704
52,512
889
178
59.068616
0.728135
0
0
0.647147
0
0.003003
0.455058
0.010836
0
0
0
0
0.058559
1
0.058559
false
0
0.009009
0
0.076577
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
ec21c7ff5b9031c79c7fd3e568461d3f8ce96c18
126
py
Python
vizutils/__init__.py
rbiswas4/Vizutils
07f32093295a9364d7b284f94a168b0031b758e6
[ "MIT" ]
null
null
null
vizutils/__init__.py
rbiswas4/Vizutils
07f32093295a9364d7b284f94a168b0031b758e6
[ "MIT" ]
null
null
null
vizutils/__init__.py
rbiswas4/Vizutils
07f32093295a9364d7b284f94a168b0031b758e6
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .projectedplots import * from .subplots import * from .version import __VERSION__
25.2
38
0.833333
15
126
6.4
0.466667
0.3125
0
0
0
0
0
0
0
0
0
0
0.126984
126
4
39
31.5
0.872727
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
ec22f8b42e7167f1b3d8cd2821fb650176963336
55
py
Python
roiextractors/extractors/tiffimagingextractor/__init__.py
cechava/roiextractors
4a5348ce89f879eb6e068ab4640c50c42979e634
[ "BSD-3-Clause" ]
4
2020-09-23T00:01:08.000Z
2021-11-16T11:49:58.000Z
roiextractors/extractors/tiffimagingextractor/__init__.py
cechava/roiextractors
4a5348ce89f879eb6e068ab4640c50c42979e634
[ "BSD-3-Clause" ]
50
2020-08-14T17:12:24.000Z
2022-03-01T22:20:37.000Z
roiextractors/extractors/tiffimagingextractor/__init__.py
cechava/roiextractors
4a5348ce89f879eb6e068ab4640c50c42979e634
[ "BSD-3-Clause" ]
1
2020-12-15T22:57:54.000Z
2020-12-15T22:57:54.000Z
from .tiffimagingextractor import TiffImagingExtractor
27.5
54
0.909091
4
55
12.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.072727
55
1
55
55
0.980392
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
6b6d15464f4e4943a81fd27578de4faaf2a1934f
7,483
py
Python
florense/portal/migrations/0001_initial.py
leoromanini/florense
eb547caa357562ab21fd37a5db3ad824fbca71a8
[ "MIT" ]
null
null
null
florense/portal/migrations/0001_initial.py
leoromanini/florense
eb547caa357562ab21fd37a5db3ad824fbca71a8
[ "MIT" ]
null
null
null
florense/portal/migrations/0001_initial.py
leoromanini/florense
eb547caa357562ab21fd37a5db3ad824fbca71a8
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-12-28 19:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import portal.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='AllocationRoom', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ], ), migrations.CreateModel( name='Environment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('active', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Label', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=150)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ], ), migrations.CreateModel( name='LabelPermission', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('label', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Label')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=250)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ], ), migrations.CreateModel( name='ProductPermission', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Product')), ], ), migrations.CreateModel( name='Room', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=200)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('labels', models.ManyToManyField(through='portal.LabelPermission', to='portal.Label')), ('products', models.ManyToManyField(through='portal.ProductPermission', to='portal.Product')), ], ), migrations.AddField( model_name='productpermission', name='room', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Room'), ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('number', models.CharField(max_length=100)), ('customer', models.CharField(max_length=250)), ('description', models.TextField(blank=True)), ('active', models.BooleanField(default=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('environment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='portal.Environment')), ('inspector', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='order_inspector', to=settings.AUTH_USER_MODEL)), ('rooms', models.ManyToManyField(through='portal.AllocationRoom', to='portal.Room')), ('salesmen', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='order_salesmen', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='labelpermission', name='room', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Room'), ), migrations.CreateModel( name='Employee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('environment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Environment')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='allocationroom', name='order', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Order'), ), migrations.AddField( model_name='allocationroom', name='room', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.Room'), ), migrations.CreateModel( name='AllocationProduct', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('approved', models.BooleanField(default=False)), ('image', models.ImageField(blank=True, upload_to=portal.models.get_product_images_path)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('allocation_room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.AllocationRoom')), ('product_permission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.ProductPermission')), ], ), migrations.CreateModel( name='AllocationLabel', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('content', models.TextField(blank=True)), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField()), ('allocation_room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.AllocationRoom')), ('label_permission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='portal.LabelPermission')), ], ), ]
47.66242
167
0.578378
663
7,483
6.431373
0.146305
0.080206
0.052533
0.082552
0.730769
0.71834
0.704503
0.704503
0.704503
0.668621
0
0.005941
0.280235
7,483
156
168
47.967949
0.785741
0.005746
0
0.691275
1
0
0.126781
0.020839
0
0
0
0
0
1
0
false
0
0.026846
0
0.053691
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
6ba6328cd80383a06e5a1feb2d9a71e57a95b6fe
26
py
Python
mollom/__init__.py
disqus/mollom_python
538ab8d24ee55d45f56b856b771cda25bd942d38
[ "MIT" ]
1
2015-07-14T14:16:31.000Z
2015-07-14T14:16:31.000Z
mollom/__init__.py
disqus/mollom_python
538ab8d24ee55d45f56b856b771cda25bd942d38
[ "MIT" ]
null
null
null
mollom/__init__.py
disqus/mollom_python
538ab8d24ee55d45f56b856b771cda25bd942d38
[ "MIT" ]
null
null
null
from mollom import Mollom
13
25
0.846154
4
26
5.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
1
26
26
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
6bdb2ece3a1af3db80ee430773b8ffb3da8b7cfd
10,625
py
Python
tests/board_tests.py
adamRoar/PyCheckers
d27743c28b7954aa707a2eaa85aad4dd7a6a51c7
[ "Apache-2.0" ]
2
2020-04-25T19:32:08.000Z
2020-04-26T14:09:52.000Z
tests/board_tests.py
adamRoar/PyCheckers
d27743c28b7954aa707a2eaa85aad4dd7a6a51c7
[ "Apache-2.0" ]
null
null
null
tests/board_tests.py
adamRoar/PyCheckers
d27743c28b7954aa707a2eaa85aad4dd7a6a51c7
[ "Apache-2.0" ]
null
null
null
import copy import unittest from model.model import Board, Tile, MoveType, Color, Piece class MyTestCase(unittest.TestCase): def setUp(self) -> None: self.b = Board() def tearDown(self) -> None: print() print(self._testMethodName) print(self.b) def test_normal_moves(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Alternating forward moves self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(2, 1), Tile(3, 2))) self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(5, 6), Tile(4, 7))) self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(2, 7), Tile(3, 6))) self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(5, 2), Tile(4, 1))) # Red moving back: INVALID self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(3, 2), Tile(2, 1))) # INVALID RED move should not change turn so we change it manually to BLACK self.b.turn = Color.BLACK # Black moving back: INVALID self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(4, 1), Tile(5, 0))) def test_king_normal_moves(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED piece = Piece(Color.RED) self.b.set_piece_at(Tile(4, 3), piece) piece.king() # red king moves backwards self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(4, 3), Tile(3, 4))) # RED shouldn't be able to move 2 turns in a row so we set to RED self.b.turn = Color.RED # red king moves forwards self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(3, 4), Tile(4, 3))) def test_red_jump_right(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Set a black piece to a jumpable position self.b.set_piece_at(Tile(3, 4), Piece(Color.BLACK)) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(2, 3), Tile(4, 5))) self.assertIsNone(self.b.get_piece_at(Tile(3, 4))) def test_red_jump_left(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Set a black piece to a jumpable position self.b.set_piece_at(Tile(3, 4), Piece(Color.BLACK)) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(2, 5), Tile(4, 3))) self.assertIsNone(self.b.get_piece_at(Tile(3, 4))) def test_black_jump_right(self): # Set a red piece to a jumpable position self.b.set_piece_at(Tile(4, 3), Piece(Color.RED)) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(5, 2), Tile(3, 4))) self.assertIsNone(self.b.get_piece_at(Tile(4, 3))) def test_black_jump_left(self): # Set a red piece to a jumpable position self.b.set_piece_at(Tile(4, 3), Piece(Color.RED)) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(5, 4), Tile(3, 2))) self.assertIsNone(self.b.get_piece_at(Tile(4, 3))) def test_king_jump_back_left(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Set up the red king piece = Piece(Color.RED) self.b.set_piece_at(Tile(6, 5), piece) piece.king() # King jumping back is a valid JUMP move self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(6, 5), Tile(4, 3))) # Piece the king jumped is removed self.assertIsNone(self.b.get_piece_at(Tile(5, 4))) def test_king_jump_back_right(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Set up the red king piece = Piece(Color.RED) self.b.set_piece_at(Tile(6, 1), piece) piece.king() # King jumping back is a valid JUMP move self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(6, 1), Tile(4, 3))) # Piece the king jumped is removed self.assertIsNone(self.b.get_piece_at(Tile(5, 2))) def test_same_color_jump_invalid(self): # default turn is BLACK so we change it to RED first self.b.turn = Color.RED # Red jumping red is INVALID and does not remove other red piece self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(1, 2), Tile(3, 4))) self.assertIsNotNone(self.b.get_piece_at(Tile(2, 3))) # INVALID RED move should not change turn so we change it manually to BLACK self.b.turn = Color.BLACK # Black jumping black is INVALID and does not remove other black piece self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(6, 1), Tile(4, 3))) self.assertIsNotNone(self.b.get_piece_at(Tile(5, 2))) def test_wrong_player_cannot_move(self): # Black goes first - red move here should be INVALID self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(2, 1), Tile(3, 2))) def test_turns_alternate(self): self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(5, 0), Tile(4, 1))) self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(2, 1), Tile(3, 2))) def test_can_jump(self): self.b.set_piece_at(Tile(4, 3), Piece(Color.RED)) self.assertEqual(True, self.b.can_jump(Tile(5, 4))) def test_tile_addition(self): self.assertEqual(Tile(3, 4), Tile(1, 3) + Tile(2, 1)) self.assertEqual(Tile(1, 1), Tile(4, 2) + Tile(-3, -1)) def test_double_jump(self): self.b.set_piece_at(Tile(4, 3), Piece(Color.RED)) self.b.set_piece_at(Tile(1, 0), None) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(5, 4), Tile(3, 2))) # testing that pieces other than target_tile cannot move during a double jump self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(5, 0), Tile(4, 1))) self.assertEqual(self.b.turn, Color.BLACK) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(3, 2), Tile(1, 0))) self.assertIsNone(self.b.target_tile) self.assertEqual(self.b.turn, Color.RED) def test_cannot_move_wrong_piece_after_jump(self): self.b.set_piece_at(Tile(4, 3), Piece(Color.RED)) self.b.set_piece_at(Tile(1, 0), None) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(5, 4), Tile(3, 2))) self.assertEqual(self.b.turn, Color.BLACK) self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(5, 0), Tile(4, 1))) def test_normal_move_after_jump_good(self): self.test_double_jump() self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(2, 7), Tile(3, 6))) def test_triple_jump(self): self.b = Board(True) self.b.turn = Color.RED self.b.red_checkers = 1 self.b.black_checkers = 3 self.b.set_piece_at(Tile(0, 0), Piece(Color.RED)) self.b.set_piece_at(Tile(1, 1), Piece(Color.BLACK)) self.b.set_piece_at(Tile(3, 3), Piece(Color.BLACK)) self.b.set_piece_at(Tile(5, 5), Piece(Color.BLACK)) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(0, 0), Tile(2, 2))) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(2, 2), Tile(4, 4))) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(4, 4), Tile(6, 6))) print(self.b) self.assertEqual(self.b.turn, Color.BLACK) def test_king_triple_jump_backwards(self): self.b = Board(True) king = Piece(Color.BLACK) king.king() self.b.red_checkers = 3 self.b.black_checkers = 1 self.b.set_piece_at(Tile(0, 0), king) self.b.set_piece_at(Tile(1, 1), Piece(Color.RED)) self.b.set_piece_at(Tile(3, 3), Piece(Color.RED)) self.b.set_piece_at(Tile(5, 5), Piece(Color.RED)) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(0, 0), Tile(2, 2))) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(2, 2), Tile(4, 4))) print(self.b) self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(4, 4), Tile(6, 6))) print(self.b) self.assertEqual(self.b.turn, Color.RED) def test_has_jump_after_normal_with_no_jump(self): self.b.turn = Color.RED self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(2, 1), Tile(3, 2))) self.assertFalse(self.b.must_jump) def test_has_jump_after_normal_with_jump(self): self.test_has_jump_after_normal_with_no_jump() self.assertMoveType(MoveType.NORMAL, self.b.move_piece(Tile(5, 4), Tile(4, 3))) self.assertTrue(self.b.must_jump) def test_has_jump_after_jump(self): self.test_has_jump_after_normal_with_jump() self.assertMoveType(MoveType.JUMP, self.b.move_piece(Tile(3, 2), Tile(5, 4))) self.assertTrue(self.b.must_jump) def test_cannot_move_piece_if_has_jump(self): self.test_has_jump_after_normal_with_jump() self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(2, 7), Tile(3, 6))) def test_win_condition(self): self.b = Board(True) self.b.set_piece_at(Tile(4, 1), Piece(Color.RED)) self.b.set_piece_at(Tile(5, 2), Piece(Color.BLACK)) self.b.red_checkers = 1 self.b.black_checkers = 1 self.b.move_piece(Tile(5, 2), Tile(3, 0)) self.assertEqual(Color.BLACK, self.b.winner()) def test_wrong_player(self): self.assertMoveType(MoveType.INVALID, self.b.move_piece(Tile(2, 1), Tile(3, 2))) self.assertIsNone(self.b.get_piece_at(Tile(3, 2))) self.assertIsNotNone(self.b.get_piece_at(Tile(2, 1))) self.assertEqual(Color.BLACK, self.b.turn) def test_promotion(self): self.b = Board(True) self.b.set_piece_at(Tile(1, 0), Piece(Color.BLACK)) self.b.move_piece(Tile(1, 0), Tile(0, 1)) self.assertEqual(True, self.b.get_piece_at(Tile(0, 1)).is_king) def test_deep_copy_board(self): nb = copy.deepcopy(self.b) piece = self.b.get_piece_at(Tile(2, 1)) piece.king() self.assertEqual(False, nb.get_piece_at(Tile(2, 1)).is_king) self.b.move_piece(Tile(2, 1), Tile(3, 0)) self.assertEqual(None, nb.get_piece_at(Tile(3, 0))) def assertMoveType(self, expected: MoveType, actual: (MoveType, Piece)): actual_move, _ = actual self.assertEqual(expected, actual_move) if __name__ == '__main__': unittest.main()
44.456067
88
0.647906
1,694
10,625
3.916765
0.07379
0.089676
0.052901
0.082291
0.820045
0.786436
0.760814
0.744386
0.720422
0.644009
0
0.030237
0.218729
10,625
238
89
44.642857
0.769064
0.122165
0
0.434286
0
0
0.00086
0
0
0
0
0
0.371429
1
0.165714
false
0
0.017143
0
0.188571
0.062857
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
d481cdc1a1217ca280169da8510a0b65d1081629
289
py
Python
src/python/qecirq/decompositions/__init__.py
zapatacomputing/qe-cirq
416c2f02fd4866b453a780b607e8b0958369ef7a
[ "Apache-2.0" ]
null
null
null
src/python/qecirq/decompositions/__init__.py
zapatacomputing/qe-cirq
416c2f02fd4866b453a780b607e8b0958369ef7a
[ "Apache-2.0" ]
11
2021-09-28T18:16:03.000Z
2022-03-30T22:35:04.000Z
src/python/qecirq/decompositions/__init__.py
zapatacomputing/qe-cirq
416c2f02fd4866b453a780b607e8b0958369ef7a
[ "Apache-2.0" ]
1
2022-02-19T18:20:31.000Z
2022-02-19T18:20:31.000Z
################################################################################ # © Copyright 2021 Zapata Computing Inc. ################################################################################ from ._cirq_decompositions import PowerGateToPhaseAndRotation, decompose_cirq_circuit
57.8
85
0.380623
14
289
7.642857
0.928571
0
0
0
0
0
0
0
0
0
0
0.014545
0.048443
289
4
86
72.25
0.370909
0.131488
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
2e395c745e691f519f4120118bd91b5f955bec58
46
py
Python
kd_splicing/kd_splicing/dataset/__init__.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_splicing/kd_splicing/dataset/__init__.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_splicing/kd_splicing/dataset/__init__.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
1
2021-09-30T08:06:20.000Z
2021-09-30T08:06:20.000Z
from kd_splicing.dataset import utils, models
23
45
0.847826
7
46
5.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.108696
46
1
46
46
0.926829
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
5cedbf056e9af8cb7f1974018ad4885db680ba1c
8,944
py
Python
assets/data_and_scripts/Functions/tgac.py
GTPB/PPB18
fe19c9b8c6b91dce22c554bc1fa48c97834f8a87
[ "CC-BY-4.0" ]
4
2020-01-14T18:23:24.000Z
2021-07-30T10:15:10.000Z
assets/data_and_scripts/Functions/tgac.py
GTPB/PPB18
fe19c9b8c6b91dce22c554bc1fa48c97834f8a87
[ "CC-BY-4.0" ]
null
null
null
assets/data_and_scripts/Functions/tgac.py
GTPB/PPB18
fe19c9b8c6b91dce22c554bc1fa48c97834f8a87
[ "CC-BY-4.0" ]
1
2021-07-30T10:11:35.000Z
2021-07-30T10:11:35.000Z
# alcohol dehydrogenase - ahd4 - amino acid sequence S_prot = "mgtkgkvikckaaiaweagkplcieevevappkahevriqiiatslchtdatvidskfeglafpvivgheaagivesigpgvtnvkpgdkviplyaplcrkckfclspltnlcgkisnlkspasdqqlmedktsrftckgkpvyhffgtstfsqytvvsdinlakidddanlervcllgcgfstgygaainnakvtpgstcavfglggvglsavmgckaagasriigidinsekfvkakalgatdclnprdlhkpiqeviieltkggvdfaldcaggsetmkaaldcttagwgsctfigvaagskgltifpeeliigrtingtffggwksvdsipklvtdyknkkfnldalvthtlpfdkiseafdlmnqgksvrtilif" aa = ['A','C','D','E','F','G','H', 'K','I','L','M','N','P','Q','R','S','T','V','Y','W'] aa_hydrofobic = ['A', 'F', 'G', 'I', 'L', 'M', 'P', 'V', 'W'] aa_hydrofile = ['C', 'N', 'Q', 'S', 'T', 'Y'] aa_basic = ['H', 'K', 'R'] aa_acid = ['D', 'E'] S_dna = "gatcctccatatacaacggtatctccacctcaggtttagatctcaacaacggaaccattgccgacatgagacagttaggtatcgtcgagagttacaagctaaaacgagcagtagtcagctctgcatctgaagccgctgaagttctactaagggtggataacatcatccgtgcaagaccaagaaccgccaatagacaacatatgtaacatatttaggatatacctcgaaaataataaaccgccacactgtcattattataattagaaacagaacgcaaaaattatccactatataattcaaagacgcgaaaaaaaaagaacaacgcgtcatagaacttttggcaattcgcgtcacaaataaattttggcaacttatgtttcctcttcgagcagtactcgagccctgtctcaagaatgtaataatacccatcgtaggtatggttaaagatagcatctccacaacctcaaagctccttgccgagagtcgccctcctttgtcgagtaattttcacttttcatatgagaacttattttcttattctttactctcacatcctgtagtgattgacactgcaacagccaccatcactagaagaacagaacaattacttaatagaaaaattatatcttcctcgaaacgatttcctgcttccaacatctacgtatatcaagaagcattcacttaccatgacacagcttcagatttcattattgctgacagctactatatcactactccatctagtagtggccacgccctatgaggcatatcctatcggaaaacaataccccccagtggcaagagtcaatgaatcgtttacatttcaaatttccaatgatacctataaatcgtctgtagacaagacagctcaaataacatacaattgcttcgacttaccgagctggctttcgtttgactctagttctagaacgttctcaggtgaaccttcttctgacttactatctgatgcgaacaccacgttgtatttcaatgtaatactcgagggtacggactctgccgacagcacgtctttgaacaatacataccaatttgttgttacaaaccgtccatccatctcgctatcgtcagatttcaatctattggcgttgttaaaaaactatggttatactaacggcaaaaacgctctgaaactagatcctaatgaagtcttcaacgtgacttttgaccgttcaatgttcactaacgaagaatccattgtgtcgtattacggacgttctcagttgtataatgcgccgttacccaattggctgttcttcgattctggcgagttgaagtttactgggacggcaccggtgataaactcggcgattgctccagaaacaagctacagttttgtcatcatcgctacagacattgaaggattttctgccgttgaggtagaattcgaattagtcatcggggctcaccagttaactacctctattcaaaatagtttgataatcaacgttactgacacaggtaacgtttcatatgacttacctctaaactatgtttatctcgatgacgatcctatttcttctgataaattgggttctataaacttattggatgctccagactgggtggcattagataatgctaccatttccgggtctgtcccagatgaattactcggtaagaactccaatcctgccaatttttctgtgtccatttatgatacttatggtgatgtgatttatttcaacttcgaagttgtctccacaacggatttgtttgccattagttctcttcccaatattaacgctacaaggggtgaatggttctcctactattttttgccttctcagtttacagactacgtgaatacaaacgtttcattagagtttactaattcaagccaagaccatgactgggtgaaattccaatcatctaatttaacattagctggagaagtgcccaagaatttcgacaagctttcattaggtttgaaagcgaaccaaggttcacaatctcaagagctatattttaacatcattggcatggattcaaagataactcactcaaaccacagtgcgaatgcaacgtccacaagaagttctcaccactccacctcaacaagttcttacacatcttctacttaccagtttatccattgcttccttcagtttggcttcactgtcttctagctgttgttctagatcctggtttttcttggtgtagttctcattattagatctcaagttattggagtcttcagccaattgctttgtatcagacaattgactctctaacttctccacttcactgtcgagttgctcgtttttagcggacaaagatttaatctcgttttctttttcagtgttagattgctctaattctttgagctgttctctcagctcctcatatttttcttgccatgactcagattctaattttaagctattcaatttctctttgatc" dna_symbols = ['A', 'G', 'C', 'T'] distancePoint = [('N-ALA-1', 42.471, 29.826, 88.811), ('CA-ALA-1', 43.646, 30.725, 88.954), ('C-ALA-1', 44.095, 30.664, 90.419), ('O-ALA-1', 43.363, 30.177, 91.284), ('CB-ALA-1', 43.280, 32.145, 88.564), ('N-ASN-2', 45.290, 31.175, 90.697), ('CA-ASN-2', 45.839, 31.111, 92.046), ('C-ASN-2', 46.093, 32.391, 92.816), ('O-ASN-2', 46.812, 33.276, 92.355), ('CB-ASN-2', 47.141, 30.322, 92.019), ('CG-ASN-2', 46.929, 28.881, 91.678), ('OD1-ASN-2', 45.862, 28.322, 91.929), ('ND2-ASN-2', 47.940, 28.262, 91.099), ('N-ALA-3', 45.502, 32.474, 94.000), ('CA-ALA-3', 45.704, 33.611, 94.891), ('C-ALA-3', 46.318, 33.061, 96.196), ('O-ALA-3', 46.318, 31.847, 96.415), ('CB-ALA-3', 44.380, 34.287, 95.174), ('N-PHE-4', 46.834, 33.949, 97.048), ('CA-PHE-4', 47.440, 33.579, 98.331), ('C-PHE-4', 46.494, 32.722, 99.185), ('0-PHE-4', 45.371, 33.128, 99.497), ('CB-PHE-4', 47.860, 34.858, 99.094), ('CG-PHE-4', 48.252, 34.641, 100.527), ('CD1-PHE-4', 49.531, 34.210, 100.858), ('CD2-PHE-4', 47.337, 34.867, 101.550), ('CD1-PHE-4', 49.901, 34.019, 102.187), ('CE2-PHE-4', 47.696, 34.679, 102.884), ('CZ-PHE-4', 48.985, 34.262, 103.200), ('N-LEU-5', 46.973, 31.535, 99.553) ] FastaF = [ '>MT dna_rm:chromosome chromosome:GRCh37:MT:1:16569:1', 'GATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTT', 'CGTCTGGGGGGTATGCACGCGATAGCATTGCGAGACGCTGGAGCCGGAGCACCCTATGTC', 'GCAGTATCTGTCTTTGATTCCTGCCTCATCCTATTATTTATCGCACCTACGTTCAATATT', 'ACAGGCGAACATACTTACTAAAGTGTGTTAATTAATTAATGCTTGTAGGACATAATAATA', 'ACAATTGAATGTCTGCACAGCCACTTTCCACACAGACATCATAACAAAAAATTTCCACCA', 'AACCCCCCCTCCCCCGCTTCTGGCCACAGCACTTAAACACATCTCTGCCAAACCCCAAAA', 'ACAAAGAACCCTAACACCAGCCTAACCAGATTTCAAATTTTATCTTTTGGCGGTATGCAC', 'TTTTAACAGTCACCCCCCAACTAACACATTATTTTCCCCTCCCACTCCCATACTACTAAT', 'CTCATCAATACAACCCCCGCCCATCCTACCCAGCACACACACACCGCTGCTAACCCCATA', 'CCCCGAACCAACCAAACCCCAAAGACACCCCCCACAGTTTATGTAGCTTACCTCCTCAAA', 'GCAATACACTGAAAATGTTTAGACGGGCTCACATCACCCCATAAACAAATAGGTTTGGTC', 'CTAGCCTTTCTATTAGCTCTTAGTAAGATTACACATGCAAGCATCCCCGTTCCAGTGAGT', 'TCACCCTCTAAATCACCACGATCAAAAGGAACAAGCATCAAGCACGCAGCAATGCAGCTC', 'AAAACGCTTAGCCTAGCCACACCCCCACGGGAAACAGCAGTGATTAACCTTTAGCAATAA', 'ACGAAAGTTTAACTAAGCTATACTAACCCCAGGGTTGGTCAATTTCGTGCCAGCCACCGC', 'GGTCACACGATTAACCCAAGTCAATAGAAGCCGGCGTAAAGAGTGTTTTAGATCACCCCC', 'TCCCCAATAAAGCTAAAACTCACCTGAGTTGTAAAAAACTCCAGTTGACACAAAATAGAC', 'TACGAAAGTGGCTTTAACATATCTGAACACACAATAGCTAAGACCCAAACTGGGATTAGA', 'TACCCCACTATGCTTAGCCCTAAACCTCAACAGTTAAATCAACAAAACTGCTCGCCAGAA', 'CACTACGAGCCACAGCTTAAAACTCAAAGGACCTGGCGGTGCTTCATATCCCTCTAGAGG', 'AGCCTGTTCTGTAATCGATAAACCCCGATCAACCTCACCACCTCTTGCTCAGCCTATATA', 'CCGCCATCTTCAGCAAACCCTGATGAAGGCTACAAAGTAAGCGCAAGTACCCACGTAAAG', 'ACGTTAGGTCAAGGTGTAGCCCATGAGGTGGCAAGAAATGGGCTACATTTTCTACCCCAG', 'AAAACTACGATAGCCCTTATGAAACTTAAGGGTCGAAGGTGGATTTAGCAGTAAACTAAG', 'AGTAGAGTGCTTAGTTGAACAGGGCCCTGAAGCGCGTACACACCGCCCGTCACCCTCCTC', 'AAGTATACTTCAAAGGACATTTAACTAAAACCCCTACGCATTTATATAGAGGAGACAAGT', 'CGTAACATGGTAAGTGTACTGGAAAGTGCACTTGGACGAACCAGAGTGTAGCTTAACACA', 'AAGCACCCAACTTACACTTAGGAGATTTCAACTTAACTTGACCGCTCTGAGCTAAACCTA', 'GCCCCAAACCCACTCCACCTTACTACCAGACAACCTTAGCCAAACCATTTACCCAAATAA', 'AGTATAGGCGATAGAAATTGAAACCTGGCGCAATAGATATAGTACCGCAAGGGAAAGATG', 'AAAAATTATAACCAAGCATAATATAGCAAGGACTAACCCCTATACCTTCTGCATAATGAA', 'TTAACTAGAAATAACTTTGCAAGGAGAGCCAAAGCTAAGACCCCCGAAACCAGACGAGCT', 'ACCTAAGAACAGCTAAAAGAGCACACCCGTCTATGTAGCAAAATAGTGGGAAGATTTATA', 'GGTAGAGGCGACAAACCTACCGAGCCTGGTGATAGCTGGTTGTCCAAGATAGAATCTTAG', 'TTCAACTTTAAATTTGCCCACAGAACCCTCTAAATCCCCTTGTAAATTTAACTGTTAGTC', 'CAAAGAGGAACAGCTCTTTGGACACTAGGAAAAAACCTTGTAGAGAGAGTAAAAAATTTA', 'ACACCCATAGTAGGCCTAAAAGCAGCCACCAATTAAGAAAGCGTTCAAGCTCAACACCCA', 'CTACCTAAAAAATCCCAAACATATAACTGAACTCCTCACACCCAATTGGACCAATCTATC', 'ACCCTATAGAAGAACTAATGTTAGTATAAGTAACATGAAAACATTCTCCTCCGCATAAGC', 'CTGCGTCAGATTAAAACACTGAACTGACAATTAACAGCCCAATATCTACAATCAACCAAC', 'AAGTCATTATTACCCTCACTGTCAACCCAACACAGGCATGCTCATAAGGAAAGGTTAAAA', 'AAAGTAAAAGGAACTCGGCAAATCTTACCCCGCCTGTTTACCAAAAACATCACCTCTAGC', 'ATCACCAGTATTAGAGGCACCGCCTGCCCAGTGACACATGTTTAACGGCCGCGGTACCCT', 'AACCGTGCAAAGGTAGCATAATCACTTGTTCCTTAAATAGGGACCTGTATGAATGGCTCC', 'ACGAGGGTTCAGCTGTCTCTTACTTTTAACCAGTGAAATTGACCTGCCCGTGAAGAGGCG' ] SIMBOLI2 = {'ALA':'A','CYS':'C','ASP':'D', 'GLU':'E','PHE':'F','GLY':'G', 'HIS':'H','LYS':'K','ILE':'I', 'LEU':'L','MET':'M','ASN':'N', 'PRO':'P','GLN':'Q','ARG':'R', 'SER':'S','THR':'T','VAL':'V', 'TYR':'Y','TRP':'W','XXX':'X'} propensities = {'N' : 0.22989, 'P': 0.55232, 'Q': -0.187677, 'A': -0.26154, 'R': -0.17659, 'S': 0.14288, 'C': -0.015152,'T': 0.0088780, 'D': 0.22763, 'E': -0.20469, 'V': -0.38618, 'F': -0.22557, 'W': -0.243375,'G': 0.43323, 'H': -0.0012174, 'Y': -0.20751, 'I': -0.42224, 'K': -0.100092, 'L': -0.33793,'M': -0.22590} codonAMINO = { 'GCU':'A','GCC':'A','GCA':'A', 'GCG':'A', 'CGU':'R','CGC':'R','CGA':'R', 'CGG':'R', 'AGA':'R', 'AGG':'R', 'AAU':'N','AAC':'N', 'GAU':'D','GAC':'D', 'UGU':'C','UGC':'C', 'CAA':'Q','CAG':'Q', 'GAA':'E','GAG':'E', 'GGU':'G','GGC':'G','GGA':'G', 'GGG':'G', 'CAU':'H','CAC':'H', 'AUU':'I','AUC':'I', 'AUA':'I', 'UUA':'L','UUG':'L','CUU':'L', 'CUC':'L', 'CUA':'L', 'CUG':'L', 'AAA':'K','AAG':'K', 'AUG':'M', 'UUU':'F','UUC':'F', 'CCU':'P','CCC':'P','CCA':'P','CCG':'P', 'UCU':'S','UCC':'S','UCA':'S','UCG':'S','AGU':'S', 'AGC':'S', 'ACU':'T','ACC':'T','ACA':'T','ACG':'T', 'UGG':'W', 'UAU':'Y', 'UAC':'Y', 'GUU':'V', 'GUC':'V', 'GUA':'V', 'GUG':'V', 'UAG':'STOP', 'UGA':'STOP', 'UAA':'STOP' }
113.21519
2,432
0.767889
627
8,944
10.940989
0.519936
0.006414
0.003499
0.002624
0
0
0
0
0
0
0
0.077167
0.084302
8,944
78
2,433
114.666667
0.76044
0.00559
0
0
0
0
0.703393
0.627596
0
1
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
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
5cffede6b2f559d0288fe212e4c318e188624331
196
py
Python
web/modeltr/__init__.py
LaudateCorpus1/labmanager-unit-vsphere
e02819c15c9bedfd1cbd783465f03c3d351addb9
[ "Apache-2.0" ]
1
2020-03-03T06:56:40.000Z
2020-03-03T06:56:40.000Z
web/modeltr/__init__.py
LaudateCorpus1/labmanager-unit-vsphere
e02819c15c9bedfd1cbd783465f03c3d351addb9
[ "Apache-2.0" ]
13
2019-03-20T08:37:16.000Z
2021-10-15T08:38:31.000Z
web/modeltr/__init__.py
LaudateCorpus1/labmanager-unit-vsphere
e02819c15c9bedfd1cbd783465f03c3d351addb9
[ "Apache-2.0" ]
3
2019-02-07T08:28:59.000Z
2022-02-05T09:05:14.000Z
from .enums import * from .connection import * from .document import * from .machine import * from .request import * from .action import * from .screenshot import * from .snapshot import Snapshot
21.777778
30
0.760204
25
196
5.96
0.4
0.469799
0
0
0
0
0
0
0
0
0
0
0.163265
196
8
31
24.5
0.908537
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
cf34db69f4424326807f100c9e6659916cb3023f
2,096
py
Python
tests/unitary/Minter/test_inflation_delay.py
hedgx/ribbonomics
84a212a82eaaa2824ebe3c072413e143eaca02a2
[ "MIT" ]
2
2022-01-13T21:11:30.000Z
2022-03-10T08:20:42.000Z
tests/unitary/Minter/test_inflation_delay.py
hedgx/ribbonomics
84a212a82eaaa2824ebe3c072413e143eaca02a2
[ "MIT" ]
null
null
null
tests/unitary/Minter/test_inflation_delay.py
hedgx/ribbonomics
84a212a82eaaa2824ebe3c072413e143eaca02a2
[ "MIT" ]
2
2022-01-30T20:54:55.000Z
2022-03-05T17:49:19.000Z
WEEK = 86400 * 7 def test_rate(accounts, chain, three_gauges, minter, token): assert minter.rate() == 0 chain.sleep(86401) minter.update_mining_parameters({"from": accounts[0]}) assert minter.rate() > 0 # changes to new rate def test_commit_next_emission(accounts, chain, three_gauges, minter, token): chain.sleep(86401) minter.update_mining_parameters({"from": accounts[0]}) assert minter.rate() == 413359788359788359 minter.commit_next_emission(9_000_000 * 10 ** 18, {"from": accounts[0]}) assert minter.committed_rate() == 14880952380952380952 assert minter.rate() == 413359788359788359 chain.sleep(1209601) minter.update_mining_parameters({"from": accounts[0]}) assert minter.committed_rate() != 9_000_000 * 10 ** 18 / WEEK assert minter.rate() == 14880952380952380952 # changes to new rate def test_commit_next_emission_zero(accounts, chain, three_gauges, minter, token): chain.sleep(86401) minter.update_mining_parameters({"from": accounts[0]}) assert minter.rate() == 413359788359788359 minter.commit_next_emission(0, {"from": accounts[0]}) assert minter.committed_rate() == 0 assert minter.rate() == 413359788359788359 chain.sleep(1209601) minter.update_mining_parameters({"from": accounts[0]}) assert minter.committed_rate() != 0 assert minter.rate() == 0 chain.sleep(1209601) minter.update_mining_parameters({"from": accounts[0]}) assert minter.committed_rate() != 0 assert minter.rate() == 0 def test_start_epoch_time(accounts, chain, three_gauges, minter, token): creation_time = minter.start_epoch_time() assert creation_time == minter.tx.timestamp + 86400 - WEEK * 2 chain.sleep(86401) minter.update_mining_parameters({"from": accounts[0]}) assert minter.start_epoch_time() == creation_time + WEEK * 2 def test_mining_epoch(accounts, chain, three_gauges, minter, token): assert minter.mining_epoch() == -1 chain.sleep(86401) minter.update_mining_parameters({"from": accounts[0]}) assert minter.mining_epoch() == 0
31.757576
81
0.709924
264
2,096
5.424242
0.162879
0.142458
0.118017
0.132682
0.820531
0.804469
0.776536
0.75
0.684358
0.627095
0
0.12116
0.16126
2,096
65
82
32.246154
0.693402
0.018607
0
0.581395
0
0
0.019474
0
0
0
0
0
0.418605
1
0.116279
false
0
0
0
0.116279
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
6
cf41b029325d98aeac487ae0470049764227984c
8,088
py
Python
tests/cli/test_agent.py
aliza-miller/prefect
a537e20a8b81192f12a7df575897596347b8a307
[ "Apache-2.0" ]
null
null
null
tests/cli/test_agent.py
aliza-miller/prefect
a537e20a8b81192f12a7df575897596347b8a307
[ "Apache-2.0" ]
null
null
null
tests/cli/test_agent.py
aliza-miller/prefect
a537e20a8b81192f12a7df575897596347b8a307
[ "Apache-2.0" ]
null
null
null
from unittest.mock import MagicMock from click.testing import CliRunner import pytest from prefect.cli.agent import agent pytest.importorskip("boto3") pytest.importorskip("botocore") pytest.importorskip("kubernetes") def test_agent_init(): runner = CliRunner() result = runner.invoke(agent) assert result.exit_code == 0 assert "Manage Prefect agents." in result.output def test_agent_help(): runner = CliRunner() result = runner.invoke(agent, ["--help"]) assert result.exit_code == 0 assert "Manage Prefect agents." in result.output def test_agent_start_fails_no_token(monkeypatch): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start"]) assert result.exit_code == 1 def test_agent_start_token(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start", "-t", "test"]) assert result.exit_code == 0 def test_agent_start_verbose(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start", "-v"]) assert result.exit_code == 0 def test_agent_start_local(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start", "local"]) assert result.exit_code == 0 def test_agent_start_kubernetes(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.kubernetes.KubernetesAgent.start", start) k8s_config = MagicMock() monkeypatch.setattr("kubernetes.config", k8s_config) runner = CliRunner() result = runner.invoke(agent, ["start", "kubernetes"]) assert result.exit_code == 0 def test_agent_start_kubernetes_kwargs_ignored(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.kubernetes.KubernetesAgent.start", start) k8s_config = MagicMock() monkeypatch.setattr("kubernetes.config", k8s_config) runner = CliRunner() result = runner.invoke(agent, ["start", "kubernetes", "test_kwarg=ignored"]) assert result.exit_code == 0 def test_agent_start_fargate(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.fargate.FargateAgent.start", start) boto3_client = MagicMock() monkeypatch.setattr("boto3.client", boto3_client) runner = CliRunner() result = runner.invoke(agent, ["start", "fargate"]) assert result.exit_code == 0 def test_agent_start_fargate_kwargs(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.fargate.FargateAgent.start", start) boto3_client = MagicMock() monkeypatch.setattr("boto3.client", boto3_client) runner = CliRunner() result = runner.invoke(agent, ["start", "fargate", "taskRoleArn=test"]) assert result.exit_code == 0 def test_agent_start_fargate_kwargs_received(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.fargate.FargateAgent.start", start) fargate_agent = MagicMock() monkeypatch.setattr("prefect.agent.fargate.FargateAgent", fargate_agent) boto3_client = MagicMock() monkeypatch.setattr("boto3.client", boto3_client) runner = CliRunner() result = runner.invoke( agent, ["start", "fargate", "taskRoleArn=arn", "--volumes=vol"] ) assert result.exit_code == 0 assert fargate_agent.called fargate_agent.assert_called_with( labels=[], name=None, taskRoleArn="arn", volumes="vol" ) def test_agent_start_name(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start", "--name", "test_agent"]) assert result.exit_code == 0 def test_agent_start_local_vars(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke( agent, ["start", "-t", "test", "--base-url", "url", "--no-pull"] ) assert result.exit_code == 0 def test_agent_start_local_labels(monkeypatch, runner_token): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke( agent, ["start", "-t", "test", "--label", "label1", "-l", "label2"] ) assert result.exit_code == 0 def test_agent_start_fails(monkeypatch): start = MagicMock() monkeypatch.setattr("prefect.agent.local.LocalAgent.start", start) docker_client = MagicMock() monkeypatch.setattr("prefect.agent.local.agent.docker.APIClient", docker_client) runner = CliRunner() result = runner.invoke(agent, ["start", "TEST"]) assert result.exit_code == 0 assert "TEST is not a valid agent" in result.output def test_agent_install(): runner = CliRunner() result = runner.invoke(agent, ["install"]) assert result.exit_code == 0 assert "apiVersion" in result.output def test_agent_install_kubernetes(): runner = CliRunner() result = runner.invoke(agent, ["install", "kubernetes"]) assert result.exit_code == 0 assert "apiVersion" in result.output def test_agent_install_fails_non_valid_agent(): runner = CliRunner() result = runner.invoke(agent, ["install", "fake_agent"]) assert result.exit_code == 0 assert "fake_agent is not a supported agent for `install`" in result.output def test_agent_install_passes_args(): runner = CliRunner() result = runner.invoke( agent, [ "install", "--token", "TEST_TOKEN", "--api", "TEST_API", "--namespace", "TEST_NAMESPACE", "--resource-manager", "--image-pull-secrets", "secret-test", "--label", "test_label1", "-l", "test_label2", ], ) assert result.exit_code == 0 assert "TEST_TOKEN" in result.output assert "TEST_API" in result.output assert "TEST_NAMESPACE" in result.output assert "resource-manager" in result.output assert "secret-test" in result.output assert "test_label1" in result.output assert "test_label2" in result.output def test_agent_install_no_resource_manager(): runner = CliRunner() result = runner.invoke( agent, [ "install", "--token", "TEST_TOKEN", "--api", "TEST_API", "--namespace", "TEST_NAMESPACE", "--image-pull-secrets", "secret-test", ], ) assert result.exit_code == 0 assert "TEST_TOKEN" in result.output assert "TEST_API" in result.output assert "TEST_NAMESPACE" in result.output assert not "resource-manager" in result.output assert "secret-test" in result.output
29.735294
84
0.680762
913
8,088
5.860898
0.099671
0.100916
0.136236
0.139787
0.877219
0.859092
0.835732
0.774248
0.766959
0.759858
0
0.006137
0.194115
8,088
271
85
29.845018
0.814821
0
0
0.65
0
0
0.220697
0.107567
0
0
0
0
0.2
1
0.1
false
0.005
0.035
0
0.135
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
cf5a896568977f1db0de74ce4c22d96cf841b22d
1,889
py
Python
helper.py
akarp0v/orderbook
0f4c4aeff5cbf5a9fcac52de1e8e2ca3dc0d4521
[ "MIT" ]
null
null
null
helper.py
akarp0v/orderbook
0f4c4aeff5cbf5a9fcac52de1e8e2ca3dc0d4521
[ "MIT" ]
null
null
null
helper.py
akarp0v/orderbook
0f4c4aeff5cbf5a9fcac52de1e8e2ca3dc0d4521
[ "MIT" ]
null
null
null
from order_book import OrderBook class Helper: @staticmethod def try_to_set_ask(book: OrderBook, price: float, quantity: int) -> str: try: book.set_ask(price, quantity) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def try_to_set_bid(book: OrderBook, price: float, quantity: int) -> str: try: book.set_bid(price, quantity) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def try_to_get_ask(book: OrderBook, ask_id: int) -> str: try: book.get_ask(ask_id) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def try_to_get_bid(book: OrderBook, bid_id: int) -> str: try: book.get_bid(bid_id) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def try_to_del_ask(book: OrderBook, ask_id: int) -> str: try: book.del_ask(ask_id) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def try_to_del_bid(book: OrderBook, bid_id: int) -> str: try: book.del_bid(bid_id) except ValueError as err: return err.__str__() except Exception as exp: return exp.__str__() @staticmethod def is_sorted_by_price(objects: list) -> bool: for i in range(len(objects)-1): if objects[i]['price'] > objects[i+1]['price']: return False else: return True
28.621212
76
0.573849
230
1,889
4.347826
0.195652
0.105
0.108
0.12
0.843
0.817
0.805
0.805
0.805
0.669
0
0.001605
0.340392
1,889
65
77
29.061538
0.800963
0
0
0.649123
0
0
0.005294
0
0
0
0
0
0
1
0.122807
false
0
0.017544
0
0.403509
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
d8904c31d95df02e2db3a2b113f3cef7ace4c60e
1,003
py
Python
extensions/.stubs/clrclasses/Autodesk/AutoCAD/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/clrclasses/Autodesk/AutoCAD/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/clrclasses/Autodesk/AutoCAD/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
import __clrclasses__.Autodesk.AutoCAD.DatabaseServices as DatabaseServices import __clrclasses__.Autodesk.AutoCAD.Geometry as Geometry import __clrclasses__.Autodesk.AutoCAD.GraphicsInterface as GraphicsInterface import __clrclasses__.Autodesk.AutoCAD.Colors as Colors import __clrclasses__.Autodesk.AutoCAD.LayerManager as LayerManager import __clrclasses__.Autodesk.AutoCAD.ComponentModel as ComponentModel import __clrclasses__.Autodesk.AutoCAD.Windows as Windows import __clrclasses__.Autodesk.AutoCAD.Internal as Internal import __clrclasses__.Autodesk.AutoCAD.ApplicationServices as ApplicationServices import __clrclasses__.Autodesk.AutoCAD.EditorInput as EditorInput import __clrclasses__.Autodesk.AutoCAD.Runtime as Runtime import __clrclasses__.Autodesk.AutoCAD.PlottingServices as PlottingServices import __clrclasses__.Autodesk.AutoCAD.Publishing as Publishing import __clrclasses__.Autodesk.AutoCAD.GraphicsSystem as GraphicsSystem from __clrclasses__.Autodesk.AutoCAD import UniqueString
62.6875
81
0.896311
104
1,003
8.067308
0.201923
0.321812
0.446961
0.517282
0
0
0
0
0
0
0
0
0.059821
1,003
15
82
66.866667
0.889714
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
d8aef5ecfaacba6e5cad207a7829f07958167cce
38,187
py
Python
tests/backward_conv.py
airbus/decomon
f3668fbd8edd0def4e23aa0634eebfec58349c35
[ "MIT" ]
11
2021-11-03T12:09:50.000Z
2022-02-20T21:42:13.000Z
tests/backward_conv.py
airbus/decomon
f3668fbd8edd0def4e23aa0634eebfec58349c35
[ "MIT" ]
1
2022-02-18T13:40:46.000Z
2022-02-18T13:40:46.000Z
tests/backward_conv.py
airbus/decomon
f3668fbd8edd0def4e23aa0634eebfec58349c35
[ "MIT" ]
null
null
null
# Test unit for decomon with Dense layers from __future__ import absolute_import import pytest import numpy as np from . import ( get_standard_values_images_box, get_tensor_decomposition_images_box, assert_output_properties_box_linear, ) import tensorflow.python.keras.backend as K from tensorflow.keras.layers import Input from decomon.layers.decomon_layers import DecomonConv2D from decomon.backward_layers.backward_layers import get_backward @pytest.mark.parametrize( "data_format, odd, m_0, m_1, activation, padding, use_bias, mode, floatx, previous", [ ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 32, True), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 32, True), ("channels_last", 0, 0, 1, None, "same", True, "forward", 32, True), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 32, True), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 32, True), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 32, True), ("channels_first", 0, 0, 1, None, "same", True, "forward", 32, True), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 32, True), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 32, True), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 32, True), ("channels_last", 0, 0, 1, None, "same", False, "forward", 32, True), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 32, True), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 32, True), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 32, True), ("channels_first", 0, 0, 1, None, "same", False, "forward", 32, True), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 32, True), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 32, True), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 32, True), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 32, True), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 32, True), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 32, True), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 32, True), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 32, True), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 32, True), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 32, True), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 32, True), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 32, True), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 32, True), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 32, True), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 32, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 32, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 32, True), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 32, True), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 32, True), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 32, True), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 32, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 32, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 32, True), ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 64, True), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 64, True), ("channels_last", 0, 0, 1, None, "same", True, "forward", 64, True), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 64, True), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 64, True), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 64, True), ("channels_first", 0, 0, 1, None, "same", True, "forward", 64, True), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 64, True), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 64, True), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 64, True), ("channels_last", 0, 0, 1, None, "same", False, "forward", 64, True), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 64, True), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 64, True), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 64, True), ("channels_first", 0, 0, 1, None, "same", False, "forward", 64, True), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 64, True), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 64, True), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 64, True), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 64, True), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 64, True), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 64, True), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 64, True), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 64, True), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 64, True), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 64, True), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 64, True), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 64, True), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 64, True), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 64, True), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 64, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 64, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 64, True), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 64, True), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 64, True), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 64, True), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 64, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 64, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 64, True), ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 16, True), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 16, True), ("channels_last", 0, 0, 1, None, "same", True, "forward", 16, True), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 16, True), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 16, True), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 16, True), ("channels_first", 0, 0, 1, None, "same", True, "forward", 16, True), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 16, True), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 16, True), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 16, True), ("channels_last", 0, 0, 1, None, "same", False, "forward", 16, True), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 16, True), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 16, True), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 16, True), ("channels_first", 0, 0, 1, None, "same", False, "forward", 16, True), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 16, True), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 16, True), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 16, True), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 16, True), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 16, True), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 16, True), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 16, True), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 16, True), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 16, True), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 16, True), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 16, True), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 16, True), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 16, True), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 16, True), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 16, True), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 16, True), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 16, True), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 16, True), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 16, True), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 16, True), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 16, True), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 16, True), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 16, True), ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 32, False), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 32, False), ("channels_last", 0, 0, 1, None, "same", True, "forward", 32, False), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 32, False), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 32, False), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 32, False), ("channels_first", 0, 0, 1, None, "same", True, "forward", 32, False), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 32, False), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 32, False), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 32, False), ("channels_last", 0, 0, 1, None, "same", False, "forward", 32, False), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 32, False), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 32, False), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 32, False), ("channels_first", 0, 0, 1, None, "same", False, "forward", 32, False), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 32, False), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 32, False), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 32, False), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 32, False), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 32, False), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 32, False), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 32, False), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 32, False), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 32, False), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 32, False), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 32, False), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 32, False), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 32, False), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 32, False), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 32, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 32, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 32, False), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 32, False), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 32, False), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 32, False), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 32, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 32, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 32, False), ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 64, False), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 64, False), ("channels_last", 0, 0, 1, None, "same", True, "forward", 64, False), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 64, False), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 64, False), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 64, False), ("channels_first", 0, 0, 1, None, "same", True, "forward", 64, False), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 64, False), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 64, False), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 64, False), ("channels_last", 0, 0, 1, None, "same", False, "forward", 64, False), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 64, False), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 64, False), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 64, False), ("channels_first", 0, 0, 1, None, "same", False, "forward", 64, False), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 64, False), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 64, False), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 64, False), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 64, False), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 64, False), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 64, False), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 64, False), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 64, False), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 64, False), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 64, False), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 64, False), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 64, False), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 64, False), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 64, False), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 64, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 64, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 64, False), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 64, False), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 64, False), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 64, False), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 64, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 64, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 64, False), ("channels_last", 0, 0, 1, None, "same", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, "linear", "same", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, "relu", "same", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, None, "valid", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, None, "same", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, "linear", "same", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, "relu", "same", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, None, "valid", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "hybrid", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "hybrid", 16, False), ("channels_last", 0, 0, 1, None, "same", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, "linear", "same", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, "relu", "same", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, None, "valid", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, None, "same", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, "linear", "same", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, "relu", "same", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, None, "valid", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "hybrid", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "hybrid", 16, False), ("channels_last", 0, 0, 1, None, "same", True, "forward", 16, False), ("channels_last", 0, 0, 1, "linear", "same", True, "forward", 16, False), ("channels_last", 0, 0, 1, "relu", "same", True, "forward", 16, False), ("channels_last", 0, 0, 1, None, "valid", True, "forward", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "forward", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "forward", 16, False), ("channels_first", 0, 0, 1, None, "same", True, "forward", 16, False), ("channels_first", 0, 0, 1, "linear", "same", True, "forward", 16, False), ("channels_first", 0, 0, 1, "relu", "same", True, "forward", 16, False), ("channels_first", 0, 0, 1, None, "valid", True, "forward", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "forward", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "forward", 16, False), ("channels_last", 0, 0, 1, None, "same", False, "forward", 16, False), ("channels_last", 0, 0, 1, "linear", "same", False, "forward", 16, False), ("channels_last", 0, 0, 1, "relu", "same", False, "forward", 16, False), ("channels_last", 0, 0, 1, None, "valid", False, "forward", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "forward", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "forward", 16, False), ("channels_first", 0, 0, 1, None, "same", False, "forward", 16, False), ("channels_first", 0, 0, 1, "linear", "same", False, "forward", 16, False), ("channels_first", 0, 0, 1, "relu", "same", False, "forward", 16, False), ("channels_first", 0, 0, 1, None, "valid", False, "forward", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "forward", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "forward", 16, False), ("channels_last", 0, 0, 1, None, "same", True, "ibp", 16, False), ("channels_last", 0, 0, 1, "linear", "same", True, "ibp", 16, False), ("channels_last", 0, 0, 1, "relu", "same", True, "ibp", 16, False), ("channels_last", 0, 0, 1, None, "valid", True, "ibp", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", True, "ibp", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", True, "ibp", 16, False), ("channels_first", 0, 0, 1, None, "same", True, "ibp", 16, False), ("channels_first", 0, 0, 1, "linear", "same", True, "ibp", 16, False), ("channels_first", 0, 0, 1, "relu", "same", True, "ibp", 16, False), ("channels_first", 0, 0, 1, None, "valid", True, "ibp", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", True, "ibp", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", True, "ibp", 16, False), ("channels_last", 0, 0, 1, None, "same", False, "ibp", 16, False), ("channels_last", 0, 0, 1, "linear", "same", False, "ibp", 16, False), ("channels_last", 0, 0, 1, "relu", "same", False, "ibp", 16, False), ("channels_last", 0, 0, 1, None, "valid", False, "ibp", 16, False), ("channels_last", 0, 0, 1, "linear", "valid", False, "ibp", 16, False), ("channels_last", 0, 0, 1, "relu", "valid", False, "ibp", 16, False), ("channels_first", 0, 0, 1, None, "same", False, "ibp", 16, False), ("channels_first", 0, 0, 1, "linear", "same", False, "ibp", 16, False), ("channels_first", 0, 0, 1, "relu", "same", False, "ibp", 16, False), ("channels_first", 0, 0, 1, None, "valid", False, "ibp", 16, False), ("channels_first", 0, 0, 1, "linear", "valid", False, "ibp", 16, False), ("channels_first", 0, 0, 1, "relu", "valid", False, "ibp", 16, False), ], ) def test_Decomon_conv_box(data_format, odd, m_0, m_1, activation, padding, use_bias, mode, floatx, previous): if data_format == "channels_first" and not len(K._get_available_gpus()): return K.set_floatx("float{}".format(floatx)) eps = K.epsilon() decimal = 5 if floatx == 16: K.set_epsilon(1e-2) decimal = 2 layer = DecomonConv2D( 10, kernel_size=(3, 3), activation=activation, dc_decomp=False, padding=padding, use_bias=use_bias, mode=mode ) inputs = get_tensor_decomposition_images_box(data_format, odd, dc_decomp=False) inputs_ = get_standard_values_images_box(data_format, odd, m0=m_0, m1=m_1, dc_decomp=False) x, y, z_, u_c, W_u, b_u, l_c, W_l, b_l = inputs_ if mode == "hybrid": input_mode = inputs[2:] output = layer(input_mode) z_0, u_c_0, _, _, l_c_0, _, _ = output if mode == "forward": input_mode = [inputs[2], inputs[4], inputs[5], inputs[7], inputs[8]] output = layer(input_mode) z_0, _, _, _, _ = output if mode == "ibp": input_mode = [inputs[3], inputs[6]] output = layer(input_mode) u_c_0, l_c_0 = output output_shape = np.prod(output[-1].shape[1:]) w_out = Input((output_shape, output_shape)) b_out = Input((output_shape,)) # get backward layer layer_backward = get_backward(layer, previous=previous) if previous: w_out_u, b_out_u, w_out_l, b_out_l = layer_backward(input_mode + [w_out, b_out, w_out, b_out]) f_conv = K.function(inputs + [w_out, b_out], [w_out_u, b_out_u, w_out_l, b_out_l]) w_init = np.concatenate([np.diag([1.0] * output_shape)[None]] * len(x)).reshape( (-1, output_shape, output_shape) ) b_init = np.zeros((len(x), output_shape)) output_ = f_conv(inputs_ + [w_init, b_init]) else: w_out_u, b_out_u, w_out_l, b_out_l = layer_backward(input_mode) f_conv = K.function(inputs, [w_out_u, b_out_u, w_out_l, b_out_l]) output_ = f_conv(inputs_) # import pdb; pdb.set_trace() # import pdb; pdb.set_trace() w_u_, b_u_, w_l_, b_l_ = output_ w_u_ = w_u_[:, None] w_l_ = w_l_[:, None] b_u_ = b_u_[:, None] b_l_ = b_l_[:, None] # step 1: flatten W_u W_u = W_u.reshape((len(W_u), W_u.shape[1], -1)) W_l = W_l.reshape((len(W_l), W_l.shape[1], -1)) w_r_u = np.sum(np.maximum(0.0, w_u_) * np.expand_dims(W_u, -1), 2) + np.sum( np.minimum(0.0, w_u_) * np.expand_dims(W_l, -1), 2 ) w_r_l = np.sum(np.maximum(0.0, w_l_) * np.expand_dims(W_l, -1), 2) + np.sum( np.minimum(0.0, w_l_) * np.expand_dims(W_u, -1), 2 ) b_l = b_l.reshape((len(b_l), -1)) b_u = b_u.reshape((len(b_u), -1)) b_r_u = ( np.sum(np.maximum(0, w_u_[:, 0]) * np.expand_dims(b_u, -1), 1)[:, None] + np.sum(np.minimum(0, w_u_[:, 0]) * np.expand_dims(b_l, -1), 1)[:, None] + b_u_ ) b_r_l = ( np.sum(np.maximum(0, w_l_[:, 0]) * np.expand_dims(b_l, -1), 1)[:, None] + np.sum(np.minimum(0, w_l_[:, 0]) * np.expand_dims(b_u, -1), 1)[:, None] + b_l_ ) assert_output_properties_box_linear(x, None, z_[:, 0], z_[:, 1], None, w_r_u, b_r_u, None, w_r_l, b_r_l, "nodc") K.set_floatx("float32") K.set_epsilon(eps)
69.8117
117
0.539398
5,426
38,187
3.669001
0.023222
0.043801
0.065099
0.151899
0.937613
0.923146
0.920133
0.9131
0.909584
0.901597
0
0.07591
0.226569
38,187
546
118
69.93956
0.598138
0.003509
0
0.005769
0
0
0.306174
0
0
0
0
0
0.003846
1
0.001923
false
0
0.015385
0
0.019231
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
2b0524f45ed8e6588a208d87eb51b56420a73388
271
py
Python
7kyu/(7 kyu) Remove duplicate words/(7 kyu) Remove duplicate words.py
e1r0nd/codewars
dc98484281345e7675eb5e8a51c192e2fa77c443
[ "MIT" ]
49
2018-04-30T06:42:45.000Z
2021-07-22T16:39:02.000Z
(7 kyu) Remove duplicate words/(7 kyu) Remove duplicate words.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
1
2020-08-31T02:36:53.000Z
2020-08-31T10:14:00.000Z
(7 kyu) Remove duplicate words/(7 kyu) Remove duplicate words.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
25
2018-04-02T20:57:58.000Z
2021-05-28T15:24:51.000Z
# #1 py 3.4.3 # from collections import OrderedDict # def remove_duplicate_words(s): # str = s.split(' ') # return ' '.join(list(OrderedDict((x, True) for x in str).keys())) #2 py 3.6.0 def remove_duplicate_words(s): return ' '.join(dict.fromkeys(s.split()))
30.111111
71
0.649446
44
271
3.909091
0.636364
0.034884
0.209302
0.267442
0.27907
0
0
0
0
0
0
0.035556
0.169742
271
8
72
33.875
0.728889
0.664207
0
0
0
0
0.012048
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
0
1
1
0
0
6
2b1421bc74810242a5ec7eba40f482fab5121507
172
py
Python
oscar/apps/payment/datacash/models.py
owad/django-oscar
cfa69e37dc9abc97a7aff5c8616da319e1771008
[ "BSD-3-Clause" ]
1
2022-03-17T19:26:13.000Z
2022-03-17T19:26:13.000Z
oscar/apps/payment/datacash/models.py
aykut/django-oscar
ca3629e74ea1e0affc55d3de4e97f523e352d267
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/payment/datacash/models.py
aykut/django-oscar
ca3629e74ea1e0affc55d3de4e97f523e352d267
[ "BSD-3-Clause" ]
1
2019-03-23T10:26:02.000Z
2019-03-23T10:26:02.000Z
from django.db import models from oscar.apps.payment.datacash.abstract_models import AbstractOrderTransaction class OrderTransaction(AbstractOrderTransaction): pass
21.5
80
0.848837
18
172
8.055556
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.104651
172
7
81
24.571429
0.941558
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
2b1fa98fc8a51e69895d7243f64ebfa68cc814ab
23
py
Python
tempCodeRunnerFile.py
anthonykrivonos/nba-ml
3b4c7fcc30d699351eb506be775890446b4f2739
[ "MIT" ]
3
2019-03-07T02:59:46.000Z
2020-03-05T14:25:34.000Z
tempCodeRunnerFile.py
anthonykrivonos/nba-ml
3b4c7fcc30d699351eb506be775890446b4f2739
[ "MIT" ]
null
null
null
tempCodeRunnerFile.py
anthonykrivonos/nba-ml
3b4c7fcc30d699351eb506be775890446b4f2739
[ "MIT" ]
null
null
null
print(row)
11.5
22
0.347826
2
23
4
1
0
0
0
0
0
0
0
0
0
0
0
0.565217
23
2
22
11.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
6
2b38d549740a16825f56249b173d1b45cccb2275
63
py
Python
mdp_playground/config_processor/__init__.py
RaghuSpaceRajan/mdp-playground
4dd00ae3d58620f27b4c14befb7ce47c6df83d00
[ "Apache-2.0" ]
11
2021-06-01T08:46:08.000Z
2022-03-18T16:46:22.000Z
mdp_playground/config_processor/__init__.py
RaghuSpaceRajan/mdp-playground
4dd00ae3d58620f27b4c14befb7ce47c6df83d00
[ "Apache-2.0" ]
6
2021-05-30T09:30:12.000Z
2021-10-20T12:31:03.000Z
mdp_playground/config_processor/__init__.py
automl/mdp-playground
4dd00ae3d58620f27b4c14befb7ce47c6df83d00
[ "Apache-2.0" ]
4
2021-07-07T15:52:04.000Z
2022-03-14T06:18:30.000Z
from mdp_playground.config_processor.config_processor import *
31.5
62
0.888889
8
63
6.625
0.75
0.566038
0
0
0
0
0
0
0
0
0
0
0.063492
63
1
63
63
0.898305
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
9937c09e41000343c318633dd2f43d44b6d8f615
3,519
py
Python
dapy/utils/localisation.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/utils/localisation.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/utils/localisation.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Locally supported weighting functions.""" import numpy as np import numba as nb @nb.njit(nb.double[:](nb.double[:], nb.double), parallel=True) def gaspari_and_cohn_weighting(distances, radius): """Compactly supported smooth weighting kernel function. Args: distances: One-dimensional array of distances. radius: Positive scaling parameter determining distance over which weights are non-zero, with distances greater than `radius` mapping to zero weights and distances in `[0, radius]` mapping to non-zero weights that smoothly decrease from 1 to 0. Returns: One-dimensional array of weight values in [0, 1] with zero weights for all distances greater than radius i.e. `all(weights[d > radius] == 0) == True`. References: 1. Gaspari, G., & Cohn, S. E. (1999). Construction of correlation functions in two and three dimensions. Quarterly Journal of the Royal Meteorological Society, 125(554), 723-757. """ weights = np.empty(distances.shape[0]) for i in nb.prange(distances.shape[0]): u = 2 * abs(distances[i]) / radius if u <= 1: weights[i] = ( -(u ** 5) / 4.0 + u ** 4 / 2.0 + 5 * u ** 3 / 8.0 - 5 * u ** 2 / 3.0 + 1 ) elif u <= 2: weights[i] = ( u ** 5 / 12.0 - u ** 4 / 2.0 + 5 * u ** 3 / 8.0 + 5 * u ** 2 / 3.0 - 5 * u + 4 - 2 / (3 * u) ) else: weights[i] = 0 return weights @nb.njit(nb.double[:](nb.double[:], nb.double), parallel=True) def triangular_weighting(distances, radius): """Compactly supported piecewise linear weighting kernel function. Args: distances: One-dimensional array of distances. radius: Positive scaling parameter determining distance over which weights are non-zero, with distances greater than `radius` mapping to zero weights and distances in `[0, radius]` mapping to non-zero weights that linearly decrease from 1 to 0. Returns: One-dimensional array of weight values in [0, 1] with zero weights for all distances greater than radius i.e. `all(weights[d > radius] == 0) == True`. """ weights = np.empty(distances.shape[0]) for i in nb.prange(distances.shape[0]): u = abs(distances[i]) / radius if u <= 1.0: weights[i] = 1.0 - u else: weights[i] = 0.0 return weights @nb.njit(nb.double[:](nb.double[:], nb.double), parallel=True) def uniform_weighting(distances, radius): """Compactly supported uniform (rectangular) kernel function. Args: distances: One-dimensional array of distances. radius: Positive scaling parameter determining distance over which weights are non-zero, with distances greater than `radius` mapping to zero weights and distances in `[0, radius]` mapping to unit weights. Returns: One-dimensional array of weight values in [0, 1] with zero weights for all distances greater than radius i.e. `all(weights[d > radius] == 0) == True`. """ weights = np.empty(distances.shape[0]) for i in nb.prange(distances.shape[0]): u = abs(distances[i]) / radius if u <= 1.0: weights[i] = 1.0 else: weights[i] = 0.0 return weights
36.278351
88
0.583973
462
3,519
4.437229
0.218615
0.035122
0.029268
0.046829
0.833171
0.764878
0.764878
0.734146
0.734146
0.734146
0
0.036535
0.307758
3,519
96
89
36.65625
0.805008
0.535664
0
0.522727
0
0
0
0
0
0
0
0
0
1
0.068182
false
0
0.045455
0
0.181818
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
993c5976e6119df55620ebd08a4bd8b644940e6b
97
py
Python
nifpy/__init__.py
shresth26/nifpy
5f23efbbf4b9491352a43766f5b8f332516fb3ac
[ "MIT" ]
2
2022-02-18T16:22:06.000Z
2022-03-12T11:04:18.000Z
nifpy/__init__.py
shresth26/nifpy
5f23efbbf4b9491352a43766f5b8f332516fb3ac
[ "MIT" ]
null
null
null
nifpy/__init__.py
shresth26/nifpy
5f23efbbf4b9491352a43766f5b8f332516fb3ac
[ "MIT" ]
3
2021-09-24T15:52:16.000Z
2022-03-12T11:04:45.000Z
# from nifpy import financials from .financials import * from .info import * from .graph import *
24.25
30
0.762887
13
97
5.692308
0.461538
0.27027
0
0
0
0
0
0
0
0
0
0
0.164948
97
4
31
24.25
0.91358
0.28866
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
994d09eca556070deef2b08870da85159cd552cf
37
py
Python
TEST3D/GUI/0010508_page_skel/cleanup.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
TEST3D/GUI/0010508_page_skel/cleanup.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
TEST3D/GUI/0010508_page_skel/cleanup.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
removefile('skelpagesnaprefine.log')
18.5
36
0.837838
3
37
10.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.027027
37
1
37
37
0.861111
0
0
0
0
0
0.594595
0.594595
0
0
0
0
0
1
0
true
0
0
0
0
0
1
1
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
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
9989456b613cd4c087a35b8ae1a345ffeac33de6
84
py
Python
eddl/layers/__init__.py
salvacarrion/pyeddl
56d1e4378844d12c064f168f4541900684079c4b
[ "MIT" ]
null
null
null
eddl/layers/__init__.py
salvacarrion/pyeddl
56d1e4378844d12c064f168f4541900684079c4b
[ "MIT" ]
null
null
null
eddl/layers/__init__.py
salvacarrion/pyeddl
56d1e4378844d12c064f168f4541900684079c4b
[ "MIT" ]
null
null
null
from .conv import * from .core import * from .merge import * from .pooling import *
16.8
22
0.714286
12
84
5
0.5
0.5
0
0
0
0
0
0
0
0
0
0
0.190476
84
4
23
21
0.882353
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
998cb265ffbe2a2cea68d3d0f43f123648690377
27
py
Python
python/sparkimages/__init__.py
Bhaskers-Blu-Org2/spark-images
fe4c68544a4f4b95f37fea1c1aaa6da2f88a724b
[ "Apache-2.0" ]
8
2019-06-29T07:50:49.000Z
2021-09-06T12:02:56.000Z
python/sparkimages/__init__.py
microsoft/spark-images
fe4c68544a4f4b95f37fea1c1aaa6da2f88a724b
[ "Apache-2.0" ]
null
null
null
python/sparkimages/__init__.py
microsoft/spark-images
fe4c68544a4f4b95f37fea1c1aaa6da2f88a724b
[ "Apache-2.0" ]
5
2019-11-03T12:27:42.000Z
2021-05-26T07:34:34.000Z
from .ImageSchema import *
13.5
26
0.777778
3
27
7
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
1
27
27
0.913043
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
5144f97e6604564d604b8b262c9e43f69f42869f
12,979
py
Python
tests/api/test_client.py
cottonmalone/binance-dex
2b33e5d0dd0e24e78eea58e857d9872e5adc8c5f
[ "MIT" ]
null
null
null
tests/api/test_client.py
cottonmalone/binance-dex
2b33e5d0dd0e24e78eea58e857d9872e5adc8c5f
[ "MIT" ]
null
null
null
tests/api/test_client.py
cottonmalone/binance-dex
2b33e5d0dd0e24e78eea58e857d9872e5adc8c5f
[ "MIT" ]
null
null
null
import pytest import datetime from binance.api import * POSIX_ORGIN = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) def test_client_ctor(): """ Test that object is initialised correctly. """ assert Client('url').base_url == 'url' def test_client_get_time(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_time() == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/time') def test_client_get_node_info(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_node_info() == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/node-info') def test_client_get_validators(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_validators() == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/validators') def test_client_get_peers(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_peers() == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/peers') def test_client_get_account(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_account('id') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/account/id') def test_client_get_account_sequence(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_account_sequence('id') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/account/id/sequence') def test_client_get_transaction(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_transaction('id') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/tx/id?format=json') def test_client_get_tokens(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_tokens('offset', 'limit') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/tokens', params={ 'offset': 'offset', 'limit': 'limit' }) def test_client_get_markets(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_markets('offset', 'limit') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/markets', params={ 'offset': 'offset', 'limit': 'limit' }) def test_client_get_fees(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_fees() == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/fees') def test_client_get_depth(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_depth('symbol', 'limit') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/depth', params={ 'symbol': 'symbol', 'limit': 'limit' }) def test_client_broadcast(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality post = mocker.patch('binance.api.client.post', return_value='foo') # check that return value is correct assert Client('url').broadcast('transaction', 'sync') == 'foo' # check that mock functions were called as expected post.assert_called_with('url', '/api/v1/broadcast', headers={"Content-Type": "text/plain"}, params={'sync': 'sync'}, data='transaction') @pytest.mark.parametrize('start_time,end_time,exp_start_time,exp_end_time', [ (None, None, None, None), (POSIX_ORGIN, POSIX_ORGIN, 0, 0) ]) def test_client_get_klines(start_time, end_time, exp_start_time, exp_end_time, mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_klines('symbol', Interval.INT_1_DAY, 'limit', start_time, end_time) == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/klines', params={ 'symbol': 'symbol', 'interval': '1d', 'limit': 'limit', 'startTime': exp_start_time, 'endTime': exp_end_time, }) @pytest.mark.parametrize('start_time,end_time,exp_start_time,exp_end_time', [ (None, None, None, None), (POSIX_ORGIN, POSIX_ORGIN, 0, 0) ]) def test_client_get_closed_orders(start_time, end_time, exp_start_time, exp_end_time, mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_closed_orders('address', 'symbol', OrderStatus.ACK, Side.BUY, 'offset', 'limit', True, start_time, end_time) == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/orders/closed', params={ 'address': 'address', 'symbol': 'symbol', 'status': 'Ack', 'side': 1, 'offset': 'offset', 'limit': 'limit', 'total': 1, 'start': exp_start_time, 'end': exp_end_time, }) def test_client_get_open_orders(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_open_orders('address', 'symbol', 'offset', 'limit', True) == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/orders/open', params={ 'address': 'address', 'symbol': 'symbol', 'offset': 'offset', 'limit': 'limit', 'total': 1 }) def test_client_get_order(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_order('id') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/orders/id') def test_client_get_ticker(mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_ticker('symbol') == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/ticker/24hr', params={ 'symbol': 'symbol' }) @pytest.mark.parametrize('start_time,end_time,exp_start_time,exp_end_time', [ (None, None, None, None), (POSIX_ORGIN, POSIX_ORGIN, 0, 0) ]) def test_client_get_trades(start_time, end_time, exp_start_time, exp_end_time, mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_trades('address', 'buyer_order_id', 'seller_order_id', 'quote_asset', 'symbol', 'height', Side.BUY, 'offset', 'limit', True, start_time, end_time) == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/trades', params={ 'address': 'address', 'buyerOrderId': 'buyer_order_id', 'sellerOrderId': 'seller_order_id', 'quoteAsset': 'quote_asset', 'symbol': 'symbol', 'height': 'height', 'side': 1, 'offset': 'offset', 'limit': 'limit', 'total': 1, 'start': exp_start_time, 'end': exp_end_time, }) @pytest.mark.parametrize('start_time,end_time,exp_start_time,exp_end_time', [ (None, None, None, None), (POSIX_ORGIN, POSIX_ORGIN, 0, 0) ]) def test_client_get_transactions(start_time, end_time, exp_start_time, exp_end_time, mocker): """ Test that methods behaves as expected. """ # mock all underlying functionality get = mocker.patch('binance.api.client.get', return_value='foo') # check that return value is correct assert Client('url').get_transactions('address', 'height', 'tx_asset', TransactionType.BURN_TOKEN, TransactionSide.RECEIVE, 'offset', 'limit', start_time, end_time) == 'foo' # check that mock functions were called as expected get.assert_called_with('url', '/api/v1/transactions', params={ 'address': 'address', 'blockHeight': 'height', 'txAsset': 'tx_asset', 'txType': 'BURN_TOKEN', 'side': 'RECEIVE', 'offset': 'offset', 'limit': 'limit', 'startTime': exp_start_time, 'endTime': exp_end_time, })
31.96798
77
0.559288
1,422
12,979
4.936709
0.085091
0.054131
0.064957
0.056838
0.822507
0.792023
0.784615
0.784615
0.784615
0.76567
0
0.004798
0.325603
12,979
405
78
32.046914
0.797212
0.23461
0
0.574163
0
0
0.203195
0.071003
0
0
0
0
0.186603
1
0.095694
false
0
0.014354
0
0.110048
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
5a9aace782eb1c45b4e5cfec867ec5093569c876
4,577
py
Python
src/jt/rubicon/java/_jmethod.py
karpierz/jtypes.rubicon
8f8196e47de93183eb9728fec0d08725fc368ee0
[ "BSD-3-Clause" ]
2
2018-11-29T06:19:05.000Z
2018-12-09T09:47:55.000Z
src/jt/rubicon/java/_jmethod.py
karpierz/jtypes.rubicon
8f8196e47de93183eb9728fec0d08725fc368ee0
[ "BSD-3-Clause" ]
null
null
null
src/jt/rubicon/java/_jmethod.py
karpierz/jtypes.rubicon
8f8196e47de93183eb9728fec0d08725fc368ee0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2016-2019, Adam Karpierz # Licensed under the BSD license # http://opensource.org/licenses/BSD-3-Clause from ...jvm.lib import annotate from ...jvm.lib import public from ._jvm import JVM from ._conversion import _convert_args_to_jargs, select_polymorph @public class StaticJavaMethod(object): """The representation for a static method on a Java object Constructor requires: * java_class - the Python representation of the Java class * name - the method name being invoked. """ def __init__(self, java_class, name): self.java_class = java_class self.name = name self.__polymorphs = {} def add(self, params_signature, return_signature): if params_signature in self.__polymorphs: return type_manager = JVM.jvm.type_manager thandler = type_manager.get_handler(return_signature) full_signature = "({}){}".format(params_signature, return_signature) with JVM.jvm as (jvm, jenv): try: jmethod_id = jenv.GetStaticMethodID(self.java_class.__javaclass__, self.name.encode("utf-8"), full_signature.encode("utf-8")) except: # <AK> was: if jmethod_id.value is None: raise RuntimeError("Couldn't find static Java method '{}.{}' with signature " "'{}'".format(self.java_class.__dict__["_descriptor"], self.name, full_signature)) self.__polymorphs[params_signature] = dict(thandler=thandler, jmethod_id=jmethod_id) def __call__(self, *args): try: arg_sig, match_types, polymorph = select_polymorph(self.__polymorphs, args) jmethod_id = polymorph["jmethod_id"] jargs = _convert_args_to_jargs(args, match_types) thandler = polymorph["thandler"] return thandler.callStatic(jmethod_id, self.java_class.__javaclass__, jargs) except KeyError as exc: raise ValueError("Can't find Java static method '{}.{}' matching argument signature " "'{}'. Options are: {}".format(self.java_class.__dict__["_descriptor"], self.name, exc, self.__polymorphs.keys())) @public class JavaMethod(object): def __init__(self, java_class, name): self.java_class = java_class self.name = name self.__polymorphs = {} def add(self, params_signature, return_signature): type_manager = JVM.jvm.type_manager thandler = type_manager.get_handler(return_signature) full_signature = "({}){}".format(params_signature, return_signature) with JVM.jvm as (jvm, jenv): try: jmethod_id = jenv.GetMethodID(self.java_class.__javaclass__, self.name.encode("utf-8"), full_signature.encode("utf-8")) except: # <AK> was: if jmethod_id.value is None: raise RuntimeError("Couldn't find Java method '{}.{}' with signature " "'{}'".format(self.java_class.__dict__["_descriptor"], self.name, full_signature)) self.__polymorphs[params_signature] = dict(thandler=thandler, jmethod_id=jmethod_id) def __call__(self, instance, *args): try: arg_sig, match_types, polymorph = select_polymorph(self.__polymorphs, args) jmethod_id = polymorph["jmethod_id"] jargs = _convert_args_to_jargs(args, match_types) thandler = polymorph["thandler"] return thandler.callInstance(jmethod_id, instance, jargs) except KeyError as exc: raise ValueError("Can't find Java instance method '{}.{}' matching argument signature " "'{}'. Options are: {}".format(self.java_class.__dict__["_descriptor"], self.name, exc, self.__polymorphs.keys())) @public class BoundJavaMethod(object): def __init__(self, instance, method): self.instance = instance self.method = method def __call__(self, *args): return self.method(self.instance, *args)
39.119658
102
0.568276
461
4,577
5.312364
0.234273
0.055125
0.058391
0.049
0.718661
0.718661
0.718661
0.718661
0.718661
0.718661
0
0.004274
0.335373
4,577
116
103
39.456897
0.800789
0.082587
0
0.714286
0
0
0.096117
0
0
0
0
0
0
1
0.103896
false
0
0.051948
0.012987
0.246753
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
5a9f5cc6afdda05850a356c417c34949fdb24d36
1,948
py
Python
epytope/Data/pssms/epidemix/mat/A_0201_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/epidemix/mat/A_0201_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/epidemix/mat/A_0201_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
A_0201_9 = {0: {'A': 0.1, 'C': 0.0, 'E': -1.0, 'D': -1.1, 'G': 0.1, 'F': 0.4, 'I': 0.2, 'H': 0.3, 'K': 0.0, 'M': -0.2, 'L': 0.0, 'N': -0.9, 'Q': -0.1, 'P': -1.2, 'S': 0.4, 'R': 0.1, 'T': -0.3, 'W': 0.5, 'V': 0.3, 'Y': 0.4}, 1: {'A': -0.3, 'C': -1.7, 'E': -1.3, 'D': -1.3, 'G': -4.0, 'F': -0.6, 'I': 0.1, 'H': -2.6, 'K': -1.3, 'M': 1.0, 'L': 1.8, 'N': -3.2, 'Q': -2.8, 'P': -3.3, 'S': -1.3, 'R': -3.2, 'T': -0.2, 'W': -1.6, 'V': 0.0, 'Y': -2.4}, 2: {'A': 0.2, 'C': 0.1, 'E': -1.1, 'D': 0.5, 'G': 0.0, 'F': 0.0, 'I': 0.0, 'H': 0.5, 'K': -0.7, 'M': 0.3, 'L': 0.1, 'N': 0.1, 'Q': -0.5, 'P': -0.3, 'S': -0.1, 'R': -0.2, 'T': -0.7, 'W': 1.1, 'V': 0.1, 'Y': 0.1}, 3: {'A': 0.0, 'C': -0.2, 'E': 0.5, 'D': 0.8, 'G': 0.5, 'F': -1.2, 'I': 0.0, 'H': 0.0, 'K': -0.8, 'M': -0.3, 'L': -0.3, 'N': -0.5, 'Q': 0.0, 'P': 0.8, 'S': -0.2, 'R': 0.0, 'T': -0.1, 'W': 0.0, 'V': -0.8, 'Y': -3.0}, 4: {'A': -0.5, 'C': -0.2, 'E': 0.1, 'D': -0.8, 'G': 0.7, 'F': 0.0, 'I': -0.3, 'H': 0.4, 'K': -0.1, 'M': -0.6, 'L': 0.1, 'N': -0.2, 'Q': 0.0, 'P': 0.0, 'S': -1.0, 'R': -0.2, 'T': 0.0, 'W': 0.7, 'V': 0.2, 'Y': 0.5}, 5: {'A': -0.4, 'C': 0.2, 'E': -0.3, 'D': -0.6, 'G': -0.8, 'F': 0.5, 'I': 0.7, 'H': -0.1, 'K': -0.8, 'M': 0.7, 'L': 0.3, 'N': -0.3, 'Q': -0.3, 'P': -0.2, 'S': -0.3, 'R': -1.0, 'T': 0.1, 'W': -0.2, 'V': 0.7, 'Y': -0.1}, 6: {'A': 0.1, 'C': 0.3, 'E': -0.5, 'D': -1.0, 'G': -0.6, 'F': 0.0, 'I': 0.2, 'H': 0.9, 'K': -1.6, 'M': 0.4, 'L': 0.1, 'N': -0.2, 'Q': 0.0, 'P': 0.1, 'S': -0.3, 'R': 0.0, 'T': 0.0, 'W': 1.2, 'V': 0.5, 'Y': -0.2}, 7: {'A': -0.5, 'C': 0.0, 'E': 0.3, 'D': -1.1, 'G': -0.4, 'F': 0.0, 'I': -0.1, 'H': 0.2, 'K': 0.0, 'M': -0.3, 'L': 0.0, 'N': -0.3, 'Q': 0.3, 'P': -0.4, 'S': 0.2, 'R': 0.6, 'T': 0.5, 'W': 0.1, 'V': -0.5, 'Y': 0.2}, 8: {'A': -0.1, 'C': 0.6, 'E': -3.6, 'D': -3.7, 'G': -4.0, 'F': -2.3, 'I': 0.5, 'H': -2.7, 'K': -3.4, 'M': 0.1, 'L': 1.2, 'N': -3.4, 'Q': -0.5, 'P': -3.3, 'S': -1.4, 'R': -3.3, 'T': -1.0, 'W': -1.8, 'V': 1.7, 'Y': -2.5}}
1,948
1,948
0.285934
552
1,948
1.005435
0.056159
0.09009
0.021622
0.028829
0.436036
0.111712
0.068468
0.068468
0.03964
0.03964
0
0.237009
0.189938
1,948
1
1,948
1,948
0.114702
0
0
0
0
0
0.092355
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
8509d8623fe42d8cc0d7bae8f5d2a201f6f0cfaf
399
py
Python
pyrts/__init__.py
Rouzip/python-microRTS
da66ca31d7b6252dbddefa88280d7456efd0c74e
[ "Apache-2.0" ]
18
2018-09-24T17:00:59.000Z
2020-10-09T19:24:50.000Z
pyrts/__init__.py
Rouzip/python-microRTS
da66ca31d7b6252dbddefa88280d7456efd0c74e
[ "Apache-2.0" ]
3
2019-11-12T19:17:49.000Z
2019-11-20T07:27:06.000Z
pyrts/__init__.py
Rouzip/python-microRTS
da66ca31d7b6252dbddefa88280d7456efd0c74e
[ "Apache-2.0" ]
4
2019-10-19T07:29:58.000Z
2020-12-13T11:19:48.000Z
from pyrts.server import Server from pyrts.server import PLAYER # Actions from pyrts.server import NONE from pyrts.server import MOVE from pyrts.server import HARVEST from pyrts.server import RETURN from pyrts.server import PRODUCE from pyrts.server import ATTACK # Directions from pyrts.server import UP from pyrts.server import RIGHT from pyrts.server import DOWN from pyrts.server import LEFT
22.166667
32
0.827068
62
399
5.322581
0.274194
0.327273
0.545455
0.763636
0
0
0
0
0
0
0
0
0.137845
399
18
33
22.166667
0.959302
0.045113
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
51c203beb250d28c29502d6663da9f8a0e2d9c43
38
py
Python
modem_logger/__init__.py
kariudo/modem-logger
387843716aa62f0e60168740417561a644591929
[ "MIT" ]
3
2021-06-26T16:27:39.000Z
2021-09-23T01:01:10.000Z
modem_logger/__init__.py
kariudo/modem-logger
387843716aa62f0e60168740417561a644591929
[ "MIT" ]
1
2021-11-29T05:44:29.000Z
2021-12-01T21:00:38.000Z
modem_logger/__init__.py
kariudo/modem-logger
387843716aa62f0e60168740417561a644591929
[ "MIT" ]
null
null
null
from .netgear_cm500 import CM500Parser
38
38
0.894737
5
38
6.6
1
0
0
0
0
0
0
0
0
0
0
0.171429
0.078947
38
1
38
38
0.771429
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
51e6a900579d0f3ce6501086688cbacbea94119e
6,487
py
Python
pymtl3/stdlib/test_utils/test/run_test_vector_sim_test.py
jbrzozo24/pymtl3
50f1193453da6034be97dbc74041b83e76030a5f
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/stdlib/test_utils/test/run_test_vector_sim_test.py
jbrzozo24/pymtl3
50f1193453da6034be97dbc74041b83e76030a5f
[ "BSD-3-Clause" ]
139
2019-05-29T00:37:09.000Z
2020-05-17T16:49:26.000Z
pymtl3/stdlib/test_utils/test/run_test_vector_sim_test.py
jbrzozo24/pymtl3
50f1193453da6034be97dbc74041b83e76030a5f
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
#========================================================================= # run_test_vector_sim_test #========================================================================= import pytest from pymtl3 import * from pymtl3.stdlib.test_utils import run_test_vector_sim from pymtl3.stdlib.test_utils import RunTestVectorSimError #------------------------------------------------------------------------- # Test component with 1 input and 1 output port #------------------------------------------------------------------------- class TestComponent1i1o( Component ): def construct( s ): s.in_ = InPort(2) s.out = OutPort(2) @update def up(): s.out @= s.in_ + 1 def line_trace(s): return f"{s.in_}(){s.out}" def test_1i1o_basic( cmdline_opts ): run_test_vector_sim( TestComponent1i1o(), [ ('in_ out*' ), [ 0, 1 ], [ 1, 2 ], [ 0, 1 ], ], cmdline_opts ) # Verify that using a don't care works def test_1i1o_dontcare( cmdline_opts ): run_test_vector_sim( TestComponent1i1o(), [ ('in_ out*' ), [ 0, '?' ], [ 1, 2 ], [ 0, 1 ], ], cmdline_opts ) # Verify that an exception is thrown if the output is incorrect def test_1i1o_incorrect_output( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent1i1o(), [ ('in_ out*' ), [ 0, 0 ], [ 1, 1 ], [ 0, 0 ], ], cmdline_opts ) # Verify that an exception is thrown if input port name is wrong def test_1i1o_incorrect_inport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent1i1o(), [ ('inX out*' ), [ 0, 0 ], [ 1, 2 ], [ 0, 0 ], ], cmdline_opts ) # Verify that an exception is thrown if output port name is wrong def test_1i1o_incorrect_outport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent1i1o(), [ ('in_ outX*' ), [ 0, 0 ], [ 1, 2 ], [ 0, 0 ], ], cmdline_opts ) #------------------------------------------------------------------------- # Test component with 2 input and 2 output port #------------------------------------------------------------------------- class TestComponent2i2o( Component ): def construct( s ): s.in0 = InPort(2) s.in1 = InPort(2) s.out0 = OutPort(2) s.out1 = OutPort(2) @update def up(): s.out0 @= s.in0 + 1 s.out1 @= s.in1 + 2 def line_trace(s): return f"{s.in0}|{s.in1}(){s.out0}|{s.out1}" def test_2i2o_basic( cmdline_opts ): run_test_vector_sim( TestComponent2i2o(), [ ('in0 in1 out0* out1*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that using a don't care works def test_2i2o_dontcare( cmdline_opts ): run_test_vector_sim( TestComponent2i2o(), [ ('in0 in1 out0* out1*' ), [ 0, 0, '?', '?' ], [ 1, 0, 2, '?' ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if the output is incorrect def test_2i2o_incorrect_output( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent2i2o(), [ ('in0 in1 out0* out1*' ), [ 0, 0, 1, 2 ], [ 1, 0, 3, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if input port name is wrong def test_2i2o_incorrect_inport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent2i2o(), [ ('in0 inX out0* out1*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if output port name is wrong def test_2i2o_incorrect_outport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponent2i2o(), [ ('in0 in1 outX* out1*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) #------------------------------------------------------------------------- # Test component with input and output array ports #------------------------------------------------------------------------- class TestComponentArray2i2o( Component ): def construct( s ): s.in_ = [ InPort(2) for _ in range(2) ] s.out = [ OutPort(2) for _ in range(2) ] @update def up(): s.out[0] @= s.in_[0] + 1 s.out[1] @= s.in_[1] + 2 def line_trace(s): return f"{s.in_[0]}|{s.in_[1]}(){s.out[0]}|{s.out[1]}" def test_a2i2o_basic( cmdline_opts ): run_test_vector_sim( TestComponentArray2i2o(), [ ('in_[0] in_[1] out[0]* out[1]*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that using a don't care works def test_a2i2o_dontcare( cmdline_opts ): run_test_vector_sim( TestComponentArray2i2o(), [ ('in_[0] in_[1] out[0]* out[1]*' ), [ 0, 0, '?', '?' ], [ 1, 0, 2, '?' ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if the output is incorrect def test_a2i2o_incorrect_output( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponentArray2i2o(), [ ('in_[0] in_[1] out[0]* out[1]*' ), [ 0, 0, 1, 2 ], [ 1, 0, 3, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if input port name is wrong def test_a2i2o_incorrect_inport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponentArray2i2o(), [ ('in_[0] inX out[0]* out[1]*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts ) # Verify that an exception is thrown if output port name is wrong def test_a2i2o_incorrect_outport( cmdline_opts ): with pytest.raises(RunTestVectorSimError): run_test_vector_sim( TestComponentArray2i2o(), [ ('in_[0] in_[1] outX* out[1]*' ), [ 0, 0, 1, 2 ], [ 1, 0, 2, 2 ], [ 0, 1, 1, 3 ], ], cmdline_opts )
30.032407
74
0.49869
771
6,487
4.002594
0.094682
0.106935
0.071614
0.08814
0.858717
0.828257
0.789047
0.77641
0.714517
0.714517
0
0.062189
0.288577
6,487
215
75
30.172093
0.606501
0.220133
0
0.691275
0
0.006711
0.075884
0.015495
0
0
0
0
0
1
0.161074
false
0
0.026846
0.020134
0.228188
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
cfb38a8f63a3a924c4b717ec1cf165c6cdafb632
38
py
Python
maml_zoo/envs/__init__.py
intel-isl/MetaLearningTradeoffs
bb1b849742a959310f3b9b630bb76ae3509a5d4a
[ "MIT" ]
2
2021-04-26T15:09:46.000Z
2021-04-28T11:58:28.000Z
maml_zoo/envs/__init__.py
intel-isl/MetaLearningTradeoffs
bb1b849742a959310f3b9b630bb76ae3509a5d4a
[ "MIT" ]
null
null
null
maml_zoo/envs/__init__.py
intel-isl/MetaLearningTradeoffs
bb1b849742a959310f3b9b630bb76ae3509a5d4a
[ "MIT" ]
null
null
null
from maml_zoo.envs.base import MetaEnv
38
38
0.868421
7
38
4.571429
1
0
0
0
0
0
0
0
0
0
0
0
0.078947
38
1
38
38
0.914286
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
cfbf0d0d2eeadc560b28fd6022673f32e81fd7d0
21
py
Python
example_project/some_modules/third_modules/a118.py
Yuriy-Leonov/cython_imports_limit_issue
2f9e7c02798fb52185dabfe6ce3811c439ca2839
[ "MIT" ]
null
null
null
example_project/some_modules/third_modules/a118.py
Yuriy-Leonov/cython_imports_limit_issue
2f9e7c02798fb52185dabfe6ce3811c439ca2839
[ "MIT" ]
null
null
null
example_project/some_modules/third_modules/a118.py
Yuriy-Leonov/cython_imports_limit_issue
2f9e7c02798fb52185dabfe6ce3811c439ca2839
[ "MIT" ]
null
null
null
class A118: pass
7
11
0.619048
3
21
4.333333
1
0
0
0
0
0
0
0
0
0
0
0.214286
0.333333
21
2
12
10.5
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
cfc1adc75e5e3a41488d7d19f07bc3549a3f5f10
7,106
py
Python
test/test_fcns.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
null
null
null
test/test_fcns.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
5
2020-01-30T18:30:33.000Z
2020-11-10T09:13:47.000Z
test/test_fcns.py
mramospe/minkit
fa6808a6ca8063751da92f683f2b810a0690a462
[ "MIT-0" ]
1
2020-02-03T22:59:00.000Z
2020-02-03T22:59:00.000Z
######################################## # MIT License # # Copyright (c) 2020 Miguel Ramos Pernas ######################################## ''' Test the "fcns" module. ''' import helpers import minkit import numpy as np import pytest helpers.configure_logging() @pytest.mark.minimization @helpers.setting_seed def test_binned_maximum_likelihood(): ''' Test the "binned_maximum_likelihood" FCN. ''' # Simple fit to a Gaussian m = minkit.Parameter('m', bounds=(0, 20)) # bounds to generate data later c = minkit.Parameter('c', 10, bounds=(8, 12)) s = minkit.Parameter('s', 2, bounds=(1, 3)) g = minkit.Gaussian('gaussian', m, c, s) values, edges = np.histogram( helpers.rndm_gen.normal(c.value, s.value, 1000), range=m.bounds, bins=100) data = minkit.BinnedDataSet.from_ndarray(edges, m, values) with helpers.fit_test(g) as test: with minkit.minimizer('bml', g, data, minimizer='minuit') as minuit: test.result = minuit.migrad() # Add constraints cc = minkit.Parameter('cc', 10) sc = minkit.Parameter('sc', 1) gc = minkit.Gaussian('constraint', c, cc, sc) with helpers.fit_test(g) as test: with minkit.minimizer('bml', g, data, minimizer='minuit', constraints=[gc]) as minuit: test.result = minuit.migrad() # Test for a composed PDF k = minkit.Parameter('k', -0.1, bounds=(-1, 0)) e = minkit.Exponential('e', m, k) y = minkit.Parameter('y', 0.5, bounds=(0, 1)) pdf = minkit.AddPDFs.two_components('pdf', g, e, y) data = pdf.generate(10000) values, edges = np.histogram( data[m.name].as_ndarray(), range=m.bounds, bins=100) data = minkit.BinnedDataSet.from_ndarray(edges, m, values) with helpers.fit_test(pdf) as test: with minkit.minimizer('bml', pdf, data) as minimizer: test.result = minimizer.migrad() # Test for a PDF with no "evaluate_binned" function defined m = minkit.Parameter('m', bounds=(0, 10)) a = minkit.Parameter('a', 0) theta = minkit.Parameter('theta', 2, bounds=(0, 3)) alpha = minkit.Parameter('alpha', 0.5) beta = minkit.Parameter('beta', 2) pdf = minkit.Amoroso('amoroso', m, a, theta, alpha, beta) data = pdf.generate(10000) values, edges = np.histogram( data[m.name].as_ndarray(), range=m.bounds, bins=100) data = minkit.BinnedDataSet.from_ndarray(edges, m, values) with helpers.fit_test(pdf) as test: with minkit.minimizer('bml', pdf, data) as minimizer: test.result = minimizer.migrad() @pytest.mark.minimization @helpers.setting_seed def test_binned_extended_maximum_likelihood(): ''' Test the "binned_extended_maximum_likelihood" FCN. ''' pdf = helpers.default_add_pdfs(extended=True, yields=('ng', 'ne')) ntot = int(pdf.args.get('ng').value + pdf.args.get('ne').value) data = pdf.generate(ntot).make_binned(100) with helpers.fit_test(pdf) as test: with minkit.minimizer('beml', pdf, data) as minimizer: test.result = minimizer.migrad() @pytest.mark.minimization @helpers.setting_seed def test_binned_chisquare(): ''' Test the "binned_chisquare" FCN. ''' # Single PDF m = minkit.Parameter('m', bounds=(0, 20)) c = minkit.Parameter('c', 10., bounds=(8, 12)) # all bins must be highly populated s = minkit.Parameter('s', 3., bounds=(2, 7)) g = minkit.Gaussian('gaussian', m, c, s) data = g.generate(10000) values, edges = np.histogram( data[m.name].as_ndarray(), range=m.bounds, bins=100) data = minkit.BinnedDataSet.from_ndarray(edges, m, values) with helpers.fit_test(g) as test: with minkit.minimizer('chi2', g, data) as minimizer: test.result = minimizer.migrad() # Many PDfs k = minkit.Parameter('k', -0.1, bounds=(-1, 0)) e = minkit.Exponential('exponential', m, k) ng = minkit.Parameter('ng', 10000, bounds=(0, 100000)) ne = minkit.Parameter('ne', 1000, bounds=(0, 100000)) pdf = minkit.AddPDFs.two_components('pdf', g, e, ng, ne) data = pdf.generate(int(ng.value + ne.value)) values, edges = np.histogram( data[m.name].as_ndarray(), range=m.bounds, bins=100) data = minkit.BinnedDataSet.from_ndarray(edges, m, values) with helpers.fit_test(pdf) as test: with minkit.minimizer('chi2', pdf, data) as minimizer: test.result = minimizer.migrad() @pytest.mark.minimization @helpers.setting_seed def test_binned_extended_chisquare(): ''' Test the "binned_extended_chisquare" FCN. ''' pdf = helpers.default_add_pdfs(extended=True, yields=('ng', 'ne')) ntot = int(pdf.args.get('ng').value + pdf.args.get('ne').value) data = pdf.generate(ntot).make_binned(100) with helpers.fit_test(pdf) as test: with minkit.minimizer('echi2', pdf, data) as minimizer: test.result = minimizer.migrad() @pytest.mark.minimization @helpers.setting_seed def test_unbinned_extended_maximum_likelihood(): ''' Test the "unbinned_extended_maximum_likelihood" FCN. ''' m = minkit.Parameter('m', bounds=(-5, +15)) # Create an Exponential PDF k = minkit.Parameter('k', -0.1, bounds=(-0.2, 0)) e = minkit.Exponential('exponential', m, k) # Create a Gaussian PDF c = minkit.Parameter('c', 10., bounds=(8, 12)) s = minkit.Parameter('s', 1., bounds=(0.5, 2)) g = minkit.Gaussian('gaussian', m, c, s) # Add them together ng = minkit.Parameter('ng', 10000, bounds=(0, 100000)) ne = minkit.Parameter('ne', 1000, bounds=(0, 100000)) pdf = minkit.AddPDFs.two_components('model', g, e, ng, ne) data = pdf.generate(int(ng.value + ne.value)) with helpers.fit_test(pdf) as test: with minkit.minimizer('ueml', pdf, data, minimizer='minuit') as minuit: test.result = minuit.migrad() # Add constraints cc = minkit.Parameter('cc', 10) sc = minkit.Parameter('sc', 1) gc = minkit.Gaussian('constraint', c, cc, sc) with helpers.fit_test(pdf) as test: with minkit.minimizer('ueml', pdf, data, minimizer='minuit', constraints=[gc]) as minuit: test.result = minuit.migrad() @pytest.mark.minimization @helpers.setting_seed def test_unbinned_maximum_likelihood(): ''' Test the "unbinned_maximum_likelihood" FCN. ''' # Simple fit to a Gaussian m = minkit.Parameter('m', bounds=(5, 15)) c = minkit.Parameter('c', 10., bounds=(8, 12)) s = minkit.Parameter('s', 1., bounds=(0.5, 2)) g = minkit.Gaussian('gaussian', m, c, s) data = g.generate(10000) with helpers.fit_test(g) as test: with minkit.minimizer('uml', g, data, minimizer='minuit') as minuit: test.result = minuit.migrad() # Add constraints cc = minkit.Parameter('cc', 10) sc = minkit.Parameter('sc', 0.1) gc = minkit.Gaussian('constraint', c, cc, sc) with helpers.fit_test(g) as test: with minkit.minimizer('uml', g, data, minimizer='minuit', constraints=[gc]) as minuit: test.result = minuit.migrad()
31.030568
97
0.631157
966
7,106
4.569358
0.136646
0.105347
0.038061
0.048935
0.834844
0.804939
0.797689
0.759402
0.737653
0.725646
0
0.032069
0.205742
7,106
228
98
31.166667
0.75
0.094427
0
0.694656
0
0
0.040058
0
0
0
0
0
0
1
0.045802
false
0
0.030534
0
0.076336
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
cfda2d6052f642ad686af3b525f0b1c8d70b30ba
218
py
Python
lib/python2.7/site-packages/braintree/discount.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
182
2015-01-09T05:26:46.000Z
2022-03-16T14:10:06.000Z
lib/python2.7/site-packages/braintree/discount.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
95
2015-02-24T23:29:56.000Z
2022-03-13T03:27:58.000Z
lib/python2.7/site-packages/braintree/discount.py
ervinpepic/E-commerce
2c15255d1730728cf35c166b9f88cffcb99f5323
[ "MIT" ]
93
2015-02-19T17:59:06.000Z
2022-03-19T17:01:25.000Z
from braintree.modification import Modification from braintree.configuration import Configuration class Discount(Modification): @staticmethod def all(): return Configuration.gateway().discount.all()
21.8
53
0.770642
21
218
8
0.571429
0.154762
0
0
0
0
0
0
0
0
0
0
0.155963
218
9
54
24.222222
0.913043
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
6
cfffea1ad6c4ccd0849d2fd3ade08b5ed6944458
87
py
Python
opticl/__init__.py
hwiberg/OptiCL
f2512cfd408882700fe43c22d4e4b5c5f5c87b53
[ "MIT" ]
46
2021-11-04T20:17:32.000Z
2022-03-25T17:12:02.000Z
opticl/__init__.py
hwiberg/OptiCL
f2512cfd408882700fe43c22d4e4b5c5f5c87b53
[ "MIT" ]
null
null
null
opticl/__init__.py
hwiberg/OptiCL
f2512cfd408882700fe43c22d4e4b5c5f5c87b53
[ "MIT" ]
3
2021-11-12T02:57:54.000Z
2022-01-14T15:45:55.000Z
from .constraint_learning import * from .embed_mip import * from .run_MLmodels import *
29
34
0.804598
12
87
5.583333
0.666667
0.298507
0
0
0
0
0
0
0
0
0
0
0.126437
87
3
35
29
0.881579
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
321e468b1899026cb2147715896148940aae61e3
75
py
Python
libs/uix/baseclasses/events.py
mkbeh/CRyptoLab
424c938c16c9264e99eff71e4c1a27ca65314d42
[ "MIT" ]
null
null
null
libs/uix/baseclasses/events.py
mkbeh/CRyptoLab
424c938c16c9264e99eff71e4c1a27ca65314d42
[ "MIT" ]
1
2021-06-01T22:30:24.000Z
2021-06-01T22:30:24.000Z
libs/uix/baseclasses/events.py
mkbeh/CRyptoLab
424c938c16c9264e99eff71e4c1a27ca65314d42
[ "MIT" ]
1
2021-05-11T23:06:20.000Z
2021-05-11T23:06:20.000Z
from kivy.uix.screenmanager import Screen class Events(Screen): pass
12.5
41
0.76
10
75
5.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.173333
75
5
42
15
0.919355
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
5c677012d91d8de0eb4ccfe9a9e70f8c799a31ca
5,899
py
Python
basis_analysis.py
etienne-monier/2020-Ultramicro-fast
ffd90fa6467b36b38dbbbe336c12cf9b8e155060
[ "MIT" ]
2
2020-04-29T21:46:01.000Z
2021-04-23T14:38:51.000Z
basis_analysis.py
etienne-monier/2020-Ultramicro-fast
ffd90fa6467b36b38dbbbe336c12cf9b8e155060
[ "MIT" ]
1
2021-04-25T15:55:55.000Z
2021-04-27T18:57:15.000Z
basis_analysis.py
etienne-monier/2020-Ultramicro-fast
ffd90fa6467b36b38dbbbe336c12cf9b8e155060
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import scipy.fftpack as fftp import numpy as np from numpy.linalg import norm import pywt def FourierApproxError(X0, r): r"""Computes the approximation error in Fourier basis for 3D data. Let a ratio r be set. A band-by-band Fourier transformation is applied to X0. Then, the :math:`\ell_2` norm is applied to each spectrum of it. Last, only the r percent higher norms are kept, the other norms spectra are set to 0. An inverse band-by-band Fourier transformation is applied and the NMSE is computed. This is done for all elements in r. Arguments --------- X0: (m, n, L) numpy array The data to be studied. r: (R, ) numpy array The set of ratios to test. Returns ------- (R, ) numpy array The approximation error for all r. """ m, n, L = X0.shape # FFT transform A = fftp.fftn(X0, axes=(0, 1)) / np.sqrt(m*n) # Get l2-norm along spectra and sort it in decreasing order l2norm = norm(np.abs(A), axis=2) l2normsorted = l2norm.copy().flatten() l2normsorted[::-1].sort() # Get threshold depending on r. Threshold = l2normsorted[(np.round(r * (n * m - 1))).astype(int)] # Threshold decomposition l2normup = np.tile(l2norm, [r.size, 1, 1]) Thresholdup = np.tile(Threshold[:, np.newaxis, np.newaxis], [1, m, n]) thresh_l2norm = l2normup <= Thresholdup mask = np.moveaxis(np.tile(thresh_l2norm, [L, 1, 1, 1]), 0, 1) A = np.tile(np.moveaxis(A, -1, 0), [r.size, 1, 1, 1]) A[mask] = 0 # Reconstruction Xhat = np.real(np.sqrt(m*n) * fftp.ifftn(A, axes=(-2, -1))) # Approximation error X0up = np.tile(np.moveaxis(X0, -1, 0), [r.size, 1, 1, 1]) approxError = np.sum((X0up - Xhat)**2, axis=(1, 2, 3)) / \ np.sum(X0up**2, axis=(1, 2, 3)) return (approxError, A) def DctApproxError(X0, r): r"""Computes the approximation error in DCT basis for 3D data. Let a ratio r be set. A band-by-band DCT transformation is applied to X0. Then, the :math:`\ell_2` norm is applied to each spectrum of it. Last, only the r percent higher norms are kept, the other norms spectra are set to 0. An inverse band-by-band DCT transformation is applied and the NMSE is computed. This is done for all elements in r. Arguments --------- X0: (m, n, L) numpy array The data to be studied. r: (R, ) numpy array The set of ratios to test. Returns ------- (R, ) numpy array The approximation error for all r. """ m, n, L = X0.shape # FFT transform A = fftp.dct(X0, axis=0, norm='ortho') A = fftp.dct(A, axis=1, norm='ortho') # Get l2-norm along spectra and sort it in decreasing order l2norm = norm(A, axis=2) l2normsorted = l2norm.copy().flatten() l2normsorted[::-1].sort() # Get threshold depending on r. Threshold = l2normsorted[(np.round(r * (n * m - 1))).astype(int)] # Threshold decomposition l2normup = np.tile(l2norm, [r.size, 1, 1]) Thresholdup = np.tile(Threshold[:, np.newaxis, np.newaxis], [1, m, n]) thresh_l2norm = l2normup <= Thresholdup mask = np.moveaxis(np.tile(thresh_l2norm, [L, 1, 1, 1]), 0, 1) A = np.tile(np.moveaxis(A, -1, 0), [r.size, 1, 1, 1]) A[mask] = 0 # Reconstruction Xhat = fftp.idct(A, axis=-1, norm='ortho') Xhat = fftp.idct(Xhat, axis=-2, norm='ortho') # Approximation error X0up = np.tile(np.moveaxis(X0, -1, 0), [r.size, 1, 1, 1]) approxError = np.sum((X0up - Xhat)**2, axis=(1, 2, 3)) / \ np.sum(X0up**2, axis=(1, 2, 3)) return (approxError, A) def WaveletApproxError(X0, r, w): r"""Computes the approximation error in wavelet basis for 3D data. Let a ratio r be set. A band-by-band wavelet transformation is applied to X0. Then, the :math:`\ell_2` norm is applied to each spectrum of it. Last, only the r percent higher norms are kept, the other norms spectra are set to 0. An inverse band-by-band wavelet transformation is applied and the NMSE is computed. This is done for all elements in r. To get the available wavelets, do: .. code::python >>> import pywt >>> pywt.families(short=True) # Put short to False to have full names. >>> pywt.wavelist(family=db) Arguments --------- X0: (m, n, L) numpy array The data to be studied. r: (R, ) numpy array The set of ratios to test. w: str The wavelet to use. Returns ------- (R, ) numpy array The approximation error for all r. """ # FFT transform A, coeffs = pywt.coeffs_to_array( pywt.wavedec2(X0, w, axes=(0, 1)), axes=(0, 1)) m, n, L = A.shape # Get l2-norm along spectra and sort it in decreasing order l2norm = norm(A, axis=2) l2normsorted = l2norm.copy().flatten() l2normsorted[::-1].sort() # Get threshold depending on r. Threshold = l2normsorted[(np.round(r * (n * m - 1))).astype(int)] # Threshold decomposition l2normup = np.tile(l2norm, [r.size, 1, 1]) Thresholdup = np.tile(Threshold[:, np.newaxis, np.newaxis], [1, m, n]) thresh_l2norm = l2normup <= Thresholdup mask = np.moveaxis(np.tile(thresh_l2norm, [L, 1, 1, 1]), 0, 1) A = np.tile(np.moveaxis(A, -1, 0), [r.size, 1, 1, 1]) A[mask] = 0 A = np.transpose(A, [2, 3, 1, 0]) # Reconstruction Xhat = np.real(pywt.waverec2( pywt.array_to_coeffs(A, coeffs, output_format='wavedec2'), w, axes=(0, 1) ) ) # Approximation error X0up = np.tile(np.moveaxis(X0, -1, 0), [r.size, 1, 1, 1]) Xhat = np.transpose(Xhat, [3, 2, 0, 1]) approxError = np.sum((X0up - Xhat)**2, axis=(1, 2, 3)) / \ np.sum(X0up**2, axis=(1, 2, 3)) return (approxError, A)
29.20297
75
0.600102
917
5,899
3.845147
0.166848
0.011912
0.033182
0.017867
0.83097
0.81367
0.804594
0.794952
0.775099
0.775099
0
0.042218
0.257162
5,899
201
76
29.348259
0.762437
0.436684
0
0.605634
0
0
0.00922
0
0
0
0
0
0
1
0.042254
false
0
0.056338
0
0.140845
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
5c8bdc2b51b955bb430dba0083794ebc5a83b333
9,592
py
Python
tests/includes/config.py
NaeiKinDus/archive_converter
155f48b74f873003640811830cb96f29b99b2466
[ "Apache-2.0" ]
1
2020-08-08T10:54:32.000Z
2020-08-08T10:54:32.000Z
tests/includes/config.py
NaeiKinDus/archive_converter
155f48b74f873003640811830cb96f29b99b2466
[ "Apache-2.0" ]
null
null
null
tests/includes/config.py
NaeiKinDus/archive_converter
155f48b74f873003640811830cb96f29b99b2466
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Test data and functions used by pytest # Config parameters OUTPUT_DIR = 'tests/output' # Pytest data get_files_data = [ ( 'tests/images/single', { 'tests/images/single': { 'dir': 'single', 'src': 'tests/images/single', 'files_list': [ ('alphabet_a.png', 'tests/images/single/alphabet_a.png'), ('alphabet_b.png', 'tests/images/single/alphabet_b.png'), ('alphabet_c.png', 'tests/images/single/alphabet_c.png'), ('alphabet_d.png', 'tests/images/single/alphabet_d.png') ] } }, ), ( 'tests/images/multiple', { 'tests/images/multiple/Book 2 - Numbers': { 'dir': 'Book 2 - Numbers', 'src': 'tests/images/multiple/Book 2 - Numbers', 'files_list': [ ('number_1.png', 'tests/images/multiple/Book 2 - Numbers/number_1.png'), ('number_2.png', 'tests/images/multiple/Book 2 - Numbers/number_2.png'), ('number_3.png', 'tests/images/multiple/Book 2 - Numbers/number_3.png'), ('number_4.png', 'tests/images/multiple/Book 2 - Numbers/number_4.png'), ('number_5.png', 'tests/images/multiple/Book 2 - Numbers/number_5.png'), ('number_6.png', 'tests/images/multiple/Book 2 - Numbers/number_6.png'), ('number_7.png', 'tests/images/multiple/Book 2 - Numbers/number_7.png'), ('number_8.png', 'tests/images/multiple/Book 2 - Numbers/number_8.png'), ('number_9.png', 'tests/images/multiple/Book 2 - Numbers/number_9.png'), ('number_10.png', 'tests/images/multiple/Book 2 - Numbers/number_10.png') ] }, 'tests/images/multiple/sub/Book 3 - Animals': { 'dir': 'Book 3 - Animals', 'src': 'tests/images/multiple/sub/Book 3 - Animals', 'files_list': [ ('dog.png', 'tests/images/multiple/sub/Book 3 - Animals/dog.png'), ('dog_cat.png', 'tests/images/multiple/sub/Book 3 - Animals/dog_cat.png'), ('elephant.png', 'tests/images/multiple/sub/Book 3 - Animals/elephant.png'), ('hummingbird.png', 'tests/images/multiple/sub/Book 3 - Animals/hummingbird.png'), ('monkey.png', 'tests/images/multiple/sub/Book 3 - Animals/monkey.png') ] }, 'tests/images/multiple/Book 1 - Alphabet': { 'dir': 'Book 1 - Alphabet', 'src': 'tests/images/multiple/Book 1 - Alphabet', 'files_list': [ ('alphabet_a.png', 'tests/images/multiple/Book 1 - Alphabet/alphabet_a.png'), ('alphabet_b.png', 'tests/images/multiple/Book 1 - Alphabet/alphabet_b.png'), ('alphabet_c.png', 'tests/images/multiple/Book 1 - Alphabet/alphabet_c.png'), ('alphabet_d.png', 'tests/images/multiple/Book 1 - Alphabet/alphabet_d.png') ] }, 'tests/images/multiple/sub/Book 5 - Alphanimals': { 'dir': 'Book 5 - Alphanimals', 'src': 'tests/images/multiple/sub/Book 5 - Alphanimals', 'files_list': [ ('alphabet_a.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/alphabet_a.png'), ('alphabet_b.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/alphabet_b.png'), ('alphabet_c.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/alphabet_c.png'), ('alphabet_d.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/alphabet_d.png'), ('dog.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/dog.png'), ('dog_cat.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/dog_cat.png'), ('elephant.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/elephant.png'), ('hummingbird.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/hummingbird.png'), ('monkey.png', 'tests/images/multiple/sub/Book 5 - Alphanimals/monkey.png') ] }, 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric': { 'dir': 'Book 4 - Alphanumeric', 'src': 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric', 'files_list': [ ('alphabet_a.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/alphabet_a.png'), ('alphabet_b.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/alphabet_b.png'), ('alphabet_c.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/alphabet_c.png'), ('alphabet_d.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/alphabet_d.png'), ('number_1.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_1.png'), ('number_2.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_2.png'), ('number_3.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_3.png'), ('number_4.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_4.png'), ('number_5.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_5.png'), ('number_6.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_6.png'), ('number_7.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_7.png'), ('number_8.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_8.png'), ('number_9.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_9.png'), ('number_10.png', 'tests/images/multiple/sub/sub/Book 4 - Alphanumeric/number_10.png') ], } } ) ] generate_filename_data = [ # "directory" (default) switch ( {'naming_method': 'directory', 'destination': None, 'naming_format': None}, 'cbr', 'some/source/dir', 'book 1', TypeError # destination is None, which should never happen, thus a TypeError ), ( {'naming_method': 'directory', 'destination': 'some/destination', 'naming_format': 'should never appear'}, 'cbr', 'some/source/dir/book 1', 'book 1', 'some/destination/book 1.cbr' ), # "context" switch ( {'naming_method': 'context', 'destination': None, 'naming_format': None}, 'cbr', 'some/source/dir/book 1', 'book 1', TypeError # destination is None, which should never happen, thus a TypeError ), ( {'naming_method': 'context', 'destination': 'some/destination', 'naming_format': None}, 'cbr', 'some/source/dir/book 1', 'book 1', 'some/destination/book 1.cbr' # empty naming format equates to using the directory naming method ), ( {'naming_method': 'context', 'destination': 'some/destination', 'naming_format': 'dir:{dir}/src:{src}/ext:{extension}/dest:{destination}'}, 'cbr', 'some/source/dir/book 1', 'book 1', 'some/destination/dir:book 1/src:some/source/dir/book 1/ext:cbr/dest:some/destination' ), ( {'naming_method': 'not supported', 'destination': None, 'naming_format': None}, 'cbr', 'some/source/dir/book 1', 'book 1', NotImplementedError ) ] unpack_cbz_data = [ # source_file, destination, validator, expected ( 'tests/archives/non-existent', None, lambda x: isinstance(x, FileNotFoundError), None ), ( 'tests/archives/Book 1 - Alphabet.cbz'.format(OUTPUT_DIR), None, lambda x: x.startswith('/tmp/tmp'), [ 'alphabet_a.png', 'alphabet_b.png', 'alphabet_c.png', 'alphabet_d.png' ] ), ( 'tests/archives/Book 1 - Alphabet.cbz'.format(OUTPUT_DIR), '{}/Book 1'.format(OUTPUT_DIR), lambda x: x == '{}/Book 1'.format(OUTPUT_DIR), [ 'alphabet_a.png', 'alphabet_b.png', 'alphabet_c.png', 'alphabet_d.png' ] ) ] unpack_cbr_data = [ # source_file, destination, validator, expected ( 'tests/archives/non-existent', None, lambda x: isinstance(x, FileNotFoundError), None ), ( 'tests/archives/Book 2 - Numbers.cbr', None, lambda x: x.startswith('/tmp/tmp'), [ 'number_1.png', 'number_2.png', 'number_3.png', 'number_4.png', 'number_5.png', 'number_6.png', 'number_7.png', 'number_8.png', 'number_9.png', 'number_10.png', ] ), ( 'tests/archives/Book 2 - Numbers.cbr', '{}/Book 2'.format(OUTPUT_DIR), lambda x: x == '{}/Book 2'.format(OUTPUT_DIR), [ 'number_1.png', 'number_2.png', 'number_3.png', 'number_4.png', 'number_5.png', 'number_6.png', 'number_7.png', 'number_8.png', 'number_9.png', 'number_10.png', ] ), ]
44.613953
114
0.53774
1,073
9,592
4.67754
0.089469
0.1315
0.200638
0.206017
0.882247
0.854951
0.818091
0.76589
0.651524
0.429966
0
0.022162
0.308486
9,592
215
115
44.613953
0.734509
0.044099
0
0.35
0
0.005
0.565189
0.287836
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
5c8f5fe740da46e8ecf0e3026acd91889bbe3522
23
py
Python
hyperia/__init__.py
hyperia-inc/hyperia_python_sdk
73ade4ab892f9e40242c0311843e2675ef4f25cb
[ "Apache-2.0" ]
1
2022-01-06T06:22:47.000Z
2022-01-06T06:22:47.000Z
hyperia/__init__.py
hyperia-inc/hyperia-python-sdk
73ade4ab892f9e40242c0311843e2675ef4f25cb
[ "Apache-2.0" ]
null
null
null
hyperia/__init__.py
hyperia-inc/hyperia-python-sdk
73ade4ab892f9e40242c0311843e2675ef4f25cb
[ "Apache-2.0" ]
null
null
null
from .hyperia import *
11.5
22
0.73913
3
23
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.173913
23
1
23
23
0.894737
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
5cb399d973ad914add039984b0a1d948221f4c12
98
py
Python
pylti1p3/contrib/flask/session.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
62
2019-08-13T11:24:36.000Z
2022-03-11T16:24:55.000Z
pylti1p3/contrib/flask/session.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
58
2019-08-13T13:27:27.000Z
2022-03-28T11:00:56.000Z
pylti1p3/contrib/flask/session.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
35
2019-10-11T18:26:02.000Z
2022-03-29T08:33:00.000Z
from pylti1p3.session import SessionService class FlaskSessionService(SessionService): pass
16.333333
43
0.826531
9
98
9
0.888889
0
0
0
0
0
0
0
0
0
0
0.023529
0.132653
98
5
44
19.6
0.929412
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
5ccb805c9a78992485405bb87b8bd5e463942177
155
py
Python
anarchonet/main/admin.py
urlordjames/anarcho-monarchy
e663ecc22a31ced90612a7a5b694d106964440be
[ "MIT" ]
null
null
null
anarchonet/main/admin.py
urlordjames/anarcho-monarchy
e663ecc22a31ced90612a7a5b694d106964440be
[ "MIT" ]
1
2020-08-29T03:48:11.000Z
2020-09-02T19:07:12.000Z
anarchonet/main/admin.py
urlordjames/anarcho-monarchy
e663ecc22a31ced90612a7a5b694d106964440be
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Nation, Law, Player admin.site.register(Nation) admin.site.register(Law) admin.site.register(Player)
22.142857
39
0.806452
23
155
5.434783
0.478261
0.216
0.408
0
0
0
0
0
0
0
0
0
0.090323
155
6
40
25.833333
0.886525
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
7a31a0193181b7c9cf7546b5304ed226c47ef2c4
84,460
py
Python
nova/tests/unit/virt/test_virt_drivers.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/test_virt_drivers.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/test_virt_drivers.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2010 OpenStack Foundation' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comment|'# a copy of the License at' nl|'\n' comment|'#' nl|'\n' comment|'# http://www.apache.org/licenses/LICENSE-2.0' nl|'\n' comment|'#' nl|'\n' comment|'# Unless required by applicable law or agreed to in writing, software' nl|'\n' comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT' nl|'\n' comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the' nl|'\n' comment|'# License for the specific language governing permissions and limitations' nl|'\n' comment|'# under the License.' nl|'\n' nl|'\n' name|'import' name|'base64' newline|'\n' name|'from' name|'collections' name|'import' name|'deque' newline|'\n' name|'import' name|'sys' newline|'\n' name|'import' name|'traceback' newline|'\n' nl|'\n' name|'import' name|'fixtures' newline|'\n' name|'import' name|'mock' newline|'\n' name|'import' name|'netaddr' newline|'\n' name|'from' name|'oslo_log' name|'import' name|'log' name|'as' name|'logging' newline|'\n' name|'from' name|'oslo_serialization' name|'import' name|'jsonutils' newline|'\n' name|'from' name|'oslo_utils' name|'import' name|'importutils' newline|'\n' name|'from' name|'oslo_utils' name|'import' name|'timeutils' newline|'\n' name|'import' name|'six' newline|'\n' nl|'\n' name|'from' name|'nova' op|'.' name|'compute' name|'import' name|'manager' newline|'\n' name|'from' name|'nova' op|'.' name|'console' name|'import' name|'type' name|'as' name|'ctype' newline|'\n' name|'from' name|'nova' name|'import' name|'context' newline|'\n' name|'from' name|'nova' name|'import' name|'exception' newline|'\n' name|'from' name|'nova' name|'import' name|'objects' newline|'\n' name|'from' name|'nova' name|'import' name|'test' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' name|'import' name|'fixtures' name|'as' name|'nova_fixtures' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' op|'.' name|'unit' name|'import' name|'fake_block_device' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'image' name|'import' name|'fake' name|'as' name|'fake_image' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' op|'.' name|'unit' name|'import' name|'utils' name|'as' name|'test_utils' newline|'\n' name|'from' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'virt' op|'.' name|'libvirt' name|'import' name|'fake_libvirt_utils' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' name|'import' name|'block_device' name|'as' name|'driver_block_device' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' name|'import' name|'event' name|'as' name|'virtevent' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' name|'import' name|'fake' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' name|'import' name|'hardware' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' name|'import' name|'libvirt' newline|'\n' name|'from' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' name|'import' name|'imagebackend' newline|'\n' nl|'\n' DECL|variable|LOG name|'LOG' op|'=' name|'logging' op|'.' name|'getLogger' op|'(' name|'__name__' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|function|catch_notimplementederror name|'def' name|'catch_notimplementederror' op|'(' name|'f' op|')' op|':' newline|'\n' indent|' ' string|'"""Decorator to simplify catching drivers raising NotImplementedError\n\n If a particular call makes a driver raise NotImplementedError, we\n log it so that we can extract this information afterwards as needed.\n """' newline|'\n' DECL|function|wrapped_func name|'def' name|'wrapped_func' op|'(' name|'self' op|',' op|'*' name|'args' op|',' op|'**' name|'kwargs' op|')' op|':' newline|'\n' indent|' ' name|'try' op|':' newline|'\n' indent|' ' name|'return' name|'f' op|'(' name|'self' op|',' op|'*' name|'args' op|',' op|'**' name|'kwargs' op|')' newline|'\n' dedent|'' name|'except' name|'NotImplementedError' op|':' newline|'\n' indent|' ' name|'frame' op|'=' name|'traceback' op|'.' name|'extract_tb' op|'(' name|'sys' op|'.' name|'exc_info' op|'(' op|')' op|'[' number|'2' op|']' op|')' op|'[' op|'-' number|'1' op|']' newline|'\n' name|'LOG' op|'.' name|'error' op|'(' string|'"%(driver)s does not implement %(method)s "' nl|'\n' string|'"required for test %(test)s"' op|'%' nl|'\n' op|'{' string|"'driver'" op|':' name|'type' op|'(' name|'self' op|'.' name|'connection' op|')' op|',' nl|'\n' string|"'method'" op|':' name|'frame' op|'[' number|'2' op|']' op|',' string|"'test'" op|':' name|'f' op|'.' name|'__name__' op|'}' op|')' newline|'\n' nl|'\n' dedent|'' dedent|'' name|'wrapped_func' op|'.' name|'__name__' op|'=' name|'f' op|'.' name|'__name__' newline|'\n' name|'wrapped_func' op|'.' name|'__doc__' op|'=' name|'f' op|'.' name|'__doc__' newline|'\n' name|'return' name|'wrapped_func' newline|'\n' nl|'\n' nl|'\n' DECL|class|_FakeDriverBackendTestCase dedent|'' name|'class' name|'_FakeDriverBackendTestCase' op|'(' name|'object' op|')' op|':' newline|'\n' DECL|member|_setup_fakelibvirt indent|' ' name|'def' name|'_setup_fakelibvirt' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# So that the _supports_direct_io does the test based' nl|'\n' comment|'# on the current working directory, instead of the' nl|'\n' comment|"# default instances_path which doesn't exist" nl|'\n' indent|' ' name|'self' op|'.' name|'flags' op|'(' name|'instances_path' op|'=' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'TempDir' op|'(' op|')' op|')' op|'.' name|'path' op|')' newline|'\n' nl|'\n' comment|'# Put fakelibvirt in place' nl|'\n' name|'if' string|"'libvirt'" name|'in' name|'sys' op|'.' name|'modules' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'saved_libvirt' op|'=' name|'sys' op|'.' name|'modules' op|'[' string|"'libvirt'" op|']' newline|'\n' dedent|'' name|'else' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'saved_libvirt' op|'=' name|'None' newline|'\n' nl|'\n' dedent|'' name|'import' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'fake_imagebackend' name|'as' name|'fake_imagebackend' newline|'\n' name|'import' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'fake_libvirt_utils' name|'as' name|'fake_libvirt_utils' newline|'\n' name|'import' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'fakelibvirt' name|'as' name|'fakelibvirt' newline|'\n' nl|'\n' name|'import' name|'nova' op|'.' name|'tests' op|'.' name|'unit' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'fake_os_brick_connector' name|'as' name|'fake_os_brick_connector' newline|'\n' nl|'\n' name|'sys' op|'.' name|'modules' op|'[' string|"'libvirt'" op|']' op|'=' name|'fakelibvirt' newline|'\n' name|'import' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'driver' newline|'\n' name|'import' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'firewall' newline|'\n' name|'import' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'host' newline|'\n' nl|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.driver.imagebackend'" op|',' nl|'\n' name|'fake_imagebackend' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.driver.libvirt'" op|',' nl|'\n' name|'fakelibvirt' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.driver.libvirt_utils'" op|',' nl|'\n' name|'fake_libvirt_utils' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.host.libvirt'" op|',' nl|'\n' name|'fakelibvirt' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.imagebackend.libvirt_utils'" op|',' nl|'\n' name|'fake_libvirt_utils' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.firewall.libvirt'" op|',' nl|'\n' name|'fakelibvirt' op|')' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.virt.libvirt.driver.connector'" op|',' nl|'\n' name|'fake_os_brick_connector' op|')' op|')' newline|'\n' nl|'\n' name|'fakelibvirt' op|'.' name|'disable_event_thread' op|'(' name|'self' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'flags' op|'(' name|'rescue_image_id' op|'=' string|'"2"' op|',' nl|'\n' name|'rescue_kernel_id' op|'=' string|'"3"' op|',' nl|'\n' name|'rescue_ramdisk_id' op|'=' name|'None' op|',' nl|'\n' name|'snapshots_directory' op|'=' string|"'./'" op|',' nl|'\n' name|'sysinfo_serial' op|'=' string|"'none'" op|',' nl|'\n' name|'group' op|'=' string|"'libvirt'" op|')' newline|'\n' nl|'\n' DECL|function|fake_extend name|'def' name|'fake_extend' op|'(' name|'image' op|',' name|'size' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' DECL|function|fake_migrateToURI dedent|'' name|'def' name|'fake_migrateToURI' op|'(' op|'*' name|'a' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' DECL|function|fake_make_drive dedent|'' name|'def' name|'fake_make_drive' op|'(' name|'_self' op|',' name|'_path' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' DECL|function|fake_get_instance_disk_info dedent|'' name|'def' name|'fake_get_instance_disk_info' op|'(' name|'_self' op|',' name|'instance' op|',' name|'xml' op|'=' name|'None' op|',' nl|'\n' name|'block_device_info' op|'=' name|'None' op|')' op|':' newline|'\n' indent|' ' name|'return' string|"'[]'" newline|'\n' nl|'\n' DECL|function|fake_delete_instance_files dedent|'' name|'def' name|'fake_delete_instance_files' op|'(' name|'_self' op|',' name|'_instance' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' DECL|function|fake_wait dedent|'' name|'def' name|'fake_wait' op|'(' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' DECL|function|fake_detach_device_with_retry dedent|'' name|'def' name|'fake_detach_device_with_retry' op|'(' name|'_self' op|',' name|'get_device_conf_func' op|',' name|'device' op|',' nl|'\n' name|'persistent' op|',' name|'live' op|',' nl|'\n' name|'max_retry_count' op|'=' number|'7' op|',' nl|'\n' name|'inc_sleep_time' op|'=' number|'2' op|',' nl|'\n' name|'max_sleep_time' op|'=' number|'30' op|')' op|':' newline|'\n' comment|'# Still calling detach, but instead of returning function' nl|'\n' comment|'# that actually checks if device is gone from XML, just continue' nl|'\n' comment|'# because XML never gets updated in these tests' nl|'\n' indent|' ' name|'_self' op|'.' name|'detach_device' op|'(' name|'get_device_conf_func' op|'(' name|'device' op|')' op|',' nl|'\n' name|'persistent' op|'=' name|'persistent' op|',' nl|'\n' name|'live' op|'=' name|'live' op|')' newline|'\n' name|'return' name|'fake_wait' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'driver' op|'.' name|'LibvirtDriver' op|',' nl|'\n' string|"'_get_instance_disk_info'" op|',' nl|'\n' name|'fake_get_instance_disk_info' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'driver' op|'.' name|'disk' op|',' nl|'\n' string|"'extend'" op|',' name|'fake_extend' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'driver' op|'.' name|'LibvirtDriver' op|',' nl|'\n' string|"'delete_instance_files'" op|',' nl|'\n' name|'fake_delete_instance_files' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'guest' op|'.' name|'Guest' op|',' nl|'\n' string|"'detach_device_with_retry'" op|',' nl|'\n' name|'fake_detach_device_with_retry' op|')' newline|'\n' nl|'\n' comment|'# Like the existing fakelibvirt.migrateToURI, do nothing,' nl|'\n' comment|"# but don't fail for these tests." nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'libvirt' op|'.' name|'driver' op|'.' name|'libvirt' op|'.' name|'Domain' op|',' nl|'\n' string|"'migrateToURI'" op|',' name|'fake_migrateToURI' op|')' newline|'\n' nl|'\n' comment|"# We can't actually make a config drive v2 because ensure_tree has" nl|'\n' comment|'# been faked out' nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'nova' op|'.' name|'virt' op|'.' name|'configdrive' op|'.' name|'ConfigDriveBuilder' op|',' nl|'\n' string|"'make_drive'" op|',' name|'fake_make_drive' op|')' newline|'\n' nl|'\n' DECL|member|_teardown_fakelibvirt dedent|'' name|'def' name|'_teardown_fakelibvirt' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# Restore libvirt' nl|'\n' indent|' ' name|'if' name|'self' op|'.' name|'saved_libvirt' op|':' newline|'\n' indent|' ' name|'sys' op|'.' name|'modules' op|'[' string|"'libvirt'" op|']' op|'=' name|'self' op|'.' name|'saved_libvirt' newline|'\n' nl|'\n' DECL|member|setUp dedent|'' dedent|'' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'super' op|'(' name|'_FakeDriverBackendTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' comment|'# TODO(sdague): it would be nice to do this in a way that only' nl|'\n' comment|'# the relevant backends where replaced for tests, though this' nl|'\n' comment|'# should not harm anything by doing it for all backends' nl|'\n' name|'fake_image' op|'.' name|'stub_out_image_service' op|'(' name|'self' op|')' newline|'\n' name|'self' op|'.' name|'_setup_fakelibvirt' op|'(' op|')' newline|'\n' nl|'\n' DECL|member|tearDown dedent|'' name|'def' name|'tearDown' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'fake_image' op|'.' name|'FakeImageService_reset' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'_teardown_fakelibvirt' op|'(' op|')' newline|'\n' name|'super' op|'(' name|'_FakeDriverBackendTestCase' op|',' name|'self' op|')' op|'.' name|'tearDown' op|'(' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|class|VirtDriverLoaderTestCase dedent|'' dedent|'' name|'class' name|'VirtDriverLoaderTestCase' op|'(' name|'_FakeDriverBackendTestCase' op|',' name|'test' op|'.' name|'TestCase' op|')' op|':' newline|'\n' indent|' ' string|'"""Test that ComputeManager can successfully load both\n old style and new style drivers and end up with the correct\n final class.\n """' newline|'\n' nl|'\n' comment|'# if your driver supports being tested in a fake way, it can go here' nl|'\n' DECL|variable|new_drivers name|'new_drivers' op|'=' op|'{' nl|'\n' string|"'fake.FakeDriver'" op|':' string|"'FakeDriver'" op|',' nl|'\n' string|"'libvirt.LibvirtDriver'" op|':' string|"'LibvirtDriver'" nl|'\n' op|'}' newline|'\n' nl|'\n' DECL|member|test_load_new_drivers name|'def' name|'test_load_new_drivers' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'for' name|'cls' op|',' name|'driver' name|'in' name|'six' op|'.' name|'iteritems' op|'(' name|'self' op|'.' name|'new_drivers' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'flags' op|'(' name|'compute_driver' op|'=' name|'cls' op|')' newline|'\n' comment|'# NOTE(sdague) the try block is to make it easier to debug a' nl|'\n' comment|'# failure by knowing which driver broke' nl|'\n' name|'try' op|':' newline|'\n' indent|' ' name|'cm' op|'=' name|'manager' op|'.' name|'ComputeManager' op|'(' op|')' newline|'\n' dedent|'' name|'except' name|'Exception' name|'as' name|'e' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'fail' op|'(' string|'"Couldn\'t load driver %s - %s"' op|'%' op|'(' name|'cls' op|',' name|'e' op|')' op|')' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'assertEqual' op|'(' name|'cm' op|'.' name|'driver' op|'.' name|'__class__' op|'.' name|'__name__' op|',' name|'driver' op|',' nl|'\n' string|'"Could\'t load driver %s"' op|'%' name|'cls' op|')' newline|'\n' nl|'\n' DECL|member|test_fail_to_load_new_drivers dedent|'' dedent|'' name|'def' name|'test_fail_to_load_new_drivers' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'flags' op|'(' name|'compute_driver' op|'=' string|"'nova.virt.amiga'" op|')' newline|'\n' nl|'\n' DECL|function|_fake_exit name|'def' name|'_fake_exit' op|'(' name|'error' op|')' op|':' newline|'\n' indent|' ' name|'raise' name|'test' op|'.' name|'TestingException' op|'(' op|')' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'sys' op|',' string|"'exit'" op|',' name|'_fake_exit' op|')' newline|'\n' name|'self' op|'.' name|'assertRaises' op|'(' name|'test' op|'.' name|'TestingException' op|',' name|'manager' op|'.' name|'ComputeManager' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|class|_VirtDriverTestCase dedent|'' dedent|'' name|'class' name|'_VirtDriverTestCase' op|'(' name|'_FakeDriverBackendTestCase' op|')' op|':' newline|'\n' DECL|member|setUp indent|' ' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'super' op|'(' name|'_VirtDriverTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'flags' op|'(' name|'instances_path' op|'=' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'TempDir' op|'(' op|')' op|')' op|'.' name|'path' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'=' name|'importutils' op|'.' name|'import_object' op|'(' name|'self' op|'.' name|'driver_module' op|',' nl|'\n' name|'fake' op|'.' name|'FakeVirtAPI' op|'(' op|')' op|')' newline|'\n' name|'self' op|'.' name|'ctxt' op|'=' name|'test_utils' op|'.' name|'get_test_admin_context' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'image_service' op|'=' name|'fake_image' op|'.' name|'FakeImageService' op|'(' op|')' newline|'\n' comment|'# NOTE(dripton): resolve_driver_format does some file reading and' nl|'\n' comment|'# writing and chowning that complicate testing too much by requiring' nl|'\n' comment|'# using real directories with proper permissions. Just stub it out' nl|'\n' comment|'# here; we test it in test_imagebackend.py' nl|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'imagebackend' op|'.' name|'Image' op|',' string|"'resolve_driver_format'" op|',' nl|'\n' name|'imagebackend' op|'.' name|'Image' op|'.' name|'_get_driver_format' op|')' newline|'\n' nl|'\n' DECL|member|_get_running_instance dedent|'' name|'def' name|'_get_running_instance' op|'(' name|'self' op|',' name|'obj' op|'=' name|'True' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' name|'obj' op|'=' name|'obj' op|')' newline|'\n' name|'network_info' op|'=' name|'test_utils' op|'.' name|'get_test_network_info' op|'(' op|')' newline|'\n' name|'network_info' op|'[' number|'0' op|']' op|'[' string|"'network'" op|']' op|'[' string|"'subnets'" op|']' op|'[' number|'0' op|']' op|'[' string|"'meta'" op|']' op|'[' string|"'dhcp_server'" op|']' op|'=' string|"'1.1.1.1'" newline|'\n' name|'image_meta' op|'=' name|'test_utils' op|'.' name|'get_test_image_object' op|'(' name|'None' op|',' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'spawn' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'image_meta' op|',' nl|'\n' op|'[' op|']' op|',' string|"'herp'" op|',' name|'network_info' op|'=' name|'network_info' op|')' newline|'\n' name|'return' name|'instance_ref' op|',' name|'network_info' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_init_host name|'def' name|'test_init_host' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'init_host' op|'(' string|"'myhostname'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_list_instances name|'def' name|'test_list_instances' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'list_instances' op|'(' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_list_instance_uuids name|'def' name|'test_list_instance_uuids' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'list_instance_uuids' op|'(' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_spawn name|'def' name|'test_spawn' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'domains' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'list_instances' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' name|'instance_ref' op|'[' string|"'name'" op|']' op|',' name|'domains' op|')' newline|'\n' nl|'\n' name|'num_instances' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_num_instances' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' number|'1' op|',' name|'num_instances' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_snapshot_not_running name|'def' name|'test_snapshot_not_running' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' op|')' newline|'\n' name|'img_ref' op|'=' name|'self' op|'.' name|'image_service' op|'.' name|'create' op|'(' name|'self' op|'.' name|'ctxt' op|',' op|'{' string|"'name'" op|':' string|"'snap-1'" op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertRaises' op|'(' name|'exception' op|'.' name|'InstanceNotRunning' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'snapshot' op|',' nl|'\n' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'img_ref' op|'[' string|"'id'" op|']' op|',' nl|'\n' name|'lambda' op|'*' name|'args' op|',' op|'**' name|'kwargs' op|':' name|'None' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_snapshot_running name|'def' name|'test_snapshot_running' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'img_ref' op|'=' name|'self' op|'.' name|'image_service' op|'.' name|'create' op|'(' name|'self' op|'.' name|'ctxt' op|',' op|'{' string|"'name'" op|':' string|"'snap-1'" op|'}' op|')' newline|'\n' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'snapshot' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'img_ref' op|'[' string|"'id'" op|']' op|',' nl|'\n' name|'lambda' op|'*' name|'args' op|',' op|'**' name|'kwargs' op|':' name|'None' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_post_interrupted_snapshot_cleanup name|'def' name|'test_post_interrupted_snapshot_cleanup' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'post_interrupted_snapshot_cleanup' op|'(' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_reboot name|'def' name|'test_reboot' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'reboot_type' op|'=' string|'"SOFT"' newline|'\n' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'reboot' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' nl|'\n' name|'reboot_type' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_host_ip_addr name|'def' name|'test_get_host_ip_addr' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'host_ip' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_host_ip_addr' op|'(' op|')' newline|'\n' nl|'\n' comment|"# Will raise an exception if it's not a valid IP at all" nl|'\n' name|'ip' op|'=' name|'netaddr' op|'.' name|'IPAddress' op|'(' name|'host_ip' op|')' newline|'\n' nl|'\n' comment|'# For now, assume IPv4.' nl|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'ip' op|'.' name|'version' op|',' number|'4' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_set_admin_password name|'def' name|'test_set_admin_password' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'set_admin_password' op|'(' name|'instance' op|',' string|"'p4ssw0rd'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_inject_file name|'def' name|'test_inject_file' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'inject_file' op|'(' name|'instance_ref' op|',' nl|'\n' name|'base64' op|'.' name|'b64encode' op|'(' string|"'/testfile'" op|')' op|',' nl|'\n' name|'base64' op|'.' name|'b64encode' op|'(' string|"'testcontents'" op|')' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_resume_state_on_host_boot name|'def' name|'test_resume_state_on_host_boot' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'resume_state_on_host_boot' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' nl|'\n' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_rescue name|'def' name|'test_rescue' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'image_meta' op|'=' name|'objects' op|'.' name|'ImageMeta' op|'.' name|'from_dict' op|'(' op|'{' op|'}' op|')' newline|'\n' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'rescue' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' nl|'\n' name|'image_meta' op|',' string|"''" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_unrescue_unrescued_instance name|'def' name|'test_unrescue_unrescued_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'unrescue' op|'(' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_unrescue_rescued_instance name|'def' name|'test_unrescue_rescued_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'image_meta' op|'=' name|'objects' op|'.' name|'ImageMeta' op|'.' name|'from_dict' op|'(' op|'{' op|'}' op|')' newline|'\n' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'rescue' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' nl|'\n' name|'image_meta' op|',' string|"''" op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'unrescue' op|'(' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_poll_rebooting_instances name|'def' name|'test_poll_rebooting_instances' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instances' op|'=' op|'[' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' op|']' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'poll_rebooting_instances' op|'(' number|'10' op|',' name|'instances' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_migrate_disk_and_power_off name|'def' name|'test_migrate_disk_and_power_off' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'flavor_ref' op|'=' name|'test_utils' op|'.' name|'get_test_flavor' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'migrate_disk_and_power_off' op|'(' nl|'\n' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' string|"'dest_host'" op|',' name|'flavor_ref' op|',' nl|'\n' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_power_off name|'def' name|'test_power_off' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'power_off' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_power_on_running name|'def' name|'test_power_on_running' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'power_on' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' nl|'\n' name|'network_info' op|',' name|'None' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_power_on_powered_off name|'def' name|'test_power_on_powered_off' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'power_off' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'power_on' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' name|'None' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_trigger_crash_dump name|'def' name|'test_trigger_crash_dump' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'trigger_crash_dump' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_soft_delete name|'def' name|'test_soft_delete' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'soft_delete' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_restore_running name|'def' name|'test_restore_running' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'restore' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_restore_soft_deleted name|'def' name|'test_restore_soft_deleted' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'soft_delete' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'restore' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_pause name|'def' name|'test_pause' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'pause' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_unpause_unpaused_instance name|'def' name|'test_unpause_unpaused_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'unpause' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_unpause_paused_instance name|'def' name|'test_unpause_paused_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'pause' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'unpause' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_suspend name|'def' name|'test_suspend' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'suspend' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_resume_unsuspended_instance name|'def' name|'test_resume_unsuspended_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'resume' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_resume_suspended_instance name|'def' name|'test_resume_suspended_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'suspend' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'resume' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_destroy_instance_nonexistent name|'def' name|'test_destroy_instance_nonexistent' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'fake_instance' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'network_info' op|'=' name|'test_utils' op|'.' name|'get_test_network_info' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'destroy' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'fake_instance' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_destroy_instance name|'def' name|'test_destroy_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' name|'instance_ref' op|'[' string|"'name'" op|']' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'list_instances' op|'(' op|')' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'destroy' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' name|'self' op|'.' name|'assertNotIn' op|'(' name|'instance_ref' op|'[' string|"'name'" op|']' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'list_instances' op|'(' op|')' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_volume_connector name|'def' name|'test_get_volume_connector' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'result' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_volume_connector' op|'(' op|'{' string|"'id'" op|':' string|"'fake'" op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'ip'" op|',' name|'result' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'initiator'" op|',' name|'result' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'host'" op|',' name|'result' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_volume_connector_storage_ip name|'def' name|'test_get_volume_connector_storage_ip' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'ip' op|'=' string|"'my_ip'" newline|'\n' name|'storage_ip' op|'=' string|"'storage_ip'" newline|'\n' name|'self' op|'.' name|'flags' op|'(' name|'my_block_storage_ip' op|'=' name|'storage_ip' op|',' name|'my_ip' op|'=' name|'ip' op|')' newline|'\n' name|'result' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_volume_connector' op|'(' op|'{' string|"'id'" op|':' string|"'fake'" op|'}' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'ip'" op|',' name|'result' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'initiator'" op|',' name|'result' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'host'" op|',' name|'result' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'storage_ip' op|',' name|'result' op|'[' string|"'ip'" op|']' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_attach_detach_volume name|'def' name|'test_attach_detach_volume' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'connection_info' op|'=' op|'{' nl|'\n' string|'"driver_volume_type"' op|':' string|'"fake"' op|',' nl|'\n' string|'"serial"' op|':' string|'"fake_serial"' op|',' nl|'\n' string|'"data"' op|':' op|'{' op|'}' nl|'\n' op|'}' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'attach_volume' op|'(' name|'None' op|',' name|'connection_info' op|',' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|')' op|')' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'detach_volume' op|'(' name|'connection_info' op|',' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|')' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_swap_volume name|'def' name|'test_swap_volume' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'attach_volume' op|'(' name|'None' op|',' op|'{' string|"'driver_volume_type'" op|':' string|"'fake'" op|',' nl|'\n' string|"'data'" op|':' op|'{' op|'}' op|'}' op|',' nl|'\n' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|')' op|')' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'swap_volume' op|'(' op|'{' string|"'driver_volume_type'" op|':' string|"'fake'" op|',' nl|'\n' string|"'data'" op|':' op|'{' op|'}' op|'}' op|',' nl|'\n' op|'{' string|"'driver_volume_type'" op|':' string|"'fake'" op|',' nl|'\n' string|"'data'" op|':' op|'{' op|'}' op|'}' op|',' nl|'\n' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|',' number|'2' op|')' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_attach_detach_different_power_states name|'def' name|'test_attach_detach_different_power_states' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'connection_info' op|'=' op|'{' nl|'\n' string|'"driver_volume_type"' op|':' string|'"fake"' op|',' nl|'\n' string|'"serial"' op|':' string|'"fake_serial"' op|',' nl|'\n' string|'"data"' op|':' op|'{' op|'}' nl|'\n' op|'}' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'power_off' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'attach_volume' op|'(' name|'None' op|',' name|'connection_info' op|',' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|')' newline|'\n' nl|'\n' name|'bdm' op|'=' op|'{' nl|'\n' string|"'root_device_name'" op|':' name|'None' op|',' nl|'\n' string|"'swap'" op|':' name|'None' op|',' nl|'\n' string|"'ephemerals'" op|':' op|'[' op|']' op|',' nl|'\n' string|"'block_device_mapping'" op|':' name|'driver_block_device' op|'.' name|'convert_volumes' op|'(' op|'[' nl|'\n' name|'objects' op|'.' name|'BlockDeviceMapping' op|'(' nl|'\n' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' op|'**' name|'fake_block_device' op|'.' name|'FakeDbBlockDeviceDict' op|'(' nl|'\n' op|'{' string|"'id'" op|':' number|'1' op|',' string|"'instance_uuid'" op|':' name|'instance_ref' op|'[' string|"'uuid'" op|']' op|',' nl|'\n' string|"'device_name'" op|':' string|"'/dev/sda'" op|',' nl|'\n' string|"'source_type'" op|':' string|"'volume'" op|',' nl|'\n' string|"'destination_type'" op|':' string|"'volume'" op|',' nl|'\n' string|"'delete_on_termination'" op|':' name|'False' op|',' nl|'\n' string|"'snapshot_id'" op|':' name|'None' op|',' nl|'\n' string|"'volume_id'" op|':' string|"'abcdedf'" op|',' nl|'\n' string|"'volume_size'" op|':' name|'None' op|',' nl|'\n' string|"'no_device'" op|':' name|'None' nl|'\n' op|'}' op|')' op|')' op|',' nl|'\n' op|']' op|')' nl|'\n' op|'}' newline|'\n' name|'bdm' op|'[' string|"'block_device_mapping'" op|']' op|'[' number|'0' op|']' op|'[' string|"'connection_info'" op|']' op|'=' op|'(' nl|'\n' op|'{' string|"'driver_volume_type'" op|':' string|"'fake'" op|',' string|"'data'" op|':' op|'{' op|'}' op|'}' op|')' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' nl|'\n' name|'driver_block_device' op|'.' name|'DriverVolumeBlockDevice' op|',' string|"'save'" op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'power_on' op|'(' nl|'\n' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' name|'bdm' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'detach_volume' op|'(' name|'connection_info' op|',' nl|'\n' name|'instance_ref' op|',' nl|'\n' string|"'/dev/sda'" op|')' newline|'\n' nl|'\n' dedent|'' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_info name|'def' name|'test_get_info' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'info' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_info' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'info' op|',' name|'hardware' op|'.' name|'InstanceInfo' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_info_for_unknown_instance name|'def' name|'test_get_info_for_unknown_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'fake_instance' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'assertRaises' op|'(' name|'exception' op|'.' name|'NotFound' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'get_info' op|',' nl|'\n' name|'fake_instance' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_diagnostics name|'def' name|'test_get_diagnostics' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'get_diagnostics' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_instance_diagnostics name|'def' name|'test_get_instance_diagnostics' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'instance_ref' op|'[' string|"'launched_at'" op|']' op|'=' name|'timeutils' op|'.' name|'utcnow' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'get_instance_diagnostics' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_block_stats name|'def' name|'test_block_stats' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'stats' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'block_stats' op|'(' name|'instance_ref' op|',' string|"'someid'" op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'len' op|'(' name|'stats' op|')' op|',' number|'5' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_console_output name|'def' name|'test_get_console_output' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'fake_libvirt_utils' op|'.' name|'files' op|'[' string|"'dummy.log'" op|']' op|'=' string|"''" newline|'\n' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'console_output' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_console_output' op|'(' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'console_output' op|',' name|'six' op|'.' name|'string_types' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_vnc_console name|'def' name|'test_get_vnc_console' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'vnc_console' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_vnc_console' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'vnc_console' op|',' name|'ctype' op|'.' name|'ConsoleVNC' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_spice_console name|'def' name|'test_get_spice_console' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'spice_console' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_spice_console' op|'(' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'spice_console' op|',' name|'ctype' op|'.' name|'ConsoleSpice' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_rdp_console name|'def' name|'test_get_rdp_console' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'rdp_console' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_rdp_console' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'rdp_console' op|',' name|'ctype' op|'.' name|'ConsoleRDP' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_serial_console name|'def' name|'test_get_serial_console' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'serial_console' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_serial_console' op|'(' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'serial_console' op|',' name|'ctype' op|'.' name|'ConsoleSerial' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_mks_console name|'def' name|'test_get_mks_console' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'mks_console' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_mks_console' op|'(' name|'self' op|'.' name|'ctxt' op|',' nl|'\n' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'mks_console' op|',' name|'ctype' op|'.' name|'ConsoleMKS' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_console_pool_info name|'def' name|'test_get_console_pool_info' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'console_pool' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_console_pool_info' op|'(' name|'instance_ref' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'address'" op|',' name|'console_pool' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'username'" op|',' name|'console_pool' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'password'" op|',' name|'console_pool' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_refresh_security_group_rules name|'def' name|'test_refresh_security_group_rules' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# FIXME: Create security group and add the instance to it' nl|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'refresh_security_group_rules' op|'(' number|'1' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_refresh_instance_security_rules name|'def' name|'test_refresh_instance_security_rules' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# FIXME: Create security group and add the instance to it' nl|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'refresh_instance_security_rules' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_ensure_filtering_for_instance name|'def' name|'test_ensure_filtering_for_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'network_info' op|'=' name|'test_utils' op|'.' name|'get_test_network_info' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'ensure_filtering_rules_for_instance' op|'(' name|'instance' op|',' nl|'\n' name|'network_info' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_unfilter_instance name|'def' name|'test_unfilter_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|'=' name|'test_utils' op|'.' name|'get_test_instance' op|'(' op|')' newline|'\n' name|'network_info' op|'=' name|'test_utils' op|'.' name|'get_test_network_info' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'unfilter_instance' op|'(' name|'instance_ref' op|',' name|'network_info' op|')' newline|'\n' nl|'\n' DECL|member|test_live_migration dedent|'' name|'def' name|'test_live_migration' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'fake_context' op|'=' name|'context' op|'.' name|'RequestContext' op|'(' string|"'fake'" op|',' string|"'fake'" op|')' newline|'\n' name|'migration' op|'=' name|'objects' op|'.' name|'Migration' op|'(' name|'context' op|'=' name|'fake_context' op|',' name|'id' op|'=' number|'1' op|')' newline|'\n' name|'migrate_data' op|'=' name|'objects' op|'.' name|'LibvirtLiveMigrateData' op|'(' nl|'\n' name|'migration' op|'=' name|'migration' op|',' name|'bdms' op|'=' op|'[' op|']' op|',' name|'block_migration' op|'=' name|'False' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'live_migration' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' string|"'otherhost'" op|',' nl|'\n' name|'lambda' op|'*' name|'a' op|':' name|'None' op|',' name|'lambda' op|'*' name|'a' op|':' name|'None' op|',' nl|'\n' name|'migrate_data' op|'=' name|'migrate_data' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_live_migration_force_complete name|'def' name|'test_live_migration_force_complete' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'active_migrations' op|'[' name|'instance_ref' op|'.' name|'uuid' op|']' op|'=' name|'deque' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'live_migration_force_complete' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_live_migration_abort name|'def' name|'test_live_migration_abort' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'live_migration_abort' op|'(' name|'instance_ref' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|_check_available_resource_fields name|'def' name|'_check_available_resource_fields' op|'(' name|'self' op|',' name|'host_status' op|')' op|':' newline|'\n' indent|' ' name|'keys' op|'=' op|'[' string|"'vcpus'" op|',' string|"'memory_mb'" op|',' string|"'local_gb'" op|',' string|"'vcpus_used'" op|',' nl|'\n' string|"'memory_mb_used'" op|',' string|"'hypervisor_type'" op|',' string|"'hypervisor_version'" op|',' nl|'\n' string|"'hypervisor_hostname'" op|',' string|"'cpu_info'" op|',' string|"'disk_available_least'" op|',' nl|'\n' string|"'supported_instances'" op|']' newline|'\n' name|'for' name|'key' name|'in' name|'keys' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'assertIn' op|'(' name|'key' op|',' name|'host_status' op|')' newline|'\n' dedent|'' name|'self' op|'.' name|'assertIsInstance' op|'(' name|'host_status' op|'[' string|"'hypervisor_version'" op|']' op|',' name|'int' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_available_resource name|'def' name|'test_get_available_resource' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'available_resource' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_available_resource' op|'(' nl|'\n' string|"'myhostname'" op|')' newline|'\n' name|'self' op|'.' name|'_check_available_resource_fields' op|'(' name|'available_resource' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_available_nodes name|'def' name|'test_get_available_nodes' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'get_available_nodes' op|'(' name|'False' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|_check_host_cpu_status_fields name|'def' name|'_check_host_cpu_status_fields' op|'(' name|'self' op|',' name|'host_cpu_status' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'assertIn' op|'(' string|"'kernel'" op|',' name|'host_cpu_status' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'idle'" op|',' name|'host_cpu_status' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'user'" op|',' name|'host_cpu_status' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'iowait'" op|',' name|'host_cpu_status' op|')' newline|'\n' name|'self' op|'.' name|'assertIn' op|'(' string|"'frequency'" op|',' name|'host_cpu_status' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_host_cpu_stats name|'def' name|'test_get_host_cpu_stats' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'host_cpu_status' op|'=' name|'self' op|'.' name|'connection' op|'.' name|'get_host_cpu_stats' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'_check_host_cpu_status_fields' op|'(' name|'host_cpu_status' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_set_host_enabled name|'def' name|'test_set_host_enabled' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'set_host_enabled' op|'(' name|'True' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_host_uptime name|'def' name|'test_get_host_uptime' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'get_host_uptime' op|'(' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_host_power_action_reboot name|'def' name|'test_host_power_action_reboot' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'host_power_action' op|'(' string|"'reboot'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_host_power_action_shutdown name|'def' name|'test_host_power_action_shutdown' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'host_power_action' op|'(' string|"'shutdown'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_host_power_action_startup name|'def' name|'test_host_power_action_startup' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'host_power_action' op|'(' string|"'startup'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_add_to_aggregate name|'def' name|'test_add_to_aggregate' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'add_to_aggregate' op|'(' name|'self' op|'.' name|'ctxt' op|',' string|"'aggregate'" op|',' string|"'host'" op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_remove_from_aggregate name|'def' name|'test_remove_from_aggregate' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'remove_from_aggregate' op|'(' name|'self' op|'.' name|'ctxt' op|',' string|"'aggregate'" op|',' string|"'host'" op|')' newline|'\n' nl|'\n' DECL|member|test_events dedent|'' name|'def' name|'test_events' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'got_events' op|'=' op|'[' op|']' newline|'\n' nl|'\n' DECL|function|handler name|'def' name|'handler' op|'(' name|'event' op|')' op|':' newline|'\n' indent|' ' name|'got_events' op|'.' name|'append' op|'(' name|'event' op|')' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'connection' op|'.' name|'register_event_listener' op|'(' name|'handler' op|')' newline|'\n' nl|'\n' name|'event1' op|'=' name|'virtevent' op|'.' name|'LifecycleEvent' op|'(' nl|'\n' string|'"cef19ce0-0ca2-11df-855d-b19fbce37686"' op|',' nl|'\n' name|'virtevent' op|'.' name|'EVENT_LIFECYCLE_STARTED' op|')' newline|'\n' name|'event2' op|'=' name|'virtevent' op|'.' name|'LifecycleEvent' op|'(' nl|'\n' string|'"cef19ce0-0ca2-11df-855d-b19fbce37686"' op|',' nl|'\n' name|'virtevent' op|'.' name|'EVENT_LIFECYCLE_PAUSED' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|'(' name|'event1' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|'(' name|'event2' op|')' newline|'\n' name|'want_events' op|'=' op|'[' name|'event1' op|',' name|'event2' op|']' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'want_events' op|',' name|'got_events' op|')' newline|'\n' nl|'\n' name|'event3' op|'=' name|'virtevent' op|'.' name|'LifecycleEvent' op|'(' nl|'\n' string|'"cef19ce0-0ca2-11df-855d-b19fbce37686"' op|',' nl|'\n' name|'virtevent' op|'.' name|'EVENT_LIFECYCLE_RESUMED' op|')' newline|'\n' name|'event4' op|'=' name|'virtevent' op|'.' name|'LifecycleEvent' op|'(' nl|'\n' string|'"cef19ce0-0ca2-11df-855d-b19fbce37686"' op|',' nl|'\n' name|'virtevent' op|'.' name|'EVENT_LIFECYCLE_STOPPED' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|'(' name|'event3' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|'(' name|'event4' op|')' newline|'\n' nl|'\n' name|'want_events' op|'=' op|'[' name|'event1' op|',' name|'event2' op|',' name|'event3' op|',' name|'event4' op|']' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'want_events' op|',' name|'got_events' op|')' newline|'\n' nl|'\n' DECL|member|test_event_bad_object dedent|'' name|'def' name|'test_event_bad_object' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# Passing in something which does not inherit' nl|'\n' comment|'# from virtevent.Event' nl|'\n' nl|'\n' DECL|function|handler indent|' ' name|'def' name|'handler' op|'(' name|'event' op|')' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'connection' op|'.' name|'register_event_listener' op|'(' name|'handler' op|')' newline|'\n' nl|'\n' name|'badevent' op|'=' op|'{' nl|'\n' string|'"foo"' op|':' string|'"bar"' nl|'\n' op|'}' newline|'\n' nl|'\n' name|'self' op|'.' name|'assertRaises' op|'(' name|'ValueError' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|',' nl|'\n' name|'badevent' op|')' newline|'\n' nl|'\n' DECL|member|test_event_bad_callback dedent|'' name|'def' name|'test_event_bad_callback' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# Check that if a callback raises an exception,' nl|'\n' comment|'# it does not propagate back out of the' nl|'\n' comment|"# 'emit_event' call" nl|'\n' nl|'\n' DECL|function|handler indent|' ' name|'def' name|'handler' op|'(' name|'event' op|')' op|':' newline|'\n' indent|' ' name|'raise' name|'Exception' op|'(' string|'"Hit Me!"' op|')' newline|'\n' nl|'\n' dedent|'' name|'self' op|'.' name|'connection' op|'.' name|'register_event_listener' op|'(' name|'handler' op|')' newline|'\n' nl|'\n' name|'event1' op|'=' name|'virtevent' op|'.' name|'LifecycleEvent' op|'(' nl|'\n' string|'"cef19ce0-0ca2-11df-855d-b19fbce37686"' op|',' nl|'\n' name|'virtevent' op|'.' name|'EVENT_LIFECYCLE_STARTED' op|')' newline|'\n' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'emit_event' op|'(' name|'event1' op|')' newline|'\n' nl|'\n' DECL|member|test_set_bootable dedent|'' name|'def' name|'test_set_bootable' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'assertRaises' op|'(' name|'NotImplementedError' op|',' name|'self' op|'.' name|'connection' op|'.' name|'set_bootable' op|',' nl|'\n' string|"'instance'" op|',' name|'True' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_instance_disk_info name|'def' name|'test_get_instance_disk_info' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# This should be implemented by any driver that supports live migrate.' nl|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'get_instance_disk_info' op|'(' name|'instance_ref' op|',' nl|'\n' name|'block_device_info' op|'=' op|'{' op|'}' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' DECL|member|test_get_device_name_for_instance name|'def' name|'test_get_device_name_for_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'instance' op|',' name|'_' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'get_device_name_for_instance' op|'(' nl|'\n' name|'instance' op|',' op|'[' op|']' op|',' name|'mock' op|'.' name|'Mock' op|'(' name|'spec' op|'=' name|'objects' op|'.' name|'BlockDeviceMapping' op|')' op|')' newline|'\n' nl|'\n' DECL|member|test_network_binding_host_id dedent|'' name|'def' name|'test_network_binding_host_id' op|'(' name|'self' op|')' op|':' newline|'\n' comment|"# NOTE(jroll) self._get_running_instance calls spawn(), so we can't" nl|'\n' comment|'# use it to test this method. Make a simple object instead; we just' nl|'\n' comment|'# need instance.host.' nl|'\n' indent|' ' name|'instance' op|'=' name|'objects' op|'.' name|'Instance' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'host' op|'=' string|"'somehost'" op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'instance' op|'.' name|'host' op|',' nl|'\n' name|'self' op|'.' name|'connection' op|'.' name|'network_binding_host_id' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance' op|')' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|class|AbstractDriverTestCase dedent|'' dedent|'' name|'class' name|'AbstractDriverTestCase' op|'(' name|'_VirtDriverTestCase' op|',' name|'test' op|'.' name|'TestCase' op|')' op|':' newline|'\n' DECL|member|setUp indent|' ' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'driver_module' op|'=' string|'"nova.virt.driver.ComputeDriver"' newline|'\n' name|'super' op|'(' name|'AbstractDriverTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' nl|'\n' DECL|member|test_live_migration dedent|'' name|'def' name|'test_live_migration' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'skipTest' op|'(' string|"'Live migration is not implemented in the base '" nl|'\n' string|"'virt driver.'" op|')' newline|'\n' nl|'\n' nl|'\n' DECL|class|FakeConnectionTestCase dedent|'' dedent|'' name|'class' name|'FakeConnectionTestCase' op|'(' name|'_VirtDriverTestCase' op|',' name|'test' op|'.' name|'TestCase' op|')' op|':' newline|'\n' DECL|member|setUp indent|' ' name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'driver_module' op|'=' string|"'nova.virt.fake.FakeDriver'" newline|'\n' name|'fake' op|'.' name|'set_nodes' op|'(' op|'[' string|"'myhostname'" op|']' op|')' newline|'\n' name|'super' op|'(' name|'FakeConnectionTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' nl|'\n' DECL|member|_check_available_resource_fields dedent|'' name|'def' name|'_check_available_resource_fields' op|'(' name|'self' op|',' name|'host_status' op|')' op|':' newline|'\n' indent|' ' name|'super' op|'(' name|'FakeConnectionTestCase' op|',' name|'self' op|')' op|'.' name|'_check_available_resource_fields' op|'(' nl|'\n' name|'host_status' op|')' newline|'\n' nl|'\n' name|'hypervisor_type' op|'=' name|'host_status' op|'[' string|"'hypervisor_type'" op|']' newline|'\n' name|'supported_instances' op|'=' name|'host_status' op|'[' string|"'supported_instances'" op|']' newline|'\n' name|'try' op|':' newline|'\n' comment|'# supported_instances could be JSON wrapped' nl|'\n' indent|' ' name|'supported_instances' op|'=' name|'jsonutils' op|'.' name|'loads' op|'(' name|'supported_instances' op|')' newline|'\n' dedent|'' name|'except' name|'TypeError' op|':' newline|'\n' indent|' ' name|'pass' newline|'\n' dedent|'' name|'self' op|'.' name|'assertTrue' op|'(' name|'any' op|'(' name|'hypervisor_type' name|'in' name|'x' name|'for' name|'x' name|'in' name|'supported_instances' op|')' op|')' newline|'\n' nl|'\n' nl|'\n' DECL|class|LibvirtConnTestCase dedent|'' dedent|'' name|'class' name|'LibvirtConnTestCase' op|'(' name|'_VirtDriverTestCase' op|',' name|'test' op|'.' name|'TestCase' op|')' op|':' newline|'\n' nl|'\n' DECL|variable|REQUIRES_LOCKING indent|' ' name|'REQUIRES_LOCKING' op|'=' name|'True' newline|'\n' nl|'\n' DECL|member|setUp name|'def' name|'setUp' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# Point _VirtDriverTestCase at the right module' nl|'\n' indent|' ' name|'self' op|'.' name|'driver_module' op|'=' string|"'nova.virt.libvirt.LibvirtDriver'" newline|'\n' name|'super' op|'(' name|'LibvirtConnTestCase' op|',' name|'self' op|')' op|'.' name|'setUp' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'stubs' op|'.' name|'Set' op|'(' name|'self' op|'.' name|'connection' op|',' nl|'\n' string|"'_set_host_enabled'" op|',' name|'mock' op|'.' name|'MagicMock' op|'(' op|')' op|')' newline|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'fixtures' op|'.' name|'MonkeyPatch' op|'(' nl|'\n' string|"'nova.context.get_admin_context'" op|',' nl|'\n' name|'self' op|'.' name|'_fake_admin_context' op|')' op|')' newline|'\n' comment|'# This is needed for the live migration tests which spawn off the' nl|'\n' comment|'# operation for monitoring.' nl|'\n' name|'self' op|'.' name|'useFixture' op|'(' name|'nova_fixtures' op|'.' name|'SpawnIsSynchronousFixture' op|'(' op|')' op|')' newline|'\n' nl|'\n' DECL|member|_fake_admin_context dedent|'' name|'def' name|'_fake_admin_context' op|'(' name|'self' op|',' op|'*' name|'args' op|',' op|'**' name|'kwargs' op|')' op|':' newline|'\n' indent|' ' name|'return' name|'self' op|'.' name|'ctxt' newline|'\n' nl|'\n' DECL|member|test_force_hard_reboot dedent|'' name|'def' name|'test_force_hard_reboot' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'flags' op|'(' name|'wait_soft_reboot_seconds' op|'=' number|'0' op|',' name|'group' op|'=' string|"'libvirt'" op|')' newline|'\n' name|'self' op|'.' name|'test_reboot' op|'(' op|')' newline|'\n' nl|'\n' DECL|member|test_migrate_disk_and_power_off dedent|'' name|'def' name|'test_migrate_disk_and_power_off' op|'(' name|'self' op|')' op|':' newline|'\n' comment|'# there is lack of fake stuff to execute this method. so pass.' nl|'\n' indent|' ' name|'self' op|'.' name|'skipTest' op|'(' string|'"Test nothing, but this method"' nl|'\n' string|'" needed to override superclass."' op|')' newline|'\n' nl|'\n' DECL|member|test_internal_set_host_enabled dedent|'' name|'def' name|'test_internal_set_host_enabled' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'mox' op|'.' name|'UnsetStubs' op|'(' op|')' newline|'\n' name|'service_mock' op|'=' name|'mock' op|'.' name|'MagicMock' op|'(' op|')' newline|'\n' nl|'\n' comment|'# Previous status of the service: disabled: False' nl|'\n' name|'service_mock' op|'.' name|'configure_mock' op|'(' name|'disabled_reason' op|'=' string|"'None'" op|',' nl|'\n' name|'disabled' op|'=' name|'False' op|')' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'objects' op|'.' name|'Service' op|',' string|'"get_by_compute_host"' op|',' nl|'\n' name|'return_value' op|'=' name|'service_mock' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'_set_host_enabled' op|'(' name|'False' op|',' string|"'ERROR!'" op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'service_mock' op|'.' name|'disabled' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'service_mock' op|'.' name|'disabled_reason' op|',' string|"'AUTO: ERROR!'" op|')' newline|'\n' nl|'\n' DECL|member|test_set_host_enabled_when_auto_disabled dedent|'' dedent|'' name|'def' name|'test_set_host_enabled_when_auto_disabled' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'mox' op|'.' name|'UnsetStubs' op|'(' op|')' newline|'\n' name|'service_mock' op|'=' name|'mock' op|'.' name|'MagicMock' op|'(' op|')' newline|'\n' nl|'\n' comment|"# Previous status of the service: disabled: True, 'AUTO: ERROR'" nl|'\n' name|'service_mock' op|'.' name|'configure_mock' op|'(' name|'disabled_reason' op|'=' string|"'AUTO: ERROR'" op|',' nl|'\n' name|'disabled' op|'=' name|'True' op|')' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'objects' op|'.' name|'Service' op|',' string|'"get_by_compute_host"' op|',' nl|'\n' name|'return_value' op|'=' name|'service_mock' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'_set_host_enabled' op|'(' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'assertFalse' op|'(' name|'service_mock' op|'.' name|'disabled' op|')' newline|'\n' name|'self' op|'.' name|'assertIsNone' op|'(' name|'service_mock' op|'.' name|'disabled_reason' op|')' newline|'\n' nl|'\n' DECL|member|test_set_host_enabled_when_manually_disabled dedent|'' dedent|'' name|'def' name|'test_set_host_enabled_when_manually_disabled' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'mox' op|'.' name|'UnsetStubs' op|'(' op|')' newline|'\n' name|'service_mock' op|'=' name|'mock' op|'.' name|'MagicMock' op|'(' op|')' newline|'\n' nl|'\n' comment|"# Previous status of the service: disabled: True, 'Manually disabled'" nl|'\n' name|'service_mock' op|'.' name|'configure_mock' op|'(' name|'disabled_reason' op|'=' string|"'Manually disabled'" op|',' nl|'\n' name|'disabled' op|'=' name|'True' op|')' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'objects' op|'.' name|'Service' op|',' string|'"get_by_compute_host"' op|',' nl|'\n' name|'return_value' op|'=' name|'service_mock' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'_set_host_enabled' op|'(' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'service_mock' op|'.' name|'disabled' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'service_mock' op|'.' name|'disabled_reason' op|',' string|"'Manually disabled'" op|')' newline|'\n' nl|'\n' DECL|member|test_set_host_enabled_dont_override_manually_disabled dedent|'' dedent|'' name|'def' name|'test_set_host_enabled_dont_override_manually_disabled' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'mox' op|'.' name|'UnsetStubs' op|'(' op|')' newline|'\n' name|'service_mock' op|'=' name|'mock' op|'.' name|'MagicMock' op|'(' op|')' newline|'\n' nl|'\n' comment|"# Previous status of the service: disabled: True, 'Manually disabled'" nl|'\n' name|'service_mock' op|'.' name|'configure_mock' op|'(' name|'disabled_reason' op|'=' string|"'Manually disabled'" op|',' nl|'\n' name|'disabled' op|'=' name|'True' op|')' newline|'\n' name|'with' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'objects' op|'.' name|'Service' op|',' string|'"get_by_compute_host"' op|',' nl|'\n' name|'return_value' op|'=' name|'service_mock' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'connection' op|'.' name|'_set_host_enabled' op|'(' name|'False' op|',' string|"'ERROR!'" op|')' newline|'\n' name|'self' op|'.' name|'assertTrue' op|'(' name|'service_mock' op|'.' name|'disabled' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'service_mock' op|'.' name|'disabled_reason' op|',' string|"'Manually disabled'" op|')' newline|'\n' nl|'\n' dedent|'' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'libvirt' op|'.' name|'driver' op|'.' name|'LibvirtDriver' op|',' string|"'_unplug_vifs'" op|')' newline|'\n' DECL|member|test_unplug_vifs_with_destroy_vifs_false name|'def' name|'test_unplug_vifs_with_destroy_vifs_false' op|'(' name|'self' op|',' name|'unplug_vifs_mock' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'cleanup' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' nl|'\n' name|'destroy_vifs' op|'=' name|'False' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'unplug_vifs_mock' op|'.' name|'call_count' op|',' number|'0' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' op|'@' name|'mock' op|'.' name|'patch' op|'.' name|'object' op|'(' name|'libvirt' op|'.' name|'driver' op|'.' name|'LibvirtDriver' op|',' string|"'_unplug_vifs'" op|')' newline|'\n' DECL|member|test_unplug_vifs_with_destroy_vifs_true name|'def' name|'test_unplug_vifs_with_destroy_vifs_true' op|'(' name|'self' op|',' name|'unplug_vifs_mock' op|')' op|':' newline|'\n' indent|' ' name|'instance_ref' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'cleanup' op|'(' name|'self' op|'.' name|'ctxt' op|',' name|'instance_ref' op|',' name|'network_info' op|',' nl|'\n' name|'destroy_vifs' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'assertEqual' op|'(' name|'unplug_vifs_mock' op|'.' name|'call_count' op|',' number|'1' op|')' newline|'\n' name|'unplug_vifs_mock' op|'.' name|'assert_called_once_with' op|'(' name|'instance_ref' op|',' nl|'\n' name|'network_info' op|',' name|'True' op|')' newline|'\n' nl|'\n' DECL|member|test_get_device_name_for_instance dedent|'' name|'def' name|'test_get_device_name_for_instance' op|'(' name|'self' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'skipTest' op|'(' string|'"Tested by the nova.tests.unit.virt.libvirt suite"' op|')' newline|'\n' nl|'\n' dedent|'' op|'@' name|'catch_notimplementederror' newline|'\n' op|'@' name|'mock' op|'.' name|'patch' op|'(' string|"'nova.utils.get_image_from_system_metadata'" op|')' newline|'\n' op|'@' name|'mock' op|'.' name|'patch' op|'(' string|'"nova.virt.libvirt.host.Host.has_min_version"' op|')' newline|'\n' DECL|member|test_set_admin_password name|'def' name|'test_set_admin_password' op|'(' name|'self' op|',' name|'ver' op|',' name|'mock_image' op|')' op|':' newline|'\n' indent|' ' name|'self' op|'.' name|'flags' op|'(' name|'virt_type' op|'=' string|"'kvm'" op|',' name|'group' op|'=' string|"'libvirt'" op|')' newline|'\n' name|'mock_image' op|'.' name|'return_value' op|'=' op|'{' string|'"properties"' op|':' op|'{' nl|'\n' string|'"hw_qemu_guest_agent"' op|':' string|'"yes"' op|'}' op|'}' newline|'\n' name|'instance' op|',' name|'network_info' op|'=' name|'self' op|'.' name|'_get_running_instance' op|'(' name|'obj' op|'=' name|'True' op|')' newline|'\n' name|'self' op|'.' name|'connection' op|'.' name|'set_admin_password' op|'(' name|'instance' op|',' string|"'p4ssw0rd'" op|')' newline|'\n' dedent|'' dedent|'' endmarker|'' end_unit
13.232023
234
0.629174
12,259
84,460
4.194225
0.051554
0.162437
0.086547
0.084408
0.843729
0.787152
0.731587
0.688974
0.660482
0.63481
0
0.00203
0.096105
84,460
6,382
235
13.234096
0.67147
0
0
0.924162
0
0.000313
0.389119
0.088551
0
0
0
0
0.008618
0
null
null
0.002507
0.006111
null
null
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
6
7a5c2ee8accd80344122ca3b1b7d4d198707f6ea
176
py
Python
src/preceptron1/test_preceptron.py
Farooq-azam-khan/preceptron-learning-algorithm
f229d28928713342314ca43bbdb714b17396661a
[ "MIT" ]
null
null
null
src/preceptron1/test_preceptron.py
Farooq-azam-khan/preceptron-learning-algorithm
f229d28928713342314ca43bbdb714b17396661a
[ "MIT" ]
1
2021-08-23T20:47:53.000Z
2021-08-23T20:47:53.000Z
src/preceptron1/test_preceptron.py
Farooq-azam-khan/preceptron-learning-algorithm
f229d28928713342314ca43bbdb714b17396661a
[ "MIT" ]
null
null
null
import unittest from preceptron import Preceptron import random class TestPreceptronModelClass(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
16
50
0.767045
18
176
7.055556
0.666667
0.251969
0
0
0
0
0
0
0
0
0
0
0.164773
176
10
51
17.6
0.863946
0
0
0
0
0
0.045455
0
0
0
0
0
0
1
0
true
0.142857
0.428571
0
0.571429
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
7a783a273d9327b7ed84e57baaeae1521d9da086
30
py
Python
model/__init__.py
alexghergh/cdl2020
ea174700a758b35e9956e4b3701058c5d612a5d3
[ "MIT" ]
null
null
null
model/__init__.py
alexghergh/cdl2020
ea174700a758b35e9956e4b3701058c5d612a5d3
[ "MIT" ]
5
2020-02-15T11:48:07.000Z
2021-09-14T10:49:02.000Z
model/__init__.py
alexghergh/cdl2020
ea174700a758b35e9956e4b3701058c5d612a5d3
[ "MIT" ]
null
null
null
from model.index import Index
15
29
0.833333
5
30
5
0.8
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
7aa2ddd1e7af4bda8911fe7b09d2f306e20b038f
25
py
Python
gamesense/__init__.py
anishg24/gamesense
ec6435378de1711c0c88f667bc30bbb3db9832cc
[ "MIT" ]
3
2018-11-17T18:44:51.000Z
2020-11-19T18:14:06.000Z
gamesense/__init__.py
anishg24/gamesense
ec6435378de1711c0c88f667bc30bbb3db9832cc
[ "MIT" ]
2
2021-06-01T22:56:51.000Z
2021-11-08T16:38:32.000Z
gamesense/__init__.py
anishg24/gamesense
ec6435378de1711c0c88f667bc30bbb3db9832cc
[ "MIT" ]
2
2020-11-19T18:14:09.000Z
2021-06-02T17:13:48.000Z
from .gamesense import *
12.5
24
0.76
3
25
6.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.904762
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
8fb20662e4186a73c9049f9b6a28329932bba204
17,052
py
Python
mayan/apps/document_signatures/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
4
2021-09-02T00:16:30.000Z
2021-09-09T22:25:15.000Z
mayan/apps/document_signatures/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
86
2021-09-01T23:53:02.000Z
2021-09-20T02:25:10.000Z
mayan/apps/document_signatures/tests/test_api.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
70
2021-09-01T12:54:51.000Z
2022-02-16T00:53:18.000Z
from rest_framework import status from mayan.apps.django_gpg.permissions import permission_key_sign from mayan.apps.django_gpg.tests.literals import TEST_KEY_PUBLIC_ID from mayan.apps.django_gpg.tests.mixins import KeyTestMixin from mayan.apps.documents.events import ( event_document_file_created, event_document_file_edited, event_document_version_created, event_document_version_page_created ) from mayan.apps.documents.tests.mixins.document_mixins import DocumentTestMixin from mayan.apps.rest_api.tests.base import BaseAPITestCase from ..events import ( event_detached_signature_created, event_detached_signature_uploaded, event_embedded_signature_created ) from ..permissions import ( permission_document_file_sign_detached, permission_document_file_sign_embedded, permission_document_file_signature_delete, permission_document_file_signature_view, permission_document_file_signature_upload ) from .literals import TEST_SIGNED_DOCUMENT_PATH from .mixins import ( DetachedSignatureAPIViewTestMixin, EmbeddedSignatureAPIViewTestMixin, SignatureTestMixin ) class DetachedSignatureDocumentAPIViewTestCase( DocumentTestMixin, DetachedSignatureAPIViewTestMixin, KeyTestMixin, SignatureTestMixin, BaseAPITestCase ): auto_upload_test_document = False def test_document_signature_detached_delete_api_view_no_permission(self): self._upload_test_document() self._upload_test_detached_signature() signatures = self.test_document.file_latest.signatures.count() self._clear_events() response = self._request_test_document_signature_detached_delete_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_delete_api_view_with_access(self): self._upload_test_document() self._upload_test_detached_signature() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_delete ) self._clear_events() response = self._request_test_document_signature_detached_delete_view() self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures - 1 ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_detail_api_view_no_permission(self): self._upload_test_document() self._upload_test_detached_signature() self._clear_events() response = self._request_test_document_signature_detached_detail_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_detail_api_view_with_access(self): self._upload_test_document() self._upload_test_detached_signature() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_view ) self._clear_events() response = self._request_test_document_signature_detached_detail_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['key_id'], TEST_KEY_PUBLIC_ID ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_list_api_view_no_permission(self): self._upload_test_document() self._upload_test_detached_signature() self._clear_events() response = self._request_test_document_signature_detached_list_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_list_api_view_with_access(self): self._upload_test_document() self._upload_test_detached_signature() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_view ) self._clear_events() response = self._request_test_document_signature_detached_list_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['results'][0]['key_id'], TEST_KEY_PUBLIC_ID ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_sign_api_view_with_no_permission(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self._clear_events() response = self._request_test_document_signature_detached_sign_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_sign_api_view_with_document_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_sign_detached ) self._clear_events() response = self._request_test_document_signature_detached_sign_view() self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_sign_api_view_with_key_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_key_private, permission=permission_key_sign ) self._clear_events() response = self._request_test_document_signature_detached_sign_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_sign_api_view_with_full_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_sign_detached ) self.grant_access( obj=self.test_key_private, permission=permission_key_sign ) self._clear_events() response = self._request_test_document_signature_detached_sign_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures + 1 ) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual( events[0].action_object, self.test_document.file_latest.signatures.first().detachedsignature ) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_document_file) self.assertEqual(events[0].verb, event_detached_signature_created.id) def test_document_signature_detached_upload_api_view_no_permission(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self._clear_events() response = self._request_test_document_signature_detached_upload_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_detached_upload_api_view_with_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_upload ) self._clear_events() response = self._request_test_document_signature_detached_upload_view() self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures + 1 ) events = self._get_test_events() self.assertEqual(events.count(), 1) self.assertEqual( events[0].action_object, self.test_document.file_latest.signatures.first().detachedsignature ) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, self.test_document_file) self.assertEqual(events[0].verb, event_detached_signature_uploaded.id) class EmbeddedSignatureDocumentAPIViewTestCase( DocumentTestMixin, EmbeddedSignatureAPIViewTestMixin, KeyTestMixin, BaseAPITestCase ): auto_upload_test_document = False def test_document_signature_embedded_detail_api_view_no_permission(self): self.test_document_path = TEST_SIGNED_DOCUMENT_PATH self._upload_test_document() self._clear_events() response = self._request_test_document_signature_embedded_detail_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_detail_api_view_with_access(self): self.test_document_path = TEST_SIGNED_DOCUMENT_PATH self._upload_test_document() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_view ) self._clear_events() response = self._request_test_document_signature_embedded_detail_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['key_id'], TEST_KEY_PUBLIC_ID ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_list_api_view_no_permission(self): self.test_document_path = TEST_SIGNED_DOCUMENT_PATH self._upload_test_document() self._clear_events() response = self._request_test_document_signature_embedded_list_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_list_api_view_with_access(self): self.test_document_path = TEST_SIGNED_DOCUMENT_PATH self._upload_test_document() self.grant_access( obj=self.test_document, permission=permission_document_file_signature_view ) self._clear_events() response = self._request_test_document_signature_embedded_list_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( response.data['results'][0]['key_id'], TEST_KEY_PUBLIC_ID ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_sign_api_view_with_no_permission(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self._clear_events() response = self._request_test_document_signature_embedded_sign_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_sign_api_view_with_document_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_sign_embedded ) self._clear_events() response = self._request_test_document_signature_embedded_sign_view() self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_sign_api_view_with_key_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_key_private, permission=permission_key_sign ) self._clear_events() response = self._request_test_document_signature_embedded_sign_view() self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures ) events = self._get_test_events() self.assertEqual(events.count(), 0) def test_document_signature_embedded_sign_api_view_with_full_access(self): self._upload_test_document() self._create_test_key_private() signatures = self.test_document.file_latest.signatures.count() self.grant_access( obj=self.test_document, permission=permission_document_file_sign_embedded ) self.grant_access( obj=self.test_key_private, permission=permission_key_sign ) self._clear_events() response = self._request_test_document_signature_embedded_sign_view() self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual( self.test_document.file_latest.signatures.count(), signatures + 1 ) events = self._get_test_events() self.assertEqual(events.count(), 5) test_document_file = self.test_document.file_latest test_document_version = self.test_document.versions.last() self.assertEqual(events[0].action_object, self.test_document) self.assertEqual(events[0].actor, self._test_case_user) self.assertEqual(events[0].target, test_document_file) self.assertEqual(events[0].verb, event_document_file_created.id) self.assertEqual(events[1].action_object, self.test_document) self.assertEqual(events[1].actor, self._test_case_user) self.assertEqual(events[1].target, test_document_file) self.assertEqual(events[1].verb, event_document_file_edited.id) self.assertEqual(events[2].action_object, self.test_document) self.assertEqual(events[2].actor, self._test_case_user) self.assertEqual(events[2].target, test_document_version) self.assertEqual(events[2].verb, event_document_version_created.id) self.assertEqual(events[3].action_object, test_document_version) self.assertEqual(events[3].actor, self._test_case_user) self.assertEqual(events[3].target, test_document_version.pages.first()) self.assertEqual( events[3].verb, event_document_version_page_created.id ) self.assertEqual( events[4].action_object, self.test_document.file_latest.signatures.first().embeddedsignature ) self.assertEqual(events[4].actor, self._test_case_user) self.assertEqual(events[4].target, self.test_document_file) self.assertEqual(events[4].verb, event_embedded_signature_created.id)
34.172345
82
0.709477
1,941
17,052
5.762494
0.053065
0.126598
0.070094
0.055431
0.892803
0.85865
0.84667
0.842825
0.807331
0.79392
0
0.008494
0.212937
17,052
498
83
34.240964
0.824901
0
0
0.682192
0
0
0.002228
0
0
0
0
0
0.230137
1
0.054795
false
0
0.030137
0
0.09589
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
8fd6c9b700904b379c58c00c53680176dd4cf2dd
28,760
py
Python
tests/test_parsers/test_docstrings/test_restructured_text.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
21
2021-02-20T05:20:52.000Z
2022-03-04T20:57:16.000Z
tests/test_parsers/test_docstrings/test_restructured_text.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
84
2020-03-22T15:29:56.000Z
2021-02-09T21:47:11.000Z
tests/test_parsers/test_docstrings/test_restructured_text.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
21
2020-04-09T13:56:23.000Z
2021-01-19T19:18:42.000Z
"""Tests for [the `parsers.docstrings.google` module][pytkdocs.parsers.docstrings.google].""" import inspect from textwrap import dedent import pytest from pytkdocs.loader import Loader from pytkdocs.objects import Object from pytkdocs.parsers.docstrings.base import AnnotatedObject, Attribute, Parameter, Section, empty from pytkdocs.parsers.docstrings.restructured_text import RestructuredText from pytkdocs.serializer import serialize_attribute class DummyObject: def __init__(self, signature, return_type): self.path = "o" self.signature = signature self.type = return_type SOME_NAME = "foo" SOME_TEXT = "descriptive test text" SOME_EXTRA_TEXT = "more test text" SOME_EXCEPTION_NAME = "SomeException" SOME_OTHER_EXCEPTION_NAME = "SomeOtherException" def dedent_strip(text: str) -> str: return dedent(text).strip() def parse(obj, strip_docstring=True): """Helper to parse a docstring.""" return parse_detailed(inspect.getdoc(obj), inspect.signature(obj), strip_docstring=strip_docstring) def parse_detailed(docstring, signature=None, return_type=inspect.Signature.empty, strip_docstring=True): """Helper to parse a docstring.""" docstring = dedent_strip(docstring) if strip_docstring else dedent(docstring) return RestructuredText().parse(docstring, {"obj": DummyObject(signature, return_type)}) def assert_parameter_equal(actual: Parameter, expected: Parameter) -> None: assert actual.name == expected.name assert_annotated_obj_equal(actual, expected) assert actual.kind == expected.kind assert actual.default == expected.default def assert_attribute_equal(actual: Attribute, expected: Attribute) -> None: assert actual.name == expected.name assert_annotated_obj_equal(actual, expected) def assert_annotated_obj_equal(actual: AnnotatedObject, expected: AnnotatedObject) -> None: assert actual.annotation == expected.annotation assert actual.description == expected.description def get_rst_object_documentation(dotted_fixture_subpath) -> Object: return Loader(docstring_style="restructured-text").get_object_documentation( f"tests.fixtures.parsing.restructured_text.{dotted_fixture_subpath}" ) @pytest.mark.parametrize( "docstring", [ "One line docstring description", """ Multiple line docstring description. With more text. """, ], ) def test_parse__description_only_docstring__single_markdown_section(docstring): sections, errors = parse_detailed(docstring) assert len(sections) == 1 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == dedent_strip(docstring) assert not errors def test_parse__no_description__single_markdown_section(): sections, errors = parse_detailed("") assert len(sections) == 1 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == "" assert not errors def test_parse__multiple_blank_lines_before_description__single_markdown_section(): sections, errors = parse_detailed( """ Now text""", strip_docstring=False, ) assert len(sections) == 1 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == "Now text" assert not errors def test_parse__description_with_initial_newline__single_markdown_section(): docstring = """ With initial newline """ sections, errors = parse_detailed(docstring, strip_docstring=False) assert len(sections) == 1 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == dedent_strip(docstring) assert not errors def test_parse__param_field__param_section(): """Parse a simple docstring.""" sections, errors = parse_detailed( f""" Docstring with one line param. :param {SOME_NAME}: {SOME_TEXT} """ ) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation=empty, description=SOME_TEXT, kind=empty) ) def test_parse__only_param_field__empty_markdown(): sections, errors = parse_detailed(":param foo: text") assert len(sections) == 2 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == "" @pytest.mark.parametrize( "param_directive_name", [ "param", "parameter", "arg", "argument", "key", "keyword", ], ) def test_parse__all_param_names__param_section(param_directive_name): sections, errors = parse_detailed( f""" Docstring with one line param. :{param_directive_name} {SOME_NAME}: {SOME_TEXT} """ ) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation=empty, description=SOME_TEXT, kind=empty) ) @pytest.mark.parametrize( "docstring", [ f""" Docstring with param with continuation, no indent. :param {SOME_NAME}: {SOME_TEXT} {SOME_EXTRA_TEXT} """, f""" Docstring with param with continuation, with indent. :param {SOME_NAME}: {SOME_TEXT} {SOME_EXTRA_TEXT} """, ], ) def test_parse__param_field_multi_line__param_section(docstring): """Parse a simple docstring.""" sections, errors = parse_detailed(docstring) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation=empty, description=f"{SOME_TEXT} {SOME_EXTRA_TEXT}", kind=empty), ) def test_parse__param_field_for_function__param_section_with_kind(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation=empty, description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD), ) def test_parse__param_field_docs_type__param_section_with_type(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param str foo: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation="str", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD), ) def test_parse__param_field_type_field__param_section_with_type(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text :type foo: str """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation="str", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD), ) def test_parse__param_field_type_field_first__param_section_with_type(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :type foo: str :param foo: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation="str", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD), ) def test_parse__param_field_type_field_or_none__param_section_with_optional(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text :type foo: str or None """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter( SOME_NAME, annotation="Optional[str]", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD ), ) def test_parse__param_field_type_none_or_field__param_section_with_optional(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text :type foo: None or str """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter( SOME_NAME, annotation="Optional[str]", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD ), ) def test_parse__param_field_type_field_or_int__param_section_with_union(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text :type foo: str or int """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter( SOME_NAME, annotation="Union[str,int]", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD ), ) def test_parse__param_field_type_multiple__param_section_with_union(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param foo: descriptive test text :type foo: str or int or float """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter( SOME_NAME, annotation="Union[str,int,float]", description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD, ), ) def test_parse__param_field_annotate_type__param_section_with_type(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param foo: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter(SOME_NAME, annotation=str, description=SOME_TEXT, kind=inspect.Parameter.POSITIONAL_OR_KEYWORD), ) def test_parse__param_field_no_matching_param__result_from_docstring(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param other: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter("other", annotation=empty, description=SOME_TEXT, kind=empty), ) def test_parse__param_field_with_default__result_from_docstring(): """Parse a simple docstring.""" def f(foo=""): """ Docstring with line continuation. :param foo: descriptive test text """ sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS assert_parameter_equal( sections[1].value[0], Parameter( "foo", annotation=empty, description=SOME_TEXT, default="", kind=inspect.Parameter.POSITIONAL_OR_KEYWORD ), ) def test_parse__param_field_no_matching_param__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param other: descriptive test text """ sections, errors = parse(f) assert "No matching parameter for 'other'" in errors[0] def test_parse__invalid_param_field_only_initial_marker__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param foo descriptive test text """ sections, errors = parse(f) assert "Failed to get ':directive: value' pair" in errors[0] def test_parse__invalid_param_field_wrong_part_count__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param: descriptive test text """ sections, errors = parse(f) assert "Failed to parse field directive" in errors[0] def test_parse__param_twice__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param foo: descriptive test text :param foo: descriptive test text again """ sections, errors = parse(f) assert "Duplicate parameter entry for 'foo'" in errors[0] def test_parse__param_type_twice_doc__error_message(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :param str foo: descriptive test text :type foo: str """ sections, errors = parse(f) assert "Duplicate parameter information for 'foo'" in errors[0] def test_parse__param_type_twice_type_directive_first__error_message(): """Parse a simple docstring.""" def f(foo): """ Docstring with line continuation. :type foo: str :param str foo: descriptive test text """ sections, errors = parse(f) assert "Duplicate parameter information for 'foo'" in errors[0] def test_parse__param_type_twice_annotated__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param str foo: descriptive test text :type foo: str """ sections, errors = parse(f) assert "Duplicate parameter information for 'foo'" in errors[0] def test_parse__param_type_no_type__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param str foo: descriptive test text :type str """ sections, errors = parse(f) assert "Failed to get ':directive: value' pair from" in errors[0] def test_parse__param_type_no_name__error_message(): """Parse a simple docstring.""" def f(foo: str): """ Docstring with line continuation. :param str foo: descriptive test text :type: str """ sections, errors = parse(f) assert "Failed to get parameter name from" in errors[0] @pytest.mark.parametrize( "docstring", [ f""" Docstring with param with continuation, no indent. :var {SOME_NAME}: {SOME_TEXT} {SOME_EXTRA_TEXT} """, f""" Docstring with param with continuation, with indent. :var {SOME_NAME}: {SOME_TEXT} {SOME_EXTRA_TEXT} """, ], ) def test_parse__attribute_field_multi_line__param_section(docstring): """Parse a simple docstring.""" sections, errors = parse_detailed(docstring) assert len(sections) == 2 assert sections[1].type == Section.Type.ATTRIBUTES assert_attribute_equal( sections[1].value[0], Attribute(SOME_NAME, annotation=empty, description=f"{SOME_TEXT} {SOME_EXTRA_TEXT}"), ) @pytest.mark.parametrize( "attribute_directive_name", [ "var", "ivar", "cvar", ], ) def test_parse__all_attribute_names__param_section(attribute_directive_name): sections, errors = parse_detailed( f""" Docstring with one line attribute. :{attribute_directive_name} {SOME_NAME}: {SOME_TEXT} """ ) assert len(sections) == 2 assert sections[1].type == Section.Type.ATTRIBUTES assert_attribute_equal( sections[1].value[0], Attribute(SOME_NAME, annotation=empty, description=SOME_TEXT), ) def test_parse__class_attributes__attributes_section(): class Foo: """ Class docstring with attributes :var foo: descriptive test text """ sections, errors = parse(Foo) assert len(sections) == 2 assert sections[1].type == Section.Type.ATTRIBUTES assert_attribute_equal( sections[1].value[0], Attribute(SOME_NAME, annotation=empty, description=SOME_TEXT), ) def test_parse__class_attributes_with_type__annotation_in_attributes_section(): class Foo: """ Class docstring with attributes :vartype foo: str :var foo: descriptive test text """ sections, errors = parse(Foo) assert len(sections) == 2 assert sections[1].type == Section.Type.ATTRIBUTES assert_attribute_equal( sections[1].value[0], Attribute(SOME_NAME, annotation="str", description=SOME_TEXT), ) def test_parse__attribute_invalid_directive___error(): class Foo: """ Class docstring with attributes :var descriptive test text """ sections, errors = parse(Foo) assert "Failed to get ':directive: value' pair from" in errors[0] def test_parse__attribute_no_name__error(): class Foo: """ Class docstring with attributes :var: descriptive test text """ sections, errors = parse(Foo) assert "Failed to parse field directive from" in errors[0] def test_parse__attribute_duplicate__error(): class Foo: """ Class docstring with attributes :var foo: descriptive test text :var foo: descriptive test text """ sections, errors = parse(Foo) assert "Duplicate attribute entry for 'foo'" in errors[0] def test_parse__class_attributes_type_invalid__error(): class Foo: """ Class docstring with attributes :vartype str :var foo: descriptive test text """ sections, errors = parse(Foo) assert "Failed to get ':directive: value' pair from " in errors[0] def test_parse__class_attributes_type_no_name__error(): class Foo: """ Class docstring with attributes :vartype: str :var foo: descriptive test text """ sections, errors = parse(Foo) assert "Failed to get attribute name from" in errors[0] def test_parse__return_directive__return_section_no_type(): def f(foo: str): """ Function with only return directive :return: descriptive test text """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal( sections[1].value, AnnotatedObject(annotation=empty, description=SOME_TEXT), ) def test_parse__return_directive_rtype__return_section_with_type(): def f(foo: str): """ Function with only return & rtype directive :return: descriptive test text :rtype: str """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal( sections[1].value, AnnotatedObject(annotation="str", description=SOME_TEXT), ) def test_parse__return_directive_rtype_first__return_section_with_type(): def f(foo: str): """ Function with only return & rtype directive :rtype: str :return: descriptive test text """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal( sections[1].value, AnnotatedObject(annotation="str", description=SOME_TEXT), ) def test_parse__return_directive_annotation__return_section_with_type(): def f(foo: str) -> str: """ Function with return directive, rtype directive, & annotation :return: descriptive test text """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal( sections[1].value, AnnotatedObject(annotation=str, description=SOME_TEXT), ) def test_parse__return_directive_annotation__return_section_with_type_error(): def f(foo: str) -> str: """ Function with return directive, rtype directive, & annotation :return: descriptive test text :rtype: str """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal( sections[1].value, AnnotatedObject(annotation=str, description=SOME_TEXT), ) assert "Duplicate type information for return" in errors[0] def test_parse__return_invalid__error(): def f(foo: str): """ Function with only return directive :return descriptive test text """ return foo sections, errors = parse(f) assert "Failed to get ':directive: value' pair from " in errors[0] def test_parse__rtype_invalid__error(): def f(foo: str): """ Function with only return directive :rtype str """ return foo sections, errors = parse(f) assert "Failed to get ':directive: value' pair from " in errors[0] def test_parse__raises_directive__exception_section(): def f(foo: str): """ Function with only return directive :raise SomeException: descriptive test text """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.EXCEPTIONS assert_annotated_obj_equal( sections[1].value[0], AnnotatedObject(annotation=SOME_EXCEPTION_NAME, description=SOME_TEXT), ) def test_parse__multiple_raises_directive__exception_section_with_two(): def f(foo: str): """ Function with only return directive :raise SomeException: descriptive test text :raise SomeOtherException: descriptive test text """ return foo sections, errors = parse(f) assert len(sections) == 2 assert sections[1].type == Section.Type.EXCEPTIONS assert_annotated_obj_equal( sections[1].value[0], AnnotatedObject(annotation=SOME_EXCEPTION_NAME, description=SOME_TEXT), ) assert_annotated_obj_equal( sections[1].value[1], AnnotatedObject(annotation=SOME_OTHER_EXCEPTION_NAME, description=SOME_TEXT), ) @pytest.mark.parametrize( "attribute_directive_name", [ "raises", "raise", "except", "exception", ], ) def test_parse__all_exception_names__param_section(attribute_directive_name): sections, errors = parse_detailed( f""" Docstring with one line attribute. :{attribute_directive_name} {SOME_EXCEPTION_NAME}: {SOME_TEXT} """ ) assert len(sections) == 2 assert sections[1].type == Section.Type.EXCEPTIONS assert_annotated_obj_equal( sections[1].value[0], AnnotatedObject(annotation=SOME_EXCEPTION_NAME, description=SOME_TEXT), ) def test_parse__raise_invalid__error(): def f(foo: str): """ Function with only return directive :raise descriptive test text """ return foo sections, errors = parse(f) assert "Failed to get ':directive: value' pair from " in errors[0] def test_parse__raise_no_name__error(): def f(foo: str): """ Function with only return directive :raise: descriptive test text """ return foo sections, errors = parse(f) assert "Failed to parse exception directive from" in errors[0] # ------------------------------- # Fixture tests # ------------------------------- def test_parse_module_attributes_section__expected_attributes_section(): """Parse attributes section in modules.""" obj = get_rst_object_documentation("docstring_attributes_section") assert len(obj.docstring_sections) == 2 attr_section = obj.docstring_sections[1] assert attr_section.type == Section.Type.ATTRIBUTES assert len(attr_section.value) == 5 expected = [ {"name": "A", "annotation": "int", "description": "Alpha."}, # type annotation takes preference over docstring {"name": "B", "annotation": "str", "description": "Beta."}, {"name": "C", "annotation": "bool", "description": "Gamma."}, {"name": "D", "annotation": "", "description": "Delta."}, {"name": "E", "annotation": "float", "description": "Epsilon."}, ] assert [serialize_attribute(attr) for attr in attr_section.value] == expected def test_parse_module_attributes_section__expected_docstring_errors(): """Parse attributes section in modules.""" obj = get_rst_object_documentation("docstring_attributes_section") assert len(obj.docstring_errors) == 1 assert "Duplicate attribute information for 'B'" in obj.docstring_errors[0] def test_property_docstring__expected_description(): """Parse a property docstring.""" class_ = get_rst_object_documentation("class_docstrings:NotDefinedYet") prop = class_.attributes[0] sections = prop.docstring_sections assert len(sections) == 2 assert sections[0].type == Section.Type.MARKDOWN assert ( sections[0].value == "This property returns `self`.\n\nIt's fun because you can call it like `obj.ha.ha.ha.ha.ha.ha...`." ) def test_property_docstring__expected_return(): """Parse a property docstring.""" class_ = get_rst_object_documentation("class_docstrings:NotDefinedYet") prop = class_.attributes[0] sections = prop.docstring_sections assert len(sections) == 2 assert sections[1].type == Section.Type.RETURN assert_annotated_obj_equal(sections[1].value, AnnotatedObject("NotDefinedYet", "self!")) def test_property_class_init__expected_description(): class_ = get_rst_object_documentation("class_docstrings:ClassInitFunction") init = class_.methods[0] sections = init.docstring_sections assert len(sections) == 2 assert sections[0].type == Section.Type.MARKDOWN assert sections[0].value == "Initialize instance." def test_class_init__expected_param(): class_ = get_rst_object_documentation("class_docstrings:ClassInitFunction") init = class_.methods[0] sections = init.docstring_sections assert len(sections) == 2 assert sections[1].type == Section.Type.PARAMETERS param_section = sections[1] assert_parameter_equal( param_section.value[0], Parameter("value", str, "Value to store", kind=inspect.Parameter.POSITIONAL_OR_KEYWORD) ) assert_parameter_equal( param_section.value[1], Parameter("other", "int", "Other value with default", kind=inspect.Parameter.POSITIONAL_OR_KEYWORD, default=1), ) def test_member_function___expected_param(): class_ = get_rst_object_documentation("class_docstrings:ClassWithFunction") init = class_.methods[0] sections = init.docstring_sections assert len(sections) == 3 param_section = sections[1] assert param_section.type == Section.Type.PARAMETERS assert_parameter_equal( param_section.value[0], Parameter("value", str, "Value to store", kind=inspect.Parameter.POSITIONAL_OR_KEYWORD) ) assert_parameter_equal( param_section.value[1], Parameter("other", "int", "Other value with default", kind=inspect.Parameter.POSITIONAL_OR_KEYWORD, default=1), ) def test_member_function___expected_return(): class_ = get_rst_object_documentation("class_docstrings:ClassWithFunction") init = class_.methods[0] sections = init.docstring_sections assert len(sections) == 3 assert sections[2].type == Section.Type.RETURN assert_annotated_obj_equal(sections[2].value, AnnotatedObject(str, "Concatenated result")) def test_property_docstring__no_errors(): """Parse a property docstring.""" class_ = get_rst_object_documentation("class_docstrings:NotDefinedYet") prop = class_.attributes[0] assert not prop.docstring_errors
27.895247
119
0.66516
3,342
28,760
5.467684
0.060144
0.031029
0.033492
0.030537
0.81957
0.797734
0.792973
0.771959
0.748481
0.727959
0
0.007673
0.229659
28,760
1,030
120
27.92233
0.817107
0.142281
0
0.614437
0
0.001761
0.130804
0.022588
0
0
0
0
0.272887
1
0.170775
false
0
0.014085
0.003521
0.225352
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
8fe19d507564baae449fcb5a7c02377d9177fc7c
8,385
py
Python
src/python/units/MessageFunction.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/python/units/MessageFunction.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
src/python/units/MessageFunction.py
tengyu-liu/Part-GPNN
d2092917edeee835fc1888101dddf42ad76ec5e5
[ "MIT" ]
null
null
null
""" Created on Oct 05, 2017 @author: Siyuan Qi Description of the file. """ import torch import torch.nn import torch.autograd class MessageFunction(torch.nn.Module): def __init__(self, message_def, args): super(MessageFunction, self).__init__() self.m_definition = '' self.m_function = None self.args = {} self.learn_args = torch.nn.ParameterList([]) self.learn_modules = torch.nn.ModuleList([]) self.__set_message(message_def, args) # Message from h_v to h_w through e_vw def forward(self, h_v, h_w, e_vw, args=None): if self.m_definition == 'linear': message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = self.learn_modules[0](e_vw[:, :, i_node]) + self.learn_modules[1](h_w[:, :, i_node]) return message if self.m_definition == 'linear_edge': message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = self.learn_modules[0](e_vw[:, :, i_node]) return message if self.m_definition == 'linear_concat': message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = torch.cat([self.learn_modules[0](e_vw[:, :, i_node]), self.learn_modules[1](h_w[:, :, i_node])], 1) return message if self.m_definition == 'linear_concat_relu': message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() # Optimized e_vw_shape = e_vw.shape h_w_shape = h_w.shape e_vw = e_vw.permute([0,2,1]).contiguous().view([-1, e_vw_shape[1]]) h_w = h_w.permute([0,2,1]).contiguous().view([-1, h_w_shape[1]]) e_vw = self.learn_modules[0](e_vw).contiguous().view([e_vw_shape[0], e_vw_shape[2], -1]).permute([0,2,1]) h_w = self.learn_modules[1](h_w).contiguous().view([h_w_shape[0], h_w_shape[2], -1]).permute([0,2,1]) message = torch.cat([e_vw, h_w], dim=1) # for i_node in range(e_vw.size()[2]): # message[:, :, i_node] = torch.cat([self.learn_modules[0](e_vw[:, :, i_node]), self.learn_modules[1](h_w[:, :, i_node])], 1) return message print('WARNING!: Message Function has not been set correctly\n\tIncorrect definition ' + message_def) quit() # Set a message function def __set_message(self, message_def, args): self.m_definition = message_def.lower() self.args = args # self.m_function = { # 'linear': self.m_linear, # 'linear_edge': self.m_linear_edge, # 'linear_concat': self.m_linear_concat, # 'linear_concat_relu': self.m_linear_concat_relu, # }.get(self.m_definition, None) # if self.m_function is None: # print('WARNING!: Message Function has not been set correctly\n\tIncorrect definition ' + message_def) # quit() init_parameters = { 'linear': self.init_linear, 'linear_edge': self.init_linear_edge, 'linear_concat': self.init_linear_concat, 'linear_concat_relu': self.init_linear_concat_relu, }.get(self.m_definition, lambda x: (torch.nn.ParameterList([]), torch.nn.ModuleList([]), {})) init_parameters() # Get the name of the used message function def get_definition(self): return self.m_definition # Get the message function arguments def get_args(self): return self.args # Definition of message functions # Combination of linear transformation of edge features and node features def m_linear(self, h_v, h_w, e_vw, args): message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = self.learn_modules[0](e_vw[:, :, i_node]) + self.learn_modules[1](h_w[:, :, i_node]) return message def init_linear(self): edge_feature_size = self.args['edge_feature_size'] node_feature_size = self.args['node_feature_size'] message_size = self.args['message_size'] self.learn_modules.append(torch.nn.Linear(edge_feature_size, message_size, bias=True)) self.learn_modules.append(torch.nn.Linear(node_feature_size, message_size, bias=True)) # Linear transformation of edge features def m_linear_edge(self, h_v, h_w, e_vw, args): message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = self.learn_modules[0](e_vw[:, :, i_node]) return message def init_linear_edge(self): edge_feature_size = self.args['edge_feature_size'] message_size = self.args['message_size'] self.learn_modules.append(torch.nn.Linear(edge_feature_size, message_size, bias=True)) # Concatenation of linear transformation of edge features and node features def m_linear_concat(self, h_v, h_w, e_vw, args): message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() for i_node in range(e_vw.size()[2]): message[:, :, i_node] = torch.cat([self.learn_modules[0](e_vw[:, :, i_node]), self.learn_modules[1](h_w[:, :, i_node])], 1) return message def init_linear_concat(self): edge_feature_size = self.args['edge_feature_size'] node_feature_size = self.args['node_feature_size'] message_size = self.args['message_size']/2 self.learn_modules.append(torch.nn.Linear(edge_feature_size, message_size, bias=True)) self.learn_modules.append(torch.nn.Linear(node_feature_size, message_size, bias=True)) # Concatenation of linear transformation of edge features and node features with ReLU def m_linear_concat_relu(self, h_v, h_w, e_vw, args): message = torch.autograd.Variable(torch.zeros(e_vw.size()[0], self.args['message_size'], e_vw.size()[2])) if hasattr(args, 'cuda') and args.cuda: message = message.cuda() # Optimized e_vw_shape = e_vw.shape h_w_shape = h_w.shape e_vw = e_vw.permute([0,2,1]).contiguous().view([-1, e_vw_shape[1]]) h_w = h_w.permute([0,2,1]).contiguous().view([-1, h_w_shape[1]]) e_vw = self.learn_modules[0](e_vw).contiguous().view([e_vw_shape[0], e_vw_shape[2], -1]).permute([0,2,1]) h_w = self.learn_modules[1](h_w).contiguous().view([h_w_shape[0], h_w_shape[2], -1]).permute([0,2,1]) message = torch.cat([e_vw, h_w], dim=1) # for i_node in range(e_vw.size()[2]): # message[:, :, i_node] = torch.cat([self.learn_modules[0](e_vw[:, :, i_node]), self.learn_modules[1](h_w[:, :, i_node])], 1) return message def init_linear_concat_relu(self): edge_feature_size = self.args['edge_feature_size'] node_feature_size = self.args['node_feature_size'] message_size = int(self.args['message_size']/2) self.learn_modules.append(torch.nn.Linear(edge_feature_size, message_size, bias=True)) self.learn_modules.append(torch.nn.Linear(node_feature_size, message_size, bias=True)) def main(): pass if __name__ == '__main__': main()
43.900524
141
0.619082
1,216
8,385
4.004112
0.083882
0.035736
0.085438
0.026289
0.814746
0.79236
0.779215
0.75991
0.749641
0.733826
0
0.015542
0.232677
8,385
190
142
44.131579
0.741219
0.147764
0
0.61157
0
0
0.067051
0.003092
0
0
0
0
0
1
0.115702
false
0.008264
0.024793
0.016529
0.231405
0.008264
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
89039bdf92e7ff0b63cfa96c1a91b4110f06609f
121
py
Python
rov/hardware/servo/Servo_Mock.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
9
2017-09-21T22:00:46.000Z
2018-12-26T15:46:40.000Z
rov/hardware/servo/Servo_Mock.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
25
2017-10-06T17:25:51.000Z
2018-04-19T00:51:50.000Z
rov/hardware/servo/Servo_Mock.py
jiena76/X11-Core
95aec844822ab4e53c09accc48ef25d70e9b4f08
[ "MIT" ]
2
2017-10-19T22:41:37.000Z
2018-05-10T20:33:45.000Z
class Servo(object): def __init__(self, pin=12): self.pin = pin def setAngle(self, angle): pass
17.285714
31
0.578512
16
121
4.125
0.6875
0.212121
0
0
0
0
0
0
0
0
0
0.02381
0.305785
121
6
32
20.166667
0.761905
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0.2
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
6
56b0621a19f65f5f7bd999fcb94a5f05a4362ac6
2,176
py
Python
figures/classifier_training.py
mathialo/master_code
3ab986938817f0ee327d4b79b62756abb5cefeda
[ "MIT" ]
2
2019-09-07T12:54:09.000Z
2021-03-06T20:51:23.000Z
figures/classifier_training.py
mathialo/master_code
3ab986938817f0ee327d4b79b62756abb5cefeda
[ "MIT" ]
null
null
null
figures/classifier_training.py
mathialo/master_code
3ab986938817f0ee327d4b79b62756abb5cefeda
[ "MIT" ]
2
2019-09-07T12:54:12.000Z
2022-02-23T05:54:24.000Z
from plotstyle import * parseval_train_acc = np.load("classifier_data/overfit/parseval_train_acc.npy") parseval_val_acc = np.load("classifier_data/overfit/parseval_val_acc.npy") parseval_steps = np.load("classifier_data/overfit/parseval_steps.npy") vanilla_train_acc = np.load("classifier_data/overfit/vanilla_train_acc.npy") vanilla_val_acc = np.load("classifier_data/overfit/vanilla_val_acc.npy") vanilla_steps = np.load("classifier_data/overfit/vanilla_steps.npy") plt.figure(figsize=[6, 4]) plt.plot(parseval_steps, parseval_train_acc) plt.plot(parseval_steps, parseval_val_acc) # plt.xlabel("Iterations") plt.ylim([-5, 110]) plt.legend(["Training accuracy", "Validation accuracy"], loc=4) plt.tight_layout() plt.savefig("overfit_training_acc_parseval.pdf", facecolor='none') # plt.show() plt.figure(figsize=[6, 4]) plt.plot(vanilla_steps, vanilla_train_acc) plt.plot(vanilla_steps, vanilla_val_acc) # plt.xlabel("Iterations") plt.ylim([-5, 110]) plt.legend(["Training accuracy", "Validation accuracy"], loc=4) plt.tight_layout() plt.savefig("overfit_training_acc_vanilla.pdf", facecolor='none') # plt.show() parseval_train_acc = np.load("classifier_data/fit/parseval_train_acc.npy") parseval_val_acc = np.load("classifier_data/fit/parseval_val_acc.npy") parseval_steps = np.load("classifier_data/fit/parseval_steps.npy") vanilla_train_acc = np.load("classifier_data/fit/vanilla_train_acc.npy") vanilla_val_acc = np.load("classifier_data/fit/vanilla_val_acc.npy") vanilla_steps = np.load("classifier_data/fit/vanilla_steps.npy") plt.figure(figsize=[6, 4]) plt.plot(parseval_steps, parseval_train_acc) plt.plot(parseval_steps, parseval_val_acc) # plt.xlabel("Iterations") plt.ylim([-5, 110]) plt.legend(["Training accuracy", "Validation accuracy"], loc=4) plt.tight_layout() plt.savefig("fit_training_acc_parseval.pdf", facecolor='none') # plt.show() plt.figure(figsize=[6, 4]) plt.plot(vanilla_steps, vanilla_train_acc) plt.plot(vanilla_steps, vanilla_val_acc) # plt.xlabel("Iterations") plt.ylim([-5, 110]) plt.legend(["Training accuracy", "Validation accuracy"], loc=4) plt.tight_layout() plt.savefig("fit_training_acc_vanilla.pdf", facecolor='none') # plt.show()
38.857143
78
0.787224
331
2,176
4.897281
0.117825
0.059223
0.118445
0.148057
0.988279
0.988279
0.975941
0.906848
0.869833
0.869833
0
0.013659
0.057904
2,176
56
79
38.857143
0.777073
0.065717
0
0.585366
0
0
0.385185
0.306173
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
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
56bcc34fc03cdb01e58123cd0b4d1c82a6505d97
3,053
py
Python
faculdade/sistemaBD/migrations/0001_initial.py
Edu-Santana/AC06-Django
6d189d437046ccda317176de8d525b71659d8025
[ "Apache-2.0" ]
1
2019-05-03T23:30:19.000Z
2019-05-03T23:30:19.000Z
faculdade/sistemaBD/migrations/0001_initial.py
Edu-Santana/AC06-Django
6d189d437046ccda317176de8d525b71659d8025
[ "Apache-2.0" ]
null
null
null
faculdade/sistemaBD/migrations/0001_initial.py
Edu-Santana/AC06-Django
6d189d437046ccda317176de8d525b71659d8025
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.dev20190427181822 on 2019-05-01 17:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Aluno', fields=[ ('RA', models.IntegerField(primary_key=True, serialize=False, verbose_name='Matricula')), ('nome', models.CharField(max_length=50, verbose_name='Nome')), ('sobrenome', models.CharField(max_length=80, verbose_name='Sobrenome')), ('nascimento', models.DateField(verbose_name='Nascimento')), ('CPF', models.IntegerField(max_length=11, unique=True, verbose_name='CPF')), ('endereco', models.CharField(max_length=120, verbose_name='Endereco')), ('complemento', models.CharField(blank=True, max_length=20, null=True, verbose_name='Complemento')), ('telefone', models.IntegerField(max_length=11, verbose_name='Telefone')), ], ), migrations.CreateModel( name='Curso', fields=[ ('idCurso', models.IntegerField(primary_key=True, serialize=False, verbose_name='Curso')), ('nomeCurso', models.CharField(max_length=30, verbose_name='Nome')), ('descricao', models.CharField(max_length=100, verbose_name='Descricao')), ('sigla', models.CharField(max_length=2, verbose_name='Sigla')), ('duracao', models.CharField(max_length=20, verbose_name='Duracao do Curso')), ], ), migrations.CreateModel( name='Professor', fields=[ ('idProf', models.IntegerField(primary_key=True, serialize=False, verbose_name='Identificacao')), ('nome', models.CharField(max_length=50, verbose_name='Nome')), ('sobrenome', models.CharField(max_length=80, verbose_name='Sobrenome')), ('nascimento', models.DateField(verbose_name='Nascimento')), ('CPF', models.IntegerField(max_length=11, unique=True, verbose_name='CPF')), ('endereco', models.CharField(max_length=120, verbose_name='Endereco')), ('complemento', models.CharField(blank=True, max_length=20, null=True, verbose_name='Complemento')), ('telefone', models.IntegerField(max_length=11, verbose_name='Telefone')), ], ), migrations.CreateModel( name='Usuario', fields=[ ('idUsuario', models.IntegerField(primary_key=True, serialize=False, verbose_name='idsite')), ('nome', models.CharField(max_length=50, verbose_name='Nome')), ('sobrenome', models.CharField(max_length=80, verbose_name='Sobrenome')), ('nascimento', models.DateField(verbose_name='Nascimento')), ('CPF', models.IntegerField(max_length=11, unique=True, verbose_name='CPF')), ], ), ]
50.04918
116
0.59679
295
3,053
6.010169
0.237288
0.161309
0.121827
0.162437
0.708404
0.708404
0.708404
0.708404
0.708404
0.579808
0
0.029969
0.256797
3,053
60
117
50.883333
0.751432
0.01998
0
0.641509
1
0
0.137458
0
0
0
0
0
0
1
0
false
0
0.018868
0
0.09434
0
0
0
0
null
0
0
1
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
56c62d0eec08983cc26c7c261d66370ec7ad73b1
5,967
py
Python
libretto/tests/models/oeuvre.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
libretto/tests/models/oeuvre.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
libretto/tests/models/oeuvre.py
adrienlachaize/dezede
584ec30cedab95152e2f95595b7691a04e6736e2
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
import os from django.utils.encoding import force_text from ...models import * from .utils import CommonTestCase PATH = os.path.abspath(os.path.dirname(__file__)) class OeuvreTestCase(CommonTestCase): model = Oeuvre fixtures = [ os.path.join(PATH, 'fixtures/oeuvre.yaml'), ] def setUp(self): # Force save to rebuild slug & tree fields for oeuvre in Oeuvre.objects.all(): oeuvre.save() def test_str(self): def test_oeuvre(pk, n_queries, n_queries_prefetched, result): oeuvre = Oeuvre.objects.get(pk=pk) with self.assertNumQueries(n_queries): self.assertEqual(force_text(oeuvre), result) oeuvre = Oeuvre.objects.prefetch_all().get(pk=pk) with self.assertNumQueries(n_queries_prefetched): self.assertEqual(force_text(oeuvre), result) test_oeuvre(1, 0, 0, 'Carmen') test_oeuvre(2, 1, 1, 'Carmen, Acte I') test_oeuvre(3, 5, 2, 'Carmen, I, № 5 Habanera de Carmen ' '« L’amour est un oiseau rebelle »') test_oeuvre(4, 3, 0, 'Sonate pour violon') test_oeuvre(5, 2, 0, 'Symphonie n° 5') test_oeuvre(6, 0, 0, 'Le Tartuffe, ou l’Imposteur') def test_titre_descr(self): def test_oeuvre(pk, n_queries, n_queries_prefetched, result): oeuvre = Oeuvre.objects.get(pk=pk) with self.assertNumQueries(n_queries): self.assertEqual(oeuvre.titre_descr(), result) oeuvre = Oeuvre.objects.prefetch_all().get(pk=pk) with self.assertNumQueries(n_queries_prefetched): self.assertEqual(oeuvre.titre_descr(), result) test_oeuvre(1, 1, 0, 'Carmen, opéra') test_oeuvre(2, 1, 1, 'Carmen, Acte I') test_oeuvre(3, 5, 2, 'Carmen, I, № 5 Habanera de Carmen ' '« L’amour est un oiseau rebelle »') test_oeuvre(4, 3, 0, 'Sonate pour violon') test_oeuvre(5, 2, 0, 'Symphonie n° 5, op. 107') test_oeuvre(6, 1, 0, 'Le Tartuffe, ou l’Imposteur, ' 'comédie en cinq actes et en vers') def test_titre_html(self): def test_oeuvre(pk, n_queries, n_queries_prefetched, result): oeuvre = Oeuvre.objects.get(pk=pk) with self.assertNumQueries(n_queries): self.assertEqual(oeuvre.titre_html(), result) oeuvre = Oeuvre.objects.prefetch_all().get(pk=pk) with self.assertNumQueries(n_queries_prefetched): self.assertEqual(oeuvre.titre_html(), result) test_oeuvre(1, 0, 0, '<a href="/oeuvres/carmen/"><cite>Carmen</cite></a>') test_oeuvre( 2, 1, 1, '<a href="/oeuvres/carmen/"><cite>Carmen</cite></a>, ' '<a href="/oeuvres/carmen-acte-i/">Acte I</a>') test_oeuvre( 3, 5, 2, '<a href="/oeuvres/carmen/"><cite>Carmen</cite></a>, ' '<a href="/oeuvres/carmen-acte-i/">I</a>, ' '<a href="/oeuvres/carmen-i-' '5-habanera-de-carmen-l-amour-est-un/">' '№ 5 Habanera de Carmen <span title="Incipit">' '« L’amour est un oiseau rebelle »</span></a>') test_oeuvre(4, 3, 0, '<a href="/oeuvres/sonate-pour-violon/">' 'Sonate pour violon</a>') test_oeuvre(5, 2, 0, '<a href="/oeuvres/symphonie-n-5/">Symphonie n° 5</a>') test_oeuvre( 6, 0, 0, '<a href="/oeuvres/le-tartuffe-ou-l-imposteur/">' '<cite>Le Tartuffe, ou l’Imposteur</cite></a>') def test_description_html(self): def test_oeuvre(pk, n_queries, n_queries_prefetched, result): oeuvre = Oeuvre.objects.get(pk=pk) with self.assertNumQueries(n_queries): self.assertEqual(oeuvre.description_html(), result) oeuvre = Oeuvre.objects.prefetch_all().get(pk=pk) with self.assertNumQueries(n_queries_prefetched): self.assertEqual(oeuvre.description_html(), result) test_oeuvre(1, 1, 0, 'opéra') test_oeuvre(2, 0, 0, '') test_oeuvre(3, 0, 0, '') test_oeuvre(4, 0, 0, '') test_oeuvre(5, 0, 0, '<span title="Opus">op. 107</span>') test_oeuvre( 6, 1, 0, 'comédie <span title="Coupe">en cinq actes et en vers</span>') def test_html(self): def test_oeuvre(pk, n_queries, n_queries_prefetched, result): oeuvre = Oeuvre.objects.get(pk=pk) with self.assertNumQueries(n_queries): self.assertEqual(oeuvre.html(), result) oeuvre = Oeuvre.objects.prefetch_all().get(pk=pk) with self.assertNumQueries(n_queries_prefetched): self.assertEqual(oeuvre.html(), result) test_oeuvre( 1, 2, 1, '<a href="/oeuvres/carmen/"><cite>Carmen</cite></a>, opéra') test_oeuvre( 2, 2, 2, '<cite>Carmen</cite>, ' '<a href="/oeuvres/carmen-acte-i/">Acte I</a>') test_oeuvre( 3, 6, 3, '<cite>Carmen</cite>, I, <a href="/oeuvres/carmen-i-' '5-habanera-de-carmen-l-amour-est-un/">' '№ 5 Habanera de Carmen <span title="Incipit">' '« L’amour est un oiseau rebelle »</span></a>') test_oeuvre(4, 4, 1, '<a href="/oeuvres/sonate-pour-violon/">' 'Sonate pour violon</a>') test_oeuvre(5, 3, 1, '<a href="/oeuvres/symphonie-n-5/">Symphonie n° 5</a>, ' '<span title="Opus">op. 107</span>') test_oeuvre( 6, 2, 1, '<a href="/oeuvres/le-tartuffe-ou-l-imposteur/">' '<cite>Le Tartuffe, ou l’Imposteur</cite></a>, ' 'comédie <span title="Coupe">en cinq actes et en vers</span>')
42.621429
76
0.55455
770
5,967
4.205195
0.127273
0.108091
0.05559
0.077208
0.847437
0.822112
0.756949
0.756949
0.746757
0.715565
0
0.0266
0.300654
5,967
139
77
42.928058
0.744548
0.006704
0
0.560976
0
0
0.279494
0.119325
0
0
0
0
0.162602
1
0.089431
false
0
0.03252
0
0.146341
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
56d39a20c40f0ca354eb48826137e6a512632790
35
py
Python
14_pr4_sum_list.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
4
2021-05-27T05:06:09.000Z
2021-06-12T17:12:47.000Z
14_pr4_sum_list.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
14_pr4_sum_list.py
AmreshTripathy/Python
e86420fef7f52da393be5b50ac2f13bddfeb3306
[ "Apache-2.0" ]
null
null
null
a = [10, 13, 9, 14] print (sum(a))
17.5
20
0.485714
8
35
2.125
0.875
0
0
0
0
0
0
0
0
0
0
0.259259
0.228571
35
2
21
17.5
0.37037
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
8591ee9f8ee22d9ab5d9ec16ac7ae887298939a2
6,246
py
Python
guillotina_rediscache/tests/test_cache.py
masipcat/guillotina_rediscache
f7f755c86e80663690cbedbef72453f794c2d21a
[ "BSD-2-Clause" ]
2
2019-04-09T20:04:46.000Z
2019-07-09T12:44:12.000Z
guillotina_rediscache/tests/test_cache.py
masipcat/guillotina_rediscache
f7f755c86e80663690cbedbef72453f794c2d21a
[ "BSD-2-Clause" ]
1
2019-03-25T12:31:07.000Z
2019-09-29T17:05:31.000Z
guillotina_rediscache/tests/test_cache.py
masipcat/guillotina_rediscache
f7f755c86e80663690cbedbef72453f794c2d21a
[ "BSD-2-Clause" ]
1
2018-12-10T10:39:05.000Z
2018-12-10T10:39:05.000Z
from guillotina import app_settings from guillotina.component import getUtility from guillotina.tests import mocks from guillotina.tests.utils import create_content from guillotina_rediscache import cache from guillotina_rediscache import serialize from guillotina_rediscache.cache_strategy import RedisCache from guillotina_rediscache.interfaces import CACHE_PREFIX from guillotina_rediscache.interfaces import IRedisChannelUtility import asyncio async def test_cache_set(redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('bar', oid='foo') # make sure it is in redis val = await rcache._redis.get(CACHE_PREFIX + 'root-foo') assert serialize.loads(val) == "bar" # but also in memory assert rcache._memory_cache.get('root-foo') == 'bar' # and api matches.. assert await rcache.get(oid='foo') == 'bar' await cache.close_redis_pool() async def test_cache_delete(redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('bar', oid='foo') # make sure it is in redis assert serialize.loads( await rcache._redis.get(CACHE_PREFIX + 'root-foo')) == "bar" assert rcache._memory_cache.get('root-foo') == 'bar' assert await rcache.get(oid='foo') == 'bar' # now delete await rcache.delete('root-foo') assert await rcache.get(oid='foo') is None await cache.close_redis_pool() async def test_cache_clear(redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('bar', oid='foo') # make sure it is in redis assert serialize.loads( await rcache._redis.get(CACHE_PREFIX + 'root-foo')) == "bar" assert rcache._memory_cache.get('root-foo') == 'bar' assert await rcache.get(oid='foo') == 'bar' await rcache.clear() assert await rcache.get(oid='foo') is None await cache.close_redis_pool() async def test_invalidate_object(redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} content = create_content() trns.modified = {content._p_oid: content} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('foobar', oid=content._p_oid) assert serialize.loads( await rcache._redis.get( CACHE_PREFIX + 'root-' + content._p_oid)) == "foobar" assert rcache._memory_cache.get('root-' + content._p_oid) == 'foobar' assert await rcache.get(oid=content._p_oid) == 'foobar' await rcache.close(invalidate=True) assert await rcache.get(oid=content._p_oid) is None await cache.close_redis_pool() async def test_subscriber_invalidates(redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} content = create_content() trns.modified = {content._p_oid: content} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('foobar', oid=content._p_oid) assert serialize.loads( await rcache._redis.get( CACHE_PREFIX + 'root-' + content._p_oid)) == "foobar" assert rcache._memory_cache.get( 'root-' + content._p_oid) == 'foobar' assert await rcache.get(oid=content._p_oid) == 'foobar' assert 'root-' + content._p_oid in rcache._memory_cache await rcache._redis.publish( app_settings['redis']['updates_channel'], serialize.dumps({ 'tid': 32423, 'keys': ['root-' + content._p_oid] })) await asyncio.sleep(1) # should be enough for pub/sub to finish assert 'root-' + content._p_oid not in rcache._memory_cache await cache.close_redis_pool() async def test_subscriber_ignores_trsn_on_invalidate( redis_container, dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} content = create_content() trns.modified = {content._p_oid: content} rcache = RedisCache(trns, loop=loop) await rcache.clear() await rcache.set('foobar', oid=content._p_oid) assert serialize.loads( await rcache._redis.get( CACHE_PREFIX + 'root-' + content._p_oid)) == "foobar" assert rcache._memory_cache.get('root-' + content._p_oid) == 'foobar' assert await rcache.get(oid=content._p_oid) == 'foobar' assert 'root-' + content._p_oid in rcache._memory_cache utility = getUtility(IRedisChannelUtility) utility.ignore_tid(5555) await rcache._redis.publish( app_settings['redis']['updates_channel'], serialize.dumps({ 'tid': 5555, 'keys': ['root-' + content._p_oid] })) await asyncio.sleep(1) # should be enough for pub/sub to finish # should still be there because we set to ignore this tid assert 'root-' + content._p_oid in rcache._memory_cache # tid should also now be removed from ignored list assert 5555 not in utility._ignored_tids await cache.close_redis_pool() async def test_get_size_of_item(dummy_guillotina, loop): await cache.close_redis_pool() trns = mocks.MockTransaction(mocks.MockTransactionManager()) trns.added = trns.deleted = {} rcache = RedisCache(trns) from guillotina_rediscache.cache_strategy import _default_size import sys assert rcache.get_size(dict(a=1)) == _default_size assert rcache.get_size(1) == sys.getsizeof(1) assert rcache.get_size(dict(state=b'x'*10)) == 10 item = [ 'x'*10, 'x'*10, 'x'*10 ] assert rcache.get_size(item) == sys.getsizeof('x'*10) * 3
35.089888
79
0.696446
808
6,246
5.179455
0.141089
0.08411
0.057826
0.062127
0.805974
0.766308
0.745759
0.745759
0.703465
0.669534
0
0.006897
0.18748
6,246
177
80
35.288136
0.817734
0.048831
0
0.689394
0
0
0.051771
0
0
0
0
0
0.227273
1
0
false
0
0.090909
0
0.090909
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
859477fb72003bbd1decd3c7b23a4652ea2da908
71
py
Python
units/shapes/function.py
doldam0/grapher
5e82dd57be5274ab616839d10b42d2b741f2b081
[ "MIT" ]
null
null
null
units/shapes/function.py
doldam0/grapher
5e82dd57be5274ab616839d10b42d2b741f2b081
[ "MIT" ]
null
null
null
units/shapes/function.py
doldam0/grapher
5e82dd57be5274ab616839d10b42d2b741f2b081
[ "MIT" ]
null
null
null
from units.shapes.shape import Shape class Function(Shape): pass
11.833333
36
0.746479
10
71
5.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.183099
71
5
37
14.2
0.913793
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
85c52a4096c5f363e4aac2cf0ccd845fec4030ca
426
py
Python
opac/models/masters/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
1
2020-11-26T05:25:46.000Z
2020-11-26T05:25:46.000Z
opac/models/masters/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
null
null
null
opac/models/masters/__init__.py
rimphyd/Django-OPAC
d86f2e28fee7f2ec551aeeb98ec67caefc06a3fb
[ "MIT" ]
null
null
null
from opac.models.masters.author import Author # noqa: F401 from opac.models.masters.book import Book # noqa: F401 from opac.models.masters.library import Library # noqa: F401 from opac.models.masters.publisher import Publisher # noqa: F401 from opac.models.masters.stock import Stock # noqa: F401 from opac.models.masters.translator import Translator # noqa: F401 from opac.models.masters.user import User # noqa: F401
53.25
67
0.786385
63
426
5.31746
0.222222
0.167164
0.292537
0.438806
0.519403
0.519403
0
0
0
0
0
0.056757
0.131455
426
7
68
60.857143
0.848649
0.178404
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
a48667c6a2375ee3bb7c1aaa0c327788539b6aec
114,682
py
Python
paper_fig_util/plot_figs.py
AllenInstitute/OpenScope_CA_Analysis
af0f96584c2f8dcd313e1c89b441eb08952e8b18
[ "MIT" ]
null
null
null
paper_fig_util/plot_figs.py
AllenInstitute/OpenScope_CA_Analysis
af0f96584c2f8dcd313e1c89b441eb08952e8b18
[ "MIT" ]
null
null
null
paper_fig_util/plot_figs.py
AllenInstitute/OpenScope_CA_Analysis
af0f96584c2f8dcd313e1c89b441eb08952e8b18
[ "MIT" ]
1
2022-02-17T17:46:53.000Z
2022-02-17T17:46:53.000Z
""" plot_figs.py This script contains functions defining figure panel plotting. Authors: Colleen Gillon Date: January, 2021 Note: this code uses python 3.7. """ import logging import numpy as np import pandas as pd from util import logger_util, plot_util from paper_fig_util import helper_fcts from plot_fcts import behav_plots, corr_plots, misc_plots, seq_plots, \ stim_plots, roi_plots, usi_plots logger = logging.getLogger(__name__) ############################################# def plot_imaging_planes(sesspar, extrapar, imaging_plane_df, figpar): """ plot_roi_tracking(sesspar, extrapar, imaging_plane_df, figpar) From dictionaries, plots imaging planes. Returns figure name and save directory path. Required args: - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - imaging_plane_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "max_projections" (list): pixel intensities of maximum projection for the plane (hei x wid) - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Imaging plane examples" imaging_plane_df = pd.DataFrame.from_dict(imaging_plane_df) ax = roi_plots.plot_imaging_planes( imaging_plane_df, figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_roi_tracking(analyspar, sesspar, extrapar, roi_mask_df, figpar): """ plot_roi_tracking(analyspar, sesspar, extrapar, roi_mask_df, figpar) From dictionaries, plots tracked ROI masks. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - roi_mask_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "max_projections" (list): pixel intensities of maximum projection for the plane (hei x wid) - "registered_roi_mask_idxs" (list): list of mask indices, registered across sessions, for each session (flattened across ROIs) ((sess, hei, wid) x val) - "roi_mask_idxs" (list): list of mask indices for each session, and each ROI (sess x ((ROI, hei, wid) x val)) (not registered) - "roi_mask_shapes" (list): shape into which ROI mask indices index (sess x hei x wid) - "crop_fact" (num): factor by which to crop masks (> 1) - "shift_prop_hei" (float): proportion by which to shift cropped mask center vertically from left edge [0, 1] - "shift_prop_wid" (float): proportion by which to shift cropped mask center horizontally from left edge [0, 1] - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Tracked ROI examples" roi_mask_df = pd.DataFrame.from_dict(roi_mask_df) ax = roi_plots.plot_roi_masks_overlayed_with_proj( roi_mask_df, figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_example_roi_usis(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, chosen_rois_df, figpar): """ plot_gabor_example_roi_usis(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, chosen_rois_info, figpar) From dictionaries, plots traces for example ROIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["seed"] (int): seed - chosen_rois_df (pd.DataFrame in dict format): dataframe with a row for each ROI retained, and the following columns, in addition to the basic sess_df columns: - "target_idxs" (str): index values and significance aimed for - "roi_idxs" (float): ROI index - "roi_idx_percs" (float): ROI index percentile - "roi_ns" (int): ROI number with in its session - "roi_trace_stats" (list): ROI trace stats (split x frames x stat (me, err)) - time_values (list): values for each frame, in seconds - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequences (example ROIs)" chosen_rois_df = pd.DataFrame.from_dict(chosen_rois_df) # identify target idx vals and sigs target_idxs = chosen_rois_df["target_idxs"].unique() target_idx_vals = [float(idx.split("_")[0]) for idx in target_idxs] sorted_target_idxs = [ target_idxs[i] for i in np.argsort(target_idx_vals)[::-1] ] ax = seq_plots.plot_sess_traces( chosen_rois_df, analyspar=analyspar, sesspar=sesspar, figpar=figpar, trace_col="roi_trace_stats", row_col="target_idxs", row_order=sorted_target_idxs, split=idxpar["feature"], title=title, size="small" ) usi_plots.add_USI_boxes(ax, chosen_rois_df, sorted_target_idxs) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_example_roi_usi_sig(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, ex_idx_df, figpar): """ plot_gabor_example_roi_usi_sig(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, ex_idx_df, figpar) From dictionaries, plots traces for example ROIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["seed"] (int): seed - ex_idx_df (pd.DataFrame): dataframe with a row for the example ROI, and the following columns, in addition to the basic sess_df columns: - roi_ns (int): ROI number in session - roi_idxs (int): ROI feature index - roi_idx_percs (float): ROI feature index percentile - rand_idx_binned (list): bin counts for the random ROI indices - bin_edges (list): first and last bin edge - CI_lims (list): confidence interval limits (lo, hi) - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequences: example sig. ROI" ex_idx_df = pd.DataFrame.from_dict(ex_idx_df) ax = usi_plots.plot_ex_roi_hists( ex_idx_df, sesspar=sesspar, permpar=permpar, figpar=figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_roi_usi_distr(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_df, figpar): """ plot_gabor_roi_usi_distr(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_df, figpar) From dictionaries, plots ROI index percentile distributions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["n_bins"] (int): n_bins ["seed"] (int): seed - idx_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - bin_edges (list): first and last bin edge - CI_perc (list): confidence interval percentile limits (lo, hi) - CI_edges (list): confidence interval limit values (lo, hi) - n_pos (int): number of positive ROIs - n_signif_lo (int): number of significant ROIs (low) - n_signif_hi (int): number of significant ROIs (high) - roi_idx_binned (list): bin counts for the ROI indices - rand_idx_binned (list): bin counts for the random ROI indices - perc_idx_binned (list): bin counts for the ROI index percentiles - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequence percentiles" idx_df = pd.DataFrame.from_dict(idx_df) ax = usi_plots.plot_idxs( idx_df, sesspar=sesspar, figpar=figpar, plot="percs", density=True, n_bins=extrapar["n_bins"], title=title, size="small", ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_roi_usi_sig(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, perc_sig_df, figpar): """ plot_gabor_roi_usi_sig(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, perc_sig_df, figpar) From dictionaries, plots percentage of significant ROIs. Returns figure name and save directory path. Required args: - analyspar (AnalysPar): named tuple containing analysis parameters - sesspar (SessPar): named tuple containing session parameters - stimpar (StimPar): named tuple containing stimulus parameters - basepar (BasePar): named tuple containing baseline parameters - idxpar (IdxPar): named tuple containing index parameters - permpar (PermPar): named tuple containing permutation parameters - extrapar (dict): dictionary containing additional analysis parameters ["common_oris"] (bool): whether common orientations are used ["by_mouse"] (bool): whether data is by mouse ["seed"] (int): seed - perc_sig_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - n_pos (int): number of positive ROIs - n_signif_lo (int): number of significant ROIs (low) - n_signif_hi (int): number of significant ROIs (high) - perc_pos_idxs (num): percent positive ROIs (0-100) - perc_pos_idxs_stds (num): bootstrapped standard deviation over percent significant ROIs - perc_pos_idxs_CIs (list): adjusted confidence interval for percent pos. ROIs - perc_pos_idxs_null_CIs (list): adjusted null CI for percent pos. ROIs - perc_pos_idxs_raw_p_vals (num): uncorrected p-value for percent pos. ROIs - perc_pos_idxs_p_vals (num): p-value for percent pos. ROIs, corrected for multiple comparisons and tails for sig in ["lo", "hi"]: for low vs high ROI indices - perc_sig_{sig}_idxs (num): percent significant ROIs (0-100) - perc_sig_{sig}_idxs_stds (num): bootstrapped standard deviation over percent significant ROIs - perc_sig_{sig}_idxs_CIs (list): adjusted CI for percent sig. ROIs - perc_sig_{sig}_idxs_null_CIs (list): adjusted null CI for percent sig. ROIs - perc_sig_{sig}_idxs_raw_p_vals (num): uncorrected p-value for percent sig. ROIs - perc_sig_{sig}_idxs_p_vals (num): p-value for percent sig. ROIs, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequence sig USIs" if extrapar["common_oris"]: title = f"{title} (common oris)".replace("sequence", "seq") perc_sig_df = pd.DataFrame.from_dict(perc_sig_df) ax = usi_plots.plot_perc_sig_usis( perc_sig_df, analyspar=analyspar, permpar=permpar, figpar=figpar, by_mouse=extrapar["by_mouse"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_roi_usi_sig_common_oris(**kwargs): """ plot_gabor_roi_usi_sig_common_oris(**kwargs) From dictionaries, plots percentage of significant ROIs, for data with common orientations. Returns figure name and save directory path. Required args: see plot_gabor_roi_usi_sig() Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ fulldir, savename = plot_gabor_roi_usi_sig(**kwargs) return fulldir, savename ############################################# def plot_pupil_run_responses(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar): """ plot_pupil_run_responses(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar) From dictionaries, plots running and pupil responses. Returns figure name and save directory path. Required args: - analyspar (AnalysPar): named tuple containing analysis parameters - sesspar (SessPar): named tuple containing session parameters - stimpar (StimPar): named tuple containing stimulus parameters - basepar (BasePar): named tuple containing baseline parameters - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split - trace_df (pd.DataFrame): dataframe with one row per session number, and the following columns, in addition to the basic sess_df columns: - run_trace_stats (list): running velocity trace stats (split x frames x stats (me, err)) - run_time_values (list): values for each frame, in seconds (only 0 to stimpar.post, unless split is "by_exp") - pupil_trace_stats (list): pupil diameter trace stats (split x frames x stats (me, err)) - pupil_time_values (list): values for each frame, in seconds (only 0 to stimpar.post, unless split is "by_exp") - figpar (dict): dictionary containing figure parameters """ title = "Running and pupil responses" trace_df = pd.DataFrame.from_dict(trace_df) ax = behav_plots.plot_pupil_run_trace_stats( trace_df, analyspar=analyspar, figpar=figpar, split=extrapar["split"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_pupil_run_block_diffs(analyspar, sesspar, stimpar, permpar, extrapar, block_df, figpar): """ plot_pupil_run_block_diffs(analyspar, sesspar, stimpar, permpar, extrapar, block_df, figpar) From dictionaries, plots running and pupil block response differences. Returns figure name and save directory path. Required args: - analyspar (AnalysPar): named tuple containing analysis parameters - sesspar (SessPar): named tuple containing session parameters - stimpar (StimPar): named tuple containing stimulus parameters - permpar (PermPar): named tuple containing permutation parameters - extrapar (dict): dictionary containing additional analysis parameters ["seed"] (int): seed - block_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - run_block_diffs (list): running velocity differences per block - run_raw_p_vals (float): uncorrected p-value for differences within sessions - run_p_vals (float): p-value for differences within sessions, corrected for multiple comparisons and tails - pupil_block_diffs (list): for pupil diameter differences per block - pupil_raw_p_vals (list): uncorrected p-value for differences within sessions - pupil_p_vals (list): p-value for differences within sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing figure parameters """ title = "Running and pupil block response differences" block_df = pd.DataFrame.from_dict(block_df) ax = behav_plots.plot_pupil_run_block_diffs( block_df, analyspar=analyspar, permpar=permpar, figpar=figpar, title=title, seed=extrapar["seed"], ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_sequences_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar): """ plot_gabor_sequences_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar) From dictionaries, plots Gabor sequences across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split - trace_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - trace_stats (list): trace stats (split x frames x stat (me, err)) - time_values (list): values for each frame, in seconds - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequences" trace_df = pd.DataFrame.from_dict(trace_df) ax = seq_plots.plot_sess_traces( trace_df, analyspar=analyspar, sesspar=sesspar, figpar=figpar, trace_col="trace_stats", row_col="sess_ns", split=extrapar["split"], title=title, size="reg" ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_sequence_diffs_sess123(analyspar, sesspar, stimpar, basepar, permpar, extrapar, diffs_df, figpar): """ plot_gabor_sequence_diffs_sess123(analyspar, sesspar, stimpar, basepar, permpar, extrapar, diffs_df, figpar) From dictionaries, plots Gabor sequences across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split ["seed"] (int): seed - diffs_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - diff_stats (list): split difference stats (me, err) - null_CIs (list): adjusted null CI for split differences - raw_p_vals (float): uncorrected p-value for differences within sessions - p_vals (float): p-value for differences within sessions, corrected for multiple comparisons and tails for session comparisons, e.g. 1v2: - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequence differences" diffs_df = pd.DataFrame.from_dict(diffs_df) ax = seq_plots.plot_sess_data( diffs_df, analyspar=analyspar, sesspar=sesspar, permpar=permpar, figpar=figpar, title=title, wide=True ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_rel_resp_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar): """ plot_gabor_rel_resp_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar) From dictionaries, plots regular and unexpected Gabor responses, relative to session 1. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["rel_sess"] (int): base session ["seed"] (int): seed - rel_resp_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - rel_reg (list): data stats for regular data (me, err) - rel_unexp (list): data stats for unexpected data (me, err) for reg/exp/unexp data types, session comparisons, e.g. 1v2: - {data_type}_raw_p_vals_{}v{} (float): uncorrected p-value for data differences between sessions - {data_type}_p_vals_{}v{} (float): p-value for data between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor ABC vs UG, relative to session 1" rel_resp_df = pd.DataFrame.from_dict(rel_resp_df) ax = seq_plots.plot_rel_resp_data( rel_resp_df, analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, permpar=permpar, figpar=figpar, title=title, small=False, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_tracked_roi_usis_sess123(analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_only_df, figpar): """ plot_gabor_tracked_roi_usis_sess123(analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_only_df, figpar) From dictionaries, plots tracked Gabor USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - idx_only_df (pd.DataFrame): dataframe with one row per session, and the following columns, in addition to the basic sess_df columns: - roi_idxs (list): index for each ROI - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Tracked Gabor USIs" idx_only_df = pd.DataFrame.from_dict(idx_only_df) ax = usi_plots.plot_tracked_idxs( idx_only_df, sesspar=sesspar, figpar=figpar, title=title, wide=True ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_tracked_roi_abs_usi_means_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar): """ plot_gabor_tracked_roi_abs_usi_means_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar) From dictionaries, plots statistics for tracked Gabor USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["absolute"] (bool): whether statistics are for absolute USIs ["by_mouse"] (bool): whether data is by mouse ["seed"] (int): seed - idx_stats_df (pd.DataFrame): dataframe with one row per (mouse/)session/line/plane, and the following columns, in addition to the basic sess_df columns: - roi_idxs or abs_roi_idxs (list): USI statistics or absolute USI statistics for session comparisons, e.g. 1v2 (if permpar is not None): - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Means of absolute tracked Gabor USIs" idx_stats_df = pd.DataFrame.from_dict(idx_stats_df) ax = usi_plots.plot_tracked_idx_stats( idx_stats_df, sesspar=sesspar, figpar=figpar, permpar=permpar, absolute=extrapar["absolute"], by_mouse=extrapar["by_mouse"], title=title, wide=True ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_tracked_roi_usi_variances_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar): """ plot_gabor_tracked_roi_usi_variances_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar) From dictionaries, plots variances for tracked Gabor USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["absolute"] (bool): whether statistics are for absolute USIs ["by_mouse"] (bool): whether data is by mouse ["seed"] (int): seed ["stat"] (str): statistic used - idx_stats_df (pd.DataFrame): dataframe with one row per (mouse/)session/line/plane, and the following columns, in addition to the basic sess_df columns: - roi_idxs or abs_roi_idxs (list): USI statistics or absolute USI statistics for session comparisons, e.g. 1v2 (if permpar is not None): - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Variances of tracked Gabor USIs" idx_stats_df = pd.DataFrame.from_dict(idx_stats_df) ax = usi_plots.plot_tracked_idx_stats( idx_stats_df, sesspar=sesspar, figpar=figpar, permpar=permpar, absolute=extrapar["absolute"], by_mouse=extrapar["by_mouse"], bootstr_err=True, title=title, wide=True ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_Dori_decoding_sess123(analyspar, sesspar, stimpar, logregpar, permpar, extrapar, scores_df, figpar): """ plot_gabor_Dori_decoding_sess123(analyspar, sesspar, stimpar, logregpar, permpar, extrapar, scores_df, figpar) From dictionaries, plots Gabor D orientation decoding scores across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - logregpar (dict): dictionary with keys of LogRegPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["n_splits"] (int): number of data splits ["seed"] (int): seed - scores_df (pd.DataFrame): dataframe with logistic regression score statistics, shuffled score confidence intervals, and test set p-values for each line/plane/session, in addition to the basic sess_df columns - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ comp_str = logregpar["comp"].replace("ori", " orientation") title = f"{comp_str} decoding (test set)" scores_df = pd.DataFrame.from_dict(scores_df) ax = misc_plots.plot_decoder_data( scores_df, analyspar=analyspar, sesspar=sesspar, permpar=permpar, figpar=figpar, title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_Uori_decoding_sess123(analyspar, sesspar, stimpar, logregpar, permpar, extrapar, scores_df, figpar): """ plot_gabor_Uori_decoding_sess123(analyspar, sesspar, stimpar, logregpar, permpar, extrapar, scores_df, figpar) From dictionaries, plots Gabor U orientation decoding scores across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - logregpar (dict): dictionary with keys of LogRegPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["n_splits"] (int): number of data splits ["seed"] (int): seed - scores_dfs (pd.DataFrame): dataframe with logistic regression score statistics, shuffled score confidence intervals, and test set p-values for each line/plane/session, in addition to the basic sess_df columns - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ comp_str = logregpar["comp"].replace("ori", " orientation") title = f"{comp_str} decoding (test set)" scores_df = pd.DataFrame.from_dict(scores_df) ax = misc_plots.plot_decoder_data( scores_df, analyspar=analyspar, sesspar=sesspar, permpar=permpar, figpar=figpar, title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_corrs_sess123_comps(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_gabor_corrs_sess123_comps(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar)) From dictionaries, plots ROI USI correlations across sessions for tracked Gabor USIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["consec_only"] (bool): if True, only consecutive sessions are correlated ["corr_type"] (str): type of correlation ("corr" or "R_sqr") ["permute"] (str): type of permutations used ("sess", "tracking", "all") ["seed"] (int): seed ["sig_only"] (bool): if True, only ROIs with significant USIs are retained - idx_corr_df (pd.DataFrame): dataframe with one row per line/plane, and the following columns, in addition to the basic sess_df columns: for session comparisons, e.g. 1v2 - {}v{}{norm_str}_corrs (float): intersession ROI index correlations - {}v{}{norm_str}_corr_stds (float): bootstrapped intersession ROI index correlation standard deviation - {}v{}_null_CIs (list): adjusted null CI for intersession ROI index correlations - {}v{}_raw_p_vals (float): p-value for intersession correlations - {}v{}_p_vals (float): p-value for intersession correlations, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Correlations for Gabor USIs" idx_corr_df = pd.DataFrame.from_dict(idx_corr_df) ax = corr_plots.plot_idx_correlations( idx_corr_df, permpar=permpar, figpar=figpar, permute=extrapar["permute"], corr_type=extrapar["corr_type"], title=title, small=False, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_roi_overlays_sess123(analyspar, sesspar, extrapar, roi_mask_df, figpar): """ plot_roi_overlays_sess123(analyspar, sesspar, extrapar, roi_mask_df, figpar) From dictionaries, plots tracked ROI masks. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - roi_mask_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "registered_roi_mask_idxs" (list): list of mask indices, registered across sessions, for each session (flattened across ROIs) ((sess, hei, wid) x val) - "roi_mask_shapes" (list): shape into which ROI mask indices index (sess x hei x wid) - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Tracked ROI examples (full)" roi_mask_df = pd.DataFrame.from_dict(roi_mask_df) ax = roi_plots.plot_roi_masks_overlayed( roi_mask_df, figpar=figpar, title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_roi_overlays_sess123_enlarged(analyspar, sesspar, extrapar, roi_mask_df, figpar): """ plot_roi_overlays_sess123_enlarged(analyspar, sesspar, extrapar, roi_mask_df, figpar) From dictionaries, plots enlarged tracked ROI masks. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - roi_mask_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "registered_roi_mask_idxs" (list): list of mask indices, registered across sessions, for each session (flattened across ROIs) ((sess, hei, wid) x val) - "roi_mask_shapes" (list): shape into which ROI mask indices index (sess x hei x wid) - "crop_fact" (num): factor by which to crop masks (> 1) - "shift_prop_hei" (float): proportion by which to shift cropped mask center vertically from left edge [0, 1] - "shift_prop_wid" (float): proportion by which to shift cropped mask center horizontally from left edge [0, 1] - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Tracked ROI examples (enlarged)" roi_mask_df = pd.DataFrame.from_dict(roi_mask_df) ax = roi_plots.plot_roi_masks_overlayed( roi_mask_df, figpar=figpar, title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_snrs_sess123(analyspar, sesspar, extrapar, snr_df, figpar): """ plot_snrs_sess123(analyspar, sesspar, extrapar, snr_df, figpar) Plots ROI SNRs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - snr_df (pd.DataFrame in dict format): dataframe with ROI SNRs under "snrs" for each session, in addition to the basic sess_df columns - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "ROI SNRs" snr_df = pd.DataFrame.from_dict(snr_df) ax = misc_plots.plot_snr_sigmeans_nrois( snr_df, figpar=figpar, datatype="snrs", title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_mean_signal_sess123(analyspar, sesspar, extrapar, sig_mean_df, figpar): """ plot_mean_signal_sess123(analyspar, sesspar, extrapar, sig_mean_df, figpar) Plots ROI signal means. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - sig_mean_df (pd.DataFrame in dict format): dataframe with ROI signal means under "signal_means" for each session, in addition to the basic sess_df columns - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Mean ROI signals" sig_mean_df = pd.DataFrame.from_dict(sig_mean_df) ax = misc_plots.plot_snr_sigmeans_nrois( sig_mean_df, figpar=figpar, datatype="signal_means", title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_nrois_sess123(analyspar, sesspar, extrapar, nrois_df, figpar): """ plot_nrois_sess123(analyspar, sesspar, extrapar, nrois_df, figpar) Plots number of ROIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - nrois_df (pd.DataFrame in dict format): dataframe with number of ROIs, in addition to the basic sess_df columns. - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Number of ROIs" nrois_df = pd.DataFrame.from_dict(nrois_df) ax = misc_plots.plot_snr_sigmeans_nrois( nrois_df, figpar=figpar, datatype="nrois", title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_roi_corr_sess123(analyspar, sesspar, extrapar, corr_df, figpar): """ plot_roi_corr_sess123(analyspar, sesspar, extrapar, corr_df, figpar) Plots ROI correlations. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["rolling_win"] (int): window used in rolling mean over individual traces - corr_df (pd.DataFrame in dict format): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - bin_edges (list): first and last bin edge - corrs_binned (list): number of correlation values per bin - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "ROI correlations" corr_df = pd.DataFrame.from_dict(corr_df) ax = misc_plots.plot_roi_correlations( corr_df, figpar=figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_stimulus_onset_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar): """ plot_stimulus_onset_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar) From dictionaries, plots stimulus onset sequences across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split - trace_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - trace_stats (list): trace stats (split x frames x stat (me, err)) - time_values (list): values for each frame, in seconds (only 0 to stimpar.post) - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Stimulus onset sequences" trace_df = pd.DataFrame.from_dict(trace_df) ax = seq_plots.plot_sess_traces( trace_df, analyspar=analyspar, sesspar=sesspar, figpar=figpar, trace_col="trace_stats", row_col="sess_ns", split=extrapar["split"], title=title, size="reg" ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_ex_roi_responses_sess1(analyspar, sesspar, stimpar, basepar, extrapar, ex_traces_df, figpar): """ plot_gabor_ex_roi_responses_sess1(sessions, analyspar, sesspar, stimpar, basepar, extrapar, ex_traces_df, figpar) From dictionaries, plots example ROI responses to Gabor sequences. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["n_ex"] (int): number of example ROIs retained per line/plane ["rolling_win"] (int): window used in rolling mean over individual trial traces ["seed"] (int): seed - ex_traces_df (pd.DataFrame): dataframe with a row for each ROI, and the following columns, in addition to the basic sess_df columns: - time_values (list): values for each frame, in seconds - roi_ns (list): selected ROI number - traces_sm (list): selected ROI sequence traces, smoothed, with dims: seq x frames - trace_stat (list): selected ROI trace mean or median - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Example ROI responses to Gabor sequences" ex_traces_df = pd.DataFrame.from_dict(ex_traces_df) ax = seq_plots.plot_ex_gabor_traces( ex_traces_df, stimpar=stimpar, figpar=figpar, title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_roi_usi_sig_by_mouse(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, perc_sig_df, figpar): """ plot_gabor_roi_usi_sig_by_mouse(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, perc_sig_df, figpar) From dictionaries, plots percentage significant Gabor USIs per mouse. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["by_mouse"] (bool): whether data is by mouse - perc_sig_df (pd.DataFrame): dataframe with one row per mouse/session/line/plane, and the following columns, in addition to the basic sess_df columns: - n_pos (int): number of positive ROIs - n_signif_lo (int): number of significant ROIs (low) - n_signif_hi (int): number of significant ROIs (high) - perc_pos_idxs (num): percent positive ROIs (0-100) - perc_pos_idxs_stds (num): bootstrapped standard deviation over percent significant ROIs - perc_pos_idxs_CIs (list): adjusted confidence interval for percent pos. ROIs - perc_pos_idxs_null_CIs (list): adjusted null CI for percent pos. ROIs - perc_pos_idxs_raw_p_vals (num): uncorrected p-value for percent pos. ROIs - perc_pos_idxs_p_vals (num): p-value for percent pos. ROIs, corrected for multiple comparisons and tails for sig in ["lo", "hi"]: for low vs high ROI indices - perc_sig_{sig}_idxs (num): percent significant ROIs (0-100) - perc_sig_{sig}_idxs_stds (num): bootstrapped standard deviation over percent significant ROIs - perc_sig_{sig}_idxs_CIs (list): adjusted CI for percent sig. ROIs - perc_sig_{sig}_idxs_null_CIs (list): adjusted null CI for percent sig. ROIs - perc_sig_{sig}_idxs_raw_p_vals (num): uncorrected p-value for percent sig. ROIs - perc_sig_{sig}_idxs_p_vals (num): p-value for percent sig. ROIs, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor sequence sig USIs (by mouse)" perc_sig_df = pd.DataFrame.from_dict(perc_sig_df) ax = usi_plots.plot_perc_sig_usis( perc_sig_df, analyspar=analyspar, permpar=permpar, figpar=figpar, by_mouse=extrapar["by_mouse"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_rel_resp_tracked_rois_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar): """ plot_gabor_rel_resp_tracked_rois_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar) From dictionaries, plots regular and unexpected Gabor responses, relative to session 1, for tracked ROIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["rel_sess"]: base session ["seed"] (int): seed - rel_resp_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - rel_reg (list): data stats for regular data (me, err) - rel_unexp (list): data stats for unexpected data (me, err) for reg/exp/unexp data types, session comparisons, e.g. 1v2: - {data_type}_raw_p_vals_{}v{} (float): uncorrected p-value for data differences between sessions - {data_type}_p_vals_{}v{} (float): p-value for data between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Gabor ABC vs UG, relative to session 1\n(tracked ROIs)" rel_resp_df = pd.DataFrame.from_dict(rel_resp_df) ax = seq_plots.plot_rel_resp_data( rel_resp_df, analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, permpar=permpar, figpar=figpar, title=title, small=True ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_tracked_roi_abs_usi_means_sess123_by_mouse( analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_stats_df, figpar): """ plot_gabor_tracked_roi_abs_usi_means_sess123_by_mouse( analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_stats_df, figpar) From dictionaries, plots statistics for tracked Gabor USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["absolute"] (bool): whether statistics are for absolute USIs ["by_mouse"] (bool): whether data is by mouse ["seed"] (int): seed - idx_stats_df (pd.DataFrame): dataframe with one row per (mouse/)session/line/plane, and the following columns, in addition to the basic sess_df columns: - roi_idxs or abs_roi_idxs (list): USI statistics or absolute USI statistics for session comparisons, e.g. 1v2 (if permpar is not None): - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Means of absolute tracked Gabor USIs\n(by mouse)" idx_stats_df = pd.DataFrame.from_dict(idx_stats_df) ax = usi_plots.plot_tracked_idx_stats( idx_stats_df, sesspar=sesspar, figpar=figpar, absolute=extrapar["absolute"], title=title, between_sess_sig=False, by_mouse=extrapar["by_mouse"], wide=False ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_sequences_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar): """ plot_visual_flow_sequences_sess123(analyspar, sesspar, stimpar, basepar, extrapar, trace_df, figpar) From dictionaries, plots visual flow sequences across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split - trace_df (pd.DataFrame): dataframe with a row for each session, and the following columns, in addition to the basic sess_df columns: - trace_stats (list): trace stats (split x frames x stat (me, err)) - time_values (list): values for each frame, in seconds (only 0 to stimpar.post) - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Visual flow sequences" trace_df = pd.DataFrame.from_dict(trace_df) ax = seq_plots.plot_sess_traces( trace_df, analyspar=analyspar, sesspar=sesspar, figpar=figpar, trace_col="trace_stats", row_col="sess_ns", split=extrapar["split"], title=title, size="reg" ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_diffs_sess123(analyspar, sesspar, stimpar, basepar, permpar, extrapar, diffs_df, figpar): """ plot_visual_flow_diffs_sess123(analyspar, sesspar, stimpar, basepar, permpar, extrapar, diffs_df, figpar) From dictionaries, plots visual flow sequences across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["split"] (str): data split ["seed"] (int): seed - diffs_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - diff_stats (list): split difference stats (me, err) - null_CIs (list): adjusted null CI for split differences - raw_p_vals (float): uncorrected p-value for differences within sessions - p_vals (float): p-value for differences within sessions, corrected for multiple comparisons and tails for session comparisons, e.g. 1v2: - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Visual flow sequence differences" diffs_df = pd.DataFrame.from_dict(diffs_df) ax = seq_plots.plot_sess_data( diffs_df, analyspar=analyspar, sesspar=sesspar, permpar=permpar, figpar=figpar, title=title, wide=False ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_rel_resp_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar): """ plot_visual_flow_rel_resp_sess123(analyspar, sesspar, stimpar, permpar, extrapar, rel_resp_df, figpar) From dictionaries, plots expected and unexpected visual flow responses, relative to session 1. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["rel_sess"] (int): base session ["seed"] (int): seed - rel_resp_df (pd.DataFrame): dataframe with one row per session/line/plane, and the following columns, in addition to the basic sess_df columns: - rel_exp (list): data stats for expected data (me, err) - rel_unexp (list): data stats for unexpected data (me, err) for reg/exp/unexp data types, session comparisons, e.g. 1v2: - {data_type}_raw_p_vals_{}v{} (float): uncorrected p-value for data differences between sessions - {data_type}_p_vals_{}v{} (float): p-value for data between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Expected vs unexpected visual flow, relative to session 1" rel_resp_df = pd.DataFrame.from_dict(rel_resp_df) ax = seq_plots.plot_rel_resp_data( rel_resp_df, analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, permpar=permpar, figpar=figpar, title=title, small=True, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_unexp_resp_stimulus_comp_sess1v3(analyspar, sesspar, stimpar, permpar, extrapar, unexp_comp_df, figpar): """ plot_unexp_resp_stimulus_comp_sess1v3(analyspar, sesspar, stimpar, permpar, extrapar, unexp_comp_df, figpar) From dictionaries, plots statistics comparing changes across session in tracked ROI unexpected responses for different stimuli. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["comp_sess"] (list): sessions for which absolute fractional changes were calculated, with [x, y] => |(y - x) / x| ["datatype"] (str): type of data to retrieved ["pop_stats"] (bool): whether population stats were analysed, instead of individual ROI data ["seed"] (int): seed - unexp_comp_df (pd.DataFrame): dataframe with one row per line/plane and one for all line/planes together, and the basic sess_df columns, in addition to, for each stimtype: - stimtype (list): absolute fractional change statistics (me, err) - raw_p_vals (float): uncorrected p-value for data differences between stimulus types - p_vals (float): p-value for data differences between stimulus types, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Unexpected response changes from session 1 to 3" unexp_comp_df = pd.DataFrame.from_dict(unexp_comp_df) ax = stim_plots.plot_stim_data_df( unexp_comp_df, stimpar=stimpar, permpar=permpar, figpar=figpar, pop_stats=extrapar["pop_stats"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_tracked_roi_usis_sess123(analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_only_df, figpar): """ plot_visual_flow_tracked_roi_usis_sess123(analyspar, sesspar, stimpar, basepar, idxpar, extrapar, idx_only_df, figpar) From dictionaries, plots tracked visual flow USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - idx_only_df (pd.DataFrame): dataframe with one row per session, and the following columns, in addition to the basic sess_df columns: - roi_idxs (list): index for each ROI - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Tracked visual flow USIs" idx_only_df = pd.DataFrame.from_dict(idx_only_df) ax = usi_plots.plot_tracked_idxs( idx_only_df, sesspar=sesspar, figpar=figpar, title=title, wide=False ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_tracked_roi_abs_usi_means_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar): """ plot_gabor_tracked_roi_abs_usi_means_sess123( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_stats_df, figpar) From dictionaries, plots statistics for tracked Gabor USIs across sessions. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["absolute"] (bool): whether statistics are for absolute USIs ["by_mouse"] (bool): whether data is by mouse ["seed"] (int): seed - idx_stats_df (pd.DataFrame): dataframe with one row per (mouse/)session/line/plane, and the following columns, in addition to the basic sess_df columns: - roi_idxs or abs_roi_idxs (list): USI statistics or absolute USI statistics for session comparisons, e.g. 1v2 (if permpar is not None): - raw_p_vals_{}v{} (float): uncorrected p-value for differences between sessions - p_vals_{}v{} (float): p-value for differences between sessions, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Means of absolute tracked visual flow USIs" idx_stats_df = pd.DataFrame.from_dict(idx_stats_df) ax = usi_plots.plot_tracked_idx_stats( idx_stats_df, sesspar=sesspar, figpar=figpar, permpar=permpar, absolute=extrapar["absolute"], by_mouse=extrapar["by_mouse"], title=title, wide=False ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_tracked_roi_usis_stimulus_comp_sess1v3(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, usi_comp_df, figpar): """ plot_tracked_roi_usis_stimulus_comp_sess1v3(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, usi_comp_df, figpar) From dictionaries, plots statistics comparing changes across session in tracked USIs for different stimuli. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["comp_sess"] (list): sessions for which absolute fractional changes were calculated, with [x, y] => |(y - x) / x| ["datatype"] (str): type of data to retrieved ["rel_sess"] (int): number of session relative to which data is scaled, for each mouse ["pop_stats"] (bool): whether population stats were analysed, instead of individual ROI data ["seed"] (int): seed - usi_comp_df (pd.DataFrame): dataframe with one row per line/plane and one for all line/planes together, and the basic sess_df columns, in addition to, for each stimtype: - stimtype (list): absolute fractional change statistics (me, err) - raw_p_vals (float): uncorrected p-value for data differences between stimulus types - p_vals (float): p-value for data differences between stimulus types, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "USI changes from session 1 to 3" usi_comp_df = pd.DataFrame.from_dict(usi_comp_df) ax = stim_plots.plot_stim_data_df( usi_comp_df, stimpar=stimpar, permpar=permpar, figpar=figpar, pop_stats=extrapar["pop_stats"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_visual_flow_corrs_sess123_comps(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_visual_flow_corrs_sess123_comps(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) From dictionaries, plots ROI USI correlations across sessions for tracked visual flow USIs. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["consec_only"] (bool): if True, only consecutive sessions are correlated ["corr_type"] (str): type of correlation ("corr" or "R_sqr") ["permute"] (str): type of permutations used ("sess", "tracking", "all") ["seed"] (int): seed ["sig_only"] (bool): if True, only ROIs with significant USIs are retained - idx_corr_df (pd.DataFrame): dataframe with one row per line/plane, and the following columns, in addition to the basic sess_df columns: for session comparisons, e.g. 1v2 - {}v{}{norm_str}_corrs (float): intersession ROI index correlations - {}v{}{norm_str}_corr_stds (float): bootstrapped intersession ROI index correlation standard deviation - {}v{}_null_CIs (list): adjusted null CI for intersession ROI index correlations - {}v{}_raw_p_vals (float): p-value for intersession correlations - {}v{}_p_vals (float): p-value for intersession correlations, corrected for multiple comparisons and tails - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Correlations for visual flow USIs" idx_corr_df = pd.DataFrame.from_dict(idx_corr_df) ax = corr_plots.plot_idx_correlations( idx_corr_df, permpar=permpar, figpar=figpar, permute=extrapar["permute"], corr_type=extrapar["corr_type"], title=title, small=True, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_scatterplots(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar, title=None): """ plot_scatterplots(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) From dictionaries, plots ROI USI correlation scatterplots. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - stimpar (dict): dictionary with keys of StimPar namedtuple - basepar (dict): dictionary with keys of BasePar namedtuple - idxpar (dict): dictionary with keys of IdxPar namedtuple - permpar (dict): dictionary with keys of PermPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters ["permute"] (str): type of permutations used ("sess", "tracking", "all") ["seed"] (int): seed ["sig_only"] (bool): if True, only ROIs with significant USIs are retained - idx_corr_df (pd.DataFrame): dataframe with one row per line/plane, and the following columns, in addition to the basic sess_df columns: for correlation data (normalized if corr_type is "diff_corr") for session comparisons (x, y), e.g. 1v2 - binned_rand_stats (list): number of random correlation values per bin (xs x ys) - corr_data_xs (list): USI values for x - corr_data_ys (list): USI values for y - corrs (float): correlation between session data (x and y) - p_vals (float): p-value for correlation, corrected for multiple comparisons and tails - rand_corr_meds (float): median of the random correlations - raw_p_vals (float): p-value for intersession correlations - regr_coefs (float): regression correlation coefficient (slope) - regr_intercepts (float): regression correlation intercept - x_bin_mids (list): x mid point for each random correlation bin - y_bin_mids (list): y mid point for each random correlation bin - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ idx_corr_df = pd.DataFrame.from_dict(idx_corr_df) ax = corr_plots.plot_idx_corr_scatterplots( idx_corr_df, permpar=permpar, figpar=figpar, permute=extrapar["permute"], title=title, ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_gabor_corr_scatterplots_sess12(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_gabor_corr_scatterplots_sess12(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) Retrieves tracked ROI Gabor USI correlation scatterplot data for sessions 1 and 2. Saves results and parameters relevant to analysis in a dictionary. See plot_scatterplots(). """ title = "Correlation scatterplot for Gabor USIs (session 1 vs 2)" fulldir, savename = plot_scatterplots( analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, basepar=basepar, idxpar=idxpar, permpar=permpar, extrapar=extrapar, idx_corr_df=idx_corr_df, figpar=figpar, title=title ) return fulldir, savename ############################################# def plot_gabor_corr_scatterplots_sess23(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_gabor_corr_scatterplots_sess23(analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) Retrieves tracked ROI Gabor USI correlation scatterplot data for sessions 2 and 3. Saves results and parameters relevant to analysis in a dictionary. See plot_scatterplots(). """ title = "Correlation scatterplot for Gabor USIs (session 2 vs 3)" fulldir, savename = plot_scatterplots( analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, basepar=basepar, idxpar=idxpar, permpar=permpar, extrapar=extrapar, idx_corr_df=idx_corr_df, figpar=figpar, title=title ) return fulldir, savename ############################################# def plot_visual_flow_corr_scatterplots_sess12( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_visual_flow_corr_scatterplots_sess12( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) Retrieves tracked ROI visual flow USI correlation scatterplot data for sessions 1 and 2. Saves results and parameters relevant to analysis in a dictionary. See plot_scatterplots(). """ title = "Correlation scatterplot for visual flow USIs (session 1 vs 2)" fulldir, savename = plot_scatterplots( analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, basepar=basepar, idxpar=idxpar, permpar=permpar, extrapar=extrapar, idx_corr_df=idx_corr_df, figpar=figpar, title=title ) return fulldir, savename ############################################# def plot_visual_flow_corr_scatterplots_sess23( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar): """ plot_visual_flow_corr_scatterplots_sess23( analyspar, sesspar, stimpar, basepar, idxpar, permpar, extrapar, idx_corr_df, figpar) Retrieves tracked ROI visual flow USI correlation scatterplot data for sessions 2 and 3. Saves results and parameters relevant to analysis in a dictionary. See plot_scatterplots(). """ title = "Correlation scatterplot for visual flow USIs (session 2 vs 3)" fulldir, savename = plot_scatterplots( analyspar=analyspar, sesspar=sesspar, stimpar=stimpar, basepar=basepar, idxpar=idxpar, permpar=permpar, extrapar=extrapar, idx_corr_df=idx_corr_df, figpar=figpar, title=title ) return fulldir, savename ############################################# def plot_dendritic_roi_tracking_example(analyspar, sesspar, extrapar, roi_mask_df, figpar): """ plot_dendritic_roi_tracking_example(analyspar, sesspar, extrapar, roi_mask_df, figpar) From dictionaries, plots tracked ROI masks for different session orderings for an example dendritic session. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - roi_mask_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "roi_mask_shapes" (list): shape into which ROI mask indices index (sess x hei x wid) - "union_n_conflicts" (int): number of conflicts after union for "union", "fewest" and "most" tracked ROIs: - "{}_registered_roi_mask_idxs" (list): list of mask indices, registered across sessions, for each session (flattened across ROIs) ((sess, hei, wid) x val), ordered by {}_sess_ns if "fewest" or "most" - "{}_n_tracked" (int): number of tracked ROIs for "fewest", "most" tracked ROIs: - "{}_sess_ns" (list): ordered session number - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Dendritic ROI tracking example" roi_mask_df = pd.DataFrame.from_dict(roi_mask_df) ax = roi_plots.plot_roi_tracking( roi_mask_df, figpar=figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename ############################################# def plot_somatic_roi_tracking_example(analyspar, sesspar, extrapar, roi_mask_df, figpar): """ plot_somatic_roi_tracking_example(analyspar, sesspar, extrapar, roi_mask_df, figpar) From dictionaries, plots tracked ROI masks for different session orderings for an example somatic session. Returns figure name and save directory path. Required args: - analyspar (dict): dictionary with keys of AnalysPar namedtuple - sesspar (dict): dictionary with keys of SessPar namedtuple - extrapar (dict): dictionary containing additional analysis parameters - roi_mask_df (pd.DataFrame in dict format): dataframe with a row for each mouse, and the following columns, in addition to the basic sess_df columns: - "roi_mask_shapes" (list): shape into which ROI mask indices index (sess x hei x wid) - "union_n_conflicts" (int): number of conflicts after union for "union", "fewest" and "most" tracked ROIs: - "{}_registered_roi_mask_idxs" (list): list of mask indices, registered across sessions, for each session (flattened across ROIs) ((sess, hei, wid) x val), ordered by {}_sess_ns if "fewest" or "most" - "{}_n_tracked" (int): number of tracked ROIs for "fewest", "most" tracked ROIs: - "{}_sess_ns" (list): ordered session number - figpar (dict): dictionary containing the following figure parameter dictionaries ["init"] (dict): dictionary with figure initialization parameters ["save"] (dict): dictionary with figure saving parameters ["dirs"] (dict): dictionary with additional figure parameters Returns: - fulldir (Path): final path of the directory in which the figure is saved - savename (str): name under which the figure is saved """ title = "Somatic ROI tracking example" roi_mask_df = pd.DataFrame.from_dict(roi_mask_df) ax = roi_plots.plot_roi_tracking( roi_mask_df, figpar=figpar, title=title ) fig = ax.reshape(-1)[0].figure savedir, savename = helper_fcts.get_save_path( figpar['fig_panel_analysis'], main_direc=figpar["dirs"]["figdir"] ) fulldir = plot_util.savefig( fig, savename, savedir, log_dir=True, **figpar["save"] ) return fulldir, savename
37.39224
81
0.597722
12,504
114,682
5.335173
0.035269
0.071562
0.070963
0.050127
0.948899
0.941509
0.93181
0.927298
0.921092
0.907991
0
0.004253
0.311112
114,682
3,066
82
37.404436
0.840158
0.634467
0
0.668578
0
0
0.090799
0
0
0
0
0
0
1
0.050459
false
0
0.006881
0
0.107798
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
a4885a1d70c626ba81f73dcf52d2b91416bd4063
57
py
Python
helpers/__init__.py
Untesler/fra641-backend
f7fbb10273d6259fd59c0d8e99b6557af91d405b
[ "MIT" ]
null
null
null
helpers/__init__.py
Untesler/fra641-backend
f7fbb10273d6259fd59c0d8e99b6557af91d405b
[ "MIT" ]
null
null
null
helpers/__init__.py
Untesler/fra641-backend
f7fbb10273d6259fd59c0d8e99b6557af91d405b
[ "MIT" ]
null
null
null
from helpers.generate_responses_dict import gen_res_dict
28.5
56
0.912281
9
57
5.333333
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.070175
57
1
57
57
0.90566
0
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f14d13cd4aea3a5a0ac9351cbea205f1245fd63a
123
py
Python
src/config.py
okunator/Dippa
dcbb7056511dd6f66bcc7b095716c385d0b0a8bb
[ "MIT" ]
13
2021-01-25T07:47:03.000Z
2022-01-20T16:02:51.000Z
src/config.py
okunator/Dippa
dcbb7056511dd6f66bcc7b095716c385d0b0a8bb
[ "MIT" ]
1
2022-02-12T15:03:23.000Z
2022-02-12T15:03:23.000Z
src/config.py
okunator/Dippa
dcbb7056511dd6f66bcc7b095716c385d0b0a8bb
[ "MIT" ]
null
null
null
from omegaconf import OmegaConf from src.settings import EXPERIMENT_YML_PATH CONFIG = OmegaConf.load(EXPERIMENT_YML_PATH)
24.6
44
0.861789
17
123
6
0.588235
0.254902
0.333333
0
0
0
0
0
0
0
0
0
0.097561
123
4
45
30.75
0.918919
0
0
0
0
0
0
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
f187d07367b3f8945373aa1a8131b865a10f1a80
164
py
Python
apps/users/admin.py
LopsanAMO/Testing_
aba48bc2757eaa17cf935a5b0333827daea7c870
[ "MIT" ]
null
null
null
apps/users/admin.py
LopsanAMO/Testing_
aba48bc2757eaa17cf935a5b0333827daea7c870
[ "MIT" ]
3
2020-06-05T17:14:45.000Z
2021-06-10T18:38:51.000Z
apps/users/admin.py
LopsanAMO/Testing_
aba48bc2757eaa17cf935a5b0333827daea7c870
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Address, Social, Client admin.site.register(Address) admin.site.register(Social) admin.site.register(Client)
20.5
43
0.810976
23
164
5.782609
0.478261
0.203008
0.383459
0
0
0
0
0
0
0
0
0
0.091463
164
7
44
23.428571
0.892617
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
74f2136b8ba650be16377a9f484fc2126ab80cb7
134
py
Python
autokey/data/Emacs/m_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
2
2021-05-29T18:11:26.000Z
2021-10-21T20:53:16.000Z
autokey/data/Emacs/m_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
autokey/data/Emacs/m_b.py
Curiosidad-Racional/.config
af5a8901510e4b87dff1be024d3d29987c148f3f
[ "MIT" ]
null
null
null
if store.get_global_value("ctrl-space"): keyboard.send_keys("<ctrl>+<shift>+<left>") else: keyboard.send_keys("<ctrl>+<left>")
33.5
47
0.679104
19
134
4.578947
0.684211
0.275862
0.367816
0.45977
0
0
0
0
0
0
0
0
0.089552
134
4
48
33.5
0.713115
0
0
0
0
0
0.325926
0.155556
0
0
0
0
0
1
0
true
0
0
0
0
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
1
0
0
0
0
0
0
6
740ebe43de235c2cd8a6ff7576e774f93aa84474
322
py
Python
unittests/backend/Ask.py
ttrzcinski/aws_py_listall
84f53853099fe3bc547c7ea14fe16d4adebb2701
[ "MIT" ]
null
null
null
unittests/backend/Ask.py
ttrzcinski/aws_py_listall
84f53853099fe3bc547c7ea14fe16d4adebb2701
[ "MIT" ]
null
null
null
unittests/backend/Ask.py
ttrzcinski/aws_py_listall
84f53853099fe3bc547c7ea14fe16d4adebb2701
[ "MIT" ]
null
null
null
class Ask: @staticmethod def about(): return 'Responsible for communication with AWS though net.' # TODO List all services of given type # TODO Assert presence of wanted service type with given name # TODO Kill service, if exists with given name, where without declared type prefix is a type
32.2
96
0.714286
46
322
5
0.73913
0.078261
0.113043
0
0
0
0
0
0
0
0
0
0.245342
322
9
97
35.777778
0.946502
0.580745
0
0
0
0
0.381679
0
0
0
0
0.111111
0
1
0.25
true
0
0
0.25
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
1
0
0
1
1
0
0
6
746def8cef31c0205accd708facce51c965aebef
10,390
py
Python
tempest/api/workloadmgr/snapshot/test_snapshot_mount.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/workloadmgr/snapshot/test_snapshot_mount.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/workloadmgr/snapshot/test_snapshot_mount.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
import sys import os sys.path.append(os.getcwd()) from tempest.api.workloadmgr import base from tempest import config from tempest import test from oslo_log import log as logging from tempest import tvaultconf from tempest import reporting import time LOG = logging.getLogger(__name__) CONF = config.CONF class WorkloadsTest(base.BaseWorkloadmgrTest): credentials = ['primary'] instances_ids = [] snapshot_ids = [] wid = "" security_group_id = "" volumes_ids = [] @classmethod def setup_clients(cls): super(WorkloadsTest, cls).setup_clients() cls.client = cls.os.wlm_client @test.pre_req({'type':'snapshot_mount'}) @test.attr(type='smoke') @test.idempotent_id('90dfa684-171c-40c7-a195-df53671bec4b') def test_1_snapshot_mount_full(self): reporting.add_test_script(str(__name__) + "_full_snasphot") try: if self.exception != "": LOG.debug("pre req failed") reporting.add_test_step(str(self.exception), tvaultconf.FAIL) raise Exception (str(self.exception)) LOG.debug("pre req completed") global instances_ids global snapshot_ids global wid global security_group_id global volumes_ids global fvm_id global floating_ips_list instances_ids = self.instances_ids snapshot_ids = self.snapshot_ids wid = self.wid volumes_ids = self.volumes_ids security_group_id = self.security_group_id fvm_id = self.fvm_id full_snapshot_id = snapshot_ids[0] floating_ips_list = self.floating_ips_list LOG.debug("mount snasphot of a full snapshot") is_mounted = self.mount_snapshot(wid, full_snapshot_id, fvm_id, mount_cleanup = False) LOG.debug("VALUE OF is_mounted: " + str(is_mounted)) if is_mounted == True: LOG.debug(" mount snapshot with full snapshot is successful") reporting.add_test_step("Verification of mount snapshot with full snapshot", tvaultconf.PASS) else: LOG.debug("mount snapshot with full snapshot is unsuccessful") reporting.add_test_step("Verification of mount snapshot with full snapshot", tvaultconf.FAIL) raise Exception ("Snapshot mount with full_snapshot does not execute correctly") LOG.debug("validate that snapshot is mounted on FVM") ssh = self.SshRemoteMachineConnectionWithRSAKey(str(floating_ips_list[1]), CONF.compute.fvm_ssh_user) output_list = self.validate_snapshot_mount(ssh).split('\n') ssh.close() flag = 0 for i in output_list: if 'vdb1.mnt' in i: LOG.debug("connect to fvm and check mountpoint is mounted on FVM instance") reporting.add_test_step("Verify that mountpoint mounted is shown on FVM instance", tvaultconf.PASS) flag = 1 if 'File_1.txt' in i: LOG.debug("check that file exists on mounted snapshot") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.PASS) else: LOG.debug("file does not found on FVM instacne") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.FAIL) raise Exception ("file does not found on FVM instacne") else: pass if flag == 0: LOG.debug("mount snapshot with full snapshot is unsuccessful on FVM") reporting.add_test_step("Verify that mountpoint mounted is shown on FVM instance", tvaultconf.FAIL) LOG.debug("file does not found on FVM instacne") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.FAIL) raise Exception ("mountpoint is not showing on FVM instance") else: pass reporting.test_case_to_write() except Exception as e: LOG.error("Exception: " + str(e)) reporting.set_test_script_status(tvaultconf.FAIL) reporting.test_case_to_write() @test.attr(type='smoke') @test.idempotent_id('28fd0710-ef00-42b0-93f0-9dbb3ffc5bee') def test_2_umount_snapshot(self): reporting.add_test_script(str(__name__) + "_umount_snapshot") try: global instances_ids global snapshot_ids global wid global security_group_id global volumes_ids global fvm_id global floating_ips_list instances_ids = instances_ids snapshot_ids = snapshot_ids wid = wid volumes_ids = volumes_ids security_group_id = security_group_id fvm_id = fvm_id unmount_snapshot_id = snapshot_ids[0] floating_ips_list = floating_ips_list LOG.debug("unmount snapshot") is_unmounted = self.unmount_snapshot(unmount_snapshot_id) LOG.debug("VALUE OF is_unmounted: " + str(is_unmounted)) if is_unmounted == True: LOG.debug("unmount snapshot with full snapshot is successful") reporting.add_test_step("Verification of unmount snapshot with full snapshot", tvaultconf.PASS) else: LOG.debug("unmount snapshot with full snapshot is unsuccessful") reporting.add_test_step("Verification of unmount snapshot with full snapshot", tvaultconf.FAIL) raise Exception ("Snapshot unmount with full_snapshot does not execute correctly") LOG.debug("validate that snapshot is unmounted from FVM") ssh = self.SshRemoteMachineConnectionWithRSAKey(str(floating_ips_list[1]), CONF.compute.fvm_ssh_user) output_list = self.validate_snapshot_mount(ssh) ssh.close() if output_list == '': LOG.debug("Unmounting successful") reporting.add_test_step("Unmounting of a full snapshot", tvaultconf.PASS) else: LOG.debug("Unmounting unsuccessful") reporting.add_test_step("Unmounting of a full snapshot", tvaultconf.FAIL) raise Exception("Unmouting of a snapshot failed") reporting.test_case_to_write() except Exception as e: LOG.error("Exception: " + str(e)) reporting.set_test_script_status(tvaultconf.FAIL) reporting.test_case_to_write() @test.attr(type='smoke') @test.idempotent_id('215e0c36-8911-4167-aaea-8c07d21212f3') def test_3_snapshot_mount_incremental(self): reporting.add_test_script(str(__name__) + "_incremental_snasphot") try: global instances_ids global snapshot_ids global wid global security_group_id global volumes_ids global fvm_id global floating_ips_list instances_ids = instances_ids snapshot_ids = snapshot_ids wid = wid volumes_ids = volumes_ids security_group_id = security_group_id fvm_id = fvm_id incremental_snapshot_id = snapshot_ids[1] floating_ips_list = floating_ips_list LOG.debug("mount incremental snapshot") is_mounted = self.mount_snapshot(wid, incremental_snapshot_id, fvm_id) LOG.debug("VALUE OF is_mounted: " + str(is_mounted)) if is_mounted == True: LOG.debug(" mount snapshot with incremental snapshot is successful") reporting.add_test_step("Verification of mount snapshot with incremental snapshot", tvaultconf.PASS) else: LOG.debug("mount snapshot with incremental snapshot is unsuccessful") reporting.add_test_step("Verification of mount snapshot with incremental snapshot", tvaultconf.FAIL) raise Exception ("Snapshot mount with incremental_snapshot does not execute correctly") LOG.debug("validate that snapshot is mounted on FVM") ssh = self.SshRemoteMachineConnectionWithRSAKey(str(floating_ips_list[1]), CONF.compute.fvm_ssh_user) output_list = self.validate_snapshot_mount(ssh).split('\n') ssh.close() flag = 0 for i in output_list: if 'vdb1.mnt' in i: LOG.debug("connect to fvm and check mountpoint is mounted on FVM instance") reporting.add_test_step("Verify that mountpoint mounted is shown on FVM instance", tvaultconf.PASS) flag = 1 if 'File_1.txt' in i: LOG.debug("check that file is exist on mounted snapshot") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.PASS) else: LOG.debug("file does not found on FVM instacne") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.FAIL) raise Exception ("file does not found on FVM instacne") else: pass if flag == 0: LOG.debug("mount snapshot with full snapshot is unsuccessful on FVM") reporting.add_test_step("Verify that mountpoint mounted is shown on FVM instance", tvaultconf.FAIL) LOG.debug("file does not found on FVM instacne") reporting.add_test_step("Verification of file's existance on moutned snapshot", tvaultconf.FAIL) raise Exception ("mountpoint is not showing on FVM instance") else: pass reporting.test_case_to_write() except Exception as e: LOG.error("Exception: " + str(e)) reporting.set_test_script_status(tvaultconf.FAIL) reporting.test_case_to_write()
46.801802
120
0.611646
1,188
10,390
5.137205
0.131313
0.038014
0.057677
0.062264
0.802392
0.791414
0.770768
0.734393
0.698509
0.678519
0
0.01116
0.318672
10,390
221
121
47.013575
0.850968
0
0
0.592965
0
0
0.25604
0.012417
0
0
0
0
0
1
0.020101
false
0.060302
0.045226
0
0.100503
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
6
7487d9ac2da5bb51534cc7d55ac5283df8222811
171
py
Python
code/archs/segmentation/baselines/__init__.py
ThmCuong/IIC-tmp
7029050db45aaec0099dca67b31b613f1e5ecf10
[ "MIT" ]
null
null
null
code/archs/segmentation/baselines/__init__.py
ThmCuong/IIC-tmp
7029050db45aaec0099dca67b31b613f1e5ecf10
[ "MIT" ]
null
null
null
code/archs/segmentation/baselines/__init__.py
ThmCuong/IIC-tmp
7029050db45aaec0099dca67b31b613f1e5ecf10
[ "MIT" ]
null
null
null
# from code.archs.segmentation.baselines.net10a_doersch import * # from code.archs.segmentation.baselines.net10a_isola import * from . import net10a_doersch, net10a_isola
42.75
64
0.830409
22
171
6.272727
0.409091
0.115942
0.188406
0.362319
0.57971
0.57971
0
0
0
0
0
0.051282
0.087719
171
4
65
42.75
0.833333
0.719298
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
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
748dd132a272510f3048e8b249bf15cd63845b22
55,662
py
Python
foundation_public/migrations/0001_initial.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
1
2020-07-16T10:58:23.000Z
2020-07-16T10:58:23.000Z
foundation_public/migrations/0001_initial.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
13
2018-11-30T02:29:39.000Z
2022-03-11T23:35:49.000Z
foundation_public/migrations/0001_initial.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-09 02:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_tenants.postgresql_backend.base import foundation_tenant.utils class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BannedDomain', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=63, unique=True)), ('banned_on', models.DateField(auto_now_add=True, null=True)), ('reason', models.CharField(blank=True, max_length=127, null=True)), ], options={ 'db_table': 'smeg_banned_domains', 'ordering': ('name',), }, ), migrations.CreateModel( name='BannedIP', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address', models.GenericIPAddressField(db_index=True, unique=True)), ('banned_on', models.DateField(auto_now_add=True, null=True)), ('reason', models.CharField(blank=True, max_length=127, null=True)), ], options={ 'db_table': 'smeg_banned_ips', 'ordering': ('address',), }, ), migrations.CreateModel( name='BannedWord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(db_index=True, max_length=63, unique=True)), ('banned_on', models.DateField(auto_now_add=True, null=True)), ('reason', models.CharField(blank=True, max_length=127, null=True)), ], options={ 'db_table': 'smeg_banned_words', 'ordering': ('text',), }, ), migrations.CreateModel( name='CityOption', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, help_text='The name of the City.', max_length=255, null=True, verbose_name='Name')), ], options={ 'verbose_name_plural': 'City Options', 'db_table': 'smeg_city_options', 'verbose_name': 'City Option', }, ), migrations.CreateModel( name='CountryOption', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, help_text='The name of the Country.', max_length=255, null=True, verbose_name='Name')), ], options={ 'verbose_name_plural': 'Country Options', 'db_table': 'smeg_country_options', 'verbose_name': 'Country Option', }, ), migrations.CreateModel( name='ProvinceOption', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, help_text='The name of the Province Option.', max_length=255, null=True, verbose_name='Name')), ('country', models.ForeignKey(blank=True, help_text='The country this Province/state belongs to.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='province_option_country_foundation_public_provinceoption_related', to='foundation_public.CountryOption')), ], options={ 'verbose_name_plural': 'Province Options', 'db_table': 'smeg_province_options', 'verbose_name': 'Province Option', }, ), migrations.CreateModel( name='PublicBrand', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ], options={ 'verbose_name_plural': 'Brands', 'db_table': 'smeg_brands', 'verbose_name': 'Brand', }, ), migrations.CreateModel( name='PublicContactPoint', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('area_served', models.CharField(blank=True, help_text='The geographic area where a service or offered item is provided.', max_length=127, null=True, verbose_name='Area Served')), ('contact_type', models.CharField(blank=True, help_text='A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.', max_length=127, null=True, verbose_name='Contact Type')), ('email', models.EmailField(blank=True, help_text='Email address.', max_length=254, null=True, verbose_name='Email')), ('fax_number', models.CharField(blank=True, help_text='The fax number.', max_length=31, null=True, verbose_name='Fax Number')), ('product_supported', models.CharField(blank=True, help_text='The product or service this support contact point is related to (such as product support for a particular product line). This can be a specific product or product line (e.g. "iPhone") or a general category of products or services (e.g. "smartphones").', max_length=31, null=True, verbose_name='Product Supported')), ('telephone', models.CharField(blank=True, help_text='The telephone number.', max_length=31, null=True, verbose_name='Telephone')), ], options={ 'verbose_name_plural': 'Contact Points', 'db_table': 'smeg_contact_points', 'verbose_name': 'Contact Point', }, ), migrations.CreateModel( name='PublicCountry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('fax_number', models.CharField(blank=True, help_text='The fax number.', max_length=31, null=True, verbose_name='Fax Number')), ('global_location_number', models.CharField(blank=True, help_text='The <a href="http://www.gs1.org/gln">Global Location Number</a> (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', max_length=255, null=True, verbose_name='Global Location Number')), ('has_map', models.URLField(blank=True, help_text='A URL to a map of the place.', null=True, verbose_name='Has Map')), ('isic_v4', models.CharField(blank=True, help_text='The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', max_length=255, null=True, verbose_name='ISIC V4')), ('telephone', models.CharField(blank=True, help_text='The telephone number.', max_length=31, null=True, verbose_name='Telephone')), ], options={ 'verbose_name_plural': 'Countries', 'db_table': 'smeg_countries', 'verbose_name': 'Country', }, ), migrations.CreateModel( name='PublicDomain', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('domain', models.CharField(db_index=True, max_length=253, unique=True)), ('is_primary', models.BooleanField(default=True)), ], options={ 'verbose_name_plural': 'Domains', 'db_table': 'smeg_domains', 'verbose_name': 'Domain', }, ), migrations.CreateModel( name='PublicFileUpload', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('datafile', models.FileField(blank=True, help_text='An file of the upload.', null=True, upload_to='upload', verbose_name='File')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this object.', null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'File Uploads', 'db_table': 'smeg_public_file_uploads', 'verbose_name': 'File Upload', }, ), migrations.CreateModel( name='PublicGeoCoordinate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('address', models.CharField(blank=True, help_text='Physical address of the item.', max_length=255, null=True, verbose_name='Address')), ('address_country', models.CharField(blank=True, help_text='The country. For example, USA. You can also provide the two-letter <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements">ISO 3166-1 alpha-2</a> country code.', max_length=255, null=True, verbose_name='Address Country')), ('elevation', models.FloatField(blank=True, default=0.0, help_text='The elevation of a location (<a href="https://en.wikipedia.org/wiki/World_Geodetic_System">WGS 84</a>).', verbose_name='Elevation')), ('latitude', models.FloatField(blank=True, default=0.0, help_text='The latitude of a location. For example 37.42242 (<a href="https://en.wikipedia.org/wiki/World_Geodetic_System">WGS 84</a>).', verbose_name='Latitude')), ('longitude', models.FloatField(blank=True, default=0.0, help_text='The longitude of a location. For example -122.08585 (<a href="https://en.wikipedia.org/wiki/World_Geodetic_System">WGS 84</a>).', verbose_name='Longitude')), ('postal_code', models.CharField(blank=True, help_text='The postal code. For example, 94043.', max_length=127, null=True, verbose_name='Postal Code')), ], options={ 'verbose_name_plural': 'GeoCoordinates', 'db_table': 'smeg_geocoordinates', 'verbose_name': 'GeoCoordinate', }, ), migrations.CreateModel( name='PublicImageUpload', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('imagefile', models.ImageField(blank=True, help_text='An image of the upload.', null=True, upload_to='upload', verbose_name='Image')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this object.', null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Image Uploads', 'db_table': 'smeg_public_image_uploads', 'verbose_name': 'Image Upload', }, ), migrations.CreateModel( name='PublicLanguage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('image', models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publiclanguage_related', to='foundation_public.PublicImageUpload')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publiclanguage_related', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Languages', 'db_table': 'smeg_languages', 'verbose_name': 'Language', }, ), migrations.CreateModel( name='PublicOpeningHoursSpecification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('closes', models.CharField(blank=True, help_text='The closing hour of the place or service on the given day(s) of the week.', max_length=5, null=True, verbose_name='Closes')), ('day_of_week', models.CharField(blank=True, help_text='The day of the week for which these opening hours are valid.', max_length=2, null=True, verbose_name='Day Of Week')), ('opens', models.CharField(blank=True, help_text='The opening hour of the place or service on the given day(s) of the week.', max_length=5, null=True, verbose_name='Opens')), ('valid_from', models.DateField(blank=True, help_text='The date when the item becomes valid.', null=True, verbose_name='Valid From')), ('valid_through', models.DateField(blank=True, help_text='The end of the validity of offer, price specification, or opening hours data.', null=True, verbose_name='Valid Through')), ('image', models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicopeninghoursspecification_related', to='foundation_public.PublicImageUpload')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicopeninghoursspecification_related', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Opening Hours Specifications', 'db_table': 'smeg_opening_hours_specifications', 'verbose_name': 'Opening Hours Specification', }, ), migrations.CreateModel( name='PublicOrganization', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('schema_name', models.CharField(max_length=63, unique=True, validators=[django_tenants.postgresql_backend.base._check_schema_name])), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('on_trial', models.BooleanField(default=False)), ('paid_until', models.DateField(auto_now_add=True, null=True)), ('is_suspended', models.BooleanField(default=False, help_text='Variable controls if the entire tenant is suspended or not.', verbose_name='Is Suspended')), ('dissolution_date', models.DateField(blank=True, help_text='The date that this organization was dissolved.', null=True, verbose_name='Dissolution Date')), ('duns', models.CharField(blank=True, help_text='The Dun & Bradstreet DUNS number for identifying an organization or business person.', max_length=127, null=True, verbose_name='Additional Name')), ('email', models.EmailField(blank=True, help_text='Email address.', max_length=254, null=True, verbose_name='Email')), ('fax_number', models.CharField(blank=True, help_text='The fax number.', max_length=31, null=True, verbose_name='Fax Number')), ('founding_date', models.DateField(blank=True, help_text='The date that this organization was founded.', null=True, verbose_name='Founding Date')), ('global_location_number', models.CharField(blank=True, help_text='The <a href="http://www.gs1.org/gln">Global Location Number</a> (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', max_length=255, null=True, verbose_name='Global Location Number')), ('isic_v4', models.CharField(blank=True, help_text='The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', max_length=255, null=True, verbose_name='ISIC V4')), ('legal_name', models.CharField(blank=True, help_text='The official name of the organization, e.g. the registered company name.', max_length=255, null=True, verbose_name='Legal Name')), ('naics', models.CharField(blank=True, help_text='The North American Industry Classification System (NAICS) code for a particular organization or business person.', max_length=127, null=True, verbose_name='NAICS')), ('tax_id', models.CharField(blank=True, help_text='The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', max_length=255, null=True, verbose_name='Tax ID')), ('telephone', models.CharField(blank=True, help_text='The telephone number.', max_length=31, null=True, verbose_name='Telephone')), ('vat_id', models.CharField(blank=True, help_text='The Value-added Tax ID of the organization or person.', max_length=255, null=True, verbose_name='Tax ID')), ('how_discovered', models.CharField(blank=True, choices=[('Google search', 'Google search'), ('SMEgurus.com', 'SMEgurus.com'), ('Social media', 'Social media'), ('Other', 'Other')], help_text='The details of how the User discovered our website.', max_length=127, null=True, verbose_name='How did you hear about SME Gurus?')), ('how_many_served', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Up to 50 Entrepreneurs and 10 Advisors'), (2, 'Up to 200 Entrepreneurs and 25 advisors'), (3, 'Up to 400 Entrepreneurs and 50 advisors')], help_text='Pick the choice which best describes how many entrepreneurs are served.', null=True, verbose_name='Which SME Gurus package would you like?')), ('is_tos_signed', models.BooleanField(default=False, verbose_name='Is terms of service signed')), ('twitter_url', models.URLField(blank=True, null=True, verbose_name='Twitter')), ('facebook_url', models.URLField(blank=True, null=True, verbose_name='Facebook')), ('instagram_url', models.URLField(blank=True, null=True, verbose_name='Instagram')), ('linkedin_url', models.URLField(blank=True, null=True, verbose_name='Linkedin')), ('github_url', models.URLField(blank=True, null=True, verbose_name='GitHub')), ('google_plus_url', models.URLField(blank=True, null=True, verbose_name='Google Plus')), ('youtube_url', models.URLField(blank=True, null=True, verbose_name='Instagram')), ('flickr_url', models.URLField(blank=True, null=True, verbose_name='Flickr')), ('pintrest_url', models.URLField(blank=True, null=True, verbose_name='Pintrest')), ('reddit_url', models.URLField(blank=True, null=True, verbose_name='Reddit')), ('soundcloud_url', models.URLField(blank=True, null=True, verbose_name='Soundcloud')), ('is_setup', models.BooleanField(default=False, help_text='Variable controls whether the user profile has been setup.', verbose_name='Is this account setup and ready')), ('learning_preference', models.PositiveSmallIntegerField(choices=[(1, 'Traditional Learning Preference'), (2, 'Blended Learning Preference')], default=2, help_text='Indicates what learning preference to use.', verbose_name='Learning Preference')), ('challenge', models.PositiveSmallIntegerField(choices=[(1, 'Traditional Challenge'), (2, 'Real World Challenge')], default=2, help_text='Indicates what world challenge to use.', verbose_name='Challenge')), ('has_mentors', models.BooleanField(default=True, help_text='Variable controls whether external mentors are allowed in our system.', verbose_name='Has mentors.')), ('has_perks', models.BooleanField(default=True, help_text='Variable controls whether perks are allowed in our system.', verbose_name='Has perks.')), ('time_zone', models.CharField(blank=True, default='America/Toronto', help_text='The timezone this Organization belongs to.', max_length=255, null=True, verbose_name='Timezone')), ('salt', models.CharField(blank=True, default=foundation_tenant.utils.generate_hash, help_text='The unique salt value for this Organization which is used in cryptographic signing.', max_length=127, unique=True, verbose_name='Salt')), ], options={ 'verbose_name_plural': 'Organizations', 'db_table': 'smeg_organizations', 'verbose_name': 'Organization', }, ), migrations.CreateModel( name='PublicOrganizationRegistration', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('schema_name', models.CharField(blank=True, help_text='The official name of the organization, e.g. the registered company name.', max_length=255, null=True, verbose_name='Legal Name')), ('name', models.CharField(blank=True, help_text='The official name of the organization, e.g. the registered company name.', max_length=255, null=True, verbose_name='Legal Name')), ('image', models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicorganizationregistration_related', to='foundation_public.PublicImageUpload')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicorganizationregistration_related', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Organizations Registration', 'db_table': 'smeg_organization_registration', 'verbose_name': 'Organization Registration', }, ), migrations.CreateModel( name='PublicPlace', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('fax_number', models.CharField(blank=True, help_text='The fax number.', max_length=31, null=True, verbose_name='Fax Number')), ('global_location_number', models.CharField(blank=True, help_text='The <a href="http://www.gs1.org/gln">Global Location Number</a> (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', max_length=255, null=True, verbose_name='Global Location Number')), ('has_map', models.URLField(blank=True, help_text='A URL to a map of the place.', null=True, verbose_name='Has Map')), ('isic_v4', models.CharField(blank=True, help_text='The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', max_length=255, null=True, verbose_name='ISIC V4')), ('telephone', models.CharField(blank=True, help_text='The telephone number.', max_length=31, null=True, verbose_name='Telephone')), ], options={ 'verbose_name_plural': 'Places', 'db_table': 'smeg_places', 'verbose_name': 'Place', }, ), migrations.CreateModel( name='PublicPostalAddress', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('last_modified', models.DateTimeField(auto_now=True)), ('alternate_name', models.CharField(blank=True, help_text='An alias for the item.', max_length=255, null=True, verbose_name='Alternate Name')), ('description', models.TextField(blank=True, help_text='A short description of the item.', null=True, verbose_name='Description')), ('main_entity_of_page', models.URLField(blank=True, help_text='Indicates a page for which this thing is the main entity being described.', null=True, verbose_name='Main Entity Of Page')), ('name', models.CharField(blank=True, help_text='The name of the item.', max_length=255, null=True, verbose_name='Name')), ('same_as', models.URLField(blank=True, help_text="URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Freebase page, or official website.", null=True, verbose_name='Same As')), ('url', models.URLField(blank=True, help_text='URL of the item.', null=True, verbose_name='URL')), ('postal_code', models.CharField(blank=True, default='', help_text='The postal code. For example, 94043.', max_length=127, null=True, verbose_name='Postal Code')), ('locality', models.CharField(blank=True, db_index=True, default='', help_text='The locality. For example, Mountain View.', max_length=127, null=True, verbose_name='Address Locality')), ('street_number', models.PositiveSmallIntegerField(blank=True, help_text='The street number.', null=True, verbose_name='Street Number')), ('suffix', models.CharField(blank=True, choices=[('A', 'A'), ('B', 'B'), ('C', 'C'), ('D', 'D'), ('E', 'E'), ('F', 'F'), ('G', 'G'), ('H', 'H'), ('I', 'I'), ('J', 'J'), ('K', 'K'), ('L', 'L'), ('M', 'M'), ('N', 'N'), ('O', 'O'), ('P', 'P'), ('Q', 'Q'), ('R', 'R'), ('S', 'S'), ('T', 'T'), ('U', 'U'), ('V', 'V'), ('W', 'W'), ('X', 'X'), ('Y', 'Y'), ('Z', 'Z'), ('¼', '¼'), ('½', '½'), ('¾', '¾')], help_text='The suffix.', max_length=1, null=True, verbose_name='Suffix')), ('street_name', models.CharField(blank=True, default='', help_text='The street name.', max_length=127, null=True, verbose_name='Street Name')), ('suite_number', models.CharField(blank=True, default='', help_text='The suite #.', max_length=7, null=True, verbose_name='Suite')), ('address_line_2', models.CharField(blank=True, default='', help_text='The address line 1.', max_length=31, null=True, verbose_name='Address Line 2')), ('address_line_3', models.CharField(blank=True, default='', help_text='The address line 3.', max_length=31, null=True, verbose_name='Address Line 3')), ('latitude', models.FloatField(blank=True, default=0.0, help_text='The latitude of a location. For example 37.42242 (<a href="https://en.wikipedia.org/wiki/World_Geodetic_System">WGS 84</a>).', verbose_name='Latitude')), ('longitude', models.FloatField(blank=True, default=0.0, help_text='The longitude of a location. For example -122.08585 (<a href="https://en.wikipedia.org/wiki/World_Geodetic_System">WGS 84</a>).', verbose_name='Longitude')), ('country', models.ForeignKey(blank=True, help_text='The country. For example, USA. You can also provide the two-letter <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements">ISO 3166-1 alpha-2</a> country code.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='postaladdress_country_foundation_public_publicpostaladdress_related', to='foundation_public.CountryOption')), ('image', models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicpostaladdress_related', to='foundation_public.PublicImageUpload')), ('owner', models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicpostaladdress_related', to=settings.AUTH_USER_MODEL)), ('region', models.ForeignKey(blank=True, help_text='The region. For example, CA.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='postaladdress_province_foundation_public_publicpostaladdress_related', to='foundation_public.ProvinceOption')), ], options={ 'verbose_name_plural': 'Postal Addresses', 'db_table': 'smeg_postal_addresses', 'verbose_name': 'Postal Address', }, ), migrations.CreateModel( name='PublicVisitor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('path', models.CharField(help_text='The resource path that was visted.', max_length=1027, verbose_name='Path')), ('ip_address', models.GenericIPAddressField(help_text='The location where the vistor is from.', verbose_name='IP Address')), ('is_suspicious', models.BooleanField(default=False, help_text='Variable indicates whether this visitor has malicious intent.')), ], options={ 'verbose_name_plural': 'Public Visitors', 'db_table': 'smeg_public_visitors', 'verbose_name': 'Public Visitor', }, ), migrations.AddField( model_name='publicplace', name='address', field=models.ForeignKey(blank=True, help_text='Physical address of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_address_foundation_public_publicplace_related', to='foundation_public.PublicPostalAddress'), ), migrations.AddField( model_name='publicplace', name='geo', field=models.ForeignKey(blank=True, help_text='The geo coordinates of the place.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_geo_foundation_public_publicplace_related', to='foundation_public.PublicGeoCoordinate'), ), migrations.AddField( model_name='publicplace', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicplace_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicplace', name='logo', field=models.ForeignKey(blank=True, help_text='An associated logo.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_logo_foundation_public_publicplace_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicplace', name='opening_hours_specification', field=models.ManyToManyField(blank=True, help_text='The hours during which this service or contact is available.', related_name='place_hours_available_foundation_public_publicplace_related', to='foundation_public.PublicOpeningHoursSpecification'), ), migrations.AddField( model_name='publicplace', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicplace_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publicplace', name='photo', field=models.ForeignKey(blank=True, help_text='A photograph of this place.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_photo_foundation_public_publicplace_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicorganization', name='address', field=models.ForeignKey(blank=True, help_text='Physical address of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_address_foundation_public_publicorganization_related', to='foundation_public.PublicPostalAddress'), ), migrations.AddField( model_name='publicorganization', name='brands', field=models.ManyToManyField(blank=True, help_text='The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', related_name='organization_brands_foundation_public_publicorganization_related', to='foundation_public.PublicBrand'), ), migrations.AddField( model_name='publicorganization', name='contact_point', field=models.ForeignKey(blank=True, help_text='A contact point for a person or organization', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_contact_point_foundation_public_publicorganization_related', to='foundation_public.PublicContactPoint'), ), migrations.AddField( model_name='publicorganization', name='founding_location', field=models.ForeignKey(blank=True, help_text='The place where the Organization was founded.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_founding_location_foundation_public_publicorganization_related', to='foundation_public.PublicPlace'), ), migrations.AddField( model_name='publicorganization', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicorganization_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicorganization', name='logo', field=models.ForeignKey(blank=True, help_text='An associated logo.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='organization_logo_foundation_public_publicorganization_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicorganization', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicorganization_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publicorganization', name='users', field=models.ManyToManyField(blank=True, help_text='The users that belong to this Organization.', related_name='organization_users_foundation_public_publicorganization_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publicgeocoordinate', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicgeocoordinate_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicgeocoordinate', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicgeocoordinate_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publicdomain', name='tenant', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='domains', to='foundation_public.PublicOrganization'), ), migrations.AddField( model_name='publiccountry', name='address', field=models.ForeignKey(blank=True, help_text='Physical address of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_address_foundation_public_publiccountry_related', to='foundation_public.PublicPostalAddress'), ), migrations.AddField( model_name='publiccountry', name='geo', field=models.ForeignKey(blank=True, help_text='The geo coordinates of the place.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_geo_foundation_public_publiccountry_related', to='foundation_public.PublicGeoCoordinate'), ), migrations.AddField( model_name='publiccountry', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publiccountry_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publiccountry', name='logo', field=models.ForeignKey(blank=True, help_text='An associated logo.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_logo_foundation_public_publiccountry_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publiccountry', name='opening_hours_specification', field=models.ManyToManyField(blank=True, help_text='The hours during which this service or contact is available.', related_name='place_hours_available_foundation_public_publiccountry_related', to='foundation_public.PublicOpeningHoursSpecification'), ), migrations.AddField( model_name='publiccountry', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publiccountry_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publiccountry', name='photo', field=models.ForeignKey(blank=True, help_text='A photograph of this place.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='place_photo_foundation_public_publiccountry_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publiccontactpoint', name='available_language', field=models.ForeignKey(blank=True, help_text='A language someone may use with the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='public_contact_point_available_language_foundation_public_publiccontactpoint_related', to='foundation_public.PublicLanguage'), ), migrations.AddField( model_name='publiccontactpoint', name='hours_available', field=models.ManyToManyField(blank=True, help_text='The hours during which this service or contact is available.', related_name='public_contact_point_hours_available_foundation_public_publiccontactpoint_related', to='foundation_public.PublicOpeningHoursSpecification'), ), migrations.AddField( model_name='publiccontactpoint', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publiccontactpoint_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publiccontactpoint', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publiccontactpoint_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='publicbrand', name='image', field=models.ForeignKey(blank=True, help_text='An image of the item.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='abstract_public_thing_image_foundation_public_publicbrand_related', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicbrand', name='logo', field=models.ForeignKey(blank=True, help_text='An associated logo.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='brand_logo', to='foundation_public.PublicImageUpload'), ), migrations.AddField( model_name='publicbrand', name='owner', field=models.ForeignKey(blank=True, help_text='The user whom owns this thing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='abstract_public_thing_owner_foundation_public_publicbrand_related', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='cityoption', name='country', field=models.ForeignKey(blank=True, help_text='The country this City belongs to.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='city_country_foundation_public_cityoption_related', to='foundation_public.CountryOption'), ), migrations.AddField( model_name='cityoption', name='province', field=models.ForeignKey(blank=True, help_text='The Province this City belongs to.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='city_province_foundation_public_cityoption_related', to='foundation_public.ProvinceOption'), ), migrations.CreateModel( name='AlphabeticallySortedBannedDomain', fields=[ ], options={ 'verbose_name_plural': 'Alphabetically Sorted Banned Domains', 'proxy': True, 'ordering': ('-name',), 'verbose_name': 'Alphabetically Sorted Banned Domain', }, bases=('foundation_public.banneddomain',), ), migrations.CreateModel( name='AlphabeticallySortedBannedWord', fields=[ ], options={ 'verbose_name_plural': 'Alphabetically Sorted Banned Words', 'proxy': True, 'ordering': ('-text',), 'verbose_name': 'Alphabetically Sorted Banned Word', }, bases=('foundation_public.bannedword',), ), migrations.CreateModel( name='SortedBannedIPByLatestCreationDate', fields=[ ], options={ 'verbose_name_plural': 'Sorted Banned IPs By Latest Creation Date', 'proxy': True, 'ordering': ('-banned_on',), 'verbose_name': 'Sorted Banned IP By Latest Creation Date', }, bases=('foundation_public.bannedip',), ), migrations.CreateModel( name='SortedPublicVisitorsByLatestCreation', fields=[ ], options={ 'verbose_name_plural': 'Sorted Public Visitors by Latest Creation Date', 'proxy': True, 'ordering': ('-created',), 'verbose_name': 'Sorted Public Visitor by Latest Creation Date', }, bases=('foundation_public.publicvisitor',), ), ]
85.765794
488
0.662984
6,666
55,662
5.346985
0.076358
0.062032
0.050837
0.071066
0.814522
0.782426
0.759616
0.719131
0.693432
0.649693
0
0.007749
0.209407
55,662
648
489
85.898148
0.8018
0.001222
0
0.6
1
0.042188
0.375097
0.083143
0
0
0
0
0
1
0
false
0
0.009375
0
0.015625
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
7778296520e479a2964be492aef3629c481ac7c6
5,876
py
Python
tests/request/test_parameter_empty.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
7
2018-12-07T10:08:53.000Z
2021-03-24T07:52:36.000Z
tests/request/test_parameter_empty.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
76
2018-12-07T10:29:48.000Z
2021-11-17T00:54:24.000Z
tests/request/test_parameter_empty.py
Colin-b/pyxelrest
5c8db40d1537d0f9c29acd928ec9519b6bb557ec
[ "MIT" ]
null
null
null
from responses import RequestsMock from tests import loader def test_plain_without_parameter(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { "get": { "operationId": "get_plain_text_without_parameter", "produces": ["text/plain"], "responses": { "200": { "description": "return value", "schema": {"type": "string"}, } }, } } }, }, match_querystring=True, ) generated_functions = loader.load( tmpdir, { "without_parameter": { "open_api": {"definition": "http://test/"}, "formulas": {"dynamic_array": {"lock_excel": True}}, } }, ) responses.add( responses.GET, url="http://test/test", body="string value returned should be truncated so that the following information cannot be seen by user, " "because of the fact that Excel does not allow more than 255 characters in a cell. " "Only the 255 characters will be returned by the user defined functions: YOU CANNOT RECEIVE THIS!!!!!!", match_querystring=True, ) assert ( generated_functions.without_parameter_get_plain_text_without_parameter() == "string value returned should be truncated so that the following information cannot be seen by user, because of the fact that Excel does not allow more than 255 characters in a cell. Only the 255 characters will be returned by the user defined functions: " ) def test_post_without_parameter(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { "post": { "operationId": "post_without_parameter", "responses": { "200": {"description": "POST performed properly"} }, } } }, }, match_querystring=True, ) generated_functions = loader.load( tmpdir, { "without_parameter": { "open_api": {"definition": "http://test/"}, "formulas": {"dynamic_array": {"lock_excel": True}}, } }, ) responses.add( responses.POST, url="http://test/test", json={}, match_querystring=True ) assert generated_functions.without_parameter_post_without_parameter() == [[""]] def test_put_without_parameter(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { "put": { "operationId": "put_without_parameter", "responses": {"200": {"description": "PUT performed properly"}}, } } }, }, match_querystring=True, ) generated_functions = loader.load( tmpdir, { "without_parameter": { "open_api": {"definition": "http://test/"}, "formulas": {"dynamic_array": {"lock_excel": True}}, } }, ) responses.add( responses.PUT, url="http://test/test", json={}, match_querystring=True ) assert generated_functions.without_parameter_put_without_parameter() == [[""]] def test_delete_without_parameter(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { "delete": { "operationId": "delete_without_parameter", "responses": { "200": {"description": "DELETE performed properly"} }, } } }, }, match_querystring=True, ) generated_functions = loader.load( tmpdir, { "without_parameter": { "open_api": {"definition": "http://test/"}, "formulas": {"dynamic_array": {"lock_excel": True}}, } }, ) responses.add( responses.DELETE, url="http://test/test", json={}, match_querystring=True ) assert generated_functions.without_parameter_delete_without_parameter() == [[""]] def test_service_without_sync_does_not_have_sync(responses: RequestsMock, tmpdir): responses.add( responses.GET, url="http://test/", json={ "swagger": "2.0", "paths": { "/test": { "delete": { "operationId": "delete_without_parameter", "responses": { "200": {"description": "DELETE performed properly"} }, } } }, }, match_querystring=True, ) generated_functions = loader.load( tmpdir, { "without_parameter": { "open_api": {"definition": "http://test/"}, "formulas": {"dynamic_array": {"lock_excel": True}}, } }, ) assert not hasattr( generated_functions, "vba_without_parameter_delete_without_parameter" )
31.255319
268
0.477025
469
5,876
5.778252
0.189765
0.141697
0.069742
0.053137
0.860148
0.788561
0.788561
0.783395
0.761255
0.761255
0
0.010511
0.400953
5,876
187
269
31.42246
0.759375
0
0
0.473684
0
0.005848
0.281654
0.028761
0
0
0
0
0.02924
1
0.02924
false
0
0.011696
0
0.040936
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