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
ed146cb9576e4840d4982d0ac23df8efd7434226
15,422
py
Python
tests/test_sort.py
thermokarst-forks/emperor
a93f029548c421cb0ba365b4294f7a5a6b0209ce
[ "Apache-2.0" ]
null
null
null
tests/test_sort.py
thermokarst-forks/emperor
a93f029548c421cb0ba365b4294f7a5a6b0209ce
[ "Apache-2.0" ]
null
null
null
tests/test_sort.py
thermokarst-forks/emperor
a93f029548c421cb0ba365b4294f7a5a6b0209ce
[ "Apache-2.0" ]
1
2019-06-18T05:00:20.000Z
2019-06-18T05:00:20.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, emperor development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE.md, distributed with this software. # ---------------------------------------------------------------------------- from __future__ import division from unittest import TestCase, main from numpy import array from numpy.testing import assert_almost_equal from emperor.sort import (sort_taxa_table_by_pcoa_coords, sort_comparison_filenames) class TopLevelTests(TestCase): def setUp(self): self.otu_headers = ['PC.636', 'PC.635', 'PC.356', 'PC.481', 'PC.354', 'PC.593', 'PC.355', 'PC.607', 'PC.634'] self.otu_table = array( [[0.02739726, 0.04697987, 0.02, 0.04697987, 0.01, 0.02027027, 0.01360544, 0.01342282, 0.02666667], [0.00684932, 0.02013423, 0.02, 0.00671141, 0., 0.00675676, 0., 0., 0.], [0.14383562, 0.27516779, 0.65333333, 0.52348993, 0.38926174, 0.69594595, 0.28571429, 0.0738255, 0.19333333], [0., 0.02013423, 0.03333333, 0.01342282, 0., 0.0472973, 0., 0., 0.], [0.78767123, 0.45637584, 0.22, 0.39597315, 0.41610738, 0.20945946, 0.70068027, 0.89932886, 0.77333333], [0., 0.02013423, 0.01333333, 0.00671141, 0.03355705, 0.00675676, 0., 0., 0.], [0., 0., 0.01333333, 0., 0., 0., 0., 0., 0.], [0.03424658, 0.16107383, 0.02666667, 0.00671141, 0.14765101, 0.01351351, 0., 0.01342282, 0.00666667]]) self.coords = COORDS self.coords_header = ['PC.354', 'PC.356', 'PC.481', 'PC.593', 'PC.355', 'PC.607', 'PC.634', 'PC.636', 'PC.635'] self.coord_fps = [ 'output_data/emperor/bray_curtis_pc_transformed_q1.txt', 'output_data/emperor/bray_curtis_pc_transformed_q10.txt', 'output_data/emperor/bray_curtis_pc_transformed_q11.txt', 'output_data/emperor/bray_curtis_pc_transformed_q12.txt', 'output_data/emperor/bray_curtis_pc_transformed_q13.txt', 'output_data/emperor/bray_curtis_pc_transformed_q14.txt', 'output_data/emperor/bray_curtis_pc_transformed_q15.txt', 'output_data/emperor/bray_curtis_pc_transformed_q16.txt', 'output_data/emperor/bray_curtis_pc_transformed_q17.txt', 'output_data/emperor/bray_curtis_pc_transformed_q18.txt', 'output_data/emperor/bray_curtis_pc_transformed_q19.txt', 'output_data/emperor/bray_curtis_pc_transformed_q2.txt', 'output_data/emperor/bray_curtis_pc_transformed_q20.txt', 'output_data/emperor/bray_curtis_pc_transformed_q21.txt', 'output_data/emperor/bray_curtis_pc_transformed_q22.txt', 'output_data/emperor/bray_curtis_pc_transformed_q23.txt', 'output_data/emperor/bray_curtis_pc_transformed_q24.txt', 'output_data/emperor/bray_curtis_pc_transformed_q25.txt', 'output_data/emperor/bray_curtis_pc_transformed_q26.txt', 'output_data/emperor/bray_curtis_pc_transformed_q27.txt', 'output_data/emperor/bray_curtis_pc_transformed_q28.txt', 'output_data/emperor/bray_curtis_pc_transformed_q29.txt', 'output_data/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data/emperor/bray_curtis_pc_transformed_q4.txt', 'output_data/emperor/bray_curtis_pc_transformed_q5.txt', 'output_data/emperor/bray_curtis_pc_transformed_q6.txt', 'output_data/emperor/bray_curtis_pc_transformed_q7.txt', 'output_data/emperor/bray_curtis_pc_transformed_q8.txt', 'output_data/emperor/bray_curtis_pc_transformed_q9.txt'] self.coord_fps_garbage = [ 'output_data/emperor/bray_qurtis_pc_transformed_q1.txt', 'output_data/emperor/bray_111urtis_q_transformed_q10.txt', 'output_data/emperor/aaaaaaa.txt', 'output_data/emperor/bray_curtis_pc_transformed_q12.txt', 'output_data/emperor/qqq2223_curtis_qc_transformed_q13.txt', 'output_data/emperor/bray_curtis_pc_transformed_q14.txt', 'output_data/emperor/bray_curtis_pc_transformed_reference.' 'txtoutput_data/emperor/bray_curtis_pc_transformed_q15.txt', 'output_data/emperor/bray_curtis_pc_transformed_q16.txt', 'output_data/emperor/bray_curtis_pc_transformed_q17.txt', 'output_data/emperor/bray_curtis_pc_transformed_q18.txt', 'output_data/emperor/bray_curtis_pc_transformed_q19.txt', 'output_data/emperor/bray_curtis_pc_transformed_q2.txt', 'output_data/emperor/boom.txt', 'output_data/emperor/another_file with some characters ' 'and stuff .txt', 'output_data/emperor/some_other_file_that_foo_wants_to_' 'compare.txt', 'output_data/emperor/bray_curtis_pc_transformed_q23.txt', 'output_data/emperor/bray_curtis_pc_transformed_q24.txt', 'output_data/emperor/bray_curtis_pc_transformed_q25.txt', 'output_data/emperor/bray_curtis_pc_transformed_q26.txt', 'output_data/emperor/bray_curtis_pc_transformed_q27.txt', 'output_data/emperor/bray_curtis_pc_transformed_q28.txt', 'output_data/emperor/bray_curtis_pc_transformed_q29.txt', 'output_data/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data/emperor/bray_curtis_pc_transformed_q4.txt', 'output_data/emperor/bray_curtis_pc_transformed_q5.txt', 'output_data/emperor/bray_curtis_pc_transformed_q6.txt', 'output_data/emperor/bray_curtis_pc_transformed_q7.txt', 'output_data/emperor/bray_curtis_pc_transformed_q8.txt', 'output_data/emperor/bray_curtis_pc_transformed_q9.txt'] def test_sort_taxa_table_by_pcoa_coords(self): """Make sure OTU table and coordinates are sorted equally""" # case with shuffled inputs o_headers, o_otu_table = sort_taxa_table_by_pcoa_coords( self.coords_header, self.otu_table, self.otu_headers) self.assertEqual(o_headers, ['PC.354', 'PC.356', 'PC.481', 'PC.593', 'PC.355', 'PC.607', 'PC.634', 'PC.636', 'PC.635']) assert_almost_equal(o_otu_table, OTU_TABLE_A) # case with shuffled inputs and fewer samples o_headers, o_otu_table = sort_taxa_table_by_pcoa_coords( ['PC.354', 'PC.356', 'PC.635'], self.otu_table, self.otu_headers) self.assertEqual(o_headers, ['PC.354', 'PC.356', 'PC.635']) assert_almost_equal(o_otu_table, array( [[0.01, 0.02, 0.04697987], [0., 0.02, 0.02013423], [0.38926174, 0.65333333, 0.27516779], [0., 0.03333333, 0.02013423], [0.41610738, 0.22, 0.45637584], [0.03355705, 0.01333333, 0.02013423], [0., 0.01333333, 0.], [0.14765101, 0.02666667, 0.16107383]])) def test_sort_comparison_filenames_regular(self): """Check filenames are sorted correctly""" # check it correctly sorts the files according to the suffix out_sorted = sort_comparison_filenames(self.coord_fps) self.assertEqual(out_sorted, [ 'output_data/emperor/bray_curtis_pc_transformed_q1.txt', 'output_data/emperor/bray_curtis_pc_transformed_q2.txt', 'output_data/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data/emperor/bray_curtis_pc_transformed_q4.txt', 'output_data/emperor/bray_curtis_pc_transformed_q5.txt', 'output_data/emperor/bray_curtis_pc_transformed_q6.txt', 'output_data/emperor/bray_curtis_pc_transformed_q7.txt', 'output_data/emperor/bray_curtis_pc_transformed_q8.txt', 'output_data/emperor/bray_curtis_pc_transformed_q9.txt', 'output_data/emperor/bray_curtis_pc_transformed_q10.txt', 'output_data/emperor/bray_curtis_pc_transformed_q11.txt', 'output_data/emperor/bray_curtis_pc_transformed_q12.txt', 'output_data/emperor/bray_curtis_pc_transformed_q13.txt', 'output_data/emperor/bray_curtis_pc_transformed_q14.txt', 'output_data/emperor/bray_curtis_pc_transformed_q15.txt', 'output_data/emperor/bray_curtis_pc_transformed_q16.txt', 'output_data/emperor/bray_curtis_pc_transformed_q17.txt', 'output_data/emperor/bray_curtis_pc_transformed_q18.txt', 'output_data/emperor/bray_curtis_pc_transformed_q19.txt', 'output_data/emperor/bray_curtis_pc_transformed_q20.txt', 'output_data/emperor/bray_curtis_pc_transformed_q21.txt', 'output_data/emperor/bray_curtis_pc_transformed_q22.txt', 'output_data/emperor/bray_curtis_pc_transformed_q23.txt', 'output_data/emperor/bray_curtis_pc_transformed_q24.txt', 'output_data/emperor/bray_curtis_pc_transformed_q25.txt', 'output_data/emperor/bray_curtis_pc_transformed_q26.txt', 'output_data/emperor/bray_curtis_pc_transformed_q27.txt', 'output_data/emperor/bray_curtis_pc_transformed_q28.txt', 'output_data/emperor/bray_curtis_pc_transformed_q29.txt']) # if files with garbage are passed in, the sorting should be still # consistent,putting the "garbaged" filenames at the beginning out_sorted = sort_comparison_filenames(self.coord_fps_garbage) self.assertEqual(out_sorted, [ 'output_data/emperor/aaaaaaa.txt', 'output_data/emperor/boom.txt', 'output_data/emperor/another_file with some characters and ' 'stuff .txt', 'output_data/emperor/some_other_file_that_foo_wants_to_' 'compare.txt', 'output_data/emperor/bray_qurtis_pc_transformed_q1.txt', 'output_data/emperor/bray_curtis_pc_transformed_q2.txt', 'output_data/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data/emperor/bray_curtis_pc_transformed_q4.txt', 'output_data/emperor/bray_curtis_pc_transformed_q5.txt', 'output_data/emperor/bray_curtis_pc_transformed_q6.txt', 'output_data/emperor/bray_curtis_pc_transformed_q7.txt', 'output_data/emperor/bray_curtis_pc_transformed_q8.txt', 'output_data/emperor/bray_curtis_pc_transformed_q9.txt', 'output_data/emperor/bray_111urtis_q_transformed_q10.txt', 'output_data/emperor/bray_curtis_pc_transformed_q12.txt', 'output_data/emperor/qqq2223_curtis_qc_transformed_q13.txt', 'output_data/emperor/bray_curtis_pc_transformed_q14.txt', 'output_data/emperor/bray_curtis_pc_transformed_reference.' 'txtoutput_data/emperor/bray_curtis_pc_transformed_q15.txt', 'output_data/emperor/bray_curtis_pc_transformed_q16.txt', 'output_data/emperor/bray_curtis_pc_transformed_q17.txt', 'output_data/emperor/bray_curtis_pc_transformed_q18.txt', 'output_data/emperor/bray_curtis_pc_transformed_q19.txt', 'output_data/emperor/bray_curtis_pc_transformed_q23.txt', 'output_data/emperor/bray_curtis_pc_transformed_q24.txt', 'output_data/emperor/bray_curtis_pc_transformed_q25.txt', 'output_data/emperor/bray_curtis_pc_transformed_q26.txt', 'output_data/emperor/bray_curtis_pc_transformed_q27.txt', 'output_data/emperor/bray_curtis_pc_transformed_q28.txt', 'output_data/emperor/bray_curtis_pc_transformed_q29.txt']) # tricky case with extensions in things that are not the filename out_sorted = sort_comparison_filenames([ 'output_data_q1.txt/emperor/bray_curtis_pc_transformed_q9.txt', 'output_data/emperorq11.txt/bray_curtis_pc_transformed_q2.txt', 'output_data_q44.txt/emperor/bray_curtis_pc_transformed_q11.txt', 'output_dataq-5.txt/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data_q511.txt/emperor/bray_curtis_pc_transformed_q1.txt']) self.assertEqual(out_sorted, [ 'output_data_q511.txt/emperor/bray_curtis_pc_transformed_q1.txt', 'output_data/emperorq11.txt/bray_curtis_pc_transformed_q2.txt', 'output_dataq-5.txt/emperor/bray_curtis_pc_transformed_q3.txt', 'output_data_q1.txt/emperor/bray_curtis_pc_transformed_q9.txt', 'output_data_q44.txt/emperor/bray_curtis_pc_transformed_q11.txt']) # make sure nothing happens when an empty list is passed self.assertEqual(sort_comparison_filenames([]), []) COORDS = array( [[0.280399117569, -0.0060128286014, 0.0234854344148, -0.0468109474823, -0.146624450094, 0.00566979124596, -0.0354299634191, -0.255785794275, -4.84141986706e-09], [0.228820399536, -0.130142097093, -0.287149447883, 0.0864498846421, 0.0442951919304, 0.20604260722, 0.0310003571386, 0.0719920436501, -4.84141986706e-09], [0.0422628480532, -0.0139681511889, 0.0635314615517, -0.346120552134, -0.127813807608, 0.0139350721063, 0.0300206887328, 0.140147849223, -4.84141986706e-09], [0.232872767451, 0.139788385269, 0.322871079774, 0.18334700682, 0.0204661596818, 0.0540589147147, -0.0366250872041, 0.0998235721267, -4.84141986706e-09], [0.170517581885, -0.194113268955, -0.0308965283066, 0.0198086158783, 0.155100062794, -0.279923941712, 0.0576092515759, 0.0242481862127, -4.84141986706e-09], [-0.0913299284215, 0.424147148265, -0.135627421345, -0.057519480907, 0.151363490722, -0.0253935675552, 0.0517306152066, -0.038738217609, -4.84141986706e-09], [-0.349339228244, -0.120787589539, 0.115274502117, 0.0694953933826, -0.0253722182853, 0.067853201946, 0.244447634756, -0.0598827706386, -4.84141986706e-09], [-0.276542163845, -0.144964375408, 0.0666467344429, -0.0677109454288, 0.176070269506, 0.072969390136, -0.229889463523, -0.0465989416581, -4.84141986706e-09], [-0.237661393984, 0.0460527772512, -0.138135814766, 0.159061025229, -0.247484698646, -0.115211468101, -0.112864033263, 0.0647940729676, -4.84141986706e-09]]) OTU_TABLE_A = array( [[0.01, 0.02, 0.04697987, 0.02027027, 0.01360544, 0.01342282, 0.02666667, 0.02739726, 0.04697987], [0., 0.02, 0.00671141, 0.00675676, 0., 0., 0., 0.00684932, 0.02013423], [0.38926174, 0.65333333, 0.52348993, 0.69594595, 0.28571429, 0.0738255, 0.19333333, 0.14383562, 0.27516779], [0., 0.03333333, 0.01342282, 0.0472973, 0., 0., 0., 0., 0.02013423], [0.41610738, 0.22, 0.39597315, 0.20945946, 0.70068027, 0.89932886, 0.77333333, 0.78767123, 0.45637584], [0.03355705, 0.01333333, 0.00671141, 0.00675676, 0., 0., 0., 0., 0.02013423], [0., 0.01333333, 0., 0., 0., 0., 0., 0., 0.], [0.14765101, 0.02666667, 0.00671141, 0.01351351, 0., 0.01342282, 0.00666667, 0.03424658, 0.16107383]]) if __name__ == "__main__": main()
56.284672
79
0.673
1,976
15,422
4.888664
0.144737
0.128364
0.158799
0.271429
0.774431
0.744203
0.724845
0.689855
0.660973
0.638199
0
0.202208
0.206977
15,422
273
80
56.490842
0.587653
0.051939
0
0.594017
0
0
0.487908
0.467356
0
0
0
0
0.038462
1
0.012821
false
0
0.021368
0
0.038462
0
0
0
0
null
0
0
1
0
1
1
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ed3af5da863c0b4b6e780e8aef25e1f7baa4cda7
33
py
Python
qemu/tests/image-fuzzer/qcow2/__init__.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
qemu/tests/image-fuzzer/qcow2/__init__.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
1
2022-03-29T02:30:28.000Z
2022-03-30T03:40:46.000Z
qemu/tests/image-fuzzer/qcow2/__init__.py
hyunjoy/scripts
01114d3627730d695b5ebe61093c719744432ffa
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
from .layout import create_image
16.5
32
0.848485
5
33
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
ed5de5f29f2101b654d02dea2610e6183f8c5fde
34,536
py
Python
silver/tests/api/test_invoice.py
overcastsoftware/silver
f0da52c8e848ec01229d9479171c325eaff79d35
[ "Apache-2.0" ]
null
null
null
silver/tests/api/test_invoice.py
overcastsoftware/silver
f0da52c8e848ec01229d9479171c325eaff79d35
[ "Apache-2.0" ]
null
null
null
silver/tests/api/test_invoice.py
overcastsoftware/silver
f0da52c8e848ec01229d9479171c325eaff79d35
[ "Apache-2.0" ]
1
2018-12-27T05:05:01.000Z
2018-12-27T05:05:01.000Z
# Copyright (c) 2015 Presslabs SRL # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import json from six.moves import range from datetime import timedelta from decimal import Decimal from mock import patch from annoying.functions import get_object_or_None from factory.django import mute_signals from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from django.db.models.signals import pre_save from django.utils import timezone from django.utils.encoding import force_text from django.conf import settings from silver.models import Invoice, Transaction from silver.tests.factories import ( AdminUserFactory, CustomerFactory, ProviderFactory, InvoiceFactory, SubscriptionFactory, TransactionFactory, PaymentMethodFactory ) from silver.tests.utils import build_absolute_test_url PAYMENT_DUE_DAYS = getattr(settings, 'SILVER_DEFAULT_DUE_DAYS', 5) class TestInvoiceEndpoints(APITestCase): def setUp(self): admin_user = AdminUserFactory.create() self.client.force_authenticate(user=admin_user) def test_post_invoice_without_invoice_entries(self): customer = CustomerFactory.create() provider = ProviderFactory.create() SubscriptionFactory.create() url = reverse('invoice-list') provider_url = build_absolute_test_url(reverse('provider-detail', [provider.pk])) customer_url = build_absolute_test_url(reverse('customer-detail', [customer.pk])) data = { 'provider': provider_url, 'customer': customer_url, 'series': "", 'number': "", 'currency': 'RON', 'invoice_entries': [] } response = self.client.post(url, data=data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) invoice = get_object_or_None(Invoice, id=response.data["id"]) self.assertTrue(invoice) self.assertEqual(response.data, { "id": response.data["id"], "series": invoice.series, "number": invoice.number, "provider": provider_url, "customer": customer_url, "archived_provider": '{}', "archived_customer": '{}', "due_date": None, "issue_date": None, "paid_date": None, "cancel_date": None, "sales_tax_name": invoice.sales_tax_name, "sales_tax_percent": str(invoice.sales_tax_percent), "currency": "RON", "transaction_currency": invoice.transaction_currency, "transaction_xe_rate": None, "transaction_xe_date": invoice.transaction_xe_date, "state": invoice.state, "proforma": None, "invoice_entries": [], "pdf_url": None, "total": invoice.total, "total_in_transaction_currency": invoice.total, "transactions": [] }) def test_post_invoice_with_invoice_entries(self): customer = CustomerFactory.create() provider = ProviderFactory.create() SubscriptionFactory.create() url = reverse('invoice-list') provider_url = build_absolute_test_url(reverse('provider-detail', [provider.pk])) customer_url = build_absolute_test_url(reverse('customer-detail', [customer.pk])) data = { 'provider': provider_url, 'customer': customer_url, 'series': None, 'number': None, 'currency': 'RON', 'transaction_xe_rate': 1, 'invoice_entries': [{ "description": "Page views", "unit_price": 10.0, "quantity": 20}] } response = self.client.post(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # TODO: Check the body of the response. There were some problems # related to the invoice_entries list. def test_get_invoices(self): batch_size = 50 InvoiceFactory.create_batch(batch_size) url = reverse('invoice-list') response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_200_OK) response = self.client.get(url + '?page=2') self.assertEqual(response.status_code, status.HTTP_200_OK) @patch('silver.api.serializers.common.settings') def test_get_invoice(self, mocked_settings): InvoiceFactory.reset_sequence(1) TransactionFactory.reset_sequence(1) customer = CustomerFactory.create() invoice = InvoiceFactory.create(customer=customer, state=Invoice.STATES.ISSUED) invoice.generate_pdf() with mute_signals(pre_save): transactions = [ TransactionFactory.create( state=state, invoice=invoice, payment_method=PaymentMethodFactory(customer=customer) ) for state in Transaction.States.as_list() if state not in [Transaction.States.Canceled, Transaction.States.Refunded, Transaction.States.Failed] ] expected_transactions = [{ "id": str(transaction.uuid), "url": build_absolute_test_url(reverse('transaction-detail', [transaction.customer.pk, transaction.uuid])), "customer": build_absolute_test_url(reverse('customer-detail', [transaction.customer.id])), "provider": build_absolute_test_url(reverse('provider-detail', [transaction.provider.id])), "amount": "%.2f" % transaction.amount, "currency": "RON", "state": transaction.state, "proforma": build_absolute_test_url(reverse('proforma-detail', [transaction.proforma.id])), "invoice": build_absolute_test_url(reverse('invoice-detail', [transaction.invoice.id])), "can_be_consumed": transaction.can_be_consumed, "payment_processor": transaction.payment_processor, "payment_method": build_absolute_test_url(reverse('payment-method-detail', [transaction.customer.pk, transaction.payment_method.pk])), "pay_url": (build_absolute_test_url(reverse('payment', ['token'])) if transaction.state == Transaction.States.Initial else None), } for transaction in transactions] with patch('silver.utils.payments._get_jwt_token') as mocked_token: mocked_token.return_value = 'token' url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) for show_pdf_storage_url, pdf_url in [ (True, build_absolute_test_url(invoice.pdf.url)), (False, build_absolute_test_url(reverse('pdf', args=[invoice.pdf.pk]))) ]: mocked_settings.SILVER_SHOW_PDF_STORAGE_URL = show_pdf_storage_url response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_200_OK) expected_response = { "id": invoice.pk, "series": "InvoiceSeries", "number": 1, "provider": build_absolute_test_url(reverse('provider-detail', [invoice.provider.pk])), "customer": build_absolute_test_url(reverse('customer-detail', [invoice.customer.pk])), "archived_provider": '{}', "archived_customer": '{}', "due_date": None, "issue_date": invoice.issue_date.strftime('%Y-%m-%d'), "paid_date": None, "cancel_date": None, "sales_tax_name": "VAT", "sales_tax_percent": '1.00', "currency": "RON", "transaction_currency": invoice.transaction_currency, "transaction_xe_rate": ("%.4f" % invoice.transaction_xe_rate if invoice.transaction_xe_rate else None), "transaction_xe_date": invoice.transaction_xe_date, "state": "issued", "proforma": build_absolute_test_url(reverse('proforma-detail', [invoice.related_document.pk])), "invoice_entries": [], "pdf_url": pdf_url, "total": 0 } for field in expected_response: self.assertEqual(expected_response[field], response.data[field], msg=("Expected %s, actual %s for field %s" % ( expected_response[field], response.data[field], field))) self.assertEqual(len(response.data["transactions"]), len(expected_transactions)) for actual_transaction in response.data["transactions"]: expected_transaction = [ transaction for transaction in expected_transactions if transaction["id"] == actual_transaction["id"] ] self.assertTrue(expected_transaction) expected_transaction = expected_transaction[0] for field in expected_transaction: self.assertEqual( expected_transaction[field], actual_transaction[field], msg=("Expected %s, actual %s for field %s" % ( expected_transaction[field], actual_transaction[field], field) ) ) def test_delete_invoice(self): url = reverse('invoice-detail', kwargs={'pk': 1}) response = self.client.delete(url) self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) self.assertEqual(response.data, {"detail": 'Method "DELETE" not allowed.'}) def test_add_single_invoice_entry(self): invoice = InvoiceFactory.create() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = self.client.post(url, data=json.dumps(entry_data), content_type='application/json') invoice = Invoice.objects.all()[0] total = Decimal(200.0) * Decimal(1 + invoice.sales_tax_percent / 100) self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(response.data, { 'description': 'Page views', 'unit': None, 'quantity': '20.0000', 'unit_price': '10.0000', 'start_date': None, 'end_date': None, 'prorated': False, 'product_code': None, 'total': total, 'total_before_tax': Decimal(200.0) }) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), 1) self.assertEqual(invoice_entries[0], { 'description': 'Page views', 'unit': None, 'quantity': '20.0000', 'unit_price': '10.0000', 'start_date': None, 'end_date': None, 'prorated': False, 'product_code': None, 'total': total, 'total_before_tax': Decimal(200.0) }) def test_try_to_get_invoice_entries(self): url = reverse('invoice-entry-create', kwargs={'document_pk': 1}) response = self.client.get(url) self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) self.assertEqual(response.data, {"detail": 'Method "GET" not allowed.'}) def test_add_multiple_invoice_entries(self): invoice = InvoiceFactory.create() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } invoice = Invoice.objects.all()[0] total = Decimal(200.0) * Decimal(1 + invoice.sales_tax_percent / 100) entries_count = 10 for cnt in range(entries_count): response = self.client.post(url, data=json.dumps(entry_data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(response.data, { 'description': 'Page views', 'unit': None, 'quantity': '20.0000', 'unit_price': '10.0000', 'start_date': None, 'end_date': None, 'prorated': False, 'product_code': None, 'total': total, 'total_before_tax': Decimal(200.0) }) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), entries_count) def test_delete_invoice_entry(self): invoice = InvoiceFactory.create() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } entries_count = 10 for cnt in range(entries_count): self.client.post(url, data=json.dumps(entry_data), content_type='application/json') url = reverse('invoice-entry-update', kwargs={'document_pk': invoice.pk, 'entry_pk': list(invoice._entries)[0].pk}) response = self.client.delete(url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), entries_count - 1) def test_add_invoice_entry_in_issued_state(self): invoice = InvoiceFactory.create() invoice.issue() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = self.client.post(url, data=json.dumps(entry_data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) msg = 'Invoice entries can be added only when the invoice is in draft state.' self.assertEqual(response.data, {'detail': msg}) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), 0) def test_add_invoice_entry_in_canceled_state(self): invoice = InvoiceFactory.create() invoice.issue() invoice.cancel() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = self.client.post(url, data=json.dumps(entry_data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) msg = 'Invoice entries can be added only when the invoice is in draft state.' self.assertEqual(response.data, {'detail': msg}) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), 0) def test_add_invoice_entry_in_paid_state(self): invoice = InvoiceFactory.create() invoice.issue() invoice.pay() url = reverse('invoice-entry-create', kwargs={'document_pk': invoice.pk}) entry_data = { "description": "Page views", "unit_price": 10.0, "quantity": 20 } response = self.client.post(url, data=json.dumps(entry_data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) msg = 'Invoice entries can be added only when the invoice is in draft state.' self.assertEqual(response.data, {'detail': msg}) url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) response = self.client.get(url) invoice_entries = response.data.get('invoice_entries', None) self.assertEqual(len(invoice_entries), 0) def test_edit_invoice_in_issued_state(self): invoice = InvoiceFactory.create() invoice.issue() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = self.client.patch(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'non_field_errors': [ 'You cannot edit the document once it is in issued state.']}) def test_edit_invoice_in_canceled_state(self): invoice = InvoiceFactory.create() invoice.issue() invoice.cancel() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = self.client.patch(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'non_field_errors': [ 'You cannot edit the document once it is in canceled state.']}) def test_edit_invoice_in_paid_state(self): invoice = InvoiceFactory.create() invoice.issue() invoice.pay() url = reverse('invoice-detail', kwargs={'pk': invoice.pk}) data = {"description": "New Page views"} response = self.client.patch(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'non_field_errors': [ 'You cannot edit the document once it is in paid state.']}) def test_issue_invoice_with_default_dates(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_200_OK) due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'state': 'issued' } self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertTrue(all(item in list(response.data.items()) for item in list(mandatory_content.items()))) self.assertNotEqual(response.data.get('archived_provider', {}), {}) self.assertNotEqual(response.data.get('archived_customer', {}), {}) def test_issue_invoice_with_custom_issue_date(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued', 'issue_date': '2014-01-01'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') self.assertEqual(response.status_code, status.HTTP_200_OK) due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': '2014-01-01', 'due_date': due_date.strftime('%Y-%m-%d'), 'state': 'issued' } self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertTrue(all(item in list(response.data.items()) for item in list(mandatory_content.items()))) self.assertNotEqual(response.data.get('archived_provider', {}), {}) self.assertNotEqual(response.data.get('archived_customer', {}), {}) def test_issue_invoice_with_custom_issue_date_and_due_date(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'issued', 'issue_date': '2014-01-01', 'due_date': '2014-01-20' } response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK mandatory_content = { 'issue_date': '2014-01-01', 'due_date': '2014-01-20', 'state': 'issued' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in list(mandatory_content.items())) assert response.data.get('archived_provider', {}) != {} assert response.data.get('archived_customer', {}) != {} def test_issue_invoice_when_in_issued_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be issued only if it is in draft state.' } def test_issue_invoice_when_in_paid_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'issued'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be issued only if it is in draft state.' } def test_pay_invoice_with_default_dates(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'paid_date': timezone.now().date().strftime('%Y-%m-%d'), 'state': 'paid' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in list(mandatory_content.items())) def test_pay_invoice_with_provided_date(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'paid', 'paid_date': '2014-05-05' } response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'paid_date': '2014-05-05', 'state': 'paid' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in list(mandatory_content.items())) def test_pay_invoice_when_in_draft_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be paid only if it is in issued state.' } def test_pay_invoice_when_in_paid_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'paid'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be paid only if it is in issued state.' } def test_cancel_invoice_with_default_dates(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'cancel_date': timezone.now().date().strftime('%Y-%m-%d'), 'state': 'canceled' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in list(mandatory_content.items())) def test_cancel_invoice_with_provided_date(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = { 'state': 'canceled', 'cancel_date': '2014-10-10' } response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_200_OK due_date = timezone.now().date() + timedelta(days=PAYMENT_DUE_DAYS) mandatory_content = { 'issue_date': timezone.now().date().strftime('%Y-%m-%d'), 'due_date': due_date.strftime('%Y-%m-%d'), 'cancel_date': '2014-10-10', 'state': 'canceled' } assert response.status_code == status.HTTP_200_OK assert all(item in list(response.data.items()) for item in list(mandatory_content.items())) def test_cancel_invoice_in_draft_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_cancel_invoice_in_canceled_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.cancel() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_cancel_invoice_in_paid_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'canceled'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == { 'detail': 'An invoice can be canceled only if it is in issued state.' } def test_illegal_state_change_when_in_draft_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'} def test_illegal_state_change_when_in_issued_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'} def test_illegal_state_change_when_in_paid_state(self): provider = ProviderFactory.create() customer = CustomerFactory.create() invoice = InvoiceFactory.create(provider=provider, customer=customer) invoice.issue() invoice.pay() url = reverse('invoice-state', kwargs={'pk': invoice.pk}) data = {'state': 'illegal-state'} response = self.client.put(url, data=json.dumps(data), content_type='application/json') assert response.status_code == status.HTTP_403_FORBIDDEN assert response.data == {'detail': 'Illegal state value.'}
42.323529
97
0.589211
3,594
34,536
5.476906
0.082916
0.027433
0.034546
0.048771
0.807763
0.789169
0.764225
0.761329
0.742126
0.712406
0
0.013834
0.294649
34,536
815
98
42.37546
0.794212
0.018908
0
0.67218
0
0
0.147666
0.004341
0
0
0
0.001227
0.129323
1
0.049624
false
0
0.025564
0
0.076692
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
71f0cc4d08ae8c76bb191e5a6df6c8145bb794d4
56,810
py
Python
pybind/nos/v7_1_0/brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
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__ class lldp_neighbor_detail(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module brocade-lldp-ext - based on the path /brocade_lldp_ext_rpc/get-lldp-neighbor-detail/output/lldp-neighbor-detail. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: A list of lldp neighbor interface entries. """ __slots__ = ('_pybind_generated_by', '_path_helper', '_yang_name', '_rest_name', '_extmethods', '__local_interface_name','__local_interface_mac','__local_interface_ifindex','__remote_interface_name','__remote_interface_mac','__remote_management_address','__remote_unnum_interface_mac','__remote_unnum_ip_address','__remote_port_description','__remote_chassis_id','__remote_system_name','__remote_system_description','__dead_interval','__remaining_life','__lldp_pdu_transmitted','__lldp_pdu_received',) _yang_name = 'lldp-neighbor-detail' _rest_name = 'lldp-neighbor-detail' _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.__remote_port_description = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-port-description", rest_name="remote-port-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__remote_interface_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-name", rest_name="remote-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__local_interface_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-name", rest_name="local-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__lldp_pdu_transmitted = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-transmitted", rest_name="lldp-pdu-transmitted", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) self.__lldp_pdu_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-received", rest_name="lldp-pdu-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) self.__remaining_life = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="remaining-life", rest_name="remaining-life", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) self.__remote_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-mac", rest_name="remote-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) self.__remote_management_address = YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-management-address", rest_name="remote-management-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) self.__local_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-mac", rest_name="local-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) self.__dead_interval = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="dead-interval", rest_name="dead-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) self.__remote_chassis_id = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-chassis-id", rest_name="remote-chassis-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__remote_system_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-name", rest_name="remote-system-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__remote_unnum_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-unnum-interface-mac", rest_name="remote-unnum-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) self.__remote_system_description = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-description", rest_name="remote-system-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) self.__local_interface_ifindex = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="local-interface-ifindex", rest_name="local-interface-ifindex", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) self.__remote_unnum_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-unnum-ip-address", rest_name="remote-unnum-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) 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'brocade_lldp_ext_rpc', u'get-lldp-neighbor-detail', u'output', u'lldp-neighbor-detail'] 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'get-lldp-neighbor-detail', u'output', u'lldp-neighbor-detail'] def _get_local_interface_name(self): """ Getter method for local_interface_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_name (string) YANG Description: This indicates the local interface display name. """ return self.__local_interface_name def _set_local_interface_name(self, v, load=False): """ Setter method for local_interface_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_name (string) If this variable is read-only (config: false) in the source YANG file, then _set_local_interface_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_local_interface_name() directly. YANG Description: This indicates the local interface display name. """ parent = getattr(self, "_parent", None) if parent is not None and load is False: raise AttributeError("Cannot set keys directly when" + " within an instantiated list") if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="local-interface-name", rest_name="local-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """local_interface_name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-name", rest_name="local-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__local_interface_name = t if hasattr(self, '_set'): self._set() def _unset_local_interface_name(self): self.__local_interface_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-name", rest_name="local-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_local_interface_mac(self): """ Getter method for local_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_mac (interface:mac-address-type) YANG Description: This indicates the local interface mac. """ return self.__local_interface_mac def _set_local_interface_mac(self, v, load=False): """ Setter method for local_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_mac (interface:mac-address-type) If this variable is read-only (config: false) in the source YANG file, then _set_local_interface_mac is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_local_interface_mac() directly. YANG Description: This indicates the local interface mac. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="local-interface-mac", rest_name="local-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """local_interface_mac must be of a type compatible with interface:mac-address-type""", 'defined-type': "interface:mac-address-type", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-mac", rest_name="local-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True)""", }) self.__local_interface_mac = t if hasattr(self, '_set'): self._set() def _unset_local_interface_mac(self): self.__local_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="local-interface-mac", rest_name="local-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) def _get_local_interface_ifindex(self): """ Getter method for local_interface_ifindex, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_ifindex (uint64) YANG Description: This indicates the local interface IfIndex. """ return self.__local_interface_ifindex def _set_local_interface_ifindex(self, v, load=False): """ Setter method for local_interface_ifindex, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/local_interface_ifindex (uint64) If this variable is read-only (config: false) in the source YANG file, then _set_local_interface_ifindex is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_local_interface_ifindex() directly. YANG Description: This indicates the local interface IfIndex. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="local-interface-ifindex", rest_name="local-interface-ifindex", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """local_interface_ifindex must be of a type compatible with uint64""", 'defined-type': "uint64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="local-interface-ifindex", rest_name="local-interface-ifindex", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True)""", }) self.__local_interface_ifindex = t if hasattr(self, '_set'): self._set() def _unset_local_interface_ifindex(self): self.__local_interface_ifindex = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="local-interface-ifindex", rest_name="local-interface-ifindex", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) def _get_remote_interface_name(self): """ Getter method for remote_interface_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_interface_name (string) YANG Description: This indicates the remote interface display name. """ return self.__remote_interface_name def _set_remote_interface_name(self, v, load=False): """ Setter method for remote_interface_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_interface_name (string) If this variable is read-only (config: false) in the source YANG file, then _set_remote_interface_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_interface_name() directly. YANG Description: This indicates the remote interface display name. """ parent = getattr(self, "_parent", None) if parent is not None and load is False: raise AttributeError("Cannot set keys directly when" + " within an instantiated list") if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-interface-name", rest_name="remote-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_interface_name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-name", rest_name="remote-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__remote_interface_name = t if hasattr(self, '_set'): self._set() def _unset_remote_interface_name(self): self.__remote_interface_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-name", rest_name="remote-interface-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, is_keyval=True, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_remote_interface_mac(self): """ Getter method for remote_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_interface_mac (interface:mac-address-type) YANG Description: This indicates the remote interface mac. """ return self.__remote_interface_mac def _set_remote_interface_mac(self, v, load=False): """ Setter method for remote_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_interface_mac (interface:mac-address-type) If this variable is read-only (config: false) in the source YANG file, then _set_remote_interface_mac is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_interface_mac() directly. YANG Description: This indicates the remote interface mac. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-interface-mac", rest_name="remote-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_interface_mac must be of a type compatible with interface:mac-address-type""", 'defined-type': "interface:mac-address-type", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-mac", rest_name="remote-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True)""", }) self.__remote_interface_mac = t if hasattr(self, '_set'): self._set() def _unset_remote_interface_mac(self): self.__remote_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-interface-mac", rest_name="remote-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) def _get_remote_management_address(self): """ Getter method for remote_management_address, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_management_address (inet:ip-address) YANG Description: This indicates the remote management address. """ return self.__remote_management_address def _set_remote_management_address(self, v, load=False): """ Setter method for remote_management_address, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_management_address (inet:ip-address) If this variable is read-only (config: false) in the source YANG file, then _set_remote_management_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_management_address() directly. YANG Description: This indicates the remote management address. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-management-address", rest_name="remote-management-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_management_address must be of a type compatible with inet:ip-address""", 'defined-type': "inet:ip-address", 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-management-address", rest_name="remote-management-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True)""", }) self.__remote_management_address = t if hasattr(self, '_set'): self._set() def _unset_remote_management_address(self): self.__remote_management_address = YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-management-address", rest_name="remote-management-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) def _get_remote_unnum_interface_mac(self): """ Getter method for remote_unnum_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_unnum_interface_mac (interface:mac-address-type) YANG Description: This indicates the remote unnumbered interface mac. """ return self.__remote_unnum_interface_mac def _set_remote_unnum_interface_mac(self, v, load=False): """ Setter method for remote_unnum_interface_mac, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_unnum_interface_mac (interface:mac-address-type) If this variable is read-only (config: false) in the source YANG file, then _set_remote_unnum_interface_mac is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_unnum_interface_mac() directly. YANG Description: This indicates the remote unnumbered interface mac. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-unnum-interface-mac", rest_name="remote-unnum-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_unnum_interface_mac must be of a type compatible with interface:mac-address-type""", 'defined-type': "interface:mac-address-type", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-unnum-interface-mac", rest_name="remote-unnum-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True)""", }) self.__remote_unnum_interface_mac = t if hasattr(self, '_set'): self._set() def _unset_remote_unnum_interface_mac(self): self.__remote_unnum_interface_mac = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-unnum-interface-mac", rest_name="remote-unnum-interface-mac", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='interface:mac-address-type', is_config=True) def _get_remote_unnum_ip_address(self): """ Getter method for remote_unnum_ip_address, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_unnum_ip_address (inet:ip-address) YANG Description: This indicates the remote unnumbered interface ip address. """ return self.__remote_unnum_ip_address def _set_remote_unnum_ip_address(self, v, load=False): """ Setter method for remote_unnum_ip_address, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_unnum_ip_address (inet:ip-address) If this variable is read-only (config: false) in the source YANG file, then _set_remote_unnum_ip_address is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_unnum_ip_address() directly. YANG Description: This indicates the remote unnumbered interface ip address. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-unnum-ip-address", rest_name="remote-unnum-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_unnum_ip_address must be of a type compatible with inet:ip-address""", 'defined-type': "inet:ip-address", 'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-unnum-ip-address", rest_name="remote-unnum-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True)""", }) self.__remote_unnum_ip_address = t if hasattr(self, '_set'): self._set() def _unset_remote_unnum_ip_address(self): self.__remote_unnum_ip_address = YANGDynClass(base=[RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\\p{N}\\p{L}]+)?'}),RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\\p{N}\\p{L}]+)?'}),], is_leaf=True, yang_name="remote-unnum-ip-address", rest_name="remote-unnum-ip-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='inet:ip-address', is_config=True) def _get_remote_port_description(self): """ Getter method for remote_port_description, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_port_description (string) YANG Description: This indicates the remote port description. """ return self.__remote_port_description def _set_remote_port_description(self, v, load=False): """ Setter method for remote_port_description, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_port_description (string) If this variable is read-only (config: false) in the source YANG file, then _set_remote_port_description is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_port_description() directly. YANG Description: This indicates the remote port description. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-port-description", rest_name="remote-port-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_port_description must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-port-description", rest_name="remote-port-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__remote_port_description = t if hasattr(self, '_set'): self._set() def _unset_remote_port_description(self): self.__remote_port_description = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-port-description", rest_name="remote-port-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_remote_chassis_id(self): """ Getter method for remote_chassis_id, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_chassis_id (string) YANG Description: This indicates the remote chassis id. """ return self.__remote_chassis_id def _set_remote_chassis_id(self, v, load=False): """ Setter method for remote_chassis_id, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_chassis_id (string) If this variable is read-only (config: false) in the source YANG file, then _set_remote_chassis_id is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_chassis_id() directly. YANG Description: This indicates the remote chassis id. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-chassis-id", rest_name="remote-chassis-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_chassis_id must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-chassis-id", rest_name="remote-chassis-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__remote_chassis_id = t if hasattr(self, '_set'): self._set() def _unset_remote_chassis_id(self): self.__remote_chassis_id = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-chassis-id", rest_name="remote-chassis-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_remote_system_name(self): """ Getter method for remote_system_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_system_name (string) YANG Description: This indicates the remote system name. """ return self.__remote_system_name def _set_remote_system_name(self, v, load=False): """ Setter method for remote_system_name, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_system_name (string) If this variable is read-only (config: false) in the source YANG file, then _set_remote_system_name is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_system_name() directly. YANG Description: This indicates the remote system name. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-system-name", rest_name="remote-system-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_system_name must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-name", rest_name="remote-system-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__remote_system_name = t if hasattr(self, '_set'): self._set() def _unset_remote_system_name(self): self.__remote_system_name = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-name", rest_name="remote-system-name", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_remote_system_description(self): """ Getter method for remote_system_description, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_system_description (string) YANG Description: This indicates the remote system description. """ return self.__remote_system_description def _set_remote_system_description(self, v, load=False): """ Setter method for remote_system_description, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remote_system_description (string) If this variable is read-only (config: false) in the source YANG file, then _set_remote_system_description is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remote_system_description() directly. YANG Description: This indicates the remote system description. """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name="remote-system-description", rest_name="remote-system-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remote_system_description must be of a type compatible with string""", 'defined-type': "string", 'generated-type': """YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-description", rest_name="remote-system-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True)""", }) self.__remote_system_description = t if hasattr(self, '_set'): self._set() def _unset_remote_system_description(self): self.__remote_system_description = YANGDynClass(base=unicode, is_leaf=True, yang_name="remote-system-description", rest_name="remote-system-description", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='string', is_config=True) def _get_dead_interval(self): """ Getter method for dead_interval, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/dead_interval (uint64) YANG Description: This indicates the dead interval """ return self.__dead_interval def _set_dead_interval(self, v, load=False): """ Setter method for dead_interval, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/dead_interval (uint64) If this variable is read-only (config: false) in the source YANG file, then _set_dead_interval is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_dead_interval() directly. YANG Description: This indicates the dead interval """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="dead-interval", rest_name="dead-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """dead_interval must be of a type compatible with uint64""", 'defined-type': "uint64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="dead-interval", rest_name="dead-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True)""", }) self.__dead_interval = t if hasattr(self, '_set'): self._set() def _unset_dead_interval(self): self.__dead_interval = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="dead-interval", rest_name="dead-interval", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) def _get_remaining_life(self): """ Getter method for remaining_life, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remaining_life (uint64) YANG Description: This indicates the dead interval """ return self.__remaining_life def _set_remaining_life(self, v, load=False): """ Setter method for remaining_life, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/remaining_life (uint64) If this variable is read-only (config: false) in the source YANG file, then _set_remaining_life is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_remaining_life() directly. YANG Description: This indicates the dead interval """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="remaining-life", rest_name="remaining-life", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """remaining_life must be of a type compatible with uint64""", 'defined-type': "uint64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="remaining-life", rest_name="remaining-life", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True)""", }) self.__remaining_life = t if hasattr(self, '_set'): self._set() def _unset_remaining_life(self): self.__remaining_life = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="remaining-life", rest_name="remaining-life", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='uint64', is_config=True) def _get_lldp_pdu_transmitted(self): """ Getter method for lldp_pdu_transmitted, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/lldp_pdu_transmitted (yang:counter64) YANG Description: The number of Lldp PDUs transmitted from the interface """ return self.__lldp_pdu_transmitted def _set_lldp_pdu_transmitted(self, v, load=False): """ Setter method for lldp_pdu_transmitted, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/lldp_pdu_transmitted (yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_lldp_pdu_transmitted is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_lldp_pdu_transmitted() directly. YANG Description: The number of Lldp PDUs transmitted from the interface """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-transmitted", rest_name="lldp-pdu-transmitted", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """lldp_pdu_transmitted must be of a type compatible with yang:counter64""", 'defined-type': "yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-transmitted", rest_name="lldp-pdu-transmitted", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True)""", }) self.__lldp_pdu_transmitted = t if hasattr(self, '_set'): self._set() def _unset_lldp_pdu_transmitted(self): self.__lldp_pdu_transmitted = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-transmitted", rest_name="lldp-pdu-transmitted", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) def _get_lldp_pdu_received(self): """ Getter method for lldp_pdu_received, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/lldp_pdu_received (yang:counter64) YANG Description: The number of Lldp PDUs received by the interface """ return self.__lldp_pdu_received def _set_lldp_pdu_received(self, v, load=False): """ Setter method for lldp_pdu_received, mapped from YANG variable /brocade_lldp_ext_rpc/get_lldp_neighbor_detail/output/lldp_neighbor_detail/lldp_pdu_received (yang:counter64) If this variable is read-only (config: false) in the source YANG file, then _set_lldp_pdu_received is considered as a private method. Backends looking to populate this variable should do so via calling thisObj._set_lldp_pdu_received() directly. YANG Description: The number of Lldp PDUs received by the interface """ if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-received", rest_name="lldp-pdu-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) except (TypeError, ValueError): raise ValueError({ 'error-string': """lldp_pdu_received must be of a type compatible with yang:counter64""", 'defined-type': "yang:counter64", 'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-received", rest_name="lldp-pdu-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True)""", }) self.__lldp_pdu_received = t if hasattr(self, '_set'): self._set() def _unset_lldp_pdu_received(self): self.__lldp_pdu_received = YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..18446744073709551615']}, int_size=64), is_leaf=True, yang_name="lldp-pdu-received", rest_name="lldp-pdu-received", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lldp-ext', defining_module='brocade-lldp-ext', yang_type='yang:counter64', is_config=True) local_interface_name = __builtin__.property(_get_local_interface_name, _set_local_interface_name) local_interface_mac = __builtin__.property(_get_local_interface_mac, _set_local_interface_mac) local_interface_ifindex = __builtin__.property(_get_local_interface_ifindex, _set_local_interface_ifindex) remote_interface_name = __builtin__.property(_get_remote_interface_name, _set_remote_interface_name) remote_interface_mac = __builtin__.property(_get_remote_interface_mac, _set_remote_interface_mac) remote_management_address = __builtin__.property(_get_remote_management_address, _set_remote_management_address) remote_unnum_interface_mac = __builtin__.property(_get_remote_unnum_interface_mac, _set_remote_unnum_interface_mac) remote_unnum_ip_address = __builtin__.property(_get_remote_unnum_ip_address, _set_remote_unnum_ip_address) remote_port_description = __builtin__.property(_get_remote_port_description, _set_remote_port_description) remote_chassis_id = __builtin__.property(_get_remote_chassis_id, _set_remote_chassis_id) remote_system_name = __builtin__.property(_get_remote_system_name, _set_remote_system_name) remote_system_description = __builtin__.property(_get_remote_system_description, _set_remote_system_description) dead_interval = __builtin__.property(_get_dead_interval, _set_dead_interval) remaining_life = __builtin__.property(_get_remaining_life, _set_remaining_life) lldp_pdu_transmitted = __builtin__.property(_get_lldp_pdu_transmitted, _set_lldp_pdu_transmitted) lldp_pdu_received = __builtin__.property(_get_lldp_pdu_received, _set_lldp_pdu_received) _pyangbind_elements = {'local_interface_name': local_interface_name, 'local_interface_mac': local_interface_mac, 'local_interface_ifindex': local_interface_ifindex, 'remote_interface_name': remote_interface_name, 'remote_interface_mac': remote_interface_mac, 'remote_management_address': remote_management_address, 'remote_unnum_interface_mac': remote_unnum_interface_mac, 'remote_unnum_ip_address': remote_unnum_ip_address, 'remote_port_description': remote_port_description, 'remote_chassis_id': remote_chassis_id, 'remote_system_name': remote_system_name, 'remote_system_description': remote_system_description, 'dead_interval': dead_interval, 'remaining_life': remaining_life, 'lldp_pdu_transmitted': lldp_pdu_transmitted, 'lldp_pdu_received': lldp_pdu_received, }
78.035714
851
0.747967
8,184
56,810
4.909091
0.026515
0.044629
0.0568
0.032358
0.927842
0.904221
0.884035
0.872088
0.843439
0.822033
0
0.025089
0.111758
56,810
727
852
78.143054
0.771091
0.21454
0
0.515152
0
0.070707
0.400237
0.268491
0
0
0
0
0
1
0.128788
false
0
0.020202
0
0.257576
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
71fc2298c528676a226161b29f42fcbc7fc32da7
7,421
py
Python
api/tests.py
dzionek/goals-rewards
59981edefa770fcecb9f10c8153d732905ad0bed
[ "MIT" ]
1
2020-02-09T16:32:27.000Z
2020-02-09T16:32:27.000Z
api/tests.py
dzionek/goals-rewards
59981edefa770fcecb9f10c8153d732905ad0bed
[ "MIT" ]
1
2020-08-15T11:28:44.000Z
2020-08-15T11:28:44.000Z
api/tests.py
dzionek/goals-rewards
59981edefa770fcecb9f10c8153d732905ad0bed
[ "MIT" ]
null
null
null
import pytest import json from django.contrib.auth.models import User from django.test import Client from system.models import Goal, DirectReward, PointReward from tests.helpers import (check_view_set_admin_restricted, check_view_set_user_restricted) @pytest.mark.django_db class TestRoutes: def test_admin_user_view_set(self, client: Client, default_user: User, admin_user: User) -> None: tested_url = '/api/admin/users/' response = check_view_set_admin_restricted( client, tested_url, default_user, admin_user ) json_response = json.loads(response.content) assert len(json_response) == 2 assert json_response[0]['username'] == 'testUser' assert json_response[1]['point_rewards'] == [] # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['username'] == 'testUser' def test_admin_goal_view_set(self, client: Client, default_user: User, admin_user: User) -> None: tested_url = '/api/admin/goals/' response = check_view_set_admin_restricted( client, tested_url, default_user, admin_user ) json_response = json.loads(response.content) assert len(json_response) == 0 Goal.objects.create( name='testGoal', user=default_user, reward_points=10 ) response = client.get(tested_url) assert response.status_code == 200 json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testGoal' assert json_response[0]['reward_points'] == 10 assert json_response[0]['description'] is None # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['name'] == 'testGoal' assert json_response['reward_points'] == 10 assert json_response['finish_date'] is None def test_admin_direct_reward_view_set(self, client: Client, default_user: User, admin_user: User) -> None: tested_url = '/api/admin/direct-rewards/' response = check_view_set_admin_restricted( client, tested_url, default_user, admin_user ) json_response = json.loads(response.content) assert len(json_response) == 0 DirectReward.objects.create(name='testDirectReward', user=default_user) response = client.get(tested_url) assert response.status_code == 200 json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testDirectReward' assert json_response[0]['description'] is None # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['name'] == 'testDirectReward' def test_admin_point_reward_view_set(self, client: Client, default_user: User, admin_user: User) -> None: tested_url = '/api/admin/point-rewards/' response = check_view_set_admin_restricted( client, tested_url, default_user, admin_user ) json_response = json.loads(response.content) assert len(json_response) == 0 PointReward.objects.create( name='testPointReward', points=20, user=default_user ) response = client.get(tested_url) assert response.status_code == 200 json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testPointReward' assert json_response[0]['description'] is None assert json_response[0]['points'] == 20 # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['name'] == 'testPointReward' assert json_response['points'] == 20 def test_user_goal_view_set(self, client: Client, admin_user: User, default_user: User) -> None: tested_url = '/api/goals/' response = check_view_set_user_restricted( client, tested_url, default_user ) json_response = json.loads(response.content) assert len(json_response) == 0 Goal.objects.create( name='testGoal', user=default_user, reward_points=10 ) Goal.objects.create( name='other', user=admin_user, reward_points=33 ) response = client.get(tested_url) json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testGoal' # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['reward_points'] == 10 response = client.get(f'{tested_url}2/') assert response.status_code == 404 def test_user_direct_reward_view_set(self, client: Client, admin_user: User, default_user: User) -> None: tested_url = '/api/direct-rewards/' response = check_view_set_user_restricted( client, tested_url, default_user ) json_response = json.loads(response.content) assert len(json_response) == 0 DirectReward.objects.create( name='testDirectReward', user=default_user ) DirectReward.objects.create( name='other', description='other', user=admin_user ) response = client.get(tested_url) json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testDirectReward' # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['description'] is None def test_user_point_reward_view_set(self, client: Client, admin_user: User, default_user: User) -> None: tested_url = '/api/point-rewards/' response = check_view_set_user_restricted( client, tested_url, default_user ) json_response = json.loads(response.content) assert len(json_response) == 0 PointReward.objects.create( name='testPointReward', user=default_user, points=10 ) PointReward.objects.create( name='other', description='other', user=admin_user, points=33 ) response = client.get(tested_url) json_response = json.loads(response.content) assert len(json_response) == 1 assert json_response[0]['name'] == 'testPointReward' assert json_response[0]['points'] == 10 # Detail response = client.get(f'{tested_url}1/') json_response = json.loads(response.content) assert json_response['description'] is None assert json_response['points'] == 10
37.291457
79
0.609352
818
7,421
5.282396
0.086797
0.161074
0.104143
0.0972
0.874566
0.843323
0.803749
0.794723
0.794723
0.771118
0
0.013876
0.291066
7,421
198
80
37.479798
0.807451
0.006468
0
0.615385
0
0
0.091921
0.006925
0
0
0
0
0.269231
1
0.044872
false
0
0.038462
0
0.089744
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
9c054727da5e298e0e3dfb31d0a0a50fc000b2aa
9,257
py
Python
dnlp/classifier/rnn_model.py
zhaoshiyu/DNLP
01071d356714f816a0b47827e13932e741619952
[ "Apache-2.0" ]
null
null
null
dnlp/classifier/rnn_model.py
zhaoshiyu/DNLP
01071d356714f816a0b47827e13932e741619952
[ "Apache-2.0" ]
null
null
null
dnlp/classifier/rnn_model.py
zhaoshiyu/DNLP
01071d356714f816a0b47827e13932e741619952
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import math import numpy as np import tensorflow as tf from tensorflow.contrib import rnn class RNNModel(): def __init__(self, args): self.args = args if self.args.model == 'RNN': cell_fn = rnn.BasicRNNCell elif self.args.model == 'GRU': cell_fn = rnn.GRUCell elif self.args.model == 'LSTM': cell_fn = rnn.BasicLSTMCell else: raise Exception('model type not supported: {}'.format(self.args.model)) cell = cell_fn(self.args.rnn_size, self.args.state_is_tuple) cell = rnn.MultiRNNCell([cell] * self.args.num_layers, self.args.state_is_tuple) if self.args.keep_prob < 1: cell = rnn.DropoutWrapper(cell, output_keep_prob=self.args.keep_prob) self.cell = cell self.input_data = tf.placeholder(tf.int64, [None, self.args.seq_length], name='input_data') self.targets = tf.placeholder(tf.int64, [None, ], name='targets') # target is class label self.initial_state = cell.zero_state(self.args.batch_size, tf.float32) with tf.variable_scope('embeddingLayer'): with tf.device('/cpu:0'): W = tf.get_variable('W', [self.args.vocab_size, self.args.rnn_size]) embedded = tf.nn.embedding_lookup(W, self.input_data) inputs = tf.split(embedded, self.args.seq_length, 1) inputs = [tf.squeeze(input_, [1]) for input_ in inputs] with tf.variable_scope('RNNLayer'): outputs, last_state = rnn.static_rnn(cell, inputs, self.initial_state, scope='rnnLayer') with tf.variable_scope('softmaxLayer'): softmax_w = tf.get_variable('w', [self.args.rnn_size, self.args.label_size]) softmax_b = tf.get_variable('b', [self.args.label_size]) logits = tf.matmul(outputs[-1], softmax_w) + softmax_b self.probs = tf.nn.softmax(logits) with tf.variable_scope("loss"): self.loss = tf.reduce_mean(tf.contrib.nn.deprecated_flipped_sparse_softmax_cross_entropy_with_logits(logits, self.targets), name='loss') # Softmax loss self.final_state = last_state self.lr = tf.Variable(0.0, trainable=False) self.optimizer = tf.train.AdamOptimizer(learning_rate=self.lr).minimize(self.loss) # Adam Optimizer #self.optimizer = tf.train.AdamOptimizer(learning_rate=self.args.learning_rate).minimize(self.cost) # Adam Optimizer self.correct_pred = tf.equal(tf.argmax(self.probs, 1), self.targets) self.correct_num = tf.reduce_sum(tf.cast(self.correct_pred, tf.float32)) with tf.variable_scope("accuracy"): self.accuracy = tf.reduce_mean(tf.cast(self.correct_pred, tf.float32), name='accuracy') def _predict(self, sess, x): state = sess.run(self.cell.zero_state(len(x), tf.float32)) feed = {self.input_data: x, self.initial_state: state} probs, state = sess.run([self.probs, self.final_state], feed_dict=feed) return np.argmax(probs, 1) def predict_label(self, sess, id2labels, text): x = np.array(text) x_len = len(x) if x_len == self.args.batch_size: return list(map(id2labels.get, self._predict(sess, x))) if x_len < self.args.batch_size: x = np.concatenate((x, np.array([x[-1]] * (self.args.batch_size - x_len)))) return list(map(id2labels.get, self._predict(sess, x)[:len(text)])) else: n_chunks = math.ceil(len(x) / self.args.batch_size) data_list = np.array_split(x[:self.args.batch_size*n_chunks], n_chunks, axis=0) results = [] for m in range(n_chunks): results.extend(self.predict_label(sess, id2labels, data_list[m])) return results def predict_class(self, sess, text): x = np.array(text) if len(x) != self.args.batch_size: x =np.concatenate((x, np.array([x[-1]] * (self.args.batch_size - len(x))))) return self._predict(sess, x)[:len(text)] else: return self._predict(sess, x) class BIDIRNNModel(): def __init__(self, args): self.args = args if self.args.model == 'RNN': cell_fn = rnn.BasicRNNCell elif self.args.model == 'GRU': cell_fn = rnn.GRUCell elif self.args.model == 'LSTM': cell_fn = rnn.BasicLSTMCell else: raise Exception('model type not supported: {}'.format(self.args.model)) fw_cell = cell_fn(self.args.rnn_size, self.args.state_is_tuple) fw_cell = rnn.MultiRNNCell([fw_cell] * self.args.num_layers, self.args.state_is_tuple) bw_cell = cell_fn(self.args.rnn_size, self.args.state_is_tuple) bw_cell = rnn.MultiRNNCell([bw_cell] * self.args.num_layers, self.args.state_is_tuple) if args.keep_prob < 1: fw_cell = rnn.DropoutWrapper(fw_cell, output_keep_prob=self.args.keep_prob) bw_cell = rnn.DropoutWrapper(bw_cell, output_keep_prob=self.args.keep_prob) self.fw_cell = fw_cell self.bw_cell = bw_cell self.input_data = tf.placeholder(tf.int64, [None, self.args.seq_length], name='input_data') self.targets = tf.placeholder(tf.int64, [None, ], name='targets') # target is class label self.initial_state_fw = fw_cell.zero_state(self.args.batch_size, tf.float32) self.initial_state_bw = bw_cell.zero_state(self.args.batch_size, tf.float32) with tf.variable_scope('embeddingLayer'): with tf.device('/cpu:0'): W = tf.get_variable('W', [self.args.vocab_size, self.args.rnn_size]) embedded = tf.nn.embedding_lookup(W, self.input_data) inputs = tf.split(embedded, self.args.seq_length, 1) inputs = [tf.squeeze(input_, [1]) for input_ in inputs] used = tf.sign(tf.reduce_max(tf.abs(inputs), reduction_indices=2)) self.length = tf.cast(tf.reduce_sum(used, reduction_indices=0), tf.int32) with tf.variable_scope('RNNLayer'): outputs, last_state_fw, last_state_bw = rnn.static_bidirectional_rnn(fw_cell, bw_cell, inputs, initial_state_fw = self.initial_state_fw, initial_state_bw = self.initial_state_bw, dtype=tf.float32, sequence_length=self.length) with tf.variable_scope('softmaxLayer'): softmax_w = tf.get_variable('w', [self.args.rnn_size*2, self.args.label_size]) softmax_b = tf.get_variable('b', [self.args.label_size]) logits = tf.matmul(outputs[-1], softmax_w) + softmax_b self.probs = tf.nn.softmax(logits) with tf.variable_scope("loss"): self.loss = tf.reduce_mean(tf.contrib.nn.deprecated_flipped_sparse_softmax_cross_entropy_with_logits(logits, self.targets), name="loss") # Softmax loss self.final_state_fw = last_state_fw self.final_state_bw = last_state_bw self.lr = tf.Variable(0.0, trainable=False) self.optimizer = tf.train.AdamOptimizer(learning_rate=self.lr).minimize(self.loss) # Adam Optimizer #self.optimizer = tf.train.AdamOptimizer(learning_rate=self.args.learning_rate).minimize(self.cost) # Adam Optimizer self.correct_pred = tf.equal(tf.argmax(self.probs, 1), self.targets) self.correct_num = tf.reduce_sum(tf.cast(self.correct_pred, tf.float32)) with tf.variable_scope("accuracy"): self.accuracy = tf.reduce_mean(tf.cast(self.correct_pred, tf.float32), name="accuracy") def _predict(self, sess, x): state_fw = sess.run(self.fw_cell.zero_state(len(x), tf.float32)) state_bw = sess.run(self.bw_cell.zero_state(len(x), tf.float32)) feed = {self.input_data: x, self.initial_state_fw: state_fw, self.initial_state_bw: state_bw} probs, state_fw, state_bw = sess.run([self.probs, self.final_state_fw, self.final_state_bw], feed_dict=feed) return np.argmax(probs, 1) def predict_label(self, sess, id2labels, text): x = np.array(text) x_len = len(x) if x_len == self.args.batch_size: return list(map(id2labels.get, self._predict(sess, x))) if x_len < self.args.batch_size: x = np.concatenate((x, np.array([x[-1]] * (self.args.batch_size - x_len)))) return list(map(id2labels.get, self._predict(sess, x)[:len(text)])) else: n_chunks = math.ceil(len(x) / self.args.batch_size) data_list = np.array_split(x[:self.args.batch_size*n_chunks], n_chunks, axis=0) results = [] for m in range(n_chunks): results.extend(self.predict_label(sess, id2labels, data_list[m])) return results def predict_class(self, sess, text): x = np.array(text) if len(x) != self.args.batch_size: x = np.concatenate((x, np.array([x[-1]] * (self.args.batch_size - len(x))))) return self._predict(sess, x)[:len(text)] else: return self._predict(sess, x)
49.239362
164
0.625797
1,284
9,257
4.30296
0.120717
0.088326
0.04
0.052308
0.871131
0.858281
0.85086
0.833846
0.812127
0.791312
0
0.009737
0.245544
9,257
187
165
49.502674
0.781357
0.037917
0
0.697368
0
0
0.028334
0
0
0
0
0
0
1
0.052632
false
0
0.026316
0
0.171053
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
9c160e36b80535cbc69b9c9c9b3e66275e16a3a6
1,795
py
Python
weasyl/test/useralias/test_select.py
greysteil/wzl-test
0f863b9e7c58e5861437618bd590126ca323140c
[ "Apache-2.0" ]
1
2019-02-15T04:21:48.000Z
2019-02-15T04:21:48.000Z
weasyl/test/useralias/test_select.py
kfkitsune/wzl-test
27297ccb42e24d652a29aa82f5a667c7d9a6d8de
[ "Apache-2.0" ]
254
2017-12-23T19:36:43.000Z
2020-04-14T21:46:13.000Z
weasyl/test/useralias/test_select.py
greysteil/wzl-test
0f863b9e7c58e5861437618bd590126ca323140c
[ "Apache-2.0" ]
1
2017-12-23T18:42:16.000Z
2017-12-23T18:42:16.000Z
from __future__ import absolute_import import pytest from weasyl.test import db_utils from weasyl import useralias from weasyl import define as d test_alias = "test_alias" @pytest.mark.usefixtures('db') def test_selecting_alias_succeeds_if_premium_parameter_is_set_to_true(): # This is the default case user_id = db_utils.create_user() d.engine.execute("INSERT INTO useralias VALUES (%(id)s, %(alias)s, 'p')", id=user_id, alias=test_alias) query = useralias.select(userid=user_id, premium=True) # The manually set alias should equal what the function returns. assert test_alias == query @pytest.mark.usefixtures('db') def test_selecting_alias_succeeds_if_premium_parameter_is_set_to_false(): user_id = db_utils.create_user() d.engine.execute("INSERT INTO useralias VALUES (%(id)s, %(alias)s, 'p')", id=user_id, alias=test_alias) queried_user_alias = useralias.select(userid=user_id, premium=False) # The manually set alias should equal what the function returns. assert test_alias == queried_user_alias @pytest.mark.usefixtures('db') def test_selecting_alias_when_user_has_no_alias_returns_zero_length_array_if_premium_parameter_is_set_to_true(): user_id = db_utils.create_user() queried_user_alias = useralias.select(userid=user_id, premium=True) # Result when user has no alias set: should be a list, and be zero-length assert queried_user_alias == [] @pytest.mark.usefixtures('db') def test_selecting_alias_when_user_has_no_alias_returns_zero_length_array_if_premium_parameter_is_set_to_false(): user_id = db_utils.create_user() queried_user_alias = useralias.select(userid=user_id, premium=False) # Result when user has no alias set: should be a list, and be zero-length assert queried_user_alias == []
39.021739
113
0.777159
278
1,795
4.665468
0.226619
0.046261
0.074017
0.070933
0.875096
0.875096
0.875096
0.836546
0.836546
0.832691
0
0
0.135376
1,795
45
114
39.888889
0.835696
0.163788
0
0.5
0
0
0.082943
0
0
0
0
0
0.142857
1
0.142857
false
0
0.178571
0
0.321429
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
9c21e9ea2acd7c8774f71fe1f3559cac59d61b9f
109
py
Python
kv_config.py
SteveClement/kaniwani-runner
bff98439fa2d9b6a3bac7f306e6c997be9dd9101
[ "Unlicense" ]
null
null
null
kv_config.py
SteveClement/kaniwani-runner
bff98439fa2d9b6a3bac7f306e6c997be9dd9101
[ "Unlicense" ]
null
null
null
kv_config.py
SteveClement/kaniwani-runner
bff98439fa2d9b6a3bac7f306e6c997be9dd9101
[ "Unlicense" ]
null
null
null
from kivy.config import Config Config.set('graphics', 'width', '900') Config.set('graphics', 'height', '400')
36.333333
39
0.706422
15
109
5.133333
0.666667
0.233766
0.441558
0
0
0
0
0
0
0
0
0.06
0.082569
109
3
39
36.333333
0.71
0
0
0
0
0
0.3
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
9c3b8f00feeeed1f5934da7b6e3eb9614b5377e5
8,964
py
Python
usaspending_api/accounts/tests/test_tas_endpoints.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
1
2020-08-14T04:14:32.000Z
2020-08-14T04:14:32.000Z
usaspending_api/accounts/tests/test_tas_endpoints.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
usaspending_api/accounts/tests/test_tas_endpoints.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
null
null
null
from datetime import date import pytest from model_mommy import mommy import json from usaspending_api.accounts.models import AppropriationAccountBalances from usaspending_api.financial_activities.models import FinancialAccountsByProgramActivityObjectClass @pytest.fixture def account_models(): # Add submission data subm_2015_1 = mommy.make( "submissions.SubmissionAttributes", reporting_period_start=date(2014, 10, 1), reporting_fiscal_year=2015 ) subm_2015_2 = mommy.make( "submissions.SubmissionAttributes", reporting_period_start=date(2015, 8, 1), reporting_fiscal_year=2015 ) subm_2016_1 = mommy.make( "submissions.SubmissionAttributes", reporting_period_start=date(2016, 1, 1), reporting_fiscal_year=2016 ) subm_2016_2 = mommy.make( "submissions.SubmissionAttributes", reporting_period_start=date(2016, 6, 1), reporting_fiscal_year=2016 ) # add object classes obj_clas_1 = mommy.make("references.ObjectClass", object_class=1) obj_clas_2 = mommy.make("references.ObjectClass", object_class=2) # add program activity prg_atvy_1 = mommy.make("references.RefProgramActivity", id=1) prg_atvy_2 = mommy.make("references.RefProgramActivity", id=2) # add tas data tas_1 = mommy.make("accounts.TreasuryAppropriationAccount", tas_rendering_label="ABC", _fill_optional=True) tas_2 = mommy.make("accounts.TreasuryAppropriationAccount", tas_rendering_label="XYZ", _fill_optional=True) # add file A data mommy.make( "accounts.AppropriationAccountBalances", treasury_account_identifier=tas_1, budget_authority_unobligated_balance_brought_forward_fyb=10, _fill_optional=True, submission=subm_2015_1, ) mommy.make( "accounts.AppropriationAccountBalances", treasury_account_identifier=tas_2, budget_authority_unobligated_balance_brought_forward_fyb=10, _fill_optional=True, submission=subm_2015_2, ) mommy.make( "accounts.AppropriationAccountBalances", treasury_account_identifier=tas_1, budget_authority_unobligated_balance_brought_forward_fyb=10, _fill_optional=True, submission=subm_2016_1, ) mommy.make( "accounts.AppropriationAccountBalances", treasury_account_identifier=tas_2, budget_authority_unobligated_balance_brought_forward_fyb=10, _fill_optional=True, submission=subm_2016_2, ) AppropriationAccountBalances.populate_final_of_fy() # add file B data mommy.make( "financial_activities.FinancialAccountsByProgramActivityObjectClass", object_class=obj_clas_1, program_activity=prg_atvy_1, treasury_account=tas_1, obligations_undelivered_orders_unpaid_total_cpe=8000, _fill_optional=True, submission=subm_2015_1, ) # ignored, superseded by the next submission in the FY mommy.make( "financial_activities.FinancialAccountsByProgramActivityObjectClass", object_class=obj_clas_2, program_activity=prg_atvy_2, treasury_account=tas_2, obligations_undelivered_orders_unpaid_total_cpe=1000, _fill_optional=True, submission=subm_2015_2, ) mommy.make( "financial_activities.FinancialAccountsByProgramActivityObjectClass", object_class=obj_clas_1, program_activity=prg_atvy_1, treasury_account=tas_1, obligations_undelivered_orders_unpaid_total_cpe=9000, _fill_optional=True, submission=subm_2016_1, ) # ignored, superseded by the next submission in the FY mommy.make( "financial_activities.FinancialAccountsByProgramActivityObjectClass", object_class=obj_clas_2, program_activity=prg_atvy_2, treasury_account=tas_2, obligations_undelivered_orders_unpaid_total_cpe=2000, _fill_optional=True, submission=subm_2016_2, ) FinancialAccountsByProgramActivityObjectClass.populate_final_of_fy() @pytest.mark.django_db def test_tas_balances_total(account_models, client): """ Ensure the categories aggregation counts properly """ response_tas_sums = {"ABC": "20.00", "XYZ": "20.00"} resp = client.post( "/api/v1/tas/balances/total/", content_type="application/json", data=json.dumps( { "field": "budget_authority_unobligated_balance_brought_forward_fyb", "group": "treasury_account_identifier__tas_rendering_label", } ), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_tas_sums[result["item"]] == result["aggregate"] @pytest.mark.django_db def test_tas_categories_total(account_models, client): """ Ensure the categories aggregation counts properly """ response_prg_sums = {"1": "17000.00", "2": "3000.00"} response_obj_sums = {"1": "17000.00", "2": "3000.00"} response_tas_1_obj_sums = {"1": "17000.00", "2": "3000.00"} resp = client.post( "/api/v1/tas/categories/total/", content_type="application/json", data=json.dumps({"field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "program_activity"}), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_prg_sums[result["item"]] == result["aggregate"] resp = client.post( "/api/v1/tas/categories/total/", content_type="application/json", data=json.dumps( {"field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "object_class__object_class"} ), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_obj_sums[result["item"]] == result["aggregate"] resp = client.post( "/api/v1/tas/categories/total/", content_type="application/json", data=json.dumps( { "field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "object_class__object_class", "filters": [{"field": "treasury_account__tas_rendering_label", "operation": "equals", "value": "ABC"}], } ), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_tas_1_obj_sums[result["item"]] == result["aggregate"] @pytest.mark.django_db def test_tas_categories_quarters_total(account_models, client): """ Ensure the categories quarters aggregation counts properly """ response_prg_sums = {"1": "17000.00", "2": "3000.00"} response_obj_sums = {"1": "17000.00", "2": "3000.00"} response_tas_1_obj_sums = {"1": "17000.00", "2": "3000.00"} resp = client.post( "/api/v1/tas/categories/quarters/total/", content_type="application/json", data=json.dumps({"field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "program_activity"}), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_prg_sums[result["item"]] == result["aggregate"] resp = client.post( "/api/v1/tas/categories/quarters/total/", content_type="application/json", data=json.dumps( {"field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "object_class__object_class"} ), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_obj_sums[result["item"]] == result["aggregate"] resp = client.post( "/api/v1/tas/categories/quarters/total/", content_type="application/json", data=json.dumps( { "field": "obligations_undelivered_orders_unpaid_total_cpe", "group": "object_class__object_class", "filters": [{"field": "treasury_account__tas_rendering_label", "operation": "equals", "value": "ABC"}], } ), ) assert resp.status_code == 200 for result in resp.data["results"]: assert response_tas_1_obj_sums[result["item"]] == result["aggregate"] @pytest.mark.django_db def test_tas_balances_quarter_total(account_models, client): """ Ensure the categories aggregation counts properly """ response_tas_sums = {"ABC": "20.00", "XYZ": "20.00"} resp = client.post( "/api/v1/tas/balances/total/", content_type="application/json", data=json.dumps( { "field": "budget_authority_unobligated_balance_brought_forward_fyb", "group": "treasury_account_identifier__tas_rendering_label", } ), ) assert resp.status_code == 200 for result in resp.data["results"]: print(response_tas_sums[result["item"]] + " " + result["aggregate"]) assert response_tas_sums[result["item"]] == result["aggregate"]
35.015625
119
0.675368
1,003
8,964
5.695912
0.134596
0.028356
0.028006
0.059513
0.899527
0.870646
0.84649
0.792053
0.7763
0.723088
0
0.041584
0.213967
8,964
255
120
35.152941
0.769231
0.046854
0
0.693467
0
0
0.266989
0.19337
0
0
0
0
0.080402
1
0.025126
false
0
0.030151
0
0.055276
0.005025
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
9c69d7d3ff3bdb3c43ca0593ee218718f429deb7
1,672
py
Python
temboo/core/Library/Google/Picasa/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Google/Picasa/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Google/Picasa/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.Google.Picasa.AddCommentToPhoto import AddCommentToPhoto, AddCommentToPhotoInputSet, AddCommentToPhotoResultSet, AddCommentToPhotoChoreographyExecution from temboo.Library.Google.Picasa.CreateAlbum import CreateAlbum, CreateAlbumInputSet, CreateAlbumResultSet, CreateAlbumChoreographyExecution from temboo.Library.Google.Picasa.DeleteAlbum import DeleteAlbum, DeleteAlbumInputSet, DeleteAlbumResultSet, DeleteAlbumChoreographyExecution from temboo.Library.Google.Picasa.DeleteTag import DeleteTag, DeleteTagInputSet, DeleteTagResultSet, DeleteTagChoreographyExecution from temboo.Library.Google.Picasa.ListAlbums import ListAlbums, ListAlbumsInputSet, ListAlbumsResultSet, ListAlbumsChoreographyExecution from temboo.Library.Google.Picasa.ListPhotosByAlbum import ListPhotosByAlbum, ListPhotosByAlbumInputSet, ListPhotosByAlbumResultSet, ListPhotosByAlbumChoreographyExecution from temboo.Library.Google.Picasa.PostPhoto import PostPhoto, PostPhotoInputSet, PostPhotoResultSet, PostPhotoChoreographyExecution from temboo.Library.Google.Picasa.RetrieveComments import RetrieveComments, RetrieveCommentsInputSet, RetrieveCommentsResultSet, RetrieveCommentsChoreographyExecution from temboo.Library.Google.Picasa.RetrieveTagsByUser import RetrieveTagsByUser, RetrieveTagsByUserInputSet, RetrieveTagsByUserResultSet, RetrieveTagsByUserChoreographyExecution from temboo.Library.Google.Picasa.SearchPhotosByTag import SearchPhotosByTag, SearchPhotosByTagInputSet, SearchPhotosByTagResultSet, SearchPhotosByTagChoreographyExecution from temboo.Library.Google.Picasa.TagPhoto import TagPhoto, TagPhotoInputSet, TagPhotoResultSet, TagPhotoChoreographyExecution
139.333333
176
0.907895
121
1,672
12.545455
0.413223
0.072464
0.123188
0.166667
0.210145
0
0
0
0
0
0
0
0.046053
1,672
11
177
152
0.951724
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
92e5484a1e8cc73a27f6a2c05e36cbf4793ac5a0
17,483
py
Python
tests/unit/utils/test_decorators.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/unit/utils/test_decorators.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/unit/utils/test_decorators.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ :codeauthor: Bo Maryniuk (bo@suse.de) unit.utils.decorators_test """ # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import inspect # Import Salt libs import salt.utils.decorators as decorators from salt.exceptions import CommandExecutionError, SaltConfigurationError from salt.version import SaltStackVersion from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase class DummyLogger(object): """ Dummy logger accepts everything and simply logs """ def __init__(self, messages): self._messages = messages def __getattr__(self, item): return self._log def _log(self, msg): self._messages.append(msg) class DecoratorsTest(TestCase): """ Testing decorators. """ def old_function(self): return "old" def new_function(self): return "new" def _new_function(self): return "old" def _mk_version(self, name): """ Make a version :return: """ return name, SaltStackVersion.from_name(name) def setUp(self): """ Setup a test :return: """ self.globs = { "__virtualname__": "test", "__opts__": {}, "__pillar__": {}, "old_function": self.old_function, "new_function": self.new_function, "_new_function": self._new_function, } self.addCleanup(delattr, self, "globs") self.messages = list() self.addCleanup(delattr, self, "messages") patcher = patch.object(decorators, "log", DummyLogger(self.messages)) patcher.start() self.addCleanup(patcher.stop) def test_is_deprecated_version_eol(self): """ Use of is_deprecated will result to the exception, if the expiration version is lower than the current version. A successor function is not pointed out. :return: """ depr = decorators.is_deprecated(self.globs, "Helium") depr._curr_version = self._mk_version("Beryllium")[1] with self.assertRaises(CommandExecutionError): depr(self.old_function)() self.assertEqual( self.messages, ['The lifetime of the function "old_function" expired.'] ) def test_is_deprecated_with_successor_eol(self): """ Use of is_deprecated will result to the exception, if the expiration version is lower than the current version. A successor function is pointed out. :return: """ depr = decorators.is_deprecated( self.globs, "Helium", with_successor="new_function" ) depr._curr_version = self._mk_version("Beryllium")[1] with self.assertRaises(CommandExecutionError): depr(self.old_function)() self.assertEqual( self.messages, [ 'The lifetime of the function "old_function" expired. ' 'Please use its successor "new_function" instead.' ], ) def test_is_deprecated(self): """ Use of is_deprecated will result to the log message, if the expiration version is higher than the current version. A successor function is not pointed out. :return: """ depr = decorators.is_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.old_function)(), self.old_function()) self.assertEqual( self.messages, [ 'The function "old_function" is deprecated ' 'and will expire in version "Beryllium".' ], ) def test_is_deprecated_with_successor(self): """ Use of is_deprecated will result to the log message, if the expiration version is higher than the current version. A successor function is pointed out. :return: """ depr = decorators.is_deprecated( self.globs, "Beryllium", with_successor="old_function" ) depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.old_function)(), self.old_function()) self.assertEqual( self.messages, [ 'The function "old_function" is deprecated ' 'and will expire in version "Beryllium". ' 'Use successor "old_function" instead.' ], ) def test_with_deprecated_notfound(self): """ Test with_deprecated should raise an exception, if a same name function with the "_" prefix not implemented. :return: """ del self.globs["_new_function"] self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] with self.assertRaises(CommandExecutionError): depr(self.new_function)() self.assertEqual( self.messages, [ 'The function "test.new_function" is using its deprecated ' 'version and will expire in version "Beryllium".' ], ) def test_with_deprecated_notfound_in_pillar(self): """ Test with_deprecated should raise an exception, if a same name function with the "_" prefix not implemented. :return: """ del self.globs["_new_function"] self.globs["__pillar__"]["use_deprecated"] = ["test.new_function"] depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] with self.assertRaises(CommandExecutionError): depr(self.new_function)() self.assertEqual( self.messages, [ 'The function "test.new_function" is using its deprecated ' 'version and will expire in version "Beryllium".' ], ) def test_with_deprecated_found(self): """ Test with_deprecated should not raise an exception, if a same name function with the "_" prefix is implemented, but should use an old version instead, if "use_deprecated" is requested. :return: """ self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] self.globs["_new_function"] = self.old_function depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.new_function)(), self.old_function()) log_msg = [ 'The function "test.new_function" is using its deprecated version ' 'and will expire in version "Beryllium".' ] self.assertEqual(self.messages, log_msg) def test_with_deprecated_found_in_pillar(self): """ Test with_deprecated should not raise an exception, if a same name function with the "_" prefix is implemented, but should use an old version instead, if "use_deprecated" is requested. :return: """ self.globs["__pillar__"]["use_deprecated"] = ["test.new_function"] self.globs["_new_function"] = self.old_function depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.new_function)(), self.old_function()) log_msg = [ 'The function "test.new_function" is using its deprecated version ' 'and will expire in version "Beryllium".' ] self.assertEqual(self.messages, log_msg) def test_with_deprecated_found_eol(self): """ Test with_deprecated should raise an exception, if a same name function with the "_" prefix is implemented, "use_deprecated" is requested and EOL is reached. :return: """ self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] self.globs["_new_function"] = self.old_function depr = decorators.with_deprecated(self.globs, "Helium") depr._curr_version = self._mk_version("Beryllium")[1] with self.assertRaises(CommandExecutionError): depr(self.new_function)() self.assertEqual( self.messages, [ 'Although function "new_function" is called, an alias "new_function" ' "is configured as its deprecated version. The lifetime of the function " '"new_function" expired. Please use its successor "new_function" instead.' ], ) def test_with_deprecated_found_eol_in_pillar(self): """ Test with_deprecated should raise an exception, if a same name function with the "_" prefix is implemented, "use_deprecated" is requested and EOL is reached. :return: """ self.globs["__pillar__"]["use_deprecated"] = ["test.new_function"] self.globs["_new_function"] = self.old_function depr = decorators.with_deprecated(self.globs, "Helium") depr._curr_version = self._mk_version("Beryllium")[1] with self.assertRaises(CommandExecutionError): depr(self.new_function)() self.assertEqual( self.messages, [ 'Although function "new_function" is called, an alias "new_function" ' "is configured as its deprecated version. The lifetime of the function " '"new_function" expired. Please use its successor "new_function" instead.' ], ) def test_with_deprecated_no_conf(self): """ Test with_deprecated should not raise an exception, if a same name function with the "_" prefix is implemented, but should use a new version instead, if "use_deprecated" is not requested. :return: """ self.globs["_new_function"] = self.old_function depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.new_function)(), self.new_function()) self.assertFalse(self.messages) def test_with_deprecated_with_name(self): """ Test with_deprecated should not raise an exception, if a different name function is implemented and specified with the "with_name" parameter, but should use an old version instead and log a warning log message. :return: """ self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] depr = decorators.with_deprecated( self.globs, "Beryllium", with_name="old_function" ) depr._curr_version = self._mk_version("Helium")[1] self.assertEqual(depr(self.new_function)(), self.old_function()) self.assertEqual( self.messages, [ 'The function "old_function" is deprecated and will expire in version "Beryllium". ' 'Use its successor "new_function" instead.' ], ) def test_with_deprecated_with_name_eol(self): """ Test with_deprecated should raise an exception, if a different name function is implemented and specified with the "with_name" parameter and EOL is reached. :return: """ self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] depr = decorators.with_deprecated( self.globs, "Helium", with_name="old_function" ) depr._curr_version = self._mk_version("Beryllium")[1] with self.assertRaises(CommandExecutionError): depr(self.new_function)() self.assertEqual( self.messages, [ 'Although function "new_function" is called, ' 'an alias "old_function" is configured as its deprecated version. ' 'The lifetime of the function "old_function" expired. ' 'Please use its successor "new_function" instead.' ], ) def test_with_deprecated_opt_in_default(self): """ Test with_deprecated using opt-in policy, where newer function is not used, unless configured. :return: """ depr = decorators.with_deprecated( self.globs, "Beryllium", policy=decorators._DeprecationDecorator.OPT_IN ) depr._curr_version = self._mk_version("Helium")[1] assert depr(self.new_function)() == self.old_function() assert self.messages == [ 'The function "test.new_function" is using its ' 'deprecated version and will expire in version "Beryllium".' ] def test_with_deprecated_opt_in_use_superseded(self): """ Test with_deprecated using opt-in policy, where newer function is used as per configuration. :return: """ self.globs["__opts__"]["use_superseded"] = ["test.new_function"] depr = decorators.with_deprecated( self.globs, "Beryllium", policy=decorators._DeprecationDecorator.OPT_IN ) depr._curr_version = self._mk_version("Helium")[1] assert depr(self.new_function)() == self.new_function() assert not self.messages def test_with_deprecated_opt_in_use_superseded_in_pillar(self): """ Test with_deprecated using opt-in policy, where newer function is used as per configuration. :return: """ self.globs["__pillar__"]["use_superseded"] = ["test.new_function"] depr = decorators.with_deprecated( self.globs, "Beryllium", policy=decorators._DeprecationDecorator.OPT_IN ) depr._curr_version = self._mk_version("Helium")[1] assert depr(self.new_function)() == self.new_function() assert not self.messages def test_with_deprecated_opt_in_use_superseded_and_deprecated(self): """ Test with_deprecated misconfiguration. :return: """ self.globs["__opts__"]["use_deprecated"] = ["test.new_function"] self.globs["__opts__"]["use_superseded"] = ["test.new_function"] depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] with self.assertRaises(SaltConfigurationError): assert depr(self.new_function)() == self.new_function() def test_with_deprecated_opt_in_use_superseded_and_deprecated_in_pillar(self): """ Test with_deprecated misconfiguration. :return: """ self.globs["__pillar__"]["use_deprecated"] = ["test.new_function"] self.globs["__pillar__"]["use_superseded"] = ["test.new_function"] depr = decorators.with_deprecated(self.globs, "Beryllium") depr._curr_version = self._mk_version("Helium")[1] with self.assertRaises(SaltConfigurationError): assert depr(self.new_function)() == self.new_function() def test_with_depreciated_should_wrap_function(self): wrapped = decorators.with_deprecated({}, "Beryllium")(self.old_function) assert wrapped.__module__ == self.old_function.__module__ def test_is_deprecated_should_wrap_function(self): wrapped = decorators.is_deprecated({}, "Beryllium")(self.old_function) assert wrapped.__module__ == self.old_function.__module__ def test_ensure_unicode_args_should_wrap_function(self): wrapped = decorators.ensure_unicode_args(self.old_function) assert wrapped.__module__ == self.old_function.__module__ def test_ignores_kwargs_should_wrap_function(self): wrapped = decorators.ignores_kwargs("foo", "bar")(self.old_function) assert wrapped.__module__ == self.old_function.__module__ def test_memoize_should_wrap_function(self): wrapped = decorators.memoize(self.old_function) assert wrapped.__module__ == self.old_function.__module__ def timing_should_wrap_function(self): wrapped = decorators.timing(self.old_function) assert wrapped.__module__ == self.old_function.__module__ class DependsDecoratorTest(TestCase): def function(self): return "foo" def test_depends_get_previous_frame(self): """ Confirms that we're not grabbing the entire stack every time the depends decorator is invoked. """ # Simply using True as a conditon; we aren't testing the dependency, # but rather the functions called within the decorator. dep = decorators.depends(True) # By mocking both inspect.stack and inspect.currentframe with # MagicMocks that return themselves, we don't affect normal operation # of the decorator, and at the same time we get to peek at whether or # not either was called. stack_mock = MagicMock(return_value=inspect.stack) currentframe_mock = MagicMock(return_value=inspect.currentframe) with patch.object(inspect, "stack", stack_mock), patch.object( inspect, "currentframe", currentframe_mock ): dep(self.function)() stack_mock.assert_not_called() currentframe_mock.assert_called_once_with()
37.356838
100
0.631699
1,937
17,483
5.420237
0.104801
0.067054
0.047147
0.032575
0.823031
0.805505
0.757501
0.751691
0.740928
0.740928
0
0.001493
0.271864
17,483
467
101
37.436831
0.823252
0.187725
0
0.538462
0
0
0.206024
0
0
0
0
0
0.161172
1
0.124542
false
0
0.025641
0.018315
0.18315
0.003663
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
92edffa76d838df75661dc0c42dc11fb0f96bd25
5,702
py
Python
src/compas_rhino/utilities/__init__.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
src/compas_rhino/utilities/__init__.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
src/compas_rhino/utilities/__init__.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
""" ******************************************************************************** utilities ******************************************************************************** .. currentmodule:: compas_rhino.utilities layers ====== .. autosummary:: :toctree: generated/ :nosignatures: create_layers clear_layers delete_layers objects ======= .. autosummary:: :toctree: generated/ :nosignatures: delete_object delete_objects get_line_coordinates get_objects get_object_attributes get_object_attributes_from_name get_object_layers get_object_types get_object_names get_object_name get_point_coordinates get_polyline_coordinates get_polygon_coordinates purge_objects select_curve select_curves select_line select_lines select_mesh select_meshes select_point select_points select_polygon select_polygons select_polyline select_polylines select_surface select_surfaces drawing ======= .. autosummary:: :toctree: generated/ :nosignatures: draw_labels draw_points draw_lines draw_polylines draw_faces draw_cylinders draw_pipes draw_spheres draw_mesh constructors ============ .. autosummary:: :toctree: generated/ :nosignatures: volmesh_from_polysurfaces """ from __future__ import absolute_import from .document import ( get_document_basename, get_document_filename, get_document_extension, get_document_filepath, get_document_dirname ) from .layers import ( create_layers_from_path, create_layers_from_paths, create_layers_from_dict, create_layers, clear_layer, clear_current_layer, clear_layers, delete_layers ) from .objects import ( find_object, get_objects, get_object_layers, get_object_types, get_object_names, get_object_name, get_object_attributes, get_object_attributes_from_name, delete_object, delete_objects, purge_objects, is_curve_line, is_curve_polyline, is_curve_polygon, get_points, get_curves, get_lines, get_polylines, get_polygons, get_point_coordinates, get_line_coordinates, get_polyline_coordinates, get_polygon_coordinates, get_meshes, get_mesh_face_vertices, get_mesh_vertex_coordinates, get_mesh_vertex_colors, set_mesh_vertex_colors, get_mesh_vertices_and_faces, get_mesh_vertex_index, get_mesh_face_index, get_mesh_edge_index, select_object, select_objects, select_point, select_points, select_curve, select_curves, select_line, select_lines, select_polyline, select_polylines, select_polygon, select_polygons, select_surface, select_surfaces, select_mesh, select_meshes ) from .misc import ( wait, get_tolerance, toggle_toolbargroup, pick_point, browse_for_folder, browse_for_file, print_display_on, display_message, display_text, display_image, display_html, update_settings, update_named_values, screenshot_current_view, select_folder, select_file, unload_modules ) from .drawing import ( draw_labels, draw_points, draw_lines, draw_geodesics, draw_polylines, draw_faces, draw_cylinders, draw_pipes, draw_spheres, draw_mesh, draw_circles ) from .geometry import uv_points_from_surface from .constructors import volmesh_from_polysurfaces __all__ = [ 'get_document_basename', 'get_document_filename', 'get_document_extension', 'get_document_filepath', 'get_document_dirname', 'create_layers_from_path', 'create_layers_from_paths', 'create_layers_from_dict', 'create_layers', 'clear_layer', 'clear_current_layer', 'clear_layers', 'delete_layers', 'find_object', 'get_objects', 'get_object_layers', 'get_object_types', 'get_object_names', 'get_object_name', 'get_object_attributes', 'get_object_attributes_from_name', 'delete_object', 'delete_objects', 'purge_objects', 'is_curve_line', 'is_curve_polyline', 'is_curve_polygon', 'get_points', 'get_curves', 'get_lines', 'get_polylines', 'get_polygons', 'get_point_coordinates', 'get_line_coordinates', 'get_polyline_coordinates', 'get_polygon_coordinates', 'get_meshes', 'get_mesh_face_vertices', 'get_mesh_vertex_coordinates', 'get_mesh_vertex_colors', 'set_mesh_vertex_colors', 'get_mesh_vertices_and_faces', 'get_mesh_vertex_index', 'get_mesh_face_index', 'get_mesh_edge_index', 'select_object', 'select_objects', 'select_point', 'select_points', 'select_curve', 'select_curves', 'select_line', 'select_lines', 'select_polyline', 'select_polylines', 'select_polygon', 'select_polygons', 'select_surface', 'select_surfaces', 'select_mesh', 'select_meshes', 'wait', 'get_tolerance', 'toggle_toolbargroup', 'pick_point', 'browse_for_folder', 'browse_for_file', 'print_display_on', 'display_message', 'display_text', 'display_image', 'display_html', 'update_settings', 'update_named_values', 'screenshot_current_view', 'select_folder', 'select_file', 'unload_modules', 'draw_labels', 'draw_points', 'draw_lines', 'draw_geodesics', 'draw_polylines', 'draw_faces', 'draw_cylinders', 'draw_pipes', 'draw_spheres', 'draw_mesh', 'draw_circles', 'uv_points_from_surface', 'volmesh_from_polysurfaces' ]
20.077465
80
0.675552
613
5,702
5.71615
0.164763
0.046233
0.032534
0.044521
0.819064
0.794806
0.794806
0.771119
0.757991
0.743721
0
0
0.216591
5,702
283
81
20.14841
0.784419
0.237811
0
0
0
0
0.328799
0.112059
0
0
0
0
0
1
0
false
0
0.041026
0
0.041026
0.010256
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
92faa9b89946ca776098c77e7980ba1037b515da
10,387
py
Python
Asi/test/test_drug.py
phac-nml/asipython
47141fc17397a3cbd5f01aa3dc5f111c9ec6776b
[ "Apache-2.0" ]
1
2019-02-06T17:35:18.000Z
2019-02-06T17:35:18.000Z
Asi/test/test_drug.py
phac-nml/asipython
47141fc17397a3cbd5f01aa3dc5f111c9ec6776b
[ "Apache-2.0" ]
null
null
null
Asi/test/test_drug.py
phac-nml/asipython
47141fc17397a3cbd5f01aa3dc5f111c9ec6776b
[ "Apache-2.0" ]
null
null
null
""" Copyright Government of Canada 2018 Written by: Matthew Fogel, National Microbiology Laboratory, Public Health Agency of Canada Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import os from Asi.AsiEvaluationException import AsiEvaluationException from Asi.AsiParsingException import AsiParsingException from Asi.Definition.Gene import Gene from Asi.Evaluate.EvaluatedGene import EvaluatedGene from Asi.Grammar.StringMutationComparator import StringMutationComparator from Asi.XML.XmlAsiTransformer import XmlAsiTransformer class TestDrug: @classmethod def setup_class(cls): cls.strict_comparison = False cls.validate_xml = True cls.gene_name = "RT" cls.mutation_comparator = StringMutationComparator(cls.strict_comparison) cls.mutation_list = "41L,75MA,98G,100I,90M" cls.set_mutations(cls, cls.mutation_list, cls.mutation_comparator) cls.module_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def set_mutations(cls, mutations_string, comparator): """Requires string MutataionsString and MutationComparator""" cls.mutations = mutations_string.split(",") if not comparator.are_mutations_valid(cls.mutations): raise Exception("Mutations are not valid %s" % cls.mutations_string) def test_missing_drug_name(self): """test_missing_drug_name""" try: transformer = XmlAsiTransformer(self.validate_xml) fd = open(os.path.join(self.module_path,"test/data/HIVDB_missingDrugName.xml"), "r") transformer.transform(fd) except AsiParsingException as e: print("testMissingDrugName:\n\t%s" % str(e)) try: actual_err_message = str(e).index("Not a Stanford resistance analysis XML file") except ValueError as v: raise Exception("The following error message was expected: " + "Not a Stanford resistance analysis XML file\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("ex:%s" % str(exc)) raise exc finally: fd.close() def test_missing_drug_name_alg_info(self): """Test missing drug name using get_algorithm_info""" try: transformer = XmlAsiTransformer(self.validate_xml) fd = open(os.path.join(self.module_path,"test/data/HIVDB_missingDrugName.xml"), "r") transformer.get_algorithm_info(fd) except AsiParsingException as e: print("testMissingDrugName:\n\t%s" % str(e)) try: actual_err_message = str(e).index("Not a Stanford resistance analysis XML file") except ValueError as v: raise Exception("The following error message was expected: " + "Not a Stanford resistance analysis XML file\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("ex:%s" % str(exc)) raise exc finally: fd.close() def test_undefined_drug_within_a_drug_class(self): """DLV drug is missing from NNRTI drug class (the drug is associated with no drug class)""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_undefinedDrugWithinDrugClass.xml"), "r") transformer.transform(fd) except AsiParsingException as e: print("testUndefinedDrugWithinADrugClass:\n\t%s" % str(e)) try: actual_err_message = str(e).index("The following drugs have not been associated with a drug class") except ValueError as v: raise Exception("The following error message was expected: " + "The following drugs have not been associated with a drug class\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("testUndefinedDrugWithinADrugClass ex:%s" % str(exc)) raise exc finally: fd.close() def test_undefined_drug_within_a_drug_class_alg_info(self): """DLV drug is missing from NNRTI drug class (the drug is associated with no drug class). Using get_algorithm_info""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_undefinedDrugWithinDrugClass.xml"), "r") transformer.get_algorithm_info(fd) except AsiParsingException as e: print("testUndefinedDrugWithinADrugClass:\n\t%s" % str(e)) try: actual_err_message = str(e).index("The following drugs have not been associated with a drug class") except ValueError as v: raise Exception("The following error message was expected: " + "The following drugs have not been associated with a drug class\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("testUndefinedDrugWithinADrugClass ex:%s" % str(exc)) raise exc finally: fd.close() def test_defined_drug_within_different_drug_classes(self): """DLV drug defined in NNRTI and NRTI drug classes""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_definedDrugWithinDifferentDrugClasses.xml"), "r") transformer.transform(fd) except AsiParsingException as e: print("testDefinedDrugWithinDifferentDrugClasses:\n\t%s" % str(e)) try: actual_err_message = str(e).index("has been defined for more than one drug class") except ValueError as v: raise Exception("The following error message was expected: " + "has been defined for more than one drug class\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("testDefinedDrugWithinDifferentDrugClasses ex:%s" % str(exc)) raise exc finally: fd.close() def test_defined_drug_within_different_drug_classes_alg_info(self): """DLV drug defined in NNRTI and NRTI drug classes. Using get_algorithm_info""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_definedDrugWithinDifferentDrugClasses.xml"), "r") transformer.get_algorithm_info(fd) except AsiParsingException as e: print("testDefinedDrugWithinDifferentDrugClasses:\n\t%s" % str(e)) try: actual_err_message = str(e).index("has been defined for more than one drug class") except ValueError as v: raise Exception("The following error message was expected: " + "has been defined for more than one drug class\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("testDefinedDrugWithinDifferentDrugClasses ex:%s" % str(exc)) raise exc finally: fd.close() def test_undefined_drug(self): """DLV drug is not defined under a DRUG tag""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_undefinedDrug.xml"), "r") transformer.transform(fd) except AsiParsingException as e: print("testUndefinedDrug\n\t" + str(e)) try: actual_err_message = str(e).index("has not been defined as a drug") except ValueError as v: raise Exception("The following error message was expected: " + "has not been defined as a drug\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("ex:" + str(exc)) raise exc finally: fd.close() def test_undefined_drug_alg_info(self): """DLV drug is not defined under a DRUG tag. Using get_algorithm_info""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_undefinedDrug.xml"), "r") transformer.get_algorithm_info(fd) except AsiParsingException as e: print("testUndefinedDrug\n\t" + str(e)) try: actual_err_message = str(e).index("has not been defined as a drug") except ValueError as v: raise Exception("The following error message was expected: " + "has not been defined as a drug\n" + "Instead received:%s" % (str(e))) except Exception as exc: print("ex:" + str(exc)) raise exc finally: fd.close() def test_drug_without_any_rule(self): """DLV drug does not have defined any rule""" try: transformer = XmlAsiTransformer(False) fd = open(os.path.join(self.module_path,"test/data/HIVDB_drugWithoutAnyRule.xml"), "r") gene_dict = transformer.transform(fd) gene = gene_dict.get(self.gene_name) evaluated_gene = gene.evaluate(self.mutations, self.mutation_comparator) print("evaluated gene:" + str(evaluated_gene)) except AsiEvaluationException as e: print("no rules for this drug\n\t" + str(e)) raise e except Exception as exc: print("testDrugWtihoutAnyRule ex:" + str(exc)) raise exc
47.429224
125
0.613844
1,192
10,387
5.241611
0.167785
0.016005
0.011204
0.017286
0.736076
0.713988
0.707586
0.704225
0.704225
0.704225
0
0.002611
0.299316
10,387
218
126
47.646789
0.855867
0.119861
0
0.782123
0
0
0.241303
0.093021
0
0
0
0
0
1
0.061453
false
0
0.039106
0
0.106145
0.106145
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
132c16e0a8815fe3db67dd7178803309b3c2ebc0
217
py
Python
scraper.py
nielsrowinbik/house-finder
6cef57c0adae7611ea44eebfd207d760f0309b6e
[ "MIT" ]
null
null
null
scraper.py
nielsrowinbik/house-finder
6cef57c0adae7611ea44eebfd207d760f0309b6e
[ "MIT" ]
null
null
null
scraper.py
nielsrowinbik/house-finder
6cef57c0adae7611ea44eebfd207d760f0309b6e
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from house import House class Scraper(ABC): @abstractmethod def getHouses(self) -> list[House]: pass def getName(self): return self.__class__.__name__
19.727273
39
0.686636
26
217
5.423077
0.576923
0.241135
0
0
0
0
0
0
0
0
0
0
0.235023
217
10
40
21.7
0.849398
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.125
0.25
0.125
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
6
1342338255f04915398c8de70705e74f3f2b07b6
34
py
Python
AMIT/LAB.py
swapanssmt/sasmit
0fb1a94d26f11c954b4471839490c924426fbd5f
[ "Apache-2.0" ]
null
null
null
AMIT/LAB.py
swapanssmt/sasmit
0fb1a94d26f11c954b4471839490c924426fbd5f
[ "Apache-2.0" ]
null
null
null
AMIT/LAB.py
swapanssmt/sasmit
0fb1a94d26f11c954b4471839490c924426fbd5f
[ "Apache-2.0" ]
null
null
null
import numpy as np print("Hello")
11.333333
18
0.735294
6
34
4.166667
1
0
0
0
0
0
0
0
0
0
0
0
0.147059
34
2
19
17
0.862069
0
0
0
0
0
0.147059
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
1395cd6c6d864b0569bb1e621291c55f74c79902
44
py
Python
dizoo/box2d/lunarlander/envs/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
dizoo/box2d/lunarlander/envs/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
dizoo/box2d/lunarlander/envs/__init__.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
from .lunarlander_env import LunarLanderEnv
22
43
0.886364
5
44
7.6
1
0
0
0
0
0
0
0
0
0
0
0
0.090909
44
1
44
44
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
13e6940399f20acf54bc26c7c35f5adf7910c1b5
107,819
py
Python
prod/services/wms/ows/wms_cfg.py
andrewdhicks/dea-config
65c5ad4c787a485a02a4609301f5eea10dfbb29b
[ "Apache-2.0" ]
null
null
null
prod/services/wms/ows/wms_cfg.py
andrewdhicks/dea-config
65c5ad4c787a485a02a4609301f5eea10dfbb29b
[ "Apache-2.0" ]
null
null
null
prod/services/wms/ows/wms_cfg.py
andrewdhicks/dea-config
65c5ad4c787a485a02a4609301f5eea10dfbb29b
[ "Apache-2.0" ]
null
null
null
# Static config for the wms metadata. response_cfg = { "Access-Control-Allow-Origin": "*", # CORS header } service_cfg = { ## Which web service(s) should be supported by this instance "wcs": True, "wms": True, ## Required config for WMS and/or WCS # Service title - appears e.g. in Terria catalog "title": "Digital Earth Australia - OGC Web Services", # Service URL. Should a fully qualified URL "url": "https://ows.services.dea.ga.gov.au", "human_url": "dea.ga.gov.au/", # Supported co-ordinate reference systems "published_CRSs": { "EPSG:3857": { # Web Mercator "geographic": False, "horizontal_coord": "x", "vertical_coord": "y", }, "EPSG:4326": { # WGS-84 "geographic": True, "vertical_coord_first": True }, "EPSG:3577": { # GDA-94, internal representation "geographic": False, "horizontal_coord": "x", "vertical_coord": "y", }, }, ## Required config for WCS # Must be a geographic CRS in the published_CRSs list. EPSG:4326 is recommended, but any geographic CRS should work. "default_geographic_CRS": "EPSG:4326", # Supported WCS formats "wcs_formats": { # Key is the format name, as used in DescribeCoverage XML "GeoTIFF": { # Renderer is the FQN of a Python function that takes: # * A WCS Request object # * Some ODC data to be rendered. "renderer": "datacube_wms.wcs_utils.get_tiff", # The MIME type of the image, as used in the Http Response. "mime": "image/geotiff", # The file extension to add to the filename. "extension": "tif", # Whether or not the file format supports multiple time slices. "multi-time": False }, "netCDF": { "renderer": "datacube_wms.wcs_utils.get_netcdf", "mime": "application/x-netcdf", "extension": "nc", "multi-time": True, } }, # The native wcs format must be declared in wcs_formats above. "native_wcs_format": "GeoTIFF", ## Optional config for instances supporting WMS # Max tile height/width. If not specified, default to 256x256 "max_width": 512, "max_height": 512, # Optional config for all services (WMS and/or WCS) - may be set to blank/empty, no defaults "abstract": """Digital Earth Australia OGC Web Services""", "keywords": [ "geomedian", "WOfS", "mangrove", "landsat", "australia", "time-series", ], "contact_info": { "person": "Digital Earth Australia", "organisation": "Geoscience Australia", "position": "", "address": { "type": "postal", "address": "GPO Box 378", "city": "Canberra", "state": "ACT", "postcode": "2609", "country": "Australia", }, "telephone": "+61 2 6249 9111", "fax": "", "email": "earth.observation@ga.gov.au", }, "fees": "", "access_constraints": "© Commonwealth of Australia (Geoscience Australia) 2018. " "This product is released under the Creative Commons Attribution 4.0 International Licence. " "http://creativecommons.org/licenses/by/4.0/legalcode", "preauthenticate_s3": True, "geotiff_georeference_source": "INTERNAL" } layer_cfg = [ # Layer Config is a list of platform configs { # Name and title of the platform layer. # Platform layers are not mappable. The name is for internal server use only. "name": "Geomedian_AU_NBART", "title": "Surface Reflectance", "abstract": "Data is only visible at higher resolutions; when zoomed-out the available area will be displayed " "as a shaded region. The surface reflectance geometric median (geomedian) is a pixel composite " "mosaic of a time series of earth observations. The value of a pixel in a an annual geomedian " "image is the statistical median of all observations for that pixel from a calendar year. " "Annual mosaics are available for the following years: " "Landsat 5: 1988 to 1999, 2004 to 2007, 2009 to 2011; " "Landsat 7: 2000 to 2017; " "Landsat 8: 2013 to 2017; " "For more information, see http://pid.geoscience.gov.au/dataset/ga/120374", # Products available for this platform. # For each product, the "name" is the Datacube name, and the label is used # to describe the label to end-users. "products": [ { # Included as a keyword for the layer "label": "Landsat 8", # Included as a keyword for the layer "type": "Annual Geomedian", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "ls8_nbart_geomedian_annual", # The Datacube name for the associated data product "product_name": "ls8_nbart_geomedian_annual", # The Datacube name for the associated pixel-quality product (optional) # The name of the associated Datacube pixel-quality product # "pq_dataset": "ls8_level1_usgs", # The name of the measurement band for the pixel-quality product # (Only required if pq_dataset is set) # "pq_manual_data_merge": True, # "data_manual_merge": True, # "pq_band": "quality", # "always_fetch_bands": [ "quality" ], # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 35.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: data[band] != data[band].attrs['nodata'], # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "data_manual_merge": True, "always_fetch_bands": [ ], "apply_solar_corrections": False, # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi", "ndwi"] }, # A function that extracts the "sub-product" id (e.g. path number) from a dataset. Function should return a (small) integer # If None or not specified, the product has no sub-layers. # "sub_product_extractor": lambda ds: int(s3_path_pattern.search(ds.uris[0]).group("path")), # A prefix used to describe the sub-layer in the GetCapabilities response. # E.g. sub-layer 109 will be described as "Landsat Path 109" # "sub_product_label": "Landsat Path", # Bands to include in time-dimension "pixel drill". # Don't activate in production unless you really know what you're doing. # "band_drill": ["nir", "red", "green", "blue"], # Styles. # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "red": 1.0 }, "green": { "green": 1.0 }, "blue": { "blue": 1.0 } }, # The raw band value range to be compressed to an 8 bit range for the output image tiles. # Band values outside this range are clipped to 0 or 255 as appropriate. "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "swir1": 1.0 }, "green": { "nir": 1.0 }, "blue": { "green": 1.0 } }, "scale_range": [0.0, 3000.0] }, # # Examples of non-linear heat-mapped styles. { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nir"] - data["red"]) / (data["nir"] + data["red"]), "needed_bands": ["red", "nir"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] }, { "name": "ndwi", "title": "NDWI - Green, SWIR", "abstract": "Normalised Difference Water Index - a derived index that correlates well with the existence of water", "index_function": lambda data: (data["green"] - data["swir1"]) / (data["swir1"] + data["green"]), "needed_bands": ["green", "swir1"], "color_ramp": [ { "value": -1.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 1.0, "color": "#0303FF", }, ] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", }, { # Included as a keyword for the layer "label": "Landsat 7", # Included as a keyword for the layer "type": "Annual Geomedian", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "ls7_nbart_geomedian_annual", # The Datacube name for the associated data product "product_name": "ls7_nbart_geomedian_annual", # The Datacube name for the associated pixel-quality product (optional) # The name of the associated Datacube pixel-quality product # "pq_dataset": "ls8_level1_usgs", # The name of the measurement band for the pixel-quality product # (Only required if pq_dataset is set) # "pq_manual_data_merge": True, # "data_manual_merge": True, # "pq_band": "quality", # "always_fetch_bands": [ "quality" ], # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 35.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: data[band] != data[band].attrs['nodata'], # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "data_manual_merge": True, "always_fetch_bands": [], "apply_solar_corrections": False, # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi", "ndwi"] }, # A function that extracts the "sub-product" id (e.g. path number) from a dataset. Function should return a (small) integer # If None or not specified, the product has no sub-layers. # "sub_product_extractor": lambda ds: int(s3_path_pattern.search(ds.uris[0]).group("path")), # A prefix used to describe the sub-layer in the GetCapabilities response. # E.g. sub-layer 109 will be described as "Landsat Path 109" # "sub_product_label": "Landsat Path", # Bands to include in time-dimension "pixel drill". # Don't activate in production unless you really know what you're doing. # "band_drill": ["nir", "red", "green", "blue"], # Styles. # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "red": 1.0 }, "green": { "green": 1.0 }, "blue": { "blue": 1.0 } }, # The raw band value range to be compressed to an 8 bit range for the output image tiles. # Band values outside this range are clipped to 0 or 255 as appropriate. "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "swir1": 1.0 }, "green": { "nir": 1.0 }, "blue": { "green": 1.0 } }, "scale_range": [0.0, 3000.0] }, # # Examples of non-linear heat-mapped styles. { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nir"] - data["red"]) / (data["nir"] + data["red"]), "needed_bands": ["red", "nir"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] }, { "name": "ndwi", "title": "NDWI - Green, SWIR", "abstract": "Normalised Difference Water Index - a derived index that correlates well with the existence of water", "index_function": lambda data: (data["green"] - data["swir1"]) / (data["swir1"] + data["green"]), "needed_bands": ["green", "swir1"], "color_ramp": [ { "value": -1.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 1.0, "color": "#0303FF", }, ] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", }, { # Included as a keyword for the layer "label": "Landsat 5", # Included as a keyword for the layer "type": "Annual Geomedian", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "ls5_nbart_geomedian_annual", # The Datacube name for the associated data product "product_name": "ls5_nbart_geomedian_annual", # The Datacube name for the associated pixel-quality product (optional) # The name of the associated Datacube pixel-quality product # "pq_dataset": "ls8_level1_usgs", # The name of the measurement band for the pixel-quality product # (Only required if pq_dataset is set) # "pq_manual_data_merge": True, # "data_manual_merge": True, # "pq_band": "quality", # "always_fetch_bands": [ "quality" ], # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 35.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: data[band] != data[band].attrs['nodata'], # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "data_manual_merge": True, "always_fetch_bands": [], "apply_solar_corrections": False, # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi", "ndwi"] }, # A function that extracts the "sub-product" id (e.g. path number) from a dataset. Function should return a (small) integer # If None or not specified, the product has no sub-layers. # "sub_product_extractor": lambda ds: int(s3_path_pattern.search(ds.uris[0]).group("path")), # A prefix used to describe the sub-layer in the GetCapabilities response. # E.g. sub-layer 109 will be described as "Landsat Path 109" # "sub_product_label": "Landsat Path", # Bands to include in time-dimension "pixel drill". # Don't activate in production unless you really know what you're doing. # "band_drill": ["nir", "red", "green", "blue"], # Styles. # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "red": 1.0 }, "green": { "green": 1.0 }, "blue": { "blue": 1.0 } }, # The raw band value range to be compressed to an 8 bit range for the output image tiles. # Band values outside this range are clipped to 0 or 255 as appropriate. "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "swir1": 1.0 }, "green": { "nir": 1.0 }, "blue": { "green": 1.0 } }, "scale_range": [0.0, 3000.0] }, # # Examples of non-linear heat-mapped styles. { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nir"] - data["red"]) / (data["nir"] + data["red"]), "needed_bands": ["red", "nir"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] }, { "name": "ndwi", "title": "NDWI - Green, SWIR", "abstract": "Normalised Difference Water Index - a derived index that correlates well with the existence of water", "index_function": lambda data: (data["green"] - data["swir1"]) / (data["swir1"] + data["green"]), "needed_bands": ["green", "swir1"], "color_ramp": [ { "value": -1.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 1.0, "color": "#0303FF", }, ] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", } ] }, { # Name and title of the platform layer. # Platform layers are not mappable. The name is for internal server use only. "name": "landsat8_barest_earth", "title": "Barest Earth", "abstract": """ A `weighted geometric median’ approach has been used to estimate the median surface reflectance of the barest state (i.e., least vegetation) observed through Landsat-8 OLI observations from 2013 to September 2018 to generate a six-band Landsat-8 Barest Earth pixel composite mosaic over the Australian continent. The bands include BLUE (0.452 - 0.512), GREEN (0.533 - 0.590), RED, (0.636 - 0.673) NIR (0.851 - 0.879), SWIR1 (1.566 - 1.651) and SWIR2 (2.107 - 2.294) wavelength regions. The weighted median approach is robust to outliers (such as cloud, shadows, saturation, corrupted pixels) and also maintains the relationship between all the spectral wavelengths in the spectra observed through time. The product reduces the influence of vegetation and allows for more direct mapping of soil and rock mineralogy. Reference: Dale Roberts, John Wilford, and Omar Ghattas (2018). Revealing the Australian Continent at its Barest, submitted. Mosaics are available for the following years: Landsat 8: 2013 to 2017;""", # Products available for this platform. # For each product, the "name" is the Datacube name, and the label is used # to describe the label to end-users. "products": [ { # Included as a keyword for the layer "label": "Landsat 8", # Included as a keyword for the layer "type": "Barest Earth", # Included as a keyword for the layer "variant": "25m", "abstract": """ A `weighted geometric median’ approach has been used to estimate the median surface reflectance of the barest state (i.e., least vegetation) observed through Landsat-8 OLI observations from 2013 to September 2018 to generate a six-band Landsat-8 Barest Earth pixel composite mosaic over the Australian continent. The bands include BLUE (0.452 - 0.512), GREEN (0.533 - 0.590), RED, (0.636 - 0.673) NIR (0.851 - 0.879), SWIR1 (1.566 - 1.651) and SWIR2 (2.107 - 2.294) wavelength regions. The weighted median approach is robust to outliers (such as cloud, shadows, saturation, corrupted pixels) and also maintains the relationship between all the spectral wavelengths in the spectra observed through time. The product reduces the influence of vegetation and allows for more direct mapping of soil and rock mineralogy. Reference: Dale Roberts, John Wilford, and Omar Ghattas (2018). Revealing the Australian Continent at its Barest, submitted. Mosaics are available for the following years: Landsat 8: 2013 to 2017;""", # The WMS name for the layer "name": "ls8_barest_earth_mosaic", # The Datacube name for the associated data product "product_name": "ls8_barest_earth_mosaic", # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 500.0, "max_datasets_wms": 1000, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: data[band] != data[band].attrs['nodata'], # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "data_manual_merge": True, "always_fetch_bands": [], "apply_solar_corrections": False, # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi"] }, # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "red": 1.0 }, "green": { "green": 1.0 }, "blue": { "blue": 1.0 } }, # The raw band value range to be compressed to an 8 bit range for the output image tiles. # Band values outside this range are clipped to 0 or 255 as appropriate. "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "swir1": 1.0 }, "green": { "nir": 1.0 }, "blue": { "green": 1.0 } }, "scale_range": [0.0, 3000.0] }, { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nir"] - data["red"]) / (data["nir"] + data["red"]), "needed_bands": ["red", "nir"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] } ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", } ] }, { "name": "mangrove_cover", "title": "Mangrove Canopy Cover", "abstract": "", "products": [ { "label": "Mangrove Canopy Cover", "abstract": """ Mangrove canopy cover version 1, 25 metre, 100km tile, Australian Albers Equal Area projection (EPSG:3577). Data is only visible at higher resolutions; when zoomed-out the available area will be displayed as a shaded region. The mangrove canopy cover product provides valuable information about the extent and canopy density of mangroves for each year between 1987 and 2016 for the entire Australian coastline. The canopy cover classes are: 20-50% (pale green), 50-80% (mid green), 80-100% (dark green). The product consists of a sequence (one per year) of 25 meter resolution maps that are generated by analysing the Landsat fractional cover (https://doi.org/10.6084/m9.figshare.94250.v1) developed by the Joint Remote Sensing Research Program and the Global Mangrove Watch layers (https://doi.org/10.1071/MF13177) developed by the Japanese Aerospace Exploration Agency. The mangrove canopy cover version 1 product has the following caveats: it underestimates the overall extent of mangroves. it doesn’t detect small mangrove communities i.e. smaller estuaries in NSW and Victoria that there is localised confusion between mangroves and wooded freshwater wetlands i.e. Melaleuca swamps, and in some locations dense dwarf/shrub mangroves that are less than 2 metres tall may be mis-labelled as woodland/open forest/closed forest.""", "type": "100km tile", "variant": "25m", "name": "mangrove_cover", "product_name": "mangrove_cover", "min_zoom_factor": 15.0, "zoomed_out_fill_colour": [150, 180, 200, 160], "time_zone": 9, "extent_mask_func": lambda data, band: data["extent"] == 1, "ignore_info_flags": [], "data_manual_merge": False, "always_fetch_bands": ["extent"], "apply_solar_corrections": False, "legend": { "styles": ["mangrove"] }, "styles": [ { "name": "mangrove", "title": "Mangrove Cover", "abstract": "", "value_map": { "canopy_cover_class": [ { "title": "Woodland", "abstract": "(20% - 50% cover)", "flags": { "woodland": True }, "color": "#9FFF4C" }, { "title": "Open Forest", "abstract": "(50% - 80% cover)", "flags": { "open_forest": True }, "color": "#5ECC00" }, { "title": "Closed Forest", "abstract": "(>80% cover)", "flags": { "closed_forest": True }, "color": "#3B7F00" }, ] } } ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "mangrove", }, ] }, { # Name and title of the platform layer. # Platform layers are not mappable. The name is for internal server use only. "name": "WOfS", "title": "Water Observations from Space", "abstract": "WOfS", # Products available for this platform. # For each product, the "name" is the Datacube name, and the label is used # to describe the label to end-users. "products": [ { # Included as a keyword for the layer "label": "WOfS Filtered Statistics", # Included as a keyword for the layer "type": "Filtered Water Summary", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "wofs_filtered_summary", # The Datacube name for the associated data product "product_name": "wofs_filtered_summary", "abstract": """ Water Observations from Space - Filtered Statistics is a set of statistical summaries of the water observations contained in Water Observations from Space. This product is Water Observations from Space - Filtered Statistics, consisting of a Confidence layer that compares the Water Observations from Space - Statistics water summary to other national water datasets, and the Filtered Water Summary which uses the Confidence to mask areas of the Water Observations from Space - Statistics water summary where Confidence is low. The Filtered Water Summary provides the long term understanding of the recurrence of water in the landscape, with much of the noise due to misclassification filtered out. This layer is Filtered Water Summary: A simplified version of the Water Summary, showing the frequency of water observations where the Confidence is above a cutoff level. This layer gives a noise-reduced view of surface water across Australia. Even though confidence filtering is applied to the Filtered Water Summary, some cloud and shadow, and sensor noise does persist. For more information please see: http://dea-public-data.s3-ap-southeast-2.amazonaws.com/WOfS/filtered_summary/v2.1.0/Product%20Description.pdf""", "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "legend": { # "url": "" "styles": ["WOfS_filtered_frequency"] }, "styles": [ { "name": "WOfS_filtered_frequency", "title": "Filtered Water Summary", "abstract": "WOfS filtered summary showing the frequency of Wetness", "needed_bands": ["wofs_filtered_summary"], "color_ramp": [ { "value": 0.0, "color": "#000000", "alpha": 0.0 }, { "value": 0.002, "color": "#000000", "alpha": 0.0 }, { "value": 0.005, "color": "#8e0101", "alpha": 0.25 }, { "value": 0.01, "color": "#cf2200", "alpha": 0.75 }, { "value": 0.02, "color": "#e38400" }, { "value": 0.05, "color": "#e3df00" }, { "value": 0.1, "color": "#a6e300" }, { "value": 0.2, "color": "#62e300" }, { "value": 0.3, "color": "#00e32d" }, { "value": 0.4, "color": "#00e384" }, { "value": 0.5, "color": "#00e3c8" }, { "value": 0.6, "color": "#00c5e3" }, { "value": 0.7, "color": "#0097e3" }, { "value": 0.8, "color": "#005fe3" }, { "value": 0.9, "color": "#000fe3" }, { "value": 1.0, "color": "#5700e3" } ], "legend": { "units": "%", "radix_point": 0, "scale_by": 100.0, "major_ticks": 0.1 } } ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "WOfS_filtered_frequency", }, { # Included as a keyword for the layer "label": "WOfS Statistics", # Included as a keyword for the layer "type": "Wet Count", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "wofs_summary_wet", # The Datacube name for the associated data product "product_name": "wofs_summary", "abstract": """ Water Observations from Space - Statistics is a set of statistical summaries of the water observations contained in WOfS. The layers available are: the count of clear observations; the count of wet observations; the percentage of wet observations over time. This product is Water Observations from Space - Statistics, a set of statistical summaries of the WOfS product that combines the many years of WOfS observations into summary products that help the understanding of surface water across Australia. As no confidence filtering is applied to this product, it is affected by noise where misclassifications have occurred in the WOfS water classifications, and hence can be difficult to interpret on its own. The confidence layer and filtered summary are contained in the Water Observations from Space Statistics - Filtered Summary product, which provide a noise-reduced view of the water summary. This layer contains Wet Count: how many times water was detected in observations that were clear For more information please see: http://dea-public-data.s3-ap-southeast-2.amazonaws.com/WOfS/summary/v2.1.0/Product%20Description.pdf""", "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "legend": { # "url": "" "styles": ["water_observations"] }, "styles": [ { "name": "water_observations", "title": "Wet Count", "abstract": "WOfS summary showing the count of water observations", "needed_bands": ["count_wet"], "color_ramp": [ { "value": 0, "color": "#666666", "alpha": 0 }, { "value": 2, "color": "#890000" }, { "value": 5, "color": "#990000" }, { "value": 10, "color": "#E38400" }, { "value": 25, "color": "#E3DF00" }, { "value": 50, "color": "#A6E300" }, { "value": 100, "color": "#00E32D" }, { "value": 150, "color": "#00E3C8" }, { "value": 200, "color": "#0097E3" }, { "value": 250, "color": "#005FE3" }, { "value": 300, "color": "#000FE3" }, { "value": 350, "color": "#000EA9" }, { "value": 400, "color": "#5700E3", "legend": { "prefix": ">" } } ], "legend": { "radix_point": 0, "scale_by": 1, "major_ticks": 100 } } ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "water_observations", }, { # Included as a keyword for the layer "label": "WOfS Statistics", # Included as a keyword for the layer "type": "Clear Count", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "wofs_summary_clear", # The Datacube name for the associated data product "product_name": "wofs_summary", "abstract": """ Water Observations from Space - Statistics is a set of statistical summaries of the water observations contained in WOfS. The layers available are: the count of clear observations; the count of wet observations; the percentage of wet observations over time. This product is Water Observations from Space - Statistics, a set of statistical summaries of the WOfS product that combines the many years of WOfS observations into summary products that help the understanding of surface water across Australia. As no confidence filtering is applied to this product, it is affected by noise where misclassifications have occurred in the WOfS water classifications, and hence can be difficult to interpret on its own. The confidence layer and filtered summary are contained in the Water Observations from Space Statistics - Filtered Summary product, which provide a noise-reduced view of the water summary. This layer contains Clear Count: how many times an area could be clearly seen (ie. not affected by clouds, shadows or other satellite observation problems) For more information please see: http://dea-public-data.s3-ap-southeast-2.amazonaws.com/WOfS/summary/v2.1.0/Product%20Description.pdf""", "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "legend": { # "url": "" "styles": ["clear_observations"] }, "styles": [ { "name": "clear_observations", "title": "Clear Count", "abstract": "WOfS summary showing the count of clear observations", "needed_bands": ["count_clear"], "color_ramp": [ { "value": 0, "color": "#FFFFFF", "alpha": 0 }, { "value": 10, "color": "#B21800" }, { "value": 25, "color": "#FF4400" }, { "value": 50, "color": "#FF8000" }, { "value": 100, "color": "#FFA200" }, { "value": 150, "color": "#FFC000" }, { "value": 200, "color": "#FFD500" }, { "value": 250, "color": "#FFF300" }, { "value": 300, "color": "#E6FF00" }, { "value": 350, "color": "#BCFF00" }, { "value": 400, "color": "#89FF00" }, { "value": 500, "color": "#68C400" }, { "value": 600, "color": "#44C400" }, { "value": 700, "color": "#03B500" }, { "value": 800, "color": "#039500" }, { "value": 1000, "color": "#026900", "legend": { "prefix": ">" } } ], "legend": { "radix_point": 0, "scale_by": 1, "major_ticks": 100, "axes_position": [0.05, 0.5, 0.89, 0.15] } }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "clear_observations", }, { # Included as a keyword for the layer "label": "WOfS Statistics", # Included as a keyword for the layer "type": "Water Summary", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "Water Observations from Space Statistics", # The Datacube name for the associated data product "product_name": "wofs_summary", "abstract": """ Water Observations from Space - Statistics is a set of statistical summaries of the water observations contained in WOfS. The layers available are: the count of clear observations; the count of wet observations; the percentage of wet observations over time. This product is Water Observations from Space - Statistics, a set of statistical summaries of the WOfS product that combines the many years of WOfS observations into summary products that help the understanding of surface water across Australia. As no confidence filtering is applied to this product, it is affected by noise where misclassifications have occurred in the WOfS water classifications, and hence can be difficult to interpret on its own. The confidence layer and filtered summary are contained in the Water Observations from Space Statistics - Filtered Summary product, which provide a noise-reduced view of the water summary. This layer contains Water Summary: what percentage of clear observations were detected as wet (ie. the ratio of wet to clear as a percentage) For more information please see: http://dea-public-data.s3-ap-southeast-2.amazonaws.com/WOfS/summary/v2.1.0/Product%20Description.pdf""", "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "legend": { # "url": "" "styles": ["WOfS_frequency"] }, "styles": [ { "name": "WOfS_frequency", "title": " Water Summary", "abstract": "WOfS summary showing the frequency of Wetness", "needed_bands": ["frequency"], "color_ramp": [ { "value": 0.0, "color": "#000000", "alpha": 0.0 }, { "value": 0.002, "color": "#000000", "alpha": 0.0 }, { "value": 0.005, "color": "#8e0101", "alpha": 0.25 }, { "value": 0.01, "color": "#cf2200", "alpha": 0.75 }, { "value": 0.02, "color": "#e38400" }, { "value": 0.05, "color": "#e3df00" }, { "value": 0.1, "color": "#a6e300" }, { "value": 0.2, "color": "#62e300" }, { "value": 0.3, "color": "#00e32d" }, { "value": 0.4, "color": "#00e384" }, { "value": 0.5, "color": "#00e3c8" }, { "value": 0.6, "color": "#00c5e3" }, { "value": 0.7, "color": "#0097e3" }, { "value": 0.8, "color": "#005fe3" }, { "value": 0.9, "color": "#000fe3" }, { "value": 1.0, "color": "#5700e3" } ], "legend": { "units": "%", "radix_point": 0, "scale_by": 100.0, "major_ticks": 0.1 } }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "WOfS_frequency", }, { # Included as a keyword for the layer "label": "WOfS Filtered Statistics", # Included as a keyword for the layer "type": "Confidence", # Included as a keyword for the layer "variant": "25m", # The WMS name for the layer "name": "wofs_filtered_summary_confidence", # The Datacube name for the associated data product "product_name": "wofs_filtered_summary", "abstract": """ Water Observations from Space - Filtered Statistics is a set of statistical summaries of the water observations contained in Water Observations from Space. This product is Water Observations from Space - Filtered Statistics, consisting of a Confidence layer that compares the Water Observations from Space - Statistics water summary to other national water datasets, and the Filtered Water Summary which uses the Confidence to mask areas of the Water Observations from Space - Statistics water summary where Confidence is low. The Filtered Water Summary provides the long term understanding of the recurrence of water in the landscape, with much of the noise due to misclassification filtered out. This layer is Confidence: the degree of agreement between water shown in the Water Summary and other national datasets. The Confidence layer provides understanding of whether the water shown in the Water Summary agrees with where water should exist in the landscape, such as due to sloping land or whether water has been detected in a location by other means. For more information please see: http://dea-public-data.s3-ap-southeast-2.amazonaws.com/WOfS/filtered_summary/v2.1.0/Product%20Description.pdf""", "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], "legend": { # "url": "" "styles": ["wofs_confidence"] }, "styles": [ { "name": "wofs_confidence", "title": "Confidence", "abstract": "WOfS Confidence", "needed_bands": ["confidence"], "color_ramp": [ { "value": 0, "color": "#FFFFFF", "alpha": 0 }, { "value": 0.01, "color": "#000000" }, { "value": 0.02, "color": "#990000" }, { "value": 0.05, "color": "#CF2200" }, { "value": 0.1, "color": "#E38400" }, { "value": 0.25, "color": "#E3DF00" }, { "value": 0.5, "color": "#A6E300" }, { "value": 0.75, "color": "#62E300" }, { "value": 1.0, "color": "#00E32D" } ], "legend": { "units": "%", "radix_point": 0, "scale_by": 100.0, "major_ticks": 0.25 } } ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "wofs_confidence", } ], }, { # Name and title of the platform layer. # Platform layers are not mappable. The name is for internal server use only. "name": "Sentinel-2 NRT", "title": "Near Real-Time", "abstract": "This is a 30-day rolling archive of daily Sentinel-2 Near Real Time data. " "Data is only visible at higher resolutions: when zoomed-out the available areas for that day " "will be displayed as shaded regions. The Near Real-Time capability provides analysis-ready data " "that is processed on receipt using the best-available ancillary information at the time to " "provide atmospheric corrections. For more information see " "http://pid.geoscience.gov.au/dataset/ga/122229", # Products available for this platform. # For each product, the "name" is the Datacube name, and the label is used # to describe the label to end-users. "products": [ { # Included as a keyword for the layer "label": "Sentinel 2B", # Included as a keyword for the layer "type": "", # Included as a keyword for the layer "variant": "Surface Reflectance", "abstract":""" This is a 30-day rolling archive of daily Sentinel-2 Near Real Time data. Data is only visible at higher resolutions: when zoomed-out the available areas for that day will be displayed as shaded regions. The Near Real-Time capability provides analysis-ready data that is processed on receipt using the best-available ancillary information at the time to provide atmospheric corrections. For more information see http://pid.geoscience.gov.au/dataset/ga/122229""", # The WMS name for the layer "name": "s2b_nrt_granule_nbar_t", # The Datacube name for the associated data product "product_name": "s2b_nrt_granule", # The Datacube name for the associated pixel-quality product (optional) # The name of the associated Datacube pixel-quality product # "pq_dataset": "s2b_nrt_granule", # The name of the measurement band for the pixel-quality product # (Only required if pq_dataset is set) # "pq_band": "pixel_quality", # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi", "ndwi"] }, # Styles. # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "nbart_red": 1.0 }, "green": { "nbart_green": 1.0 }, "blue": { "nbart_blue": 1.0 } }, "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "nbart_swir_2": 1.0 }, "green": { "nbart_nir_1": 1.0 }, "blue": { "nbart_green": 1.0 } }, "scale_range": [0.0, 3000.0] }, { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nbart_nir_1"] - data["nbart_red"]) / ( data["nbart_nir_1"] + data["nbart_red"]), "needed_bands": ["nbart_red", "nbart_nir_1"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] }, { "name": "ndwi", "title": "NDWI - Green, SWIR", "abstract": "Normalised Difference Water Index - a derived index that correlates well with the existence of water", "index_function": lambda data: (data["nbart_green"] - data["nbart_nir_1"]) / ( data["nbart_nir_1"] + data["nbart_green"]), "needed_bands": ["nbart_green", "nbart_nir_1"], "color_ramp": [ { "value": -1.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 1.0, "color": "#0303FF", }, ] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", }, { # Included as a keyword for the layer "label": "Sentinel 2A", # Included as a keyword for the layer "type": "", # Included as a keyword for the layer "variant": "Surface Reflectance", "abstract": """ This is a 30-day rolling archive of daily Sentinel-2 Near Real Time data. Data is only visible at higher resolutions: when zoomed-out the available areas for that day will be displayed as shaded regions. The Near Real-Time capability provides analysis-ready data that is processed on receipt using the best-available ancillary information at the time to provide atmospheric corrections. For more information see http://pid.geoscience.gov.au/dataset/ga/122229""", # The WMS name for the layer "name": "s2a_nrt_granule_nbar_t", # The Datacube name for the associated data product "product_name": "s2a_nrt_granule", # The Datacube name for the associated pixel-quality product (optional) # The name of the associated Datacube pixel-quality product # "pq_dataset": "s2b_nrt_granule", # The name of the measurement band for the pixel-quality product # (Only required if pq_dataset is set) # "pq_band": "pixel_quality", # Min zoom factor - sets the zoom level where the cutover from indicative polygons # to actual imagery occurs. "min_zoom_factor": 15.0, # The fill-colour of the indicative polygons when zoomed out. # Triplets (rgb) or quadruplets (rgba) of integers 0-255. "zoomed_out_fill_colour": [150, 180, 200, 160], # Time Zone. In hours added to UTC (maybe negative) # Used for rounding off scene times to a date. # 9 is good value for imagery of Australia. "time_zone": 9, # Extent mask function # Determines what portions of dataset is potentially meaningful data. "extent_mask_func": lambda data, band: (data[band] != data[band].attrs['nodata']), # Flags listed here are ignored in GetFeatureInfo requests. # (defaults to empty list) "ignore_info_flags": [], # Define layer wide legend graphic if no style is passed # to GetLegendGraphic "legend": { # "url": "" "styles": ["ndvi", "ndwi"] }, # Styles. # # See band_mapper.py # # The various available spectral bands, and ways to combine them # into a single rgb image. # The examples here are ad hoc # "styles": [ # Examples of styles which are linear combinations of the available spectral bands. # { "name": "simple_rgb", "title": "Simple RGB", "abstract": "Simple true-colour image, using the red, green and blue bands", "components": { "red": { "nbart_red": 1.0 }, "green": { "nbart_green": 1.0 }, "blue": { "nbart_blue": 1.0 } }, "scale_range": [0.0, 3000.0] }, { "name": "infrared_green", "title": "False colour - Green, SWIR, NIR", "abstract": "False Colour image with SWIR1->Red, NIR->Green, and Green->Blue", "components": { "red": { "nbart_swir_2": 1.0 }, "green": { "nbart_nir_1": 1.0 }, "blue": { "nbart_green": 1.0 } }, "scale_range": [0.0, 3000.0] }, { "name": "ndvi", "title": "NDVI - Red, NIR", "abstract": "Normalised Difference Vegetation Index - a derived index that correlates well with the existence of vegetation", "index_function": lambda data: (data["nbart_nir_1"] - data["nbart_red"]) / ( data["nbart_nir_1"] + data["nbart_red"]), "needed_bands": ["nbart_red", "nbart_nir_1"], "color_ramp": [ { "value": -1.0, "color": "#FFFFFF", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 0.1, "color": "#A35F18" }, { "value": 0.2, "color": "#B88512" }, { "value": 0.3, "color": "#CEAC0E" }, { "value": 0.4, "color": "#E5D609" }, { "value": 0.5, "color": "#FFFF0C" }, { "value": 0.6, "color": "#C3DE09" }, { "value": 0.7, "color": "#88B808" }, { "value": 0.8, "color": "#529400" }, { "value": 0.9, "color": "#237100" }, { "value": 1.0, "color": "#114D04" } ] }, { "name": "ndwi", "title": "NDWI - Green, SWIR", "abstract": "Normalised Difference Water Index - a derived index that correlates well with the existence of water", "index_function": lambda data: (data["nbart_green"] - data["nbart_nir_1"]) / ( data["nbart_nir_1"] + data["nbart_green"]), "needed_bands": ["nbart_green", "nbart_nir_1"], "color_ramp": [ { "value": -1.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": -0.0, "color": "#8F3F20", "alpha": 0.0 }, { "value": 0.0, "color": "#8F3F20", "alpha": 1.0 }, { "value": 1.0, "color": "#0303FF", }, ] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "simple_rgb", }, ], }, { "name": "multi_scale_topographic_position", "title": "Multi-Scale Topographic Position", "abstract": "", "products": [ { "label": "Multi-Scale Topographic Position", "abstract": """A Multi-scale topographic position image of Australia has been generated by combining a topographic position index and topographic ruggedness. Topographic Position Index (TPI) measures the topographic slope position of landforms. Ruggedness informs on the roughness of the surface and is calculated as the standard deviation of elevations. Both these terrain attributes are therefore scale dependent and will vary according to the size of the analysis window. Based on an algorithm developed by Lindsay et al. (2015) we have generated multi-scale topographic position model over the Australian continent using 3 second resolution (~90m) DEM derived from the Shuttle Radar Topography Mission (SRTM). The algorithm calculates topographic position scaled by the corresponding ruggedness across three spatial scales (window sizes) of 0.2-8.1 Km; 8.2-65.2 Km and 65.6-147.6 Km. The derived ternary image captures variations in topographic position across these spatial scales (blue local, green intermediate and red regional) and gives a rich representation of nested landform features that have broad application in understanding geomorphological and hydrological processes and in mapping regolith and soils over the Australian continent. Lindsay, J, B., Cockburn, J.M.H. and Russell, H.A.J. 2015. An integral image approach to performing multi-scale topographic position analysis, Geomorphology 245, 51–61.""", "type": "1 degree tile", "variant": "", "name": "multi_scale_topographic_position", "product_name": "multi_scale_topographic_position", "min_zoom_factor": 15.0, "zoomed_out_fill_colour": [150, 180, 200, 160], "time_zone": 9, "extent_mask_func": lambda data, band: data[band] != data[band].nodata, "ignore_info_flags": [], "data_manual_merge": False, "always_fetch_bands": ["regional", "intermediate", "local"], "apply_solar_corrections": False, "legend": { "url": "https://s3-ap-southeast-2.amazonaws.com/dea-public-data/multi-scale-topographic-position/mstp_legend.png", # "styles": ["mstp_rgb"] }, "styles": [ { "name": "mstp_rgb", "title": "Multi-scale Topographic Position", "abstract": "red regional, green intermediate and blue local", "components": { "red": { "regional": 1.0 }, "green": { "intermediate": 1.0 }, "blue": { "local": 1.0 } }, # The raw band value range to be compressed to an 8 bit range for the output image tiles. # Band values outside this range are clipped to 0 or 255 as appropriate. "scale_range": [0.0, 255.0] }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "mstp_rgb", }, ] }, { "name": "weathering_intensity", "title": "Weathering Intensity", "abstract": "", "products": [ { "label": "Weathering Intensity", "abstract": "Weathering intensity or the degree of weathering is an important characteristic of the " "earth’s surface that has a significant influence on the chemical and physical properties " "of surface materials. Weathering intensity largely controls the degree to which primary " "minerals are altered to secondary components including clay minerals and oxides. The " "degree of surface weathering is particularly important in Australia where variations in " "weathering intensity correspond to the nature and distribution of regolith (weathered " "bedrock and sediments) which mantles approximately 90% of the Australian continent. The " "weathering intensity prediction has been generated using the Random Forest decision tree " "machine learning algorithm. The algorithm is used to establish predictive relationships " "between field estimates of the degree of weathering and a comprehensive suite of " "covariate or predictive datasets. The covariates used to generate the model include " "satellite imagery, terrain attributes, airborne radiometric imagery and mapped geology. " "Correlations between the training dataset and the covariates were explored through the " "generation of 300 random tree models. An r-squared correlation of 0.85 is reported using " "5 K-fold cross-validation. The mean of the 300 models is used for predicting the " "weathering intensity and the uncertainty in the weathering intensity is estimated at " "each location via the standard deviation in the 300 model values. The predictive " "weathering intensity model is an estimate of the degree of surface weathering only. The " "interpretation of the weathering intensity is different for in-situ or residual " "landscapes compared with transported materials within depositional landscapes. In " "residual landscapes, weathering process are operating locally whereas in depositional " "landscapes the model is reflecting the degree of weathering either prior to erosion and " "subsequent deposition, or weathering of sediments after being deposited. The weathering " "intensity model has broad utility in assisting mineral exploration in variably weathered " "geochemical landscapes across the Australian continent, mapping chemical and physical " "attributes of soils in agricultural landscapes and in understanding the nature and " "distribution of weathering processes occurring within the upper regolith.", "type": "1 degree tile", "variant": "", "name": "weathering_intensity", "product_name": "weathering_intensity", "min_zoom_factor": 15.0, "zoomed_out_fill_colour": [150, 180, 200, 160], "time_zone": 9, "extent_mask_func": lambda data, band: data[band] != data[band].nodata, "ignore_info_flags": [], "data_manual_merge": False, "always_fetch_bands": ["intensity"], "apply_solar_corrections": False, "legend": { "styles": ["wii"] }, "styles": [ { "name": "wii", "title": "Weathering Intensity", "abstract": "Weather Intensity Index (0-6)", "needed_bands": ["intensity"], "color_ramp": [ { 'value': 0, 'color': '#ffffff', 'alpha': 0 }, { 'value': 1, 'color': '#2972a8', 'legend': { 'label': 'Low\nClass 1' } }, { 'value': 3.5, 'color': '#fcf24b' }, { 'value': 6, 'color': '#a02406', 'legend': { 'label': 'High\nClass 6' } } ], "legend": { "legend_values": [1, 6], "axes_position": [0.1, 0.5, 0.8, 0.15] } }, ], # Default style (if request does not specify style) # MUST be defined in the styles list above. # (Looks like Terria assumes this is the first style in the list, but this is # not required by the standard.) "default_style": "wii", }, ] }, ]
49.34508
501
0.396173
8,912
107,819
4.729466
0.109964
0.016655
0.011483
0.014093
0.783815
0.770457
0.760445
0.760445
0.752426
0.748488
0
0.043511
0.521244
107,819
2,184
502
49.367674
0.772991
0.173819
0
0.492933
0
0.025324
0.336458
0.013357
0
0
0
0
0
1
0
false
0
0.001178
0
0.001178
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
13f5364fe7e07a428f73f595eba0a97e56561a2f
29
py
Python
stats-processor/src/mdde_stats/__init__.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
1
2021-05-17T11:17:51.000Z
2021-05-17T11:17:51.000Z
stats-processor/src/mdde_stats/__init__.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
4
2020-05-30T12:23:04.000Z
2021-12-25T12:59:14.000Z
stats-processor/src/mdde_stats/__init__.py
akharitonov/mdde
b0443f3c9c3ca948e9dda213572926087c214d8d
[ "MIT" ]
null
null
null
from .main import entrypoint
14.5
28
0.827586
4
29
6
1
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.96
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
b973abad7b5f8b74d496e3ead8e0654f78744407
100
py
Python
Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/Calls.py
rsumner33/PTVS
f5d67cff8c7bb32992dd4f77c0dfddaca6071250
[ "Apache-2.0" ]
null
null
null
Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/Calls.py
rsumner33/PTVS
f5d67cff8c7bb32992dd4f77c0dfddaca6071250
[ "Apache-2.0" ]
null
null
null
Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/Calls.py
rsumner33/PTVS
f5d67cff8c7bb32992dd4f77c0dfddaca6071250
[ "Apache-2.0" ]
1
2020-12-09T10:16:23.000Z
2020-12-09T10:16:23.000Z
foo() foo(1) foo(bar = 1) foo(*bar) foo(**bar) foo(*bar, **baz) foo(bar = 1, baz = 2) foo(bar, baz)
12.5
21
0.55
22
100
2.545455
0.272727
0.642857
0.25
0.428571
0
0
0
0
0
0
0
0.047619
0.16
100
8
22
12.5
0.607143
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
6
b97db0568c5e1ba0a12a2b72d05d3d6b5f5ae7d9
172,621
py
Python
source/codegen/metadata/nirfmxspecan/enums.py
ni/grpc-device
9713da936ba712930554bdd8f8c7452be509e900
[ "MIT" ]
24
2021-03-25T18:37:59.000Z
2022-03-03T16:33:56.000Z
source/codegen/metadata/nirfmxspecan/enums.py
gregstoll/grpc-device
1a321fa2c162a2d10950673d99a9b84c64f5af16
[ "MIT" ]
129
2021-04-03T15:16:04.000Z
2022-03-25T21:48:18.000Z
source/codegen/metadata/nirfmxspecan/enums.py
gregstoll/grpc-device
1a321fa2c162a2d10950673d99a9b84c64f5af16
[ "MIT" ]
24
2021-03-31T12:36:14.000Z
2022-02-25T03:01:25.000Z
enums = { 'AcpAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'AcpAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The ACP measurement uses the RFMXSPECAN_ATTR_ACP_AVERAGING_COUNT attribute as the number of acquisitions over which the ACP measurement is averaged. ' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'AcpCarrierMode': { 'values': [ { 'documentation': { 'description': ' The carrier power is not considered as part of the total carrier power.' }, 'name': 'PASSIVE', 'value': 0 }, { 'documentation': { 'description': ' The carrier power is considered as part of the total carrier power.' }, 'name': 'ACTIVE', 'value': 1 } ] }, 'AcpCarrierRrcFilterEnabled': { 'values': [ { 'documentation': { 'description': ' The channel power of the acquired carrier channel is measured directly.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpFftOverlapMode': { 'values': [ { 'documentation': { 'description': ' Disables the overlap between the chunks.' }, 'name': 'DISABLED', 'value': 0 }, { 'documentation': { 'description': ' Measurement sets the overlap based on the value you have set for the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to any value other than RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the number of overlapped samples between consecutive chunks is set to 50% of the value of the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. When you set the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute to RFMXSPECAN_VAL_ACP_FFT_WINDOW_NONE, the chunks are not overlapped and the overlap is set to 0%.' }, 'name': 'AUTOMATIC', 'value': 1 }, { 'documentation': { 'description': ' Measurement uses the overlap that you specify in the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP attribute.' }, 'name': 'USER_DEFINED', 'value': 2 } ] }, 'AcpFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes.' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'AcpIFOutputPowerOffsetAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AcpMeasurementMethod': { 'values': [ { 'documentation': { 'description': ' The ACP measurement acquires the spectrum using the same signal analyzer setting across frequency bands. Use this method when measurement speed is desirable over higher dynamic range. ' }, 'name': 'NORMAL', 'value': 0 }, { 'documentation': { 'description': ' The ACP measurement acquires the spectrum using the hardware-specific optimizations for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668' }, 'name': 'DYNAMIC_RANGE', 'value': 1 }, { 'documentation': { 'description': ' The ACP measurement acquires I/Q samples for a duration specified by the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute. These samples are divided into smaller chunks. The size of each chunk is defined by the RFMXSPECAN_ATTR_ACP_SEQUENTIAL_FFT_SIZE attribute. The overlap between the chunks is defined by the RFMXSPECAN_ATTR_ACP_FFT_OVERLAP_MODE attribute. FFT is computed on each of these chunks. The resultant FFTs are averaged to get the spectrum and is used to compute ACP. If the total acquired samples is not an integer multiple of the FFT size, the remaining samples at the end of acquisition are not used for the measurement. Use this method to optimize ACP measurement speed. Accuracy of the results may be reduced when using this measurement method.' }, 'name': 'SEQUENTIAL_FFT', 'value': 2 } ] }, 'AcpMeasurementMode': { 'values': [ { 'documentation': { 'description': ' ACP measurement is performed on the acquired signal. ' }, 'name': 'MEASURE', 'value': 0 }, { 'documentation': { 'description': ' Manual noise calibration of the signal analyzer is performed for the ACP measurement.' }, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1 } ] }, 'AcpNoiseCalibrationAveragingAuto': { 'values': [ { 'documentation': { 'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_ACP_NOISE_CALIBRATION_AVERAGING_COUNT attribute.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_NORMAL, RFmx uses a noise calibration averaging count of 32. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is less than 5 ms, RFmx uses a noise calibration averaging count of 15. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_METHOD attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_METHOD_DYNAMIC_RANGE and the sweep time is greater than or equal to 5 ms, RFmx uses a noise calibration averaging count of 5.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpNoiseCalibrationDataValid': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AcpNoiseCalibrationMode': { 'values': [ { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the ACP measurement manually. When you set the RFMXSPECAN_ATTR_ACP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_ACP_MEASUREMENT_MODE_MEASURE, you can initiate the ACP measurement manually.' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the instrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the ACP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_ACP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_ACP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and only performs the ACP measurement without compensating for noise of the instrument.' }, 'name': 'AUTO', 'value': 1 } ] }, 'AcpNoiseCompensationEnabled': { 'values': [ { 'documentation': { 'description': ' Disables noise compensation.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables noise compensation.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpNoiseCompensationType': { 'values': [ { 'documentation': { 'description': ' Compensates for noise from the analyzer and the 50-ohm termination. The measured power values are in excess of the thermal noise floor.' }, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0 }, { 'documentation': { 'description': ' Compensates for the analyzer noise only.' }, 'name': 'ANALYZER_ONLY', 'value': 1 } ] }, 'AcpOffsetEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the offset channel for ACP measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the offset channel for ACP measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpOffsetFrequencyDefinition': { 'values': [ { 'documentation': { 'description': ' The offset frequency is defined from the center of the closest carrier to the center of the offset channel.' }, 'name': 'CARRIER_CENTER_TO_OFFSET_CENTER', 'value': 0 }, { 'documentation': { 'description': ' The offset frequency is defined from the center of the closest carrier to the nearest edge of the offset channel.' }, 'name': 'CARRIER_CENTER_TO_OFFSET_EDGE', 'value': 1 } ] }, 'AcpOffsetPowerReferenceCarrier': { 'values': [ { 'documentation': { 'description': ' The measurement uses the power measured in the carrier closest to the offset channel center frequency, as the power reference.' }, 'name': 'CLOSEST', 'value': 0 }, { 'documentation': { 'description': ' The measurement uses the highest power measured among all the active carriers as the power reference.' }, 'name': 'HIGHEST', 'value': 1 }, { 'documentation': { 'description': ' The measurement uses the sum of powers measured in all the active carriers as the power reference.' }, 'name': 'COMPOSITE', 'value': 2 }, { 'documentation': { 'description': ' The measurement uses the power measured in the carrier that has an index specified by the RFMXSPECAN_ATTR_ACP_OFFSET_POWER_REFERENCE_SPECIFIC attribute, as the power reference.' }, 'name': 'SPECIFIC', 'value': 3 } ] }, 'AcpOffsetRrcFilterEnabled': { 'values': [ { 'documentation': { 'description': ' The channel power of the acquired offset channel is measured directly.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement applies the RRC filter on the acquired offset channel before measuring the offset channel power.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AcpOffsetSideband': { 'values': [ { 'documentation': { 'description': ' Configures a lower offset segment to the left of the leftmost carrier. ' }, 'name': 'NEGATIVE', 'value': 0 }, { 'documentation': { 'description': ' Configures an upper offset segment to the right of the rightmost carrier. ' }, 'name': 'POSITIVE', 'value': 1 }, { 'documentation': { 'description': ' Configures both negative and positive offset segments.' }, 'name': 'BOTH', 'value': 2 } ] }, 'AcpPowerUnits': { 'values': [ { 'documentation': { 'description': ' The absolute powers are reported in dBm.' }, 'name': 'DBM', 'value': 0 }, { 'documentation': { 'description': ' The absolute powers are reported in dBm/Hz.' }, 'name': 'DBM_PER_HZ', 'value': 1 } ] }, 'AcpRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AcpRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_ACP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_ACP_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the bin width of the spectrum computed using FFT when you set the RFMXSPECAN_ATTR_ACP_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 } ] }, 'AcpRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' An RBW filter with a Gaussian response is applied.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' An RBW filter with a flat response is applied.' }, 'name': 'FLAT', 'value': 2 } ] }, 'AcpSweepTimeAuto': { 'values': [ { 'documentation': { 'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_ACP_SWEEP_TIME_INTERVAL attribute.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_ACP_RBW_FILTER_BANDWIDTH attribute.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmAMToAMCurveFitType': { 'values': [ { 'name': 'LEAST_SQUARE', 'value': 0 }, { 'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1 }, { 'name': 'BISQUARE', 'value': 2 } ] }, 'AmpmAMToAMEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AmpmAMToPMCurveFitType': { 'values': [ { 'name': 'LEAST_SQUARE', 'value': 0 }, { 'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1 }, { 'name': 'BISQUARE', 'value': 2 } ] }, 'AmpmAMToPMEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AmpmAutoCarrierDetectionEnabled': { 'values': [ { 'documentation': { 'description': ' Disables auto detection of carrier offset and carrier bandwidth.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables auto detection of carrier offset and carrier bandwidth.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The AMPM measurement uses the RFMXSPECAN_ATTR_AMPM_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the AMPM measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmCompressionPointEnabled': { 'values': [ { 'documentation': { 'description': ' Disables computation of compression points.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables computation of compression points.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmCompressionPointGainReference': { 'values': [ { 'documentation': { 'description': ' Measurement computes the gain reference to be used for compression point calculation. The computed gain reference is also returned as RFMXSPECAN_ATTR_AMPM_RESULTS_MEAN_LINEAR_GAIN result.' }, 'name': 'AUTO', 'value': 0 }, { 'documentation': { 'description': ' Measurement uses the gain corresponding to the reference power that you specify for the RFMXSPECAN_ATTR_AMPM_COMPRESSION_POINT_GAIN_REFERENCE_POWER attribute as gain reference. The reference power can be configured as either input or output power based on the value of the RFMXSPECAN_ATTR_AMPM_REFERENCE_POWER_TYPE attribute.' }, 'name': 'REFERENCE_POWER', 'value': 1 } ] }, 'AmpmEqualizerMode': { 'values': [ { 'documentation': { 'description': ' Equalization is not performed.' }, 'name': 'OFF', 'value': 0 }, { 'documentation': { 'description': ' The equalizer is turned on to compensate for the effect of the channel.' }, 'name': 'TRAIN', 'value': 1 } ] }, 'AmpmEvmEnabled': { 'values': [ { 'documentation': { 'description': ' Disables EVM computation. NaN is returned as Mean RMS EVM.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables EVM computation.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmFrequencyOffsetCorrectionEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement does not perform frequency offset correction.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmIQOriginOffsetCorrectionEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AmpmMeasurementSampleRateMode': { 'values': [ { 'documentation': { 'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_AMPM_MEASUREMENT_SAMPLE_RATE attribute.' }, 'name': 'USER', 'value': 0 }, { 'documentation': { 'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.' }, 'name': 'REFERENCE_WAVEFORM', 'value': 1 } ] }, 'AmpmReferencePowerType': { 'values': [ { 'documentation': { 'description': ' The instantaneous powers at the input port of device under test (DUT) forms the x-axis of AM to AM and AM to PM traces.' }, 'name': 'INPUT', 'value': 0 }, { 'documentation': { 'description': ' The instantaneous powers at the output port of DUT forms the x-axis of AM to AM and AM to PM traces.' }, 'name': 'OUTPUT', 'value': 1 } ] }, 'AmpmReferenceWaveformIdleDurationPresent': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'AmpmSignalType': { 'values': [ { 'documentation': { 'description': ' The reference waveform is a cellular or connectivity standard signal.' }, 'name': 'MODULATED', 'value': 0 }, { 'documentation': { 'description': ' The reference waveform is a continuous signal comprising of one or more tones.' }, 'name': 'TONES', 'value': 1 } ] }, 'AmpmSynchronizationMethod': { 'values': [ { 'documentation': { 'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when the measurement sampling rate is high.' }, 'name': 'DIRECT', 'value': 1 }, { 'documentation': { 'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when the measurement sampling rate is low. Refer to AMPM concept help for more information.' }, 'name': 'ALIAS_PROTECTED', 'value': 2 } ] }, 'AmpmThresholdEnabled': { 'values': [ { 'documentation': { 'description': ' All samples are considered for the AMPM measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Samples above the threshold level specified in the RFMXSPECAN_ATTR_AMPM_THRESHOLD_LEVEL attribute are considered for the AMPM measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'AmpmThresholdType': { 'values': [ { 'documentation': { 'description': ' The threshold is relative to the peak power of the acquired samples.' }, 'name': 'RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The threshold is the absolute power, in dBm.' }, 'name': 'ABSOLUTE', 'value': 1 } ] }, 'Boolean': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'CcdfRbwFilterType': { 'values': [ { 'documentation': { 'description': ' The measurement does not use any RBW filtering.' }, 'name': 'NONE', 'value': 5 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 }, { 'documentation': { 'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_CCDF_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.' }, 'name': 'RRC', 'value': 6 } ] }, 'CcdfThresholdEnabled': { 'values': [ { 'documentation': { 'description': ' All samples are considered for the CCDF measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_CCDF_THRESHOLD_LEVEL attribute are considered for the CCDF measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'CcdfThresholdType': { 'values': [ { 'documentation': { 'description': ' The threshold is relative to the peak power of the acquired samples.' }, 'name': 'RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The threshold is the absolute power, in dBm.' }, 'name': 'ABSOLUTE', 'value': 1 } ] }, 'ChpAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'ChpAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The CHP measurement uses the RFMXSPECAN_ATTR_CHP_AVERAGING_COUNT attribute as the number of acquisitions over which the CHP measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'ChpAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'ChpCarrierRrcFilterEnabled': { 'values': [ { 'documentation': { 'description': ' The channel power of the acquired channel is measured directly.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement applies the RRC filter on the acquired channel before measuring the channel power.' }, 'name': 'TRUE', 'value': 1 } ] }, 'ChpFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. ' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. ' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'ChpMeasurementMode': { 'values': [ { 'documentation': { 'description': ' CHP measurement is performed on the acquired signal.' }, 'name': 'MEASURE', 'value': 0 }, { 'documentation': { 'description': ' Manual noise calibration of the signal analyzer is performed for the CHP measurement.' }, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1 } ] }, 'ChpNoiseCalibrationAveragingAuto': { 'values': [ { 'documentation': { 'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_CHP_NOISE_CALIBRATION_AVERAGING_COUNT attribute. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' RFmx uses a noise calibration averaging count of 32.' }, 'name': 'TRUE', 'value': 1 } ] }, 'ChpNoiseCalibrationDataValid': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'ChpNoiseCalibrationMode': { 'values': [ { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the CHP measurement manually. When you set the RFMXSPECAN_ATTR_CHP_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_CHP_MEASUREMENT_MODE_MEASURE, you can initiate the CHP measurement manually.' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets Input Isolation Enabled to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the CHP measurement, including compensation for noise of the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_CHP_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_CHP_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the CHP measurement without compensating for the noise contribution of the instrument.' }, 'name': 'AUTO', 'value': 1 } ] }, 'ChpNoiseCompensationEnabled': { 'values': [ { 'documentation': { 'description': ' Disables noise compensation.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables noise compensation.' }, 'name': 'TRUE', 'value': 1 } ] }, 'ChpNoiseCompensationType': { 'values': [ { 'documentation': { 'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.' }, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0 }, { 'documentation': { 'description': ' Compensates for the analyzer noise only.' }, 'name': 'ANALYZER_ONLY', 'value': 1 } ] }, 'ChpRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'ChpRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_CHP_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_CHP_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_CHP_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 } ] }, 'ChpRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' An RBW filter with a Gaussian response is applied.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' An RBW filter with a flat response is applied. ' }, 'name': 'FLAT', 'value': 2 } ] }, 'ChpSweepTimeAuto': { 'values': [ { 'documentation': { 'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_CHP_SWEEP_TIME_INTERVAL attribute. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_CHP_RBW_FILTER_BANDWIDTH attribute.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DigitalEdgeTriggerEdge': { 'values': [ { 'documentation': { 'description': ' The trigger asserts on the rising edge of the signal.' }, 'name': 'RISING_EDGE', 'value': 0 }, { 'documentation': { 'description': ' The trigger asserts on the falling edge of the signal.' }, 'name': 'FALLING_EDGE', 'value': 1 } ] }, 'DigitalEdgeTriggerSource': { 'generate-mappings': True, 'values': [ { 'documentation': { 'description': ' The trigger is received on PFI 0.' }, 'name': 'PFI0', 'value': 'PFI0' }, { 'documentation': { 'description': ' The trigger is received on PFI 1.' }, 'name': 'PFI1', 'value': 'PFI1' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 0.' }, 'name': 'PXI_TRIG0', 'value': 'PXI_Trig0' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 1.' }, 'name': 'PXI_TRIG1', 'value': 'PXI_Trig1' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 2.' }, 'name': 'PXI_TRIG2', 'value': 'PXI_Trig2' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 3.' }, 'name': 'PXI_TRIG3', 'value': 'PXI_Trig3' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 4.' }, 'name': 'PXI_TRIG4', 'value': 'PXI_Trig4' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 5.' }, 'name': 'PXI_TRIG5', 'value': 'PXI_Trig5' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 6.' }, 'name': 'PXI_TRIG6', 'value': 'PXI_Trig6' }, { 'documentation': { 'description': ' The trigger is received on PXI trigger line 7.' }, 'name': 'PXI_TRIG7', 'value': 'PXI_Trig7' }, { 'documentation': { 'description': ' The trigger is received on the PXI star trigger line. ' }, 'name': 'PXI_STAR', 'value': 'PXI_STAR' }, { 'documentation': { 'description': ' The trigger is received on the PXIe DStar B trigger line. ' }, 'name': 'PXIE_DSTARB', 'value': 'PXIe_DStarB' }, { 'documentation': { 'description': ' The trigger is received from the timer event.' }, 'name': 'TIMER_EVENT', 'value': 'TimerEvent' } ] }, 'DpdApplyDpdCfrEnabled': { 'values': [ { 'documentation': { 'description': ' Disables CFR. The maximum increase in PAPR, after pre-distortion, is limited to 6 dB.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables CFR.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdApplyDpdCfrMethod': { 'values': [ { 'documentation': { 'description': ' Hard clips the signal such that the target PAPR is achieved.' }, 'name': 'CLIPPING', 'value': 0 }, { 'documentation': { 'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.' }, 'name': 'PEAK_WINDOWING', 'value': 1 }, { 'documentation': { 'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.' }, 'name': 'SIGMOID', 'value': 2 } ] }, 'DpdApplyDpdCfrTargetPaprType': { 'values': [ { 'documentation': { 'description': ' Sets the target PAPR for pre-distorted waveform equal to the PAPR of input waveform.' }, 'name': 'INPUT_PAPR', 'value': 0 }, { 'documentation': { 'description': ' Sets the target PAPR equal to the value that you set for the Apply DPD CFR Target PAPR attribute.' }, 'name': 'CUSTOM', 'value': 1 } ] }, 'DpdApplyDpdCfrWindowType': { 'values': [ { 'documentation': { 'description': ' Uses the flat top window function to scale peaks.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Uses the Hanning window function to scale peaks.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Uses the Hamming window function to scale peaks.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Uses the Gaussian window function to scale peaks.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Uses the Blackman window function to scale peaks.' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Uses the Blackman-Harris window function to scale peaks.' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Uses the Kaiser-Bessel window function to scale peaks.' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'DpdApplyDpdConfigurationInput': { 'values': [ { 'documentation': { 'description': ' Uses the computed DPD polynomial or lookup table for applying DPD on an input waveform using the same RFmx session handle. The configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_MODEL, RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table are obtained from the DPD measurement configuration. ' }, 'name': 'MEASUREMENT', 'value': 0 }, { 'documentation': { 'description': ' Applies DPD by using a computed DPD polynomial or lookup table on an input waveform. You must set the configuration parameters for applying DPD such as the RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DUT_AVERAGE_INPUT_POWER, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_DPD_MODEL, RFMXSPECAN_ATTR_DPD_APPLY_DPD_USER_MEASUREMENT_SAMPLE_RATE, DPD polynomial, and lookup table. ' }, 'name': 'USER', 'value': 1 } ] }, 'DpdApplyDpdIdleDurationPresent': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'DpdApplyDpdLookupTableCorrectionType': { 'values': [ { 'documentation': { 'description': ' The measurement predistorts the magnitude and phase of the input waveform.' }, 'name': 'MAGNITUDE_AND_PHASE', 'value': 0 }, { 'documentation': { 'description': ' The measurement predistorts only the magnitude of the input waveform.' }, 'name': 'MAGNITUDE_ONLY', 'value': 1 }, { 'documentation': { 'description': ' The measurement predistorts only the phase of the input waveform.' }, 'name': 'PHASE_ONLY', 'value': 2 } ] }, 'DpdApplyDpdMemoryModelCorrectionType': { 'values': [ { 'documentation': { 'description': ' The measurement predistorts the magnitude and phase of the input waveform.' }, 'name': 'MAGNITUDE_AND_PHASE', 'value': 0 }, { 'documentation': { 'description': ' The measurement predistorts only the magnitude of the input waveform.' }, 'name': 'MAGNITUDE_ONLY', 'value': 1 }, { 'documentation': { 'description': ' The measurement predistorts only the phase of the input waveform.' }, 'name': 'PHASE_ONLY', 'value': 2 } ] }, 'DpdApplyDpdUserDpdModel': { 'values': [ { 'documentation': { 'description': ' This model computes the complex gain coefficients applied to linearize systems with negligible memory effects.' }, 'name': 'LOOKUP_TABLE', 'value': 0 }, { 'documentation': { 'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.' }, 'name': 'MEMORY_POLYNOMIAL', 'value': 1 }, { 'documentation': { 'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.' }, 'name': 'GENERALIZED_MEMORY_POLYNOMIAL', 'value': 2 } ] }, 'DpdApplyDpdUserLookupTableType': { 'values': [ { 'documentation': { 'description': ' Input powers in the LUT are specified in dBm.' }, 'name': 'LOG', 'value': 0 }, { 'documentation': { 'description': ' Input powers in the LUT are specified in watts.' }, 'name': 'LINEAR', 'value': 1 } ] }, 'DpdAutoCarrierDetectionEnabled': { 'values': [ { 'documentation': { 'description': ' Disables auto detection of carrier offset and carrier bandwidth.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables auto detection of carrier offset and carrier bandwidth.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The DPD measurement uses the RFMXSPECAN_ATTR_DPD_AVERAGING_COUNT attribute as the number of acquisitions over which the signal for the DPD measurement is averaged. ' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdFrequencyOffsetCorrectionEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement does not perform frequency offset correction.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdIQOriginOffsetCorrectionEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'DpdIterativeDpdEnabled': { 'values': [ { 'documentation': { 'description': ' RFmx computes the DPD Results DPD Polynomial without considering the value of the DPD Previous DPD Polynomial.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' RFmx computes the DPD Results DPD Polynomial based on the value of the DPD Previous DPD Polynomial.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdLookupTableAMToAMCurveFitType': { 'values': [ { 'name': 'LEAST_SQUARE', 'value': 0 }, { 'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1 }, { 'name': 'BISQUARE', 'value': 2 } ] }, 'DpdLookupTableAMToPMCurveFitType': { 'values': [ { 'name': 'LEAST_SQUARE', 'value': 0 }, { 'name': 'LEAST_ABSOLUTE_RESIDUAL', 'value': 1 }, { 'name': 'BISQUARE', 'value': 2 } ] }, 'DpdLookupTableThresholdEnabled': { 'values': [ { 'documentation': { 'description': ' All samples are considered for the DPD measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Only samples above the threshold level which you specify in the RFMXSPECAN_ATTR_DPD_LOOKUP_TABLE_THRESHOLD_LEVEL attribute are considered for the DPD measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdLookupTableThresholdType': { 'values': [ { 'documentation': { 'description': ' The threshold is relative to the peak power of the acquired samples.' }, 'name': 'RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The threshold is the absolute power, in dBm.' }, 'name': 'ABSOLUTE', 'value': 1 } ] }, 'DpdLookupTableType': { 'values': [ { 'documentation': { 'description': ' Input powers in the LUT are specified in dBm.' }, 'name': 'LOG', 'value': 0 }, { 'documentation': { 'description': ' Input powers in the LUT are specified in watts.' }, 'name': 'LINEAR', 'value': 1 } ] }, 'DpdMeasurementSampleRateMode': { 'values': [ { 'documentation': { 'description': ' The acquisition sample rate is defined by the value of the RFMXSPECAN_ATTR_DPD_MEASUREMENT_SAMPLE_RATE attribute.' }, 'name': 'USER', 'value': 0 }, { 'documentation': { 'description': ' The acquisition sample rate is set to match the sample rate of the reference waveform.' }, 'name': 'REFERENCE_WAVEFORM', 'value': 1 } ] }, 'DpdModel': { 'values': [ { 'documentation': { 'description': ' This model computes the complex gain coefficients applied when performing digital predistortion to linearize systems with negligible memory effects.' }, 'name': 'LOOKUP_TABLE', 'value': 0 }, { 'documentation': { 'description': ' This model computes the memory polynomial predistortion coefficients used to linearize systems with moderate memory effects.' }, 'name': 'MEMORY_POLYNOMIAL', 'value': 1 }, { 'documentation': { 'description': ' This model computes the generalized memory polynomial predistortion coefficients used to linearize systems with significant memory effects.' }, 'name': 'GENERALIZED_MEMORY_POLYNOMIAL', 'value': 2 } ] }, 'DpdNmseEnabled': { 'values': [ { 'documentation': { 'description': ' Disables NMSE computation. NaN is returned as NMSE.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables NMSE computation.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdPreDpdCfrEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the CFR. The RFmxSpecAn_DPDApplyPreDPDSignalConditioning function returns an error when the CFR is disabled.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the CFR.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdPreDpdCfrFilterEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the filter operation when performing CFR.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables filter operation when performing CFR. Filter operation is not supported when you set the RFMXSPECAN_ATTR_DPD_PRE_DPD_CFR_METHOD attribute to RFMXSPECAN_VAL_DPD_PRE_DPD_CFR_METHOD_SIGMOID.' }, 'name': 'TRUE', 'value': 1 } ] }, 'DpdPreDpdCfrMethod': { 'values': [ { 'documentation': { 'description': ' Hard clips the signal such that the target PAPR is achieved.' }, 'name': 'CLIPPING', 'value': 0 }, { 'documentation': { 'description': ' Scales the peaks in the signal using weighted window function to get smooth peaks and achieve the target PAPR.' }, 'name': 'PEAK_WINDOWING', 'value': 1 }, { 'documentation': { 'description': ' Scales the peaks using modified sigmoid transfer function to get smooth peaks and achieve the target PAPR. This method does not support the filter operation.' }, 'name': 'SIGMOID', 'value': 2 } ] }, 'DpdPreDpdCfrWindowType': { 'values': [ { 'documentation': { 'description': ' Uses the flat top window function to scale peaks.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Uses the Hanning window function to scale peaks.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Uses the Hamming window function to scale peaks.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Uses the Gaussian window function to scale peaks.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Uses the Blackman window function to scale peaks.' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Uses the Blackman-Harris window function to scale peaks.' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Uses the Kaiser-Bessel window function to scale peaks.' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'DpdReferenceWaveformIdleDurationPresent': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'DpdSignalType': { 'values': [ { 'documentation': { 'description': ' The reference waveform is a cellular or connectivity standard signal.' }, 'name': 'MODULATED', 'value': 0 }, { 'documentation': { 'description': ' The reference waveform is a continuous signal comprising one or more tones.' }, 'name': 'TONES', 'value': 1 } ] }, 'DpdSynchronizationMethod': { 'values': [ { 'documentation': { 'description': ' Synchronizes the acquired and reference waveforms assuming that sample rate is sufficient to prevent aliasing in intermediate operations. This method is recommended when measurement sampling rate is high.' }, 'name': 'DIRECT', 'value': 1 }, { 'documentation': { 'description': ' Synchronizes the acquired and reference waveforms while ascertaining that intermediate operations are not impacted by aliasing. This method is recommended for non-contiguous carriers separated by a large gap, and/or when measurement sampling rate is low. Refer to DPD concept help for more information.' }, 'name': 'ALIAS_PROTECTED', 'value': 2 } ] }, 'DpdTargetGainType': { 'values': [ { 'documentation': { 'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT without DPD.' }, 'name': 'AVERAGE_GAIN', 'value': 0 }, { 'documentation': { 'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the gain provided by the DUT, without DPD, to the parts of the reference waveform that do not drive the DUT into non-linear gain-expansion or compression regions of its input-output characteristics.\n\n The measurement computes the linear region gain as the average gain experienced by the parts of the reference waveform that are below a threshold which is computed as shown in the following equation:\n\n Linear region threshold (dBm) = Max {-25, Min {reference waveform power} + 6, DUT Average Input Power -15}' }, 'name': 'LINEAR_REGION_GAIN', 'value': 1 }, { 'documentation': { 'description': ' The DPD polynomial or lookup table is computed by assuming that the linearized gain expected from the DUT after applying DPD on the input waveform is equal to the average power gain provided by the DUT, without DPD, to all the samples of the reference waveform for which the magnitude is greater than the peak power in the reference waveform (dBm) - 0.5dB.' }, 'name': 'PEAK_INPUT_POWER_GAIN', 'value': 2 } ] }, 'FcntAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The FCnt measurement uses the RFMXSPECAN_ATTR_FCNT_AVERAGING_COUNT attribute as the number of acquisitions over which the FCnt measurement is averaged. ' }, 'name': 'TRUE', 'value': 1 } ] }, 'FcntAveragingType': { 'values': [ { 'documentation': { 'description': ' The mean of the instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. ' }, 'name': 'MEAN', 'value': 6 }, { 'documentation': { 'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. ' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The minimum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. ' }, 'name': 'MINIMUM', 'value': 4 }, { 'documentation': { 'description': ' The maximum instantaneous signal phase difference over multiple acquisitions is used for the frequency measurement. The sign of the phase difference is ignored to find the maximum instantaneous value.' }, 'name': 'MINMAX', 'value': 7 } ] }, 'FcntRbwFilterType': { 'values': [ { 'documentation': { 'description': ' The measurement does not use any RBW filtering.' }, 'name': 'NONE', 'value': 5 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 }, { 'documentation': { 'description': ' The RRC filter with the roll-off specified by RFMXSPECAN_ATTR_FCNT_RBW_FILTER_RRC_ALPHA attribute is used as the RBW filter.' }, 'name': 'RRC', 'value': 6 } ] }, 'FcntThresholdEnabled': { 'values': [ { 'documentation': { 'description': ' All samples are considered for the FCnt measurement. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_FCNT_THRESHOLD_LEVEL attribute are considered for the FCnt measurement. ' }, 'name': 'TRUE', 'value': 1 } ] }, 'FcntThresholdType': { 'values': [ { 'documentation': { 'description': ' The threshold is relative to the peak power of the acquired samples.' }, 'name': 'RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The threshold is the absolute power, in dBm.' }, 'name': 'ABSOLUTE', 'value': 1 } ] }, 'FrequencyReferenceSource': { 'generate-mappings': True, 'values': [ { 'name': 'ONBOARD_CLOCK', 'value': 'OnboardClock' }, { 'name': 'REF_IN', 'value': 'RefIn' }, { 'name': 'PXI_CLK', 'value': 'PXI_Clk' }, { 'name': 'CLK_IN', 'value': 'ClkIn' } ] }, 'HarmAutoHarmonicsSetupEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'HarmAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The Harmonics measurement uses the RFMXSPECAN_ATTR_HARM_AVERAGING_COUNT attribute as the number of acquisitions over which the Harmonics measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'HarmAveragingType': { 'values': [ { 'documentation': { 'description': ' The power trace is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power trace is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power trace is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'HarmHarmonicEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the harmonic for measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the harmonic for measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'HarmMeasurementMethod': { 'values': [ { 'documentation': { 'description': ' The harmonics measurement acquires the signal using the same signal analyzer setting across frequency bands. Use this method when the measurement speed is desirable over higher dynamic range.\n\n Supported devices: PXIe-5644/5645/5646, PXIe-5663/5665/5668' }, 'name': 'TIME_DOMAIN', 'value': 0 }, { 'documentation': { 'description': ' The harmonics measurement acquires the signal using the hardware-specific features, such as the IF filter and IF gain, for different frequency bands. Use this method to get the best dynamic range.\n\n Supported devices: PXIe-5665/5668' }, 'name': 'DYNAMIC_RANGE', 'value': 2 } ] }, 'HarmNoiseCompensationEnabled': { 'values': [ { 'documentation': { 'description': ' Disables compensation of the average harmonic powers for the noise floor of the signal analyzer.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables compensation of the average harmonic powers for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the harmonics measurement and cached for future use. If the signal analyzer or measurement parameters change, noise floors are measured again.\n\n Supported devices: PXIe-5663/5665/5668' }, 'name': 'TRUE', 'value': 1 } ] }, 'HarmRbwFilterType': { 'values': [ { 'name': 'GAUSSIAN', 'value': 1 }, { 'name': 'FLAT', 'value': 2 }, { 'name': 'NONE', 'value': 5 }, { 'name': 'RRC', 'value': 6 } ] }, 'IMAmplitudeCorrectionType': { 'values': [ { 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'IMAutoIntermodsSetupEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMAveragingEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMAveragingType': { 'values': [ { 'name': 'RMS', 'value': 0 }, { 'name': 'LOG', 'value': 1 }, { 'name': 'SCALAR', 'value': 2 }, { 'name': 'MAXIMUM', 'value': 3 }, { 'name': 'MINIMUM', 'value': 4 } ] }, 'IMFftWindow': { 'values': [ { 'name': 'NONE', 'value': 0 }, { 'name': 'FLAT_TOP', 'value': 1 }, { 'name': 'HANNING', 'value': 2 }, { 'name': 'HAMMING', 'value': 3 }, { 'name': 'GAUSSIAN', 'value': 4 }, { 'name': 'BLACKMAN', 'value': 5 }, { 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'IMFrequencyDefinition': { 'values': [ { 'name': 'RELATIVE', 'value': 0 }, { 'name': 'ABSOLUTE', 'value': 1 } ] }, 'IMIFOutputPowerOffsetAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMIntermodEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMIntermodSide': { 'values': [ { 'name': 'LOWER', 'value': 0 }, { 'name': 'UPPER', 'value': 1 }, { 'name': 'BOTH', 'value': 2 } ] }, 'IMLocalPeakSearchEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMMeasurementMethod': { 'values': [ { 'name': 'NORMAL', 'value': 0 }, { 'name': 'DYNAMIC_RANGE', 'value': 1 }, { 'name': 'SEGMENTED', 'value': 2 } ] }, 'IMRbwFilterAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IMRbwFilterType': { 'values': [ { 'name': 'FFT_BASED', 'value': 0 }, { 'name': 'GAUSSIAN', 'value': 1 }, { 'name': 'FLAT', 'value': 2 } ] }, 'IMSweepTimeAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IQBandwidthAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IQDeleteRecordOnFetch': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'IQPowerEdgeTriggerLevelType': { 'values': [ { 'name': 'RELATIVE', 'value': 0 }, { 'name': 'ABSOLUTE', 'value': 1 } ] }, 'IQPowerEdgeTriggerSlope': { 'values': [ { 'name': 'RISING_SLOPE', 'value': 0 }, { 'name': 'FALLING_SLOPE', 'value': 1 } ] }, 'LimitedConfigurationChange': { 'values': [ { 'documentation': { 'description': ' This is the normal mode of RFmx operation. All configuration changes in RFmxInstr attributes or in personality attributes will be applied during RFmx Commit.' }, 'name': 'DISABLED', 'value': 0 }, { 'documentation': { 'description': ' Signal configuration and RFmxInstr configuration are locked after the first Commit or Initiate of the named signal configuration. Any configuration change thereafter either in RFmxInstr attributes or personality attributes will not be considered by subsequent RFmx Commits or Initiates of this signal. Use No Change if you have created named signal configurations for all measurement configurations but are setting some RFmxInstr attributes. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. ' }, 'name': 'NO_CHANGE', 'value': 1 }, { 'documentation': { 'description': ' Signal configuration, other than center frequency, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter, only the Center Frequency and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. ' }, 'name': 'FREQUENCY', 'value': 2 }, { 'documentation': { 'description': ' Signal configuration, other than the reference level and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only the RFMXSPECAN_ATTR_REFERENCE_LEVEL attribute value change will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends that you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. ' }, 'name': 'REFERENCE_LEVEL', 'value': 3 }, { 'documentation': { 'description': ' Signal configuration, other than center frequency, reference level, external attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode. ' }, 'name': 'FREQUENCY_AND_REFERENCE_LEVEL', 'value': 4 }, { 'documentation': { 'description': ' Signal configuration, other than Selected Ports, Center frequency, Reference level, External attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Selected Ports, Center Frequency, RFMXSPECAN_ATTR_REFERENCE_LEVEL, and RFMXSPECAN_ATTR_EXTERNAL_ATTENUATION attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE to RFMXSPECAN_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Attribute topic for more details about the limitations of using this mode.' }, 'name': 'SELECTED_PORTS_FREQUENCY_AND_REFERENCE_LEVEL', 'value': 5 } ] }, 'MarkerNextPeak': { 'values': [ { 'name': 'NEXT_HIGHEST', 'value': 0 }, { 'name': 'NEXT_LEFT', 'value': 1 }, { 'name': 'NEXT_RIGHT', 'value': 2 } ] }, 'MarkerPeakExcursionEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'MarkerThresholdEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'MarkerTrace': { 'values': [ { 'name': 'ACP_SPECTRUM', 'value': 0 }, { 'name': 'CCDF_GAUSSIAN_PROBABILITIES_TRACE', 'value': 1 }, { 'name': 'CCDF_PROBABILITIES_TRACE', 'value': 2 }, { 'name': 'CHP_SPECTRUM', 'value': 3 }, { 'name': 'FCNT_POWER_TRACE', 'value': 4 }, { 'name': 'OBW_SPECTRUM', 'value': 5 }, { 'name': 'SEM_SPECTRUM', 'value': 6 }, { 'name': 'SPECTRUM', 'value': 7 }, { 'name': 'TXP_POWER_TRACE', 'value': 8 } ] }, 'MarkerType': { 'values': [ { 'name': 'OFF', 'value': 0 }, { 'name': 'NORMAL', 'value': 1 }, { 'name': 'DELTA', 'value': 3 } ] }, 'MeasurementTypes': { 'values': [ { 'name': 'ACP', 'value': 1 }, { 'name': 'CCDF', 'value': 2 }, { 'name': 'CHP', 'value': 4 }, { 'name': 'FCNT', 'value': 8 }, { 'name': 'HARMONICS', 'value': 16 }, { 'name': 'OBW', 'value': 32 }, { 'name': 'SEM', 'value': 64 }, { 'name': 'SPECTRUM', 'value': 128 }, { 'name': 'SPUR', 'value': 256 }, { 'name': 'TXP', 'value': 512 }, { 'name': 'AMPM', 'value': 1024 }, { 'name': 'DPD', 'value': 2048 }, { 'name': 'IQ', 'value': 4096 }, { 'name': 'IM', 'value': 8192 }, { 'name': 'NF', 'value': 16384 }, { 'name': 'PHASENOISE', 'value': 32768 }, { 'name': 'PAVT', 'value': 65536 } ] }, 'MechanicalAttenuationAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFAveragingEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFCalibrationDataValid': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFCalibrationLossCompensationEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFColdSourceMode': { 'values': [ { 'name': 'MEASURE', 'value': 0 }, { 'name': 'CALIBRATE', 'value': 1 } ] }, 'NFDutInputLossCompensationEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFDutOutputLossCompensationEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFDutType': { 'values': [ { 'name': 'AMPLIFIER', 'value': 0 }, { 'name': 'DOWNCONVERTER', 'value': 1 }, { 'name': 'UPCONVERTER', 'value': 2 } ] }, 'NFExternalPreampPresent': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'NFFrequencyConverterFrequencyContext': { 'values': [ { 'name': 'RF', 'value': 0 }, { 'name': 'IF', 'value': 1 } ] }, 'NFFrequencyConverterSideband': { 'values': [ { 'name': 'LSB', 'value': 0 }, { 'name': 'USB', 'value': 1 } ] }, 'NFMeasurementMethod': { 'values': [ { 'name': 'Y_FACTOR', 'value': 0 }, { 'name': 'COLD_SOURCE', 'value': 1 } ] }, 'NFYFactorMode': { 'values': [ { 'name': 'MEASURE', 'value': 0 }, { 'name': 'CALIBRATE', 'value': 1 } ] }, 'NFYFactorNoiseSourceLossCompensationEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'ObwAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'ObwAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The OBW measurement uses the RFMXSPECAN_ATTR_OBW_AVERAGING_COUNT attribute as the number of acquisitions over which the OBW measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'ObwAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'ObwFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. ' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. ' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'ObwPowerUnits': { 'values': [ { 'documentation': { 'description': ' The absolute powers are reported in dBm.' }, 'name': 'DBM', 'value': 0 }, { 'documentation': { 'description': ' The absolute powers are reported in dBm/Hz.' }, 'name': 'DBM_PER_HZ', 'value': 1 } ] }, 'ObwRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'ObwRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_OBW_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_OBW_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_OBW_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 } ] }, 'ObwRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 } ] }, 'ObwSweepTimeAuto': { 'values': [ { 'documentation': { 'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_OBW_SWEEP_TIME_INTERVAL attribute. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_OBW_RBW_FILTER_BANDWIDTH attribute.' }, 'name': 'TRUE', 'value': 1 } ] }, 'PavtFrequencyOffsetCorrectionEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the frequency offset correction.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the frequency offset correction. The measurement computes and corrects any frequency offset between the reference and the acquired waveforms.' }, 'name': 'TRUE', 'value': 1 } ] }, 'PavtFrequencyTrackingEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the drift correction for the measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the drift correction. The measurement corrects and reports the frequency offset per segment.' }, 'name': 'TRUE', 'value': 1 } ] }, 'PavtMeasurementIntervalMode': { 'values': [ { 'documentation': { 'description': ' The time offset from the start of segment and the duration over which the measurement is performed is uniform for all segments and is given by the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_MEASUREMENT_LENGTH attribute respectively.' }, 'name': 'UNIFORM', 'value': 0 }, { 'documentation': { 'description': ' The time offset from the start of segment and the duration over which the measurement is performed is configured separately for each segment and is given by the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_OFFSET attribute and the RFMXSPECAN_ATTR_PAVT_SEGMENT_MEASUREMENT_LENGTH attribute respectively.' }, 'name': 'VARIABLE', 'value': 1 } ] }, 'PavtMeasurementLocationType': { 'values': [ { 'documentation': { 'description': ' The measurement is performed over a single record across multiple segments separated in time. The measurement locations of the segments are specified by the RFMXSPECAN_ATTR_PAVT_SEGMENT_START_TIME attribute. The number of segments is equal to the number of segment start times.' }, 'name': 'TIME', 'value': 0 }, { 'documentation': { 'description': ' The measurement is performed across segments obtained in multiple records, where each record is obtained when a trigger is received. The number of segments is equal to the number of triggers (records).' }, 'name': 'TRIGGER', 'value': 1 } ] }, 'PavtPhaseUnwrapEnabled': { 'values': [ { 'documentation': { 'description': ' Phase measurement results are wrapped within +/-180 degrees.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Phase measurement results are unwrapped.' }, 'name': 'TRUE', 'value': 1 } ] }, 'PavtSegmentType': { 'values': [ { 'documentation': { 'description': ' Phase and amplitude is measured in this segment.' }, 'name': 'PHASE_AND_AMPLITUDE', 'value': 0 }, { 'documentation': { 'description': ' Amplitude is measured in this segment.' }, 'name': 'AMPLITUDE', 'value': 1 }, { 'documentation': { 'description': ' Frequency error is measured in this segment.' }, 'name': 'FREQUENCY_ERROR_MEASUREMENT', 'value': 2 } ] }, 'PhaseNoiseCancellationEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'PhaseNoiseFftWindow': { 'values': [ { 'name': 'NONE', 'value': 0 }, { 'name': 'FLAT_TOP', 'value': 1 }, { 'name': 'HANNING', 'value': 2 }, { 'name': 'HAMMING', 'value': 3 }, { 'name': 'GAUSSIAN', 'value': 4 }, { 'name': 'BLACKMAN', 'value': 5 }, { 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'PhaseNoiseIntegratedNoiseRangeDefinition': { 'values': [ { 'name': 'NONE', 'value': 0 }, { 'name': 'MEASUREMENT', 'value': 1 }, { 'name': 'CUSTOM', 'value': 2 } ] }, 'PhaseNoiseRangeDefinition': { 'values': [ { 'name': 'MANUAL', 'value': 0 }, { 'name': 'AUTO', 'value': 1 } ] }, 'PhaseNoiseSmoothingType': { 'values': [ { 'name': 'NONE', 'value': 0 }, { 'name': 'LINEAR', 'value': 1 }, { 'name': 'LOGARITHMIC', 'value': 2 }, { 'name': 'MEDIAN', 'value': 3 } ] }, 'PhaseNoiseSpurRemovalEnabled': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'RFAttenuationAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SemAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'SemAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The SEM measurement uses the RFMXSPECAN_ATTR_SEM_AVERAGING_COUNT attribute as the number of acquisitions over which the SEM measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SemAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'SemCarrierEnabled': { 'values': [ { 'documentation': { 'description': ' The carrier power is not considered as part of the total carrier power.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The carrier power is considered as part of the total carrier power.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SemCarrierRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SemCarrierRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3 dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_CARRIER_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3 dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the spectrum bin width computed using an FFT when you set the RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 } ] }, 'SemCarrierRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 } ] }, 'SemCarrierRrcFilterEnabled': { 'values': [ { 'documentation': { 'description': ' The channel power of the acquired carrier channel is measured directly.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement applies the RRC filter on the acquired carrier channel before measuring the carrier channel power.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SemCompositeMeasurementStatus': { 'values': [ { 'name': 'FAIL', 'value': 0 }, { 'name': 'PASS', 'value': 1 } ] }, 'SemFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. ' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. ' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'SemLowerOffsetMeasurementStatus': { 'values': [ { 'name': 'FAIL', 'value': 0 }, { 'name': 'PASS', 'value': 1 } ] }, 'SemOffsetAbsoluteLimitMode': { 'values': [ { 'documentation': { 'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_STOP attribute values as the two ends is considered as the mask.' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_ABSOLUTE_LIMIT_START attribute.' }, 'name': 'COUPLE', 'value': 1 } ] }, 'SemOffsetEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the offset segment for the SEM measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables the offset segment for the SEM measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SemOffsetFrequencyDefinition': { 'values': [ { 'documentation': { 'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the center of the offset segment measurement bandwidth.\n\nMeasurement Bandwidth = Resolution Bandwidth * Bandwidth Integral.' }, 'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_CENTER', 'value': 0 }, { 'documentation': { 'description': ' The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the nearest edge of the offset segment measurement bandwidth.' }, 'name': 'CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_EDGE', 'value': 1 }, { 'documentation': { 'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the center of the nearest offset segment measurement bandwidth.' }, 'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_CENTER', 'value': 2 }, { 'documentation': { 'description': ' The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the edge of the nearest offset segment measurement bandwidth.' }, 'name': 'CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_EDGE', 'value': 3 } ] }, 'SemOffsetLimitFailMask': { 'values': [ { 'documentation': { 'description': ' The measurement fails if the power in the segment exceeds both the absolute and relative masks.' }, 'name': 'ABSOLUTE_AND_RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The measurement fails if the power in the segment exceeds either the absolute or relative mask.' }, 'name': 'ABSOLUTE_OR_RELATIVE', 'value': 1 }, { 'documentation': { 'description': ' The measurement fails if the power in the segment exceeds the absolute mask.' }, 'name': 'ABSOLUTE', 'value': 2 }, { 'documentation': { 'description': ' The measurement fails if the power in the segment exceeds the relative mask.' }, 'name': 'RELATIVE', 'value': 3 } ] }, 'SemOffsetRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SemOffsetRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SEM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SEM_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 } ] }, 'SemOffsetRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 } ] }, 'SemOffsetRelativeLimitMode': { 'values': [ { 'documentation': { 'description': ' The line specified by the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START and RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_STOP attribute values as the two ends is considered as the mask.' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' The two ends of the line are coupled to the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RELATIVE_LIMIT_START attribute.' }, 'name': 'COUPLE', 'value': 1 } ] }, 'SemOffsetSideband': { 'values': [ { 'documentation': { 'description': ' Configures a lower offset segment to the left of the leftmost carrier. ' }, 'name': 'NEGATIVE', 'value': 0 }, { 'documentation': { 'description': ' Configures an upper offset segment to the right of the rightmost carrier. ' }, 'name': 'POSITIVE', 'value': 1 }, { 'documentation': { 'description': ' Configures both negative and positive offset segments.' }, 'name': 'BOTH', 'value': 2 } ] }, 'SemPowerUnits': { 'values': [ { 'documentation': { 'description': ' The absolute powers are reported in dBm.' }, 'name': 'DBM', 'value': 0 }, { 'documentation': { 'description': ' The absolute powers are reported in dBm/Hz.' }, 'name': 'DBM_PER_HZ', 'value': 1 } ] }, 'SemReferenceType': { 'values': [ { 'documentation': { 'description': ' The power reference is the integrated power of the closest carrier.' }, 'name': 'INTEGRATION', 'value': 0 }, { 'documentation': { 'description': ' The power reference is the peak power of the closest carrier.' }, 'name': 'PEAK', 'value': 1 } ] }, 'SemSweepTimeAuto': { 'values': [ { 'documentation': { 'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SEM_SWEEP_TIME_INTERVAL attribute.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SEM_OFFSET_RBW_FILTER_BANDWIDTH and RFMXSPECAN_ATTR_SEM_CARRIER_RBW_FILTER_BANDWIDTH attributes.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SemUpperOffsetMeasurementStatus': { 'values': [ { 'name': 'FAIL', 'value': 0 }, { 'name': 'PASS', 'value': 1 } ] }, 'SpectrumAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'SpectrumAnalysisInput': { 'values': [ { 'documentation': { 'description': ' Measurement analyzes the acquired I+jQ data, resulting generally in a spectrum that is not symmetric around 0 Hz. Spectrum trace result contains both positive and negative frequencies. Since the RMS power of the complex envelope is 3.01 dB higher than that of its equivalent real RF signal, the spectrum trace result of the acquired I+jQ data is scaled by -3.01 dB. ' }, 'name': 'IQ', 'value': 0 }, { 'documentation': { 'description': ' Measurement ignores the Q data from the acquired I+jQ data and analyzes I+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of I+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.' }, 'name': 'I_ONLY', 'value': 1 }, { 'documentation': { 'description': ' Measurement ignores the I data from the acquired I+jQ data and analyzes Q+j0, resulting in a spectrum that is symmetric around 0 Hz. Spectrum trace result contains positive frequencies only. Spectrum of Q+j0 data is scaled by +3.01 dB to account for the power of the negative frequencies that are not returned in the spectrum trace.' }, 'name': 'Q_ONLY', 'value': 2 } ] }, 'SpectrumAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The spectrum measurement uses the RFMXSPECAN_ATTR_SPECTRUM_AVERAGING_COUNT attribute as the number of acquisitions over which the spectrum measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'SpectrumDetectorType': { 'values': [ { 'documentation': { 'description': ' The detector is disabled.' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' The middle sample in the bucket is detected.' }, 'name': 'SAMPLE', 'value': 1 }, { 'documentation': { 'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.' }, 'name': 'NORMAL', 'value': 2 }, { 'documentation': { 'description': ' The maximum value of the samples in the bucket is detected.' }, 'name': 'PEAK', 'value': 3 }, { 'documentation': { 'description': ' The minimum value of the samples in the bucket is detected.' }, 'name': 'NEGATIVE_PEAK', 'value': 4 }, { 'documentation': { 'description': ' The average RMS of all the samples in the bucket is detected.' }, 'name': 'AVERAGE_RMS', 'value': 5 }, { 'documentation': { 'description': ' The average voltage of all the samples in the bucket is detected. ' }, 'name': 'AVERAGE_VOLTAGE', 'value': 6 }, { 'documentation': { 'description': ' The average log of all the samples in the bucket is detected.' }, 'name': 'AVERAGE_LOG', 'value': 7 } ] }, 'SpectrumFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. ' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a good balance of spectral leakage, frequency resolution, and amplitude attenuation. Hence, this windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes. ' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'SpectrumMeasurementMode': { 'values': [ { 'documentation': { 'description': ' Spectrum measurement is performed on the acquired signal. ' }, 'name': 'MEASURE', 'value': 0 }, { 'documentation': { 'description': ' Manual noise calibration of the signal analyzer is performed for the spectrum measurement.' }, 'name': 'CALIBRATE_NOISE_FLOOR', 'value': 1 } ] }, 'SpectrumNoiseCalibrationAveragingAuto': { 'values': [ { 'documentation': { 'description': ' RFmx uses the averages that you set for the RFMXSPECAN_ATTR_SPECTRUM_NOISE_CALIBRATION_AVERAGING_COUNT attribute.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' RFmx uses a noise calibration averaging count of 32.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumNoiseCalibrationDataValid': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumNoiseCalibrationMode': { 'values': [ { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_CALIBRATE_NOISE_FLOOR, you can initiate instrument noise calibration for the spectrum measurement manually. When you set the RFMXSPECAN_ATTR_SPECTRUM_MEASUREMENT_MODE attribute to RFMXSPECAN_VAL_SPECTRUM_MEASUREMENT_MODE_MEASURE, you can initiate the spectrum measurement manually.' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_TRUE, RFmx sets the Input Isolation Enabled attribute to Enabled and calibrates the intrument noise in the current state of the instrument. RFmx then resets the Input Isolation Enabled attribute and performs the spectrum measurement, including compensation for noise from the instrument. RFmx skips noise calibration in this mode if valid noise calibration data is already cached. When you set the RFMXSPECAN_ATTR_SPECTRUM_NOISE_COMPENSATION_ENABLED attribute to RFMXSPECAN_VAL_SPECTRUM_NOISE_COMPENSATION_ENABLED_FALSE, RFmx does not calibrate instrument noise and performs only the spectrum measurement without compensating for the noise from the instrument.' }, 'name': 'AUTO', 'value': 1 } ] }, 'SpectrumNoiseCompensationEnabled': { 'values': [ { 'documentation': { 'description': ' Disables compensation of the spectrum for the noise floor of the signal analyzer.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables compensation of the spectrum for the noise floor of the signal analyzer. The noise floor of the signal analyzer is measured for the RF path used by the Spectrum measurement and cached for future use. If signal analyzer or measurement parameters change, noise floors are measured again.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumNoiseCompensationType': { 'values': [ { 'documentation': { 'description': ' Compensates for noise from the analyzer and the 50 ohm termination. The measured power values are in excess of the thermal noise floor.' }, 'name': 'ANALYZER_AND_TERMINATION', 'value': 0 }, { 'documentation': { 'description': ' Compensates for the analyzer noise only.' }, 'name': 'ANALYZER_ONLY', 'value': 1 } ] }, 'SpectrumPowerUnits': { 'values': [ { 'documentation': { 'description': ' The absolute powers are reported in dBm.' }, 'name': 'DBM', 'value': 0 }, { 'documentation': { 'description': ' The absolute powers are reported in dBm/Hz.' }, 'name': 'DBM_PER_HZ', 'value': 1 }, { 'documentation': { 'description': ' The absolute powers are reported in dBW.' }, 'name': 'DBW', 'value': 2 }, { 'documentation': { 'description': ' The absolute powers are reported in dBV.' }, 'name': 'DBV', 'value': 3 }, { 'documentation': { 'description': ' The absolute powers are reported in dBmV.' }, 'name': 'DBMV', 'value': 4 }, { 'documentation': { 'description': ' The absolute powers are reported in dBuV.' }, 'name': 'DBUV', 'value': 5 }, { 'documentation': { 'description': ' The absolute powers are reported in W.' }, 'name': 'WATTS', 'value': 6 }, { 'documentation': { 'description': ' The absolute powers are reported in volts.' }, 'name': 'VOLTS', 'value': 7 }, { 'documentation': { 'description': ' The absolute powers are reported in volts2.' }, 'name': 'VOLTS_SQUARED', 'value': 8 } ] }, 'SpectrumRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumRbwFilterBandwidthDefinition': { 'values': [ { 'documentation': { 'description': ' Defines the RBW in terms of the 3dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to RFMXSPECAN_VAL_SPECTRUM_RBW_FILTER_TYPE_FFT_BASED, RBW is the 3dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.' }, 'name': '3_DB', 'value': 0 }, { 'documentation': { 'description': ' Defines the RBW in terms of the 6dB bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the 6dB bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.' }, 'name': '6_DB', 'value': 1 }, { 'documentation': { 'description': ' Defines the RBW in terms of the spectrum bin width computed using FFT when you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based.' }, 'name': 'BIN_WIDTH', 'value': 2 }, { 'documentation': { 'description': ' Defines the RBW in terms of the ENBW bandwidth of the RBW filter. When you set the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_TYPE attribute to FFT Based, RBW is the ENBW bandwidth of the window specified by the RFMXSPECAN_ATTR_SPECTRUM_FFT_WINDOW attribute.' }, 'name': 'ENBW', 'value': 3 } ] }, 'SpectrumRbwFilterType': { 'values': [ { 'documentation': { 'description': ' No RBW filtering is performed.' }, 'name': 'FFT_BASED', 'value': 0 }, { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'GAUSSIAN', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'FLAT', 'value': 2 } ] }, 'SpectrumSweepTimeAuto': { 'values': [ { 'documentation': { 'description': ' The measurement uses the sweep time that you specify in the RFMXSPECAN_ATTR_SPECTRUM_SWEEP_TIME_INTERVAL attribute. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The measurement calculates the sweep time based on the value of the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpectrumVbwFilterAutoBandwidth': { 'values': [ { 'documentation': { 'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPECTRUM_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPECTRUM_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpurAbsoluteLimitMode': { 'values': [ { 'name': 'MANUAL', 'value': 0 }, { 'name': 'COUPLE', 'value': 1 } ] }, 'SpurAmplitudeCorrectionType': { 'values': [ { 'documentation': { 'description': ' All the frequency bins in the spectrum are compensated with a single external attenuation value that corresponds to the RF center frequency.' }, 'name': 'RF_CENTER_FREQUENCY', 'value': 0 }, { 'documentation': { 'description': ' An individual frequency bin in the spectrum is compensated with the external attenuation value corresponding to that frequency.' }, 'name': 'SPECTRUM_FREQUENCY_BIN', 'value': 1 } ] }, 'SpurAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The Spur measurement uses the RFMXSPECAN_ATTR_SPUR_AVERAGING_COUNT attribute as the number of acquisitions over which the Spur measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpurAveragingType': { 'values': [ { 'documentation': { 'description': ' The power spectrum is linearly averaged. RMS averaging reduces signal fluctuations but not the noise floor. ' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power spectrum is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power spectrum is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The peak power in the spectrum at each frequency bin is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The least power in the spectrum at each frequency bin is retained from one acquisition to the next. ' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'SpurFftWindow': { 'values': [ { 'documentation': { 'description': ' Analyzes transients for which duration is shorter than the window length. You can also use this window type to separate two tones with frequencies close to each other but with almost equal amplitudes. ' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' Measures single-tone amplitudes accurately.' }, 'name': 'FLAT_TOP', 'value': 1 }, { 'documentation': { 'description': ' Analyzes transients for which duration is longer than the window length. You can also use this window type to provide better frequency resolution for noise measurements.' }, 'name': 'HANNING', 'value': 2 }, { 'documentation': { 'description': ' Analyzes closely-spaced sine waves.' }, 'name': 'HAMMING', 'value': 3 }, { 'documentation': { 'description': ' Provides a balance of spectral leakage, frequency resolution, and amplitude attenuation. This windowing is useful for time-frequency analysis.' }, 'name': 'GAUSSIAN', 'value': 4 }, { 'documentation': { 'description': ' Analyzes single tone because it has a low maximum side lobe level and a high side lobe roll-off rate. ' }, 'name': 'BLACKMAN', 'value': 5 }, { 'documentation': { 'description': ' Useful as a good general purpose window, having side lobe rejection greater than 90 dB and having a moderately wide main lobe. ' }, 'name': 'BLACKMAN_HARRIS', 'value': 6 }, { 'documentation': { 'description': ' Separates two tones with frequencies close to each other but with widely-differing amplitudes.' }, 'name': 'KAISER_BESSEL', 'value': 7 } ] }, 'SpurMeasurementStatus': { 'values': [ { 'name': 'FAIL', 'value': 0 }, { 'name': 'PASS', 'value': 1 } ] }, 'SpurRangeDetectorType': { 'values': [ { 'documentation': { 'description': ' The detector is disabled.' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' The middle sample in the bucket is detected.' }, 'name': 'SAMPLE', 'value': 1 }, { 'documentation': { 'description': ' The maximum value of the samples within the bucket is detected if the signal only rises or if the signal only falls. If the signal, within a bucket, both rises and falls, then the maximum and minimum values of the samples are detected in alternate buckets.' }, 'name': 'NORMAL', 'value': 2 }, { 'documentation': { 'description': ' The maximum value of the samples in the bucket is detected.' }, 'name': 'PEAK', 'value': 3 }, { 'documentation': { 'description': ' The minimum value of the samples in the bucket is detected.' }, 'name': 'NEGATIVE_PEAK', 'value': 4 }, { 'documentation': { 'description': ' The average RMS of all the samples in the bucket is detected.' }, 'name': 'AVERAGE_RMS', 'value': 5 }, { 'documentation': { 'description': ' The average voltage of all the samples in the bucket is detected. ' }, 'name': 'AVERAGE_VOLTAGE', 'value': 6 }, { 'documentation': { 'description': ' The average log of all the samples in the bucket is detected.' }, 'name': 'AVERAGE_LOG', 'value': 7 } ] }, 'SpurRangeEnabled': { 'values': [ { 'documentation': { 'description': ' Disables the acquisition of the frequency range.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Enables measurement of Spurs in the frequency range.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpurRangeStatus': { 'values': [ { 'name': 'FAIL', 'value': 0 }, { 'name': 'PASS', 'value': 1 } ] }, 'SpurRangeVbwFilterAutoBandwidth': { 'values': [ { 'documentation': { 'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute. The Spur VBW to RBW Ratio attribute is disregarded in this mode.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_SPUR_RANGE_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_SPUR_RANGE_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.' }, 'name': 'TRUE', 'value': 1 } ] }, 'SpurRbwAutoBandwidth': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'SpurRbwFilterBandwidthDefinition': { 'values': [ { 'name': '3_DB', 'value': 0 }, { 'name': 'BIN_WIDTH', 'value': 2 }, { 'name': 'ENBW', 'value': 3 } ] }, 'SpurRbwFilterType': { 'values': [ { 'name': 'FFT_BASED', 'value': 0 }, { 'name': 'GAUSSIAN', 'value': 1 }, { 'name': 'FLAT', 'value': 2 } ] }, 'SpurSweepTimeAuto': { 'values': [ { 'name': 'FALSE', 'value': 0 }, { 'name': 'TRUE', 'value': 1 } ] }, 'TriggerMinimumQuietTimeMode': { 'values': [ { 'documentation': { 'description': ' The minimum quiet time for triggering is the value of the RFMXSPECAN_ATTR_TRIGGER_MINIMUM_QUIET_TIME_DURATION attribute. ' }, 'name': 'MANUAL', 'value': 0 }, { 'documentation': { 'description': ' The measurement computes the minimum quiet time used for triggering.' }, 'name': 'AUTO', 'value': 1 } ] }, 'TriggerType': { 'values': [ { 'documentation': { 'description': ' No Reference Trigger is configured.' }, 'name': 'NONE', 'value': 0 }, { 'documentation': { 'description': ' The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified using the RFMXSPECAN_ATTR_DIGITAL_EDGE_TRIGGER_SOURCE attribute.' }, 'name': 'DIGITAL_EDGE', 'value': 1 }, { 'documentation': { 'description': ' The Reference Trigger is asserted when the signal changes past the level specified by the slope (rising or falling), which is configured using the RFMXSPECAN_ATTR_IQ_POWER_EDGE_TRIGGER_SLOPE attribute.' }, 'name': 'IQ_POWER_EDGE', 'value': 2 }, { 'documentation': { 'description': ' The Reference Trigger is not asserted until a software trigger occurs. ' }, 'name': 'SOFTWARE', 'value': 3 } ] }, 'TxpAveragingEnabled': { 'values': [ { 'documentation': { 'description': ' The measurement is performed on a single acquisition.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The TXP measurement uses the RFMXSPECAN_ATTR_TXP_AVERAGING_COUNT attribute as the number of acquisitions over which the TXP measurement is averaged.' }, 'name': 'TRUE', 'value': 1 } ] }, 'TxpAveragingType': { 'values': [ { 'documentation': { 'description': ' The power trace is linearly averaged.' }, 'name': 'RMS', 'value': 0 }, { 'documentation': { 'description': ' The power trace is averaged in a logarithmic scale.' }, 'name': 'LOG', 'value': 1 }, { 'documentation': { 'description': ' The square root of the power trace is averaged.' }, 'name': 'SCALAR', 'value': 2 }, { 'documentation': { 'description': ' The maximum instantaneous power in the power trace is retained from one acquisition to the next.' }, 'name': 'MAXIMUM', 'value': 3 }, { 'documentation': { 'description': ' The minimum instantaneous power in the power trace is retained from one acquisition to the next.' }, 'name': 'MINIMUM', 'value': 4 } ] }, 'TxpRbwFilterType': { 'values': [ { 'documentation': { 'description': ' The RBW filter has a Gaussian response.' }, 'name': 'NONE', 'value': 1 }, { 'documentation': { 'description': ' The RBW filter has a flat response.' }, 'name': 'GAUSSIAN', 'value': 2 }, { 'documentation': { 'description': ' The measurement does not use any RBW filtering.' }, 'name': 'FLAT', 'value': 5 }, { 'documentation': { 'description': ' The RRC filter with the roll-off specified by the RFMXSPECAN_ATTR_TXP_RBW_FILTER_ALPHA attribute is used as the RBW filter.' }, 'name': 'RRC', 'value': 6 } ] }, 'TxpThresholdEnabled': { 'values': [ { 'documentation': { 'description': ' All the acquired samples are considered for the TXP measurement.' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' The samples above the threshold level specified in the RFMXSPECAN_ATTR_TXP_THRESHOLD_LEVEL attribute are considered for the TXP measurement.' }, 'name': 'TRUE', 'value': 1 } ] }, 'TxpThresholdType': { 'values': [ { 'documentation': { 'description': ' The threshold is relative to the peak power of the acquired samples.' }, 'name': 'RELATIVE', 'value': 0 }, { 'documentation': { 'description': ' The threshold is the absolute power, in dBm.' }, 'name': 'ABSOLUTE', 'value': 1 } ] }, 'TxpVbwFilterAutoBandwidth': { 'values': [ { 'documentation': { 'description': ' Specify the video bandwidth in the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute. The RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute is disregarded in this mode. ' }, 'name': 'FALSE', 'value': 0 }, { 'documentation': { 'description': ' Specify video bandwidth in terms of the VBW to RBW ratio. The value of the video bandwidth is then computed by using the RFMXSPECAN_ATTR_TXP_VBW_FILTER_VBW_TO_RBW_RATIO attribute and the RFMXSPECAN_ATTR_TXP_RBW_FILTER_BANDWIDTH attribute. The value of the RFMXSPECAN_ATTR_TXP_VBW_FILTER_BANDWIDTH attribute is disregarded in this mode.' }, 'name': 'TRUE', 'value': 1 } ] } }
34.887025
897
0.433319
12,920
172,621
5.705728
0.072833
0.146179
0.082409
0.059009
0.819447
0.790309
0.764901
0.726851
0.700046
0.654901
0
0.009326
0.473245
172,621
4,947
898
34.894077
0.801394
0
0
0.426319
0
0.023449
0.479414
0.064471
0
0
0
0
0.001011
1
0
false
0.001213
0
0
0
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
b99cfbbc2cd350c03fe3bfa300f8622ad5b3fe51
126
py
Python
bad-project/fix_me/admin.py
Capwell/review-test
9ade933b2efd86c7b85401de3da536592bef2dcd
[ "MIT" ]
null
null
null
bad-project/fix_me/admin.py
Capwell/review-test
9ade933b2efd86c7b85401de3da536592bef2dcd
[ "MIT" ]
null
null
null
bad-project/fix_me/admin.py
Capwell/review-test
9ade933b2efd86c7b85401de3da536592bef2dcd
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Category, Item admin.site.register(Item) admin.site.register(Category)
18
34
0.809524
18
126
5.666667
0.555556
0.176471
0.254902
0.411765
0
0
0
0
0
0
0
0
0.103175
126
6
35
21
0.902655
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
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
b9a28724491f82fdd5eaba48c9a24f6a1104bf7a
15,007
py
Python
KilluaRobot/ex_plugins/ImageEditor/edit_2.py
apisuserbot/Killua-Robot
eb23a6bab090cbda74743ba47b96d5779949e9a4
[ "MIT" ]
3
2022-01-28T11:18:58.000Z
2022-02-01T09:19:46.000Z
KilluaRobot/ex_plugins/ImageEditor/edit_2.py
apisuserbot/Killua-Robot
eb23a6bab090cbda74743ba47b96d5779949e9a4
[ "MIT" ]
5
2022-01-28T09:04:54.000Z
2022-03-20T23:24:54.000Z
KilluaRobot/ex_plugins/ImageEditor/edit_2.py
apisuserbot/Killua-Robot
eb23a6bab090cbda74743ba47b96d5779949e9a4
[ "MIT" ]
4
2022-01-31T14:23:27.000Z
2022-02-04T11:30:37.000Z
# By @TroJanzHEX import os import shutil import cv2 import numpy as np from PIL import Image, ImageDraw, ImageEnhance async def circle_with_bg(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "circle.png" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") img = Image.open(a).convert("RGB") npImage = np.array(img) h, w = img.size alpha = Image.new("L", img.size, 0) draw = ImageDraw.Draw(alpha) draw.pieslice([0, 0, h, w], 0, 360, fill=255) npAlpha = np.array(alpha) npImage = np.dstack((npImage, npAlpha)) Image.fromarray(npImage).save(edit_img_loc) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_photo(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("circle_with_bg-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return async def circle_without_bg(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "circle.png" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") img = Image.open(a).convert("RGB") npImage = np.array(img) h, w = img.size alpha = Image.new("L", img.size, 0) draw = ImageDraw.Draw(alpha) draw.pieslice([0, 0, h, w], 0, 360, fill=255) npAlpha = np.array(alpha) npImage = np.dstack((npImage, npAlpha)) Image.fromarray(npImage).save(edit_img_loc) await message.reply_chat_action("upload_document") await message.reply_to_message.reply_document(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("circle_without_bg-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return async def sticker(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "sticker.webp" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") os.rename(a, edit_img_loc) await message.reply_to_message.reply_sticker(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("sticker-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return def add_corners(im, rad): circle = Image.new("L", (rad * 2, rad * 2), 0) draw = ImageDraw.Draw(circle) draw.ellipse((0, 0, rad * 2, rad * 2), fill=255) alpha = Image.new("L", im.size, 255) w, h = im.size alpha.paste(circle.crop((0, 0, rad, rad)), (0, 0)) alpha.paste(circle.crop((0, rad, rad, rad * 2)), (0, h - rad)) alpha.paste(circle.crop((rad, 0, rad * 2, rad)), (w - rad, 0)) alpha.paste(circle.crop((rad, rad, rad * 2, rad * 2)), (w - rad, h - rad)) im.putalpha(alpha) return im async def edge_curved(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "edge_curved.webp" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") im = Image.open(a) im = add_corners(im, 100) im.save(edit_img_loc) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_sticker(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("edge_curved-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return async def contrast(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "contrast.jpg" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") image = Image.open(a) contrast = ImageEnhance.Contrast(image) contrast.enhance(1.5).save(edit_img_loc) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_photo(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("contrast-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return def sepia(img): width, height = img.size new_img = img.copy() for x in range(width): for y in range(height): red, green, blue = img.getpixel((x, y)) new_val = 0.3 * red + 0.59 * green + 0.11 * blue new_red = int(new_val * 2) if new_red > 255: new_red = 255 new_green = int(new_val * 1.5) if new_green > 255: new_green = 255 new_blue = int(new_val) if new_blue > 255: new_blue = 255 new_img.putpixel((x, y), (new_red, new_green, new_blue)) return new_img async def sepia_mode(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "sepia.jpg" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") image = Image.open(a) new_img = sepia(image) new_img.save(edit_img_loc) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_photo(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("sepia_mode-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return def dodgeV2(x, y): return cv2.divide(x, 255 - y, scale=256) async def pencil(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "pencil.jpg" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") img = cv2.imread(a) img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) img_invert = cv2.bitwise_not(img_gray) img_smoothing = cv2.GaussianBlur(img_invert, (21, 21), sigmaX=0, sigmaY=0) final_img = dodgeV2(img_gray, img_smoothing) cv2.imwrite(edit_img_loc, final_img) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_photo(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("pencil-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return def color_quantization(img, k): data = np.float32(img).reshape((-1, 3)) criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 20, 1.0) _, label, center = cv2.kmeans( data, k, None, criteria, 10, cv2.KMEANS_RANDOM_CENTERS ) center = np.uint8(center) result = center[label.flatten()] result = result.reshape(img.shape) return result async def cartoon(client, message): try: userid = str(message.chat.id) if not os.path.isdir(f"./DOWNLOADS/{userid}"): os.makedirs(f"./DOWNLOADS/{userid}") download_location = "./DOWNLOADS" + "/" + userid + "/" + userid + ".jpg" edit_img_loc = "./DOWNLOADS" + "/" + userid + "/" + "kang.jpg" if not message.reply_to_message.empty: msg = await message.reply_to_message.reply_text( "Downloading image", quote=True ) a = await client.download_media( message=message.reply_to_message, file_name=download_location ) await msg.edit("Processing Image...") img = cv2.imread(a) edges = cv2.Canny(img, 100, 200) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) edges = cv2.adaptiveThreshold( gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 9, 5 ) color = cv2.bilateralFilter(img, d=9, sigmaColor=200, sigmaSpace=200) cv2.bitwise_and(color, color, mask=edges) img_1 = color_quantization(img, 7) cv2.imwrite(edit_img_loc, img_1) await message.reply_chat_action("upload_photo") await message.reply_to_message.reply_photo(edit_img_loc, quote=True) await msg.delete() else: await message.reply_text("Why did you delete that?") try: shutil.rmtree(f"./DOWNLOADS/{userid}") except Exception: pass except Exception as e: print("cartoon-error - " + str(e)) if "USER_IS_BLOCKED" in str(e): return else: try: await message.reply_to_message.reply_text( "Something went wrong!", quote=True ) except Exception: return
37.5175
86
0.55041
1,732
15,007
4.599307
0.114896
0.119006
0.070299
0.105448
0.81283
0.791363
0.786216
0.77768
0.77768
0.77768
0
0.0149
0.333644
15,007
399
87
37.611529
0.7817
0.000933
0
0.683784
0
0
0.121673
0.001534
0.043243
0
0
0
0
1
0.010811
false
0.021622
0.013514
0.002703
0.078378
0.021622
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
6a08928be9fb9a5b3b009dc4f9fba55e66f3394b
32
py
Python
tests/learn/mblgray/__init__.py
derekmerck/rcDiana-ac
3a2ace08c52437c9beefc2f629c24bbdf714a688
[ "MIT" ]
9
2018-03-15T19:10:27.000Z
2021-03-15T21:01:24.000Z
tests/learn/mblgray/__init__.py
derekmerck/rcDiana-ac
3a2ace08c52437c9beefc2f629c24bbdf714a688
[ "MIT" ]
null
null
null
tests/learn/mblgray/__init__.py
derekmerck/rcDiana-ac
3a2ace08c52437c9beefc2f629c24bbdf714a688
[ "MIT" ]
2
2018-03-15T19:13:22.000Z
2018-04-18T16:33:33.000Z
from .mobilenet import MobileNet
32
32
0.875
4
32
7
0.75
0
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.965517
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
6a3ce4ac722bdfdeecb7ba900a7cb0c3f733009c
79
py
Python
forum/management/__init__.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-07-14T09:58:07.000Z
2017-07-14T09:58:07.000Z
forum/management/__init__.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
forum/management/__init__.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from forum.modules import get_modules_script get_modules_script('management')
19.75
44
0.860759
11
79
5.818182
0.636364
0.3125
0.5
0
0
0
0
0
0
0
0
0
0.075949
79
3
45
26.333333
0.876712
0
0
0
0
0
0.126582
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
e00de5ee8ca0b5ce2aa97a94054efa675eaad2dc
257,646
py
Python
instances/passenger_demand/pas-20210422-1717-int12e/37.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-int12e/37.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-int12e/37.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 22944 passenger_arriving = ( (5, 6, 5, 9, 4, 1, 2, 3, 2, 1, 1, 1, 0, 7, 6, 8, 4, 8, 2, 3, 1, 0, 1, 1, 1, 0), # 0 (7, 6, 3, 10, 7, 1, 1, 1, 6, 1, 2, 1, 0, 3, 5, 7, 7, 5, 4, 5, 0, 2, 2, 0, 1, 0), # 1 (5, 3, 10, 5, 3, 3, 4, 2, 1, 1, 1, 1, 0, 9, 9, 4, 3, 5, 2, 4, 2, 4, 1, 1, 0, 0), # 2 (7, 12, 10, 9, 4, 3, 10, 0, 2, 0, 0, 1, 0, 9, 9, 7, 3, 10, 1, 1, 0, 1, 2, 0, 0, 0), # 3 (8, 6, 6, 8, 6, 3, 3, 8, 1, 2, 1, 1, 0, 13, 8, 4, 7, 5, 3, 2, 1, 6, 0, 1, 0, 0), # 4 (9, 12, 7, 8, 6, 3, 5, 5, 5, 2, 2, 1, 0, 4, 11, 8, 6, 7, 4, 5, 3, 0, 0, 1, 0, 0), # 5 (6, 8, 6, 4, 8, 3, 1, 4, 5, 5, 0, 3, 0, 6, 7, 3, 3, 10, 6, 6, 4, 1, 4, 1, 1, 0), # 6 (4, 4, 10, 5, 7, 6, 8, 4, 6, 3, 0, 2, 0, 10, 6, 3, 6, 7, 4, 1, 2, 0, 2, 3, 1, 0), # 7 (10, 7, 7, 11, 6, 1, 7, 8, 4, 1, 1, 0, 0, 11, 16, 9, 3, 8, 8, 4, 2, 4, 2, 1, 2, 0), # 8 (6, 6, 6, 11, 2, 3, 1, 1, 3, 1, 0, 1, 0, 9, 8, 7, 5, 6, 5, 3, 0, 0, 3, 0, 0, 0), # 9 (7, 8, 10, 5, 6, 4, 2, 5, 2, 0, 1, 1, 0, 13, 12, 5, 5, 9, 6, 3, 0, 4, 2, 2, 3, 0), # 10 (8, 15, 6, 15, 14, 3, 4, 0, 1, 2, 2, 1, 0, 8, 12, 10, 3, 8, 4, 4, 3, 3, 2, 0, 3, 0), # 11 (11, 13, 9, 12, 5, 2, 4, 3, 1, 2, 2, 0, 0, 11, 12, 8, 8, 9, 5, 5, 2, 6, 5, 4, 0, 0), # 12 (11, 14, 3, 13, 3, 4, 6, 4, 6, 2, 1, 1, 0, 13, 8, 7, 6, 6, 4, 3, 1, 2, 5, 6, 1, 0), # 13 (10, 11, 4, 9, 12, 4, 8, 5, 3, 0, 3, 0, 0, 8, 8, 6, 9, 7, 5, 3, 3, 2, 4, 3, 1, 0), # 14 (11, 7, 8, 14, 11, 3, 5, 3, 4, 5, 0, 1, 0, 11, 10, 6, 10, 6, 5, 3, 4, 4, 4, 2, 1, 0), # 15 (14, 17, 7, 10, 9, 3, 3, 6, 5, 3, 0, 1, 0, 11, 10, 6, 8, 8, 6, 4, 6, 6, 3, 5, 2, 0), # 16 (7, 11, 8, 5, 10, 3, 4, 5, 5, 2, 1, 1, 0, 9, 8, 6, 6, 9, 4, 6, 5, 4, 4, 4, 0, 0), # 17 (10, 10, 8, 13, 12, 4, 3, 5, 3, 1, 1, 0, 0, 14, 11, 6, 6, 3, 10, 4, 3, 2, 5, 4, 2, 0), # 18 (16, 6, 10, 8, 5, 4, 8, 3, 7, 4, 0, 0, 0, 5, 15, 6, 12, 12, 6, 5, 5, 6, 4, 1, 2, 0), # 19 (15, 10, 7, 9, 11, 7, 2, 4, 3, 4, 0, 1, 0, 9, 16, 9, 6, 9, 6, 7, 3, 4, 6, 1, 0, 0), # 20 (17, 17, 8, 17, 11, 4, 5, 5, 8, 4, 1, 2, 0, 10, 10, 11, 4, 8, 9, 6, 1, 5, 9, 2, 1, 0), # 21 (17, 19, 15, 12, 12, 4, 7, 5, 8, 3, 2, 2, 0, 11, 13, 10, 9, 5, 9, 3, 6, 7, 3, 3, 0, 0), # 22 (7, 11, 6, 12, 11, 4, 7, 3, 3, 1, 2, 0, 0, 19, 9, 4, 5, 9, 9, 5, 5, 5, 2, 4, 2, 0), # 23 (15, 11, 8, 8, 15, 7, 5, 4, 6, 2, 3, 0, 0, 13, 8, 12, 6, 11, 6, 5, 2, 7, 4, 2, 1, 0), # 24 (18, 17, 17, 5, 5, 7, 8, 6, 6, 1, 2, 0, 0, 14, 6, 6, 4, 13, 4, 4, 1, 8, 5, 0, 0, 0), # 25 (14, 10, 8, 9, 11, 4, 4, 4, 4, 1, 2, 2, 0, 19, 11, 9, 6, 9, 11, 6, 1, 1, 4, 5, 1, 0), # 26 (12, 17, 12, 11, 8, 12, 4, 8, 4, 1, 6, 1, 0, 15, 5, 7, 10, 4, 7, 2, 2, 3, 4, 1, 1, 0), # 27 (15, 17, 16, 14, 12, 3, 5, 5, 5, 1, 4, 2, 0, 6, 8, 9, 8, 4, 4, 5, 1, 4, 0, 3, 3, 0), # 28 (14, 16, 10, 15, 14, 7, 3, 5, 8, 0, 3, 0, 0, 15, 3, 10, 9, 9, 8, 3, 1, 6, 5, 2, 1, 0), # 29 (13, 15, 10, 6, 6, 4, 10, 1, 7, 3, 1, 0, 0, 11, 13, 7, 8, 12, 8, 7, 3, 3, 2, 1, 0, 0), # 30 (15, 15, 15, 15, 9, 4, 4, 3, 1, 3, 1, 1, 0, 8, 17, 8, 7, 9, 5, 7, 2, 7, 5, 4, 3, 0), # 31 (13, 11, 16, 11, 10, 3, 8, 9, 5, 2, 3, 0, 0, 4, 10, 12, 5, 12, 8, 3, 5, 3, 4, 2, 0, 0), # 32 (11, 18, 10, 12, 10, 4, 4, 3, 7, 0, 6, 1, 0, 14, 13, 12, 4, 9, 7, 7, 1, 6, 0, 0, 1, 0), # 33 (7, 16, 18, 13, 11, 3, 5, 9, 8, 4, 0, 2, 0, 13, 10, 8, 3, 10, 4, 4, 1, 1, 3, 0, 1, 0), # 34 (18, 12, 9, 14, 7, 4, 4, 2, 4, 2, 1, 1, 0, 6, 5, 2, 12, 9, 8, 4, 4, 5, 2, 1, 1, 0), # 35 (14, 10, 13, 15, 5, 6, 5, 2, 2, 3, 1, 0, 0, 9, 10, 5, 11, 15, 2, 4, 2, 6, 5, 3, 0, 0), # 36 (12, 12, 7, 10, 12, 3, 7, 4, 3, 1, 3, 1, 0, 7, 4, 7, 7, 5, 5, 4, 2, 3, 3, 3, 0, 0), # 37 (13, 17, 15, 10, 13, 2, 8, 8, 3, 5, 2, 1, 0, 12, 13, 11, 6, 8, 9, 6, 4, 5, 4, 2, 0, 0), # 38 (14, 5, 20, 5, 8, 3, 4, 3, 10, 2, 3, 1, 0, 14, 8, 12, 5, 8, 9, 6, 6, 4, 2, 1, 1, 0), # 39 (9, 8, 5, 8, 5, 2, 2, 2, 5, 2, 1, 1, 0, 10, 5, 7, 10, 12, 12, 7, 1, 7, 2, 1, 2, 0), # 40 (11, 9, 8, 8, 4, 4, 9, 7, 6, 3, 3, 0, 0, 8, 14, 5, 13, 7, 4, 7, 2, 6, 3, 0, 0, 0), # 41 (11, 12, 8, 9, 6, 5, 5, 6, 1, 1, 0, 0, 0, 5, 4, 9, 6, 15, 6, 4, 3, 3, 2, 1, 2, 0), # 42 (11, 21, 9, 11, 9, 6, 7, 9, 3, 2, 0, 1, 0, 17, 13, 12, 7, 9, 8, 4, 2, 2, 5, 3, 1, 0), # 43 (13, 17, 10, 14, 10, 7, 6, 2, 3, 1, 2, 1, 0, 8, 12, 6, 3, 3, 3, 5, 4, 6, 4, 3, 0, 0), # 44 (14, 17, 6, 8, 12, 8, 6, 4, 7, 3, 3, 1, 0, 13, 10, 11, 9, 11, 4, 6, 4, 1, 3, 3, 1, 0), # 45 (12, 17, 12, 9, 10, 4, 11, 7, 3, 3, 1, 0, 0, 14, 5, 6, 8, 8, 3, 6, 2, 3, 3, 1, 0, 0), # 46 (18, 15, 9, 9, 16, 6, 3, 3, 4, 0, 4, 0, 0, 9, 7, 6, 6, 10, 8, 8, 2, 5, 4, 3, 2, 0), # 47 (10, 10, 10, 10, 7, 5, 3, 4, 3, 6, 0, 0, 0, 10, 10, 6, 8, 10, 5, 3, 2, 4, 1, 3, 0, 0), # 48 (13, 7, 11, 13, 7, 1, 3, 4, 7, 4, 0, 0, 0, 11, 11, 9, 7, 8, 7, 3, 1, 4, 5, 2, 0, 0), # 49 (17, 16, 11, 12, 11, 2, 1, 6, 9, 0, 2, 1, 0, 10, 10, 10, 13, 4, 3, 4, 2, 3, 3, 1, 1, 0), # 50 (11, 16, 12, 13, 11, 5, 9, 3, 2, 2, 1, 1, 0, 12, 5, 7, 6, 8, 6, 4, 1, 2, 4, 1, 2, 0), # 51 (13, 11, 5, 11, 10, 4, 4, 3, 4, 2, 2, 2, 0, 10, 10, 8, 9, 8, 5, 8, 5, 1, 5, 3, 0, 0), # 52 (10, 12, 13, 12, 6, 5, 5, 3, 6, 2, 0, 1, 0, 11, 12, 6, 7, 15, 5, 2, 5, 4, 5, 1, 2, 0), # 53 (14, 8, 11, 8, 8, 4, 3, 0, 4, 3, 3, 0, 0, 14, 7, 6, 8, 8, 5, 5, 1, 3, 5, 3, 0, 0), # 54 (12, 18, 11, 9, 8, 7, 5, 6, 3, 0, 1, 0, 0, 15, 9, 10, 9, 10, 6, 0, 4, 2, 1, 2, 0, 0), # 55 (17, 11, 7, 13, 8, 4, 3, 5, 3, 2, 1, 0, 0, 18, 7, 8, 7, 9, 5, 1, 5, 5, 7, 2, 1, 0), # 56 (8, 12, 13, 6, 11, 3, 6, 4, 5, 3, 0, 0, 0, 7, 6, 6, 7, 15, 3, 3, 4, 2, 2, 2, 1, 0), # 57 (7, 11, 6, 14, 9, 5, 5, 4, 6, 5, 1, 2, 0, 11, 14, 6, 6, 11, 9, 1, 3, 5, 7, 2, 2, 0), # 58 (13, 10, 7, 8, 7, 5, 4, 5, 5, 3, 1, 1, 0, 10, 19, 7, 2, 3, 4, 2, 2, 5, 6, 2, 1, 0), # 59 (16, 8, 9, 14, 11, 2, 6, 1, 8, 3, 0, 1, 0, 17, 10, 7, 6, 6, 7, 8, 3, 3, 6, 4, 0, 0), # 60 (18, 15, 15, 10, 4, 5, 7, 4, 3, 3, 4, 1, 0, 14, 10, 12, 2, 11, 7, 10, 5, 3, 4, 1, 0, 0), # 61 (11, 9, 9, 12, 12, 4, 1, 2, 5, 4, 3, 0, 0, 9, 14, 9, 6, 6, 3, 6, 4, 9, 5, 2, 1, 0), # 62 (17, 8, 12, 8, 11, 2, 4, 4, 5, 3, 3, 1, 0, 12, 6, 10, 6, 6, 4, 6, 3, 2, 5, 0, 1, 0), # 63 (15, 10, 12, 5, 12, 6, 2, 1, 6, 0, 2, 2, 0, 18, 13, 10, 7, 8, 5, 5, 3, 8, 1, 3, 1, 0), # 64 (13, 14, 13, 7, 6, 3, 14, 5, 6, 4, 2, 0, 0, 17, 13, 7, 2, 11, 7, 4, 4, 6, 2, 2, 1, 0), # 65 (7, 12, 14, 10, 7, 4, 4, 2, 2, 2, 0, 2, 0, 9, 9, 6, 6, 10, 5, 3, 3, 7, 2, 3, 1, 0), # 66 (9, 8, 11, 9, 9, 7, 2, 4, 5, 3, 0, 0, 0, 11, 11, 4, 7, 7, 5, 5, 6, 8, 5, 0, 1, 0), # 67 (7, 17, 4, 4, 15, 6, 5, 9, 8, 4, 2, 0, 0, 10, 9, 7, 12, 9, 5, 6, 3, 5, 3, 1, 2, 0), # 68 (8, 8, 8, 14, 8, 3, 3, 2, 6, 1, 3, 0, 0, 12, 11, 8, 5, 7, 3, 3, 2, 5, 7, 1, 0, 0), # 69 (13, 10, 6, 9, 7, 4, 3, 3, 3, 0, 2, 1, 0, 9, 6, 4, 7, 8, 5, 4, 3, 6, 2, 2, 2, 0), # 70 (11, 4, 8, 16, 9, 3, 5, 2, 2, 2, 3, 3, 0, 14, 10, 6, 5, 5, 4, 5, 3, 3, 5, 1, 0, 0), # 71 (11, 14, 11, 8, 11, 5, 7, 3, 5, 1, 2, 0, 0, 13, 16, 7, 5, 6, 9, 7, 3, 10, 5, 2, 1, 0), # 72 (14, 9, 14, 12, 14, 7, 4, 2, 1, 3, 0, 1, 0, 11, 9, 6, 9, 10, 4, 4, 4, 6, 3, 2, 1, 0), # 73 (12, 18, 17, 12, 7, 4, 5, 3, 6, 1, 2, 1, 0, 7, 12, 8, 5, 11, 4, 3, 6, 5, 5, 3, 1, 0), # 74 (16, 18, 10, 19, 11, 2, 5, 2, 8, 4, 1, 2, 0, 11, 7, 6, 6, 12, 1, 5, 0, 5, 4, 2, 1, 0), # 75 (10, 7, 9, 15, 12, 5, 7, 3, 6, 1, 1, 0, 0, 8, 8, 9, 7, 9, 9, 7, 3, 6, 0, 0, 1, 0), # 76 (17, 13, 12, 9, 14, 4, 7, 0, 5, 1, 1, 1, 0, 11, 6, 6, 3, 12, 8, 7, 3, 4, 4, 1, 4, 0), # 77 (19, 13, 9, 10, 13, 7, 6, 7, 5, 1, 1, 1, 0, 8, 12, 5, 3, 10, 4, 3, 4, 2, 6, 3, 0, 0), # 78 (7, 11, 6, 8, 6, 4, 1, 6, 5, 4, 3, 2, 0, 12, 9, 5, 4, 14, 7, 6, 2, 2, 6, 2, 3, 0), # 79 (13, 15, 5, 13, 11, 7, 8, 0, 6, 1, 0, 1, 0, 14, 7, 14, 7, 14, 2, 3, 2, 1, 1, 2, 0, 0), # 80 (12, 7, 10, 12, 8, 2, 2, 2, 4, 1, 1, 2, 0, 11, 9, 9, 5, 9, 4, 3, 1, 4, 1, 4, 2, 0), # 81 (8, 10, 9, 9, 13, 4, 2, 6, 10, 1, 4, 0, 0, 15, 12, 9, 2, 11, 6, 3, 3, 4, 2, 0, 1, 0), # 82 (11, 8, 7, 11, 10, 0, 3, 5, 2, 2, 3, 2, 0, 7, 13, 9, 4, 10, 0, 3, 2, 3, 7, 2, 1, 0), # 83 (9, 10, 12, 16, 7, 6, 3, 3, 2, 3, 2, 0, 0, 6, 14, 5, 8, 18, 5, 3, 2, 2, 1, 3, 3, 0), # 84 (15, 12, 11, 11, 12, 8, 6, 2, 5, 2, 1, 0, 0, 10, 9, 9, 5, 9, 8, 4, 3, 5, 3, 3, 2, 0), # 85 (9, 12, 12, 9, 11, 8, 8, 1, 3, 3, 1, 1, 0, 10, 6, 2, 1, 9, 3, 2, 3, 5, 5, 1, 0, 0), # 86 (6, 11, 9, 10, 5, 4, 4, 3, 6, 4, 2, 0, 0, 8, 11, 2, 8, 9, 6, 8, 4, 4, 5, 4, 0, 0), # 87 (16, 15, 6, 12, 8, 3, 4, 4, 1, 2, 2, 2, 0, 13, 9, 5, 7, 7, 7, 3, 2, 4, 1, 3, 0, 0), # 88 (21, 8, 15, 7, 11, 2, 3, 2, 1, 2, 2, 0, 0, 22, 15, 3, 9, 10, 8, 3, 3, 3, 1, 1, 0, 0), # 89 (14, 14, 11, 9, 12, 2, 6, 5, 2, 3, 1, 1, 0, 9, 11, 7, 9, 7, 9, 4, 4, 5, 7, 2, 0, 0), # 90 (9, 5, 9, 9, 11, 4, 5, 3, 2, 2, 1, 0, 0, 13, 8, 8, 3, 8, 5, 3, 3, 4, 1, 2, 4, 0), # 91 (11, 8, 9, 8, 6, 3, 3, 6, 4, 0, 0, 2, 0, 11, 10, 9, 4, 9, 5, 5, 2, 5, 4, 3, 0, 0), # 92 (10, 12, 10, 10, 11, 2, 5, 1, 2, 5, 3, 0, 0, 7, 7, 7, 11, 12, 7, 4, 5, 2, 5, 3, 0, 0), # 93 (11, 12, 16, 7, 5, 5, 4, 4, 3, 3, 1, 0, 0, 8, 9, 8, 8, 12, 2, 4, 7, 5, 3, 3, 0, 0), # 94 (13, 8, 8, 6, 13, 5, 6, 3, 4, 1, 3, 1, 0, 13, 14, 9, 5, 5, 7, 8, 0, 7, 4, 3, 0, 0), # 95 (11, 7, 8, 9, 11, 5, 1, 4, 3, 3, 1, 1, 0, 12, 11, 7, 7, 13, 8, 4, 2, 3, 4, 0, 1, 0), # 96 (10, 11, 9, 9, 6, 1, 7, 3, 3, 2, 1, 0, 0, 10, 5, 8, 8, 4, 5, 7, 2, 4, 4, 2, 0, 0), # 97 (13, 6, 4, 16, 8, 3, 3, 6, 4, 2, 1, 0, 0, 15, 12, 7, 7, 11, 1, 2, 3, 5, 10, 0, 1, 0), # 98 (14, 11, 10, 9, 11, 8, 3, 3, 3, 0, 2, 2, 0, 11, 13, 7, 7, 10, 2, 5, 4, 7, 2, 2, 3, 0), # 99 (21, 10, 11, 5, 10, 9, 5, 1, 7, 3, 0, 0, 0, 8, 10, 4, 6, 8, 4, 5, 7, 5, 4, 2, 1, 0), # 100 (14, 16, 13, 8, 5, 1, 3, 3, 6, 2, 4, 2, 0, 11, 7, 6, 4, 8, 5, 1, 3, 2, 5, 0, 1, 0), # 101 (10, 9, 14, 13, 15, 3, 8, 1, 5, 2, 1, 1, 0, 9, 11, 7, 5, 5, 5, 5, 1, 4, 2, 3, 0, 0), # 102 (8, 11, 11, 9, 10, 3, 3, 6, 5, 1, 0, 1, 0, 8, 6, 10, 7, 8, 3, 5, 1, 4, 3, 2, 2, 0), # 103 (11, 8, 9, 9, 8, 1, 4, 3, 6, 1, 2, 0, 0, 22, 9, 8, 9, 4, 2, 2, 3, 5, 1, 2, 1, 0), # 104 (16, 6, 8, 15, 6, 4, 0, 4, 5, 1, 0, 1, 0, 15, 7, 3, 6, 7, 2, 6, 1, 2, 2, 1, 1, 0), # 105 (13, 11, 7, 17, 9, 2, 2, 2, 5, 0, 2, 0, 0, 6, 7, 11, 1, 9, 5, 4, 1, 1, 5, 1, 0, 0), # 106 (16, 5, 9, 9, 11, 6, 0, 5, 4, 2, 2, 1, 0, 9, 6, 4, 3, 12, 5, 4, 3, 6, 4, 2, 1, 0), # 107 (19, 13, 10, 9, 7, 5, 1, 2, 4, 3, 0, 1, 0, 13, 16, 7, 5, 8, 5, 2, 8, 1, 0, 3, 2, 0), # 108 (12, 5, 4, 10, 4, 3, 2, 3, 8, 0, 2, 1, 0, 12, 6, 9, 7, 7, 2, 1, 1, 5, 4, 3, 0, 0), # 109 (14, 10, 9, 8, 4, 6, 2, 3, 3, 1, 0, 0, 0, 8, 10, 6, 6, 11, 8, 3, 4, 6, 4, 2, 0, 0), # 110 (16, 9, 10, 7, 12, 4, 6, 3, 1, 2, 1, 2, 0, 15, 16, 5, 5, 9, 3, 5, 3, 4, 7, 2, 0, 0), # 111 (10, 5, 6, 14, 3, 2, 4, 2, 5, 2, 1, 1, 0, 13, 5, 6, 5, 6, 7, 1, 1, 1, 9, 1, 2, 0), # 112 (15, 11, 7, 9, 8, 3, 3, 3, 2, 1, 0, 0, 0, 11, 4, 7, 4, 6, 4, 3, 1, 2, 2, 1, 1, 0), # 113 (12, 9, 6, 5, 11, 6, 7, 7, 2, 3, 3, 0, 0, 22, 10, 5, 5, 4, 7, 1, 4, 2, 4, 1, 1, 0), # 114 (10, 6, 8, 8, 6, 4, 3, 2, 4, 3, 0, 0, 0, 15, 15, 6, 3, 8, 4, 5, 6, 5, 2, 1, 2, 0), # 115 (14, 9, 14, 7, 9, 2, 2, 5, 3, 1, 1, 1, 0, 17, 7, 8, 4, 8, 5, 6, 3, 6, 4, 2, 2, 0), # 116 (6, 9, 7, 8, 7, 5, 4, 4, 5, 1, 2, 0, 0, 11, 8, 8, 9, 6, 6, 4, 2, 7, 3, 3, 0, 0), # 117 (17, 8, 13, 6, 6, 2, 2, 6, 2, 0, 0, 1, 0, 10, 9, 6, 5, 14, 2, 2, 4, 4, 9, 0, 0, 0), # 118 (9, 7, 13, 11, 11, 6, 2, 2, 6, 2, 3, 3, 0, 13, 6, 4, 5, 10, 3, 0, 2, 5, 2, 2, 0, 0), # 119 (13, 9, 13, 11, 9, 1, 2, 2, 1, 4, 0, 0, 0, 13, 11, 10, 2, 11, 5, 6, 2, 4, 6, 2, 1, 0), # 120 (12, 8, 12, 8, 9, 3, 5, 6, 7, 1, 2, 2, 0, 13, 13, 5, 10, 6, 4, 3, 1, 5, 0, 3, 0, 0), # 121 (10, 3, 7, 6, 6, 3, 6, 5, 6, 2, 3, 1, 0, 16, 7, 10, 3, 7, 9, 3, 1, 1, 4, 2, 0, 0), # 122 (14, 7, 15, 17, 9, 10, 0, 1, 7, 1, 2, 0, 0, 16, 11, 1, 5, 7, 3, 5, 3, 3, 6, 0, 0, 0), # 123 (10, 9, 8, 13, 5, 10, 3, 5, 2, 2, 1, 1, 0, 13, 10, 11, 6, 7, 2, 1, 2, 1, 3, 3, 1, 0), # 124 (11, 5, 11, 11, 8, 8, 5, 1, 10, 4, 2, 0, 0, 13, 3, 6, 8, 6, 4, 3, 1, 4, 4, 2, 1, 0), # 125 (9, 2, 7, 8, 4, 4, 3, 3, 4, 2, 3, 1, 0, 9, 9, 10, 5, 9, 2, 6, 3, 3, 1, 2, 0, 0), # 126 (12, 12, 8, 3, 6, 7, 1, 2, 3, 0, 0, 2, 0, 9, 13, 6, 6, 6, 3, 3, 2, 4, 2, 3, 2, 0), # 127 (14, 6, 7, 12, 10, 0, 6, 3, 8, 0, 2, 0, 0, 14, 6, 8, 3, 7, 4, 2, 2, 3, 3, 2, 1, 0), # 128 (18, 8, 10, 4, 2, 3, 2, 3, 2, 3, 2, 0, 0, 9, 8, 8, 5, 8, 0, 1, 0, 6, 1, 1, 0, 0), # 129 (11, 11, 8, 8, 9, 3, 2, 1, 5, 1, 1, 0, 0, 15, 8, 4, 8, 9, 7, 2, 5, 6, 5, 1, 1, 0), # 130 (13, 12, 11, 8, 8, 6, 1, 4, 4, 2, 3, 2, 0, 8, 12, 3, 1, 4, 7, 6, 5, 7, 3, 2, 0, 0), # 131 (8, 7, 9, 8, 5, 6, 1, 3, 0, 1, 2, 0, 0, 16, 13, 5, 6, 9, 5, 4, 0, 9, 4, 1, 0, 0), # 132 (11, 5, 14, 14, 10, 4, 10, 4, 6, 2, 2, 0, 0, 8, 5, 7, 4, 9, 3, 0, 2, 4, 9, 3, 0, 0), # 133 (11, 3, 6, 5, 11, 4, 3, 0, 4, 2, 1, 0, 0, 11, 10, 6, 3, 8, 4, 3, 1, 4, 5, 3, 0, 0), # 134 (5, 9, 3, 8, 9, 4, 3, 2, 11, 1, 1, 0, 0, 12, 6, 6, 8, 8, 4, 3, 1, 1, 3, 1, 0, 0), # 135 (8, 9, 15, 2, 10, 5, 4, 2, 6, 3, 1, 0, 0, 10, 8, 5, 5, 12, 4, 6, 2, 3, 3, 1, 2, 0), # 136 (8, 1, 12, 5, 5, 3, 4, 3, 5, 4, 0, 1, 0, 16, 8, 9, 4, 8, 4, 6, 1, 2, 4, 3, 1, 0), # 137 (7, 4, 11, 5, 10, 3, 1, 4, 2, 0, 3, 1, 0, 13, 7, 4, 6, 9, 6, 1, 8, 5, 4, 2, 0, 0), # 138 (5, 7, 8, 8, 7, 4, 3, 5, 3, 6, 4, 0, 0, 16, 6, 7, 5, 9, 4, 4, 2, 3, 1, 1, 1, 0), # 139 (10, 8, 14, 9, 9, 5, 4, 2, 3, 0, 0, 1, 0, 4, 13, 8, 5, 11, 5, 2, 3, 6, 2, 4, 1, 0), # 140 (10, 10, 6, 11, 6, 3, 3, 2, 4, 0, 0, 0, 0, 8, 7, 6, 7, 9, 5, 3, 0, 6, 3, 3, 1, 0), # 141 (9, 5, 9, 10, 10, 1, 5, 2, 5, 2, 1, 0, 0, 10, 9, 7, 2, 9, 3, 2, 3, 6, 0, 1, 2, 0), # 142 (8, 5, 12, 6, 10, 1, 4, 3, 5, 1, 0, 2, 0, 6, 9, 8, 6, 5, 2, 1, 3, 3, 2, 2, 0, 0), # 143 (7, 4, 10, 11, 8, 2, 1, 3, 7, 0, 0, 0, 0, 9, 12, 4, 3, 11, 3, 5, 1, 2, 0, 1, 0, 0), # 144 (2, 10, 4, 4, 4, 2, 1, 1, 7, 1, 0, 0, 0, 14, 7, 2, 4, 5, 3, 4, 3, 4, 4, 1, 0, 0), # 145 (5, 11, 14, 12, 9, 4, 1, 5, 4, 0, 1, 0, 0, 10, 9, 6, 6, 11, 5, 4, 3, 3, 4, 2, 0, 0), # 146 (13, 11, 2, 9, 7, 4, 1, 2, 0, 0, 2, 0, 0, 10, 15, 9, 6, 9, 4, 1, 5, 5, 5, 1, 0, 0), # 147 (7, 3, 11, 6, 8, 1, 4, 2, 5, 2, 0, 0, 0, 10, 10, 3, 8, 5, 3, 3, 2, 4, 1, 2, 2, 0), # 148 (10, 6, 5, 8, 9, 4, 4, 1, 3, 2, 3, 1, 0, 8, 8, 6, 6, 10, 5, 5, 2, 3, 2, 1, 1, 0), # 149 (8, 8, 14, 10, 9, 7, 3, 2, 4, 2, 1, 2, 0, 6, 9, 12, 1, 15, 2, 1, 1, 2, 6, 2, 0, 0), # 150 (9, 5, 10, 6, 7, 5, 3, 1, 2, 2, 1, 3, 0, 11, 5, 2, 5, 7, 2, 3, 5, 1, 5, 0, 1, 0), # 151 (8, 9, 6, 12, 10, 4, 4, 2, 4, 1, 1, 2, 0, 8, 9, 10, 6, 8, 3, 2, 3, 6, 3, 0, 1, 0), # 152 (11, 7, 13, 12, 7, 6, 3, 5, 3, 0, 1, 0, 0, 14, 9, 4, 1, 7, 6, 1, 3, 6, 3, 2, 2, 0), # 153 (10, 14, 8, 8, 9, 7, 4, 2, 4, 0, 3, 3, 0, 14, 8, 4, 5, 4, 4, 1, 2, 3, 4, 0, 2, 0), # 154 (7, 6, 7, 7, 13, 1, 3, 2, 6, 5, 1, 2, 0, 9, 10, 2, 6, 3, 6, 2, 2, 7, 4, 2, 0, 0), # 155 (6, 5, 10, 11, 9, 7, 2, 2, 2, 2, 1, 0, 0, 13, 7, 6, 2, 2, 3, 2, 5, 9, 3, 0, 0, 0), # 156 (7, 6, 14, 8, 6, 8, 6, 1, 5, 2, 2, 0, 0, 8, 10, 4, 4, 8, 3, 4, 3, 3, 1, 1, 1, 0), # 157 (6, 3, 2, 14, 5, 4, 5, 1, 1, 1, 0, 0, 0, 6, 14, 6, 8, 6, 7, 1, 4, 7, 1, 1, 0, 0), # 158 (7, 8, 10, 10, 6, 4, 2, 5, 5, 1, 1, 0, 0, 6, 8, 6, 3, 7, 3, 2, 1, 5, 1, 0, 0, 0), # 159 (6, 5, 7, 4, 7, 4, 1, 3, 3, 2, 0, 0, 0, 10, 5, 5, 9, 5, 7, 3, 3, 3, 3, 0, 0, 0), # 160 (7, 6, 5, 5, 1, 3, 5, 2, 1, 2, 1, 0, 0, 11, 6, 8, 2, 7, 3, 3, 5, 4, 5, 2, 1, 0), # 161 (5, 5, 6, 11, 14, 4, 2, 1, 4, 2, 1, 2, 0, 8, 9, 7, 3, 3, 1, 5, 1, 2, 3, 3, 1, 0), # 162 (3, 8, 6, 6, 8, 2, 2, 3, 2, 0, 3, 0, 0, 11, 6, 7, 4, 4, 6, 1, 2, 4, 2, 0, 0, 0), # 163 (10, 6, 8, 10, 8, 1, 4, 1, 4, 1, 0, 1, 0, 8, 7, 7, 4, 5, 5, 1, 1, 4, 1, 2, 0, 0), # 164 (9, 8, 7, 4, 7, 2, 2, 1, 1, 2, 3, 0, 0, 6, 10, 8, 7, 14, 4, 3, 2, 3, 1, 3, 2, 0), # 165 (5, 8, 9, 6, 5, 3, 5, 3, 2, 2, 2, 0, 0, 8, 9, 2, 2, 8, 6, 2, 1, 4, 0, 3, 0, 0), # 166 (4, 4, 6, 6, 10, 2, 5, 1, 4, 0, 3, 3, 0, 9, 2, 4, 3, 4, 1, 3, 1, 2, 2, 1, 0, 0), # 167 (3, 7, 7, 9, 10, 3, 4, 2, 1, 1, 0, 1, 0, 9, 4, 4, 2, 3, 3, 2, 2, 2, 3, 2, 1, 0), # 168 (3, 4, 3, 4, 5, 3, 3, 2, 0, 1, 0, 2, 0, 12, 9, 7, 2, 12, 5, 0, 4, 4, 5, 1, 1, 0), # 169 (5, 4, 2, 10, 5, 5, 5, 4, 4, 0, 3, 0, 0, 6, 6, 5, 5, 5, 4, 2, 2, 5, 3, 1, 0, 0), # 170 (8, 8, 7, 6, 5, 4, 4, 2, 6, 0, 2, 0, 0, 4, 7, 4, 4, 4, 4, 0, 1, 1, 1, 1, 0, 0), # 171 (4, 3, 7, 4, 6, 4, 1, 2, 4, 3, 1, 1, 0, 11, 5, 1, 7, 3, 3, 2, 4, 1, 3, 1, 0, 0), # 172 (10, 7, 7, 7, 10, 3, 2, 2, 4, 1, 1, 0, 0, 5, 3, 5, 4, 4, 6, 2, 1, 2, 4, 0, 1, 0), # 173 (3, 3, 4, 10, 2, 1, 0, 1, 1, 1, 0, 0, 0, 6, 1, 2, 2, 3, 1, 0, 3, 2, 4, 0, 0, 0), # 174 (6, 3, 3, 6, 5, 1, 3, 2, 2, 0, 1, 0, 0, 9, 8, 1, 2, 9, 3, 6, 0, 4, 1, 0, 2, 0), # 175 (5, 3, 2, 3, 3, 3, 2, 2, 3, 0, 0, 0, 0, 6, 8, 6, 3, 6, 0, 3, 1, 6, 0, 1, 1, 0), # 176 (3, 4, 6, 2, 3, 0, 2, 2, 0, 0, 0, 1, 0, 7, 4, 5, 2, 3, 2, 3, 1, 3, 1, 1, 0, 0), # 177 (7, 4, 6, 3, 1, 2, 1, 2, 0, 1, 0, 2, 0, 4, 3, 3, 3, 3, 2, 2, 1, 0, 1, 1, 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 = ( (6.025038694046121, 6.630346271631799, 6.253539875535008, 7.457601328636119, 6.665622729131534, 3.766385918444806, 4.9752427384486975, 5.583811407575308, 7.308118874601608, 4.749618018626843, 5.046318196662723, 5.877498093967408, 6.100656255094035), # 0 (6.425192582423969, 7.06807283297371, 6.666415909596182, 7.950173103931939, 7.106988404969084, 4.015180300851067, 5.303362729516432, 5.951416467486849, 7.79069439159949, 5.062776830732579, 5.3797153631473575, 6.265459992977225, 6.503749976927826), # 1 (6.8240676107756775, 7.504062205069175, 7.077650742656896, 8.440785245597752, 7.546755568499692, 4.262982137414934, 5.630182209552845, 6.317550297485303, 8.271344168253059, 5.3746965300246545, 5.711787778531575, 6.651879182463666, 6.905237793851628), # 2 (7.220109351775874, 7.936584602323736, 7.485613043183825, 8.927491689038488, 7.983194011202282, 4.508808747102135, 5.954404369977547, 6.680761388993408, 8.74816219310531, 5.684139238111417, 6.041218094192859, 7.035222821916553, 7.30352736750507), # 3 (7.611763378099177, 8.363910239142928, 7.8886714796436435, 9.408346369659084, 8.41457352455579, 4.751677448878401, 6.27473240221015, 7.039598233433898, 9.219242454699248, 5.9898670766012145, 6.36668896150869, 7.413958070825716, 7.69702635952778), # 4 (7.9974752624202115, 8.784309329932306, 8.285194720503021, 9.881403222864472, 8.839163900039136, 4.990605561709457, 6.589869497670269, 7.392609322229511, 9.682678941577871, 6.290642167102395, 6.686883031856559, 7.786552088680978, 8.084142431559393), # 5 (8.375690577413598, 9.196052089097401, 8.673551434228639, 10.344716184059582, 9.255234929131252, 5.224610404561036, 6.898518847777515, 7.738343146802986, 10.136565642284177, 6.58522663122331, 7.000482956613939, 8.15147203497217, 8.463283245239527), # 6 (8.744854895753962, 9.597408731043757, 9.052110289287162, 10.796339188649354, 9.661056403311065, 5.452709296398865, 7.199383643951502, 8.075348198577062, 10.578996545361173, 6.872382590572303, 7.306171387158321, 8.507185069189115, 8.832856462207822), # 7 (9.103413790115921, 9.986649470176918, 9.419239954145274, 11.234326172038713, 10.054898114057503, 5.673919556188667, 7.491167077611837, 8.402172968974469, 11.008065639351846, 7.150872166757728, 7.602630974867185, 8.852158350821643, 9.1912697441039), # 8 (9.449812833174102, 10.362044520902426, 9.773309097269644, 11.656731069632603, 10.43502985284949, 5.88725850289618, 7.772572340178144, 8.717365949417955, 11.421866912799208, 7.419457481387929, 7.888544371118013, 9.184859039359576, 9.536930752567395), # 9 (9.782497597603118, 10.721864097625819, 10.11268638712695, 12.061607816835945, 10.79972141116596, 6.091743455487129, 8.042302623070025, 9.019475631330252, 11.818494354246257, 7.676900656071257, 8.162594227288288, 9.503754294292742, 9.868247149237932), # 10 (10.099913656077605, 11.064378414752648, 10.435740492183857, 12.447010349053675, 11.14724258048584, 6.286391732927242, 8.2990611177071, 9.307050506134097, 12.196041952235992, 7.921963812416062, 8.423463194755499, 9.807311275110973, 10.183626595755133), # 11 (10.400506581272174, 11.387857686688436, 10.740840080907047, 12.810992601690733, 11.475863152288053, 6.470220654182243, 8.541551015508974, 9.578639065252224, 12.552603695311413, 8.153409072030685, 8.669833924897121, 10.093997141304081, 10.48147675375864), # 12 (10.68272194586145, 11.690572127838744, 11.026353821763193, 13.151608510152052, 11.78385291805152, 6.642247538217868, 8.768475507895266, 9.832789800107378, 12.886273572015517, 8.369998556523484, 8.900389069090641, 10.362279052361904, 10.760205284888082), # 13 (10.945005322520059, 11.970791952609106, 11.290650383218976, 13.46691200984255, 12.069481669255188, 6.801489703999841, 8.978537786285592, 10.068051202122295, 13.195145570891304, 8.5704943875028, 9.113811278713541, 10.610624167774272, 11.018219850783076), # 14 (11.185802283922625, 12.22678737540506, 11.53209843374105, 13.754957036167182, 12.33101919737797, 6.946964470493895, 9.17044104209955, 10.282971762719706, 13.477313680481783, 8.753658686576989, 9.308783205143303, 10.837499647031004, 11.253928113083257), # 15 (11.40355840274376, 12.456828610632158, 11.749066641796109, 14.01379752453086, 12.5667352938988, 7.077689156665751, 9.34288846675677, 10.476099973322352, 13.730871889329944, 8.918253575354395, 9.483987499757415, 11.041372649621927, 11.465737733428254), # 16 (11.59671925165809, 12.659185872695934, 11.939923675850823, 14.241487410338534, 12.774899750296605, 7.192681081481142, 9.494583251676852, 10.64598432535298, 13.95391418597878, 9.06304117544336, 9.638106813933359, 11.220710335036866, 11.652056373457699), # 17 (11.763730403340244, 12.832129376001928, 12.103038204371856, 14.436080628995134, 12.953782358050306, 7.290957563905803, 9.62422858827942, 10.791173310234312, 14.144534558971316, 9.186783608452243, 9.76982379904861, 11.373979862765658, 11.811291694811214), # 18 (11.903037430464838, 12.973929334955693, 12.236778895825895, 14.595631115905576, 13.101652908638838, 7.37153592290545, 9.730527667984072, 10.910215419389093, 14.300826996850533, 9.288242995989393, 9.877821106480653, 11.499648392298115, 11.941851359128435), # 19 (12.013085905706498, 13.082855963962754, 12.339514418679602, 14.718192806474825, 13.216781193541133, 7.4334334774458215, 9.812183682210435, 11.00165914424006, 14.420885488159437, 9.36618145966315, 9.96078138760698, 11.59618308312407, 12.042143028048988), # 20 (12.09232140173984, 13.15717947742867, 12.409613441399662, 14.801819636107782, 13.297437004236105, 7.475667546492642, 9.86789982237811, 11.064052976209947, 14.502804021441024, 9.419361121081865, 10.01738729380507, 11.662051094733352, 12.110574363212494), # 21 (12.139189491239494, 13.195170089758973, 12.445444632452743, 14.844565540209402, 13.341890132202689, 7.497255449011639, 9.89637927990672, 11.095945406721498, 14.544676585238298, 9.44654410185389, 10.046321476452407, 11.695719586615787, 12.145553026258591), # 22 (12.156472036011166, 13.199668312757202, 12.449907818930042, 14.849916975308643, 13.353278467239116, 7.5, 9.899764802711205, 11.099392592592592, 14.54991148148148, 9.44975072702332, 10.049949644594088, 11.69987709190672, 12.15), # 23 (12.169214895640982, 13.197044444444446, 12.449177777777777, 14.849258333333335, 13.359729136337823, 7.5, 9.8979045751634, 11.0946, 14.549209999999999, 9.44778074074074, 10.049549494949495, 11.698903703703703, 12.15), # 24 (12.181688676253897, 13.191872427983538, 12.447736625514404, 14.84795524691358, 13.366037934713404, 7.5, 9.894238683127572, 11.085185185185185, 14.547824074074073, 9.443902606310013, 10.048756079311634, 11.696982167352537, 12.15), # 25 (12.19389242285764, 13.184231275720165, 12.445604115226338, 14.846022530864197, 13.372204642105325, 7.5, 9.888824061970466, 11.071325925925926, 14.54577148148148, 9.438180850480109, 10.047576580621024, 11.694138820301784, 12.15), # 26 (12.205825180459962, 13.174199999999997, 12.4428, 14.843474999999998, 13.378229038253057, 7.5, 9.881717647058824, 11.0532, 14.54307, 9.430679999999999, 10.046018181818182, 11.6904, 12.15), # 27 (12.217485994068602, 13.161857613168722, 12.439344032921811, 14.8403274691358, 13.384110902896081, 7.5, 9.87297637375938, 11.030985185185186, 14.539737407407406, 9.421464581618656, 10.04408806584362, 11.685792043895749, 12.15), # 28 (12.2288739086913, 13.147283127572017, 12.43525596707819, 14.83659475308642, 13.389850015773865, 7.5, 9.862657177438878, 11.004859259259257, 14.535791481481482, 9.410599122085047, 10.041793415637859, 11.680341289437584, 12.15), # 29 (12.239987969335797, 13.130555555555555, 12.430555555555555, 14.832291666666666, 13.395446156625884, 7.5, 9.850816993464052, 10.974999999999998, 14.53125, 9.398148148148149, 10.039141414141413, 11.674074074074072, 12.15), # 30 (12.25082722100983, 13.11175390946502, 12.42526255144033, 14.827433024691356, 13.400899105191609, 7.5, 9.837512757201647, 10.941585185185184, 14.52613074074074, 9.384176186556926, 10.0361392442948, 11.667016735253773, 12.15), # 31 (12.261390708721144, 13.09095720164609, 12.419396707818928, 14.822033641975308, 13.406208641210513, 7.5, 9.822801404018398, 10.904792592592594, 14.520451481481482, 9.368747764060357, 10.032794089038532, 11.659195610425241, 12.15), # 32 (12.271677477477477, 13.068244444444444, 12.412977777777778, 14.816108333333332, 13.411374544422076, 7.5, 9.806739869281046, 10.8648, 14.51423, 9.351927407407407, 10.02911313131313, 11.650637037037034, 12.15), # 33 (12.28168657228657, 13.04369465020576, 12.406025514403291, 14.809671913580246, 13.416396594565759, 7.5, 9.789385088356331, 10.821785185185183, 14.507484074074075, 9.33377964334705, 10.025103554059108, 11.641367352537722, 12.15), # 34 (12.291417038156167, 13.01738683127572, 12.398559670781895, 14.802739197530862, 13.421274571381044, 7.5, 9.77079399661099, 10.775925925925925, 14.500231481481482, 9.314368998628257, 10.020772540216983, 11.631412894375858, 12.15), # 35 (12.300867920094007, 12.989399999999998, 12.3906, 14.795324999999998, 13.426008254607403, 7.5, 9.751023529411764, 10.727400000000001, 14.492489999999998, 9.293759999999999, 10.016127272727273, 11.620800000000001, 12.15), # 36 (12.310038263107828, 12.95981316872428, 12.382166255144032, 14.787444135802469, 13.430597423984304, 7.5, 9.730130622125392, 10.676385185185184, 14.484277407407406, 9.272017174211248, 10.01117493453049, 11.609555006858711, 12.15), # 37 (12.31892711220537, 12.928705349794239, 12.37327818930041, 14.779111419753086, 13.435041859251228, 7.5, 9.708172210118615, 10.62305925925926, 14.475611481481481, 9.249205048010975, 10.005922708567153, 11.597704252400549, 12.15), # 38 (12.327533512394384, 12.896155555555554, 12.363955555555556, 14.770341666666667, 13.439341340147644, 7.5, 9.68520522875817, 10.567599999999999, 14.466510000000001, 9.225388148148149, 10.000377777777777, 11.585274074074073, 12.15), # 39 (12.335856508682596, 12.86224279835391, 12.354218106995884, 14.761149691358025, 13.443495646413021, 7.5, 9.661286613410796, 10.510185185185186, 14.456990740740741, 9.200631001371743, 9.99454732510288, 11.572290809327848, 12.15), # 40 (12.343895146077754, 12.82704609053498, 12.344085596707819, 14.751550308641974, 13.447504557786841, 7.5, 9.636473299443233, 10.450992592592593, 14.44707148148148, 9.174998134430727, 9.988438533482979, 11.558780795610424, 12.15), # 41 (12.3516484695876, 12.790644444444444, 12.333577777777778, 14.741558333333334, 13.45136785400857, 7.5, 9.610822222222222, 10.3902, 14.436770000000001, 9.148554074074074, 9.982058585858585, 11.54477037037037, 12.15), # 42 (12.35911552421987, 12.753116872427984, 12.322714403292181, 14.731188580246913, 13.455085314817683, 7.5, 9.584390317114499, 10.327985185185186, 14.426104074074072, 9.121363347050755, 9.97541466517022, 11.530285871056241, 12.15), # 43 (12.366295354982311, 12.714542386831276, 12.31151522633745, 14.72045586419753, 13.458656719953654, 7.5, 9.557234519486807, 10.264525925925927, 14.415091481481479, 9.09349048010974, 9.968513954358398, 11.515353635116599, 12.15), # 44 (12.37318700688266, 12.674999999999999, 12.299999999999999, 14.709375, 13.462081849155954, 7.5, 9.529411764705882, 10.2, 14.403749999999999, 9.065, 9.961363636363636, 11.499999999999998, 12.15), # 45 (12.379789524928656, 12.634568724279836, 12.288188477366253, 14.697960802469135, 13.465360482164058, 7.5, 9.500978988138465, 10.134585185185186, 14.392097407407405, 9.035956433470506, 9.953970894126448, 11.484251303155007, 12.15), # 46 (12.386101954128042, 12.59332757201646, 12.276100411522634, 14.686228086419751, 13.46849239871744, 7.5, 9.471993125151295, 10.068459259259258, 14.380151481481482, 9.006424307270233, 9.946342910587354, 11.468133882030179, 12.15), # 47 (12.392123339488554, 12.551355555555554, 12.263755555555555, 14.674191666666667, 13.471477378555573, 7.5, 9.442511111111111, 10.001800000000001, 14.367930000000001, 8.976468148148147, 9.938486868686867, 11.451674074074074, 12.15), # 48 (12.397852726017943, 12.508731687242797, 12.251173662551441, 14.661866358024692, 13.474315201417928, 7.5, 9.412589881384651, 9.934785185185184, 14.355450740740741, 8.946152482853224, 9.930409951365506, 11.434898216735254, 12.15), # 49 (12.403289158723938, 12.46553497942387, 12.23837448559671, 14.649266975308642, 13.477005647043978, 7.5, 9.38228637133866, 9.867592592592592, 14.342731481481481, 8.91554183813443, 9.922119341563786, 11.417832647462278, 12.15), # 50 (12.408431682614292, 12.421844444444444, 12.225377777777776, 14.636408333333332, 13.479548495173196, 7.5, 9.351657516339868, 9.8004, 14.329790000000001, 8.88470074074074, 9.913622222222223, 11.400503703703704, 12.15), # 51 (12.413279342696734, 12.377739094650208, 12.21220329218107, 14.62330524691358, 13.481943525545056, 7.5, 9.320760251755022, 9.733385185185183, 14.316644074074073, 8.853693717421125, 9.904925776281331, 11.382937722908094, 12.15), # 52 (12.417831183979011, 12.333297942386832, 12.198870781893005, 14.609972530864196, 13.484190517899036, 7.5, 9.28965151295086, 9.666725925925926, 14.303311481481483, 8.822585294924554, 9.89603718668163, 11.365161042524004, 12.15), # 53 (12.42208625146886, 12.2886, 12.185399999999998, 14.596425, 13.486289251974602, 7.5, 9.258388235294117, 9.600599999999998, 14.28981, 8.79144, 9.886963636363634, 11.347199999999999, 12.15), # 54 (12.426043590174027, 12.24372427983539, 12.171810699588478, 14.5826774691358, 13.488239507511228, 7.5, 9.227027354151536, 9.535185185185185, 14.276157407407407, 8.760322359396433, 9.877712308267864, 11.329080932784636, 12.15), # 55 (12.429702245102245, 12.198749794238683, 12.158122633744856, 14.568744753086419, 13.49004106424839, 7.5, 9.195625804889858, 9.470659259259259, 14.262371481481482, 8.729296899862826, 9.868290385334829, 11.310830178326475, 12.15), # 56 (12.433061261261258, 12.153755555555556, 12.144355555555556, 14.554641666666665, 13.49169370192556, 7.5, 9.164240522875817, 9.407200000000001, 14.24847, 8.698428148148148, 9.85870505050505, 11.292474074074073, 12.15), # 57 (12.436119683658815, 12.108820576131688, 12.130529218106995, 14.540383024691355, 13.493197200282209, 7.5, 9.132928443476155, 9.344985185185184, 14.23447074074074, 8.667780631001373, 9.848963486719043, 11.274038957475994, 12.15), # 58 (12.438876557302644, 12.064023868312757, 12.116663374485597, 14.525983641975307, 13.494551339057814, 7.5, 9.101746502057614, 9.284192592592593, 14.220391481481482, 8.637418875171468, 9.839072876917319, 11.255551165980796, 12.15), # 59 (12.441330927200491, 12.019444444444444, 12.102777777777776, 14.511458333333334, 13.495755897991843, 7.5, 9.070751633986927, 9.225, 14.20625, 8.607407407407408, 9.829040404040404, 11.237037037037037, 12.15), # 60 (12.443481838360098, 11.975161316872429, 12.08889218106996, 14.496821913580245, 13.496810656823774, 7.5, 9.040000774630839, 9.167585185185185, 14.192064074074073, 8.577810754458161, 9.818873251028807, 11.218522908093279, 12.15), # 61 (12.445328335789204, 11.931253497942386, 12.075026337448561, 14.482089197530865, 13.497715395293081, 7.5, 9.009550859356088, 9.112125925925925, 14.177851481481481, 8.548693443072702, 9.808578600823045, 11.20003511659808, 12.15), # 62 (12.44686946449555, 11.887799999999999, 12.0612, 14.467275, 13.498469893139227, 7.5, 8.979458823529411, 9.0588, 14.16363, 8.520119999999999, 9.798163636363636, 11.1816, 12.15), # 63 (12.448104269486876, 11.844879835390946, 12.047432921810698, 14.452394135802468, 13.499073930101698, 7.5, 8.94978160251755, 9.007785185185186, 14.149417407407407, 8.492154951989026, 9.787635540591094, 11.1632438957476, 12.15), # 64 (12.449031795770926, 11.802572016460903, 12.033744855967079, 14.437461419753085, 13.49952728591996, 7.5, 8.920576131687243, 8.959259259259259, 14.135231481481481, 8.464862825788751, 9.777001496445942, 11.144993141289435, 12.15), # 65 (12.449651088355436, 11.760955555555556, 12.020155555555556, 14.422491666666666, 13.499829740333487, 7.5, 8.891899346405228, 8.913400000000001, 14.12109, 8.438308148148147, 9.766268686868687, 11.126874074074076, 12.15), # 66 (12.44996119224815, 11.720109465020576, 12.00668477366255, 14.407499691358023, 13.499981073081754, 7.5, 8.863808182038246, 8.870385185185187, 14.10701074074074, 8.412555445816187, 9.755444294799851, 11.108913031550067, 12.15), # 67 (12.44974993737699, 11.679898367184387, 11.993287139917694, 14.392370088566828, 13.499853546356814, 7.49986081390032, 8.836218233795575, 8.830012620027434, 14.092905418381346, 8.3875445299766, 9.74434318624845, 11.09103602627969, 12.149850180041152), # 68 (12.447770048309177, 11.639094623655915, 11.979586111111109, 14.376340217391302, 13.498692810457515, 7.49876049382716, 8.808321817615935, 8.790118518518518, 14.078157407407408, 8.362567668845314, 9.731835406698563, 11.072662768031188, 12.148663194444444), # 69 (12.443862945070673, 11.597510951812026, 11.965522119341562, 14.35930454911433, 13.49639917695473, 7.496593507087334, 8.779992161473643, 8.75034293552812, 14.062683470507546, 8.33750342935528, 9.717778663831295, 11.05370731355137, 12.14631880144033), # 70 (12.438083592771514, 11.555172202309835, 11.951100102880657, 14.341288204508858, 13.493001694504963, 7.49339497027892, 8.751241991446784, 8.710699039780522, 14.046506652949246, 8.312352431211167, 9.702224844940634, 11.034183524655257, 12.142847865226338), # 71 (12.430486956521738, 11.51210322580645, 11.936324999999998, 14.322316304347826, 13.488529411764706, 7.4892, 8.722084033613445, 8.671199999999999, 14.02965, 8.287115294117646, 9.685225837320575, 11.014105263157894, 12.13828125), # 72 (12.421128001431383, 11.46832887295898, 11.921201748971193, 14.302413969404187, 13.48301137739046, 7.48404371284865, 8.69253101405171, 8.631858984910837, 14.012136556927299, 8.261792637779392, 9.666833528265105, 10.993486390874303, 12.132649819958848), # 73 (12.410061692610485, 11.423873994424532, 11.905735288065841, 14.281606320450885, 13.47647664003873, 7.477961225422954, 8.662595658839667, 8.59268916323731, 13.993989368998628, 8.236385081901073, 9.647099805068226, 10.972340769619521, 12.125984439300412), # 74 (12.397342995169081, 11.378763440860213, 11.889930555555553, 14.25991847826087, 13.468954248366014, 7.470987654320988, 8.6322906940554, 8.553703703703704, 13.97523148148148, 8.210893246187362, 9.626076555023921, 10.950682261208575, 12.118315972222222), # 75 (12.383026874217212, 11.33302206292314, 11.873792489711933, 14.237375563607086, 13.460473251028805, 7.463158116140832, 8.601628845776993, 8.514915775034293, 13.955885939643347, 8.185317750342934, 9.60381566542619, 10.928524727456498, 12.10967528292181), # 76 (12.367168294864912, 11.286674711270411, 11.857326028806582, 14.214002697262478, 13.451062696683609, 7.454507727480566, 8.570622840082535, 8.476338545953361, 13.935975788751714, 8.15965921407246, 9.580369023569023, 10.905882030178327, 12.10009323559671), # 77 (12.349822222222222, 11.23974623655914, 11.84053611111111, 14.189824999999999, 13.440751633986928, 7.445071604938271, 8.53928540305011, 8.437985185185186, 13.915524074074073, 8.133918257080609, 9.55578851674641, 10.882768031189086, 12.089600694444444), # 78 (12.331043621399177, 11.192261489446436, 11.823427674897118, 14.164867592592591, 13.429569111595256, 7.434884865112025, 8.5076292607578, 8.399868861454047, 13.894553840877913, 8.108095499072055, 9.530126032252346, 10.859196592303805, 12.07822852366255), # 79 (12.310887457505816, 11.144245320589407, 11.806005658436213, 14.139155595813206, 13.417544178165095, 7.423982624599908, 8.475667139283697, 8.362002743484226, 13.873088134430727, 8.082191559751472, 9.503433457380826, 10.835181575337522, 12.066007587448558), # 80 (12.289408695652174, 11.09572258064516, 11.788274999999999, 14.112714130434783, 13.40470588235294, 7.412399999999999, 8.443411764705882, 8.3244, 13.851149999999999, 8.05620705882353, 9.475762679425838, 10.810736842105262, 12.052968749999998), # 81 (12.26666230094829, 11.046718120270809, 11.770240637860082, 14.085568317230273, 13.391083272815298, 7.40017210791038, 8.410875863102444, 8.28707379972565, 13.828762482853223, 8.030142615992899, 9.447165585681375, 10.785876254422064, 12.039142875514404), # 82 (12.242703238504205, 10.997256790123457, 11.751907510288065, 14.057743276972623, 13.376705398208665, 7.387334064929126, 8.378072160551463, 8.250037311385459, 13.805948628257887, 8.003998850964253, 9.417694063441433, 10.760613674102954, 12.0245608281893), # 83 (12.21758647342995, 10.947363440860215, 11.733280555555554, 14.029264130434782, 13.361601307189543, 7.373920987654321, 8.345013383131029, 8.213303703703703, 13.78273148148148, 7.977776383442266, 9.3874, 10.734962962962962, 12.009253472222222), # 84 (12.191366970835569, 10.897062923138192, 11.714364711934154, 14.000155998389696, 13.345800048414427, 7.359967992684042, 8.311712256919229, 8.176886145404664, 13.759134087791493, 7.951475833131606, 9.356335282651072, 10.708937982817124, 11.9932516718107), # 85 (12.164099695831096, 10.846380087614497, 11.695164917695474, 13.970444001610307, 13.32933067053982, 7.34551019661637, 8.278181507994145, 8.14079780521262, 13.73517949245542, 7.925097819736949, 9.32455179868864, 10.682552595480471, 11.976586291152262), # 86 (12.135839613526569, 10.795339784946236, 11.67568611111111, 13.940153260869563, 13.312222222222223, 7.330582716049382, 8.244433862433862, 8.10505185185185, 13.710890740740743, 7.8986429629629615, 9.292101435406698, 10.655820662768031, 11.959288194444444), # 87 (12.106641689032028, 10.74396686579052, 11.655933230452675, 13.90930889694042, 13.29450375211813, 7.315220667581161, 8.210482046316468, 8.069661454046638, 13.686290877914953, 7.8721118825143215, 9.259036080099238, 10.628756046494837, 11.941388245884776), # 88 (12.076560887457505, 10.69228618080446, 11.63591121399177, 13.877936030595812, 13.276204308884047, 7.299459167809785, 8.176338785720048, 8.034639780521262, 13.661402949245542, 7.845505198095699, 9.225407620060253, 10.601372608475922, 11.922917309670781), # 89 (12.045652173913043, 10.640322580645162, 11.615625, 13.846059782608696, 13.257352941176471, 7.283333333333333, 8.142016806722689, 7.999999999999999, 13.636250000000002, 7.818823529411764, 9.191267942583732, 10.573684210526315, 11.90390625), # 90 (12.013970513508676, 10.588100915969731, 11.59507952674897, 13.813705273752015, 13.237978697651899, 7.266878280749885, 8.107528835402473, 7.965755281207133, 13.610855075445818, 7.79206749616719, 9.15666893496367, 10.54570471446105, 11.884385931069957), # 91 (11.981570871354446, 10.535646037435285, 11.574279732510288, 13.78089762479871, 13.218110626966835, 7.250129126657521, 8.07288759783749, 7.9319187928669415, 13.585241220850481, 7.7652377180666505, 9.121662484494063, 10.517447982095156, 11.864387217078187), # 92 (11.948508212560386, 10.482982795698925, 11.553230555555555, 13.74766195652174, 13.197777777777778, 7.2331209876543205, 8.03810582010582, 7.898503703703704, 13.55943148148148, 7.738334814814813, 9.0863004784689, 10.488927875243665, 11.84394097222222), # 93 (11.914837502236535, 10.43013604141776, 11.531936934156379, 13.714023389694042, 13.177009198741224, 7.215888980338362, 8.003196228285553, 7.865523182441701, 13.53344890260631, 7.7113594061163555, 9.050634804182172, 10.460158255721609, 11.823078060699588), # 94 (11.880613705492932, 10.377130625248904, 11.510403806584362, 13.680007045088566, 13.155833938513677, 7.198468221307727, 7.968171548454772, 7.832990397805213, 13.507316529492455, 7.684312111675945, 9.014717348927874, 10.431152985344015, 11.801829346707818), # 95 (11.845891787439614, 10.323991397849465, 11.488636111111111, 13.645638043478261, 13.134281045751633, 7.180893827160493, 7.933044506691564, 7.800918518518519, 13.481057407407405, 7.657193551198256, 8.9786, 10.401925925925926, 11.780225694444445), # 96 (11.810726713186616, 10.270743209876544, 11.466638786008229, 13.610941505636069, 13.112379569111596, 7.163200914494741, 7.897827829074016, 7.769320713305898, 13.454694581618655, 7.63000434438796, 8.942334644692538, 10.372490939282363, 11.758297968106996), # 97 (11.775173447843981, 10.217410911987256, 11.444416769547324, 13.575942552334944, 13.090158557250062, 7.145424599908551, 7.86253424168021, 7.738210150891632, 13.428251097393689, 7.602745110949729, 8.905973170299486, 10.342861887228358, 11.736077031893004), # 98 (11.739286956521738, 10.16401935483871, 11.421975, 13.540666304347825, 13.06764705882353, 7.1276, 7.827176470588236, 7.707599999999999, 13.40175, 7.575416470588234, 8.869567464114832, 10.313052631578946, 11.71359375), # 99 (11.703122204329933, 10.110593389088011, 11.39931841563786, 13.505137882447665, 13.044874122488501, 7.109762231367169, 7.791767241876174, 7.677503429355281, 13.375214334705076, 7.548019043008149, 8.833169413432572, 10.28307703414916, 11.690878986625515), # 100 (11.6667341563786, 10.057157865392274, 11.376451954732511, 13.469382407407409, 13.021868796901476, 7.091946410608139, 7.756319281622114, 7.647933607681755, 13.348667146776405, 7.5205534479141445, 8.796830905546694, 10.252948956754024, 11.667963605967076), # 101 (11.630177777777778, 10.003737634408603, 11.353380555555555, 13.433425, 12.998660130718955, 7.074187654320988, 7.720845315904139, 7.618903703703703, 13.32213148148148, 7.4930203050108934, 8.760603827751195, 10.222682261208577, 11.644878472222222), # 102 (11.593508033637502, 9.950357546794105, 11.3301091563786, 13.39729078099839, 12.975277172597435, 7.056521079103795, 7.685358070800336, 7.590426886145404, 13.295630384087792, 7.465420234003066, 8.724540067340067, 10.192290809327847, 11.621654449588474), # 103 (11.556779889067812, 9.897042453205893, 11.30664269547325, 13.361004871175522, 12.951748971193416, 7.03898180155464, 7.649870272388791, 7.562516323731138, 13.269186899862826, 7.437753854595336, 8.6886915116073, 10.161788462926864, 11.598322402263374), # 104 (11.520048309178742, 9.843817204301073, 11.28298611111111, 13.324592391304348, 12.928104575163397, 7.021604938271605, 7.614394646747589, 7.535185185185185, 13.242824074074074, 7.410021786492375, 8.653110047846889, 10.131189083820663, 11.574913194444443), # 105 (11.483368259080336, 9.790706650736759, 11.259144341563784, 13.288078462157811, 12.904373033163884, 7.004425605852766, 7.578943919954813, 7.508446639231824, 13.216564951989024, 7.382224649398854, 8.617847563352825, 10.100506533824273, 11.551457690329217), # 106 (11.446794703882626, 9.737735643170053, 11.235122325102882, 13.251488204508856, 12.880583393851365, 6.987478920896206, 7.543530818088553, 7.482313854595337, 13.190432578875171, 7.354363063019446, 8.582955945419101, 10.069754674752724, 11.527986754115226), # 107 (11.410382608695652, 9.684929032258065, 11.210925000000001, 13.214846739130435, 12.856764705882352, 6.9708, 7.508168067226889, 7.4568, 13.16445, 7.326437647058824, 8.548487081339712, 10.038947368421054, 11.504531250000001), # 108 (11.374186938629451, 9.632311668657906, 11.18655730452675, 13.178179186795488, 12.832946017913338, 6.954423959762231, 7.472868393447913, 7.431918244170096, 13.138640260631002, 7.298449021221656, 8.514492858408648, 10.008098476644285, 11.48112204218107), # 109 (11.338262658794058, 9.579908403026684, 11.162024176954734, 13.141510668276974, 12.809156378600823, 6.938385916780978, 7.437644522829707, 7.407681755829903, 13.113026406035663, 7.270397805212619, 8.4810251639199, 9.977221861237457, 11.457789994855966), # 110 (11.302664734299517, 9.527744086021507, 11.137330555555558, 13.104866304347826, 12.785424836601306, 6.922720987654322, 7.402509181450357, 7.384103703703703, 13.087631481481482, 7.242284618736383, 8.448135885167463, 9.946331384015595, 11.434565972222222), # 111 (11.26744813025586, 9.47584356829948, 11.112481378600824, 13.068271215780998, 12.76178044057129, 6.907464288980339, 7.367475095387949, 7.361197256515775, 13.062478532235938, 7.214110081497618, 8.41587690944533, 9.915440906793732, 11.411480838477365), # 112 (11.232605068443652, 9.424318342543142, 11.087541393902482, 13.031800658990448, 12.738210816208445, 6.892643723057416, 7.332631156388123, 7.339023082536727, 13.037655373510344, 7.185965683935275, 8.38430868738344, 9.884631523805313, 11.388532681011865), # 113 (11.197777077480078, 9.373676620230642, 11.062854810025941, 12.995747305532804, 12.71447202547959, 6.8782255302358815, 7.298421850092694, 7.317853511406144, 13.013542842855673, 7.158378201495339, 8.353493204535836, 9.85429460653557, 11.365530496992042), # 114 (11.162861883604794, 9.323936638419655, 11.038436319248781, 12.960101406218135, 12.69048921346632, 6.864172214998518, 7.264871580229873, 7.297683185134451, 12.990149974402547, 7.131390393585692, 8.323385413712511, 9.824445099070621, 11.342407957992451), # 115 (11.127815847885161, 9.275025937550042, 11.014238627980648, 12.924799380319685, 12.666226231660534, 6.8504506527445175, 7.231925781033471, 7.278456375478791, 12.967417607073395, 7.104952030139456, 8.293927117525778, 9.795027836984815, 11.319128711707068), # 116 (11.092595331388527, 9.226872058061664, 10.990214442631183, 12.889777647110693, 12.641646931554133, 6.837027718873069, 7.199529886737303, 7.260117354196302, 12.945286579790643, 7.079012881089755, 8.26506011858794, 9.7659876558525, 11.295656405829869), # 117 (11.057156695182252, 9.179402540394388, 10.96631646961004, 12.8549726258644, 12.61671516463901, 6.8238702887833655, 7.167629331575178, 7.2426103930441155, 12.923697731476722, 7.053522716369711, 8.236726219511308, 9.737269391248018, 11.271954688054828), # 118 (11.02145630033369, 9.132544924988075, 10.942497415326867, 12.820320735854047, 12.591394782407065, 6.810945237874599, 7.136169549780907, 7.225879763779374, 12.902591901054052, 7.028431305912446, 8.208867222908193, 9.708817878745721, 11.247987206075917), # 119 (10.985450507910194, 9.08622675228259, 10.918709986191313, 12.785758396352874, 12.565649636350196, 6.7982194415459585, 7.105095975588303, 7.209869738159211, 12.88190992744507, 7.003688419651087, 8.181424931390898, 9.680577953919956, 11.223717607587115), # 120 (10.949095678979122, 9.040375562717795, 10.894906888613024, 12.75122202663412, 12.539443577960302, 6.7856597751966365, 7.0743540432311764, 7.1945245879407675, 12.861592649572199, 6.979243827518755, 8.154341147571738, 9.652494452345065, 11.199109540282393), # 121 (10.912348174607825, 8.994918896733553, 10.871040829001652, 12.716648045971025, 12.512740458729281, 6.773233114225823, 7.043889186943341, 7.179788584881178, 12.841580906357867, 6.955047299448572, 8.127557674063022, 9.6245122095954, 11.174126651855724), # 122 (10.875164355863662, 8.949784294769728, 10.847064513766842, 12.681972873636832, 12.485504130149028, 6.76090633403271, 7.013646840958606, 7.16560600073758, 12.821815536724504, 6.931048605373665, 8.101016313477052, 9.596576061245305, 11.148732590001085), # 123 (10.837500583813984, 8.904899297266184, 10.822930649318243, 12.647132928904783, 12.457698443711445, 6.748646310016486, 6.983572439510783, 7.151921107267111, 12.802237379594539, 6.9071975152271525, 8.074658868426143, 9.56863084286913, 11.122891002412453), # 124 (10.79931321952615, 8.860191444662783, 10.798591942065508, 12.612064631048112, 12.429287250908427, 6.736419917576347, 6.953611416833687, 7.138678176226909, 12.78278727389039, 6.88344379894216, 8.048427141522602, 9.540621390041217, 11.096565536783794), # 125 (10.760558624067514, 8.815588277399392, 10.774001098418278, 12.576704399340064, 12.400234403231872, 6.724194032111481, 6.923709207161124, 7.12582147937411, 12.763406058534501, 6.859737226451811, 8.022262935378736, 9.51249253833592, 11.069719840809094), # 126 (10.721193158505432, 8.771017335915868, 10.749110824786205, 12.540988653053878, 12.370503752173677, 6.711935529021078, 6.893811244726913, 7.113295288465854, 12.744034572449289, 6.836027567689229, 7.9961080526068535, 9.484189123327578, 11.042317562182317), # 127 (10.681173183907255, 8.72640616065208, 10.72387382757894, 12.504853811462798, 12.340059149225747, 6.699611283704333, 6.863862963764858, 7.101043875259275, 12.72461365455718, 6.8122645925875345, 7.969904295819269, 9.455655980590546, 11.014322348597444), # 128 (10.640455061340337, 8.681682292047888, 10.698242813206127, 12.468236293840057, 12.308864445879973, 6.687188171560433, 6.833809798508775, 7.089011511511512, 12.705084143780608, 6.788398071079854, 7.943593467628284, 9.426837945699162, 10.985697847748446), # 129 (10.598995151872039, 8.63677327054316, 10.672170488077414, 12.431072519458903, 12.276883493628256, 6.6746330679885695, 6.803597183192475, 7.077142468979701, 12.685386879042001, 6.764377773099308, 7.9171173706462135, 9.397679854227782, 10.956407707329298), # 130 (10.556749816569713, 8.591606636577751, 10.645609558602457, 12.39329890759257, 12.244080143962494, 6.661912848387936, 6.773170552049771, 7.06538101942098, 12.665462699263783, 6.740153468579022, 7.890417807485361, 9.36812654175075, 10.926415575033973), # 131 (10.51367541650071, 8.546109930591532, 10.618512731190895, 12.354851877514305, 12.210418248374584, 6.648994388157723, 6.7424753393144705, 7.053671434592488, 12.645252443368385, 6.715674927452118, 7.863436580758037, 9.33812284384241, 10.89568509855645), # 132 (10.469728312732395, 8.500210693024362, 10.59083271225238, 12.315667848497341, 12.175861658356423, 6.63584456269712, 6.711456979220387, 7.041957986251359, 12.624696950278231, 6.690891919651718, 7.8361154930765515, 9.307613596077111, 10.864179925590703), # 133 (10.424864866332113, 8.453836464316106, 10.562522208196564, 12.275683239814922, 12.14037422539991, 6.622430247405318, 6.6800609060013345, 7.0301849461547326, 12.603737058915753, 6.665754215110948, 7.808396347053214, 9.2765436340292, 10.831863703830699), # 134 (10.379041438367224, 8.406914784906629, 10.53353392543309, 12.234834470740294, 12.103919800996945, 6.60871831768151, 6.648232553891121, 7.018296586059743, 12.582313608203375, 6.640211583762931, 7.78022094530033, 9.244857793273022, 10.798700080970423), # 135 (10.332214389905081, 8.35937319523579, 10.50382057037161, 12.193057960546687, 12.066462236639419, 6.594675648924887, 6.615917357123561, 7.0062371777235315, 12.560367437063528, 6.6142137955407865, 7.751531090430213, 9.212500909382928, 10.764652704703844), # 136 (10.28434008201304, 8.311139235743456, 10.473334849421772, 12.150290128507349, 12.027965383819241, 6.580269116534637, 6.583060749932466, 6.993950992903235, 12.537839384418639, 6.587710620377641, 7.722268585055167, 9.179417817933263, 10.729685222724932), # 137 (10.235374875758456, 8.26214044686949, 10.442029468993221, 12.106467393895516, 11.988393094028302, 6.565465595909957, 6.5496081665516455, 6.981382303355987, 12.514670289191137, 6.560651828206615, 7.692375231787501, 9.145553354498373, 10.693761282727667), # 138 (10.185275132208682, 8.212304369053752, 10.409857135495608, 12.06152617598443, 11.947709218758497, 6.550231962450032, 6.515505041214911, 6.968475380838929, 12.490800990303445, 6.532987188960836, 7.661792833239527, 9.110852354652607, 10.656844532406023), # 139 (10.133997212431076, 8.16155854273611, 10.376770555338585, 12.015402894047332, 11.905877609501735, 6.534535091554055, 6.480696808156076, 6.955174497109195, 12.466172326677999, 6.5046664725734225, 7.630463192023552, 9.07525965397031, 10.618898619453978), # 140 (10.081497477492995, 8.109830508356424, 10.342722434931792, 11.968033967357464, 11.862862117749904, 6.518341858621218, 6.445128901608954, 6.9414239239239235, 12.440725137237216, 6.4756394489775015, 7.598328110751885, 9.03872008802583, 10.579887191565495), # 141 (10.027732288461786, 8.057047806354559, 10.307665480684884, 11.919355815188064, 11.818626594994903, 6.501619139050712, 6.408746755807351, 6.927167933040253, 12.41440026090353, 6.445855888106193, 7.565329392036836, 9.001178492393512, 10.539773896434559), # 142 (9.972658006404808, 8.003137977170377, 10.27155239900751, 11.86930485681237, 11.773134892728635, 6.484333808241727, 6.371495804985082, 6.912350796215319, 12.387138536599375, 6.415265559892623, 7.531408838490711, 8.962579702647707, 10.49852238175514), # 143 (9.916230992389421, 7.948028561243743, 10.234335896309313, 11.817817511503627, 11.726350862442994, 6.466452741593456, 6.333321483375959, 6.896916785206259, 12.358880803247171, 6.383818234269912, 7.496508252725821, 8.922868554362758, 10.456096295221217), # 144 (9.858407607482972, 7.891647099014518, 10.195968678999947, 11.764830198535073, 11.67823835562988, 6.4479428145050885, 6.294169225213792, 6.880810171770211, 12.329567899769344, 6.351463681171185, 7.460569437354474, 8.881989883113016, 10.41245928452676), # 145 (9.79914421275282, 7.83392113092257, 10.156403453489059, 11.71027933717995, 11.62876122378119, 6.428770902375816, 6.253984464732396, 6.863975227664311, 12.299140665088327, 6.318151670529565, 7.423534194988978, 8.839888524472823, 10.367574997365741), # 146 (9.73839716926632, 7.774778197407756, 10.115592926186292, 11.654101346711496, 11.577883318388821, 6.4089038806048295, 6.212712636165577, 6.846356224645698, 12.267539938126548, 6.283831972278175, 7.385344328241643, 8.796509314016532, 10.321407081432142), # 147 (9.676122838090825, 7.714145838909944, 10.0734898035013, 11.596232646402955, 11.525568490944673, 6.38830862459132, 6.170299173747152, 6.827897434471509, 12.234706557806435, 6.248454356350137, 7.345941639724779, 8.751797087318483, 10.27391918441993), # 148 (9.612277580293695, 7.651951595868995, 10.030046791843732, 11.536609655527563, 11.471780592940645, 6.366952009734479, 6.126689511710929, 6.80854312889888, 12.200581363050405, 6.211968592678576, 7.3052679320506915, 8.705696679953029, 10.225074954023084), # 149 (9.546817756942277, 7.588123008724775, 9.985216597623232, 11.475168793358565, 11.416483475868631, 6.344800911433499, 6.08182908429072, 6.788237579684948, 12.165105192780901, 6.174324451196612, 7.2632650078316905, 8.658152927494514, 10.174838037935576), # 150 (9.47969972910393, 7.522587617917144, 9.93895192724945, 11.411846479169196, 11.359640991220532, 6.321822205087566, 6.03566332572034, 6.7669250585868514, 12.128218885920345, 6.135471701837373, 7.2198746696800855, 8.609110665517285, 10.123172083851381), # 151 (9.41087985784601, 7.455272963885967, 9.89120548713204, 11.346579132232701, 11.301216990488243, 6.297982766095876, 5.9881376702335976, 6.744549837361729, 12.089863281391164, 6.095360114533979, 7.175038720208185, 8.558514729595691, 10.070040739464476), # 152 (9.340314504235872, 7.386106587071107, 9.841929983680641, 11.279303171822319, 11.241175325163667, 6.273249469857618, 5.939197552064303, 6.721056187766714, 12.049979218115787, 6.053939459219555, 7.128698962028299, 8.506309955304076, 10.015407652468832), # 153 (9.267960029340873, 7.315016027912428, 9.79107812330491, 11.209955017211291, 11.179479846738696, 6.247589191771985, 5.888788405446274, 6.696388381558948, 12.008507535016639, 6.011159505827223, 7.080797197752734, 8.45244117821679, 9.959236470558428), # 154 (9.193772794228362, 7.241928826849794, 9.73860261241449, 11.138471087672853, 11.116094406705235, 6.220968807238165, 5.836855664613313, 6.670490690495563, 11.965389071016153, 5.966970024290105, 7.0312752299938, 8.396853233908178, 9.901490841427231), # 155 (9.117709159965697, 7.166772524323065, 9.684456157419032, 11.06478780248025, 11.050982856555176, 6.193355191655353, 5.7833447637992395, 6.643307386333702, 11.920564665036752, 5.921320784541327, 6.980074861363805, 8.339490957952586, 9.842134412769221), # 156 (9.039725487620235, 7.089474660772107, 9.628591464728181, 10.988841580906724, 10.984109047780422, 6.164715220422736, 5.728201137237862, 6.614782740830498, 11.873975156000865, 5.874161556514009, 6.927137894475059, 8.280299185924363, 9.781130832278372), # 157 (8.957617135686286, 7.008543744926709, 9.568310344682827, 10.907723497981491, 10.912417327045196, 6.133229371580532, 5.6701280651134285, 6.582956342819247, 11.821994509918916, 5.824039099549372, 6.870714903046731, 8.217119477033206, 9.715783031298415), # 158 (8.858744120374082, 6.915678383519373, 9.488085382083584, 10.804772590546143, 10.818229571737954, 6.088427577608523, 5.601855316062859, 6.536656239317259, 11.743712713466573, 5.762737192918494, 6.800900322742793, 8.13763502841973, 9.630513176304232), # 159 (8.741846513885172, 6.810116074248857, 9.386305149547066, 10.67829301249063, 10.699704157616154, 6.0292095552572205, 5.5226924980605405, 6.4747190274328155, 11.636910272674381, 5.689446782235472, 6.716711410331447, 8.040602338665416, 9.523704730672296), # 160 (8.607866465503152, 6.692545041696563, 9.26405636629237, 10.529487004508074, 10.558071749138534, 5.956292689884377, 5.433217735208252, 6.397920639731736, 11.50299572039882, 5.604789831805125, 6.618889985519648, 7.926920962689085, 9.396448853782916), # 161 (8.457746124511628, 6.563653510443886, 9.122425751538595, 10.359556807291591, 10.394563010763845, 5.870394366847746, 5.334009151607771, 6.307037008779842, 11.343377589496363, 5.509388305932277, 6.508177868014344, 7.797490455409552, 9.2498367050164), # 162 (8.292427640194196, 6.424129705072228, 8.962500024504841, 10.16970466153432, 10.210408606950825, 5.772231971505087, 5.22564487136088, 6.20284406714295, 11.159464412823487, 5.40386416892175, 6.38531687752249, 7.653210371745638, 9.084959443753055), # 163 (8.11285316183446, 6.2746618501629845, 8.785365904410211, 9.961132807929381, 10.006839202158226, 5.662522889214155, 5.108703018569359, 6.086117747386882, 10.952664723236667, 5.2888393850783615, 6.251048833751035, 7.494980266616163, 8.902908229373192), # 164 (7.9199648387160195, 6.115938170297558, 8.592110110473802, 9.735043487169902, 9.785085460844789, 5.541984505332703, 4.983761717334986, 5.957633982077455, 10.724387053592375, 5.164935918706936, 6.106115556406933, 7.323699694939943, 8.704774221257123), # 165 (7.714704820122476, 5.948646890057345, 8.383819361914712, 9.492638939949002, 9.546378047469256, 5.41133420521849, 4.851399091759543, 5.818168703780493, 10.476039936747087, 5.0327757341122945, 5.9512588651971345, 7.140268211635801, 8.491648578785155), # 166 (7.498015255337426, 5.773476234023744, 8.161580377952045, 9.235121406959811, 9.291947626490375, 5.27128937422927, 4.712193265944809, 5.668497845061811, 10.209031905557278, 4.892980795599256, 5.787220579828592, 6.94558537162255, 8.264622461337595), # 167 (7.2708382936444735, 5.591114426778154, 7.926479877804897, 8.963693128895455, 9.02302486236689, 5.122567397722799, 4.5667223639925645, 5.509397338487231, 9.924771492879426, 4.746173067472646, 5.614742520008257, 6.740550729819013, 8.024787028294753), # 168 (7.034116084327218, 5.402249692901975, 7.67960458069237, 8.67955634644906, 8.740840419557543, 4.965885661056833, 4.4155645100045895, 5.341643116622574, 9.624667231570005, 4.592974514037284, 5.434566505443081, 6.526063841144007, 7.773233439036942), # 169 (6.78879077666926, 5.207570256976605, 7.422041205833562, 8.383913300313743, 8.44662496252108, 4.8019615495891275, 4.259297828082663, 5.166011112033656, 9.310127654485486, 4.434007099597989, 5.247434355840019, 6.3030242605163505, 7.5110528529444665), # 170 (6.5358045199542, 5.007764343583441, 7.154876472447573, 8.077966231182643, 8.141609155716246, 4.631512448677438, 4.098500442328566, 4.983277257286299, 8.982561294482347, 4.269892788459586, 5.054087890906017, 6.072331542854863, 7.239336429397638), # 171 (6.276099463465638, 4.803520177303883, 6.879197099753504, 7.762917379748876, 7.827023663601784, 4.45525574367952, 3.9337504768440783, 4.794217484946325, 8.643376684417062, 4.101253544926895, 4.855268930348032, 5.834885243078365, 6.959175327776763), # 172 (6.010617756487176, 4.59552598271933, 6.596089806970453, 7.43996898670557, 7.504099150636442, 4.27390881995313, 3.7656260557309795, 4.599607727579548, 8.293982357146106, 3.9287113333047374, 4.651719293873013, 5.59158491610567, 6.671660707462155), # 173 (5.740301548302412, 4.384469984411181, 6.306641313317521, 7.110323292745848, 7.174066281278959, 4.088189062856022, 3.5947053030910503, 4.400223917751792, 7.935786845525956, 3.752888117897936, 4.444180801187913, 5.3433301168556016, 6.37788372783412), # 174 (5.466092988194946, 4.171040406960834, 6.01193833801381, 6.775182538562841, 6.838155719988083, 3.898813857745954, 3.421566343026069, 4.196841988028875, 7.570198682413086, 3.574405863011309, 4.233395271999683, 5.091020400246977, 6.078935548272969), # 175 (5.188934225448382, 3.9559254749496873, 5.713067600278413, 6.43574896484967, 6.497598131222556, 3.7065005899806795, 3.2467872996378175, 3.9902378709766184, 7.1986264006639695, 3.3938865329496806, 4.020104526015276, 4.835555321198615, 5.7759073281590085), # 176 (4.909767409346319, 3.7398134129591414, 5.411115819330436, 6.09322481229946, 6.1536241794411275, 3.511966644917956, 3.0709462970280748, 3.781187499160839, 6.822478533135084, 3.2119520920178695, 3.8050503829416424, 4.5778344346293345, 5.4698902268725496), # 177 (4.629534689172356, 3.5233924455705936, 5.107169714388976, 5.748812321605339, 5.807464529102536, 3.3159294079155393, 2.894621459298621, 3.5704668051473587, 6.443163612682903, 3.0292245045207, 3.588974662485735, 4.318757295457952, 5.161975403793902), # 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 = ( (5, 6, 5, 9, 4, 1, 2, 3, 2, 1, 1, 1, 0, 7, 6, 8, 4, 8, 2, 3, 1, 0, 1, 1, 1, 0), # 0 (12, 12, 8, 19, 11, 2, 3, 4, 8, 2, 3, 2, 0, 10, 11, 15, 11, 13, 6, 8, 1, 2, 3, 1, 2, 0), # 1 (17, 15, 18, 24, 14, 5, 7, 6, 9, 3, 4, 3, 0, 19, 20, 19, 14, 18, 8, 12, 3, 6, 4, 2, 2, 0), # 2 (24, 27, 28, 33, 18, 8, 17, 6, 11, 3, 4, 4, 0, 28, 29, 26, 17, 28, 9, 13, 3, 7, 6, 2, 2, 0), # 3 (32, 33, 34, 41, 24, 11, 20, 14, 12, 5, 5, 5, 0, 41, 37, 30, 24, 33, 12, 15, 4, 13, 6, 3, 2, 0), # 4 (41, 45, 41, 49, 30, 14, 25, 19, 17, 7, 7, 6, 0, 45, 48, 38, 30, 40, 16, 20, 7, 13, 6, 4, 2, 0), # 5 (47, 53, 47, 53, 38, 17, 26, 23, 22, 12, 7, 9, 0, 51, 55, 41, 33, 50, 22, 26, 11, 14, 10, 5, 3, 0), # 6 (51, 57, 57, 58, 45, 23, 34, 27, 28, 15, 7, 11, 0, 61, 61, 44, 39, 57, 26, 27, 13, 14, 12, 8, 4, 0), # 7 (61, 64, 64, 69, 51, 24, 41, 35, 32, 16, 8, 11, 0, 72, 77, 53, 42, 65, 34, 31, 15, 18, 14, 9, 6, 0), # 8 (67, 70, 70, 80, 53, 27, 42, 36, 35, 17, 8, 12, 0, 81, 85, 60, 47, 71, 39, 34, 15, 18, 17, 9, 6, 0), # 9 (74, 78, 80, 85, 59, 31, 44, 41, 37, 17, 9, 13, 0, 94, 97, 65, 52, 80, 45, 37, 15, 22, 19, 11, 9, 0), # 10 (82, 93, 86, 100, 73, 34, 48, 41, 38, 19, 11, 14, 0, 102, 109, 75, 55, 88, 49, 41, 18, 25, 21, 11, 12, 0), # 11 (93, 106, 95, 112, 78, 36, 52, 44, 39, 21, 13, 14, 0, 113, 121, 83, 63, 97, 54, 46, 20, 31, 26, 15, 12, 0), # 12 (104, 120, 98, 125, 81, 40, 58, 48, 45, 23, 14, 15, 0, 126, 129, 90, 69, 103, 58, 49, 21, 33, 31, 21, 13, 0), # 13 (114, 131, 102, 134, 93, 44, 66, 53, 48, 23, 17, 15, 0, 134, 137, 96, 78, 110, 63, 52, 24, 35, 35, 24, 14, 0), # 14 (125, 138, 110, 148, 104, 47, 71, 56, 52, 28, 17, 16, 0, 145, 147, 102, 88, 116, 68, 55, 28, 39, 39, 26, 15, 0), # 15 (139, 155, 117, 158, 113, 50, 74, 62, 57, 31, 17, 17, 0, 156, 157, 108, 96, 124, 74, 59, 34, 45, 42, 31, 17, 0), # 16 (146, 166, 125, 163, 123, 53, 78, 67, 62, 33, 18, 18, 0, 165, 165, 114, 102, 133, 78, 65, 39, 49, 46, 35, 17, 0), # 17 (156, 176, 133, 176, 135, 57, 81, 72, 65, 34, 19, 18, 0, 179, 176, 120, 108, 136, 88, 69, 42, 51, 51, 39, 19, 0), # 18 (172, 182, 143, 184, 140, 61, 89, 75, 72, 38, 19, 18, 0, 184, 191, 126, 120, 148, 94, 74, 47, 57, 55, 40, 21, 0), # 19 (187, 192, 150, 193, 151, 68, 91, 79, 75, 42, 19, 19, 0, 193, 207, 135, 126, 157, 100, 81, 50, 61, 61, 41, 21, 0), # 20 (204, 209, 158, 210, 162, 72, 96, 84, 83, 46, 20, 21, 0, 203, 217, 146, 130, 165, 109, 87, 51, 66, 70, 43, 22, 0), # 21 (221, 228, 173, 222, 174, 76, 103, 89, 91, 49, 22, 23, 0, 214, 230, 156, 139, 170, 118, 90, 57, 73, 73, 46, 22, 0), # 22 (228, 239, 179, 234, 185, 80, 110, 92, 94, 50, 24, 23, 0, 233, 239, 160, 144, 179, 127, 95, 62, 78, 75, 50, 24, 0), # 23 (243, 250, 187, 242, 200, 87, 115, 96, 100, 52, 27, 23, 0, 246, 247, 172, 150, 190, 133, 100, 64, 85, 79, 52, 25, 0), # 24 (261, 267, 204, 247, 205, 94, 123, 102, 106, 53, 29, 23, 0, 260, 253, 178, 154, 203, 137, 104, 65, 93, 84, 52, 25, 0), # 25 (275, 277, 212, 256, 216, 98, 127, 106, 110, 54, 31, 25, 0, 279, 264, 187, 160, 212, 148, 110, 66, 94, 88, 57, 26, 0), # 26 (287, 294, 224, 267, 224, 110, 131, 114, 114, 55, 37, 26, 0, 294, 269, 194, 170, 216, 155, 112, 68, 97, 92, 58, 27, 0), # 27 (302, 311, 240, 281, 236, 113, 136, 119, 119, 56, 41, 28, 0, 300, 277, 203, 178, 220, 159, 117, 69, 101, 92, 61, 30, 0), # 28 (316, 327, 250, 296, 250, 120, 139, 124, 127, 56, 44, 28, 0, 315, 280, 213, 187, 229, 167, 120, 70, 107, 97, 63, 31, 0), # 29 (329, 342, 260, 302, 256, 124, 149, 125, 134, 59, 45, 28, 0, 326, 293, 220, 195, 241, 175, 127, 73, 110, 99, 64, 31, 0), # 30 (344, 357, 275, 317, 265, 128, 153, 128, 135, 62, 46, 29, 0, 334, 310, 228, 202, 250, 180, 134, 75, 117, 104, 68, 34, 0), # 31 (357, 368, 291, 328, 275, 131, 161, 137, 140, 64, 49, 29, 0, 338, 320, 240, 207, 262, 188, 137, 80, 120, 108, 70, 34, 0), # 32 (368, 386, 301, 340, 285, 135, 165, 140, 147, 64, 55, 30, 0, 352, 333, 252, 211, 271, 195, 144, 81, 126, 108, 70, 35, 0), # 33 (375, 402, 319, 353, 296, 138, 170, 149, 155, 68, 55, 32, 0, 365, 343, 260, 214, 281, 199, 148, 82, 127, 111, 70, 36, 0), # 34 (393, 414, 328, 367, 303, 142, 174, 151, 159, 70, 56, 33, 0, 371, 348, 262, 226, 290, 207, 152, 86, 132, 113, 71, 37, 0), # 35 (407, 424, 341, 382, 308, 148, 179, 153, 161, 73, 57, 33, 0, 380, 358, 267, 237, 305, 209, 156, 88, 138, 118, 74, 37, 0), # 36 (419, 436, 348, 392, 320, 151, 186, 157, 164, 74, 60, 34, 0, 387, 362, 274, 244, 310, 214, 160, 90, 141, 121, 77, 37, 0), # 37 (432, 453, 363, 402, 333, 153, 194, 165, 167, 79, 62, 35, 0, 399, 375, 285, 250, 318, 223, 166, 94, 146, 125, 79, 37, 0), # 38 (446, 458, 383, 407, 341, 156, 198, 168, 177, 81, 65, 36, 0, 413, 383, 297, 255, 326, 232, 172, 100, 150, 127, 80, 38, 0), # 39 (455, 466, 388, 415, 346, 158, 200, 170, 182, 83, 66, 37, 0, 423, 388, 304, 265, 338, 244, 179, 101, 157, 129, 81, 40, 0), # 40 (466, 475, 396, 423, 350, 162, 209, 177, 188, 86, 69, 37, 0, 431, 402, 309, 278, 345, 248, 186, 103, 163, 132, 81, 40, 0), # 41 (477, 487, 404, 432, 356, 167, 214, 183, 189, 87, 69, 37, 0, 436, 406, 318, 284, 360, 254, 190, 106, 166, 134, 82, 42, 0), # 42 (488, 508, 413, 443, 365, 173, 221, 192, 192, 89, 69, 38, 0, 453, 419, 330, 291, 369, 262, 194, 108, 168, 139, 85, 43, 0), # 43 (501, 525, 423, 457, 375, 180, 227, 194, 195, 90, 71, 39, 0, 461, 431, 336, 294, 372, 265, 199, 112, 174, 143, 88, 43, 0), # 44 (515, 542, 429, 465, 387, 188, 233, 198, 202, 93, 74, 40, 0, 474, 441, 347, 303, 383, 269, 205, 116, 175, 146, 91, 44, 0), # 45 (527, 559, 441, 474, 397, 192, 244, 205, 205, 96, 75, 40, 0, 488, 446, 353, 311, 391, 272, 211, 118, 178, 149, 92, 44, 0), # 46 (545, 574, 450, 483, 413, 198, 247, 208, 209, 96, 79, 40, 0, 497, 453, 359, 317, 401, 280, 219, 120, 183, 153, 95, 46, 0), # 47 (555, 584, 460, 493, 420, 203, 250, 212, 212, 102, 79, 40, 0, 507, 463, 365, 325, 411, 285, 222, 122, 187, 154, 98, 46, 0), # 48 (568, 591, 471, 506, 427, 204, 253, 216, 219, 106, 79, 40, 0, 518, 474, 374, 332, 419, 292, 225, 123, 191, 159, 100, 46, 0), # 49 (585, 607, 482, 518, 438, 206, 254, 222, 228, 106, 81, 41, 0, 528, 484, 384, 345, 423, 295, 229, 125, 194, 162, 101, 47, 0), # 50 (596, 623, 494, 531, 449, 211, 263, 225, 230, 108, 82, 42, 0, 540, 489, 391, 351, 431, 301, 233, 126, 196, 166, 102, 49, 0), # 51 (609, 634, 499, 542, 459, 215, 267, 228, 234, 110, 84, 44, 0, 550, 499, 399, 360, 439, 306, 241, 131, 197, 171, 105, 49, 0), # 52 (619, 646, 512, 554, 465, 220, 272, 231, 240, 112, 84, 45, 0, 561, 511, 405, 367, 454, 311, 243, 136, 201, 176, 106, 51, 0), # 53 (633, 654, 523, 562, 473, 224, 275, 231, 244, 115, 87, 45, 0, 575, 518, 411, 375, 462, 316, 248, 137, 204, 181, 109, 51, 0), # 54 (645, 672, 534, 571, 481, 231, 280, 237, 247, 115, 88, 45, 0, 590, 527, 421, 384, 472, 322, 248, 141, 206, 182, 111, 51, 0), # 55 (662, 683, 541, 584, 489, 235, 283, 242, 250, 117, 89, 45, 0, 608, 534, 429, 391, 481, 327, 249, 146, 211, 189, 113, 52, 0), # 56 (670, 695, 554, 590, 500, 238, 289, 246, 255, 120, 89, 45, 0, 615, 540, 435, 398, 496, 330, 252, 150, 213, 191, 115, 53, 0), # 57 (677, 706, 560, 604, 509, 243, 294, 250, 261, 125, 90, 47, 0, 626, 554, 441, 404, 507, 339, 253, 153, 218, 198, 117, 55, 0), # 58 (690, 716, 567, 612, 516, 248, 298, 255, 266, 128, 91, 48, 0, 636, 573, 448, 406, 510, 343, 255, 155, 223, 204, 119, 56, 0), # 59 (706, 724, 576, 626, 527, 250, 304, 256, 274, 131, 91, 49, 0, 653, 583, 455, 412, 516, 350, 263, 158, 226, 210, 123, 56, 0), # 60 (724, 739, 591, 636, 531, 255, 311, 260, 277, 134, 95, 50, 0, 667, 593, 467, 414, 527, 357, 273, 163, 229, 214, 124, 56, 0), # 61 (735, 748, 600, 648, 543, 259, 312, 262, 282, 138, 98, 50, 0, 676, 607, 476, 420, 533, 360, 279, 167, 238, 219, 126, 57, 0), # 62 (752, 756, 612, 656, 554, 261, 316, 266, 287, 141, 101, 51, 0, 688, 613, 486, 426, 539, 364, 285, 170, 240, 224, 126, 58, 0), # 63 (767, 766, 624, 661, 566, 267, 318, 267, 293, 141, 103, 53, 0, 706, 626, 496, 433, 547, 369, 290, 173, 248, 225, 129, 59, 0), # 64 (780, 780, 637, 668, 572, 270, 332, 272, 299, 145, 105, 53, 0, 723, 639, 503, 435, 558, 376, 294, 177, 254, 227, 131, 60, 0), # 65 (787, 792, 651, 678, 579, 274, 336, 274, 301, 147, 105, 55, 0, 732, 648, 509, 441, 568, 381, 297, 180, 261, 229, 134, 61, 0), # 66 (796, 800, 662, 687, 588, 281, 338, 278, 306, 150, 105, 55, 0, 743, 659, 513, 448, 575, 386, 302, 186, 269, 234, 134, 62, 0), # 67 (803, 817, 666, 691, 603, 287, 343, 287, 314, 154, 107, 55, 0, 753, 668, 520, 460, 584, 391, 308, 189, 274, 237, 135, 64, 0), # 68 (811, 825, 674, 705, 611, 290, 346, 289, 320, 155, 110, 55, 0, 765, 679, 528, 465, 591, 394, 311, 191, 279, 244, 136, 64, 0), # 69 (824, 835, 680, 714, 618, 294, 349, 292, 323, 155, 112, 56, 0, 774, 685, 532, 472, 599, 399, 315, 194, 285, 246, 138, 66, 0), # 70 (835, 839, 688, 730, 627, 297, 354, 294, 325, 157, 115, 59, 0, 788, 695, 538, 477, 604, 403, 320, 197, 288, 251, 139, 66, 0), # 71 (846, 853, 699, 738, 638, 302, 361, 297, 330, 158, 117, 59, 0, 801, 711, 545, 482, 610, 412, 327, 200, 298, 256, 141, 67, 0), # 72 (860, 862, 713, 750, 652, 309, 365, 299, 331, 161, 117, 60, 0, 812, 720, 551, 491, 620, 416, 331, 204, 304, 259, 143, 68, 0), # 73 (872, 880, 730, 762, 659, 313, 370, 302, 337, 162, 119, 61, 0, 819, 732, 559, 496, 631, 420, 334, 210, 309, 264, 146, 69, 0), # 74 (888, 898, 740, 781, 670, 315, 375, 304, 345, 166, 120, 63, 0, 830, 739, 565, 502, 643, 421, 339, 210, 314, 268, 148, 70, 0), # 75 (898, 905, 749, 796, 682, 320, 382, 307, 351, 167, 121, 63, 0, 838, 747, 574, 509, 652, 430, 346, 213, 320, 268, 148, 71, 0), # 76 (915, 918, 761, 805, 696, 324, 389, 307, 356, 168, 122, 64, 0, 849, 753, 580, 512, 664, 438, 353, 216, 324, 272, 149, 75, 0), # 77 (934, 931, 770, 815, 709, 331, 395, 314, 361, 169, 123, 65, 0, 857, 765, 585, 515, 674, 442, 356, 220, 326, 278, 152, 75, 0), # 78 (941, 942, 776, 823, 715, 335, 396, 320, 366, 173, 126, 67, 0, 869, 774, 590, 519, 688, 449, 362, 222, 328, 284, 154, 78, 0), # 79 (954, 957, 781, 836, 726, 342, 404, 320, 372, 174, 126, 68, 0, 883, 781, 604, 526, 702, 451, 365, 224, 329, 285, 156, 78, 0), # 80 (966, 964, 791, 848, 734, 344, 406, 322, 376, 175, 127, 70, 0, 894, 790, 613, 531, 711, 455, 368, 225, 333, 286, 160, 80, 0), # 81 (974, 974, 800, 857, 747, 348, 408, 328, 386, 176, 131, 70, 0, 909, 802, 622, 533, 722, 461, 371, 228, 337, 288, 160, 81, 0), # 82 (985, 982, 807, 868, 757, 348, 411, 333, 388, 178, 134, 72, 0, 916, 815, 631, 537, 732, 461, 374, 230, 340, 295, 162, 82, 0), # 83 (994, 992, 819, 884, 764, 354, 414, 336, 390, 181, 136, 72, 0, 922, 829, 636, 545, 750, 466, 377, 232, 342, 296, 165, 85, 0), # 84 (1009, 1004, 830, 895, 776, 362, 420, 338, 395, 183, 137, 72, 0, 932, 838, 645, 550, 759, 474, 381, 235, 347, 299, 168, 87, 0), # 85 (1018, 1016, 842, 904, 787, 370, 428, 339, 398, 186, 138, 73, 0, 942, 844, 647, 551, 768, 477, 383, 238, 352, 304, 169, 87, 0), # 86 (1024, 1027, 851, 914, 792, 374, 432, 342, 404, 190, 140, 73, 0, 950, 855, 649, 559, 777, 483, 391, 242, 356, 309, 173, 87, 0), # 87 (1040, 1042, 857, 926, 800, 377, 436, 346, 405, 192, 142, 75, 0, 963, 864, 654, 566, 784, 490, 394, 244, 360, 310, 176, 87, 0), # 88 (1061, 1050, 872, 933, 811, 379, 439, 348, 406, 194, 144, 75, 0, 985, 879, 657, 575, 794, 498, 397, 247, 363, 311, 177, 87, 0), # 89 (1075, 1064, 883, 942, 823, 381, 445, 353, 408, 197, 145, 76, 0, 994, 890, 664, 584, 801, 507, 401, 251, 368, 318, 179, 87, 0), # 90 (1084, 1069, 892, 951, 834, 385, 450, 356, 410, 199, 146, 76, 0, 1007, 898, 672, 587, 809, 512, 404, 254, 372, 319, 181, 91, 0), # 91 (1095, 1077, 901, 959, 840, 388, 453, 362, 414, 199, 146, 78, 0, 1018, 908, 681, 591, 818, 517, 409, 256, 377, 323, 184, 91, 0), # 92 (1105, 1089, 911, 969, 851, 390, 458, 363, 416, 204, 149, 78, 0, 1025, 915, 688, 602, 830, 524, 413, 261, 379, 328, 187, 91, 0), # 93 (1116, 1101, 927, 976, 856, 395, 462, 367, 419, 207, 150, 78, 0, 1033, 924, 696, 610, 842, 526, 417, 268, 384, 331, 190, 91, 0), # 94 (1129, 1109, 935, 982, 869, 400, 468, 370, 423, 208, 153, 79, 0, 1046, 938, 705, 615, 847, 533, 425, 268, 391, 335, 193, 91, 0), # 95 (1140, 1116, 943, 991, 880, 405, 469, 374, 426, 211, 154, 80, 0, 1058, 949, 712, 622, 860, 541, 429, 270, 394, 339, 193, 92, 0), # 96 (1150, 1127, 952, 1000, 886, 406, 476, 377, 429, 213, 155, 80, 0, 1068, 954, 720, 630, 864, 546, 436, 272, 398, 343, 195, 92, 0), # 97 (1163, 1133, 956, 1016, 894, 409, 479, 383, 433, 215, 156, 80, 0, 1083, 966, 727, 637, 875, 547, 438, 275, 403, 353, 195, 93, 0), # 98 (1177, 1144, 966, 1025, 905, 417, 482, 386, 436, 215, 158, 82, 0, 1094, 979, 734, 644, 885, 549, 443, 279, 410, 355, 197, 96, 0), # 99 (1198, 1154, 977, 1030, 915, 426, 487, 387, 443, 218, 158, 82, 0, 1102, 989, 738, 650, 893, 553, 448, 286, 415, 359, 199, 97, 0), # 100 (1212, 1170, 990, 1038, 920, 427, 490, 390, 449, 220, 162, 84, 0, 1113, 996, 744, 654, 901, 558, 449, 289, 417, 364, 199, 98, 0), # 101 (1222, 1179, 1004, 1051, 935, 430, 498, 391, 454, 222, 163, 85, 0, 1122, 1007, 751, 659, 906, 563, 454, 290, 421, 366, 202, 98, 0), # 102 (1230, 1190, 1015, 1060, 945, 433, 501, 397, 459, 223, 163, 86, 0, 1130, 1013, 761, 666, 914, 566, 459, 291, 425, 369, 204, 100, 0), # 103 (1241, 1198, 1024, 1069, 953, 434, 505, 400, 465, 224, 165, 86, 0, 1152, 1022, 769, 675, 918, 568, 461, 294, 430, 370, 206, 101, 0), # 104 (1257, 1204, 1032, 1084, 959, 438, 505, 404, 470, 225, 165, 87, 0, 1167, 1029, 772, 681, 925, 570, 467, 295, 432, 372, 207, 102, 0), # 105 (1270, 1215, 1039, 1101, 968, 440, 507, 406, 475, 225, 167, 87, 0, 1173, 1036, 783, 682, 934, 575, 471, 296, 433, 377, 208, 102, 0), # 106 (1286, 1220, 1048, 1110, 979, 446, 507, 411, 479, 227, 169, 88, 0, 1182, 1042, 787, 685, 946, 580, 475, 299, 439, 381, 210, 103, 0), # 107 (1305, 1233, 1058, 1119, 986, 451, 508, 413, 483, 230, 169, 89, 0, 1195, 1058, 794, 690, 954, 585, 477, 307, 440, 381, 213, 105, 0), # 108 (1317, 1238, 1062, 1129, 990, 454, 510, 416, 491, 230, 171, 90, 0, 1207, 1064, 803, 697, 961, 587, 478, 308, 445, 385, 216, 105, 0), # 109 (1331, 1248, 1071, 1137, 994, 460, 512, 419, 494, 231, 171, 90, 0, 1215, 1074, 809, 703, 972, 595, 481, 312, 451, 389, 218, 105, 0), # 110 (1347, 1257, 1081, 1144, 1006, 464, 518, 422, 495, 233, 172, 92, 0, 1230, 1090, 814, 708, 981, 598, 486, 315, 455, 396, 220, 105, 0), # 111 (1357, 1262, 1087, 1158, 1009, 466, 522, 424, 500, 235, 173, 93, 0, 1243, 1095, 820, 713, 987, 605, 487, 316, 456, 405, 221, 107, 0), # 112 (1372, 1273, 1094, 1167, 1017, 469, 525, 427, 502, 236, 173, 93, 0, 1254, 1099, 827, 717, 993, 609, 490, 317, 458, 407, 222, 108, 0), # 113 (1384, 1282, 1100, 1172, 1028, 475, 532, 434, 504, 239, 176, 93, 0, 1276, 1109, 832, 722, 997, 616, 491, 321, 460, 411, 223, 109, 0), # 114 (1394, 1288, 1108, 1180, 1034, 479, 535, 436, 508, 242, 176, 93, 0, 1291, 1124, 838, 725, 1005, 620, 496, 327, 465, 413, 224, 111, 0), # 115 (1408, 1297, 1122, 1187, 1043, 481, 537, 441, 511, 243, 177, 94, 0, 1308, 1131, 846, 729, 1013, 625, 502, 330, 471, 417, 226, 113, 0), # 116 (1414, 1306, 1129, 1195, 1050, 486, 541, 445, 516, 244, 179, 94, 0, 1319, 1139, 854, 738, 1019, 631, 506, 332, 478, 420, 229, 113, 0), # 117 (1431, 1314, 1142, 1201, 1056, 488, 543, 451, 518, 244, 179, 95, 0, 1329, 1148, 860, 743, 1033, 633, 508, 336, 482, 429, 229, 113, 0), # 118 (1440, 1321, 1155, 1212, 1067, 494, 545, 453, 524, 246, 182, 98, 0, 1342, 1154, 864, 748, 1043, 636, 508, 338, 487, 431, 231, 113, 0), # 119 (1453, 1330, 1168, 1223, 1076, 495, 547, 455, 525, 250, 182, 98, 0, 1355, 1165, 874, 750, 1054, 641, 514, 340, 491, 437, 233, 114, 0), # 120 (1465, 1338, 1180, 1231, 1085, 498, 552, 461, 532, 251, 184, 100, 0, 1368, 1178, 879, 760, 1060, 645, 517, 341, 496, 437, 236, 114, 0), # 121 (1475, 1341, 1187, 1237, 1091, 501, 558, 466, 538, 253, 187, 101, 0, 1384, 1185, 889, 763, 1067, 654, 520, 342, 497, 441, 238, 114, 0), # 122 (1489, 1348, 1202, 1254, 1100, 511, 558, 467, 545, 254, 189, 101, 0, 1400, 1196, 890, 768, 1074, 657, 525, 345, 500, 447, 238, 114, 0), # 123 (1499, 1357, 1210, 1267, 1105, 521, 561, 472, 547, 256, 190, 102, 0, 1413, 1206, 901, 774, 1081, 659, 526, 347, 501, 450, 241, 115, 0), # 124 (1510, 1362, 1221, 1278, 1113, 529, 566, 473, 557, 260, 192, 102, 0, 1426, 1209, 907, 782, 1087, 663, 529, 348, 505, 454, 243, 116, 0), # 125 (1519, 1364, 1228, 1286, 1117, 533, 569, 476, 561, 262, 195, 103, 0, 1435, 1218, 917, 787, 1096, 665, 535, 351, 508, 455, 245, 116, 0), # 126 (1531, 1376, 1236, 1289, 1123, 540, 570, 478, 564, 262, 195, 105, 0, 1444, 1231, 923, 793, 1102, 668, 538, 353, 512, 457, 248, 118, 0), # 127 (1545, 1382, 1243, 1301, 1133, 540, 576, 481, 572, 262, 197, 105, 0, 1458, 1237, 931, 796, 1109, 672, 540, 355, 515, 460, 250, 119, 0), # 128 (1563, 1390, 1253, 1305, 1135, 543, 578, 484, 574, 265, 199, 105, 0, 1467, 1245, 939, 801, 1117, 672, 541, 355, 521, 461, 251, 119, 0), # 129 (1574, 1401, 1261, 1313, 1144, 546, 580, 485, 579, 266, 200, 105, 0, 1482, 1253, 943, 809, 1126, 679, 543, 360, 527, 466, 252, 120, 0), # 130 (1587, 1413, 1272, 1321, 1152, 552, 581, 489, 583, 268, 203, 107, 0, 1490, 1265, 946, 810, 1130, 686, 549, 365, 534, 469, 254, 120, 0), # 131 (1595, 1420, 1281, 1329, 1157, 558, 582, 492, 583, 269, 205, 107, 0, 1506, 1278, 951, 816, 1139, 691, 553, 365, 543, 473, 255, 120, 0), # 132 (1606, 1425, 1295, 1343, 1167, 562, 592, 496, 589, 271, 207, 107, 0, 1514, 1283, 958, 820, 1148, 694, 553, 367, 547, 482, 258, 120, 0), # 133 (1617, 1428, 1301, 1348, 1178, 566, 595, 496, 593, 273, 208, 107, 0, 1525, 1293, 964, 823, 1156, 698, 556, 368, 551, 487, 261, 120, 0), # 134 (1622, 1437, 1304, 1356, 1187, 570, 598, 498, 604, 274, 209, 107, 0, 1537, 1299, 970, 831, 1164, 702, 559, 369, 552, 490, 262, 120, 0), # 135 (1630, 1446, 1319, 1358, 1197, 575, 602, 500, 610, 277, 210, 107, 0, 1547, 1307, 975, 836, 1176, 706, 565, 371, 555, 493, 263, 122, 0), # 136 (1638, 1447, 1331, 1363, 1202, 578, 606, 503, 615, 281, 210, 108, 0, 1563, 1315, 984, 840, 1184, 710, 571, 372, 557, 497, 266, 123, 0), # 137 (1645, 1451, 1342, 1368, 1212, 581, 607, 507, 617, 281, 213, 109, 0, 1576, 1322, 988, 846, 1193, 716, 572, 380, 562, 501, 268, 123, 0), # 138 (1650, 1458, 1350, 1376, 1219, 585, 610, 512, 620, 287, 217, 109, 0, 1592, 1328, 995, 851, 1202, 720, 576, 382, 565, 502, 269, 124, 0), # 139 (1660, 1466, 1364, 1385, 1228, 590, 614, 514, 623, 287, 217, 110, 0, 1596, 1341, 1003, 856, 1213, 725, 578, 385, 571, 504, 273, 125, 0), # 140 (1670, 1476, 1370, 1396, 1234, 593, 617, 516, 627, 287, 217, 110, 0, 1604, 1348, 1009, 863, 1222, 730, 581, 385, 577, 507, 276, 126, 0), # 141 (1679, 1481, 1379, 1406, 1244, 594, 622, 518, 632, 289, 218, 110, 0, 1614, 1357, 1016, 865, 1231, 733, 583, 388, 583, 507, 277, 128, 0), # 142 (1687, 1486, 1391, 1412, 1254, 595, 626, 521, 637, 290, 218, 112, 0, 1620, 1366, 1024, 871, 1236, 735, 584, 391, 586, 509, 279, 128, 0), # 143 (1694, 1490, 1401, 1423, 1262, 597, 627, 524, 644, 290, 218, 112, 0, 1629, 1378, 1028, 874, 1247, 738, 589, 392, 588, 509, 280, 128, 0), # 144 (1696, 1500, 1405, 1427, 1266, 599, 628, 525, 651, 291, 218, 112, 0, 1643, 1385, 1030, 878, 1252, 741, 593, 395, 592, 513, 281, 128, 0), # 145 (1701, 1511, 1419, 1439, 1275, 603, 629, 530, 655, 291, 219, 112, 0, 1653, 1394, 1036, 884, 1263, 746, 597, 398, 595, 517, 283, 128, 0), # 146 (1714, 1522, 1421, 1448, 1282, 607, 630, 532, 655, 291, 221, 112, 0, 1663, 1409, 1045, 890, 1272, 750, 598, 403, 600, 522, 284, 128, 0), # 147 (1721, 1525, 1432, 1454, 1290, 608, 634, 534, 660, 293, 221, 112, 0, 1673, 1419, 1048, 898, 1277, 753, 601, 405, 604, 523, 286, 130, 0), # 148 (1731, 1531, 1437, 1462, 1299, 612, 638, 535, 663, 295, 224, 113, 0, 1681, 1427, 1054, 904, 1287, 758, 606, 407, 607, 525, 287, 131, 0), # 149 (1739, 1539, 1451, 1472, 1308, 619, 641, 537, 667, 297, 225, 115, 0, 1687, 1436, 1066, 905, 1302, 760, 607, 408, 609, 531, 289, 131, 0), # 150 (1748, 1544, 1461, 1478, 1315, 624, 644, 538, 669, 299, 226, 118, 0, 1698, 1441, 1068, 910, 1309, 762, 610, 413, 610, 536, 289, 132, 0), # 151 (1756, 1553, 1467, 1490, 1325, 628, 648, 540, 673, 300, 227, 120, 0, 1706, 1450, 1078, 916, 1317, 765, 612, 416, 616, 539, 289, 133, 0), # 152 (1767, 1560, 1480, 1502, 1332, 634, 651, 545, 676, 300, 228, 120, 0, 1720, 1459, 1082, 917, 1324, 771, 613, 419, 622, 542, 291, 135, 0), # 153 (1777, 1574, 1488, 1510, 1341, 641, 655, 547, 680, 300, 231, 123, 0, 1734, 1467, 1086, 922, 1328, 775, 614, 421, 625, 546, 291, 137, 0), # 154 (1784, 1580, 1495, 1517, 1354, 642, 658, 549, 686, 305, 232, 125, 0, 1743, 1477, 1088, 928, 1331, 781, 616, 423, 632, 550, 293, 137, 0), # 155 (1790, 1585, 1505, 1528, 1363, 649, 660, 551, 688, 307, 233, 125, 0, 1756, 1484, 1094, 930, 1333, 784, 618, 428, 641, 553, 293, 137, 0), # 156 (1797, 1591, 1519, 1536, 1369, 657, 666, 552, 693, 309, 235, 125, 0, 1764, 1494, 1098, 934, 1341, 787, 622, 431, 644, 554, 294, 138, 0), # 157 (1803, 1594, 1521, 1550, 1374, 661, 671, 553, 694, 310, 235, 125, 0, 1770, 1508, 1104, 942, 1347, 794, 623, 435, 651, 555, 295, 138, 0), # 158 (1810, 1602, 1531, 1560, 1380, 665, 673, 558, 699, 311, 236, 125, 0, 1776, 1516, 1110, 945, 1354, 797, 625, 436, 656, 556, 295, 138, 0), # 159 (1816, 1607, 1538, 1564, 1387, 669, 674, 561, 702, 313, 236, 125, 0, 1786, 1521, 1115, 954, 1359, 804, 628, 439, 659, 559, 295, 138, 0), # 160 (1823, 1613, 1543, 1569, 1388, 672, 679, 563, 703, 315, 237, 125, 0, 1797, 1527, 1123, 956, 1366, 807, 631, 444, 663, 564, 297, 139, 0), # 161 (1828, 1618, 1549, 1580, 1402, 676, 681, 564, 707, 317, 238, 127, 0, 1805, 1536, 1130, 959, 1369, 808, 636, 445, 665, 567, 300, 140, 0), # 162 (1831, 1626, 1555, 1586, 1410, 678, 683, 567, 709, 317, 241, 127, 0, 1816, 1542, 1137, 963, 1373, 814, 637, 447, 669, 569, 300, 140, 0), # 163 (1841, 1632, 1563, 1596, 1418, 679, 687, 568, 713, 318, 241, 128, 0, 1824, 1549, 1144, 967, 1378, 819, 638, 448, 673, 570, 302, 140, 0), # 164 (1850, 1640, 1570, 1600, 1425, 681, 689, 569, 714, 320, 244, 128, 0, 1830, 1559, 1152, 974, 1392, 823, 641, 450, 676, 571, 305, 142, 0), # 165 (1855, 1648, 1579, 1606, 1430, 684, 694, 572, 716, 322, 246, 128, 0, 1838, 1568, 1154, 976, 1400, 829, 643, 451, 680, 571, 308, 142, 0), # 166 (1859, 1652, 1585, 1612, 1440, 686, 699, 573, 720, 322, 249, 131, 0, 1847, 1570, 1158, 979, 1404, 830, 646, 452, 682, 573, 309, 142, 0), # 167 (1862, 1659, 1592, 1621, 1450, 689, 703, 575, 721, 323, 249, 132, 0, 1856, 1574, 1162, 981, 1407, 833, 648, 454, 684, 576, 311, 143, 0), # 168 (1865, 1663, 1595, 1625, 1455, 692, 706, 577, 721, 324, 249, 134, 0, 1868, 1583, 1169, 983, 1419, 838, 648, 458, 688, 581, 312, 144, 0), # 169 (1870, 1667, 1597, 1635, 1460, 697, 711, 581, 725, 324, 252, 134, 0, 1874, 1589, 1174, 988, 1424, 842, 650, 460, 693, 584, 313, 144, 0), # 170 (1878, 1675, 1604, 1641, 1465, 701, 715, 583, 731, 324, 254, 134, 0, 1878, 1596, 1178, 992, 1428, 846, 650, 461, 694, 585, 314, 144, 0), # 171 (1882, 1678, 1611, 1645, 1471, 705, 716, 585, 735, 327, 255, 135, 0, 1889, 1601, 1179, 999, 1431, 849, 652, 465, 695, 588, 315, 144, 0), # 172 (1892, 1685, 1618, 1652, 1481, 708, 718, 587, 739, 328, 256, 135, 0, 1894, 1604, 1184, 1003, 1435, 855, 654, 466, 697, 592, 315, 145, 0), # 173 (1895, 1688, 1622, 1662, 1483, 709, 718, 588, 740, 329, 256, 135, 0, 1900, 1605, 1186, 1005, 1438, 856, 654, 469, 699, 596, 315, 145, 0), # 174 (1901, 1691, 1625, 1668, 1488, 710, 721, 590, 742, 329, 257, 135, 0, 1909, 1613, 1187, 1007, 1447, 859, 660, 469, 703, 597, 315, 147, 0), # 175 (1906, 1694, 1627, 1671, 1491, 713, 723, 592, 745, 329, 257, 135, 0, 1915, 1621, 1193, 1010, 1453, 859, 663, 470, 709, 597, 316, 148, 0), # 176 (1909, 1698, 1633, 1673, 1494, 713, 725, 594, 745, 329, 257, 136, 0, 1922, 1625, 1198, 1012, 1456, 861, 666, 471, 712, 598, 317, 148, 0), # 177 (1916, 1702, 1639, 1676, 1495, 715, 726, 596, 745, 330, 257, 138, 0, 1926, 1628, 1201, 1015, 1459, 863, 668, 472, 712, 599, 318, 148, 0), # 178 (1916, 1702, 1639, 1676, 1495, 715, 726, 596, 745, 330, 257, 138, 0, 1926, 1628, 1201, 1015, 1459, 863, 668, 472, 712, 599, 318, 148, 0), # 179 ) passenger_arriving_rate = ( (6.025038694046121, 6.077817415662483, 5.211283229612507, 5.593200996477089, 4.443748486087689, 2.197058452426137, 2.4876213692243487, 2.3265880864897115, 2.4360396248672025, 1.187404504656711, 0.8410530327771206, 0.4897915078306174, 0.0, 6.100656255094035, 5.38770658613679, 4.205265163885603, 3.562213513970132, 4.872079249734405, 3.257223321085596, 2.4876213692243487, 1.5693274660186693, 2.2218742430438443, 1.8644003321590301, 1.0422566459225016, 0.5525288559693167, 0.0), # 0 (6.425192582423969, 6.479066763559234, 5.555346591330152, 5.9626298279489545, 4.737992269979389, 2.342188508829789, 2.651681364758216, 2.479756861452854, 2.5968981305331633, 1.265694207683145, 0.8966192271912263, 0.5221216660814355, 0.0, 6.503749976927826, 5.743338326895789, 4.483096135956131, 3.7970826230494343, 5.193796261066327, 3.4716596060339957, 2.651681364758216, 1.6729917920212778, 2.3689961349896946, 1.9875432759829852, 1.1110693182660305, 0.589006069414476, 0.0), # 1 (6.8240676107756775, 6.878723687980077, 5.8980422855474135, 6.330588934198314, 5.031170378999795, 2.4867395801587113, 2.8150911047764224, 2.6323126239522097, 2.7571147227510195, 1.3436741325061639, 0.9519646297552626, 0.5543232652053055, 0.0, 6.905237793851628, 6.09755591725836, 4.759823148776313, 4.031022397518491, 5.514229445502039, 3.6852376735330936, 2.8150911047764224, 1.7762425572562224, 2.5155851894998973, 2.1101963113994384, 1.179608457109483, 0.625338517089098, 0.0), # 2 (7.220109351775874, 7.275202552130091, 6.238010869319854, 6.695618766778866, 5.322129340801521, 2.6301384358095787, 2.9772021849887733, 2.7836505787472534, 2.9160540643684367, 1.4210348095278544, 1.0068696823654766, 0.5862685684930461, 0.0, 7.30352736750507, 6.448954253423507, 5.0343484118273825, 4.263104428583563, 5.8321081287368735, 3.8971108102461547, 2.9772021849887733, 1.8786703112925562, 2.6610646704007603, 2.2318729222596225, 1.247602173863971, 0.6613820501936447, 0.0), # 3 (7.611763378099177, 7.666917719214351, 6.573892899703036, 7.056259777244312, 5.609715683037193, 2.7718118451790676, 3.137366201105075, 2.9331659305974576, 3.0730808182330827, 1.4974667691503039, 1.0611148269181152, 0.6178298392354764, 0.0, 7.69702635952778, 6.79612823159024, 5.305574134590575, 4.492400307450911, 6.146161636466165, 4.10643230283644, 3.137366201105075, 1.9798656036993338, 2.8048578415185963, 2.3520865924147714, 1.3147785799406073, 0.6969925199285775, 0.0), # 4 (7.9974752624202115, 8.052283552437947, 6.904328933752518, 7.411052417148355, 5.892775933359424, 2.9111865776638504, 3.2949347488351344, 3.080253884262296, 3.2275596471926233, 1.5726605417755992, 1.1144805053094267, 0.6488793407234149, 0.0, 8.084142431559393, 7.137672747957563, 5.572402526547132, 4.7179816253267965, 6.455119294385247, 4.312355437967215, 3.2949347488351344, 2.079418984045607, 2.946387966679712, 2.4703508057161185, 1.3808657867505036, 0.7320257774943589, 0.0), # 5 (8.375690577413598, 8.42971441500595, 7.227959528523866, 7.758537138044686, 6.170156619420834, 3.047689402660605, 3.4492594238887575, 3.2243096445012442, 3.3788552140947257, 1.6463066578058279, 1.1667471594356567, 0.6792893362476808, 0.0, 8.463283245239527, 7.472182698724488, 5.833735797178282, 4.938919973417482, 6.757710428189451, 4.514033502301742, 3.4492594238887575, 2.176921001900432, 3.085078309710417, 2.586179046014896, 1.4455919057047733, 0.7663376740914501, 0.0), # 6 (8.744854895753962, 8.797624670123444, 7.543425241072636, 8.097254391487015, 6.440704268874043, 3.1807470895660046, 3.599691821975751, 3.3647284160737763, 3.5263321817870574, 1.7180956476430762, 1.2176952311930538, 0.708932089099093, 0.0, 8.832856462207822, 7.798252980090021, 6.088476155965268, 5.154286942929227, 7.052664363574115, 4.7106197825032865, 3.599691821975751, 2.2719622068328604, 3.2203521344370216, 2.699084797162339, 1.508685048214527, 0.7997840609203132, 0.0), # 7 (9.103413790115921, 9.154428680995508, 7.849366628454395, 8.425744629029035, 6.703265409371668, 3.309786407776723, 3.7455835388059184, 3.5009054037393623, 3.669355213117282, 1.7877180416894325, 1.2671051624778642, 0.7376798625684703, 0.0, 9.1912697441039, 8.114478488253173, 6.335525812389321, 5.363154125068296, 7.338710426234564, 4.901267565235107, 3.7455835388059184, 2.3641331484119448, 3.351632704685834, 2.8085815430096788, 1.5698733256908792, 0.8322207891814098, 0.0), # 8 (9.449812833174102, 9.498540810827224, 8.144424247724704, 8.742548302224453, 6.956686568566327, 3.4342341266894385, 3.886286170089072, 3.6322358122574814, 3.8072889709330693, 1.8548643703469827, 1.3147573951863356, 0.7654049199466314, 0.0, 9.536930752567395, 8.419454119412945, 6.573786975931678, 5.564593111040947, 7.614577941866139, 5.0851301371604745, 3.886286170089072, 2.453024376206742, 3.4783432842831634, 2.914182767408151, 1.6288848495449408, 0.8635037100752023, 0.0), # 9 (9.782497597603118, 9.828375422823667, 8.427238655939124, 9.046205862626959, 7.19981427411064, 3.5535170157008253, 4.021151311535013, 3.7581148463876053, 3.9394981180820854, 1.9192251640178146, 1.3604323712147148, 0.7919795245243952, 0.0, 9.868247149237932, 8.711774769768347, 6.802161856073574, 5.757675492053442, 7.878996236164171, 5.261360784942648, 4.021151311535013, 2.5382264397863037, 3.59990713705532, 3.015401954208987, 1.685447731187825, 0.8934886748021517, 0.0), # 10 (10.099913656077605, 10.142346880189926, 8.696450410153215, 9.335257761790256, 7.431495053657226, 3.667061844207558, 4.14953055885355, 3.8779377108892072, 4.065347317411997, 1.980490953104016, 1.40391053245925, 0.8172759395925812, 0.0, 10.183626595755133, 8.99003533551839, 7.019552662296249, 5.9414728593120465, 8.130694634823994, 5.42911279524489, 4.14953055885355, 2.619329888719684, 3.715747526828613, 3.1117525872634197, 1.7392900820306432, 0.9220315345627208, 0.0), # 11 (10.400506581272174, 10.438869546131066, 8.95070006742254, 9.60824445126805, 7.650575434858702, 3.7742953816063087, 4.270775507754487, 3.99109961052176, 4.184201231770471, 2.0383522680076718, 1.444972320816187, 0.8411664284420068, 0.0, 10.48147675375864, 9.252830712862075, 7.224861604080934, 6.115056804023014, 8.368402463540942, 5.587539454730464, 4.270775507754487, 2.6959252725759346, 3.825287717429351, 3.2027481504226842, 1.790140013484508, 0.9489881405573698, 0.0), # 12 (10.68272194586145, 10.716357783852182, 9.188628184802662, 9.863706382614039, 7.85590194536768, 3.8746443972937565, 4.384237753947633, 4.096995750044741, 4.295424524005172, 2.0924996391308714, 1.4833981781817738, 0.8635232543634921, 0.0, 10.760205284888082, 9.498755797998411, 7.416990890908868, 6.277498917392613, 8.590849048010345, 5.735794050062637, 4.384237753947633, 2.7676031409241117, 3.92795097268384, 3.287902127538014, 1.8377256369605324, 0.974214343986562, 0.0), # 13 (10.945005322520059, 10.973225956558347, 9.408875319349146, 10.100184007381912, 8.046321112836791, 3.967535660666574, 4.489268893142796, 4.195021334217623, 4.398381856963768, 2.1426235968757004, 1.518968546452257, 0.8842186806478561, 0.0, 11.018219850783076, 9.726405487126415, 7.594842732261284, 6.4278707906271, 8.796763713927536, 5.873029867904672, 4.489268893142796, 2.833954043333267, 4.023160556418396, 3.3667280024606385, 1.8817750638698296, 0.997565996050759, 0.0), # 14 (11.185802283922625, 11.207888427454638, 9.610082028117542, 10.316217777125386, 8.220679464918646, 4.052395941121439, 4.585220521049775, 4.284571567799878, 4.4924378934939275, 2.1884146716442476, 1.551463867523884, 0.9031249705859171, 0.0, 11.253928113083257, 9.934374676445087, 7.757319337619419, 6.565244014932741, 8.984875786987855, 5.998400194919829, 4.585220521049775, 2.894568529372456, 4.110339732459323, 3.4387392590417964, 1.9220164056235085, 1.0188989479504218, 0.0), # 15 (11.40355840274376, 11.418759559746144, 9.790888868163425, 10.510348143398145, 8.377823529265866, 4.128652008055021, 4.671444233378385, 4.36504165555098, 4.5769572964433145, 2.2295633938385993, 1.5806645832929027, 0.920114387468494, 0.0, 11.465737733428254, 10.121258262153432, 7.9033229164645125, 6.688690181515796, 9.153914592886629, 6.111058317771373, 4.671444233378385, 2.9490371486107296, 4.188911764632933, 3.503449381132716, 1.958177773632685, 1.0380690508860133, 0.0), # 16 (11.59671925165809, 11.604253716637938, 9.949936396542352, 10.6811155577539, 8.51659983353107, 4.1957306308639994, 4.747291625838426, 4.435826802230409, 4.651304728659593, 2.2657602938608403, 1.60635113565556, 0.9350591945864056, 0.0, 11.652056373457699, 10.28565114045046, 8.031755678277799, 6.79728088158252, 9.302609457319186, 6.2101575231225725, 4.747291625838426, 2.9969504506171427, 4.258299916765535, 3.5603718525846344, 1.9899872793084707, 1.0549321560579947, 0.0), # 17 (11.763730403340244, 11.7627852613351, 10.08586517030988, 10.82706047174635, 8.63585490536687, 4.253058578945052, 4.81211429413971, 4.49632221259763, 4.7148448529904385, 2.2966959021130613, 1.6283039665081016, 0.9478316552304716, 0.0, 11.811291694811214, 10.426148207535187, 8.141519832540508, 6.890087706339182, 9.429689705980877, 6.294851097636682, 4.81211429413971, 3.0378989849607514, 4.317927452683435, 3.6090201572487843, 2.0171730340619765, 1.0693441146668274, 0.0), # 18 (11.903037430464838, 11.892768557042718, 10.197315746521578, 10.946723336929182, 8.734435272425891, 4.300062621694845, 4.865263833992036, 4.5459230914121225, 4.766942332283511, 2.3220607489973486, 1.6463035177467755, 0.9583040326915097, 0.0, 11.941851359128435, 10.541344359606605, 8.231517588733878, 6.9661822469920445, 9.533884664567022, 6.364292327976972, 4.865263833992036, 3.071473301210604, 4.367217636212946, 3.648907778976395, 2.039463149304316, 1.0811607779129746, 0.0), # 19 (12.013085905706498, 11.992617966965858, 10.282928682233003, 11.038644604856119, 8.811187462360754, 4.336169528510063, 4.9060918411052175, 4.5840246434333585, 4.806961829386479, 2.341545364915788, 1.66013023126783, 0.9663485902603393, 0.0, 12.042143028048988, 10.62983449286373, 8.30065115633915, 7.024636094747362, 9.613923658772958, 6.417634500806702, 4.9060918411052175, 3.097263948935759, 4.405593731180377, 3.679548201618707, 2.0565857364466007, 1.0902379969968963, 0.0), # 20 (12.09232140173984, 12.060747854309614, 10.341344534499719, 11.101364727080837, 8.86495800282407, 4.360806068787375, 4.933949911189055, 4.6100220734208115, 4.834268007147008, 2.3548402802704667, 1.669564548967512, 0.9718375912277795, 0.0, 12.110574363212494, 10.690213503505571, 8.34782274483756, 7.064520840811399, 9.668536014294016, 6.454030902789136, 4.933949911189055, 3.1148614777052677, 4.432479001412035, 3.7004549090269463, 2.068268906899944, 1.096431623119056, 0.0), # 21 (12.139189491239494, 12.095572582279058, 10.371203860377285, 11.133424155157051, 8.894593421468459, 4.373399011923457, 4.94818963995336, 4.623310586133957, 4.848225528412765, 2.361636025463473, 1.674386912742068, 0.9746432988846491, 0.0, 12.145553026258591, 10.721076287731139, 8.37193456371034, 7.084908076390418, 9.69645105682553, 6.47263482058754, 4.94818963995336, 3.1238564370881834, 4.447296710734229, 3.7111413850523514, 2.0742407720754574, 1.0995975074799145, 0.0), # 22 (12.156472036011166, 12.099695953360769, 10.374923182441702, 11.137437731481482, 8.902185644826076, 4.375, 4.949882401355603, 4.624746913580247, 4.8499704938271595, 2.3624376817558304, 1.6749916074323483, 0.9749897576588934, 0.0, 12.15, 10.724887334247827, 8.37495803716174, 7.087313045267489, 9.699940987654319, 6.474645679012346, 4.949882401355603, 3.125, 4.451092822413038, 3.7124792438271617, 2.0749846364883404, 1.0999723593964337, 0.0), # 23 (12.169214895640982, 12.09729074074074, 10.374314814814815, 11.13694375, 8.906486090891882, 4.375, 4.9489522875817, 4.62275, 4.849736666666666, 2.3619451851851854, 1.6749249158249162, 0.9749086419753087, 0.0, 12.15, 10.723995061728393, 8.37462457912458, 7.085835555555555, 9.699473333333332, 6.47185, 4.9489522875817, 3.125, 4.453243045445941, 3.7123145833333346, 2.074862962962963, 1.099753703703704, 0.0), # 24 (12.181688676253897, 12.092549725651576, 10.373113854595337, 11.135966435185185, 8.910691956475603, 4.375, 4.947119341563786, 4.618827160493828, 4.8492746913580245, 2.3609756515775038, 1.6747926798852726, 0.9747485139460449, 0.0, 12.15, 10.722233653406493, 8.373963399426362, 7.08292695473251, 9.698549382716049, 6.466358024691359, 4.947119341563786, 3.125, 4.455345978237801, 3.711988811728396, 2.0746227709190674, 1.0993227023319616, 0.0), # 25 (12.19389242285764, 12.085545336076818, 10.371336762688616, 11.134516898148147, 8.914803094736882, 4.375, 4.944412030985233, 4.613052469135803, 4.84859049382716, 2.3595452126200276, 1.674596096770171, 0.9745115683584822, 0.0, 12.15, 10.719627251943303, 8.372980483850855, 7.078635637860081, 9.69718098765432, 6.458273456790124, 4.944412030985233, 3.125, 4.457401547368441, 3.71150563271605, 2.0742673525377233, 1.0986859396433473, 0.0), # 26 (12.205825180459962, 12.076349999999996, 10.369, 11.132606249999998, 8.918819358835371, 4.375, 4.940858823529412, 4.6055, 4.84769, 2.35767, 1.674336363636364, 0.9742000000000002, 0.0, 12.15, 10.7162, 8.371681818181818, 7.073009999999999, 9.69538, 6.4477, 4.940858823529412, 3.125, 4.459409679417686, 3.7108687500000004, 2.0738000000000003, 1.09785, 0.0), # 27 (12.217485994068602, 12.065036145404662, 10.366120027434842, 11.13024560185185, 8.92274060193072, 4.375, 4.93648818687969, 4.596243827160494, 4.846579135802468, 2.3553661454046644, 1.6740146776406037, 0.9738160036579792, 0.0, 12.15, 10.711976040237769, 8.370073388203018, 7.066098436213991, 9.693158271604936, 6.434741358024692, 4.93648818687969, 3.125, 4.46137030096536, 3.710081867283951, 2.073224005486969, 1.0968214677640604, 0.0), # 28 (12.2288739086913, 12.051676200274349, 10.362713305898492, 11.127446064814816, 8.926566677182576, 4.375, 4.931328588719439, 4.585358024691358, 4.845263827160494, 2.3526497805212623, 1.6736322359396434, 0.9733617741197987, 0.0, 12.15, 10.706979515317785, 8.368161179698216, 7.057949341563786, 9.690527654320988, 6.419501234567901, 4.931328588719439, 3.125, 4.463283338591288, 3.709148688271606, 2.0725426611796984, 1.0956069272976683, 0.0), # 29 (12.239987969335797, 12.036342592592591, 10.358796296296296, 11.12421875, 8.930297437750589, 4.375, 4.925408496732026, 4.572916666666666, 4.84375, 2.3495370370370376, 1.6731902356902357, 0.9728395061728394, 0.0, 12.15, 10.701234567901233, 8.365951178451178, 7.048611111111112, 9.6875, 6.402083333333333, 4.925408496732026, 3.125, 4.4651487188752945, 3.7080729166666675, 2.0717592592592595, 1.094212962962963, 0.0), # 30 (12.25082722100983, 12.019107750342934, 10.354385459533608, 11.120574768518516, 8.933932736794405, 4.375, 4.918756378600824, 4.558993827160494, 4.842043580246913, 2.346044046639232, 1.6726898740491336, 0.9722513946044812, 0.0, 12.15, 10.694765340649292, 8.363449370245666, 7.038132139917694, 9.684087160493826, 6.382591358024691, 4.918756378600824, 3.125, 4.466966368397203, 3.70685825617284, 2.070877091906722, 1.0926461591220853, 0.0), # 31 (12.261390708721144, 12.000044101508914, 10.349497256515773, 11.11652523148148, 8.937472427473676, 4.375, 4.911400702009199, 4.543663580246914, 4.84015049382716, 2.3421869410150897, 1.672132348173089, 0.9715996342021036, 0.0, 12.15, 10.687595976223138, 8.360661740865444, 7.026560823045267, 9.68030098765432, 6.36112901234568, 4.911400702009199, 3.125, 4.468736213736838, 3.705508410493828, 2.069899451303155, 1.0909131001371744, 0.0), # 32 (12.271677477477477, 11.979224074074073, 10.344148148148149, 11.11208125, 8.94091636294805, 4.375, 4.903369934640523, 4.527, 4.838076666666666, 2.3379818518518523, 1.6715188552188551, 0.9708864197530863, 0.0, 12.15, 10.679750617283949, 8.357594276094275, 7.013945555555555, 9.676153333333332, 6.3378000000000005, 4.903369934640523, 3.125, 4.470458181474025, 3.704027083333334, 2.06882962962963, 1.0890203703703705, 0.0), # 33 (12.28168657228657, 11.956720096021947, 10.338354595336076, 11.107253935185184, 8.944264396377172, 4.375, 4.894692544178166, 4.509077160493827, 4.835828024691358, 2.333444910836763, 1.670850592343185, 0.9701139460448103, 0.0, 12.15, 10.671253406492912, 8.354252961715924, 7.000334732510288, 9.671656049382715, 6.312708024691357, 4.894692544178166, 3.125, 4.472132198188586, 3.7024179783950624, 2.0676709190672153, 1.0869745541838134, 0.0), # 34 (12.291417038156167, 11.932604595336077, 10.332133058984912, 11.102054398148146, 8.947516380920696, 4.375, 4.885396998305495, 4.489969135802469, 4.83341049382716, 2.328592249657065, 1.6701287567028307, 0.969284407864655, 0.0, 12.15, 10.662128486511202, 8.350643783514153, 6.985776748971193, 9.66682098765432, 6.285956790123457, 4.885396998305495, 3.125, 4.473758190460348, 3.7006847993827163, 2.0664266117969827, 1.0847822359396435, 0.0), # 35 (12.300867920094007, 11.906949999999998, 10.3255, 11.096493749999999, 8.950672169738269, 4.375, 4.875511764705882, 4.46975, 4.830829999999999, 2.32344, 1.6693545454545458, 0.9684000000000001, 0.0, 12.15, 10.6524, 8.346772727272727, 6.970319999999999, 9.661659999999998, 6.257650000000001, 4.875511764705882, 3.125, 4.475336084869134, 3.6988312500000005, 2.0651, 1.08245, 0.0), # 36 (12.310038263107828, 11.879828737997256, 10.318471879286694, 11.090583101851852, 8.953731615989536, 4.375, 4.865065311062696, 4.448493827160494, 4.828092469135802, 2.3180042935528125, 1.668529155755082, 0.9674629172382261, 0.0, 12.15, 10.642092089620485, 8.34264577877541, 6.954012880658436, 9.656184938271604, 6.227891358024691, 4.865065311062696, 3.125, 4.476865807994768, 3.696861033950618, 2.063694375857339, 1.0799844307270234, 0.0), # 37 (12.31892711220537, 11.851313237311386, 10.311065157750342, 11.084333564814814, 8.956694572834152, 4.375, 4.854086105059308, 4.426274691358025, 4.825203827160493, 2.312301262002744, 1.6676537847611925, 0.9664753543667125, 0.0, 12.15, 10.631228898033836, 8.33826892380596, 6.936903786008231, 9.650407654320986, 6.196784567901235, 4.854086105059308, 3.125, 4.478347286417076, 3.6947778549382724, 2.0622130315500686, 1.0773921124828534, 0.0), # 38 (12.327533512394384, 11.821475925925924, 10.303296296296297, 11.07775625, 8.959560893431762, 4.375, 4.842602614379085, 4.4031666666666665, 4.82217, 2.3063470370370376, 1.6667296296296297, 0.9654395061728396, 0.0, 12.15, 10.619834567901233, 8.333648148148148, 6.919041111111111, 9.64434, 6.164433333333333, 4.842602614379085, 3.125, 4.479780446715881, 3.6925854166666676, 2.0606592592592596, 1.0746796296296297, 0.0), # 39 (12.335856508682596, 11.790389231824417, 10.295181755829903, 11.070862268518518, 8.962330430942014, 4.375, 4.830643306705398, 4.3792438271604945, 4.818996913580246, 2.3001577503429362, 1.6657578875171468, 0.9643575674439875, 0.0, 12.15, 10.60793324188386, 8.328789437585733, 6.900473251028807, 9.637993827160493, 6.1309413580246925, 4.830643306705398, 3.125, 4.481165215471007, 3.690287422839507, 2.059036351165981, 1.0718535665294926, 0.0), # 40 (12.343895146077754, 11.758125582990397, 10.286737997256516, 11.06366273148148, 8.96500303852456, 4.375, 4.818236649721617, 4.354580246913581, 4.81569049382716, 2.293749533607682, 1.6647397555804966, 0.9632317329675355, 0.0, 12.15, 10.595549062642888, 8.323698777902482, 6.881248600823045, 9.63138098765432, 6.096412345679013, 4.818236649721617, 3.125, 4.48250151926228, 3.6878875771604944, 2.0573475994513033, 1.0689205075445818, 0.0), # 41 (12.3516484695876, 11.724757407407406, 10.277981481481483, 11.056168750000001, 8.967578569339047, 4.375, 4.805411111111111, 4.32925, 4.812256666666666, 2.287138518518519, 1.663676430976431, 0.9620641975308644, 0.0, 12.15, 10.582706172839506, 8.318382154882155, 6.861415555555555, 9.624513333333333, 6.06095, 4.805411111111111, 3.125, 4.483789284669523, 3.6853895833333343, 2.055596296296297, 1.0658870370370372, 0.0), # 42 (12.35911552421987, 11.690357133058985, 10.268928669410151, 11.048391435185184, 8.970056876545122, 4.375, 4.7921951585572495, 4.3033271604938275, 4.80870135802469, 2.280340836762689, 1.6625691108617036, 0.9608571559213536, 0.0, 12.15, 10.569428715134888, 8.312845554308517, 6.841022510288067, 9.61740271604938, 6.024658024691359, 4.7921951585572495, 3.125, 4.485028438272561, 3.682797145061729, 2.0537857338820307, 1.062759739368999, 0.0), # 43 (12.366295354982311, 11.65499718792867, 10.259596021947875, 11.040341898148148, 8.972437813302435, 4.375, 4.778617259743403, 4.2768858024691365, 4.805030493827159, 2.2733726200274353, 1.6614189923930665, 0.9596128029263833, 0.0, 12.15, 10.555740832190216, 8.307094961965332, 6.820117860082305, 9.610060987654318, 5.987640123456791, 4.778617259743403, 3.125, 4.486218906651217, 3.6801139660493836, 2.0519192043895753, 1.0595451989026066, 0.0), # 44 (12.37318700688266, 11.618749999999999, 10.25, 11.03203125, 8.974721232770635, 4.375, 4.764705882352941, 4.25, 4.80125, 2.2662500000000003, 1.6602272727272729, 0.9583333333333333, 0.0, 12.15, 10.541666666666664, 8.301136363636363, 6.79875, 9.6025, 5.95, 4.764705882352941, 3.125, 4.487360616385318, 3.677343750000001, 2.0500000000000003, 1.0562500000000001, 0.0), # 45 (12.379789524928656, 11.581687997256516, 10.240157064471878, 11.023470601851852, 8.976906988109372, 4.375, 4.750489494069233, 4.222743827160494, 4.797365802469135, 2.258989108367627, 1.6589951490210748, 0.9570209419295841, 0.0, 12.15, 10.527230361225422, 8.294975745105374, 6.77696732510288, 9.59473160493827, 5.9118413580246925, 4.750489494069233, 3.125, 4.488453494054686, 3.6744902006172846, 2.048031412894376, 1.0528807270233198, 0.0), # 46 (12.386101954128042, 11.543883607681755, 10.230083676268862, 11.014671064814813, 8.978994932478294, 4.375, 4.7359965625756475, 4.195191358024691, 4.793383827160493, 2.2516060768175588, 1.657723818431226, 0.955677823502515, 0.0, 12.15, 10.512456058527663, 8.288619092156129, 6.754818230452675, 9.586767654320987, 5.873267901234568, 4.7359965625756475, 3.125, 4.489497466239147, 3.6715570216049387, 2.046016735253773, 1.049443964334705, 0.0), # 47 (12.392123339488554, 11.505409259259258, 10.219796296296296, 11.00564375, 8.980984919037049, 4.375, 4.7212555555555555, 4.167416666666667, 4.78931, 2.244117037037037, 1.656414478114478, 0.9543061728395063, 0.0, 12.15, 10.497367901234567, 8.28207239057239, 6.73235111111111, 9.57862, 5.834383333333334, 4.7212555555555555, 3.125, 4.490492459518524, 3.6685479166666677, 2.0439592592592595, 1.0459462962962964, 0.0), # 48 (12.397852726017943, 11.466337379972563, 10.209311385459534, 10.996399768518518, 8.982876800945284, 4.375, 4.706294940692326, 4.139493827160494, 4.78515024691358, 2.2365381207133064, 1.6550683252275846, 0.9529081847279379, 0.0, 12.15, 10.481990032007316, 8.275341626137923, 6.709614362139918, 9.57030049382716, 5.795291358024691, 4.706294940692326, 3.125, 4.491438400472642, 3.665466589506174, 2.0418622770919073, 1.0423943072702333, 0.0), # 49 (12.403289158723938, 11.426740397805213, 10.198645404663925, 10.986950231481481, 8.984670431362652, 4.375, 4.69114318566933, 4.111496913580247, 4.78091049382716, 2.228885459533608, 1.6536865569272978, 0.9514860539551899, 0.0, 12.15, 10.466346593507089, 8.268432784636488, 6.686656378600823, 9.56182098765432, 5.756095679012346, 4.69114318566933, 3.125, 4.492335215681326, 3.6623167438271613, 2.0397290809327853, 1.038794581618656, 0.0), # 50 (12.408431682614292, 11.38669074074074, 10.187814814814814, 10.977306249999998, 8.986365663448797, 4.375, 4.675828758169934, 4.0835, 4.776596666666666, 2.2211751851851855, 1.6522703703703707, 0.9500419753086421, 0.0, 12.15, 10.450461728395062, 8.261351851851853, 6.663525555555555, 9.553193333333333, 5.7169, 4.675828758169934, 3.125, 4.493182831724399, 3.659102083333334, 2.037562962962963, 1.0351537037037037, 0.0), # 51 (12.413279342696734, 11.34626083676269, 10.176836076817558, 10.967478935185184, 8.98796235036337, 4.375, 4.660380125877511, 4.055577160493827, 4.772214691358024, 2.2134234293552817, 1.6508209627135553, 0.9485781435756746, 0.0, 12.15, 10.434359579332419, 8.254104813567777, 6.640270288065844, 9.544429382716048, 5.677808024691357, 4.660380125877511, 3.125, 4.493981175181685, 3.655826311728396, 2.035367215363512, 1.0314782578875175, 0.0), # 52 (12.417831183979011, 11.305523113854596, 10.165725651577505, 10.957479398148147, 8.989460345266023, 4.375, 4.64482575647543, 4.0278024691358025, 4.767770493827161, 2.205646323731139, 1.6493395311136052, 0.9470967535436672, 0.0, 12.15, 10.418064288980338, 8.246697655568026, 6.616938971193416, 9.535540987654322, 5.638923456790124, 4.64482575647543, 3.125, 4.4947301726330116, 3.65249313271605, 2.0331451303155013, 1.0277748285322361, 0.0), # 53 (12.42208625146886, 11.26455, 10.154499999999999, 10.94731875, 8.9908595013164, 4.375, 4.629194117647058, 4.000249999999999, 4.7632699999999994, 2.1978600000000004, 1.6478272727272725, 0.9456, 0.0, 12.15, 10.401599999999998, 8.239136363636362, 6.593579999999999, 9.526539999999999, 5.60035, 4.629194117647058, 3.125, 4.4954297506582, 3.649106250000001, 2.0309, 1.0240500000000001, 0.0), # 54 (12.426043590174027, 11.223413923182441, 10.143175582990398, 10.93700810185185, 8.992159671674152, 4.375, 4.613513677075768, 3.9729938271604937, 4.758719135802469, 2.1900805898491087, 1.6462853847113108, 0.9440900777320531, 0.0, 12.15, 10.384990855052584, 8.231426923556553, 6.570241769547325, 9.517438271604938, 5.562191358024691, 4.613513677075768, 3.125, 4.496079835837076, 3.645669367283951, 2.02863511659808, 1.0203103566529494, 0.0), # 55 (12.429702245102245, 11.182187311385459, 10.131768861454047, 10.926558564814814, 8.993360709498926, 4.375, 4.597812902444929, 3.946108024691358, 4.754123827160494, 2.182324224965707, 1.6447150642224717, 0.9425691815272064, 0.0, 12.15, 10.368260996799268, 8.223575321112358, 6.54697267489712, 9.508247654320988, 5.524551234567902, 4.597812902444929, 3.125, 4.496680354749463, 3.6421861882716056, 2.02635377229081, 1.0165624828532238, 0.0), # 56 (12.433061261261258, 11.140942592592593, 10.120296296296297, 10.915981249999998, 8.994462467950372, 4.375, 4.582120261437908, 3.9196666666666675, 4.74949, 2.1746070370370374, 1.6431175084175085, 0.9410395061728396, 0.0, 12.15, 10.351434567901233, 8.215587542087542, 6.523821111111111, 9.49898, 5.487533333333334, 4.582120261437908, 3.125, 4.497231233975186, 3.638660416666667, 2.0240592592592597, 1.0128129629629632, 0.0), # 57 (12.436119683658815, 11.09975219478738, 10.108774348422497, 10.905287268518517, 8.995464800188138, 4.375, 4.5664642217380775, 3.8937438271604936, 4.744823580246913, 2.1669451577503436, 1.641493914453174, 0.939503246456333, 0.0, 12.15, 10.334535711019662, 8.20746957226587, 6.50083547325103, 9.489647160493826, 5.451241358024691, 4.5664642217380775, 3.125, 4.497732400094069, 3.6350957561728396, 2.0217548696844996, 1.0090683813443075, 0.0), # 58 (12.438876557302644, 11.05868854595336, 10.097219478737998, 10.89448773148148, 8.996367559371876, 4.375, 4.550873251028807, 3.868413580246914, 4.74013049382716, 2.1593547187928674, 1.63984547948622, 0.9379625971650665, 0.0, 12.15, 10.31758856881573, 8.1992273974311, 6.478064156378601, 9.48026098765432, 5.41577901234568, 4.550873251028807, 3.125, 4.498183779685938, 3.6314959104938276, 2.0194438957476, 1.0053353223593966, 0.0), # 59 (12.441330927200491, 11.017824074074072, 10.085648148148147, 10.88359375, 8.997170598661228, 4.375, 4.535375816993463, 3.84375, 4.735416666666667, 2.1518518518518523, 1.6381734006734008, 0.9364197530864199, 0.0, 12.15, 10.300617283950617, 8.190867003367003, 6.455555555555556, 9.470833333333333, 5.3812500000000005, 4.535375816993463, 3.125, 4.498585299330614, 3.6278645833333343, 2.0171296296296295, 1.0016203703703705, 0.0), # 60 (12.443481838360098, 10.977231207133059, 10.0740768175583, 10.872616435185183, 8.997873771215849, 4.375, 4.520000387315419, 3.819827160493827, 4.730688024691357, 2.1444526886145407, 1.6364788751714678, 0.9348769090077733, 0.0, 12.15, 10.283645999085506, 8.182394375857339, 6.4333580658436205, 9.461376049382714, 5.347758024691358, 4.520000387315419, 3.125, 4.498936885607924, 3.624205478395062, 2.0148153635116604, 0.9979301097393691, 0.0), # 61 (12.445328335789204, 10.936982373113853, 10.062521947873801, 10.861566898148148, 8.998476930195388, 4.375, 4.504775429678044, 3.796719135802469, 4.72595049382716, 2.137173360768176, 1.6347631001371743, 0.9333362597165068, 0.0, 12.15, 10.266698856881574, 8.17381550068587, 6.411520082304527, 9.45190098765432, 5.315406790123457, 4.504775429678044, 3.125, 4.499238465097694, 3.620522299382717, 2.0125043895747603, 0.9942711248285323, 0.0), # 62 (12.44686946449555, 10.897149999999998, 10.051, 10.85045625, 8.998979928759484, 4.375, 4.4897294117647055, 3.7745, 4.721209999999999, 2.13003, 1.6330272727272728, 0.9318000000000001, 0.0, 12.15, 10.249799999999999, 8.165136363636364, 6.390089999999999, 9.442419999999998, 5.2843, 4.4897294117647055, 3.125, 4.499489964379742, 3.616818750000001, 2.0102, 0.99065, 0.0), # 63 (12.448104269486876, 10.857806515775033, 10.039527434842249, 10.839295601851852, 8.999382620067799, 4.375, 4.474890801258775, 3.7532438271604947, 4.716472469135802, 2.123038737997257, 1.6312725900985157, 0.9302703246456334, 0.0, 12.15, 10.232973571101967, 8.156362950492579, 6.369116213991769, 9.432944938271604, 5.254541358024692, 4.474890801258775, 3.125, 4.499691310033899, 3.613098533950618, 2.00790548696845, 0.9870733196159123, 0.0), # 64 (12.449031795770926, 10.819024348422495, 10.0281207133059, 10.828096064814813, 8.999684857279973, 4.375, 4.4602880658436215, 3.7330246913580245, 4.711743827160493, 2.1162157064471883, 1.6295002494076571, 0.9287494284407863, 0.0, 12.15, 10.216243712848648, 8.147501247038285, 6.348647119341564, 9.423487654320986, 5.226234567901234, 4.4602880658436215, 3.125, 4.499842428639987, 3.609365354938272, 2.0056241426611803, 0.9835476680384088, 0.0), # 65 (12.449651088355436, 10.780875925925926, 10.016796296296297, 10.81686875, 8.999886493555657, 4.375, 4.445949673202614, 3.7139166666666674, 4.70703, 2.1095770370370373, 1.6277114478114478, 0.9272395061728398, 0.0, 12.15, 10.199634567901235, 8.138557239057238, 6.328731111111111, 9.41406, 5.199483333333334, 4.445949673202614, 3.125, 4.499943246777828, 3.6056229166666673, 2.0033592592592595, 0.9800796296296298, 0.0), # 66 (12.44996119224815, 10.743433676268861, 10.005570644718793, 10.805624768518516, 8.999987382054503, 4.375, 4.431904091019123, 3.695993827160495, 4.702336913580247, 2.103138861454047, 1.625907382466642, 0.9257427526291724, 0.0, 12.15, 10.183170278920894, 8.12953691233321, 6.30941658436214, 9.404673827160494, 5.1743913580246925, 4.431904091019123, 3.125, 4.499993691027251, 3.6018749228395066, 2.0011141289437586, 0.9766757887517148, 0.0), # 67 (12.44974993737699, 10.706573503252354, 9.994405949931412, 10.794277566425121, 8.999902364237876, 4.37491880810852, 4.418109116897788, 3.6791719250114308, 4.6976351394604485, 2.0968861324941503, 1.624057197708075, 0.9242530021899743, 0.0, 12.149850180041152, 10.166783024089716, 8.120285988540376, 6.290658397482449, 9.395270278920897, 5.1508406950160035, 4.418109116897788, 3.1249420057918, 4.499951182118938, 3.598092522141708, 1.9988811899862826, 0.9733248639320324, 0.0), # 68 (12.447770048309177, 10.669170071684588, 9.982988425925925, 10.782255163043477, 8.999128540305009, 4.374276954732511, 4.404160908807968, 3.6625493827160494, 4.692719135802469, 2.090641917211329, 1.621972567783094, 0.9227218973359325, 0.0, 12.148663194444444, 10.149940870695255, 8.10986283891547, 6.271925751633985, 9.385438271604938, 5.127569135802469, 4.404160908807968, 3.1244835390946504, 4.499564270152504, 3.5940850543478264, 1.996597685185185, 0.9699245519713263, 0.0), # 69 (12.443862945070673, 10.63105170582769, 9.971268432784635, 10.769478411835749, 8.997599451303152, 4.373012879134278, 4.389996080736822, 3.645976223136717, 4.687561156835848, 2.0843758573388205, 1.619629777305216, 0.921142276129281, 0.0, 12.14631880144033, 10.13256503742209, 8.09814888652608, 6.25312757201646, 9.375122313671696, 5.104366712391404, 4.389996080736822, 3.123580627953056, 4.498799725651576, 3.5898261372785836, 1.9942536865569274, 0.9664592459843356, 0.0), # 70 (12.438083592771514, 10.592241185450682, 9.959250085733881, 10.755966153381644, 8.995334463003308, 4.371147065996037, 4.375620995723392, 3.629457933241884, 4.682168884316415, 2.078088107802792, 1.6170374741567726, 0.9195152937212715, 0.0, 12.142847865226338, 10.114668230933985, 8.085187370783862, 6.234264323408375, 9.36433776863283, 5.081241106538638, 4.375620995723392, 3.1222479042828835, 4.497667231501654, 3.5853220511272155, 1.9918500171467763, 0.962931016859153, 0.0), # 71 (12.430486956521738, 10.552761290322579, 9.946937499999999, 10.74173722826087, 8.99235294117647, 4.3687000000000005, 4.3610420168067225, 3.6129999999999995, 4.67655, 2.071778823529412, 1.614204306220096, 0.917842105263158, 0.0, 12.13828125, 10.096263157894736, 8.07102153110048, 6.215336470588234, 9.3531, 5.058199999999999, 4.3610420168067225, 3.1205000000000003, 4.496176470588235, 3.5805790760869574, 1.9893874999999999, 0.959341935483871, 0.0), # 72 (12.421128001431383, 10.512634800212398, 9.934334790809327, 10.72681047705314, 8.98867425159364, 4.36569216582838, 4.346265507025855, 3.5966079103795154, 4.670712185642433, 2.0654481594448484, 1.6111389213775176, 0.916123865906192, 0.0, 12.132649819958848, 10.07736252496811, 8.055694606887588, 6.196344478334543, 9.341424371284866, 5.035251074531322, 4.346265507025855, 3.118351547020271, 4.49433712579682, 3.5756034923510476, 1.9868669581618656, 0.9556940727465817, 0.0), # 73 (12.410061692610485, 10.471884494889155, 9.921446073388202, 10.711204740338164, 8.984317760025819, 4.3621440481633895, 4.331297829419833, 3.5802871513488794, 4.664663122999542, 2.0590962704752687, 1.607849967511371, 0.9143617308016269, 0.0, 12.125984439300412, 10.057979038817894, 8.039249837556856, 6.177288811425805, 9.329326245999084, 5.012402011888431, 4.331297829419833, 3.115817177259564, 4.4921588800129095, 3.5704015801127222, 1.9842892146776405, 0.9519894995353778, 0.0), # 74 (12.397342995169081, 10.430533154121862, 9.908275462962962, 10.694938858695652, 8.97930283224401, 4.358076131687243, 4.3161453470277, 3.5640432098765435, 4.6584104938271595, 2.052723311546841, 1.604346092503987, 0.9125568551007147, 0.0, 12.118315972222222, 10.038125406107861, 8.021730462519935, 6.158169934640522, 9.316820987654319, 4.989660493827161, 4.3161453470277, 3.112911522633745, 4.489651416122005, 3.5649796195652184, 1.9816550925925924, 0.9482302867383512, 0.0), # 75 (12.383026874217212, 10.388603557679545, 9.894827074759945, 10.678031672705314, 8.973648834019203, 4.353508901082153, 4.300814422888497, 3.5478815729309554, 4.651961979881115, 2.046329437585734, 1.6006359442376985, 0.9107103939547083, 0.0, 12.10967528292181, 10.01781433350179, 8.003179721188491, 6.138988312757201, 9.30392395976223, 4.967034202103338, 4.300814422888497, 3.1096492150586803, 4.486824417009601, 3.5593438909017725, 1.978965414951989, 0.9444185052435952, 0.0), # 76 (12.367168294864912, 10.34611848533121, 9.881105024005485, 10.660502022946858, 8.967375131122406, 4.34846284103033, 4.285311420041268, 3.531807727480567, 4.645325262917238, 2.0399148035181156, 1.5967281705948373, 0.9088235025148608, 0.0, 12.10009323559671, 9.997058527663466, 7.983640852974187, 6.119744410554345, 9.290650525834476, 4.944530818472794, 4.285311420041268, 3.106044886450236, 4.483687565561203, 3.5535006743156203, 1.9762210048010973, 0.9405562259392011, 0.0), # 77 (12.349822222222222, 10.30310071684588, 9.867113425925925, 10.64236875, 8.960501089324618, 4.3429584362139915, 4.269642701525055, 3.5158271604938274, 4.638508024691357, 2.0334795642701526, 1.5926314194577353, 0.9068973359324239, 0.0, 12.089600694444444, 9.975870695256662, 7.963157097288676, 6.100438692810457, 9.277016049382715, 4.922158024691359, 4.269642701525055, 3.1021131687242796, 4.480250544662309, 3.5474562500000006, 1.9734226851851853, 0.9366455197132618, 0.0), # 78 (12.331043621399177, 10.259573031992566, 9.8528563957476, 10.623650694444443, 8.953046074396838, 4.337016171315348, 4.2538146303789, 3.4999453589391867, 4.631517946959304, 2.0270238747680143, 1.5883543387087244, 0.9049330493586505, 0.0, 12.07822852366255, 9.954263542945155, 7.941771693543622, 6.081071624304041, 9.263035893918609, 4.899923502514861, 4.2538146303789, 3.097868693796677, 4.476523037198419, 3.5412168981481487, 1.97057127914952, 0.9326884574538697, 0.0), # 79 (12.310887457505816, 10.215558210540289, 9.838338048696844, 10.604366696859904, 8.945029452110063, 4.330656531016613, 4.2378335696418485, 3.4841678097850943, 4.624362711476909, 2.0205478899378684, 1.5839055762301377, 0.9029317979447936, 0.0, 12.066007587448558, 9.932249777392729, 7.919527881150689, 6.061643669813604, 9.248725422953818, 4.877834933699132, 4.2378335696418485, 3.093326093583295, 4.4725147260550315, 3.5347888989533023, 1.967667609739369, 0.9286871100491174, 0.0), # 80 (12.289408695652174, 10.171079032258064, 9.8235625, 10.584535597826088, 8.936470588235293, 4.3239, 4.221705882352941, 3.4685000000000006, 4.617049999999999, 2.014051764705883, 1.5792937799043065, 0.9008947368421053, 0.0, 12.052968749999998, 9.909842105263158, 7.8964688995215315, 6.042155294117647, 9.234099999999998, 4.855900000000001, 4.221705882352941, 3.0885, 4.468235294117647, 3.5281785326086967, 1.9647125, 0.9246435483870968, 0.0), # 81 (12.26666230094829, 10.126158276914907, 9.808533864883403, 10.564176237922705, 8.927388848543531, 4.316767062947722, 4.205437931551222, 3.4529474165523544, 4.6095874942844075, 2.007535653998225, 1.5745275976135626, 0.8988230212018388, 0.0, 12.039142875514404, 9.887053233220225, 7.8726379880678135, 6.022606961994674, 9.219174988568815, 4.834126383173296, 4.205437931551222, 3.0834050449626584, 4.4636944242717655, 3.521392079307569, 1.9617067729766806, 0.9205598433559008, 0.0), # 82 (12.242703238504205, 10.080818724279835, 9.793256258573388, 10.543307457729467, 8.917803598805776, 4.30927820454199, 4.189036080275732, 3.4375155464106077, 4.6019828760859625, 2.0009997127410637, 1.569615677240239, 0.8967178061752463, 0.0, 12.0245608281893, 9.863895867927708, 7.848078386201194, 6.00299913822319, 9.203965752171925, 4.812521764974851, 4.189036080275732, 3.078055860387136, 4.458901799402888, 3.5144358192431566, 1.9586512517146777, 0.9164380658436215, 0.0), # 83 (12.21758647342995, 10.035083154121864, 9.777733796296296, 10.521948097826087, 8.907734204793028, 4.301453909465021, 4.1725066915655145, 3.4222098765432096, 4.5942438271604935, 1.994444095860567, 1.5645666666666667, 0.8945802469135803, 0.0, 12.009253472222222, 9.840382716049382, 7.8228333333333335, 5.9833322875817, 9.188487654320987, 4.791093827160494, 4.1725066915655145, 3.0724670781893004, 4.453867102396514, 3.5073160326086965, 1.9555467592592592, 0.9122802867383514, 0.0), # 84 (12.191366970835569, 9.988974346210009, 9.761970593278463, 10.500116998792272, 8.897200032276285, 4.293314662399025, 4.1558561284596145, 3.4070358939186103, 4.58637802926383, 1.9878689582829019, 1.5593892137751788, 0.8924114985680938, 0.0, 11.9932516718107, 9.81652648424903, 7.796946068875894, 5.963606874848704, 9.17275605852766, 4.769850251486054, 4.1558561284596145, 3.0666533302850176, 4.448600016138142, 3.500038999597425, 1.9523941186556926, 0.9080885769281828, 0.0), # 85 (12.164099695831096, 9.942515080313289, 9.745970764746229, 10.477833001207731, 8.886220447026545, 4.284880948026216, 4.139090753997072, 3.391999085505258, 4.578393164151806, 1.9812744549342376, 1.5540919664481068, 0.8902127162900394, 0.0, 11.976586291152262, 9.792339879190433, 7.770459832240534, 5.943823364802712, 9.156786328303612, 4.748798719707362, 4.139090753997072, 3.0606292485901543, 4.443110223513273, 3.4926110004025777, 1.9491941529492458, 0.9038650073012082, 0.0), # 86 (12.135839613526569, 9.895728136200717, 9.729738425925925, 10.455114945652172, 8.874814814814815, 4.276173251028807, 4.122216931216931, 3.3771049382716045, 4.570296913580247, 1.9746607407407408, 1.5486835725677832, 0.8879850552306694, 0.0, 11.959288194444444, 9.76783560753736, 7.743417862838915, 5.923982222222222, 9.140593827160494, 4.727946913580246, 4.122216931216931, 3.054409465020576, 4.437407407407408, 3.4850383152173916, 1.9459476851851853, 0.8996116487455198, 0.0), # 87 (12.106641689032028, 9.84863629364131, 9.713277692043896, 10.431981672705316, 8.863002501412087, 4.2672120560890106, 4.105241023158234, 3.3623589391860995, 4.562096959304984, 1.9680279706285808, 1.5431726800165397, 0.8857296705412365, 0.0, 11.941388245884776, 9.743026375953601, 7.715863400082698, 5.904083911885741, 9.124193918609969, 4.707302514860539, 4.105241023158234, 3.0480086114921505, 4.431501250706043, 3.477327224235106, 1.9426555384087794, 0.8953305721492102, 0.0), # 88 (12.076560887457505, 9.801262332404088, 9.696592678326475, 10.40845202294686, 8.850802872589364, 4.258017847889041, 4.088169392860024, 3.3477665752171926, 4.553800983081847, 1.9613762995239252, 1.537567936676709, 0.8834477173729935, 0.0, 11.922917309670781, 9.717924891102928, 7.687839683383544, 5.884128898571774, 9.107601966163694, 4.68687320530407, 4.088169392860024, 3.041441319920744, 4.425401436294682, 3.469484007648954, 1.9393185356652953, 0.8910238484003719, 0.0), # 89 (12.045652173913043, 9.753629032258065, 9.6796875, 10.384544836956522, 8.838235294117647, 4.248611111111111, 4.071008403361344, 3.333333333333333, 4.545416666666667, 1.9547058823529415, 1.5318779904306221, 0.881140350877193, 0.0, 11.90390625, 9.692543859649122, 7.65938995215311, 5.864117647058823, 9.090833333333334, 4.666666666666666, 4.071008403361344, 3.0347222222222223, 4.419117647058823, 3.461514945652175, 1.9359375, 0.8866935483870969, 0.0), # 90 (12.013970513508676, 9.705759172972254, 9.662566272290809, 10.360278955314012, 8.825319131767932, 4.239012330437433, 4.053764417701236, 3.319064700502972, 4.536951691815272, 1.948016874041798, 1.526111489160612, 0.8788087262050875, 0.0, 11.884385931069957, 9.66689598825596, 7.630557445803059, 5.844050622125392, 9.073903383630544, 4.646690580704161, 4.053764417701236, 3.027865950312452, 4.412659565883966, 3.4534263184380047, 1.9325132544581618, 0.8823417429974777, 0.0), # 91 (11.981570871354446, 9.657675534315677, 9.64523311042524, 10.335673218599032, 8.812073751311223, 4.2292419905502205, 4.036443798918745, 3.304966163694559, 4.528413740283494, 1.941309429516663, 1.5202770807490107, 0.8764539985079298, 0.0, 11.864387217078187, 9.640993983587226, 7.601385403745053, 5.823928288549988, 9.056827480566987, 4.626952629172383, 4.036443798918745, 3.0208871361073006, 4.406036875655611, 3.4452244061996784, 1.9290466220850482, 0.8779705031196072, 0.0), # 92 (11.948508212560386, 9.609400896057348, 9.62769212962963, 10.310746467391306, 8.798518518518518, 4.219320576131687, 4.01905291005291, 3.2910432098765434, 4.51981049382716, 1.9345837037037037, 1.5143834130781502, 0.8740773229369722, 0.0, 11.84394097222222, 9.614850552306692, 7.57191706539075, 5.80375111111111, 9.03962098765432, 4.607460493827161, 4.01905291005291, 3.0138004115226336, 4.399259259259259, 3.436915489130436, 1.925538425925926, 0.8735818996415772, 0.0), # 93 (11.914837502236535, 9.56095803796628, 9.609947445130317, 10.285517542270531, 8.784672799160816, 4.209268571864045, 4.0015981141427766, 3.277301326017376, 4.511149634202103, 1.9278398515290893, 1.5084391340303622, 0.8716798546434675, 0.0, 11.823078060699588, 9.588478401078142, 7.54219567015181, 5.783519554587267, 9.022299268404206, 4.588221856424326, 4.0015981141427766, 3.0066204084743178, 4.392336399580408, 3.4285058474235113, 1.9219894890260634, 0.8691780034514802, 0.0), # 94 (11.880613705492932, 9.512369739811495, 9.592003172153635, 10.260005283816424, 8.770555959009117, 4.199106462429508, 3.984085774227386, 3.2637459990855056, 4.5024388431641515, 1.9210780279189867, 1.5024528914879791, 0.869262748778668, 0.0, 11.801829346707818, 9.561890236565347, 7.512264457439896, 5.763234083756959, 9.004877686328303, 4.569244398719708, 3.984085774227386, 2.9993617588782198, 4.385277979504559, 3.4200017612721423, 1.9184006344307272, 0.8647608854374088, 0.0), # 95 (11.845891787439614, 9.463658781362009, 9.573863425925927, 10.234228532608697, 8.756187363834421, 4.188854732510288, 3.966522253345782, 3.250382716049383, 4.493685802469135, 1.9142983877995645, 1.4964333333333335, 0.8668271604938274, 0.0, 11.780225694444445, 9.5350987654321, 7.482166666666667, 5.742895163398693, 8.98737160493827, 4.5505358024691365, 3.966522253345782, 2.9920390946502056, 4.3780936819172105, 3.411409510869566, 1.9147726851851854, 0.8603326164874555, 0.0), # 96 (11.810726713186616, 9.414847942386832, 9.555532321673525, 10.208206129227051, 8.74158637940773, 4.178533866788599, 3.948913914537008, 3.237216963877458, 4.484898193872885, 1.9075010860969905, 1.4903891074487565, 0.864374244940197, 0.0, 11.758297968106996, 9.508116694342165, 7.451945537243782, 5.7225032582909705, 8.96979638774577, 4.532103749428441, 3.948913914537008, 2.984667047706142, 4.370793189703865, 3.402735376409018, 1.911106464334705, 0.8558952674897121, 0.0), # 97 (11.775173447843981, 9.365960002654985, 9.53701397462277, 10.181956914251208, 8.72677237150004, 4.168164349946655, 3.931267120840105, 3.22425422953818, 4.476083699131229, 1.9006862777374327, 1.484328861716581, 0.8619051572690299, 0.0, 11.736077031893004, 9.480956729959328, 7.421644308582906, 5.702058833212297, 8.952167398262459, 4.513955921353452, 3.931267120840105, 2.9772602499618963, 4.36338618575002, 3.3939856380837368, 1.9074027949245542, 0.8514509093322715, 0.0), # 98 (11.739286956521738, 9.317017741935484, 9.5183125, 10.15549972826087, 8.711764705882352, 4.157766666666667, 3.913588235294118, 3.2115, 4.46725, 1.893854117647059, 1.4782612440191387, 0.859421052631579, 0.0, 11.71359375, 9.453631578947368, 7.391306220095694, 5.681562352941175, 8.9345, 4.4961, 3.913588235294118, 2.9698333333333333, 4.355882352941176, 3.385166576086957, 1.9036625000000003, 0.8470016129032258, 0.0), # 99 (11.703122204329933, 9.268043939997343, 9.49943201303155, 10.128853411835749, 8.696582748325667, 4.147361301630848, 3.895883620938087, 3.1989597622313672, 4.458404778235025, 1.8870047607520377, 1.4721949022387621, 0.8569230861790968, 0.0, 11.690878986625515, 9.426153947970063, 7.36097451119381, 5.661014282256112, 8.91680955647005, 4.4785436671239145, 3.895883620938087, 2.9624009297363205, 4.348291374162834, 3.376284470611917, 1.89988640260631, 0.8425494490906678, 0.0), # 100 (11.6667341563786, 9.219061376609584, 9.480376628943759, 10.102036805555556, 8.681245864600983, 4.136968739521414, 3.878159640811057, 3.1866390032007312, 4.449555715592135, 1.8801383619785366, 1.4661384842577825, 0.8544124130628354, 0.0, 11.667963605967076, 9.398536543691188, 7.330692421288911, 5.640415085935608, 8.89911143118427, 4.461294604481024, 3.878159640811057, 2.9549776710867244, 4.340622932300492, 3.367345601851853, 1.8960753257887522, 0.8380964887826896, 0.0), # 101 (11.630177777777778, 9.170092831541218, 9.461150462962962, 10.07506875, 8.665773420479303, 4.126609465020577, 3.8604226579520695, 3.174543209876543, 4.44071049382716, 1.8732550762527238, 1.4601006379585326, 0.8518901884340482, 0.0, 11.644878472222222, 9.37079207277453, 7.300503189792663, 5.61976522875817, 8.88142098765432, 4.44436049382716, 3.8604226579520695, 2.947578189300412, 4.332886710239651, 3.358356250000001, 1.8922300925925928, 0.8336448028673837, 0.0), # 102 (11.593508033637502, 9.121161084561264, 9.4417576303155, 10.047968085748792, 8.650184781731623, 4.116303962810547, 3.842679035400168, 3.162677869227252, 4.43187679469593, 1.8663550585007669, 1.4540900112233446, 0.8493575674439874, 0.0, 11.621654449588474, 9.342933241883859, 7.270450056116723, 5.599065175502299, 8.86375358939186, 4.427749016918153, 3.842679035400168, 2.940217116293248, 4.325092390865811, 3.3493226952495982, 1.8883515260631, 0.8291964622328422, 0.0), # 103 (11.556779889067812, 9.072288915438735, 9.422202246227709, 10.020753653381641, 8.634499314128943, 4.10607271757354, 3.8249351361943953, 3.151048468221308, 4.423062299954275, 1.8594384636488344, 1.44811525193455, 0.8468157052439055, 0.0, 11.598322402263374, 9.314972757682959, 7.24057625967275, 5.578315390946502, 8.84612459990855, 4.411467855509831, 3.8249351361943953, 2.9329090839811003, 4.317249657064472, 3.3402512177938815, 1.884440449245542, 0.8247535377671579, 0.0), # 104 (11.520048309178742, 9.023499103942651, 9.402488425925926, 9.99344429347826, 8.618736383442265, 4.09593621399177, 3.8071973233737944, 3.1396604938271606, 4.414274691358024, 1.8525054466230941, 1.4421850079744816, 0.8442657569850553, 0.0, 11.574913194444443, 9.286923326835607, 7.210925039872408, 5.557516339869281, 8.828549382716048, 4.395524691358025, 3.8071973233737944, 2.9256687242798356, 4.309368191721132, 3.331148097826088, 1.8804976851851853, 0.8203181003584229, 0.0), # 105 (11.483368259080336, 8.974814429842029, 9.382620284636488, 9.966058846618358, 8.602915355442589, 4.0859149367474465, 3.7894719599774067, 3.12851943301326, 4.405521650663008, 1.8455561623497139, 1.436307927225471, 0.8417088778186895, 0.0, 11.551457690329217, 9.258797656005584, 7.181539636127354, 5.53666848704914, 8.811043301326016, 4.379927206218564, 3.7894719599774067, 2.918510669105319, 4.301457677721294, 3.3220196155394537, 1.8765240569272976, 0.81589222089473, 0.0), # 106 (11.446794703882626, 8.926257672905882, 9.362601937585735, 9.938616153381641, 8.58705559590091, 4.076029370522787, 3.7717654090442765, 3.117630772748057, 4.396810859625057, 1.838590765754862, 1.4304926575698504, 0.8391462228960604, 0.0, 11.527986754115226, 9.230608451856664, 7.152463287849251, 5.515772297264585, 8.793621719250114, 4.36468308184728, 3.7717654090442765, 2.911449550373419, 4.293527797950455, 3.312872051127215, 1.8725203875171472, 0.8114779702641711, 0.0), # 107 (11.410382608695652, 8.877851612903227, 9.3424375, 9.911135054347826, 8.571176470588235, 4.0663, 3.7540840336134447, 3.107, 4.3881499999999996, 1.8316094117647064, 1.4247478468899522, 0.8365789473684213, 0.0, 11.504531250000001, 9.202368421052633, 7.12373923444976, 5.494828235294118, 8.776299999999999, 4.3498, 3.7540840336134447, 2.9045, 4.285588235294117, 3.3037116847826096, 1.8684875000000005, 0.8070774193548388, 0.0), # 108 (11.374186938629451, 8.82961902960308, 9.322131087105625, 9.883634390096615, 8.555297345275559, 4.056747309861302, 3.7364341967239567, 3.0966326017375403, 4.379546753543667, 1.8246122553054145, 1.4190821430681082, 0.8340082063870239, 0.0, 11.48112204218107, 9.174090270257262, 7.09541071534054, 5.473836765916242, 8.759093507087334, 4.335285642432557, 3.7364341967239567, 2.8976766499009297, 4.277648672637779, 3.294544796698873, 1.864426217421125, 0.8026926390548256, 0.0), # 109 (11.338262658794058, 8.78158270277446, 9.301686814128946, 9.85613300120773, 8.539437585733882, 4.047391784788904, 3.7188222614148536, 3.0865340649291264, 4.371008802011888, 1.8175994513031553, 1.4135041939866502, 0.8314351551031215, 0.0, 11.457789994855966, 9.145786706134334, 7.067520969933251, 5.452798353909465, 8.742017604023776, 4.321147690900777, 3.7188222614148536, 2.8909941319920742, 4.269718792866941, 3.2853776670692443, 1.8603373628257893, 0.7983257002522237, 0.0), # 110 (11.302664734299517, 8.733765412186381, 9.281108796296298, 9.82864972826087, 8.523616557734204, 4.038253909465022, 3.7012545907251786, 3.0767098765432097, 4.3625438271604935, 1.8105711546840961, 1.4080226475279107, 0.8288609486679663, 0.0, 11.434565972222222, 9.117470435347629, 7.040113237639553, 5.431713464052287, 8.725087654320987, 4.307393827160493, 3.7012545907251786, 2.8844670781893007, 4.261808278867102, 3.2762165760869575, 1.8562217592592598, 0.7939786738351257, 0.0), # 111 (11.26744813025586, 8.686189937607857, 9.26040114883402, 9.801203411835749, 8.507853627047526, 4.029354168571865, 3.6837375476939744, 3.0671655235482396, 4.354159510745312, 1.803527520374405, 1.402646151574222, 0.8262867422328111, 0.0, 11.411480838477365, 9.08915416456092, 7.013230757871109, 5.4105825611232135, 8.708319021490624, 4.294031732967535, 3.6837375476939744, 2.8781101204084747, 4.253926813523763, 3.2670678039452503, 1.8520802297668042, 0.7896536306916234, 0.0), # 112 (11.232605068443652, 8.638958480664547, 9.239617828252069, 9.773850494242836, 8.492140544138962, 4.02070883845016, 3.6663155781940615, 3.057926284390303, 4.3458851245034475, 1.7964914209838192, 1.3973847812305735, 0.8237192936504428, 0.0, 11.388532681011865, 9.06091223015487, 6.9869239061528665, 5.389474262951456, 8.691770249006895, 4.281096798146424, 3.6663155781940615, 2.8719348846072568, 4.246070272069481, 3.257950164747613, 1.8479235656504138, 0.7853598618785952, 0.0), # 113 (11.197777077480078, 8.592536901878088, 9.219045675021619, 9.746810479149604, 8.47631468365306, 4.012298225970931, 3.649210925046347, 3.04910562975256, 4.337847614285224, 1.7895945503738353, 1.3922488674226394, 0.8211912172112975, 0.0, 11.365530496992042, 9.033103389324271, 6.961244337113197, 5.368783651121505, 8.675695228570447, 4.268747881653584, 3.649210925046347, 2.8659273042649507, 4.23815734182653, 3.248936826383202, 1.8438091350043238, 0.7811397183525536, 0.0), # 114 (11.162861883604794, 8.546941918551349, 9.198696932707318, 9.7200760546636, 8.46032614231088, 4.004100458749136, 3.6324357901149367, 3.0407013271393546, 4.330049991467515, 1.7828475983964234, 1.3872309022854188, 0.8187037582558852, 0.0, 11.342407957992451, 9.005741340814735, 6.936154511427093, 5.348542795189269, 8.66009998293503, 4.256981857995097, 3.6324357901149367, 2.8600717562493823, 4.23016307115544, 3.2400253515545345, 1.8397393865414637, 0.7769947198683046, 0.0), # 115 (11.127815847885161, 8.502107109420871, 9.178532189983873, 9.693599535239764, 8.444150821107023, 3.9960962141009686, 3.6159628905167356, 3.0326901564494966, 4.322472535691132, 1.7762380075348645, 1.3823211862542963, 0.8162523197487347, 0.0, 11.319128711707068, 8.97877551723608, 6.911605931271482, 5.328714022604592, 8.644945071382264, 4.245766219029295, 3.6159628905167356, 2.854354438643549, 4.222075410553511, 3.231199845079922, 1.835706437996775, 0.7729188281291702, 0.0), # 116 (11.092595331388527, 8.457966053223192, 9.158512035525986, 9.66733323533302, 8.427764621036088, 3.988266169342624, 3.5997649433686516, 3.0250488975817924, 4.315095526596881, 1.769753220272439, 1.3775100197646568, 0.8138323046543751, 0.0, 11.295656405829869, 8.952155351198124, 6.887550098823283, 5.309259660817316, 8.630191053193762, 4.23506845661451, 3.5997649433686516, 2.8487615495304452, 4.213882310518044, 3.222444411777674, 1.8317024071051975, 0.768906004838472, 0.0), # 117 (11.057156695182252, 8.414452328694855, 9.138597058008367, 9.6412294693983, 8.411143443092673, 3.980591001790297, 3.583814665787589, 3.0177543304350483, 4.307899243825574, 1.7633806790924282, 1.3727877032518847, 0.811439115937335, 0.0, 11.271954688054828, 8.925830275310684, 6.863938516259424, 5.290142037277283, 8.615798487651148, 4.224856062609067, 3.583814665787589, 2.843279286993069, 4.205571721546336, 3.213743156466101, 1.8277194116016737, 0.7649502116995325, 0.0), # 118 (11.02145630033369, 8.3714995145724, 9.118747846105723, 9.615240551890535, 8.394263188271376, 3.973051388760183, 3.5680847748904534, 3.0107832349080725, 4.300863967018017, 1.757107826478112, 1.3681445371513656, 0.8090681565621435, 0.0, 11.247987206075917, 8.899749722183577, 6.840722685756828, 5.271323479434335, 8.601727934036035, 4.215096528871301, 3.5680847748904534, 2.8378938491144163, 4.197131594135688, 3.2050801839635126, 1.8237495692211447, 0.761045410415673, 0.0), # 119 (10.985450507910194, 8.329041189592374, 9.098924988492762, 9.589318797264655, 8.377099757566796, 3.965628007568476, 3.5525479877941515, 3.0041123908996714, 4.293969975815023, 1.7509221049127721, 1.3635708218984832, 0.8067148294933297, 0.0, 11.223717607587115, 8.873863124426626, 6.817854109492416, 5.252766314738315, 8.587939951630046, 4.20575734725954, 3.5525479877941515, 2.8325914339774827, 4.188549878783398, 3.1964395990882193, 1.8197849976985525, 0.7571855626902159, 0.0), # 120 (10.949095678979122, 8.287010932491311, 9.079089073844187, 9.56341651997559, 8.359629051973535, 3.9583015355313718, 3.5371770216155882, 2.9977185783086533, 4.2871975498573995, 1.7448109568796892, 1.3590568579286233, 0.8043745376954222, 0.0, 11.199109540282393, 8.848119914649644, 6.795284289643115, 5.234432870639067, 8.574395099714799, 4.196806009632114, 3.5371770216155882, 2.8273582396652652, 4.179814525986767, 3.1878055066585307, 1.8158178147688375, 0.753364630226483, 0.0), # 121 (10.912348174607825, 8.245342322005756, 9.059200690834711, 9.537486034478269, 8.341826972486187, 3.951052649965064, 3.5219445934716704, 2.9915785770338243, 4.2805269687859555, 1.7387618248621435, 1.3545929456771704, 0.8020426841329501, 0.0, 11.174126651855724, 8.82246952546245, 6.772964728385852, 5.216285474586429, 8.561053937571911, 4.1882100078473545, 3.5219445934716704, 2.8221804642607595, 4.170913486243093, 3.1791620114927572, 1.8118401381669422, 0.7495765747277962, 0.0), # 122 (10.875164355863662, 8.20396893687225, 9.039220428139036, 9.511479655227625, 8.323669420099352, 3.9438620281857477, 3.506823420479303, 2.9856691669739917, 4.273938512241501, 1.7327621513434166, 1.3501693855795087, 0.7997146717704421, 0.0, 11.148732590001085, 8.796861389474863, 6.750846927897544, 5.1982864540302485, 8.547877024483002, 4.1799368337635885, 3.506823420479303, 2.8170443058469625, 4.161834710049676, 3.170493218409209, 1.8078440856278073, 0.7458153578974774, 0.0), # 123 (10.837500583813984, 8.162824355827334, 9.01910887443187, 9.485349696678588, 8.30513229580763, 3.9367103475096172, 3.4917862197553915, 2.979967128027963, 4.267412459864846, 1.7267993788067886, 1.345776478071024, 0.7973859035724276, 0.0, 11.122891002412453, 8.771244939296702, 6.728882390355119, 5.180398136420364, 8.534824919729692, 4.171953979239149, 3.4917862197553915, 2.8119359625068694, 4.152566147903815, 3.1617832322261967, 1.803821774886374, 0.7420749414388487, 0.0), # 124 (10.79931321952615, 8.121842157607551, 8.998826618387923, 9.459048473286083, 8.286191500605618, 3.9295782852528696, 3.4768057084168436, 2.9744492400945455, 4.260929091296797, 1.7208609497355405, 1.3414045235871004, 0.7950517825034348, 0.0, 11.096565536783794, 8.745569607537782, 6.707022617935502, 5.16258284920662, 8.521858182593594, 4.164228936132364, 3.4768057084168436, 2.806841632323478, 4.143095750302809, 3.153016157762029, 1.799765323677585, 0.7383492870552321, 0.0), # 125 (10.760558624067514, 8.080955920949442, 8.978334248681898, 9.432528299505048, 8.266822935487914, 3.9224465187316975, 3.461854603580562, 2.969092283072546, 4.254468686178167, 1.7149343066129532, 1.3370438225631227, 0.7927077115279934, 0.0, 11.069719840809094, 8.719784826807926, 6.685219112815614, 5.144802919838858, 8.508937372356334, 4.156729196301565, 3.461854603580562, 2.801747513379784, 4.133411467743957, 3.144176099835017, 1.79566684973638, 0.7346323564499494, 0.0), # 126 (10.721193158505432, 8.040099224589545, 8.957592353988504, 9.405741489790408, 8.247002501449117, 3.915295725262296, 3.4469056223634564, 2.9638730368607726, 4.248011524149763, 1.7090068919223076, 1.3326846754344757, 0.7903490936106315, 0.0, 11.042317562182317, 8.693840029716947, 6.6634233771723785, 5.127020675766921, 8.496023048299525, 4.149422251605082, 3.4469056223634564, 2.7966398037587825, 4.1235012507245585, 3.1352471632634704, 1.7915184707977012, 0.7309181113263225, 0.0), # 127 (10.681173183907255, 7.999205647264407, 8.93656152298245, 9.3786403585971, 8.226706099483831, 3.908106582160861, 3.431931481882429, 2.958768281358031, 4.241537884852393, 1.703066148146884, 1.328317382636545, 0.7879713317158789, 0.0, 11.014322348597444, 8.667684648874667, 6.641586913182724, 5.109198444440651, 8.483075769704786, 4.1422755939012434, 3.431931481882429, 2.791504701543472, 4.1133530497419155, 3.1262134528657004, 1.7873123045964903, 0.7272005133876734, 0.0), # 128 (10.640455061340337, 7.958208767710564, 8.91520234433844, 9.351177220380043, 8.205909630586648, 3.9008597667435865, 3.4169048992543876, 2.95375479646313, 4.235028047926869, 1.697099517769964, 1.3239322446047141, 0.7855698288082636, 0.0, 10.985697847748446, 8.641268116890899, 6.619661223023571, 5.0912985533098905, 8.470056095853739, 4.135256715048382, 3.4169048992543876, 2.7863284048168473, 4.102954815293324, 3.117059073460015, 1.783040468867688, 0.7234735243373241, 0.0), # 129 (10.598995151872039, 7.917042164664562, 8.893475406731179, 9.323304389594178, 8.18458899575217, 3.893535956326666, 3.4017985915962377, 2.948809362074875, 4.228462293014, 1.6910944432748274, 1.3195195617743691, 0.7831399878523152, 0.0, 10.956407707329298, 8.614539866375466, 6.5975978088718445, 5.073283329824481, 8.456924586028, 4.128333106904826, 3.4017985915962377, 2.781097111661904, 4.092294497876085, 3.1077681298647266, 1.7786950813462359, 0.7197311058785967, 0.0), # 130 (10.556749816569713, 7.8756394168629384, 8.87134129883538, 9.294974180694428, 8.162720095974995, 3.886115828226296, 3.3865852760248853, 2.943908758092075, 4.221820899754594, 1.685038367144756, 1.3150696345808937, 0.7806772118125626, 0.0, 10.926415575033973, 8.587449329938186, 6.575348172904468, 5.055115101434266, 8.443641799509187, 4.121472261328905, 3.3865852760248853, 2.77579702016164, 4.081360047987498, 3.0983247268981433, 1.7742682597670765, 0.7159672197148127, 0.0), # 131 (10.51367541650071, 7.833934103042237, 8.848760609325746, 9.266138908135728, 8.140278832249722, 3.878580059758672, 3.3712376696572353, 2.9390297644135366, 4.215084147789462, 1.6789187318630299, 1.310572763459673, 0.7781769036535342, 0.0, 10.89568509855645, 8.559945940188875, 6.552863817298364, 5.0367561955890885, 8.430168295578923, 4.114641670178951, 3.3712376696572353, 2.770414328399051, 4.070139416124861, 3.088712969378577, 1.7697521218651495, 0.7121758275492944, 0.0), # 132 (10.469728312732395, 7.791859801938998, 8.825693926876983, 9.236750886373006, 8.117241105570947, 3.870909328239987, 3.3557284896101933, 2.934149160938066, 4.2082323167594105, 1.67272297991293, 1.306019248846092, 0.7756344663397593, 0.0, 10.864179925590703, 8.531979129737351, 6.53009624423046, 5.018168939738788, 8.416464633518821, 4.107808825313293, 3.3557284896101933, 2.764935234457133, 4.058620552785474, 3.078916962124336, 1.765138785375397, 0.7083508910853636, 0.0), # 133 (10.424864866332113, 7.749350092289764, 8.802101840163804, 9.206762429861191, 8.093582816933273, 3.863084310986436, 3.3400304530006673, 2.929243727564472, 4.201245686305251, 1.6664385537777375, 1.3013993911755357, 0.7730453028357667, 0.0, 10.831863703830699, 8.503498331193432, 6.506996955877678, 4.9993156613332115, 8.402491372610502, 4.100941218590261, 3.3400304530006673, 2.7593459364188826, 4.046791408466636, 3.0689208099537315, 1.7604203680327608, 0.7044863720263422, 0.0), # 134 (10.379041438367224, 7.706338552831077, 8.777944937860909, 9.17612585305522, 8.069279867331296, 3.8550856853142146, 3.3241162769455603, 2.92429024419156, 4.194104536067791, 1.6600528959407332, 1.2967034908833885, 0.7704048161060852, 0.0, 10.798700080970423, 8.474452977166937, 6.483517454416942, 4.980158687822199, 8.388209072135583, 4.094006341868184, 3.3241162769455603, 2.753632632367296, 4.034639933665648, 3.0587086176850744, 1.755588987572182, 0.7005762320755525, 0.0), # 135 (10.332214389905081, 7.6627587622994735, 8.753183808643008, 9.144793470410015, 8.044308157759612, 3.8468941285395175, 3.3079586785617807, 2.9192654907181383, 4.186789145687842, 1.653553448885197, 1.2919218484050357, 0.7677084091152441, 0.0, 10.764652704703844, 8.444792500267685, 6.459609242025177, 4.96066034665559, 8.373578291375685, 4.086971687005394, 3.3079586785617807, 2.7477815203853697, 4.022154078879806, 3.0482644901366727, 1.750636761728602, 0.6966144329363159, 0.0), # 136 (10.28434008201304, 7.618544299431501, 8.72777904118481, 9.112717596380511, 8.018643589212827, 3.838490317978539, 3.291530374966233, 2.9141462470430146, 4.179279794806213, 1.6469276550944107, 1.2870447641758613, 0.764951484827772, 0.0, 10.729685222724932, 8.41446633310549, 6.435223820879306, 4.940782965283231, 8.358559589612426, 4.079804745860221, 3.291530374966233, 2.741778798556099, 4.0093217946064135, 3.037572532126838, 1.7455558082369622, 0.6925949363119547, 0.0), # 137 (10.235374875758456, 7.573628742963698, 8.701691224161017, 9.079850545421637, 7.992262062685534, 3.8298549309474748, 3.2748040832758227, 2.908909293064995, 4.1715567630637125, 1.6401629570516543, 1.2820625386312503, 0.7621294462081979, 0.0, 10.693761282727667, 8.383423908290176, 6.410312693156252, 4.920488871154961, 8.343113526127425, 4.0724730102909925, 3.2748040832758227, 2.735610664962482, 3.996131031342767, 3.02661684847388, 1.7403382448322038, 0.6885117039057909, 0.0), # 138 (10.185275132208682, 7.527945671632606, 8.67488094624634, 9.046144631988323, 7.965139479172331, 3.8209686447625186, 3.2577525206074553, 2.903531408682887, 4.163600330101148, 1.6332467972402094, 1.276965472206588, 0.7592376962210506, 0.0, 10.656844532406023, 8.351614658431556, 6.38482736103294, 4.899740391720627, 8.327200660202296, 4.064943972156042, 3.2577525206074553, 2.729263317687513, 3.9825697395861654, 3.0153815439961082, 1.7349761892492683, 0.6843586974211461, 0.0), # 139 (10.133997212431076, 7.481428664174767, 8.647308796115487, 9.011552170535499, 7.937251739667823, 3.811812136739866, 3.240348404078038, 2.897989373795498, 4.155390775559333, 1.626166618143356, 1.2717438653372588, 0.7562716378308593, 0.0, 10.618898619453978, 8.31898801613945, 6.358719326686294, 4.878499854430067, 8.310781551118666, 4.0571851233136975, 3.240348404078038, 2.7227229548141896, 3.9686258698339114, 3.003850723511834, 1.7294617592230976, 0.6801298785613425, 0.0), # 140 (10.081497477492995, 7.4340112993267216, 8.61893536244316, 8.976025475518098, 7.908574745166602, 3.802366084195711, 3.222564450804477, 2.892259968301635, 4.146908379079072, 1.6189098622443758, 1.2663880184586478, 0.7532266740021526, 0.0, 10.579887191565495, 8.285493414023676, 6.331940092293238, 4.856729586733126, 8.293816758158144, 4.049163955622289, 3.222564450804477, 2.7159757744255075, 3.954287372583301, 2.9920084918393663, 1.7237870724886322, 0.675819209029702, 0.0), # 141 (10.027732288461786, 7.385627155825012, 8.58972123390407, 8.939516861391049, 7.879084396663268, 3.792611164446249, 3.2043733779036754, 2.8863199721001056, 4.138133420301177, 1.6114639720265487, 1.2608882320061394, 0.7500982076994595, 0.0, 10.539773896434559, 8.251080284694053, 6.304441160030697, 4.834391916079644, 8.276266840602354, 4.040847960940148, 3.2043733779036754, 2.7090079746044635, 3.939542198331634, 2.9798389537970165, 1.7179442467808141, 0.6714206505295467, 0.0), # 142 (9.972658006404808, 7.336209812406179, 8.559626999172925, 8.901978642609278, 7.848756595152423, 3.7825280548076745, 3.185747902492541, 2.880146165089716, 4.129046178866458, 1.6038163899731561, 1.2552348064151186, 0.746881641887309, 0.0, 10.49852238175514, 8.215698060760397, 6.276174032075593, 4.811449169919467, 8.258092357732917, 4.032204631125603, 3.185747902492541, 2.701805753434053, 3.9243782975762116, 2.967326214203093, 1.7119253998345851, 0.6669281647641981, 0.0), # 143 (9.916230992389421, 7.285692847806764, 8.528613246924428, 8.86336313362772, 7.817567241628662, 3.772097432596183, 3.1666607416879793, 2.8737153271692746, 4.119626934415724, 1.5959545585674784, 1.2494180421209704, 0.7435723795302299, 0.0, 10.456096295221217, 8.179296174832528, 6.247090210604851, 4.787863675702434, 8.239253868831447, 4.023201458036985, 3.1666607416879793, 2.6943553089972734, 3.908783620814331, 2.954454377875907, 1.7057226493848856, 0.6623357134369786, 0.0), # 144 (9.858407607482972, 7.234009840763308, 8.496640565833289, 8.823622648901305, 7.785492237086586, 3.7612999751279688, 3.147084612606896, 2.867004238237588, 4.109855966589781, 1.5878659202927967, 1.2434282395590792, 0.7401658235927514, 0.0, 10.41245928452676, 8.141824059520264, 6.217141197795395, 4.763597760878389, 8.219711933179562, 4.013805933532623, 3.147084612606896, 2.6866428393771202, 3.892746118543293, 2.9412075496337686, 1.699328113166658, 0.6576372582512099, 0.0), # 145 (9.79914421275282, 7.181094370012356, 8.463669544574216, 8.782709502884963, 7.752507482520793, 3.750116359719226, 3.126992232366198, 2.8599896781934633, 4.099713555029442, 1.5795379176323916, 1.2372556991648298, 0.7366573770394019, 0.0, 10.367574997365741, 8.103231147433421, 6.186278495824149, 4.738613752897173, 8.199427110058885, 4.0039855494708485, 3.126992232366198, 2.67865454265659, 3.8762537412603963, 2.927569834294988, 1.6927339089148434, 0.6528267609102142, 0.0), # 146 (9.73839716926632, 7.126880014290443, 8.42966077182191, 8.740576010033621, 7.71858887892588, 3.7385272636861506, 3.1063563180827884, 2.8526484269357075, 4.0891799793755155, 1.570957993069544, 1.2308907213736073, 0.7330424428347111, 0.0, 10.321407081432142, 8.06346687118182, 6.154453606868036, 4.712873979208631, 8.178359958751031, 3.9937077977099906, 3.1063563180827884, 2.670376616918679, 3.85929443946294, 2.9135253366778744, 1.6859321543643822, 0.6478981831173131, 0.0), # 147 (9.676122838090825, 7.071300352334116, 8.394574836251083, 8.697174484802217, 7.6837123272964485, 3.726513364344937, 3.085149586873576, 2.8449572643631287, 4.078235519268811, 1.5621135890875346, 1.2243236066207965, 0.729316423943207, 0.0, 10.27391918441993, 8.022480663375276, 6.1216180331039824, 4.686340767262602, 8.156471038537623, 3.9829401701083804, 3.085149586873576, 2.6617952602463837, 3.8418561636482242, 2.899058161600739, 1.6789149672502168, 0.6428454865758287, 0.0), # 148 (9.612277580293695, 7.014288962879912, 8.358372326536443, 8.652457241645672, 7.647853728627096, 3.71405533901178, 3.0633447558554643, 2.8368929703745334, 4.0668604543501345, 1.5529921481696445, 1.2175446553417821, 0.7254747233294191, 0.0, 10.225074954023084, 7.980221956623609, 6.08772327670891, 4.658976444508932, 8.133720908700269, 3.971650158524347, 3.0633447558554643, 2.6528966707226997, 3.823926864313548, 2.8841524138818913, 1.671674465307289, 0.637662632989083, 0.0), # 149 (9.546817756942277, 6.955779424664377, 8.321013831352694, 8.606376595018924, 7.610988983912421, 3.7011338650028747, 3.04091454214536, 2.828432324868728, 4.0550350642603, 1.5435811127991534, 1.2105441679719486, 0.7215127439578762, 0.0, 10.174838037935576, 7.936640183536638, 6.0527208398597425, 4.630743338397459, 8.1100701285206, 3.95980525481622, 3.04091454214536, 2.6436670464306244, 3.8054944919562104, 2.8687921983396416, 1.6642027662705388, 0.632343584060398, 0.0), # 150 (9.47969972910393, 6.895705316424048, 8.282459939374542, 8.558884859376896, 7.573093994147021, 3.6877296196344136, 3.01783166286017, 2.8195521077445216, 4.042739628640115, 1.5338679254593437, 1.203312444946681, 0.7174258887931072, 0.0, 10.123172083851381, 7.891684776724178, 6.016562224733405, 4.601603776378029, 8.08547925728023, 3.9473729508423303, 3.01783166286017, 2.6340925854531525, 3.7865469970735104, 2.8529616197922993, 1.6564919878749085, 0.6268823014930954, 0.0), # 151 (9.41087985784601, 6.83400021689547, 8.242671239276701, 8.509934349174525, 7.534144660325495, 3.6738232802225945, 2.9940688351167988, 2.8102290989007206, 4.029954427130388, 1.5238400286334952, 1.1958397867013644, 0.713209560799641, 0.0, 10.070040739464476, 7.84530516879605, 5.979198933506821, 4.5715200859004845, 8.059908854260776, 3.9343207384610093, 2.9940688351167988, 2.6241594858732817, 3.7670723301627476, 2.836644783058176, 1.6485342478553402, 0.6212727469904974, 0.0), # 152 (9.340314504235872, 6.770597704815181, 8.201608319733868, 8.459477378866739, 7.4941168834424445, 3.659395524083611, 2.9695987760321514, 2.800440078236131, 4.016659739371929, 1.513484864804889, 1.1881164936713833, 0.7088591629420063, 0.0, 10.015407652468832, 7.797450792362069, 5.940582468356916, 4.5404545944146655, 8.033319478743858, 3.9206161095305836, 2.9695987760321514, 2.6138539457740078, 3.7470584417212223, 2.81982579295558, 1.6403216639467737, 0.6155088822559257, 0.0), # 153 (9.267960029340873, 6.705431358919725, 8.159231769420758, 8.407466262908468, 7.4529865644924636, 3.644427028533658, 2.944394202723137, 2.7901618256495615, 4.002835845005546, 1.5027898764568062, 1.1801328662921224, 0.7043700981847325, 0.0, 9.959236470558428, 7.748071080032056, 5.900664331460612, 4.508369629370417, 8.005671690011091, 3.9062265559093863, 2.944394202723137, 2.603162163238327, 3.7264932822462318, 2.802488754302823, 1.631846353884152, 0.6095846689927024, 0.0), # 154 (9.193772794228362, 6.638434757945644, 8.115502177012075, 8.35385331575464, 7.4107296044701565, 3.62889847088893, 2.9184278323066564, 2.779371121039818, 3.988463023672051, 1.4917425060725265, 1.1718792049989668, 0.6997377694923482, 0.0, 9.901490841427231, 7.6971154644158295, 5.859396024994833, 4.4752275182175785, 7.976926047344102, 3.8911195694557454, 2.9184278323066564, 2.5920703363492357, 3.7053648022350782, 2.7846177719182137, 1.6231004354024152, 0.6034940689041496, 0.0), # 155 (9.117709159965697, 6.569541480629476, 8.070380131182526, 8.298590851860187, 7.367321904370117, 3.612790528465623, 2.8916723818996197, 2.7680447443057092, 3.9735215550122502, 1.480330196135332, 1.163345810227301, 0.6949575798293822, 0.0, 9.842134412769221, 7.644533378123204, 5.816729051136504, 4.440990588405995, 7.9470431100245005, 3.875262642027993, 2.8916723818996197, 2.5805646631897305, 3.6836609521850585, 2.766196950620063, 1.6140760262365055, 0.5972310436935888, 0.0), # 156 (9.039725487620235, 6.498685105707764, 8.023826220606818, 8.241631185680044, 7.322739365186948, 3.59608387857993, 2.864100568618931, 2.756159475346041, 3.957991718666955, 1.4685403891285025, 1.1545229824125098, 0.6900249321603636, 0.0, 9.781130832278372, 7.590274253763999, 5.772614912062549, 4.405621167385506, 7.91598343733391, 3.8586232654844577, 2.864100568618931, 2.568631341842807, 3.661369682593474, 2.7472103952266815, 1.6047652441213638, 0.5907895550643424, 0.0), # 157 (8.957617135686286, 6.424498432849483, 7.973591953902356, 8.180792623486118, 7.274944884696797, 3.5777171334219773, 2.8350640325567142, 2.742898476174686, 3.9406648366396384, 1.4560097748873433, 1.1451191505077887, 0.6847599564194339, 0.0, 9.715783031298415, 7.532359520613772, 5.7255957525389425, 4.368029324662029, 7.881329673279277, 3.840057866644561, 2.8350640325567142, 2.555512238158555, 3.6374724423483986, 2.7269308744953733, 1.5947183907804712, 0.5840453120772259, 0.0), # 158 (8.858744120374082, 6.3393718515594255, 7.906737818402987, 8.103579442909608, 7.212153047825302, 3.551582753604972, 2.8009276580314295, 2.7236067663821912, 3.9145709044888575, 1.4406842982296237, 1.133483387123799, 0.6781362523683109, 0.0, 9.630513176304232, 7.459498776051419, 5.667416935618994, 4.322052894688871, 7.829141808977715, 3.813049472935068, 2.8009276580314295, 2.5368448240035515, 3.606076523912651, 2.7011931476365363, 1.5813475636805976, 0.5763065319599479, 0.0), # 159 (8.741846513885172, 6.242606401394785, 7.821920957955889, 8.008719759367974, 7.133136105077435, 3.517038907233379, 2.7613462490302703, 2.6977995947636733, 3.8789700908914604, 1.4223616955588683, 1.119451901721908, 0.6700501948887847, 0.0, 9.523704730672296, 7.370552143776631, 5.59725950860954, 4.267085086676604, 7.757940181782921, 3.7769194326691427, 2.7613462490302703, 2.512170648023842, 3.5665680525387176, 2.669573253122658, 1.5643841915911778, 0.5675096728540715, 0.0), # 160 (8.607866465503152, 6.134832954888515, 7.7200469719103095, 7.897115253381055, 7.038714499425689, 3.4745040690992197, 2.716608867604126, 2.66580026655489, 3.8343319067996067, 1.4011974579512814, 1.1031483309199415, 0.6605767468907572, 0.0, 9.396448853782916, 7.266344215798328, 5.515741654599707, 4.203592373853843, 7.668663813599213, 3.7321203731768464, 2.716608867604126, 2.481788620785157, 3.5193572497128445, 2.632371751127019, 1.5440093943820619, 0.557712086808047, 0.0), # 161 (8.457746124511628, 6.016682384573562, 7.602021459615496, 7.769667605468694, 6.929708673842563, 3.424396713994519, 2.6670045758038854, 2.627932086991601, 3.781125863165454, 1.3773470764830695, 1.0846963113357242, 0.6497908712841294, 0.0, 9.2498367050164, 7.147699584125422, 5.42348155667862, 4.132041229449208, 7.562251726330908, 3.6791049217882414, 2.6670045758038854, 2.4459976528532277, 3.4648543369212814, 2.5898892018228983, 1.5204042919230993, 0.5469711258703239, 0.0), # 162 (8.292427640194196, 5.888785562982875, 7.468750020420702, 7.6272784961507405, 6.806939071300549, 3.367135316711301, 2.61282243568044, 2.5845183613095624, 3.719821470941162, 1.3509660422304377, 1.0642194795870819, 0.6377675309788032, 0.0, 9.084959443753055, 7.015442840766835, 5.321097397935408, 4.052898126691312, 7.439642941882324, 3.6183257058333878, 2.61282243568044, 2.405096654793786, 3.4034695356502747, 2.5424261653835805, 1.4937500040841403, 0.5353441420893524, 0.0), # 163 (8.11285316183446, 5.751773362649402, 7.321138253675176, 7.470849605947036, 6.67122613477215, 3.3031383520415907, 2.5543515092846794, 2.5358823947445344, 3.650888241078889, 1.3222098462695906, 1.0418414722918394, 0.6245816888846804, 0.0, 8.902908229373192, 6.870398577731482, 5.209207361459196, 3.966629538808771, 7.301776482157778, 3.550235352642348, 2.5543515092846794, 2.3593845371725646, 3.335613067386075, 2.4902832019823458, 1.4642276507350354, 0.5228884875135821, 0.0), # 164 (7.9199648387160195, 5.606276656106095, 7.160091758728169, 7.301282615377426, 6.5233903072298585, 3.2328242947774104, 2.491880858667493, 2.482347492532273, 3.5747956845307916, 1.2912339796767343, 1.0176859260678224, 0.610308307911662, 0.0, 8.704774221257123, 6.713391387028281, 5.088429630339111, 3.873701939030202, 7.149591369061583, 3.4752864895451823, 2.491880858667493, 2.309160210555293, 3.2616951536149292, 2.433760871792476, 1.432018351745634, 0.5096615141914632, 0.0), # 165 (7.714704820122476, 5.452926315885899, 6.9865161349289275, 7.119479204961751, 6.364252031646171, 3.156611619710786, 2.4256995458797714, 2.4242369599085385, 3.492013312249029, 1.2581939335280738, 0.9918764775328559, 0.5950223509696502, 0.0, 8.491648578785155, 6.545245860666151, 4.959382387664279, 3.7745818005842207, 6.984026624498058, 3.393931743871954, 2.4256995458797714, 2.254722585507704, 3.1821260158230853, 2.373159734987251, 1.3973032269857855, 0.4957205741714455, 0.0), # 166 (7.498015255337426, 5.292353214521765, 6.801316981626705, 6.926341055219858, 6.194631750993583, 3.074918801633741, 2.3560966329724047, 2.361874102109088, 3.403010635185759, 1.2232451988998143, 0.9645367633047655, 0.5787987809685459, 0.0, 8.264622461337595, 6.366786590654004, 4.822683816523827, 3.669735596699442, 6.806021270371518, 3.3066237429527234, 2.3560966329724047, 2.196370572595529, 3.0973158754967915, 2.308780351739953, 1.360263396325341, 0.4811230195019787, 0.0), # 167 (7.2708382936444735, 5.125188224546641, 6.605399898170748, 6.722769846671591, 6.015349908244593, 2.9881643153382993, 2.2833611819962822, 2.2955822243696797, 3.308257164293142, 1.1865432668681617, 0.9357904200013762, 0.5617125608182512, 0.0, 8.024787028294753, 6.178838169000762, 4.678952100006881, 3.559629800604484, 6.616514328586284, 3.2138151141175517, 2.2833611819962822, 2.1344030823844995, 3.0076749541222965, 2.2409232822238643, 1.3210799796341497, 0.46592620223151293, 0.0), # 168 (7.034116084327218, 4.952062218493477, 6.399670483910309, 6.509667259836794, 5.827226946371695, 2.8967666356164865, 2.2077822550022947, 2.2256846319260726, 3.2082224105233346, 1.1482436285093212, 0.9057610842405137, 0.5438386534286673, 0.0, 7.773233439036942, 5.982225187715339, 4.528805421202568, 3.444730885527963, 6.416444821046669, 3.1159584846965016, 2.2077822550022947, 2.0691190254403473, 2.9136134731858476, 2.1698890866122653, 1.2799340967820618, 0.450187474408498, 0.0), # 169 (6.78879077666926, 4.773606068895221, 6.185034338194635, 6.2879349752353075, 5.631083308347386, 2.8011442372603246, 2.1296489140413315, 2.1525046300140236, 3.103375884828495, 1.1085017748994974, 0.8745723926400033, 0.525252021709696, 0.0, 7.5110528529444665, 5.777772238806654, 4.372861963200016, 3.325505324698492, 6.20675176965699, 3.013506482019633, 2.1296489140413315, 2.0008173123288033, 2.815541654173693, 2.0959783250784363, 1.2370068676389272, 0.4339641880813838, 0.0), # 170 (6.5358045199542, 4.59045064828482, 5.962397060372978, 6.058474673386982, 5.427739437144163, 2.701715595061839, 2.049250221164283, 2.0763655238692915, 2.994187098160782, 1.0674731971148967, 0.8423479818176697, 0.5060276285712387, 0.0, 7.239336429397638, 5.566303914283624, 4.211739909088348, 3.2024195913446896, 5.988374196321564, 2.906911733417008, 2.049250221164283, 1.9297968536155994, 2.7138697185720817, 2.019491557795661, 1.1924794120745956, 0.4173136952986201, 0.0), # 171 (6.276099463465638, 4.403226829195226, 5.7326642497945866, 5.822188034811656, 5.218015775734522, 2.5988991838130535, 1.9668752384220392, 1.9975906187276353, 2.881125561472354, 1.025313386231724, 0.8092114883913387, 0.4862404369231972, 0.0, 6.959175327776763, 5.348644806155168, 4.046057441956694, 3.075940158695172, 5.762251122944708, 2.7966268662186895, 1.9668752384220392, 1.8563565598664666, 2.609007887867261, 1.9407293449372194, 1.1465328499589174, 0.40029334810865697, 0.0), # 172 (6.010617756487176, 4.212565484159386, 5.4967415058087115, 5.579976740029178, 5.002732767090961, 2.4931134783059927, 1.8828130278654898, 1.916503219824812, 2.7646607857153684, 0.9821778333261846, 0.7752865489788355, 0.4659654096754725, 0.0, 6.671660707462155, 5.125619506430197, 3.8764327448941778, 2.9465334999785533, 5.529321571430737, 2.6831045077547366, 1.8828130278654898, 1.7807953416471376, 2.5013663835454807, 1.859992246676393, 1.0993483011617424, 0.38296049855994424, 0.0), # 173 (5.740301548302412, 4.019097485710249, 5.2555344277646014, 5.332742469559387, 4.782710854185972, 2.3847769533326795, 1.7973526515455251, 1.8334266323965802, 2.645262281841985, 0.9382220294744842, 0.7406968001979856, 0.44527750973796687, 0.0, 6.37788372783412, 4.898052607117634, 3.7034840009899272, 2.814666088423452, 5.29052456368397, 2.5667972853552126, 1.7973526515455251, 1.7034121095233423, 2.391355427092986, 1.7775808231864625, 1.0511068855529204, 0.3653724987009318, 0.0), # 174 (5.466092988194946, 3.823453706380764, 5.009948615011508, 5.08138690392213, 4.558770479992055, 2.2743080836851397, 1.7107831715130346, 1.748684161678698, 2.5233995608043616, 0.8936014657528275, 0.7055658786666139, 0.4242517000205815, 0.0, 6.078935548272969, 4.666768700226395, 3.5278293933330693, 2.680804397258482, 5.046799121608723, 2.4481578263501773, 1.7107831715130346, 1.6245057740608142, 2.2793852399960275, 1.6937956346407106, 1.0019897230023018, 0.3475867005800695, 0.0), # 175 (5.188934225448382, 3.62626501870388, 4.760889666898678, 4.8268117236372525, 4.331732087481704, 2.1621253441553967, 1.6233936498189088, 1.6625991129069244, 2.3995421335546565, 0.8484716332374204, 0.670017421002546, 0.4029629434332179, 0.0, 5.7759073281590085, 4.432592377765396, 3.35008710501273, 2.5454148997122603, 4.799084267109313, 2.327638758069694, 1.6233936498189088, 1.5443752458252833, 2.165866043740852, 1.6089372412124179, 0.9521779333797357, 0.3296604562458073, 0.0), # 176 (4.909767409346319, 3.4281622952125463, 4.5092631827753635, 4.569918609224595, 4.102416119627418, 2.0486472095354746, 1.5354731485140374, 1.5754947913170163, 2.2741595110450277, 0.8029880230044676, 0.6341750638236071, 0.3814862028857779, 0.0, 5.4698902268725496, 4.196348231743556, 3.1708753191180357, 2.408964069013402, 4.548319022090055, 2.2056927078438227, 1.5354731485140374, 1.4633194353824817, 2.051208059813709, 1.5233062030748654, 0.9018526365550728, 0.31165111774659515, 0.0), # 177 (4.629534689172356, 3.2297764084397107, 4.255974761990814, 4.311609241204004, 3.8716430194016906, 1.9342921546173981, 1.4473107296493104, 1.4876945021447328, 2.147721204227634, 0.7573061261301752, 0.5981624437476226, 0.3598964412881627, 0.0, 5.161975403793902, 3.958860854169789, 2.9908122187381125, 2.271918378390525, 4.295442408455268, 2.082772303002626, 1.4473107296493104, 1.3816372532981414, 1.9358215097008453, 1.437203080401335, 0.8511949523981628, 0.29361603713088286, 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 36, # 1 )
275.557219
493
0.76897
32,987
257,646
6.00573
0.222421
0.359798
0.345261
0.654179
0.375739
0.367743
0.365896
0.365462
0.36529
0.36529
0
0.849385
0.096
257,646
934
494
275.852248
0.001198
0.015568
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
e01b4bbd0b0edc56204ba515a21dce32239c192e
77
py
Python
shopify/resources/report.py
butlertron/shopify_python_api
78329d0656a7dcd4aad9579b28509007d05ee5dc
[ "MIT" ]
828
2015-01-08T16:03:55.000Z
2022-03-25T16:58:37.000Z
shopify/resources/report.py
whitehorse3513/PythonShopify
245b9bad3779db9190e3786bffc07044afe216c6
[ "MIT" ]
389
2015-02-01T03:33:49.000Z
2022-03-23T08:42:33.000Z
shopify/resources/report.py
whitehorse3513/PythonShopify
245b9bad3779db9190e3786bffc07044afe216c6
[ "MIT" ]
267
2015-01-20T21:40:19.000Z
2022-03-29T04:09:56.000Z
from ..base import ShopifyResource class Report(ShopifyResource): pass
12.833333
34
0.766234
8
77
7.375
0.875
0
0
0
0
0
0
0
0
0
0
0
0.168831
77
5
35
15.4
0.921875
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
e063bf766fe9209f30c06c687dc3fc062bf0a8f1
4,891
py
Python
preprocess_helpers/preprocess_train_tumor_test_lungs.py
srikeerthi207/DALS-Domain-Adaptation
dda688bd73aad1ba45ecd77a81460b098faf0a0e
[ "MIT" ]
1
2021-12-25T09:12:13.000Z
2021-12-25T09:12:13.000Z
preprocess_helpers/preprocess_train_tumor_test_lungs.py
TanmayH/DALS-Domain-Adaptation
502010ab64bafbc0774ed7e9ff009f39a1220a51
[ "MIT" ]
null
null
null
preprocess_helpers/preprocess_train_tumor_test_lungs.py
TanmayH/DALS-Domain-Adaptation
502010ab64bafbc0774ed7e9ff009f39a1220a51
[ "MIT" ]
1
2021-12-25T09:11:35.000Z
2021-12-25T09:11:35.000Z
from PIL import Image import numpy as np import os import re import cv2 import shutil import random def get_all_images_in_folder(train_folder,test_folder): images = [] dataCounter = 1 random.seed(1) #Train - Tumour for directory in sorted(os.listdir(train_folder)): print (directory) if "TCGA" in directory: for filename in sorted(os.listdir(os.path.join(train_folder,directory))): if not("mask" in filename): imgInput = cv2.imread(os.path.join(train_folder,directory,filename)) imgMask = cv2.imread(os.path.join(train_folder,directory,filename[:-4]+"_mask.tif")) if imgInput is not None and imgMask is not None: imgInput = cv2.resize(imgInput, (64, 64), interpolation = cv2.INTER_AREA) suffixInput = "input" imgMask = cv2.resize(imgMask, (64, 64), interpolation = cv2.INTER_AREA) ret,imgMask = cv2.threshold(imgMask,70,1,cv2.THRESH_BINARY) suffixMask = "label" print(imgInput.shape, filename, imgInput.max()) print(imgMask.shape, filename+"_mask", imgMask.max()) nonZeroCount = np.count_nonzero(imgMask)/np.size(imgMask) if (nonZeroCount < 0.03): #removing images that dont have tumour continue imgMask = imgMask[:, :, 0] images.append([str(dataCounter) + "_" + suffixInput,imgInput,str(dataCounter) + "_" + suffixMask,imgMask]) dataCounter += 1 totalImages = len(images) print (totalImages) random.shuffle(images) for i in range(0,int(0.7 * totalImages)): np.save("../dataset/Train/" + images[i][0], images[i][1]) np.save("../dataset/Train/" + images[i][2], images[i][3]) for i in range(int(0.7 * totalImages),int(0.85 * totalImages)): np.save("../dataset/Valid/" + images[i][0], images[i][1]) np.save("../dataset/Valid/" + images[i][2], images[i][3]) images = [] dataCounter = 1 #Test - Chest XRAY for directory in sorted(os.listdir(test_folder)): print (directory) if "images" in directory: for filename in sorted(os.listdir(os.path.join(test_folder,directory))): if not("mask" in filename): imgInput = cv2.imread(os.path.join(test_folder,directory,filename)) imgMask = cv2.imread(os.path.join(test_folder,"masks",filename[:-4]+"_mask.png")) if imgInput is not None and imgMask is not None: imgInput = cv2.resize(imgInput, (64, 64), interpolation = cv2.INTER_AREA) suffixInput = "input" imgMask = cv2.resize(imgMask, (64, 64), interpolation = cv2.INTER_AREA) ret,imgMask = cv2.threshold(imgMask,70,1,cv2.THRESH_BINARY) suffixMask = "label" print(imgInput.shape, filename, imgInput.max()) print(imgMask.shape, filename+"_mask", imgMask.max()) nonZeroCount = np.count_nonzero(imgMask)/np.size(imgMask) if (nonZeroCount < 0.03): #removing images that dont have lung continue imgMask = imgMask[:, :, 0] images.append([str(dataCounter) + "_" + suffixInput,imgInput,str(dataCounter) + "_" + suffixMask,imgMask]) dataCounter += 1 totalImages = len(images) print (totalImages) random.shuffle(images) for i in range(int(0.85 * totalImages),int(totalImages)): np.save("../dataset/Test/" + images[i][0], images[i][1]) np.save("../dataset/Test/" + images[i][2], images[i][3]) for root, dirs, files in os.walk('../dataset/Train/'): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) for root, dirs, files in os.walk('../dataset/Test/'): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) for root, dirs, files in os.walk('../dataset/Valid/'): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) for root, dirs, files in os.walk('../network'): for f in files: os.unlink(os.path.join(root, f)) for d in dirs: shutil.rmtree(os.path.join(root, d)) get_all_images_in_folder("/home.ORIG/npochhi/kaggle_3m/","/home.ORIG/npochhi/Lung Segmentation/") ''' Replace the path in the above method call with path to Lgg_Mri_Segmentation/kaggle_3m/ folder, Lung_Segmentation/ folder '''
48.425743
130
0.569618
597
4,891
4.60134
0.19263
0.030579
0.050965
0.040772
0.808882
0.794321
0.733892
0.716054
0.704769
0.62541
0
0.023019
0.298303
4,891
101
131
48.425743
0.777389
0.021059
0
0.637363
0
0
0.064634
0.011166
0
0
0
0
0
1
0.010989
false
0
0.076923
0
0.087912
0.087912
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
e069383dca1711356b58a3816582086e90fc7cb5
29
py
Python
saleor/graphql/core/__init__.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/core/__init__.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/core/__init__.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from . import fields # noqa
14.5
28
0.689655
4
29
5
1
0
0
0
0
0
0
0
0
0
0
0
0.241379
29
1
29
29
0.909091
0.137931
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
e07606390246b0919998e02c79f9693a42a76f51
2,427
py
Python
cloudmersive_configuration_api_client/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
cloudmersive_configuration_api_client/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
cloudmersive_configuration_api_client/__init__.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa """ configapi Config API lets you easily manage configuration at scale. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import apis into sdk package from cloudmersive_configuration_api_client.api.orchestrator_api import OrchestratorApi from cloudmersive_configuration_api_client.api.settings_api import SettingsApi # import ApiClient from cloudmersive_configuration_api_client.api_client import ApiClient from cloudmersive_configuration_api_client.configuration import Configuration # import models into sdk package from cloudmersive_configuration_api_client.models.create_setting_request import CreateSettingRequest from cloudmersive_configuration_api_client.models.create_setting_response import CreateSettingResponse from cloudmersive_configuration_api_client.models.http_form_data_parameter import HttpFormDataParameter from cloudmersive_configuration_api_client.models.http_get_parameter import HttpGetParameter from cloudmersive_configuration_api_client.models.http_orchestration_header import HttpOrchestrationHeader from cloudmersive_configuration_api_client.models.http_orchestration_request import HttpOrchestrationRequest from cloudmersive_configuration_api_client.models.http_orchestration_response import HttpOrchestrationResponse from cloudmersive_configuration_api_client.models.http_orchestration_task import HttpOrchestrationTask from cloudmersive_configuration_api_client.models.http_raw_binary_parameter import HttpRawBinaryParameter from cloudmersive_configuration_api_client.models.http_raw_text_parameter import HttpRawTextParameter from cloudmersive_configuration_api_client.models.http_www_form_url_encoded_parameter import HttpWwwFormUrlEncodedParameter from cloudmersive_configuration_api_client.models.list_settings_request import ListSettingsRequest from cloudmersive_configuration_api_client.models.list_settings_response import ListSettingsResponse from cloudmersive_configuration_api_client.models.setting_value import SettingValue from cloudmersive_configuration_api_client.models.task_output_reference import TaskOutputReference from cloudmersive_configuration_api_client.models.update_setting_request import UpdateSettingRequest from cloudmersive_configuration_api_client.models.update_setting_response import UpdateSettingResponse
56.44186
123
0.905645
277
2,427
7.537906
0.303249
0.094828
0.291667
0.321839
0.54454
0.54454
0.479885
0.360153
0
0
0
0.002648
0.066337
2,427
42
124
57.785714
0.9188
0.114957
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
0eba42417753f5b2aed753088837d5574008d6be
138
py
Python
exceptions.py
roi3363/music-pytheory
53cc3c4f0025acef75411ff85e1ce365912267be
[ "MIT" ]
2
2019-09-24T09:41:37.000Z
2020-07-26T20:21:05.000Z
exceptions.py
roi3363/music-pytheory
53cc3c4f0025acef75411ff85e1ce365912267be
[ "MIT" ]
null
null
null
exceptions.py
roi3363/music-pytheory
53cc3c4f0025acef75411ff85e1ce365912267be
[ "MIT" ]
null
null
null
class InvalidNoteException(Exception): pass class InvalidModeException(Exception): pass class InvalidChord(Exception): pass
15.333333
38
0.768116
12
138
8.833333
0.5
0.367925
0.339623
0
0
0
0
0
0
0
0
0
0.166667
138
8
39
17.25
0.921739
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
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
0ed3379bde2be1a71a87ba1adedb6d3f918331e6
96
py
Python
COVID-19 Disease Prediction/COVID-19 Predictor/model.py
alicansoyel/COVID-19_Disease_Prediction
cbcceb3823a45a35508c4c872bf9cee526c6eb26
[ "MIT" ]
null
null
null
COVID-19 Disease Prediction/COVID-19 Predictor/model.py
alicansoyel/COVID-19_Disease_Prediction
cbcceb3823a45a35508c4c872bf9cee526c6eb26
[ "MIT" ]
null
null
null
COVID-19 Disease Prediction/COVID-19 Predictor/model.py
alicansoyel/COVID-19_Disease_Prediction
cbcceb3823a45a35508c4c872bf9cee526c6eb26
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras from tensorflow.contrib import lite as lite
32
43
0.854167
15
96
5.466667
0.533333
0.341463
0
0
0
0
0
0
0
0
0
0
0.135417
96
3
43
32
0.987952
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
0edbed55d5e1492e3db8bf81b83d16c5b5c4917b
88
py
Python
smartlight_datastore/__init__.py
ande7590/rpi-smart-lights
599cefb1f3aa63d85b33ab3f8a379faba4eb178c
[ "MIT" ]
null
null
null
smartlight_datastore/__init__.py
ande7590/rpi-smart-lights
599cefb1f3aa63d85b33ab3f8a379faba4eb178c
[ "MIT" ]
null
null
null
smartlight_datastore/__init__.py
ande7590/rpi-smart-lights
599cefb1f3aa63d85b33ab3f8a379faba4eb178c
[ "MIT" ]
null
null
null
from event_repository import SmartLightEventRepository from event import SmartLightEvent
44
54
0.920455
9
88
8.888889
0.666667
0.225
0
0
0
0
0
0
0
0
0
0
0.079545
88
2
55
44
0.987654
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
0ee61ebe5c17bdb9553d5c4692c92bd3716fad0f
8,068
py
Python
tests/steps/test_cell.py
gperonato/frictionless-py
1674effe39ee0a473cfbc65e858e1c18a4fd96c0
[ "MIT" ]
null
null
null
tests/steps/test_cell.py
gperonato/frictionless-py
1674effe39ee0a473cfbc65e858e1c18a4fd96c0
[ "MIT" ]
null
null
null
tests/steps/test_cell.py
gperonato/frictionless-py
1674effe39ee0a473cfbc65e858e1c18a4fd96c0
[ "MIT" ]
null
null
null
from frictionless import Resource, transform, steps # Convert def test_step_cell_convert(): source = Resource(path="data/transform.csv") source.infer() source.schema.get_field("id").type = "string" source.schema.get_field("population").type = "string" target = transform( source, steps=[ steps.cell_convert(value="n/a"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": "n/a", "name": "n/a", "population": "n/a"}, {"id": "n/a", "name": "n/a", "population": "n/a"}, {"id": "n/a", "name": "n/a", "population": "n/a"}, ] def test_step_cell_convert_with_field_name(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_convert(value="n/a", field_name="name"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "n/a", "population": 83}, {"id": 2, "name": "n/a", "population": 66}, {"id": 3, "name": "n/a", "population": 47}, ] # Fill def test_step_cell_fill(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_replace(pattern="france", replace=None), steps.cell_fill(field_name="name", value="FRANCE"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "germany", "population": 83}, {"id": 2, "name": "FRANCE", "population": 66}, {"id": 3, "name": "spain", "population": 47}, ] def test_step_cell_fill_direction_down(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_replace(pattern="france", replace=None), steps.cell_fill(direction="down"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "germany", "population": 83}, {"id": 2, "name": "germany", "population": 66}, {"id": 3, "name": "spain", "population": 47}, ] def test_step_cell_fill_direction_right(): source = Resource(path="data/transform.csv") source.infer() source.schema.get_field("id").type = "string" source.schema.get_field("population").type = "string" target = transform( source, steps=[ steps.cell_replace(pattern="france", replace=None), steps.cell_fill(direction="right"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": "1", "name": "germany", "population": "83"}, {"id": "2", "name": "2", "population": "66"}, {"id": "3", "name": "spain", "population": "47"}, ] def test_step_cell_fill_direction_left(): source = Resource(path="data/transform.csv") source.infer() source.schema.get_field("id").type = "string" source.schema.get_field("population").type = "string" target = transform( source, steps=[ steps.cell_replace(pattern="france", replace=None), steps.cell_fill(direction="left"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": "1", "name": "germany", "population": "83"}, {"id": "2", "name": "66", "population": "66"}, {"id": "3", "name": "spain", "population": "47"}, ] # Format def test_step_cell_format(): source = Resource(path="data/transform.csv") source.infer() source.schema.get_field("id").type = "string" source.schema.get_field("population").type = "string" target = transform( source, steps=[ steps.cell_format(template="Prefix: {0}"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": "Prefix: 1", "name": "Prefix: germany", "population": "Prefix: 83"}, {"id": "Prefix: 2", "name": "Prefix: france", "population": "Prefix: 66"}, {"id": "Prefix: 3", "name": "Prefix: spain", "population": "Prefix: 47"}, ] def test_step_cell_format_with_name(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_format(template="Prefix: {0}", field_name="name"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "Prefix: germany", "population": 83}, {"id": 2, "name": "Prefix: france", "population": 66}, {"id": 3, "name": "Prefix: spain", "population": 47}, ] # Interpolate def test_step_cell_interpolate(): source = Resource(path="data/transform.csv") source.infer() source.schema.get_field("id").type = "string" source.schema.get_field("population").type = "string" target = transform( source, steps=[ steps.cell_interpolate(template="Prefix: %s"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": "Prefix: 1", "name": "Prefix: germany", "population": "Prefix: 83"}, {"id": "Prefix: 2", "name": "Prefix: france", "population": "Prefix: 66"}, {"id": "Prefix: 3", "name": "Prefix: spain", "population": "Prefix: 47"}, ] def test_step_cell_interpolate_with_name(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_interpolate(template="Prefix: %s", field_name="name"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "Prefix: germany", "population": 83}, {"id": 2, "name": "Prefix: france", "population": 66}, {"id": 3, "name": "Prefix: spain", "population": 47}, ] # Replace def test_step_cell_replace(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_replace(pattern="france", replace="FRANCE"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "germany", "population": 83}, {"id": 2, "name": "FRANCE", "population": 66}, {"id": 3, "name": "spain", "population": 47}, ] def test_step_cell_replace_with_field_name(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_replace(pattern="france", replace="FRANCE", field_name="id"), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "germany", "population": 83}, {"id": 2, "name": "france", "population": 66}, {"id": 3, "name": "spain", "population": 47}, ] def test_step_cell_replace_using_regex(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_replace( pattern="<regex>.*r.*", replace="center", field_name="name" ), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "center", "population": 83}, {"id": 2, "name": "center", "population": 66}, {"id": 3, "name": "spain", "population": 47}, ] # Set def test_step_cell_set(): source = Resource(path="data/transform.csv") source.infer() target = transform( source, steps=[ steps.cell_set(field_name="population", value=100), ], ) assert target.schema == source.schema assert target.read_rows() == [ {"id": 1, "name": "germany", "population": 100}, {"id": 2, "name": "france", "population": 100}, {"id": 3, "name": "spain", "population": 100}, ]
29.445255
84
0.555528
884
8,068
4.946833
0.069005
0.076835
0.035216
0.048022
0.939858
0.882461
0.882461
0.882461
0.865996
0.865996
0
0.021298
0.255082
8,068
273
85
29.553114
0.706323
0.00533
0
0.687225
0
0
0.209529
0
0
0
0
0
0.123348
1
0.061674
false
0
0.004405
0
0.066079
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
1616ff937d16addef8c565087e9d1060dc1644f2
34
py
Python
api/models/__init__.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
api/models/__init__.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
api/models/__init__.py
hbontempo-br/broker-api
992118bcb2754df34053a6dd56020d2e3002ce78
[ "MIT" ]
null
null
null
from .user_model import UserModel
17
33
0.852941
5
34
5.6
1
0
0
0
0
0
0
0
0
0
0
0
0.117647
34
1
34
34
0.933333
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
167096f95e7c2e073e2ba30be0381cc2c8ff3c9a
183,900
py
Python
msgraph-cli-extensions/beta/calendar_beta/azext_calendar_beta/vendored_sdks/calendar/models/_models.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/calendar_beta/azext_calendar_beta/vendored_sdks/calendar/models/_models.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/beta/calendar_beta/azext_calendar_beta/vendored_sdks/calendar/models/_models.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from azure.core.exceptions import HttpResponseError import msrest.serialization class CollectionOfAttachment(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment0(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment1(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment10(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment10, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment2(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment3(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment4(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment5(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment6(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment7(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment7, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment8(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment8, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfAttachment9(msrest.serialization.Model): """Collection of attachment. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphAttachment] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphAttachment]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfAttachment9, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendar(msrest.serialization.Model): """Collection of calendar. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendar] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendar]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendar, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendar0(msrest.serialization.Model): """Collection of calendar. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendar] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendar]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendar0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarGroup(msrest.serialization.Model): """Collection of calendarGroup. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarGroup] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarGroup]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarGroup, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission0(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission1(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission2(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission3(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission4(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission5(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfCalendarPermission6(msrest.serialization.Model): """Collection of calendarPermission. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphCalendarPermission] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphCalendarPermission]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfCalendarPermission6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent0(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent1(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent10(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent10, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent11(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent11, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent12(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent12, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent13(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent13, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent14(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent14, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent15(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent15, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent16(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent16, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent17(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent17, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent18(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent18, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent19(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent19, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent2(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent20(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent20, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent21(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent21, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent22(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent22, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent23(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent23, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent24(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent24, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent25(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent25, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent26(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent26, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent27(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent27, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent28(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent28, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent29(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent29, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent3(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent30(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent30, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent31(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent31, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent32(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent32, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent33(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent33, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent34(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent34, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent35(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent35, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent36(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent36, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent37(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent37, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent38(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent38, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent39(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent39, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent4(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent40(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent40, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent41(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent41, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent42(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent42, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent5(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent6(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent7(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent7, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent8(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent8, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfEvent9(msrest.serialization.Model): """Collection of event. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphEvent] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphEvent]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfEvent9, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension0(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension1(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension10(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension10, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension2(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension3(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension4(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension5(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension6(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension7(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension7, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension8(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension8, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfExtension9(msrest.serialization.Model): """Collection of extension. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphExtension] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphExtension]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfExtension9, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty0(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty1(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty10(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty10, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty11(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty11, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty12(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty12, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty13(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty13, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty14(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty14, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty15(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty15, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty16(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty16, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty17(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty17, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty18(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty18, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty2(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty3(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty4(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty5(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty6(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty7(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty7, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty8(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty8, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfMultiValueLegacyExtendedProperty9(msrest.serialization.Model): """Collection of multiValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfMultiValueLegacyExtendedProperty9, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfPlace(msrest.serialization.Model): """Collection of place. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphPlace] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphPlace]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfPlace, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty0(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty0, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty1(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty1, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty10(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty10, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty11(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty11, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty12(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty12, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty13(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty13, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty14(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty14, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty15(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty15, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty16(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty16, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty17(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty17, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty18(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty18, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty2(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty2, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty3(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty3, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty4(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty4, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty5(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty5, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty6(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty6, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty7(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty7, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty8(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty8, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class CollectionOfSingleValueLegacyExtendedProperty9(msrest.serialization.Model): """Collection of singleValueLegacyExtendedProperty. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: :type value: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] :param odata_next_link: :type odata_next_link: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, 'odata_next_link': {'key': '@odata\\.nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): super(CollectionOfSingleValueLegacyExtendedProperty9, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) self.odata_next_link = kwargs.get('odata_next_link', None) class MicrosoftGraphEntity(msrest.serialization.Model): """entity. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param id: Read-only. :type id: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphEntity, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.id = kwargs.get('id', None) class MicrosoftGraphAttachment(MicrosoftGraphEntity): """attachment. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param content_type: The MIME type. :type content_type: str :param is_inline: true if the attachment is an inline attachment; otherwise, false. :type is_inline: bool :param last_modified_date_time: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type last_modified_date_time: ~datetime.datetime :param name: The attachment's file name. :type name: str :param size: The length of the attachment in bytes. :type size: int """ _validation = { 'size': {'maximum': 2147483647, 'minimum': -2147483648}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'content_type': {'key': 'contentType', 'type': 'str'}, 'is_inline': {'key': 'isInline', 'type': 'bool'}, 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, 'name': {'key': 'name', 'type': 'str'}, 'size': {'key': 'size', 'type': 'int'}, } def __init__( self, **kwargs ): super(MicrosoftGraphAttachment, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.content_type = kwargs.get('content_type', None) self.is_inline = kwargs.get('is_inline', None) self.last_modified_date_time = kwargs.get('last_modified_date_time', None) self.name = kwargs.get('name', None) self.size = kwargs.get('size', None) class MicrosoftGraphRecipient(msrest.serialization.Model): """recipient. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param email_address: emailAddress. :type email_address: ~calendar.models.MicrosoftGraphEmailAddress """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'email_address': {'key': 'emailAddress', 'type': 'MicrosoftGraphEmailAddress'}, } def __init__( self, **kwargs ): super(MicrosoftGraphRecipient, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.email_address = kwargs.get('email_address', None) class MicrosoftGraphAttendeeBase(MicrosoftGraphRecipient): """attendeeBase. :param email_address: emailAddress. :type email_address: ~calendar.models.MicrosoftGraphEmailAddress :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param type: Possible values include: "required", "optional", "resource". :type type: str or ~calendar.models.MicrosoftGraphAttendeeType """ _attribute_map = { 'email_address': {'key': 'emailAddress', 'type': 'MicrosoftGraphEmailAddress'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphAttendeeBase, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.type = kwargs.get('type', None) class MicrosoftGraphAttendee(MicrosoftGraphAttendeeBase): """attendee. :param email_address: emailAddress. :type email_address: ~calendar.models.MicrosoftGraphEmailAddress :param type: Possible values include: "required", "optional", "resource". :type type: str or ~calendar.models.MicrosoftGraphAttendeeType :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param proposed_new_time: timeSlot. :type proposed_new_time: ~calendar.models.MicrosoftGraphTimeSlot :param status: responseStatus. :type status: ~calendar.models.MicrosoftGraphResponseStatus """ _attribute_map = { 'email_address': {'key': 'emailAddress', 'type': 'MicrosoftGraphEmailAddress'}, 'type': {'key': 'type', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'proposed_new_time': {'key': 'proposedNewTime', 'type': 'MicrosoftGraphTimeSlot'}, 'status': {'key': 'status', 'type': 'MicrosoftGraphResponseStatus'}, } def __init__( self, **kwargs ): super(MicrosoftGraphAttendee, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.proposed_new_time = kwargs.get('proposed_new_time', None) self.status = kwargs.get('status', None) class MicrosoftGraphCalendar(MicrosoftGraphEntity): """calendar. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param allowed_online_meeting_providers: Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. :type allowed_online_meeting_providers: list[str or ~calendar.models.MicrosoftGraphOnlineMeetingProviderType] :param calendar_group_id: :type calendar_group_id: str :param can_edit: True if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access. :type can_edit: bool :param can_share: True if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it. :type can_share: bool :param can_view_private_items: True if the user can read calendar items that have been marked private, false otherwise. :type can_view_private_items: bool :param change_key: Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. :type change_key: str :param color: Possible values include: "lightBlue", "lightGreen", "auto", "lightOrange", "lightGray", "lightYellow", "lightTeal", "lightPink", "lightBrown", "lightRed", "maxColor". :type color: str or ~calendar.models.MicrosoftGraphCalendarColor :param default_online_meeting_provider: Possible values include: "unknown", "skypeForBusiness", "skypeForConsumer", "teamsForBusiness". :type default_online_meeting_provider: str or ~calendar.models.MicrosoftGraphOnlineMeetingProviderType :param hex_color: :type hex_color: str :param is_default_calendar: :type is_default_calendar: bool :param is_removable: Indicates whether this user calendar can be deleted from the user mailbox. :type is_removable: bool :param is_shared: :type is_shared: bool :param is_shared_with_me: :type is_shared_with_me: bool :param is_tallying_responses: Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses. :type is_tallying_responses: bool :param name: The calendar name. :type name: str :param owner: emailAddress. :type owner: ~calendar.models.MicrosoftGraphEmailAddress :param calendar_permissions: The permissions of the users with whom the calendar is shared. :type calendar_permissions: list[~calendar.models.MicrosoftGraphCalendarPermission] :param calendar_view: The calendar view for the calendar. Navigation property. Read-only. :type calendar_view: list[~calendar.models.MicrosoftGraphEvent] :param events: The events in the calendar. Navigation property. Read-only. :type events: list[~calendar.models.MicrosoftGraphEvent] :param multi_value_extended_properties: The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. :type multi_value_extended_properties: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param single_value_extended_properties: The collection of single-value extended properties defined for the calendar. Read-only. Nullable. :type single_value_extended_properties: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'allowed_online_meeting_providers': {'key': 'allowedOnlineMeetingProviders', 'type': '[str]'}, 'calendar_group_id': {'key': 'calendarGroupId', 'type': 'str'}, 'can_edit': {'key': 'canEdit', 'type': 'bool'}, 'can_share': {'key': 'canShare', 'type': 'bool'}, 'can_view_private_items': {'key': 'canViewPrivateItems', 'type': 'bool'}, 'change_key': {'key': 'changeKey', 'type': 'str'}, 'color': {'key': 'color', 'type': 'str'}, 'default_online_meeting_provider': {'key': 'defaultOnlineMeetingProvider', 'type': 'str'}, 'hex_color': {'key': 'hexColor', 'type': 'str'}, 'is_default_calendar': {'key': 'isDefaultCalendar', 'type': 'bool'}, 'is_removable': {'key': 'isRemovable', 'type': 'bool'}, 'is_shared': {'key': 'isShared', 'type': 'bool'}, 'is_shared_with_me': {'key': 'isSharedWithMe', 'type': 'bool'}, 'is_tallying_responses': {'key': 'isTallyingResponses', 'type': 'bool'}, 'name': {'key': 'name', 'type': 'str'}, 'owner': {'key': 'owner', 'type': 'MicrosoftGraphEmailAddress'}, 'calendar_permissions': {'key': 'calendarPermissions', 'type': '[MicrosoftGraphCalendarPermission]'}, 'calendar_view': {'key': 'calendarView', 'type': '[MicrosoftGraphEvent]'}, 'events': {'key': 'events', 'type': '[MicrosoftGraphEvent]'}, 'multi_value_extended_properties': {'key': 'multiValueExtendedProperties', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'single_value_extended_properties': {'key': 'singleValueExtendedProperties', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, } def __init__( self, **kwargs ): super(MicrosoftGraphCalendar, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.allowed_online_meeting_providers = kwargs.get('allowed_online_meeting_providers', None) self.calendar_group_id = kwargs.get('calendar_group_id', None) self.can_edit = kwargs.get('can_edit', None) self.can_share = kwargs.get('can_share', None) self.can_view_private_items = kwargs.get('can_view_private_items', None) self.change_key = kwargs.get('change_key', None) self.color = kwargs.get('color', None) self.default_online_meeting_provider = kwargs.get('default_online_meeting_provider', None) self.hex_color = kwargs.get('hex_color', None) self.is_default_calendar = kwargs.get('is_default_calendar', None) self.is_removable = kwargs.get('is_removable', None) self.is_shared = kwargs.get('is_shared', None) self.is_shared_with_me = kwargs.get('is_shared_with_me', None) self.is_tallying_responses = kwargs.get('is_tallying_responses', None) self.name = kwargs.get('name', None) self.owner = kwargs.get('owner', None) self.calendar_permissions = kwargs.get('calendar_permissions', None) self.calendar_view = kwargs.get('calendar_view', None) self.events = kwargs.get('events', None) self.multi_value_extended_properties = kwargs.get('multi_value_extended_properties', None) self.single_value_extended_properties = kwargs.get('single_value_extended_properties', None) class MicrosoftGraphCalendarGroup(MicrosoftGraphEntity): """calendarGroup. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param change_key: Identifies the version of the calendar group. Every time the calendar group is changed, ChangeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. :type change_key: str :param class_id: The class identifier. Read-only. :type class_id: str :param name: The group name. :type name: str :param calendars: The calendars in the calendar group. Navigation property. Read-only. Nullable. :type calendars: list[~calendar.models.MicrosoftGraphCalendar] """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'change_key': {'key': 'changeKey', 'type': 'str'}, 'class_id': {'key': 'classId', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'calendars': {'key': 'calendars', 'type': '[MicrosoftGraphCalendar]'}, } def __init__( self, **kwargs ): super(MicrosoftGraphCalendarGroup, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.change_key = kwargs.get('change_key', None) self.class_id = kwargs.get('class_id', None) self.name = kwargs.get('name', None) self.calendars = kwargs.get('calendars', None) class MicrosoftGraphCalendarPermission(MicrosoftGraphEntity): """calendarPermission. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param allowed_roles: List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom. :type allowed_roles: list[str or ~calendar.models.MicrosoftGraphCalendarRoleType] :param email_address: emailAddress. :type email_address: ~calendar.models.MicrosoftGraphEmailAddress :param is_inside_organization: True if the user in context (sharee or delegate) is inside the same organization as the calendar owner. :type is_inside_organization: bool :param is_removable: True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar. :type is_removable: bool :param role: Possible values include: "none", "freeBusyRead", "limitedRead", "read", "write", "delegateWithoutPrivateEventAccess", "delegateWithPrivateEventAccess", "custom". :type role: str or ~calendar.models.MicrosoftGraphCalendarRoleType """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'allowed_roles': {'key': 'allowedRoles', 'type': '[str]'}, 'email_address': {'key': 'emailAddress', 'type': 'MicrosoftGraphEmailAddress'}, 'is_inside_organization': {'key': 'isInsideOrganization', 'type': 'bool'}, 'is_removable': {'key': 'isRemovable', 'type': 'bool'}, 'role': {'key': 'role', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphCalendarPermission, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.allowed_roles = kwargs.get('allowed_roles', None) self.email_address = kwargs.get('email_address', None) self.is_inside_organization = kwargs.get('is_inside_organization', None) self.is_removable = kwargs.get('is_removable', None) self.role = kwargs.get('role', None) class MicrosoftGraphDateTimeZone(msrest.serialization.Model): """dateTimeTimeZone. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param date_time: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000). :type date_time: str :param time_zone: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values. :type time_zone: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'date_time': {'key': 'dateTime', 'type': 'str'}, 'time_zone': {'key': 'timeZone', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphDateTimeZone, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.date_time = kwargs.get('date_time', None) self.time_zone = kwargs.get('time_zone', None) class MicrosoftGraphEmailAddress(msrest.serialization.Model): """emailAddress. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param address: The email address of the person or entity. :type address: str :param name: The display name of the person or entity. :type name: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'address': {'key': 'address', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphEmailAddress, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.address = kwargs.get('address', None) self.name = kwargs.get('name', None) class MicrosoftGraphOutlookItem(MicrosoftGraphEntity): """outlookItem. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param categories: The categories associated with the item. :type categories: list[str] :param change_key: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. :type change_key: str :param created_date_time: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type created_date_time: ~datetime.datetime :param last_modified_date_time: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type last_modified_date_time: ~datetime.datetime """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'categories': {'key': 'categories', 'type': '[str]'}, 'change_key': {'key': 'changeKey', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): super(MicrosoftGraphOutlookItem, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.categories = kwargs.get('categories', None) self.change_key = kwargs.get('change_key', None) self.created_date_time = kwargs.get('created_date_time', None) self.last_modified_date_time = kwargs.get('last_modified_date_time', None) class MicrosoftGraphEvent(MicrosoftGraphOutlookItem): """event. :param id: Read-only. :type id: str :param categories: The categories associated with the item. :type categories: list[str] :param change_key: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. :type change_key: str :param created_date_time: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type created_date_time: ~datetime.datetime :param last_modified_date_time: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type last_modified_date_time: ~datetime.datetime :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param allow_new_time_proposals: True if the meeting organizer allows invitees to propose a new time when responding, false otherwise. Optional. Default is true. :type allow_new_time_proposals: bool :param attendees: The collection of attendees for the event. :type attendees: list[~calendar.models.MicrosoftGraphAttendee] :param body: itemBody. :type body: ~calendar.models.MicrosoftGraphItemBody :param body_preview: The preview of the message associated with the event. It is in text format. :type body_preview: str :param cancelled_occurrences: :type cancelled_occurrences: list[str] :param end: dateTimeTimeZone. :type end: ~calendar.models.MicrosoftGraphDateTimeZone :param has_attachments: Set to true if the event has attachments. :type has_attachments: bool :param hide_attendees: :type hide_attendees: bool :param importance: Possible values include: "low", "normal", "high". :type importance: str or ~calendar.models.MicrosoftGraphImportance :param is_all_day: Set to true if the event lasts all day. :type is_all_day: bool :param is_cancelled: Set to true if the event has been canceled. :type is_cancelled: bool :param is_draft: :type is_draft: bool :param is_online_meeting: True if this event has online meeting information, false otherwise. Default is false. Optional. :type is_online_meeting: bool :param is_organizer: Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). This also applies if a delegate organized the event on behalf of the owner. :type is_organizer: bool :param is_reminder_on: Set to true if an alert is set to remind the user of the event. :type is_reminder_on: bool :param location: location. :type location: ~calendar.models.MicrosoftGraphLocation :param locations: The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value. :type locations: list[~calendar.models.MicrosoftGraphLocation] :param occurrence_id: :type occurrence_id: str :param online_meeting: onlineMeetingInfo. :type online_meeting: ~calendar.models.MicrosoftGraphOnlineMeetingInfo :param online_meeting_provider: Possible values include: "unknown", "skypeForBusiness", "skypeForConsumer", "teamsForBusiness". :type online_meeting_provider: str or ~calendar.models.MicrosoftGraphOnlineMeetingProviderType :param online_meeting_url: A URL for an online meeting. The property is set only when an organizer specifies an event as an online meeting such as a Skype meeting. Read-only. :type online_meeting_url: str :param organizer: recipient. :type organizer: ~calendar.models.MicrosoftGraphRecipient :param original_end_time_zone: The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. :type original_end_time_zone: str :param original_start: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type original_start: ~datetime.datetime :param original_start_time_zone: The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. :type original_start_time_zone: str :param recurrence: patternedRecurrence. :type recurrence: ~calendar.models.MicrosoftGraphPatternedRecurrence :param reminder_minutes_before_start: The number of minutes before the event start time that the reminder alert occurs. :type reminder_minutes_before_start: int :param response_requested: Default is true, which represents the organizer would like an invitee to send a response to the event. :type response_requested: bool :param response_status: responseStatus. :type response_status: ~calendar.models.MicrosoftGraphResponseStatus :param sensitivity: Possible values include: "normal", "personal", "private", "confidential". :type sensitivity: str or ~calendar.models.MicrosoftGraphSensitivity :param series_master_id: The ID for the recurring series master item, if this event is part of a recurring series. :type series_master_id: str :param show_as: Possible values include: "free", "tentative", "unknown", "busy", "oof", "workingElsewhere". :type show_as: str or ~calendar.models.MicrosoftGraphFreeBusyStatus :param start: dateTimeTimeZone. :type start: ~calendar.models.MicrosoftGraphDateTimeZone :param subject: The text of the event's subject line. :type subject: str :param transaction_id: A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. :type transaction_id: str :param type: Possible values include: "singleInstance", "occurrence", "exception", "seriesMaster". :type type: str or ~calendar.models.MicrosoftGraphEventType :param uid: :type uid: str :param web_link: The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can be accessed from within an iFrame. :type web_link: str :param attachments: The collection of fileAttachment and itemAttachment attachments for the event. Navigation property. Read-only. Nullable. :type attachments: list[~calendar.models.MicrosoftGraphAttachment] :param calendar: calendar. :type calendar: ~calendar.models.MicrosoftGraphCalendar :param exception_occurrences: :type exception_occurrences: list[~calendar.models.MicrosoftGraphEvent] :param extensions: The collection of open extensions defined for the event. Read-only. Nullable. :type extensions: list[~calendar.models.MicrosoftGraphExtension] :param instances: The instances of the event. Navigation property. Read-only. Nullable. :type instances: list[~calendar.models.MicrosoftGraphEvent] :param multi_value_extended_properties: The collection of multi-value extended properties defined for the event. Read-only. Nullable. :type multi_value_extended_properties: list[~calendar.models.MicrosoftGraphMultiValueLegacyExtendedProperty] :param single_value_extended_properties: The collection of single-value extended properties defined for the event. Read-only. Nullable. :type single_value_extended_properties: list[~calendar.models.MicrosoftGraphSingleValueLegacyExtendedProperty] """ _validation = { 'reminder_minutes_before_start': {'maximum': 2147483647, 'minimum': -2147483648}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'categories': {'key': 'categories', 'type': '[str]'}, 'change_key': {'key': 'changeKey', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'allow_new_time_proposals': {'key': 'allowNewTimeProposals', 'type': 'bool'}, 'attendees': {'key': 'attendees', 'type': '[MicrosoftGraphAttendee]'}, 'body': {'key': 'body', 'type': 'MicrosoftGraphItemBody'}, 'body_preview': {'key': 'bodyPreview', 'type': 'str'}, 'cancelled_occurrences': {'key': 'cancelledOccurrences', 'type': '[str]'}, 'end': {'key': 'end', 'type': 'MicrosoftGraphDateTimeZone'}, 'has_attachments': {'key': 'hasAttachments', 'type': 'bool'}, 'hide_attendees': {'key': 'hideAttendees', 'type': 'bool'}, 'importance': {'key': 'importance', 'type': 'str'}, 'is_all_day': {'key': 'isAllDay', 'type': 'bool'}, 'is_cancelled': {'key': 'isCancelled', 'type': 'bool'}, 'is_draft': {'key': 'isDraft', 'type': 'bool'}, 'is_online_meeting': {'key': 'isOnlineMeeting', 'type': 'bool'}, 'is_organizer': {'key': 'isOrganizer', 'type': 'bool'}, 'is_reminder_on': {'key': 'isReminderOn', 'type': 'bool'}, 'location': {'key': 'location', 'type': 'MicrosoftGraphLocation'}, 'locations': {'key': 'locations', 'type': '[MicrosoftGraphLocation]'}, 'occurrence_id': {'key': 'occurrenceId', 'type': 'str'}, 'online_meeting': {'key': 'onlineMeeting', 'type': 'MicrosoftGraphOnlineMeetingInfo'}, 'online_meeting_provider': {'key': 'onlineMeetingProvider', 'type': 'str'}, 'online_meeting_url': {'key': 'onlineMeetingUrl', 'type': 'str'}, 'organizer': {'key': 'organizer', 'type': 'MicrosoftGraphRecipient'}, 'original_end_time_zone': {'key': 'originalEndTimeZone', 'type': 'str'}, 'original_start': {'key': 'originalStart', 'type': 'iso-8601'}, 'original_start_time_zone': {'key': 'originalStartTimeZone', 'type': 'str'}, 'recurrence': {'key': 'recurrence', 'type': 'MicrosoftGraphPatternedRecurrence'}, 'reminder_minutes_before_start': {'key': 'reminderMinutesBeforeStart', 'type': 'int'}, 'response_requested': {'key': 'responseRequested', 'type': 'bool'}, 'response_status': {'key': 'responseStatus', 'type': 'MicrosoftGraphResponseStatus'}, 'sensitivity': {'key': 'sensitivity', 'type': 'str'}, 'series_master_id': {'key': 'seriesMasterId', 'type': 'str'}, 'show_as': {'key': 'showAs', 'type': 'str'}, 'start': {'key': 'start', 'type': 'MicrosoftGraphDateTimeZone'}, 'subject': {'key': 'subject', 'type': 'str'}, 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'uid': {'key': 'uid', 'type': 'str'}, 'web_link': {'key': 'webLink', 'type': 'str'}, 'attachments': {'key': 'attachments', 'type': '[MicrosoftGraphAttachment]'}, 'calendar': {'key': 'calendar', 'type': 'MicrosoftGraphCalendar'}, 'exception_occurrences': {'key': 'exceptionOccurrences', 'type': '[MicrosoftGraphEvent]'}, 'extensions': {'key': 'extensions', 'type': '[MicrosoftGraphExtension]'}, 'instances': {'key': 'instances', 'type': '[MicrosoftGraphEvent]'}, 'multi_value_extended_properties': {'key': 'multiValueExtendedProperties', 'type': '[MicrosoftGraphMultiValueLegacyExtendedProperty]'}, 'single_value_extended_properties': {'key': 'singleValueExtendedProperties', 'type': '[MicrosoftGraphSingleValueLegacyExtendedProperty]'}, } def __init__( self, **kwargs ): super(MicrosoftGraphEvent, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.allow_new_time_proposals = kwargs.get('allow_new_time_proposals', None) self.attendees = kwargs.get('attendees', None) self.body = kwargs.get('body', None) self.body_preview = kwargs.get('body_preview', None) self.cancelled_occurrences = kwargs.get('cancelled_occurrences', None) self.end = kwargs.get('end', None) self.has_attachments = kwargs.get('has_attachments', None) self.hide_attendees = kwargs.get('hide_attendees', None) self.importance = kwargs.get('importance', None) self.is_all_day = kwargs.get('is_all_day', None) self.is_cancelled = kwargs.get('is_cancelled', None) self.is_draft = kwargs.get('is_draft', None) self.is_online_meeting = kwargs.get('is_online_meeting', None) self.is_organizer = kwargs.get('is_organizer', None) self.is_reminder_on = kwargs.get('is_reminder_on', None) self.location = kwargs.get('location', None) self.locations = kwargs.get('locations', None) self.occurrence_id = kwargs.get('occurrence_id', None) self.online_meeting = kwargs.get('online_meeting', None) self.online_meeting_provider = kwargs.get('online_meeting_provider', None) self.online_meeting_url = kwargs.get('online_meeting_url', None) self.organizer = kwargs.get('organizer', None) self.original_end_time_zone = kwargs.get('original_end_time_zone', None) self.original_start = kwargs.get('original_start', None) self.original_start_time_zone = kwargs.get('original_start_time_zone', None) self.recurrence = kwargs.get('recurrence', None) self.reminder_minutes_before_start = kwargs.get('reminder_minutes_before_start', None) self.response_requested = kwargs.get('response_requested', None) self.response_status = kwargs.get('response_status', None) self.sensitivity = kwargs.get('sensitivity', None) self.series_master_id = kwargs.get('series_master_id', None) self.show_as = kwargs.get('show_as', None) self.start = kwargs.get('start', None) self.subject = kwargs.get('subject', None) self.transaction_id = kwargs.get('transaction_id', None) self.type = kwargs.get('type', None) self.uid = kwargs.get('uid', None) self.web_link = kwargs.get('web_link', None) self.attachments = kwargs.get('attachments', None) self.calendar = kwargs.get('calendar', None) self.exception_occurrences = kwargs.get('exception_occurrences', None) self.extensions = kwargs.get('extensions', None) self.instances = kwargs.get('instances', None) self.multi_value_extended_properties = kwargs.get('multi_value_extended_properties', None) self.single_value_extended_properties = kwargs.get('single_value_extended_properties', None) class MicrosoftGraphExtension(MicrosoftGraphEntity): """extension. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, } def __init__( self, **kwargs ): super(MicrosoftGraphExtension, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) class MicrosoftGraphItemBody(msrest.serialization.Model): """itemBody. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param content: The content of the item. :type content: str :param content_type: Possible values include: "text", "html". :type content_type: str or ~calendar.models.MicrosoftGraphBodyType """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'content': {'key': 'content', 'type': 'str'}, 'content_type': {'key': 'contentType', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphItemBody, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.content = kwargs.get('content', None) self.content_type = kwargs.get('content_type', None) class MicrosoftGraphLocation(msrest.serialization.Model): """location. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param address: physicalAddress. :type address: ~calendar.models.MicrosoftGraphPhysicalAddress :param coordinates: outlookGeoCoordinates. :type coordinates: ~calendar.models.MicrosoftGraphOutlookGeoCoordinates :param display_name: The name associated with the location. :type display_name: str :param location_email_address: Optional email address of the location. :type location_email_address: str :param location_type: Possible values include: "default", "conferenceRoom", "homeAddress", "businessAddress", "geoCoordinates", "streetAddress", "hotel", "restaurant", "localBusiness", "postalAddress". :type location_type: str or ~calendar.models.MicrosoftGraphLocationType :param location_uri: Optional URI representing the location. :type location_uri: str :param unique_id: For internal use only. :type unique_id: str :param unique_id_type: Possible values include: "unknown", "locationStore", "directory", "private", "bing". :type unique_id_type: str or ~calendar.models.MicrosoftGraphLocationUniqueIdType """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'address': {'key': 'address', 'type': 'MicrosoftGraphPhysicalAddress'}, 'coordinates': {'key': 'coordinates', 'type': 'MicrosoftGraphOutlookGeoCoordinates'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'location_email_address': {'key': 'locationEmailAddress', 'type': 'str'}, 'location_type': {'key': 'locationType', 'type': 'str'}, 'location_uri': {'key': 'locationUri', 'type': 'str'}, 'unique_id': {'key': 'uniqueId', 'type': 'str'}, 'unique_id_type': {'key': 'uniqueIdType', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphLocation, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.address = kwargs.get('address', None) self.coordinates = kwargs.get('coordinates', None) self.display_name = kwargs.get('display_name', None) self.location_email_address = kwargs.get('location_email_address', None) self.location_type = kwargs.get('location_type', None) self.location_uri = kwargs.get('location_uri', None) self.unique_id = kwargs.get('unique_id', None) self.unique_id_type = kwargs.get('unique_id_type', None) class MicrosoftGraphMultiValueLegacyExtendedProperty(MicrosoftGraphEntity): """multiValueLegacyExtendedProperty. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: A collection of property values. :type value: list[str] """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': '[str]'}, } def __init__( self, **kwargs ): super(MicrosoftGraphMultiValueLegacyExtendedProperty, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) class MicrosoftGraphOnlineMeetingInfo(msrest.serialization.Model): """onlineMeetingInfo. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param conference_id: The ID of the conference. :type conference_id: str :param join_url: The external link that launches the online meeting. This is a URL that clients will launch into a browser and will redirect the user to join the meeting. :type join_url: str :param phones: All of the phone numbers associated with this conference. :type phones: list[~calendar.models.MicrosoftGraphPhone] :param quick_dial: The pre-formatted quickdial for this call. :type quick_dial: str :param toll_free_numbers: The toll free numbers that can be used to join the conference. :type toll_free_numbers: list[str] :param toll_number: The toll number that can be used to join the conference. :type toll_number: str """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'conference_id': {'key': 'conferenceId', 'type': 'str'}, 'join_url': {'key': 'joinUrl', 'type': 'str'}, 'phones': {'key': 'phones', 'type': '[MicrosoftGraphPhone]'}, 'quick_dial': {'key': 'quickDial', 'type': 'str'}, 'toll_free_numbers': {'key': 'tollFreeNumbers', 'type': '[str]'}, 'toll_number': {'key': 'tollNumber', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphOnlineMeetingInfo, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.conference_id = kwargs.get('conference_id', None) self.join_url = kwargs.get('join_url', None) self.phones = kwargs.get('phones', None) self.quick_dial = kwargs.get('quick_dial', None) self.toll_free_numbers = kwargs.get('toll_free_numbers', None) self.toll_number = kwargs.get('toll_number', None) class MicrosoftGraphOutlookGeoCoordinates(msrest.serialization.Model): """outlookGeoCoordinates. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param accuracy: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. :type accuracy: float :param altitude: The altitude of the location. :type altitude: float :param altitude_accuracy: The accuracy of the altitude. :type altitude_accuracy: float :param latitude: The latitude of the location. :type latitude: float :param longitude: The longitude of the location. :type longitude: float """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'accuracy': {'key': 'accuracy', 'type': 'float'}, 'altitude': {'key': 'altitude', 'type': 'float'}, 'altitude_accuracy': {'key': 'altitudeAccuracy', 'type': 'float'}, 'latitude': {'key': 'latitude', 'type': 'float'}, 'longitude': {'key': 'longitude', 'type': 'float'}, } def __init__( self, **kwargs ): super(MicrosoftGraphOutlookGeoCoordinates, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.accuracy = kwargs.get('accuracy', None) self.altitude = kwargs.get('altitude', None) self.altitude_accuracy = kwargs.get('altitude_accuracy', None) self.latitude = kwargs.get('latitude', None) self.longitude = kwargs.get('longitude', None) class MicrosoftGraphPatternedRecurrence(msrest.serialization.Model): """patternedRecurrence. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param pattern: recurrencePattern. :type pattern: ~calendar.models.MicrosoftGraphRecurrencePattern :param range: recurrenceRange. :type range: ~calendar.models.MicrosoftGraphRecurrenceRange """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'pattern': {'key': 'pattern', 'type': 'MicrosoftGraphRecurrencePattern'}, 'range': {'key': 'range', 'type': 'MicrosoftGraphRecurrenceRange'}, } def __init__( self, **kwargs ): super(MicrosoftGraphPatternedRecurrence, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.pattern = kwargs.get('pattern', None) self.range = kwargs.get('range', None) class MicrosoftGraphPhone(msrest.serialization.Model): """phone. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param number: The phone number. :type number: str :param type: Possible values include: "home", "business", "mobile", "other", "assistant", "homeFax", "businessFax", "otherFax", "pager", "radio". :type type: str or ~calendar.models.MicrosoftGraphPhoneType """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'number': {'key': 'number', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphPhone, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.number = kwargs.get('number', None) self.type = kwargs.get('type', None) class MicrosoftGraphPhysicalAddress(msrest.serialization.Model): """physicalAddress. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param city: The city. :type city: str :param country_or_region: The country or region. It's a free-format string value, for example, 'United States'. :type country_or_region: str :param postal_code: The postal code. :type postal_code: str :param post_office_box: :type post_office_box: str :param state: The state. :type state: str :param street: The street. :type street: str :param type: Possible values include: "unknown", "home", "business", "other". :type type: str or ~calendar.models.MicrosoftGraphPhysicalAddressType """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'city': {'key': 'city', 'type': 'str'}, 'country_or_region': {'key': 'countryOrRegion', 'type': 'str'}, 'postal_code': {'key': 'postalCode', 'type': 'str'}, 'post_office_box': {'key': 'postOfficeBox', 'type': 'str'}, 'state': {'key': 'state', 'type': 'str'}, 'street': {'key': 'street', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphPhysicalAddress, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.city = kwargs.get('city', None) self.country_or_region = kwargs.get('country_or_region', None) self.postal_code = kwargs.get('postal_code', None) self.post_office_box = kwargs.get('post_office_box', None) self.state = kwargs.get('state', None) self.street = kwargs.get('street', None) self.type = kwargs.get('type', None) class MicrosoftGraphPlace(MicrosoftGraphEntity): """place. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param address: physicalAddress. :type address: ~calendar.models.MicrosoftGraphPhysicalAddress :param display_name: The name associated with the place. :type display_name: str :param geo_coordinates: outlookGeoCoordinates. :type geo_coordinates: ~calendar.models.MicrosoftGraphOutlookGeoCoordinates :param phone: The phone number of the place. :type phone: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'address': {'key': 'address', 'type': 'MicrosoftGraphPhysicalAddress'}, 'display_name': {'key': 'displayName', 'type': 'str'}, 'geo_coordinates': {'key': 'geoCoordinates', 'type': 'MicrosoftGraphOutlookGeoCoordinates'}, 'phone': {'key': 'phone', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphPlace, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.address = kwargs.get('address', None) self.display_name = kwargs.get('display_name', None) self.geo_coordinates = kwargs.get('geo_coordinates', None) self.phone = kwargs.get('phone', None) class MicrosoftGraphRecurrencePattern(msrest.serialization.Model): """recurrencePattern. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param day_of_month: The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly. :type day_of_month: int :param days_of_week: A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly. :type days_of_week: list[str or ~calendar.models.MicrosoftGraphDayOfWeek] :param first_day_of_week: Possible values include: "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday". :type first_day_of_week: str or ~calendar.models.MicrosoftGraphDayOfWeek :param index: Possible values include: "first", "second", "third", "fourth", "last". :type index: str or ~calendar.models.MicrosoftGraphWeekIndex :param interval: The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required. :type interval: int :param month: The month in which the event occurs. This is a number from 1 to 12. :type month: int :param type: Possible values include: "daily", "weekly", "absoluteMonthly", "relativeMonthly", "absoluteYearly", "relativeYearly". :type type: str or ~calendar.models.MicrosoftGraphRecurrencePatternType """ _validation = { 'day_of_month': {'maximum': 2147483647, 'minimum': -2147483648}, 'interval': {'maximum': 2147483647, 'minimum': -2147483648}, 'month': {'maximum': 2147483647, 'minimum': -2147483648}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'day_of_month': {'key': 'dayOfMonth', 'type': 'int'}, 'days_of_week': {'key': 'daysOfWeek', 'type': '[str]'}, 'first_day_of_week': {'key': 'firstDayOfWeek', 'type': 'str'}, 'index': {'key': 'index', 'type': 'str'}, 'interval': {'key': 'interval', 'type': 'int'}, 'month': {'key': 'month', 'type': 'int'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphRecurrencePattern, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.day_of_month = kwargs.get('day_of_month', None) self.days_of_week = kwargs.get('days_of_week', None) self.first_day_of_week = kwargs.get('first_day_of_week', None) self.index = kwargs.get('index', None) self.interval = kwargs.get('interval', None) self.month = kwargs.get('month', None) self.type = kwargs.get('type', None) class MicrosoftGraphRecurrenceRange(msrest.serialization.Model): """recurrenceRange. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param end_date: The date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate. :type end_date: ~datetime.date :param number_of_occurrences: The number of times to repeat the event. Required and must be positive if type is numbered. :type number_of_occurrences: int :param recurrence_time_zone: Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used. :type recurrence_time_zone: str :param start_date: The date to start applying the recurrence pattern. The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event. Must be the same value as the start property of the recurring event. Required. :type start_date: ~datetime.date :param type: Possible values include: "endDate", "noEnd", "numbered". :type type: str or ~calendar.models.MicrosoftGraphRecurrenceRangeType """ _validation = { 'number_of_occurrences': {'maximum': 2147483647, 'minimum': -2147483648}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'end_date': {'key': 'endDate', 'type': 'date'}, 'number_of_occurrences': {'key': 'numberOfOccurrences', 'type': 'int'}, 'recurrence_time_zone': {'key': 'recurrenceTimeZone', 'type': 'str'}, 'start_date': {'key': 'startDate', 'type': 'date'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphRecurrenceRange, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.end_date = kwargs.get('end_date', None) self.number_of_occurrences = kwargs.get('number_of_occurrences', None) self.recurrence_time_zone = kwargs.get('recurrence_time_zone', None) self.start_date = kwargs.get('start_date', None) self.type = kwargs.get('type', None) class MicrosoftGraphResponseStatus(msrest.serialization.Model): """responseStatus. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param response: Possible values include: "none", "organizer", "tentativelyAccepted", "accepted", "declined", "notResponded". :type response: str or ~calendar.models.MicrosoftGraphResponseType :param time: The date and time that the response was returned. It uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. :type time: ~datetime.datetime """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'response': {'key': 'response', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): super(MicrosoftGraphResponseStatus, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.response = kwargs.get('response', None) self.time = kwargs.get('time', None) class MicrosoftGraphSingleValueLegacyExtendedProperty(MicrosoftGraphEntity): """singleValueLegacyExtendedProperty. :param id: Read-only. :type id: str :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param value: A property value. :type value: str """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'additional_properties': {'key': '', 'type': '{object}'}, 'value': {'key': 'value', 'type': 'str'}, } def __init__( self, **kwargs ): super(MicrosoftGraphSingleValueLegacyExtendedProperty, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.value = kwargs.get('value', None) class MicrosoftGraphTimeSlot(msrest.serialization.Model): """timeSlot. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param end: dateTimeTimeZone. :type end: ~calendar.models.MicrosoftGraphDateTimeZone :param start: dateTimeTimeZone. :type start: ~calendar.models.MicrosoftGraphDateTimeZone """ _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'end': {'key': 'end', 'type': 'MicrosoftGraphDateTimeZone'}, 'start': {'key': 'start', 'type': 'MicrosoftGraphDateTimeZone'}, } def __init__( self, **kwargs ): super(MicrosoftGraphTimeSlot, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.end = kwargs.get('end', None) self.start = kwargs.get('start', None) class OdataError(msrest.serialization.Model): """OdataError. All required parameters must be populated in order to send to Azure. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param error: Required. :type error: ~calendar.models.OdataErrorMain """ _validation = { 'error': {'required': True}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'error': {'key': 'error', 'type': 'OdataErrorMain'}, } def __init__( self, **kwargs ): super(OdataError, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.error = kwargs['error'] class OdataErrorDetail(msrest.serialization.Model): """OdataErrorDetail. All required parameters must be populated in order to send to Azure. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param code: Required. :type code: str :param message: Required. :type message: str :param target: :type target: str """ _validation = { 'code': {'required': True}, 'message': {'required': True}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, } def __init__( self, **kwargs ): super(OdataErrorDetail, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.code = kwargs['code'] self.message = kwargs['message'] self.target = kwargs.get('target', None) class OdataErrorMain(msrest.serialization.Model): """OdataErrorMain. All required parameters must be populated in order to send to Azure. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param code: Required. :type code: str :param message: Required. :type message: str :param target: :type target: str :param details: :type details: list[~calendar.models.OdataErrorDetail] :param innererror: The structure of this object is service-specific. :type innererror: dict[str, object] """ _validation = { 'code': {'required': True}, 'message': {'required': True}, } _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', 'type': '[OdataErrorDetail]'}, 'innererror': {'key': 'innererror', 'type': '{object}'}, } def __init__( self, **kwargs ): super(OdataErrorMain, self).__init__(**kwargs) self.additional_properties = kwargs.get('additional_properties', None) self.code = kwargs['code'] self.message = kwargs['message'] self.target = kwargs.get('target', None) self.details = kwargs.get('details', None) self.innererror = kwargs.get('innererror', None)
38.424572
146
0.66869
18,755
183,900
6.334258
0.042175
0.126264
0.065657
0.04293
0.75557
0.739661
0.732523
0.723491
0.713078
0.705646
0
0.004514
0.200087
183,900
4,785
147
38.432602
0.803071
0.365655
0
0.702055
0
0
0.277117
0.114956
0
0
0
0
0
1
0.064212
false
0
0.001712
0
0.197346
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
167addf5a5777b2d74f5b27bf2da0e32ce921cd0
282
py
Python
triangler/__init__.py
djkcyl/triangler
61e4100aaede749e998a4cc7c98a697a07520ecf
[ "MIT" ]
44
2020-02-19T03:33:03.000Z
2022-03-24T13:04:13.000Z
triangler/__init__.py
djkcyl/triangler
61e4100aaede749e998a4cc7c98a697a07520ecf
[ "MIT" ]
2
2020-03-13T12:45:00.000Z
2020-03-28T11:37:53.000Z
triangler/__init__.py
djkcyl/triangler
61e4100aaede749e998a4cc7c98a697a07520ecf
[ "MIT" ]
13
2020-02-18T08:49:55.000Z
2022-03-12T13:00:12.000Z
from triangler.color import ColorMethod from triangler.edges import EdgeMethod from triangler.mod import Triangler from triangler.mod import imread as _imread from triangler.mod import imsave as _imsave from triangler.sampling import SampleMethod imsave = _imsave imread = _imread
28.2
43
0.847518
38
282
6.184211
0.342105
0.331915
0.204255
0.280851
0
0
0
0
0
0
0
0
0.124113
282
9
44
31.333333
0.951417
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
0
0
1
0
1
0
0
6
168ebdbfa340cb53de8c939f0a31cff05e897192
328
py
Python
src/UQpy/surrogates/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
src/UQpy/surrogates/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
src/UQpy/surrogates/__init__.py
SURGroup/UncertaintyQuantification
a94c8db47d07134ea2b3b0a3ca53ca818532c3e6
[ "MIT" ]
null
null
null
from UQpy.surrogates.polynomial_chaos import * from UQpy.surrogates.stochastic_reduced_order_models import * from UQpy.surrogates.kriging import * from UQpy.surrogates.gaussian_process import * from UQpy.surrogates.baseclass import * from . import polynomial_chaos, stochastic_reduced_order_models, gaussian_process, baseclass
41
92
0.856707
41
328
6.609756
0.341463
0.147601
0.332103
0.354244
0
0
0
0
0
0
0
0
0.085366
328
7
93
46.857143
0.903333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
169b28d66a091b44468dfb201adbf44981742839
247
py
Python
code/network.py
sophia501098/AICompetition
1668731ee867e06d26a1b6ad37a3cd5a2ecdd07c
[ "MIT" ]
1
2021-11-26T09:22:06.000Z
2021-11-26T09:22:06.000Z
code/network.py
sophia501098/AICompetition
1668731ee867e06d26a1b6ad37a3cd5a2ecdd07c
[ "MIT" ]
null
null
null
code/network.py
sophia501098/AICompetition
1668731ee867e06d26a1b6ad37a3cd5a2ecdd07c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F class myNetwork(nn.Module): def __init__(self, hypara): super(myNetwork, self).__init__() def forward(self,input): return 1;
20.583333
41
0.696356
37
247
4.432432
0.486486
0.268293
0.237805
0
0
0
0
0
0
0
0
0.005102
0.206478
247
11
42
22.454545
0.831633
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.444444
0.111111
0.888889
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
6
16a8a1000fd7837250b8fff8b0c3b14779a50427
19,649
py
Python
tests/pypokerengine/engine/round_manager_test.py
stupps/PyPokerEngine
a52a048a15da276005eca4acae96fb6eeb4dc034
[ "MIT" ]
479
2016-09-05T15:42:28.000Z
2022-03-27T00:53:52.000Z
tests/pypokerengine/engine/round_manager_test.py
stupps/PyPokerEngine
a52a048a15da276005eca4acae96fb6eeb4dc034
[ "MIT" ]
51
2016-09-04T06:59:37.000Z
2022-01-23T16:15:05.000Z
tests/pypokerengine/engine/round_manager_test.py
stupps/PyPokerEngine
a52a048a15da276005eca4acae96fb6eeb4dc034
[ "MIT" ]
199
2016-09-05T15:42:29.000Z
2022-03-19T14:22:29.000Z
from tests.base_unittest import BaseUnitTest from mock import patch from pypokerengine.engine.round_manager import RoundManager from pypokerengine.engine.game_evaluator import GameEvaluator from pypokerengine.engine.poker_constants import PokerConstants as Const from pypokerengine.engine.player import Player from pypokerengine.engine.pay_info import PayInfo from pypokerengine.engine.card import Card from pypokerengine.engine.deck import Deck from pypokerengine.engine.table import Table class RoundManagerTest(BaseUnitTest): def setUp(self): pass def test_collect_blind(self): state, _ = self.__start_round() players = state["table"].seats.players sb_amount = 5 self.eq(100-sb_amount, players[0].stack) self.eq(100-sb_amount*2, players[1].stack) self.eq("SMALLBLIND", players[0].action_histories[-1]["action"]) self.eq("BIGBLIND", players[1].action_histories[-1]["action"]) self.eq(sb_amount, players[0].pay_info.amount) self.eq(sb_amount*2, players[1].pay_info.amount) def test_collect_ante(self): ante = 10 sb_amount = 5 table = self.__setup_table() state, _ = RoundManager.start_new_round(1, sb_amount, ante, table) players = state["table"].seats.players self.eq(100-sb_amount-ante, players[0].stack) self.eq(100-sb_amount*2-ante, players[1].stack) self.eq(100-ante, players[2].stack) self.eq("ANTE", players[0].action_histories[0]["action"]) self.eq("ANTE", players[1].action_histories[0]["action"]) self.eq("ANTE", players[2].action_histories[0]["action"]) self.eq(sb_amount+ante, players[0].pay_info.amount) self.eq(sb_amount*2+ante, players[1].pay_info.amount) self.eq(ante, players[2].pay_info.amount) self.eq(sb_amount+sb_amount*2+ante*3, GameEvaluator.create_pot(players)[0]["amount"]) def test_collect_ante_skip_loser(self): ante = 10 sb_amount = 5 table = self.__setup_table() table.seats.players[2].stack = 0 table.seats.players[2].pay_info.status = PayInfo.FOLDED state, _ = RoundManager.start_new_round(1, sb_amount, ante, table) players = state["table"].seats.players self.eq(sb_amount+sb_amount*2+ante*2, GameEvaluator.create_pot(players)[0]["amount"]) def test_deal_holecard(self): state, _ = self.__start_round() players = state["table"].seats.players self.eq([Card.from_id(1), Card.from_id(2)], players[0].hole_card) self.eq([Card.from_id(3), Card.from_id(4)], players[1].hole_card) def test_message_after_start_round(self): with patch('pypokerengine.engine.message_builder.MessageBuilder.build_round_start_message', return_value="hoge"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_street_start_message', return_value="fuga"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_ask_message', return_value="bar"): _, msgs = self.__start_round() self.eq(("uuid0", "hoge"), msgs[0]) self.eq(("uuid1", "hoge"), msgs[1]) self.eq(("uuid2", "hoge"), msgs[2]) self.eq((-1, "fuga"), msgs[3]) self.eq(("uuid2", "bar"), msgs[4]) def test_state_after_start_round(self): state, msgs = self.__start_round() self.eq(2, state["next_player"]) self.eq("SMALLBLIND", state["table"].seats.players[0].action_histories[0]["action"]) self.eq("BIGBLIND", state["table"].seats.players[1].action_histories[0]["action"]) def test_message_after_apply_action(self): with patch('pypokerengine.engine.message_builder.MessageBuilder.build_round_start_message', return_value="hoge"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_street_start_message', return_value="fuga"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_ask_message', return_value="bar"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_game_update_message', return_value="boo"): state, _ = self.__start_round() _, msgs = RoundManager.apply_action(state, "call", 10) self.eq((-1, "boo"), msgs[0]) self.eq(("uuid0", "bar"), msgs[1]) def test_state_after_apply_call(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "call", 10) self.eq(0, state["next_player"]) self.eq("CALL", state["table"].seats.players[2].action_histories[0]["action"]) def test_state_after_apply_raise(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "raise", 15) self.eq(0, state["next_player"]) self.eq("RAISE", state["table"].seats.players[2].action_histories[0]["action"]) def test_message_after_forward_to_flop(self): with patch('pypokerengine.engine.message_builder.MessageBuilder.build_street_start_message', return_value="fuga"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_ask_message', return_value="bar"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_game_update_message', return_value="boo"): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) _, msgs = RoundManager.apply_action(state, "call", 10) self.eq((-1, "boo"), msgs[0]) self.eq((-1, "fuga"), msgs[1]) self.eq(("uuid0", "bar"), msgs[2]) def test_state_after_forward_to_flop(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) self.eq(Const.Street.FLOP, state["street"]) self.eq(0, state["next_player"]) self.eq([Card.from_id(cid) for cid in range(7,10)], state["table"].get_community_card()) fetch_player = lambda uuid: [p for p in state["table"].seats.players if p.uuid==uuid][0] self.true(all(map(lambda p: len(p.action_histories)==0, state["table"].seats.players))) self.eq(2, len(fetch_player("uuid0").round_action_histories[Const.Street.PREFLOP])) self.eq(2, len(fetch_player("uuid1").round_action_histories[Const.Street.PREFLOP])) self.eq(1, len(fetch_player("uuid2").round_action_histories[Const.Street.PREFLOP])) self.assertIsNone(fetch_player("uuid0").round_action_histories[Const.Street.TURN]) def test_state_after_forward_to_turn(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, msgs = RoundManager.apply_action(state, "call", 0) self.eq(Const.Street.TURN, state["street"]) self.eq([Card.from_id(cid) for cid in range(7,11)], state["table"].get_community_card()) self.eq(3, len(msgs)) fetch_player = lambda uuid: [p for p in state["table"].seats.players if p.uuid==uuid][0] self.true(all(map(lambda p: len(p.action_histories)==0, state["table"].seats.players))) self.eq(2, len(fetch_player("uuid0").round_action_histories[Const.Street.PREFLOP])) self.eq(2, len(fetch_player("uuid1").round_action_histories[Const.Street.PREFLOP])) self.eq(1, len(fetch_player("uuid2").round_action_histories[Const.Street.PREFLOP])) self.eq(1, len(fetch_player("uuid0").round_action_histories[Const.Street.FLOP])) self.eq(1, len(fetch_player("uuid1").round_action_histories[Const.Street.FLOP])) self.eq(0, len(fetch_player("uuid2").round_action_histories[Const.Street.FLOP])) self.assertIsNone(fetch_player("uuid0").round_action_histories[Const.Street.TURN]) def test_state_after_forward_to_river(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, msgs = RoundManager.apply_action(state, "call", 0) self.eq(Const.Street.RIVER, state["street"]) self.eq([Card.from_id(cid) for cid in range(7,12)], state["table"].get_community_card()) self.eq(3, len(msgs)) fetch_player = lambda uuid: [p for p in state["table"].seats.players if p.uuid==uuid][0] self.true(all(map(lambda p: len(p.action_histories)==0, state["table"].seats.players))) self.eq(2, len(fetch_player("uuid0").round_action_histories[Const.Street.PREFLOP])) self.eq(2, len(fetch_player("uuid1").round_action_histories[Const.Street.PREFLOP])) self.eq(1, len(fetch_player("uuid2").round_action_histories[Const.Street.PREFLOP])) self.eq(1, len(fetch_player("uuid0").round_action_histories[Const.Street.FLOP])) self.eq(1, len(fetch_player("uuid1").round_action_histories[Const.Street.FLOP])) self.eq(0, len(fetch_player("uuid2").round_action_histories[Const.Street.FLOP])) self.eq(1, len(fetch_player("uuid0").round_action_histories[Const.Street.TURN])) self.eq(1, len(fetch_player("uuid1").round_action_histories[Const.Street.TURN])) self.eq(0, len(fetch_player("uuid2").round_action_histories[Const.Street.TURN])) self.assertIsNone(fetch_player("uuid0").round_action_histories[Const.Street.RIVER]) def test_state_after_showdown(self): mock_return = [1,0]*3 with patch('pypokerengine.engine.hand_evaluator.HandEvaluator.eval_hand', side_effect=mock_return),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_round_result_message', return_value="bogo"): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) self.eq(Const.Street.FINISHED, state["street"]) self.eq(110, state["table"].seats.players[0].stack) self.eq( 90, state["table"].seats.players[1].stack) self.eq(100, state["table"].seats.players[2].stack) self.true(all(map(lambda p: len(p.action_histories)==0, state["table"].seats.players))) self.true(all(map(lambda p: p.round_action_histories==[None]*4, state["table"].seats.players))) def test_message_after_showdown(self): mock_return = [1,0]*3 with patch('pypokerengine.engine.hand_evaluator.HandEvaluator.eval_hand', side_effect=mock_return),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_game_update_message', return_value="boo"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_round_result_message', return_value="foo"): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) _, msgs = RoundManager.apply_action(state, "call", 0) self.eq((-1, "boo"), msgs[0]) self.eq((-1, "foo"), msgs[1]) def test_table_reset_after_showdown(self): mock_return = [1,0]*3 with patch('pypokerengine.engine.hand_evaluator.HandEvaluator.eval_hand', side_effect=mock_return),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_game_update_message', return_value="boo"),\ patch('pypokerengine.engine.message_builder.MessageBuilder.build_round_result_message', return_value="foo"): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "call", 0) table = state["table"] player = state["table"].seats.players[0] self.eq(52, table.deck.size()) self.eq([], table.get_community_card()) self.eq([], player.hole_card) self.eq([], player.action_histories) self.eq(PayInfo.PAY_TILL_END, player.pay_info.status) def test_message_skip_when_only_one_player_is_active(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "fold", 0) state, msgs = RoundManager.apply_action(state, "fold", 0) self.eq(Const.Street.FINISHED, state["street"]) self.false("street_start_message" in [msg["message"]["message_type"] for _, msg in msgs]) def test_ask_player_target_when_dealer_btn_player_is_folded(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "fold", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, msgs = RoundManager.apply_action(state, "call", 0) self.eq("uuid1", msgs[-1][0]) def test_skip_asking_to_allin_player(self): state, _ = self.__start_round() # Round 1 state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "raise", 50) state, _ = RoundManager.apply_action(state, "call", 50) state, _ = RoundManager.apply_action(state, "fold", 0) self.eq([95, 40, 165], [p.stack for p in state["table"].seats.players]) # Round 2 state["table"].shift_dealer_btn() state["table"].set_blind_pos(1, 2) state, _ = RoundManager.start_new_round(2, 5, 0, state["table"]) state, _ = RoundManager.apply_action(state, "raise", 40) state, _ = RoundManager.apply_action(state, "call", 40) state, _ = RoundManager.apply_action(state, "raise", 70) state, msgs = RoundManager.apply_action(state, "call", 70) self.eq([25, 0, 95], [p.stack for p in state["table"].seats.players]) self.eq(1, state["street"]) self.eq("uuid2", msgs[-1][0]) def test_when_only_one_player_is_waiting_ask(self): state, _ = self.__start_round() # Round 1 state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "raise", 50) state, _ = RoundManager.apply_action(state, "call", 50) state, _ = RoundManager.apply_action(state, "fold", 0) self.eq([95, 40, 165], [p.stack for p in state["table"].seats.players]) # Round 2 state["table"].shift_dealer_btn() state, _ = RoundManager.start_new_round(2, 5, 0, state["table"]) state, _ = RoundManager.apply_action(state, "raise", 40) state, _ = RoundManager.apply_action(state, "call", 40) state, _ = RoundManager.apply_action(state, "raise", 70) state, _ = RoundManager.apply_action(state, "call", 70) state, _ = RoundManager.apply_action(state, "call", 0) state, _ = RoundManager.apply_action(state, "raise", 10) state, _ = RoundManager.apply_action(state, "call", 10) state, _ = RoundManager.apply_action(state, "raise", 85) state, _ = RoundManager.apply_action(state, "call", 85) def test_ask_big_blind_in_preflop(self): state, _ = self.__start_round() state, _ = RoundManager.apply_action(state, "call", 10) state, msg = RoundManager.apply_action(state, "call", 10) self.eq("uuid1", msg[-1][0]) self.eq(Const.Street.PREFLOP, state["street"]) def test_everyone_agree_logic_regression(self): players = [Player("uuid%d" % i, 100) for i in range(4)] players[0].stack = 150 players[1].stack = 150 players[2].stack = 50 players[3].stack = 50 deck = Deck(cheat=True, cheat_card_ids=range(1,53)) table = Table(cheat_deck=deck) for player in players: table.seats.sitdown(player) table.dealer_btn = 3 table.set_blind_pos(0, 1) state, _ = RoundManager.start_new_round(1, 5, 0, table) state, _ = RoundManager.apply_action(state, "raise", 15) state, _ = RoundManager.apply_action(state, "raise", 20) state, _ = RoundManager.apply_action(state, "raise", 25) state, _ = RoundManager.apply_action(state, "raise", 30) state, _ = RoundManager.apply_action(state, "raise", 50) state, _ = RoundManager.apply_action(state, "call", 50) state, _ = RoundManager.apply_action(state, "raise", 125) state, _ = RoundManager.apply_action(state, "call", 125) state, _ = RoundManager.apply_action(state, "fold", 0) state, _ = RoundManager.apply_action(state, "fold", 0) self.eq(Const.Street.FINISHED, state["street"]) def test_add_amount_calculationl_when_raise_on_ante(self): table = self.__setup_table() pot_amount = lambda state: GameEvaluator.create_pot(state["table"].seats.players)[0]["amount"] stack_check = lambda expected, state: self.eq(expected, [p.stack for p in state["table"].seats.players]) start_state, _ = RoundManager.start_new_round(1, 10, 5, table) self.eq(45, pot_amount(start_state)) stack_check([85, 75, 95], start_state) folded_state, _ = RoundManager.apply_action(start_state, "fold", 0) called_state, _ = RoundManager.apply_action(folded_state, "call", 20) self.eq(55, pot_amount(called_state)) stack_check([85, 75, 95], start_state) called_state, _ = RoundManager.apply_action(start_state, "call", 20) self.eq(20, called_state["table"].seats.players[2].action_histories[-1]["paid"]) self.eq(65, pot_amount(called_state)) raised_state, _ = RoundManager.apply_action(start_state, "raise", 30) self.eq(30, raised_state["table"].seats.players[2].action_histories[-1]["paid"]) self.eq(75, pot_amount(raised_state)) def test_deepcopy_state(self): table = self.__setup_table() original = RoundManager._RoundManager__gen_initial_state(2, 5, table) copied = RoundManager._RoundManager__deep_copy_state(original) check = lambda key: self.eq(original[key], copied[key]) [check(key) for key in ["round_count", "small_blind_amount", "street", "next_player"]] def __start_round(self): table = self.__setup_table() round_count = 1 small_blind_amount = 5 ante = 0 return RoundManager.start_new_round(round_count, small_blind_amount, ante, table) def __setup_table(self): players = [Player("uuid%d" % i, 100) for i in range(3)] deck = Deck(cheat=True, cheat_card_ids=range(1,53)) table = Table(cheat_deck=deck) for player in players: table.seats.sitdown(player) table.dealer_btn = 2 table.set_blind_pos(0, 1) return table
51.437173
119
0.70258
2,688
19,649
4.872768
0.073661
0.083142
0.172087
0.200947
0.835471
0.77592
0.723164
0.711788
0.674607
0.656207
0
0.026755
0.144028
19,649
381
120
51.572178
0.752007
0.001578
0
0.543284
0
0
0.125943
0.067
0
0
0
0
0.008955
1
0.080597
false
0.002985
0.029851
0
0.119403
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
16b1dcf3219092651b754cf5016a8ef18a17c30b
1,541
py
Python
openpype/client/__init__.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
openpype/client/__init__.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
openpype/client/__init__.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
from .entities import ( get_projects, get_project, get_asset_by_id, get_asset_by_name, get_assets, get_asset_ids_with_subsets, get_subset_by_id, get_subset_by_name, get_subsets, get_subset_families, get_version_by_id, get_version_by_name, get_versions, get_hero_version_by_id, get_hero_version_by_subset_id, get_hero_versions, get_last_versions, get_last_version_by_subset_id, get_last_version_by_subset_name, get_output_link_versions, get_representation_by_id, get_representation_by_name, get_representations, get_representation_parents, get_representations_parents, get_thumbnail, get_thumbnails, get_thumbnail_id_from_source, ) __all__ = ( "get_projects", "get_project", "get_asset_by_id", "get_asset_by_name", "get_assets", "get_asset_ids_with_subsets", "get_subset_by_id", "get_subset_by_name", "get_subsets", "get_subset_families", "get_version_by_id", "get_version_by_name", "get_versions", "get_hero_version_by_id", "get_hero_version_by_subset_id", "get_hero_versions", "get_last_versions", "get_last_version_by_subset_id", "get_last_version_by_subset_name", "get_output_link_versions", "get_representation_by_id", "get_representation_by_name", "get_representations", "get_representation_parents", "get_representations_parents", "get_thumbnail", "get_thumbnails", "get_thumbnail_id_from_source", )
21.402778
38
0.728748
204
1,541
4.779412
0.142157
0.071795
0.071795
0.057436
0.978462
0.978462
0.978462
0.978462
0.978462
0.978462
0
0
0.194679
1,541
71
39
21.704225
0.785657
0
0
0
0
0
0.356262
0.189487
0
0
0
0
0
1
0
false
0
0.016667
0
0.016667
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
bc44a93884a54e286f9bc6aa09c42b55751c1d63
5,614
py
Python
tests/components/homekit/test_type_switches.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2019-02-11T09:41:29.000Z
2019-02-11T09:41:29.000Z
tests/components/homekit/test_type_switches.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
null
null
null
tests/components/homekit/test_type_switches.py
dauden1184/home-assistant
f4c6d389b77d0efa86644e76604eaea5d21abdb5
[ "Apache-2.0" ]
1
2019-04-16T14:07:20.000Z
2019-04-16T14:07:20.000Z
"""Test different accessory types: Switches.""" import pytest from homeassistant.components.homekit.const import ( TYPE_FAUCET, TYPE_SHOWER, TYPE_SPRINKLER, TYPE_VALVE) from homeassistant.components.homekit.type_switches import ( Outlet, Switch, Valve) from homeassistant.const import ATTR_ENTITY_ID, CONF_TYPE, STATE_OFF, STATE_ON from homeassistant.core import split_entity_id from tests.common import async_mock_service async def test_outlet_set_state(hass, hk_driver): """Test if Outlet accessory and HA are updated accordingly.""" entity_id = 'switch.outlet_test' hass.states.async_set(entity_id, None) await hass.async_block_till_done() acc = Outlet(hass, hk_driver, 'Outlet', entity_id, 2, None) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.aid == 2 assert acc.category == 7 # Outlet assert acc.char_on.value is False assert acc.char_outlet_in_use.value is True hass.states.async_set(entity_id, STATE_ON) await hass.async_block_till_done() assert acc.char_on.value is True hass.states.async_set(entity_id, STATE_OFF) await hass.async_block_till_done() assert acc.char_on.value is False # Set from HomeKit call_turn_on = async_mock_service(hass, 'switch', 'turn_on') call_turn_off = async_mock_service(hass, 'switch', 'turn_off') await hass.async_add_job(acc.char_on.client_update_value, True) await hass.async_block_till_done() assert call_turn_on assert call_turn_on[0].data[ATTR_ENTITY_ID] == entity_id await hass.async_add_job(acc.char_on.client_update_value, False) await hass.async_block_till_done() assert call_turn_off assert call_turn_off[0].data[ATTR_ENTITY_ID] == entity_id @pytest.mark.parametrize('entity_id', [ 'automation.test', 'input_boolean.test', 'remote.test', 'script.test', 'switch.test', ]) async def test_switch_set_state(hass, hk_driver, entity_id): """Test if accessory and HA are updated accordingly.""" domain = split_entity_id(entity_id)[0] hass.states.async_set(entity_id, None) await hass.async_block_till_done() acc = Switch(hass, hk_driver, 'Switch', entity_id, 2, None) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.aid == 2 assert acc.category == 8 # Switch assert acc.char_on.value is False hass.states.async_set(entity_id, STATE_ON) await hass.async_block_till_done() assert acc.char_on.value is True hass.states.async_set(entity_id, STATE_OFF) await hass.async_block_till_done() assert acc.char_on.value is False # Set from HomeKit call_turn_on = async_mock_service(hass, domain, 'turn_on') call_turn_off = async_mock_service(hass, domain, 'turn_off') await hass.async_add_job(acc.char_on.client_update_value, True) await hass.async_block_till_done() assert call_turn_on assert call_turn_on[0].data[ATTR_ENTITY_ID] == entity_id await hass.async_add_job(acc.char_on.client_update_value, False) await hass.async_block_till_done() assert call_turn_off assert call_turn_off[0].data[ATTR_ENTITY_ID] == entity_id async def test_valve_set_state(hass, hk_driver): """Test if Valve accessory and HA are updated accordingly.""" entity_id = 'switch.valve_test' hass.states.async_set(entity_id, None) await hass.async_block_till_done() acc = Valve(hass, hk_driver, 'Valve', entity_id, 2, {CONF_TYPE: TYPE_FAUCET}) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.category == 29 # Faucet assert acc.char_valve_type.value == 3 # Water faucet acc = Valve(hass, hk_driver, 'Valve', entity_id, 2, {CONF_TYPE: TYPE_SHOWER}) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.category == 30 # Shower assert acc.char_valve_type.value == 2 # Shower head acc = Valve(hass, hk_driver, 'Valve', entity_id, 2, {CONF_TYPE: TYPE_SPRINKLER}) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.category == 28 # Sprinkler assert acc.char_valve_type.value == 1 # Irrigation acc = Valve(hass, hk_driver, 'Valve', entity_id, 2, {CONF_TYPE: TYPE_VALVE}) await hass.async_add_job(acc.run) await hass.async_block_till_done() assert acc.aid == 2 assert acc.category == 29 # Faucet assert acc.char_active.value is False assert acc.char_in_use.value is False assert acc.char_valve_type.value == 0 # Generic Valve hass.states.async_set(entity_id, STATE_ON) await hass.async_block_till_done() assert acc.char_active.value is True assert acc.char_in_use.value is True hass.states.async_set(entity_id, STATE_OFF) await hass.async_block_till_done() assert acc.char_active.value is False assert acc.char_in_use.value is False # Set from HomeKit call_turn_on = async_mock_service(hass, 'switch', 'turn_on') call_turn_off = async_mock_service(hass, 'switch', 'turn_off') await hass.async_add_job(acc.char_active.client_update_value, True) await hass.async_block_till_done() assert acc.char_in_use.value is True assert call_turn_on assert call_turn_on[0].data[ATTR_ENTITY_ID] == entity_id await hass.async_add_job(acc.char_active.client_update_value, False) await hass.async_block_till_done() assert acc.char_in_use.value is False assert call_turn_off assert call_turn_off[0].data[ATTR_ENTITY_ID] == entity_id
34.441718
78
0.728892
875
5,614
4.348571
0.104
0.073587
0.121419
0.104862
0.812615
0.807359
0.7682
0.740342
0.728252
0.689882
0
0.006499
0.17777
5,614
162
79
34.654321
0.817808
0.033488
0
0.655462
0
0
0.040344
0
0
0
0
0
0.336134
1
0
false
0
0.05042
0
0.05042
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
bc64d0b96f51f2a617bb16062033cc58709097a1
172
py
Python
dbrepl.py
righteousgambitresearch/SSRFTest
4f266e387d545b7c526d02ef6acd0f5a5971b00a
[ "MIT" ]
213
2019-03-23T17:02:39.000Z
2022-03-25T12:52:35.000Z
dbrepl.py
righteousgambitresearch/SSRFTest
4f266e387d545b7c526d02ef6acd0f5a5971b00a
[ "MIT" ]
5
2019-03-23T19:05:18.000Z
2021-04-20T12:18:48.000Z
dbrepl.py
righteousgambitresearch/SSRFTest
4f266e387d545b7c526d02ef6acd0f5a5971b00a
[ "MIT" ]
40
2019-03-23T19:39:50.000Z
2022-02-12T12:27:18.000Z
#!/usr/local/bin/python -i from metamodel import createLocalSession from main import app app.test_request_context('/').__enter__() createLocalSession() from model import *
24.571429
41
0.796512
22
172
5.954545
0.727273
0.335878
0
0
0
0
0
0
0
0
0
0
0.093023
172
6
42
28.666667
0.839744
0.145349
0
0
0
0
0.006849
0
0
0
0
0
0
1
0
true
0
0.6
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
0
1
0
1
0
1
0
0
6
bcaf42c8e2100b10d093ebd5305df04e823904df
578
py
Python
django/cantusdb_project/main_app/models/__init__.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
2
2020-10-16T09:50:54.000Z
2021-07-29T08:38:34.000Z
django/cantusdb_project/main_app/models/__init__.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
65
2020-05-11T19:22:30.000Z
2022-03-30T22:30:02.000Z
django/cantusdb_project/main_app/models/__init__.py
DDMAL/CantusDB
63c7b8df3c703008bd331097c7fb5e72c8890bb0
[ "MIT" ]
null
null
null
from main_app.models.base_model import BaseModel from main_app.models.century import Century from main_app.models.chant import Chant from main_app.models.feast import Feast from main_app.models.genre import Genre from main_app.models.indexer import Indexer from main_app.models.notation import Notation from main_app.models.office import Office from main_app.models.provenance import Provenance from main_app.models.segment import Segment from main_app.models.sequence import Sequence from main_app.models.rism_siglum import RismSiglum from main_app.models.source import Source
41.285714
50
0.865052
93
578
5.215054
0.236559
0.214433
0.294845
0.45567
0
0
0
0
0
0
0
0
0.089965
578
13
51
44.461538
0.922053
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
bcba65f7b8d320fadf02665d455398792b11af72
50,547
py
Python
tests/test_trace.py
clericeon/epsagon-python
387b785708d5b6ac0e8a9f8562c52f56d0825cdf
[ "MIT" ]
null
null
null
tests/test_trace.py
clericeon/epsagon-python
387b785708d5b6ac0e8a9f8562c52f56d0825cdf
[ "MIT" ]
null
null
null
tests/test_trace.py
clericeon/epsagon-python
387b785708d5b6ac0e8a9f8562c52f56d0825cdf
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # -*- coding: utf-8 -*- """ Tests for trace.py """ import os import sys import uuid import json import time from datetime import datetime import mock import pytest import urllib3.exceptions import epsagon.trace import epsagon.constants from epsagon.constants import ( TRACE_COLLECTOR_URL, DEFAULT_REGION, DEFAULT_SEND_TIMEOUT_MS, TRACE_URL_PREFIX, LAMBDA_TRACE_URL_PREFIX, ) from epsagon.trace import ( trace_factory, TraceEncoder, FAILED_TO_SERIALIZE_MESSAGE, MAX_METADATA_FIELD_SIZE_LIMIT ) from epsagon.utils import get_tc_url from epsagon.common import ErrorCode from epsagon.trace_transports import HTTPTransport from .conftest import init_epsagon class ContextMock: def __init__(self, timeout): self.timeout = timeout def get_remaining_time_in_millis(self): return self.timeout class EventMock(object): ORIGIN = 'mock' RESOURCE_TYPE = 'mock' def __init__(self, start_time=None): self.start_time = start_time self.event_id = '123' self.duration = 0.0 self.terminated = False self.exception = {} self.origin = 'not_runner' self.resource = { 'metadata': {}, 'type': '' } def terminate(self): self.terminated = True def identifier(self): return '{}{}'.format(self.ORIGIN, self.RESOURCE_TYPE) def to_dict(self): result = { 'resource': self.resource, 'origin': self.origin } if self.exception: result['exception'] = self.exception return result class BigEventMock(EventMock): def __init__(self): super(BigEventMock, self).__init__() self.resource = { 'metadata': {'big': 'big' * 32 * (2 ** 10)} } self.origin = 'not_runner' self.id = str(uuid.uuid4()) def identifier(self): return self.id class StrongKeysEventMock(BigEventMock): def __init__(self): super(StrongKeysEventMock, self).__init__() self.resource = { 'metadata': { 'big': 'big' * 32 * (2 ** 10), 'region': 'my_region', 'aws_account': 'my_aws_account' } } class RunnerEventMock(EventMock): def __init__(self): super(RunnerEventMock, self).__init__(start_time=time.time()) self.terminated = True self.origin = 'runner' self.resource['metadata']['trace_id'] = '123' def terminate(self): # This should be a copy of `BaseEvent.terminate()` # These classes mocks is a wrong idea in general. if not self.terminated: self.duration = time.time() - self.start_time self.terminated = True def set_timeout(self): pass def set_exception(self, exception, traceback_data, handled=True, from_logs=False): self.error_code = ErrorCode.EXCEPTION self.exception['type'] = type(exception).__name__ self.exception['message'] = str(exception) self.exception['traceback'] = traceback_data self.exception['time'] = time.time() def to_dict(self): result = super(RunnerEventMock, self).to_dict() result['origin'] = self.origin return result class ReturnValueEventMock(RunnerEventMock): def __init__(self, data): super(ReturnValueEventMock, self).__init__() self.resource = { 'metadata': {'return_value': data } } class LambdaRunnerEventMock(RunnerEventMock): def __init__(self): super(LambdaRunnerEventMock, self).__init__() self.resource = { 'metadata': { 'aws_account': 'aws_account', 'region': 'region', }, 'type': 'lambda', 'name': 'func', } class UnicodeReturnValueEventMock(RunnerEventMock): def __init__(self): super(UnicodeReturnValueEventMock, self).__init__() self.resource = { 'metadata': {'return_value': 'בדיקה' } } class InvalidReturnValueEventMock(ReturnValueEventMock): def __init__(self): super(InvalidReturnValueEventMock, self).__init__({1: mock}) class EventMockWithCounter(EventMock): def __init__(self, i): super(EventMockWithCounter, self).__init__() self.i = i def to_dict(self): return { 'i', self.i } def setup_function(func): trace_factory.use_single_trace = True @pytest.fixture(scope='function', autouse=True) def init_epsagon_function(): init_epsagon() def test_add_exception(): stack_trace_format = 'stack trace %d' message_format = 'message %d' tested_exception_types = [ ZeroDivisionError, RuntimeError, NameError, TypeError ] trace = trace_factory.get_or_create_trace() for i, exception_type in enumerate(tested_exception_types): try: raise exception_type(message_format % i) except exception_type as e: trace.add_exception(e, stack_trace_format % i) assert len(trace.exceptions) == len(tested_exception_types) for i, exception_type in enumerate(tested_exception_types): current_exception = trace.exceptions[i] assert current_exception['type'] == str(exception_type) assert current_exception['message'] == message_format % i assert current_exception['traceback'] == stack_trace_format % i assert type(current_exception['time']) == float def test_add_exception_with_additional_data(): stack_trace_format = 'stack trace %d' message_format = 'message %d' tested_exception_types = [ ZeroDivisionError, RuntimeError, NameError, TypeError ] additional_data = {'key': 'value', 'key2': 'othervalue'} trace = trace_factory.get_or_create_trace() for i, exception_type in enumerate(tested_exception_types): try: raise exception_type(message_format % i) except exception_type as e: trace.add_exception(e, stack_trace_format % i, additional_data) assert len(trace.exceptions) == len(tested_exception_types) for i, exception_type in enumerate(tested_exception_types): current_exception = trace.exceptions[i] assert current_exception['type'] == str(exception_type) assert current_exception['message'] == message_format % i assert current_exception['traceback'] == stack_trace_format % i assert type(current_exception['time']) == float assert current_exception['additional_data'] == additional_data def test_initialize(): app_name = 'app-name' token = 'token' collector_url = 'collector_url' metadata_only = False disable_on_timeout = False debug = True trace = trace_factory.get_or_create_trace() trace.initialize( app_name, token, collector_url, metadata_only, disable_on_timeout, debug ) assert trace.app_name == app_name assert trace.token == token assert trace.collector_url == collector_url assert trace.disable_timeout_send == disable_on_timeout assert trace.debug == debug trace.initialize(app_name, '', '', False, False, False) assert trace.app_name == app_name assert trace.token == '' assert trace.collector_url == '' assert trace.metadata_only == False assert trace.disable_timeout_send == False assert trace.debug == False trace.initialize('', '', '', True, True, False) assert trace.app_name == '' assert trace.token == '' assert trace.collector_url == '' assert trace.metadata_only == True assert trace.disable_timeout_send == True assert trace.debug == False def test_load_from_dict(): for i in range(2): # validate a new trace is created each time number_of_events = 10 trace_data = { 'app_name': 'app_name', 'token': 'token', 'version': 'version', 'platform': 'platform', 'events': [EventMockWithCounter(i) for i in range(number_of_events)] } with mock.patch('epsagon.event.BaseEvent.load_from_dict', side_effect=(lambda x: x)): new_trace = epsagon.trace.Trace.load_from_dict(trace_data) assert new_trace.app_name == trace_data['app_name'] assert new_trace.token == trace_data['token'] assert new_trace.version == trace_data['version'] assert new_trace.platform == trace_data['platform'] assert new_trace.events == trace_data['events'] assert new_trace.exceptions == [] def test_load_from_dict_with_exceptions(): for i in range(2): # validate a new trace is created each time number_of_events = 10 trace_data = { 'app_name': 'app_name', 'token': 'token', 'version': 'version', 'platform': 'platform', 'events': [EventMockWithCounter(i) for i in range(number_of_events)], 'exceptions': 'test_exceptions' } with mock.patch('epsagon.event.BaseEvent.load_from_dict', side_effect=(lambda x: x)): new_trace = epsagon.trace.Trace.load_from_dict(trace_data) assert new_trace.app_name == trace_data['app_name'] assert new_trace.token == trace_data['token'] assert new_trace.version == trace_data['version'] assert new_trace.platform == trace_data['platform'] assert new_trace.events == trace_data['events'] assert new_trace.exceptions == trace_data['exceptions'] def test_add_event(): event = EventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() for i in range(10): # verify we can add more then 1 event trace.add_event(event) assert event is trace.events[i] assert event.terminated def test_to_dict(): trace = epsagon.trace.Trace() expected_dict = { 'token': 'token', 'app_name': 'app_name', 'events': [EventMockWithCounter(i) for i in range(10)], 'exceptions': 'exceptions', 'version': 'version', 'platform': 'platform' } trace.token = expected_dict['token'] trace.app_name = expected_dict['app_name'] for event in [EventMockWithCounter(i) for i in range(10)]: trace.add_event(event) trace.exceptions = expected_dict['exceptions'] trace.version = expected_dict['version'] trace.platform = expected_dict['platform'] trace_dict = trace.to_dict() assert trace_dict == trace.to_dict() def test_custom_labels_sanity(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) trace.add_label('test_label', 'test_value') trace.add_label('test_label_2', 42) trace.add_label('test_label_3', 42.2) trace.add_label('test_label_4', True) # This is not an invalid label, but it won't be added because dict is empty. trace.add_label('test_label_invalid', {}) trace_metadata = trace.to_dict()['events'][0]['resource']['metadata'] assert trace_metadata.get('labels') is not None assert json.loads(trace_metadata['labels']) == { 'test_label': 'test_value', 'test_label_2': 42, 'test_label_3': 42.2, 'test_label_4': True, } def test_trace_url_sanity(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) trace_url = trace.get_trace_url() assert trace_url == TRACE_URL_PREFIX.format( id=event.resource['metadata']['trace_id'], start_time=int(event.start_time) ) def test_lambda_trace_url_sanity(): event = LambdaRunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) trace_url = trace.get_trace_url() assert trace_url == LAMBDA_TRACE_URL_PREFIX.format( aws_account=event.resource['metadata']['aws_account'], region=event.resource['metadata']['region'], function_name=event.resource['name'], request_id=event.event_id, request_time=int(event.start_time) ) @mock.patch('warnings.warn') def test_trace_url_no_runner(warnings_mock): trace = trace_factory.get_or_create_trace() result = trace.get_trace_url() warnings_mock.assert_called_once() assert result == '' def test_multi_value_labels_sanity(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) trace.add_label('test_label', { 'test2_label': 15, 'test3_label': 'test', 'test4_label': 15.12345, 'test5_label': False, 4: 'hey' }) trace_metadata = trace.to_dict()['events'][0]['resource']['metadata'] assert trace_metadata.get('labels') is not None assert json.loads(trace_metadata['labels']) == { 'test_label.test2_label': 15, 'test_label.test3_label': 'test', 'test_label.test4_label': 15.12345, 'test_label.test5_label': False, 'test_label.4': 'hey', } def test_set_error_sanity(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) msg = 'oops' trace.set_error(ValueError(msg)) assert trace.to_dict()['events'][0]['exception']['message'] == msg assert len(trace.to_dict()['events'][0]['exception']['traceback']) > 1 def test_set_error_with_traceback(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) msg = 'oops' traceback_data = 'test_value' trace.set_error(ValueError(msg), traceback_data=traceback_data) assert trace.to_dict()['events'][0]['exception']['message'] == msg assert ( trace.to_dict()['events'][0]['exception']['traceback'] == traceback_data ) def test_set_error_string(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) msg = 'oops' trace.set_error(msg) assert trace.to_dict()['events'][0]['exception']['message'] == msg assert trace.to_dict()['events'][0]['exception']['type'] == ( Exception.__name__ ) def test_custom_labels_override_trace(): event = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.clear_events() trace.set_runner(event) trace.add_label('test_label', 'test_value1') trace.add_label('test_label', 'test_value2') trace_metadata = trace.to_dict()['events'][0]['resource']['metadata'] assert trace_metadata.get('labels') is not None assert json.loads(trace_metadata['labels']) == {'test_label': 'test_value2'} def test_to_dict_empty(): trace = epsagon.trace.Trace() assert trace.to_dict() == { 'token': '', 'app_name': '', 'events': [], 'exceptions': [], 'version': epsagon.constants.__version__, 'platform': 'Python {}.{}'.format( sys.version_info.major, sys.version_info.minor ) } def test_set_timeout_handler_emtpy_context(): # Has no 'get_remaining_time_in_millis' attribute trace_factory.get_or_create_trace().set_timeout_handler({}) @mock.patch('urllib3.PoolManager.request') def test_runner_duration(_wrapped_post): runner = RunnerEventMock() runner.terminated = False trace = trace_factory.get_or_create_trace() trace.token = 'a' trace.set_runner(runner) time.sleep(0.2) trace_factory.send_traces() assert 0.2 < runner.duration < 0.3 @mock.patch('urllib3.PoolManager.request') def test_timeout_handler_called(wrapped_post): """ Sanity """ context = ContextMock(DEFAULT_SEND_TIMEOUT_MS * 1.1) runner = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.token = 'a' trace.set_timeout_handler(context) trace.set_runner(runner) time.sleep((DEFAULT_SEND_TIMEOUT_MS / 1000) * 1.5) trace.reset_timeout_handler() assert trace.trace_sent assert wrapped_post.called @mock.patch('urllib3.PoolManager.request') def test_timeout_send_not_called_twice(wrapped_post): """ In case of a timeout send trace, validate no trace is sent afterwards (if the flow continues) """ context = ContextMock(DEFAULT_SEND_TIMEOUT_MS * 1.1) runner = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.token = 'a' trace.set_timeout_handler(context) trace.set_runner(runner) time.sleep((DEFAULT_SEND_TIMEOUT_MS / 1000) * 1.5) trace.reset_timeout_handler() assert trace.trace_sent assert wrapped_post.call_count == 1 @mock.patch('urllib3.PoolManager.request') def test_timeout_happyflow_handler_call(wrapped_post): """ Test in case we already sent the traces on happy flow, that timeout handler call won't send them again. """ context = ContextMock(300) runner = RunnerEventMock() trace = trace_factory.get_or_create_trace() trace.set_runner(runner) trace.token = 'a' trace_factory.send_traces() trace.set_timeout_handler(context) time.sleep(0.5) trace.reset_timeout_handler() assert trace.trace_sent assert wrapped_post.call_count == 1 @mock.patch('urllib3.PoolManager.request') def test_send_traces_sanity(wrapped_post): trace = trace_factory.get_or_create_trace() trace_factory.send_traces() wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request') def test_send_traces_unicode(wrapped_post): trace = trace_factory.get_or_create_trace() runner = UnicodeReturnValueEventMock() trace.set_runner(runner) trace_factory.send_traces() wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict(), ensure_ascii=True), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request') def test_send_traces_no_token(wrapped_post): epsagon.init(token='', app_name='test_app') trace = trace_factory.get_or_create_trace() trace_factory.send_traces() wrapped_post.assert_not_called() @mock.patch('urllib3.PoolManager.request') def test_send_big_trace(wrapped_post): trace = trace_factory.get_or_create_trace() runner = RunnerEventMock() trace.set_runner(runner) for _ in range(2): trace.add_event(BigEventMock()) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 3 for event in trace.to_dict()['events']: if event['origin'] == 'runner': assert event['resource']['metadata']['is_trimmed'] wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request') def test_strong_keys_not_trimmed(wrapped_post): trace = trace_factory.get_or_create_trace() runner = RunnerEventMock() trace.set_runner(runner) for _ in range(2): trace.add_event(StrongKeysEventMock()) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 3 for event in trace.to_dict()['events']: if event['origin'] == 'runner': assert event['resource']['metadata']['is_trimmed'] else: assert 'region' in event['resource']['metadata'] assert 'aws_account' in event['resource']['metadata'] wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request') def test_send_invalid_return_value(wrapped_post): trace = trace_factory.get_or_create_trace() runner = InvalidReturnValueEventMock() trace.set_runner(runner) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 1 event = trace.to_dict()['events'][0] assert event['origin'] == 'runner' actual_return_value = event['resource']['metadata']['return_value'] assert actual_return_value == FAILED_TO_SERIALIZE_MESSAGE wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) def _assert_key_not_exist(data, ignored_key): for key, value in data.items(): assert key != ignored_key if isinstance(value, dict): _assert_key_not_exist(value, ignored_key) @mock.patch('urllib3.PoolManager.request') def test_return_value_key_to_ignore(wrapped_post): key_to_ignore = 'key_to_ignore_in_return_value' os.environ['EPSAGON_IGNORED_KEYS'] = key_to_ignore epsagon.utils.init( token='token', app_name='app-name', collector_url='collector', metadata_only=False ) trace = trace_factory.get_or_create_trace() return_value = { key_to_ignore: 'f', 's': { 'a': 1, 'b': 2, 'c': { 'f': 1, key_to_ignore: '1', 'g': { key_to_ignore: '1' } } } } copied_return_value = return_value.copy() runner = ReturnValueEventMock(return_value) trace.set_runner(runner) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 1 event = trace.to_dict()['events'][0] assert event['origin'] == 'runner' actual_return_value = event['resource']['metadata']['return_value'] _assert_key_not_exist(actual_return_value, key_to_ignore) # check that original return value hasn't been changed assert copied_return_value == return_value os.environ.pop('EPSAGON_IGNORED_KEYS') def test_whitelist_unit_tests(): key_to_allow = 'key_to_allow_in_return_value' os.environ['EPSAGON_ALLOWED_KEYS'] = key_to_allow epsagon.utils.init( token='token', app_name='app-name', collector_url='collector', metadata_only=False, ) trace = trace_factory.get_or_create_trace() test_array = [ ({}, {}), ({key_to_allow: 'b'}, {key_to_allow: 'b'}), ({'a': {'b': 'c'}, 'd': 'e'}, {}), ({'a': {'b': 'c'}, 'd': key_to_allow}, {}), ({'a': {key_to_allow: 'c'}, 'd': 'e'}, {'a': {key_to_allow: 'c'}}), ({key_to_allow: {'b': 'c'}, key_to_allow: 'e'}, {key_to_allow: {'b': 'c'}, key_to_allow: 'e'}), ( { key_to_allow: 'b', 'a': { key_to_allow: 'end-of-branch', 'd': { 'e': { 'f': 'end-of-branch' } }, 'e': { key_to_allow: { 'g': 'end-of-branch' }, 'g': { 'h': 'end-of-branch', 'i': { key_to_allow: 'end-of-branch' }, 'j': { 'k': { 'l': 'end-of-branch' } } } } } }, { key_to_allow: 'b', 'a': { key_to_allow: 'end-of-branch', 'e': { key_to_allow: { 'g': 'end-of-branch' }, 'g': { 'i': { key_to_allow: 'end-of-branch' }, } } } } ) ] for input_dict, expected_result in test_array: result = trace.get_dict_with_allow_keys(input_dict) assert result == expected_result os.environ.pop('EPSAGON_ALLOWED_KEYS') @mock.patch('urllib3.PoolManager.request') def test_whitelist_full_flow(wrapped_post): key_to_allow = 'key_to_allow_in_return_value' os.environ['EPSAGON_ALLOWED_KEYS'] = key_to_allow epsagon.utils.init( token='token', app_name='app-name', collector_url='collector', metadata_only=False ) trace = trace_factory.get_or_create_trace() input_dict, expected_dict = ( { key_to_allow: 'b', 'a': { key_to_allow: 'end-of-branch', 'd': { 'e': { 'f': 'end-of-branch' } }, 'e': { key_to_allow: { 'g': 'end-of-branch' }, 'g': { 'h': 'end-of-branch', 'i': { key_to_allow: 'end-of-branch' }, 'j': { 'k': { 'l': 'end-of-branch' } } } } } }, { key_to_allow: 'b', 'a': { key_to_allow: 'end-of-branch', 'e': { key_to_allow: { 'g': 'end-of-branch' }, 'g': { 'i': { key_to_allow: 'end-of-branch' }, } } } } ) copied_input_dict = input_dict.copy() runner = ReturnValueEventMock(input_dict) trace.set_runner(runner) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 1 event = trace.to_dict()['events'][0] assert event['origin'] == 'runner' actual_return_value = event['resource']['metadata']['return_value'] assert actual_return_value == expected_dict # check that original return value hasn't been changed assert copied_input_dict == input_dict wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) os.environ.pop('EPSAGON_ALLOWED_KEYS') @mock.patch('urllib3.PoolManager.request') def test_metadata_field_too_big(wrapped_post): trace = trace_factory.get_or_create_trace() max_size = MAX_METADATA_FIELD_SIZE_LIMIT return_value = {'1': 'a' * (max_size + 1)} runner = ReturnValueEventMock(return_value) trace.set_runner(runner) trace_factory.send_traces() assert len(trace.to_dict()['events']) == 1 event = trace.to_dict()['events'][0] assert event['origin'] == 'runner' actual_return_value = event['resource']['metadata']['return_value'] assert actual_return_value == json.dumps(return_value)[:max_size] wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request', side_effect=urllib3.exceptions.TimeoutError) def test_send_traces_timeout(wrapped_post): trace = trace_factory.get_or_create_trace() trace_factory.send_traces() wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request', side_effect=Exception) def test_send_traces_post_error(wrapped_post): trace = trace_factory.get_or_create_trace() trace_factory.send_traces() wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict()), timeout=epsagon.constants.SEND_TIMEOUT, ) default_http = HTTPTransport('collector', 'token') @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_sanity(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url='collector', metadata_only=False ) wrapped_init.assert_called_with( token='token', app_name='app-name', collector_url='collector', metadata_only=False, disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1, ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_empty_app_name(wrapped_init, _create): epsagon.utils.init( token='token', app_name='', collector_url='collector', metadata_only=False, use_ssl=True, ) wrapped_init.assert_called_with( token='token', app_name='', collector_url='collector', metadata_only=False, disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1, ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_empty_collector_url(wrapped_init, _create): epsagon.utils.init(token='token', app_name='app-name', metadata_only=False) wrapped_init.assert_called_with( token='token', app_name='app-name', collector_url=get_tc_url(True), metadata_only=False, disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1, ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_no_ssl_no_url(wrapped_init, _create): epsagon.utils.init(token='token', app_name='app-name', metadata_only=False, use_ssl=False) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url=TRACE_COLLECTOR_URL.format( region=DEFAULT_REGION, protocol="http://" ), disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1, ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_ssl_no_url(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', metadata_only=False, use_ssl=True ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url=TRACE_COLLECTOR_URL.format( region=DEFAULT_REGION, protocol="https://" ), disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1, ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_ssl_with_url(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, use_ssl=True, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_no_ssl_with_url(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, use_ssl=False ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_ignored_urls_env(wrapped_init, _create): os.environ['EPSAGON_URLS_TO_IGNORE'] = 'test.com,test2.com' epsagon.utils.init( token='token', app_name='app-name', collector_url='collector', metadata_only=False ) wrapped_init.assert_called_with( token='token', app_name='app-name', collector_url='collector', metadata_only=False, disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=['test.com', 'test2.com'], keys_to_ignore=None, keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) os.environ.pop('EPSAGON_URLS_TO_IGNORE') @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_keys_to_ignore(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, keys_to_ignore=['a', 'b', 'c'] ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=['a', 'b', 'c'], keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_keys_to_ignore_env(wrapped_init, _create): os.environ['EPSAGON_IGNORED_KEYS'] = 'a,b,c' epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, keys_to_ignore=['123', '321', '123'] ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, keys_to_ignore=['a', 'b', 'c'], keys_to_allow=None, transport=default_http, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) os.environ.pop('EPSAGON_IGNORED_KEYS') @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_split_on_send(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, split_on_send=True ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=True, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_split_on_send_env(wrapped_init, _create): os.environ['EPSAGON_SPLIT_ON_SEND'] = 'TRUE' epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=True, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) os.environ.pop('EPSAGON_SPLIT_ON_SEND') @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_logging_disabled_on_lambda(wrapped_init, _create): os.environ['AWS_LAMBDA_FUNCTION_NAME'] = 'func-name' epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=False, step_dict_output_path=None, sample_rate=1 ) os.environ.pop('AWS_LAMBDA_FUNCTION_NAME') @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_step_dict_output_env(wrapped_init, _create): os.environ['EPSAGON_STEPS_OUTPUT_PATH'] = 'a.b.c' epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=False, propagate_lambda_id=False, logging_tracing_enabled=True, step_dict_output_path=['a', 'b', 'c'], sample_rate=1 ) os.environ.pop('EPSAGON_STEPS_OUTPUT_PATH') @mock.patch('urllib3.PoolManager.request', side_effect=urllib3.exceptions.TimeoutError) def test_event_with_datetime(wrapped_post): epsagon.utils.init(token='token', app_name='app-name', collector_url='collector') trace = trace_factory.get_or_create_trace() event = EventMock() event.resource['metadata'] = datetime.fromtimestamp(1000) trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_with( 'POST', 'collector', body=json.dumps(trace.to_dict(), cls=TraceEncoder), timeout=epsagon.constants.SEND_TIMEOUT, ) @mock.patch('urllib3.PoolManager.request') def test_send_on_error_only_off_with_error(wrapped_post): trace = trace_factory.get_or_create_trace() trace.token = 'a' trace.runner = RunnerEventMock() trace.runner.error_code = ErrorCode.ERROR event = EventMock() event.resource['metadata'] = datetime.fromtimestamp(1000) trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('urllib3.PoolManager.request') def test_send_on_error_only_off_no_error(wrapped_post): trace = trace_factory.get_or_create_trace() trace.token = 'a' trace.runner = RunnerEventMock() trace.runner.error_code = ErrorCode.OK event = EventMock() event.resource['metadata'] = datetime.fromtimestamp(1000) trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('urllib3.PoolManager.request') def test_send_on_error_only_no_error(wrapped_post): trace = trace_factory.get_or_create_trace() trace.send_trace_only_on_error = True trace.runner = RunnerEventMock() trace.runner.error_code = ErrorCode.OK trace.token = 'a' event = EventMock() event.resource['metadata'] = datetime.fromtimestamp(1000) trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_not_called() @mock.patch('urllib3.PoolManager.request') def test_send_on_error_only_with_error(wrapped_post): trace = trace_factory.get_or_create_trace() trace.send_trace_only_on_error = True trace.runner = RunnerEventMock() trace.runner.error_code = ErrorCode.ERROR trace.token = 'a' event = EventMock() event.resource['metadata'] = datetime.fromtimestamp(1000) trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('urllib3.PoolManager.request') def test_send_with_split_on_big_trace(wrapped_post, monkeypatch): # Should be low enough to force trace split. monkeypatch.setenv('EPSAGON_MAX_TRACE_SIZE', '500') trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.add_event(trace.runner) trace.token = 'a' trace.split_on_send = True for _ in range(10): event = EventMock() trace.add_event(event) trace_factory.send_traces() assert wrapped_post.call_count == 3 @mock.patch('urllib3.PoolManager.request') def test_send_with_split_on_small_trace(wrapped_post, monkeypatch): # Should be low enough to force trace split. monkeypatch.setenv('EPSAGON_MAX_TRACE_SIZE', '500') trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.add_event(trace.runner) trace.token = 'a' trace.split_on_send = True event = EventMock() trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('urllib3.PoolManager.request') def test_send_with_split_off(wrapped_post, monkeypatch): # Should be low enough to force trace split. monkeypatch.setenv('EPSAGON_MAX_TRACE_SIZE', '500') trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.add_event(trace.runner) trace.token = 'a' trace.split_on_send = False for _ in range(10): event = EventMock() trace.add_event(event) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('random.uniform', side_effect=lambda x, y: 0.5) @mock.patch('urllib3.PoolManager.request') def test_send_with_sample_rate_no_error(wrapped_post, _): trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.sample_rate = 0.6 trace.runner.error_code = ErrorCode.OK trace.add_event(trace.runner) trace.token = 'a' trace.add_event(EventMock()) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('random.uniform', side_effect=lambda x, y: 0.4) @mock.patch('urllib3.PoolManager.request') def test_no_send_with_sample_rate_no_error(wrapped_post, _): trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.sample_rate = 0.3 trace.runner.error_code = ErrorCode.OK trace.add_event(trace.runner) trace.token = 'a' trace.add_event(EventMock()) trace_factory.send_traces() wrapped_post.assert_not_called() @mock.patch('random.uniform', side_effect=lambda x, y: 0.4) @mock.patch('urllib3.PoolManager.request') def test_send_with_sample_rate_bad_with_error(wrapped_post, _): trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.sample_rate = 0.3 trace.runner.error_code = ErrorCode.ERROR trace.add_event(trace.runner) trace.token = 'a' trace.add_event(EventMock()) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('random.uniform', side_effect=lambda x, y: 0.5) @mock.patch('urllib3.PoolManager.request') def test_send_with_sample_good_rate_with_error(wrapped_post, _): trace = trace_factory.get_or_create_trace() trace.runner = RunnerEventMock() trace.sample_rate = 0.6 trace.runner.error_code = ErrorCode.ERROR trace.add_event(trace.runner) trace.token = 'a' trace.add_event(EventMock()) trace_factory.send_traces() wrapped_post.assert_called_once() @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_propagate_lambda_identifier_env(wrapped_init, _create, monkeypatch): monkeypatch.setenv('EPSAGON_PROPAGATE_LAMBDA_ID', 'TRUE') epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=False, propagate_lambda_id=True, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_propagate_lambda_identifier_init(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, propagate_lambda_id=True, ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=False, propagate_lambda_id=True, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=1 ) @mock.patch('epsagon.utils.create_transport', side_effect=lambda x, y: default_http) @mock.patch('epsagon.trace.TraceFactory.initialize') def test_init_sample_rate_init(wrapped_init, _create): epsagon.utils.init( token='token', app_name='app-name', collector_url="http://abc.com", metadata_only=False, propagate_lambda_id=True, sample_rate=0.3 ) wrapped_init.assert_called_with( token='token', app_name='app-name', metadata_only=False, collector_url="http://abc.com", disable_timeout_send=False, debug=False, send_trace_only_on_error=False, url_patterns_to_ignore=None, transport=default_http, keys_to_ignore=None, keys_to_allow=None, split_on_send=False, propagate_lambda_id=True, logging_tracing_enabled=True, step_dict_output_path=None, sample_rate=0.3 )
31.395652
87
0.640355
6,070
50,547
4.995058
0.057496
0.022625
0.025231
0.023549
0.800099
0.762236
0.75442
0.737302
0.731563
0.727375
0
0.006579
0.245198
50,547
1,609
88
31.415165
0.788116
0.016875
0
0.666908
0
0
0.119466
0.048246
0
0
0
0
0.093931
1
0.062139
false
0.000723
0.012283
0.00289
0.087428
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
4c0f7cd05989d446abf896512d775b9c0bc16094
23
py
Python
clovaTTS/__init__.py
zebehn/clovaTTS
a44ce9c8854e3188f3e4593d83026b96e8b8a99b
[ "MIT" ]
null
null
null
clovaTTS/__init__.py
zebehn/clovaTTS
a44ce9c8854e3188f3e4593d83026b96e8b8a99b
[ "MIT" ]
null
null
null
clovaTTS/__init__.py
zebehn/clovaTTS
a44ce9c8854e3188f3e4593d83026b96e8b8a99b
[ "MIT" ]
null
null
null
from .clovaTTS import *
23
23
0.782609
3
23
6
1
0
0
0
0
0
0
0
0
0
0
0
0.130435
23
1
23
23
0.9
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
4c5966894251f3599a0aa55e394b5bde225767ca
188
py
Python
ic/management.py
neeboo/ic-py
41b3bd7b961a259fddc732ba95bc5136698ca9a4
[ "MIT" ]
1
2022-03-19T23:23:53.000Z
2022-03-19T23:23:53.000Z
ic/management.py
neeboo/ic-py
41b3bd7b961a259fddc732ba95bc5136698ca9a4
[ "MIT" ]
null
null
null
ic/management.py
neeboo/ic-py
41b3bd7b961a259fddc732ba95bc5136698ca9a4
[ "MIT" ]
null
null
null
# management canister interface `aaaaa-aa` # wrap basic interfaces provided by the management canister: # create_canister, install_code, canister_status, etc. class Management: pass
23.5
60
0.787234
23
188
6.304348
0.782609
0.248276
0
0
0
0
0
0
0
0
0
0
0.148936
188
7
61
26.857143
0.90625
0.808511
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
d5b47a1fc267eb4034383fc902ba35bb523990f8
5,129
py
Python
python/test/feature_assembler_test.py
xinglinsky/vmaf
55e60bd72eefef6d807bc8650f942349a19139f9
[ "BSD-2-Clause-Patent" ]
2,874
2016-06-06T16:11:37.000Z
2022-03-31T10:10:22.000Z
python/test/feature_assembler_test.py
REO-RAO/vmaf
e768a2be57116c76bf33be7f8ee3566d8b774664
[ "BSD-2-Clause-Patent" ]
619
2016-06-07T19:30:53.000Z
2022-03-31T16:36:05.000Z
python/test/feature_assembler_test.py
REO-RAO/vmaf
e768a2be57116c76bf33be7f8ee3566d8b774664
[ "BSD-2-Clause-Patent" ]
723
2016-06-05T02:44:33.000Z
2022-03-31T03:29:12.000Z
from __future__ import absolute_import __copyright__ = "Copyright 2016-2020, Netflix, Inc." __license__ = "BSD+Patent" import unittest from vmaf.core.feature_assembler import FeatureAssembler from vmaf.core.feature_extractor import VmafFeatureExtractor, FeatureExtractor, \ MomentFeatureExtractor from test.testutil import set_default_576_324_videos_for_testing class FeatureAssemblerTest(unittest.TestCase): def tearDown(self): if hasattr(self, 'fassembler'): self.fassembler.remove_results() pass def test_get_fextractor_subclasses(self): fextractor_subclasses = FeatureExtractor.get_subclasses_recursively() self.assertTrue(VmafFeatureExtractor in fextractor_subclasses) self.assertTrue(MomentFeatureExtractor in fextractor_subclasses) def test_feature_assembler_whole_feature(self): ref_path, dis_path, asset, asset_original = set_default_576_324_videos_for_testing() self.fassembler = FeatureAssembler( feature_dict={'VMAF_feature': 'all'}, feature_option_dict=None, assets=[asset, asset_original], logger=None, fifo_mode=True, delete_workdir=True, result_store=None, optional_dict=None, optional_dict2=None, parallelize=True, processes=None, ) self.fassembler.run() results = self.fassembler.results self.assertAlmostEqual(results[0]['VMAF_feature_vif_score'], 0.44609306249999997, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_adm2_score'], 0.9345149030293786, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_ansnr_score'], 23.509571520833333, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_vif_score'], 1.0, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_adm2_score'], 1.0, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_ansnr_score'], 31.271439270833337, places=4) def test_feature_assembler_whole_feature_processes(self): ref_path, dis_path, asset, asset_original = set_default_576_324_videos_for_testing() self.fassembler = FeatureAssembler( feature_dict={'VMAF_feature': 'all'}, feature_option_dict=None, assets=[asset, asset_original], logger=None, fifo_mode=True, delete_workdir=True, result_store=None, optional_dict=None, optional_dict2=None, parallelize=True, processes=1, ) self.fassembler.run() results = self.fassembler.results self.assertAlmostEqual(results[0]['VMAF_feature_vif_score'], 0.44609306249999997, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_adm2_score'], 0.9345149030293786, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_ansnr_score'], 23.509571520833333, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_vif_score'], 1.0, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_adm2_score'], 1.0, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_ansnr_score'], 31.271439270833337, places=4) def test_feature_assembler_selected_atom_feature(self): ref_path, dis_path, asset, asset_original = set_default_576_324_videos_for_testing() self.fassembler = FeatureAssembler( feature_dict={'VMAF_feature': ['vif', 'motion']}, feature_option_dict=None, assets=[asset, asset_original], logger=None, fifo_mode=True, delete_workdir=True, result_store=None, optional_dict=None, optional_dict2=None, parallelize=True, ) self.fassembler.run() results = self.fassembler.results self.assertAlmostEqual(results[0]['VMAF_feature_vif_score'], 0.44609306249999997, places=4) self.assertAlmostEqual(results[0]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_vif_score'], 1.0, places=4) self.assertAlmostEqual(results[1]['VMAF_feature_motion_score'], 4.0498253541666669, places=4) with self.assertRaises(KeyError): results[0]['VMAF_feature_ansnr_scores'] with self.assertRaises(KeyError): results[0]['VMAF_feature_ansnr_score'] with self.assertRaises(KeyError): results[0]['VMAF_feature_adm_scores'] with self.assertRaises(KeyError): results[0]['VMAF_feature_adm_score'] if __name__ == '__main__': unittest.main(verbosity=2)
39.453846
101
0.690583
566
5,129
5.938163
0.178445
0.088367
0.166617
0.141625
0.806605
0.806605
0.793216
0.783695
0.783695
0.719429
0
0.086967
0.208618
5,129
129
102
39.75969
0.741069
0
0
0.670103
0
0
0.131995
0.109963
0
0
0
0
0.268041
1
0.051546
false
0.010309
0.051546
0
0.113402
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
d5dae044247dab055035ba025eb45ae023c3bb0f
175
py
Python
src/graph_transpiler/webdnn/backend/webgpu/kernels/abs.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
src/graph_transpiler/webdnn/backend/webgpu/kernels/abs.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgpu/kernels/abs.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
from webdnn.backend.webgpu.kernels.elementwise import register_elementwise_kernel from webdnn.graph.operators.abs import Abs register_elementwise_kernel(Abs, "y = abs(x0);")
35
81
0.834286
24
175
5.916667
0.583333
0.140845
0.352113
0
0
0
0
0
0
0
0
0.006173
0.074286
175
4
82
43.75
0.87037
0
0
0
0
0
0.068571
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
d5e664f8a8dc4e422f398572b8ff121b6d1f86bf
144
py
Python
contato/views.py
telemac-dev/curso-django
1e763400d6da344b2d9533c2454f1fb9b59ac1a2
[ "MIT" ]
null
null
null
contato/views.py
telemac-dev/curso-django
1e763400d6da344b2d9533c2454f1fb9b59ac1a2
[ "MIT" ]
null
null
null
contato/views.py
telemac-dev/curso-django
1e763400d6da344b2d9533c2454f1fb9b59ac1a2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse def index(requests): return HttpResponse('<h1>Hello World</h1>')
20.571429
47
0.770833
19
144
5.842105
0.736842
0.18018
0
0
0
0
0
0
0
0
0
0.016
0.131944
144
6
48
24
0.872
0
0
0
0
0
0.138889
0
0
0
0
0
0
1
0.25
false
0
0.5
0.25
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
6
91373f4dfdbb721c2e93d1c616980311afc36a55
99
py
Python
src/frontend/config.py
riteme/limoce-go
b61f9c85c8d3fe668ce4b2530432a42c09311535
[ "MIT" ]
4
2016-12-27T08:31:28.000Z
2021-04-20T23:02:15.000Z
src/frontend/config.py
riteme/limoce-go
b61f9c85c8d3fe668ce4b2530432a42c09311535
[ "MIT" ]
null
null
null
src/frontend/config.py
riteme/limoce-go
b61f9c85c8d3fe668ce4b2530432a42c09311535
[ "MIT" ]
2
2016-03-20T10:22:54.000Z
2017-12-29T05:24:01.000Z
SERVER_HOST_1 = "127.0.0.1" SERVER_PORT_1 = 2779 SERVER_HOST_2 = "127.0.0.1" SERVER_PORT_2 = 2775
16.5
27
0.727273
22
99
2.909091
0.409091
0.3125
0.15625
0.1875
0.5
0.5
0
0
0
0
0
0.27907
0.131313
99
5
28
19.8
0.465116
0
0
0
0
0
0.181818
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
e66fbb3ea4245e68df16370818054f56e0ef783a
107
py
Python
src/polls/main/__init__.py
zgoda/polls
99ccc5159c26546ae3bac23bb1052cd128110f15
[ "MIT" ]
null
null
null
src/polls/main/__init__.py
zgoda/polls
99ccc5159c26546ae3bac23bb1052cd128110f15
[ "MIT" ]
null
null
null
src/polls/main/__init__.py
zgoda/polls
99ccc5159c26546ae3bac23bb1052cd128110f15
[ "MIT" ]
null
null
null
from flask import Blueprint main_bp = Blueprint('main', __name__) from . import views # noqa: F401,E402
17.833333
38
0.738318
15
107
4.933333
0.733333
0.351351
0
0
0
0
0
0
0
0
0
0.067416
0.168224
107
5
39
21.4
0.764045
0.140187
0
0
0
0
0.044444
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.666667
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
1
0
6
e67e8b36979c5ed76c2ad22bad29edb2a3630aad
31
py
Python
src/bpyutils/util/__init__.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
1
2022-02-01T04:50:22.000Z
2022-02-01T04:50:22.000Z
src/bpyutils/util/__init__.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
2
2021-12-07T10:40:44.000Z
2021-12-23T13:42:07.000Z
src/bpyutils/util/__init__.py
achillesrasquinha/bpyutils
84bbbf1dc37629413fbc14b909188a54995e95a1
[ "MIT" ]
null
null
null
from bpyutils.util import _dict
31
31
0.870968
5
31
5.2
1
0
0
0
0
0
0
0
0
0
0
0
0.096774
31
1
31
31
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
e6f6e8258cfe3356927cfc87e3de6f7f1968d15c
129
py
Python
tests/__init__.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
tests/__init__.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
tests/__init__.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
""" A set of functions used by most tests """ import logging # Disable logging for unit tests logging.disable(logging.CRITICAL)
16.125
37
0.75969
19
129
5.157895
0.736842
0.285714
0.428571
0
0
0
0
0
0
0
0
0
0.155039
129
7
38
18.428571
0.899083
0.534884
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
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
fc1b6681e7c1a3869d371989da5d69b73813c4a8
161
py
Python
actoon/models/effectmodel.py
ACTOON-ACD2019/backend_django
04cd62a5ccedc0bc65baeca89c5630c7cef9edba
[ "MIT" ]
null
null
null
actoon/models/effectmodel.py
ACTOON-ACD2019/backend_django
04cd62a5ccedc0bc65baeca89c5630c7cef9edba
[ "MIT" ]
28
2019-11-28T12:11:02.000Z
2022-02-10T09:11:30.000Z
actoon/models/effectmodel.py
ACTOON-ACD2019/backend_django
04cd62a5ccedc0bc65baeca89c5630c7cef9edba
[ "MIT" ]
null
null
null
from django.db import models class Effect(models.Model): name = models.CharField(max_length=50) required_parameters = models.CharField(max_length=255)
23
58
0.770186
22
161
5.5
0.727273
0.247934
0.297521
0.396694
0
0
0
0
0
0
0
0.035971
0.136646
161
6
59
26.833333
0.834532
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
6
fc1f76e2a9eccee07829e59a8288ab6f43a70b94
21
py
Python
AMAO/apps/Corretor/models/__init__.py
arruda/amao
83648aa2c408b1450d721b3072dc9db4b53edbb8
[ "MIT" ]
2
2017-04-26T14:08:02.000Z
2017-09-01T13:10:17.000Z
AMAO/apps/Corretor/models/__init__.py
arruda/amao
83648aa2c408b1450d721b3072dc9db4b53edbb8
[ "MIT" ]
null
null
null
AMAO/apps/Corretor/models/__init__.py
arruda/amao
83648aa2c408b1450d721b3072dc9db4b53edbb8
[ "MIT" ]
null
null
null
from retorno import *
21
21
0.809524
3
21
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
21
1
21
21
0.944444
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
fc2050a89f122e1ed17a23114edd949f7bffdd89
1,745
py
Python
cogs/GlobalFunctions.py
V3LKR0W/nobot
b8fbbc255dfe8727680be317961e9b81ae8f6497
[ "MIT" ]
null
null
null
cogs/GlobalFunctions.py
V3LKR0W/nobot
b8fbbc255dfe8727680be317961e9b81ae8f6497
[ "MIT" ]
null
null
null
cogs/GlobalFunctions.py
V3LKR0W/nobot
b8fbbc255dfe8727680be317961e9b81ae8f6497
[ "MIT" ]
1
2021-11-18T03:16:48.000Z
2021-11-18T03:16:48.000Z
import discord, datetime from datetime import date # Global Cog functions async def errorEmbed(ctx, title, description): embed = discord.Embed( title = str(title), description = str(description), color = 0xD21919, ) embed.set_footer(text='NoBot | '+str(date.today().strftime('%m/%d/%y'))) await ctx.send(embed=embed) async def successEmbed(ctx, title, description): embed = discord.Embed( title = str(title), description = str(description), color = 0x39E01B, ) embed.set_footer(text='NoBot | '+str(date.today().strftime('%m/%d/%y'))+' | •'+str(ctx.guild)+' •'+str(ctx.channel.name)) await ctx.send(embed=embed) async def returnEmbed(ctx, title, description): embed = discord.Embed( title = str(title), description = str(description), color = 0x0835FF, ) embed.set_footer(text='NoBot | '+str(date.today().strftime('%m/%d/%y'))+' | •'+str(ctx.guild)+' •'+str(ctx.channel.name)) await ctx.send(embed=embed) async def messageReturnEmbed(member, title, description): embed = discord.Embed( title = str(title), description = str(description), color = 0x0835FF, ) embed.set_footer(text='NoBot | '+str(date.today().strftime('%m/%d/%y'))) await member.send(embed=embed) async def messageErrorEmbed(member, title, description): embed = discord.Embed( title = str(title), description = str(description), color = 0xD21919, ) embed.set_footer(text='NoBot | '+str(date.today().strftime('%m/%d/%y'))) await member.send(embed=embed)
35.612245
126
0.582808
198
1,745
5.131313
0.20202
0.15748
0.103346
0.137795
0.857283
0.849409
0.849409
0.824803
0.824803
0.824803
0
0.021012
0.26361
1,745
49
127
35.612245
0.766537
0.011461
0
0.690476
0
0
0.054893
0
0
0
0.023866
0
0
1
0
false
0
0.047619
0
0.047619
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
fc2ad243d1b12ef6c0cd08d291444bb7a3f6798b
101
py
Python
akarsh_portfolio/portfolio/views.py
akarsh-trellissoft/akarsh_portfolio
58f272fc60057fb82c3da301e3e5d0558a0f87ee
[ "MIT" ]
null
null
null
akarsh_portfolio/portfolio/views.py
akarsh-trellissoft/akarsh_portfolio
58f272fc60057fb82c3da301e3e5d0558a0f87ee
[ "MIT" ]
null
null
null
akarsh_portfolio/portfolio/views.py
akarsh-trellissoft/akarsh_portfolio
58f272fc60057fb82c3da301e3e5d0558a0f87ee
[ "MIT" ]
null
null
null
from django.shortcuts import render def portfolio(request): return render(request,'index.html')
20.2
39
0.772277
13
101
6
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.128713
101
4
40
25.25
0.886364
0
0
0
0
0
0.09901
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
6
fc3e8eb1d39ed82863ea84f88dce2c3ee3740bd1
27,282
py
Python
models_all_solvable2/no7_ar5_1.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
7
2019-05-08T19:14:34.000Z
2021-12-24T00:00:40.000Z
models_all_solvable2/no7_ar5_1.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_all_solvable2/no7_ar5_1.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
2
2020-05-21T22:15:51.000Z
2020-06-02T23:02:08.000Z
# MINLP written by GAMS Convert at 05/15/20 00:50:54 # # Equation counts # Total E G L N X C B # 270 2 2 266 0 0 0 0 # # Variable counts # x b i s1s s2s sc si # Total cont binary integer sos1 sos2 scont sint # 113 71 0 42 0 0 0 0 # FX 0 0 0 0 0 0 0 0 # # Nonzero counts # Total const NL DLL # 1061 1047 14 0 # # Reformulation has removed 1 variable and 1 equation from pyomo.environ import * model = m = ConcreteModel() m.i1 = Var(within=Integers,bounds=(0,100),initialize=0) m.i2 = Var(within=Integers,bounds=(0,100),initialize=0) m.i3 = Var(within=Integers,bounds=(0,100),initialize=0) m.i4 = Var(within=Integers,bounds=(0,100),initialize=0) m.i5 = Var(within=Integers,bounds=(0,100),initialize=0) m.i6 = Var(within=Integers,bounds=(0,100),initialize=0) m.i7 = Var(within=Integers,bounds=(0,100),initialize=0) m.i8 = Var(within=Integers,bounds=(0,100),initialize=0) m.i9 = Var(within=Integers,bounds=(0,100),initialize=0) m.i10 = Var(within=Integers,bounds=(0,100),initialize=0) m.i11 = Var(within=Integers,bounds=(0,100),initialize=0) m.i12 = Var(within=Integers,bounds=(0,100),initialize=0) m.i13 = Var(within=Integers,bounds=(0,100),initialize=0) m.i14 = Var(within=Integers,bounds=(0,100),initialize=0) m.i15 = Var(within=Integers,bounds=(0,100),initialize=0) m.i16 = Var(within=Integers,bounds=(0,100),initialize=0) m.i17 = Var(within=Integers,bounds=(0,100),initialize=0) m.i18 = Var(within=Integers,bounds=(0,100),initialize=0) m.i19 = Var(within=Integers,bounds=(0,100),initialize=0) m.i20 = Var(within=Integers,bounds=(0,100),initialize=0) m.i21 = Var(within=Integers,bounds=(0,100),initialize=0) m.i22 = Var(within=Integers,bounds=(0,100),initialize=0) m.i23 = Var(within=Integers,bounds=(0,100),initialize=0) m.i24 = Var(within=Integers,bounds=(0,100),initialize=0) m.i25 = Var(within=Integers,bounds=(0,100),initialize=0) m.i26 = Var(within=Integers,bounds=(0,100),initialize=0) m.i27 = Var(within=Integers,bounds=(0,100),initialize=0) m.i28 = Var(within=Integers,bounds=(0,100),initialize=0) m.i29 = Var(within=Integers,bounds=(0,100),initialize=0) m.i30 = Var(within=Integers,bounds=(0,100),initialize=0) m.i31 = Var(within=Integers,bounds=(0,100),initialize=0) m.i32 = Var(within=Integers,bounds=(0,100),initialize=0) m.i33 = Var(within=Integers,bounds=(0,100),initialize=0) m.i34 = Var(within=Integers,bounds=(0,100),initialize=0) m.i35 = Var(within=Integers,bounds=(0,100),initialize=0) m.i36 = Var(within=Integers,bounds=(0,100),initialize=0) m.i37 = Var(within=Integers,bounds=(0,100),initialize=0) m.i38 = Var(within=Integers,bounds=(0,100),initialize=0) m.i39 = Var(within=Integers,bounds=(0,100),initialize=0) m.i40 = Var(within=Integers,bounds=(0,100),initialize=0) m.i41 = Var(within=Integers,bounds=(0,100),initialize=0) m.i42 = Var(within=Integers,bounds=(0,100),initialize=0) m.x44 = Var(within=Reals,bounds=(None,None),initialize=0) m.x45 = Var(within=Reals,bounds=(None,None),initialize=0) m.x46 = Var(within=Reals,bounds=(None,None),initialize=0) m.x47 = Var(within=Reals,bounds=(None,None),initialize=0) m.x48 = Var(within=Reals,bounds=(None,None),initialize=0) m.x49 = Var(within=Reals,bounds=(None,None),initialize=0) m.x50 = Var(within=Reals,bounds=(None,None),initialize=0) m.x51 = Var(within=Reals,bounds=(None,None),initialize=0) m.x52 = Var(within=Reals,bounds=(None,None),initialize=0) m.x53 = Var(within=Reals,bounds=(None,None),initialize=0) m.x54 = Var(within=Reals,bounds=(None,None),initialize=0) m.x55 = Var(within=Reals,bounds=(None,None),initialize=0) m.x56 = Var(within=Reals,bounds=(None,None),initialize=0) m.x57 = Var(within=Reals,bounds=(None,None),initialize=0) m.x58 = Var(within=Reals,bounds=(None,None),initialize=0) m.x59 = Var(within=Reals,bounds=(None,None),initialize=0) m.x60 = Var(within=Reals,bounds=(None,None),initialize=0) m.x61 = Var(within=Reals,bounds=(None,None),initialize=0) m.x62 = Var(within=Reals,bounds=(None,None),initialize=0) m.x63 = Var(within=Reals,bounds=(None,None),initialize=0) m.x64 = Var(within=Reals,bounds=(None,None),initialize=0) m.x65 = Var(within=Reals,bounds=(None,None),initialize=0) m.x66 = Var(within=Reals,bounds=(1.7889,8.54),initialize=1.7889) m.x67 = Var(within=Reals,bounds=(1.7889,8.54),initialize=1.7889) m.x68 = Var(within=Reals,bounds=(None,None),initialize=0) m.x69 = Var(within=Reals,bounds=(1.8735,8.9443),initialize=1.8735) m.x70 = Var(within=Reals,bounds=(1.8735,8.9443),initialize=1.8735) m.x71 = Var(within=Reals,bounds=(None,None),initialize=0) m.x72 = Var(within=Reals,bounds=(1.7889,8.54),initialize=1.7889) m.x73 = Var(within=Reals,bounds=(None,None),initialize=0) m.x74 = Var(within=Reals,bounds=(1.8735,8.9443),initialize=1.8735) m.x75 = Var(within=Reals,bounds=(None,None),initialize=0) m.x76 = Var(within=Reals,bounds=(2.7692,8.54),initialize=2.7692) m.x77 = Var(within=Reals,bounds=(4.2155,13),initialize=4.2155) m.x78 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x79 = Var(within=Reals,bounds=(None,None),initialize=0) m.x80 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x81 = Var(within=Reals,bounds=(None,None),initialize=0) m.x82 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x83 = Var(within=Reals,bounds=(None,None),initialize=0) m.x84 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x85 = Var(within=Reals,bounds=(None,None),initialize=0) m.x86 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x87 = Var(within=Reals,bounds=(1.3416,6.7082),initialize=1.3416) m.x88 = Var(within=Reals,bounds=(None,None),initialize=0) m.x89 = Var(within=Reals,bounds=(None,None),initialize=0) m.x90 = Var(within=Reals,bounds=(None,None),initialize=0) m.x91 = Var(within=Reals,bounds=(None,None),initialize=0) m.x92 = Var(within=Reals,bounds=(None,None),initialize=0) m.x93 = Var(within=Reals,bounds=(None,None),initialize=0) m.x94 = Var(within=Reals,bounds=(None,None),initialize=0) m.x95 = Var(within=Reals,bounds=(None,None),initialize=0) m.x96 = Var(within=Reals,bounds=(None,None),initialize=0) m.x97 = Var(within=Reals,bounds=(None,None),initialize=0) m.x98 = Var(within=Reals,bounds=(None,None),initialize=0) m.x99 = Var(within=Reals,bounds=(None,None),initialize=0) m.x100 = Var(within=Reals,bounds=(None,None),initialize=0) m.x101 = Var(within=Reals,bounds=(None,None),initialize=0) m.x102 = Var(within=Reals,bounds=(None,None),initialize=0) m.x103 = Var(within=Reals,bounds=(None,None),initialize=0) m.x104 = Var(within=Reals,bounds=(None,None),initialize=0) m.x105 = Var(within=Reals,bounds=(None,None),initialize=0) m.x106 = Var(within=Reals,bounds=(None,None),initialize=0) m.x107 = Var(within=Reals,bounds=(None,None),initialize=0) m.x108 = Var(within=Reals,bounds=(None,None),initialize=0) m.x109 = Var(within=Reals,bounds=(None,None),initialize=0) m.x110 = Var(within=Reals,bounds=(None,None),initialize=0) m.x111 = Var(within=Reals,bounds=(None,None),initialize=0) m.x112 = Var(within=Reals,bounds=(None,None),initialize=0) m.x113 = Var(within=Reals,bounds=(None,None),initialize=0) m.obj = Objective(expr= 5*m.x44 + 5*m.x45 + m.x46 + m.x47 + 3*m.x48 + 3*m.x49 + m.x50 + m.x51 + 2*m.x52 + 2*m.x53 + m.x54 + m.x55 + 4*m.x56 + 4*m.x57 + 2*m.x58 + 2*m.x59 + m.x60 + m.x61, sense=minimize) m.c2 = Constraint(expr= m.x62 - m.x63 >= 0) m.c3 = Constraint(expr= m.x64 - m.x65 >= 0) m.c4 = Constraint(expr= m.i1 - m.i2 == 0) m.c5 = Constraint(expr= - 8.54*m.i1 + 0.5*m.x66 + 0.5*m.x67 - m.x68 <= 0) m.c6 = Constraint(expr= 13*m.i1 + 0.5*m.x69 + 0.5*m.x70 - m.x71 <= 13) m.c7 = Constraint(expr= - 8.54*m.i3 + 0.5*m.x66 + 0.5*m.x72 - m.x73 <= 0) m.c8 = Constraint(expr= 13*m.i3 + 0.5*m.x69 + 0.5*m.x74 - m.x75 <= 13) m.c9 = Constraint(expr= - 8.54*m.i5 - m.x44 + 0.5*m.x66 + 0.5*m.x76 <= 0) m.c10 = Constraint(expr= 13*m.i5 - m.x45 + 0.5*m.x69 + 0.5*m.x77 <= 13) m.c11 = Constraint(expr= - 8.54*m.i7 + 0.5*m.x66 + 0.5*m.x78 - m.x79 <= 0) m.c12 = Constraint(expr= 13*m.i7 + 0.5*m.x69 + 0.5*m.x80 - m.x81 <= 13) m.c13 = Constraint(expr= - 8.54*m.i9 + 0.5*m.x66 + 0.5*m.x82 - m.x83 <= 0) m.c14 = Constraint(expr= 13*m.i9 + 0.5*m.x69 + 0.5*m.x84 - m.x85 <= 13) m.c15 = Constraint(expr= - 8.54*m.i11 - m.x46 + 0.5*m.x66 + 0.5*m.x86 <= 0) m.c16 = Constraint(expr= 13*m.i11 - m.x47 + 0.5*m.x69 + 0.5*m.x87 <= 13) m.c17 = Constraint(expr= - 8.54*m.i13 + 0.5*m.x67 + 0.5*m.x72 - m.x88 <= 0) m.c18 = Constraint(expr= 13*m.i13 + 0.5*m.x70 + 0.5*m.x74 - m.x89 <= 13) m.c19 = Constraint(expr= - 8.54*m.i15 - m.x48 + 0.5*m.x67 + 0.5*m.x76 <= 0) m.c20 = Constraint(expr= 13*m.i15 - m.x49 + 0.5*m.x70 + 0.5*m.x77 <= 13) m.c21 = Constraint(expr= - 8.54*m.i17 + 0.5*m.x67 + 0.5*m.x78 - m.x90 <= 0) m.c22 = Constraint(expr= 13*m.i17 + 0.5*m.x70 + 0.5*m.x80 - m.x91 <= 13) m.c23 = Constraint(expr= - 8.54*m.i19 + 0.5*m.x67 + 0.5*m.x82 - m.x92 <= 0) m.c24 = Constraint(expr= 13*m.i19 + 0.5*m.x70 + 0.5*m.x84 - m.x93 <= 13) m.c25 = Constraint(expr= - 8.54*m.i21 - m.x50 + 0.5*m.x67 + 0.5*m.x86 <= 0) m.c26 = Constraint(expr= 13*m.i21 - m.x51 + 0.5*m.x70 + 0.5*m.x87 <= 13) m.c27 = Constraint(expr= - 8.54*m.i23 - m.x52 + 0.5*m.x72 + 0.5*m.x76 <= 0) m.c28 = Constraint(expr= 13*m.i23 - m.x53 + 0.5*m.x74 + 0.5*m.x77 <= 13) m.c29 = Constraint(expr= - 8.54*m.i25 + 0.5*m.x72 + 0.5*m.x78 - m.x94 <= 0) m.c30 = Constraint(expr= 13*m.i25 + 0.5*m.x74 + 0.5*m.x80 - m.x95 <= 13) m.c31 = Constraint(expr= - 8.54*m.i27 + 0.5*m.x72 + 0.5*m.x82 - m.x96 <= 0) m.c32 = Constraint(expr= 13*m.i27 + 0.5*m.x74 + 0.5*m.x84 - m.x97 <= 13) m.c33 = Constraint(expr= - 8.54*m.i29 - m.x54 + 0.5*m.x72 + 0.5*m.x86 <= 0) m.c34 = Constraint(expr= 13*m.i29 - m.x55 + 0.5*m.x74 + 0.5*m.x87 <= 13) m.c35 = Constraint(expr= - 8.54*m.i31 - m.x56 + 0.5*m.x76 + 0.5*m.x78 <= 0) m.c36 = Constraint(expr= 13*m.i31 - m.x57 + 0.5*m.x77 + 0.5*m.x80 <= 13) m.c37 = Constraint(expr= - 8.54*m.i33 + 0.5*m.x76 + 0.5*m.x82 - m.x98 <= 0) m.c38 = Constraint(expr= 13*m.i33 + 0.5*m.x77 + 0.5*m.x84 - m.x99 <= 13) m.c39 = Constraint(expr= - 8.54*m.i35 + 0.5*m.x76 + 0.5*m.x86 - m.x100 <= 0) m.c40 = Constraint(expr= 13*m.i35 + 0.5*m.x77 + 0.5*m.x87 - m.x101 <= 13) m.c41 = Constraint(expr= - 8.54*m.i37 + 0.5*m.x78 + 0.5*m.x82 - m.x102 <= 0) m.c42 = Constraint(expr= 13*m.i37 + 0.5*m.x80 + 0.5*m.x84 - m.x103 <= 13) m.c43 = Constraint(expr= - 8.54*m.i39 - m.x58 + 0.5*m.x78 + 0.5*m.x86 <= 0) m.c44 = Constraint(expr= 13*m.i39 - m.x59 + 0.5*m.x80 + 0.5*m.x87 <= 13) m.c45 = Constraint(expr= - 8.54*m.i41 - m.x60 + 0.5*m.x82 + 0.5*m.x86 <= 0) m.c46 = Constraint(expr= 13*m.i41 - m.x61 + 0.5*m.x84 + 0.5*m.x87 <= 13) m.c47 = Constraint(expr= - 0.559003*m.x66 - 0.111806*m.x69 <= -2) m.c48 = Constraint(expr= - 0.117096*m.x66 - 0.53375*m.x69 <= -2) m.c49 = Constraint(expr= - 0.559003*m.x67 - 0.111806*m.x70 <= -2) m.c50 = Constraint(expr= - 0.117096*m.x67 - 0.53375*m.x70 <= -2) m.c51 = Constraint(expr= - 0.559003*m.x72 - 0.111806*m.x74 <= -2) m.c52 = Constraint(expr= - 0.117096*m.x72 - 0.53375*m.x74 <= -2) m.c53 = Constraint(expr= - 0.361115*m.x76 - 0.076922*m.x77 <= -2) m.c54 = Constraint(expr= - 0.117096*m.x76 - 0.237222*m.x77 <= -2) m.c55 = Constraint(expr= - 0.745379*m.x78 - 0.149067*m.x80 <= -2) m.c56 = Constraint(expr= - 0.149071*m.x78 - 0.745356*m.x80 <= -2) m.c57 = Constraint(expr= - 0.745379*m.x82 - 0.149067*m.x84 <= -2) m.c58 = Constraint(expr= - 0.149071*m.x82 - 0.745356*m.x84 <= -2) m.c59 = Constraint(expr= - 0.745379*m.x86 - 0.149067*m.x87 <= -2) m.c60 = Constraint(expr= - 0.149071*m.x86 - 0.745356*m.x87 <= -2) m.c61 = Constraint(expr= m.x62 + 0.5*m.x66 <= 8.54) m.c62 = Constraint(expr= - m.x62 + 0.5*m.x66 <= 0) m.c63 = Constraint(expr= m.x65 + 0.5*m.x69 <= 13) m.c64 = Constraint(expr= - m.x65 + 0.5*m.x69 <= 0) m.c65 = Constraint(expr= m.x63 + 0.5*m.x67 <= 8.54) m.c66 = Constraint(expr= - m.x63 + 0.5*m.x67 <= 0) m.c67 = Constraint(expr= m.x64 + 0.5*m.x70 <= 13) m.c68 = Constraint(expr= - m.x64 + 0.5*m.x70 <= 0) m.c69 = Constraint(expr= 0.5*m.x72 + m.x104 <= 8.54) m.c70 = Constraint(expr= 0.5*m.x72 - m.x104 <= 0) m.c71 = Constraint(expr= 0.5*m.x74 + m.x105 <= 13) m.c72 = Constraint(expr= 0.5*m.x74 - m.x105 <= 0) m.c73 = Constraint(expr= 0.5*m.x76 + m.x106 <= 8.54) m.c74 = Constraint(expr= 0.5*m.x76 - m.x106 <= 0) m.c75 = Constraint(expr= 0.5*m.x77 + m.x107 <= 13) m.c76 = Constraint(expr= 0.5*m.x77 - m.x107 <= 0) m.c77 = Constraint(expr= 0.5*m.x78 + m.x108 <= 8.54) m.c78 = Constraint(expr= 0.5*m.x78 - m.x108 <= 0) m.c79 = Constraint(expr= 0.5*m.x80 + m.x109 <= 13) m.c80 = Constraint(expr= 0.5*m.x80 - m.x109 <= 0) m.c81 = Constraint(expr= 0.5*m.x82 + m.x110 <= 8.54) m.c82 = Constraint(expr= 0.5*m.x82 - m.x110 <= 0) m.c83 = Constraint(expr= 0.5*m.x84 + m.x111 <= 13) m.c84 = Constraint(expr= 0.5*m.x84 - m.x111 <= 0) m.c85 = Constraint(expr= 0.5*m.x86 + m.x112 <= 8.54) m.c86 = Constraint(expr= 0.5*m.x86 - m.x112 <= 0) m.c87 = Constraint(expr= 0.5*m.x87 + m.x113 <= 13) m.c88 = Constraint(expr= 0.5*m.x87 - m.x113 <= 0) m.c89 = Constraint(expr= m.x62 - m.x63 - m.x68 <= 0) m.c90 = Constraint(expr= - m.x62 + m.x63 - m.x68 <= 0) m.c91 = Constraint(expr= - m.x64 + m.x65 - m.x71 <= 0) m.c92 = Constraint(expr= m.x64 - m.x65 - m.x71 <= 0) m.c93 = Constraint(expr= - 8.54*m.i1 - 8.54*m.i2 - m.x62 + m.x63 + 0.5*m.x66 + 0.5*m.x67 <= 0) m.c94 = Constraint(expr= - 8.54*m.i1 + 8.54*m.i2 + m.x62 - m.x63 + 0.5*m.x66 + 0.5*m.x67 <= 8.54) m.c95 = Constraint(expr= 13*m.i1 - 13*m.i2 + m.x64 - m.x65 + 0.5*m.x69 + 0.5*m.x70 <= 13) m.c96 = Constraint(expr= 13*m.i1 + 13*m.i2 - m.x64 + m.x65 + 0.5*m.x69 + 0.5*m.x70 <= 26) m.c97 = Constraint(expr= m.x62 - m.x73 - m.x104 <= 0) m.c98 = Constraint(expr= - m.x62 - m.x73 + m.x104 <= 0) m.c99 = Constraint(expr= m.x65 - m.x75 - m.x105 <= 0) m.c100 = Constraint(expr= - m.x65 - m.x75 + m.x105 <= 0) m.c101 = Constraint(expr= - 8.54*m.i3 - 8.54*m.i4 - m.x62 + 0.5*m.x66 + 0.5*m.x72 + m.x104 <= 0) m.c102 = Constraint(expr= - 8.54*m.i3 + 8.54*m.i4 + m.x62 + 0.5*m.x66 + 0.5*m.x72 - m.x104 <= 8.54) m.c103 = Constraint(expr= 13*m.i3 - 13*m.i4 - m.x65 + 0.5*m.x69 + 0.5*m.x74 + m.x105 <= 13) m.c104 = Constraint(expr= 13*m.i3 + 13*m.i4 + m.x65 + 0.5*m.x69 + 0.5*m.x74 - m.x105 <= 26) m.c105 = Constraint(expr= - m.x44 + m.x62 - m.x106 <= 0) m.c106 = Constraint(expr= - m.x44 - m.x62 + m.x106 <= 0) m.c107 = Constraint(expr= - m.x45 + m.x65 - m.x107 <= 0) m.c108 = Constraint(expr= - m.x45 - m.x65 + m.x107 <= 0) m.c109 = Constraint(expr= - 8.54*m.i5 - 8.54*m.i6 - m.x62 + 0.5*m.x66 + 0.5*m.x76 + m.x106 <= 0) m.c110 = Constraint(expr= - 8.54*m.i5 + 8.54*m.i6 + m.x62 + 0.5*m.x66 + 0.5*m.x76 - m.x106 <= 8.54) m.c111 = Constraint(expr= 13*m.i5 - 13*m.i6 - m.x65 + 0.5*m.x69 + 0.5*m.x77 + m.x107 <= 13) m.c112 = Constraint(expr= 13*m.i5 + 13*m.i6 + m.x65 + 0.5*m.x69 + 0.5*m.x77 - m.x107 <= 26) m.c113 = Constraint(expr= m.x62 - m.x79 - m.x108 <= 0) m.c114 = Constraint(expr= - m.x62 - m.x79 + m.x108 <= 0) m.c115 = Constraint(expr= m.x65 - m.x81 - m.x109 <= 0) m.c116 = Constraint(expr= - m.x65 - m.x81 + m.x109 <= 0) m.c117 = Constraint(expr= - 8.54*m.i7 - 8.54*m.i8 - m.x62 + 0.5*m.x66 + 0.5*m.x78 + m.x108 <= 0) m.c118 = Constraint(expr= - 8.54*m.i7 + 8.54*m.i8 + m.x62 + 0.5*m.x66 + 0.5*m.x78 - m.x108 <= 8.54) m.c119 = Constraint(expr= 13*m.i7 - 13*m.i8 - m.x65 + 0.5*m.x69 + 0.5*m.x80 + m.x109 <= 13) m.c120 = Constraint(expr= 13*m.i7 + 13*m.i8 + m.x65 + 0.5*m.x69 + 0.5*m.x80 - m.x109 <= 26) m.c121 = Constraint(expr= m.x62 - m.x83 - m.x110 <= 0) m.c122 = Constraint(expr= - m.x62 - m.x83 + m.x110 <= 0) m.c123 = Constraint(expr= m.x65 - m.x85 - m.x111 <= 0) m.c124 = Constraint(expr= - m.x65 - m.x85 + m.x111 <= 0) m.c125 = Constraint(expr= - 8.54*m.i9 - 8.54*m.i10 - m.x62 + 0.5*m.x66 + 0.5*m.x82 + m.x110 <= 0) m.c126 = Constraint(expr= - 8.54*m.i9 + 8.54*m.i10 + m.x62 + 0.5*m.x66 + 0.5*m.x82 - m.x110 <= 8.54) m.c127 = Constraint(expr= 13*m.i9 - 13*m.i10 - m.x65 + 0.5*m.x69 + 0.5*m.x84 + m.x111 <= 13) m.c128 = Constraint(expr= 13*m.i9 + 13*m.i10 + m.x65 + 0.5*m.x69 + 0.5*m.x84 - m.x111 <= 26) m.c129 = Constraint(expr= - m.x46 + m.x62 - m.x112 <= 0) m.c130 = Constraint(expr= - m.x46 - m.x62 + m.x112 <= 0) m.c131 = Constraint(expr= - m.x47 + m.x65 - m.x113 <= 0) m.c132 = Constraint(expr= - m.x47 - m.x65 + m.x113 <= 0) m.c133 = Constraint(expr= - 8.54*m.i11 - 8.54*m.i12 - m.x62 + 0.5*m.x66 + 0.5*m.x86 + m.x112 <= 0) m.c134 = Constraint(expr= - 8.54*m.i11 + 8.54*m.i12 + m.x62 + 0.5*m.x66 + 0.5*m.x86 - m.x112 <= 8.54) m.c135 = Constraint(expr= 13*m.i11 - 13*m.i12 - m.x65 + 0.5*m.x69 + 0.5*m.x87 + m.x113 <= 13) m.c136 = Constraint(expr= 13*m.i11 + 13*m.i12 + m.x65 + 0.5*m.x69 + 0.5*m.x87 - m.x113 <= 26) m.c137 = Constraint(expr= m.x63 - m.x88 - m.x104 <= 0) m.c138 = Constraint(expr= - m.x63 - m.x88 + m.x104 <= 0) m.c139 = Constraint(expr= m.x64 - m.x89 - m.x105 <= 0) m.c140 = Constraint(expr= - m.x64 - m.x89 + m.x105 <= 0) m.c141 = Constraint(expr= - 8.54*m.i13 - 8.54*m.i14 - m.x63 + 0.5*m.x67 + 0.5*m.x72 + m.x104 <= 0) m.c142 = Constraint(expr= - 8.54*m.i13 + 8.54*m.i14 + m.x63 + 0.5*m.x67 + 0.5*m.x72 - m.x104 <= 8.54) m.c143 = Constraint(expr= 13*m.i13 - 13*m.i14 - m.x64 + 0.5*m.x70 + 0.5*m.x74 + m.x105 <= 13) m.c144 = Constraint(expr= 13*m.i13 + 13*m.i14 + m.x64 + 0.5*m.x70 + 0.5*m.x74 - m.x105 <= 26) m.c145 = Constraint(expr= - m.x48 + m.x63 - m.x106 <= 0) m.c146 = Constraint(expr= - m.x48 - m.x63 + m.x106 <= 0) m.c147 = Constraint(expr= - m.x49 + m.x64 - m.x107 <= 0) m.c148 = Constraint(expr= - m.x49 - m.x64 + m.x107 <= 0) m.c149 = Constraint(expr= - 8.54*m.i15 - 8.54*m.i16 - m.x63 + 0.5*m.x67 + 0.5*m.x76 + m.x106 <= 0) m.c150 = Constraint(expr= - 8.54*m.i15 + 8.54*m.i16 + m.x63 + 0.5*m.x67 + 0.5*m.x76 - m.x106 <= 8.54) m.c151 = Constraint(expr= 13*m.i15 - 13*m.i16 - m.x64 + 0.5*m.x70 + 0.5*m.x77 + m.x107 <= 13) m.c152 = Constraint(expr= 13*m.i15 + 13*m.i16 + m.x64 + 0.5*m.x70 + 0.5*m.x77 - m.x107 <= 26) m.c153 = Constraint(expr= m.x63 - m.x90 - m.x108 <= 0) m.c154 = Constraint(expr= - m.x63 - m.x90 + m.x108 <= 0) m.c155 = Constraint(expr= m.x64 - m.x91 - m.x109 <= 0) m.c156 = Constraint(expr= - m.x64 - m.x91 + m.x109 <= 0) m.c157 = Constraint(expr= - 8.54*m.i17 - 8.54*m.i18 - m.x63 + 0.5*m.x67 + 0.5*m.x78 + m.x108 <= 0) m.c158 = Constraint(expr= - 8.54*m.i17 + 8.54*m.i18 + m.x63 + 0.5*m.x67 + 0.5*m.x78 - m.x108 <= 8.54) m.c159 = Constraint(expr= 13*m.i17 - 13*m.i18 - m.x64 + 0.5*m.x70 + 0.5*m.x80 + m.x109 <= 13) m.c160 = Constraint(expr= 13*m.i17 + 13*m.i18 + m.x64 + 0.5*m.x70 + 0.5*m.x80 - m.x109 <= 26) m.c161 = Constraint(expr= m.x63 - m.x92 - m.x110 <= 0) m.c162 = Constraint(expr= - m.x63 - m.x92 + m.x110 <= 0) m.c163 = Constraint(expr= m.x64 - m.x93 - m.x111 <= 0) m.c164 = Constraint(expr= - m.x64 - m.x93 + m.x111 <= 0) m.c165 = Constraint(expr= - 8.54*m.i19 - 8.54*m.i20 - m.x63 + 0.5*m.x67 + 0.5*m.x82 + m.x110 <= 0) m.c166 = Constraint(expr= - 8.54*m.i19 + 8.54*m.i20 + m.x63 + 0.5*m.x67 + 0.5*m.x82 - m.x110 <= 8.54) m.c167 = Constraint(expr= 13*m.i19 - 13*m.i20 - m.x64 + 0.5*m.x70 + 0.5*m.x84 + m.x111 <= 13) m.c168 = Constraint(expr= 13*m.i19 + 13*m.i20 + m.x64 + 0.5*m.x70 + 0.5*m.x84 - m.x111 <= 26) m.c169 = Constraint(expr= - m.x50 + m.x63 - m.x112 <= 0) m.c170 = Constraint(expr= - m.x50 - m.x63 + m.x112 <= 0) m.c171 = Constraint(expr= - m.x51 + m.x64 - m.x113 <= 0) m.c172 = Constraint(expr= - m.x51 - m.x64 + m.x113 <= 0) m.c173 = Constraint(expr= - 8.54*m.i21 - 8.54*m.i22 - m.x63 + 0.5*m.x67 + 0.5*m.x86 + m.x112 <= 0) m.c174 = Constraint(expr= - 8.54*m.i21 + 8.54*m.i22 + m.x63 + 0.5*m.x67 + 0.5*m.x86 - m.x112 <= 8.54) m.c175 = Constraint(expr= 13*m.i21 - 13*m.i22 - m.x64 + 0.5*m.x70 + 0.5*m.x87 + m.x113 <= 13) m.c176 = Constraint(expr= 13*m.i21 + 13*m.i22 + m.x64 + 0.5*m.x70 + 0.5*m.x87 - m.x113 <= 26) m.c177 = Constraint(expr= - m.x52 + m.x104 - m.x106 <= 0) m.c178 = Constraint(expr= - m.x52 - m.x104 + m.x106 <= 0) m.c179 = Constraint(expr= - m.x53 + m.x105 - m.x107 <= 0) m.c180 = Constraint(expr= - m.x53 - m.x105 + m.x107 <= 0) m.c181 = Constraint(expr= - 8.54*m.i23 - 8.54*m.i24 + 0.5*m.x72 + 0.5*m.x76 - m.x104 + m.x106 <= 0) m.c182 = Constraint(expr= - 8.54*m.i23 + 8.54*m.i24 + 0.5*m.x72 + 0.5*m.x76 + m.x104 - m.x106 <= 8.54) m.c183 = Constraint(expr= 13*m.i23 - 13*m.i24 + 0.5*m.x74 + 0.5*m.x77 - m.x105 + m.x107 <= 13) m.c184 = Constraint(expr= 13*m.i23 + 13*m.i24 + 0.5*m.x74 + 0.5*m.x77 + m.x105 - m.x107 <= 26) m.c185 = Constraint(expr= - m.x94 + m.x104 - m.x108 <= 0) m.c186 = Constraint(expr= - m.x94 - m.x104 + m.x108 <= 0) m.c187 = Constraint(expr= - m.x95 + m.x105 - m.x109 <= 0) m.c188 = Constraint(expr= - m.x95 - m.x105 + m.x109 <= 0) m.c189 = Constraint(expr= - 8.54*m.i25 - 8.54*m.i26 + 0.5*m.x72 + 0.5*m.x78 - m.x104 + m.x108 <= 0) m.c190 = Constraint(expr= - 8.54*m.i25 + 8.54*m.i26 + 0.5*m.x72 + 0.5*m.x78 + m.x104 - m.x108 <= 8.54) m.c191 = Constraint(expr= 13*m.i25 - 13*m.i26 + 0.5*m.x74 + 0.5*m.x80 - m.x105 + m.x109 <= 13) m.c192 = Constraint(expr= 13*m.i25 + 13*m.i26 + 0.5*m.x74 + 0.5*m.x80 + m.x105 - m.x109 <= 26) m.c193 = Constraint(expr= - m.x96 + m.x104 - m.x110 <= 0) m.c194 = Constraint(expr= - m.x96 - m.x104 + m.x110 <= 0) m.c195 = Constraint(expr= - m.x97 + m.x105 - m.x111 <= 0) m.c196 = Constraint(expr= - m.x97 - m.x105 + m.x111 <= 0) m.c197 = Constraint(expr= - 8.54*m.i27 - 8.54*m.i28 + 0.5*m.x72 + 0.5*m.x82 - m.x104 + m.x110 <= 0) m.c198 = Constraint(expr= - 8.54*m.i27 + 8.54*m.i28 + 0.5*m.x72 + 0.5*m.x82 + m.x104 - m.x110 <= 8.54) m.c199 = Constraint(expr= 13*m.i27 - 13*m.i28 + 0.5*m.x74 + 0.5*m.x84 - m.x105 + m.x111 <= 13) m.c200 = Constraint(expr= 13*m.i27 + 13*m.i28 + 0.5*m.x74 + 0.5*m.x84 + m.x105 - m.x111 <= 26) m.c201 = Constraint(expr= - m.x54 + m.x104 - m.x112 <= 0) m.c202 = Constraint(expr= - m.x54 - m.x104 + m.x112 <= 0) m.c203 = Constraint(expr= - m.x55 + m.x105 - m.x113 <= 0) m.c204 = Constraint(expr= - m.x55 - m.x105 + m.x113 <= 0) m.c205 = Constraint(expr= - 8.54*m.i29 - 8.54*m.i30 + 0.5*m.x72 + 0.5*m.x86 - m.x104 + m.x112 <= 0) m.c206 = Constraint(expr= - 8.54*m.i29 + 8.54*m.i30 + 0.5*m.x72 + 0.5*m.x86 + m.x104 - m.x112 <= 8.54) m.c207 = Constraint(expr= 13*m.i29 - 13*m.i30 + 0.5*m.x74 + 0.5*m.x87 - m.x105 + m.x113 <= 13) m.c208 = Constraint(expr= 13*m.i29 + 13*m.i30 + 0.5*m.x74 + 0.5*m.x87 + m.x105 - m.x113 <= 26) m.c209 = Constraint(expr= - m.x56 + m.x106 - m.x108 <= 0) m.c210 = Constraint(expr= - m.x56 - m.x106 + m.x108 <= 0) m.c211 = Constraint(expr= - m.x57 + m.x107 - m.x109 <= 0) m.c212 = Constraint(expr= - m.x57 - m.x107 + m.x109 <= 0) m.c213 = Constraint(expr= - 8.54*m.i31 - 8.54*m.i32 + 0.5*m.x76 + 0.5*m.x78 - m.x106 + m.x108 <= 0) m.c214 = Constraint(expr= - 8.54*m.i31 + 8.54*m.i32 + 0.5*m.x76 + 0.5*m.x78 + m.x106 - m.x108 <= 8.54) m.c215 = Constraint(expr= 13*m.i31 - 13*m.i32 + 0.5*m.x77 + 0.5*m.x80 - m.x107 + m.x109 <= 13) m.c216 = Constraint(expr= 13*m.i31 + 13*m.i32 + 0.5*m.x77 + 0.5*m.x80 + m.x107 - m.x109 <= 26) m.c217 = Constraint(expr= - m.x98 + m.x106 - m.x110 <= 0) m.c218 = Constraint(expr= - m.x98 - m.x106 + m.x110 <= 0) m.c219 = Constraint(expr= - m.x99 + m.x107 - m.x111 <= 0) m.c220 = Constraint(expr= - m.x99 - m.x107 + m.x111 <= 0) m.c221 = Constraint(expr= - 8.54*m.i33 - 8.54*m.i34 + 0.5*m.x76 + 0.5*m.x82 - m.x106 + m.x110 <= 0) m.c222 = Constraint(expr= - 8.54*m.i33 + 8.54*m.i34 + 0.5*m.x76 + 0.5*m.x82 + m.x106 - m.x110 <= 8.54) m.c223 = Constraint(expr= 13*m.i33 - 13*m.i34 + 0.5*m.x77 + 0.5*m.x84 - m.x107 + m.x111 <= 13) m.c224 = Constraint(expr= 13*m.i33 + 13*m.i34 + 0.5*m.x77 + 0.5*m.x84 + m.x107 - m.x111 <= 26) m.c225 = Constraint(expr= - m.x100 + m.x106 - m.x112 <= 0) m.c226 = Constraint(expr= - m.x100 - m.x106 + m.x112 <= 0) m.c227 = Constraint(expr= - m.x101 + m.x107 - m.x113 <= 0) m.c228 = Constraint(expr= - m.x101 - m.x107 + m.x113 <= 0) m.c229 = Constraint(expr= - 8.54*m.i35 - 8.54*m.i36 + 0.5*m.x76 + 0.5*m.x86 - m.x106 + m.x112 <= 0) m.c230 = Constraint(expr= - 8.54*m.i35 + 8.54*m.i36 + 0.5*m.x76 + 0.5*m.x86 + m.x106 - m.x112 <= 8.54) m.c231 = Constraint(expr= 13*m.i35 - 13*m.i36 + 0.5*m.x77 + 0.5*m.x87 - m.x107 + m.x113 <= 13) m.c232 = Constraint(expr= 13*m.i35 + 13*m.i36 + 0.5*m.x77 + 0.5*m.x87 + m.x107 - m.x113 <= 26) m.c233 = Constraint(expr= - m.x102 + m.x108 - m.x110 <= 0) m.c234 = Constraint(expr= - m.x102 - m.x108 + m.x110 <= 0) m.c235 = Constraint(expr= - m.x103 + m.x109 - m.x111 <= 0) m.c236 = Constraint(expr= - m.x103 - m.x109 + m.x111 <= 0) m.c237 = Constraint(expr= - 8.54*m.i37 - 8.54*m.i38 + 0.5*m.x78 + 0.5*m.x82 - m.x108 + m.x110 <= 0) m.c238 = Constraint(expr= - 8.54*m.i37 + 8.54*m.i38 + 0.5*m.x78 + 0.5*m.x82 + m.x108 - m.x110 <= 8.54) m.c239 = Constraint(expr= 13*m.i37 - 13*m.i38 + 0.5*m.x80 + 0.5*m.x84 - m.x109 + m.x111 <= 13) m.c240 = Constraint(expr= 13*m.i37 + 13*m.i38 + 0.5*m.x80 + 0.5*m.x84 + m.x109 - m.x111 <= 26) m.c241 = Constraint(expr= - m.x58 + m.x108 - m.x112 <= 0) m.c242 = Constraint(expr= - m.x58 - m.x108 + m.x112 <= 0) m.c243 = Constraint(expr= - m.x59 + m.x109 - m.x113 <= 0) m.c244 = Constraint(expr= - m.x59 - m.x109 + m.x113 <= 0) m.c245 = Constraint(expr= - 8.54*m.i39 - 8.54*m.i40 + 0.5*m.x78 + 0.5*m.x86 - m.x108 + m.x112 <= 0) m.c246 = Constraint(expr= - 8.54*m.i39 + 8.54*m.i40 + 0.5*m.x78 + 0.5*m.x86 + m.x108 - m.x112 <= 8.54) m.c247 = Constraint(expr= 13*m.i39 - 13*m.i40 + 0.5*m.x80 + 0.5*m.x87 - m.x109 + m.x113 <= 13) m.c248 = Constraint(expr= 13*m.i39 + 13*m.i40 + 0.5*m.x80 + 0.5*m.x87 + m.x109 - m.x113 <= 26) m.c249 = Constraint(expr= - m.x60 + m.x110 - m.x112 <= 0) m.c250 = Constraint(expr= - m.x60 - m.x110 + m.x112 <= 0) m.c251 = Constraint(expr= - m.x61 + m.x111 - m.x113 <= 0) m.c252 = Constraint(expr= - m.x61 - m.x111 + m.x113 <= 0) m.c253 = Constraint(expr= - 8.54*m.i41 - 8.54*m.i42 + 0.5*m.x82 + 0.5*m.x86 - m.x110 + m.x112 <= 0) m.c254 = Constraint(expr= - 8.54*m.i41 + 8.54*m.i42 + 0.5*m.x82 + 0.5*m.x86 + m.x110 - m.x112 <= 8.54) m.c255 = Constraint(expr= 13*m.i41 - 13*m.i42 + 0.5*m.x84 + 0.5*m.x87 - m.x111 + m.x113 <= 13) m.c256 = Constraint(expr= 13*m.i41 + 13*m.i42 + 0.5*m.x84 + 0.5*m.x87 + m.x111 - m.x113 <= 26) m.c257 = Constraint(expr=16/m.x66 - m.x69 <= 0) m.c258 = Constraint(expr=16/m.x69 - m.x66 <= 0) m.c259 = Constraint(expr=16/m.x67 - m.x70 <= 0) m.c260 = Constraint(expr=16/m.x70 - m.x67 <= 0) m.c261 = Constraint(expr=16/m.x72 - m.x74 <= 0) m.c262 = Constraint(expr=16/m.x74 - m.x72 <= 0) m.c263 = Constraint(expr=36/m.x76 - m.x77 <= 0) m.c264 = Constraint(expr=36/m.x77 - m.x76 <= 0) m.c265 = Constraint(expr=9/m.x78 - m.x80 <= 0) m.c266 = Constraint(expr=9/m.x80 - m.x78 <= 0) m.c267 = Constraint(expr=9/m.x82 - m.x84 <= 0) m.c268 = Constraint(expr=9/m.x84 - m.x82 <= 0) m.c269 = Constraint(expr=9/m.x86 - m.x87 <= 0) m.c270 = Constraint(expr=9/m.x87 - m.x86 <= 0)
40.238938
115
0.599113
5,704
27,282
2.865533
0.085028
0.034506
0.051392
0.085653
0.834017
0.788498
0.75491
0.753686
0.693607
0.431814
0
0.2431
0.169966
27,282
677
116
40.298375
0.478693
0.024925
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.002597
0
0.002597
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
fc9d41d5bf096a78c5aaf577ac3fa9452ca85bcc
68
py
Python
src/bread/data/__init__.py
ninivert/bread
9f8502574312d702fee9910130cffe3d876efced
[ "MIT" ]
null
null
null
src/bread/data/__init__.py
ninivert/bread
9f8502574312d702fee9910130cffe3d876efced
[ "MIT" ]
null
null
null
src/bread/data/__init__.py
ninivert/bread
9f8502574312d702fee9910130cffe3d876efced
[ "MIT" ]
null
null
null
from ._utils import * from ._data import * from ._exception import *
22.666667
25
0.75
9
68
5.333333
0.555556
0.416667
0
0
0
0
0
0
0
0
0
0
0.161765
68
3
25
22.666667
0.842105
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
5d9241b757e9669c196a1840f06e7285f264cb79
63
py
Python
aztk/models/plugins/__init__.py
lachiemurray/aztk
8d00a2c444313e77b6b0662f8287fcd9fd67898c
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk/models/plugins/__init__.py
lachiemurray/aztk
8d00a2c444313e77b6b0662f8287fcd9fd67898c
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk/models/plugins/__init__.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
from .plugin_file import * from .plugin_configuration import *
21
35
0.809524
8
63
6.125
0.625
0.408163
0
0
0
0
0
0
0
0
0
0
0.126984
63
2
36
31.5
0.890909
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
5d95d07c81228b49a78204f58cf8951851ace83d
99
py
Python
__init__.py
SkyLined/mTCPIPConnection
52f6152a83a163c9f5a45c3fd6edc840c8e72a3b
[ "CC-BY-4.0" ]
22
2016-08-11T14:50:55.000Z
2021-06-06T09:39:26.000Z
__init__.py
SkyLined/mDateTime
6eee2b1a64892dd163fec58bf78b4b6a1e762db1
[ "CC-BY-4.0" ]
19
2016-09-07T05:54:40.000Z
2020-07-02T07:46:38.000Z
__init__.py
SkyLined/mDateTime
6eee2b1a64892dd163fec58bf78b4b6a1e762db1
[ "CC-BY-4.0" ]
11
2016-09-03T22:42:50.000Z
2018-10-01T18:28:59.000Z
from .fInitializeProduct import fInitializeProduct; fInitializeProduct(); from .mExports import *;
24.75
51
0.828283
8
99
10.25
0.5
0
0
0
0
0
0
0
0
0
0
0
0.090909
99
4
52
24.75
0.911111
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
5daaea002f6f6ef46896b78090cf1733997320b7
153
py
Python
generated-libraries/python/netapp/volume/cache_policy.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/volume/cache_policy.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/volume/cache_policy.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class CachePolicy(basestring): """ Cache Policy Name """ @staticmethod def get_api_name(): return "cache-policy"
15.3
31
0.555556
14
153
5.928571
0.785714
0.26506
0
0
0
0
0
0
0
0
0
0
0.339869
153
9
32
17
0.821782
0.111111
0
0
0
0
0.1
0
0
0
0
0
0
1
0.25
true
0
0
0.25
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
0
0
0
6
5dbbe79b6b543a85f34a3ea030358d7c43f11bc2
24
py
Python
libs/yowsup/yowsup/yowsup/layers/protocol_groups/structs/__init__.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
src/go_dutch/__init__.py
cyu5/go-dutch
9b7e44c9a6eb5f95afe52f1ad9177cc3f82da33b
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
src/go_dutch/__init__.py
cyu5/go-dutch
9b7e44c9a6eb5f95afe52f1ad9177cc3f82da33b
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from .group import Group
24
24
0.833333
4
24
5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.952381
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
5de8b1c0126431feab5194215b31932406402c1c
7,523
py
Python
common.py
shvetsiya/mask-rcnn
dbe1ae7a7bf457ae53aa88f2d1dee3aef1a32936
[ "MIT" ]
9
2018-05-10T21:42:27.000Z
2018-11-28T10:08:00.000Z
common.py
shvetsiya/mask-rcnn
dbe1ae7a7bf457ae53aa88f2d1dee3aef1a32936
[ "MIT" ]
null
null
null
common.py
shvetsiya/mask-rcnn
dbe1ae7a7bf457ae53aa88f2d1dee3aef1a32936
[ "MIT" ]
null
null
null
# edit settings here ROOT_DIR = '..' DATA_DIR = ROOT_DIR + '/input' #'/media/root/5453d6d1-e517-4659-a3a8-d0a878ba4b60/data/kaggle/science2018/data' # RESULTS_DIR = ROOT_DIR + '/results' ##--------------------------------------------------------------------- import os from datetime import datetime PROJECT_PATH = os.path.dirname(os.path.realpath(__file__)) IDENTIFIER = datetime.now().strftime('%Y-%m-%d_%H-%M-%S') #numerical libs import math import numpy as np import random import PIL import cv2 import matplotlib matplotlib.use('TkAgg') # torch libs from torch.utils.data.sampler import * import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import torch.optim as optim from torch.nn.parallel.data_parallel import data_parallel # std libs import collections import copy import numbers import inspect import shutil from timeit import default_timer as timer import csv import pandas as pd import pickle import glob import sys from distutils.dir_util import copy_tree import time import matplotlib.pyplot as plt #--------------------------------------------------------------------------------- # https://stackoverflow.com/questions/34968722/how-to-implement-the-softmax-function-in-python def np_softmax(x): """Compute softmax values for each sets of scores in x.""" e_x = np.exp(x - np.max(x, axis=1, keepdims=True)) return e_x / e_x.sum(axis=1, keepdims=True) def np_sigmoid(x): return 1 / (1 + np.exp(-x)) #--------------------------------------------------------------------------------- print('@%s: ' % os.path.basename(__file__)) if 1: SEED = 35202 #1510302253 #int(time.time()) # random.seed(SEED) np.random.seed(SEED) torch.manual_seed(SEED) torch.cuda.manual_seed_all(SEED) print('\tset random seed') print('\t\tSEED=%d' % SEED) if 1: torch.backends.cudnn.benchmark = True ##uses the inbuilt cudnn auto-tuner to find the fastest convolution algorithms. - torch.backends.cudnn.enabled = True print('\tset cuda environment') print('\t\ttorch.__version__ =', torch.__version__) print('\t\ttorch.version.cuda =', torch.version.cuda) print('\t\ttorch.backends.cudnn.version() =', torch.backends.cudnn.version()) try: print('\t\tos[\'CUDA_VISIBLE_DEVICES\'] =', os.environ['CUDA_VISIBLE_DEVICES']) NUM_CUDA_DEVICES = len(os.environ['CUDA_VISIBLE_DEVICES'].split(',')) except Exception: print('\t\tos[\'CUDA_VISIBLE_DEVICES\'] =', 'None') NUM_CUDA_DEVICES = 1 print('\t\ttorch.cuda.device_count() =', torch.cuda.device_count()) print('\t\ttorch.cuda.current_device() =', torch.cuda.current_device()) print('') #--------------------------------------------------------------------------------- ALL_TEST_IMAGE_ID = [ '0114f484a16c152baa2d82fdd43740880a762c93f436c8988ac461c5c9dbe7d5', '0999dab07b11bc85fb8464fc36c947fbd8b5d6ec49817361cb780659ca805eac', '0a849e0eb15faa8a6d7329c3dd66aabe9a294cccb52ed30a90c8ca99092ae732', '0e132f71c8b4875c3c2dd7a22997468a3e842b46aa9bd47cf7b0e8b7d63f0925', '0ed3555a4bd48046d3b63d8baf03a5aa97e523aa483aaa07459e7afa39fb96c6', '0f1f896d9ae5a04752d3239c690402c022db4d72c0d2c087d73380896f72c466', '1747f62148a919c8feb6d607faeebdf504b5e2ad42b6b1710b1189c37ebcdb2c', '17b9bf4356db24967c4677b8376ac38f826de73a88b93a8d73a8b452e399cdff', '1879f4f4f05e2bada0ffeb46c128b8df7a79b14c84f38c3e216a69653495153b', '191b2b2205f2f5cc9da04702c5d422bc249faf8bca1107af792da63cccfba829', '1962d0c5faf3e85cda80e0578e0cb7aca50826d781620e5c1c4cc586bc69f81a', '1cdbfee1951356e7b0a215073828695fe1ead5f8b1add119b6645d2fdc8d844e', '1d9eacb3161f1e2b45550389ecf7c535c7199c6b44b1c6a46303f7b965e508f1', '1ef68e93964c2d9230100c1347c328f6385a7bc027879dc3d4c055e6fe80cb3c', '259b35151d4a7a5ffdd7ab7f171b142db8cfe40beeee67277fac6adca4d042c4', '295682d9eb5acb5c1976a460c085734bfaf38482b0a3f02591c2bfdcd4128549', '31f1fbe85b8899258ea5bcf5f93f7ac8238660c386aeab40649c715bd2e38a0a', '336d3e4105766f8ad328a7ee9571e743f376f8cbcf6a969ca7e353fe3235c523', '38f5cfb55fc8b048e82a5c895b25fefae7a70c71ab9990c535d1030637bf6a1f', '3c4c675825f7509877bc10497f498c9a2e3433bf922bd870914a2eb21a54fd26', '432f367a4c5b5674de2e2977744d10289a064e5704b21af6607b4975be47c580', '43a71aeb641faa18742cb826772a8566c6c947d7050f9ab15459de6cc2b3b6af', '44afae184c89e6ba55985b4d341acc1ae1e8b6ef96312064e0e6e630e022b078', '4727d94c6a57ed484270fdd8bbc6e3d5f2f15d5476794a4e37a40f2309a091e2', '472b1c5ff988dadc209faea92499bc07f305208dbda29d16262b3d543ac91c71', '4be73d68f433869188fe5e7f09c7f681ed51003da6aa5d19ce368726d8e271ee', '4f949bd8d914bbfa06f40d6a0e2b5b75c38bf53dbcbafc48c97f105bee4f8fac', '505bc0a3928d8aef5ce441c5a611fdd32e1e8eccdc15cc3a52b88030acb50f81', '519dc0d672d1c295fc69b629af8721ccb1a1f136d1976685a68487e62547ffe0', '51c70bb8a299943b27f8b354571272692d8f2705036a1a9562156c76da5f025b', '52b267e20519174e3ce1e1994b5d677804b16bc670aa5f6ffb6344a0fdf63fde', '53df5150ee56253fe5bc91a9230d377bb21f1300f443ba45a758bcb01a15c0e4', '550450e4bff4036fd671decdc5d42fec23578198d6a2fd79179c4368b9d6da18', '5cee644e5ffbef1ba021c7f389b33bafd3b1841f04d3edd7922d5084c2c4e0c7', '648c8ffa496e1716017906d0bf135debfc93386ae86aa3d4adbda9a505985fd9', '697a05c6fe4a07c601d46da80885645ad574ea19b47ee795ccff216c9f1f1808', '699f2992cd71e2e28cf45f81347ff22e76b37541ce88087742884cd0e9aadc68', '78a981bd27ba0c65a9169548665a17bda9f49050d0d3893a6567d1eb92cd003d', '7bdb668e6127b7eafc837a883f0648002bd063c736f55a4f673e787250a3fb04', '7f4cbe0b36b5d09466476a7d4e01f4f976c67872d549f4ff47b3e1e3a2b403af', '8922a6ac8fd0258ec27738ca101867169b20d90a60fc84f93df77acd5bf7c80b', '8b59819fbc92eefe45b1db95c0cc3a467ddcfc755684c7f2ba2f6ccb9ad740ab', '912a679e4b9b1d1a75170254fd675b8c24b664d80ad7ea7e460241a23535a406', '9ab2d381f90b485a68b82bc07f94397a0373e3215ad20935a958738e55f3cfc2', '9f17aea854db13015d19b34cb2022cfdeda44133323fcd6bb3545f7b9404d8ab', 'a4816cc1fb76cb3c5e481186833fc0ae9cf426a1406a2607e974e65e9cddba4f', 'a984e7fb886aa02e29d112766d3ce26a4f78eac540ce7bbdbd42af2761928f6d', 'ab298b962a63e4be9582513aaa84a5e270adba5fd2b16a50e59540524f63c3b8', 'ade080c6618cbbb0a25680cf847f312b5e19b22bfe1cafec0436987ebe5b1e7e', 'b83d1d77935b6cfd44105b54600ffc4b6bd82de57dec65571bcb117fa8398ba3', 'bdc789019cee8ddfae20d5f769299993b4b330b2d38d1218646cf89e77fbbd4d', 'c8e79ff4ac55f4b772057de28e539727b7f4f2a3de73bf7a082a0ace86d609eb', 'ca20076870e8fb604e61802605a9ac45419c82dd3e23404c56c4869f9502a5ef', 'd616d323a9eeb9da1b66f8d5df671d63c092c9919cb2c0b223e29c63257c944d', 'd6eb7ce7723e2f6dc13b90b41a29ded27dbd815bad633fdf582447c686018896', 'd8d4bf68a76e4e4c5f21de7ac613451f7115a04db686151e78b8ec0b6a22022b', 'da6c593410340b19bb212b9f6d274f95b08c0fc8f2570cd66bc5ed42c560acab', 'dab46d798d29aff2e99c23f47ed3064f5cafb1644629b015c95a2dd2ee593bb4', 'df40099c6306ca1f47fcc8a62e2fa39486d4e223177afdc51b2ad189691802d8', 'e17b7aedd251a016c01ef9158e6e4aa940d9f1b35942d86028dc1222192a9258', 'eea70a7948d25a9a791dbcb39228af4ea4049fe5ebdee9c04884be8cca3da835', 'f0d0ab13ff53adc3c4d57e95a5f83d80b06f2cbc0bf002b52cf7b496612e0ce4', 'f5effed21f671bbf4551ecebb7fe95f3be1cf09c16a60afe64d2f0b95be9d1eb', 'fac507fa4d1649e8b24c195d990f1fc3ca3633d917839e1751a9d412a14ab5e3', 'fe9adb627a6f45747c5a8223b671774791ededf9364f6544be487c540107fa4f', ]
45.593939
124
0.788382
429
7,523
13.69697
0.508159
0.008169
0.010211
0.005786
0.01838
0.00919
0
0
0
0
0
0.387373
0.098897
7,523
164
125
45.871951
0.479422
0.092915
0
0.015267
0
0
0.662893
0.631726
0
1
0
0
0
1
0.015267
false
0
0.21374
0.007634
0.244275
0.091603
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
6
b9093c8d1bae9babd480a267b343fd2837a97df7
19,700
py
Python
cli/tests/test_polyflow/test_container/test_container.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/tests/test_polyflow/test_container/test_container.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
cli/tests/test_polyflow/test_container/test_container.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2019 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # coding: utf-8 from __future__ import absolute_import, division, print_function from unittest import TestCase import pytest from marshmallow import ValidationError from mock import MagicMock from polyaxon.schemas.polyflow.container import ( ContainerConfig, get_container_command_args, ) @pytest.mark.container_mark class TestContainerCmdArgs(TestCase): def setUp(self): self.cmd1 = MagicMock() self.cmd1.command = "/bin/bash" self.cmd1.args = "video_prediction_train --model=DNA --num_masks=1" self.cmd2 = MagicMock() self.cmd2.command = ["/bin/bash", "run.sh"] self.cmd2.args = None self.cmd3 = MagicMock() self.cmd3.command = ["/bin/bash", "-c"] self.cmd3.args = """ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """ self.cmd4 = MagicMock() self.cmd4.command = ["/bin/bash", "-c"] self.cmd4.args = """ video_prediction_train --model=DNA --num_masks=1 && \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """ self.cmd5 = MagicMock() self.cmd5.command = ["/bin/bash", "-c"] self.cmd5.args = """ video_prediction_train --model=DNA --num_masks=1 ; \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """ self.cmd6 = MagicMock() self.cmd6.command = ["/bin/bash", "-c"] self.cmd6.args = """ video_prediction_train --model=DNA --num_masks=1 || \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """ self.list_cmd1 = MagicMock() self.list_cmd1.command = ["/bin/bash", "-c"] self.list_cmd1.args = [ "video_prediction_train --model=DNA --num_masks=1", "video_prediction_train --model=NEW --num_masks=10", ] self.list_cmd2 = MagicMock() self.list_cmd2.command = ["/bin/bash", "-c"] self.list_cmd2.args = [ "/bin/bash run1.sh", "/bin/bash run2.sh", "/bin/bash run3.sh", ] self.list_cmd3 = MagicMock() self.list_cmd3.command = ["/bin/bash", "-c"] self.list_cmd3.args = [ "run1.sh", """ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """, ] self.list_cmd4 = MagicMock() self.list_cmd4.command = "/bin/bash" self.list_cmd4.args = [ "run1.sh", """ video_prediction_train --model=DNA --num_masks=1 && \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """, ] self.list_cmd5 = MagicMock() self.list_cmd5.command = None self.list_cmd5.args = [ "/bin/bash run1.sh", """ video_prediction_train --model=DNA --num_masks=1 ; \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """, ] self.list_cmd6 = MagicMock() self.list_cmd6.command = None self.list_cmd6.args = [ "/bin/bash run1.sh", """ video_prediction_train --model=DNA --num_masks=1 || \ python3 model.py --batch_size={{ batch_size }} \ --num_steps={{ num_steps }} \ --learning_rate={{ learning_rate }} \ --dropout={{ dropout }} \ --num_epochs={{ num_epochs }} \ --activation={{ activation }} """, ] self.null_cmd1 = MagicMock() self.null_cmd1.command = None self.null_cmd1.args = None def test_get_container_command_args_cmd(self): assert get_container_command_args(self.cmd1) == ( ["/bin/bash"], ["video_prediction_train --model=DNA --num_masks=1"], ) assert get_container_command_args(self.cmd2) == (["/bin/bash", "run.sh"], []) assert get_container_command_args(self.cmd3) == ( ["/bin/bash", "-c"], [ "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}" ], ) assert get_container_command_args(self.cmd4) == ( ["/bin/bash", "-c"], [ "video_prediction_train --model=DNA --num_masks=1 && " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}" ], ) assert get_container_command_args(self.cmd5) == ( ["/bin/bash", "-c"], [ "video_prediction_train --model=DNA --num_masks=1 ; " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}" ], ) assert get_container_command_args(self.cmd6) == ( ["/bin/bash", "-c"], [ "video_prediction_train --model=DNA --num_masks=1 || " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}" ], ) def test_get_container_command_args_list_cmd(self): assert get_container_command_args(self.list_cmd1) == ( ["/bin/bash", "-c"], [ "video_prediction_train --model=DNA --num_masks=1", "video_prediction_train --model=NEW --num_masks=10", ], ) assert get_container_command_args(self.list_cmd2) == ( ["/bin/bash", "-c"], ["/bin/bash run1.sh", "/bin/bash run2.sh", "/bin/bash run3.sh"], ) assert get_container_command_args(self.list_cmd3) == ( ["/bin/bash", "-c"], [ "run1.sh", "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}", ], ) assert get_container_command_args(self.list_cmd4) == ( ["/bin/bash"], [ "run1.sh", "video_prediction_train --model=DNA --num_masks=1 && " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}", ], ) assert get_container_command_args(self.list_cmd5) == ( [], [ "/bin/bash run1.sh", "video_prediction_train --model=DNA --num_masks=1 ; " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}", ], ) assert get_container_command_args(self.list_cmd6) == ( [], [ "/bin/bash run1.sh", "video_prediction_train --model=DNA --num_masks=1 || " "python3 model.py " "--batch_size={{ batch_size }} " "--num_steps={{ num_steps }} " "--learning_rate={{ learning_rate }} " "--dropout={{ dropout }} " "--num_epochs={{ num_epochs }} " "--activation={{ activation }}", ], ) def test_none_cmd_args(self): assert get_container_command_args(self.null_cmd1) == ([], []) @pytest.mark.container_mark class TestContainerConfigCommandArgs(TestCase): def test_exec_config_with_str_args(self): config_dict = { "image": "test/test", "args": "python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base", } config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == ( [], [ "python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base" ], ) config_dict = { "image": "test/test", "args": "foo && python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base", } config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == ( [], [ "foo && python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base" ], ) config_dict = { "image": "test/test", "args": "foo; python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base", } config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == ( [], [ "foo; python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base" ], ) config_dict = { "image": "test/test", "args": "foo || python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base", } config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == ( [], [ "foo || python t2t-trainer " "--generate_data " "--data_dir=~/t2t_data " "--problems=translate_ende_wmt32k " "--model=transformer " "--hparams_set=transformer_base_single_gpu " "--output_dir=~/t2t_train/base" ], ) def test_exec_config_with_str_command(self): config_dict = {"image": "test/test", "command": "python t2t-trainer"} config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == (["python t2t-trainer"], []) config_dict = {"image": "test/test", "command": ["python t2t-trainer"]} config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == (["python t2t-trainer"], []) def test_exec_config_with_list_cmd(self): config_dict = {"image": "test/test", "command": ["foo", "python t2t-trainer"]} config = ContainerConfig.from_dict(config_dict) assert config.to_dict() == config_dict assert config.get_container_command_args() == ( ["foo", "python t2t-trainer"], [], ) @pytest.mark.container_mark class TestContainerConfig(TestCase): def test_config_with_image(self): config_dict = {"image": "foo/bar:latest"} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == ([], []) def test_config_with_without_image(self): with self.assertRaises(ValidationError): ContainerConfig.from_dict({}) with self.assertRaises(ValidationError): ContainerConfig.from_dict({"command": ["foo"], "args": ["foo"]}) def test_config_str_command(self): config_dict = {"image": "foo/bar:latest", "command": "foo"} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo"], []) def test_config_list_command(self): config_dict = {"image": "foo/bar:latest", "command": ["foo"]} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo"], []) config_dict = {"image": "foo/bar:latest", "command": ["foo", "bar"]} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo", "bar"], []) def test_config_str_args(self): config_dict = {"image": "foo/bar:latest", "args": "foo"} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == ([], ["foo"]) def test_config_list_args(self): config_dict = {"image": "foo/bar:latest", "args": ["foo"]} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == ([], ["foo"]) config_dict = {"image": "foo/bar:latest", "args": ["foo", "bar"]} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == ([], ["foo", "bar"]) def test_config_str_command_args(self): config_dict = {"image": "foo/bar:latest", "command": "foo", "args": "foo"} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo"], ["foo"]) def test_config_list__command_args(self): config_dict = {"image": "foo/bar:latest", "command": ["foo"], "args": ["foo"]} config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo"], ["foo"]) config_dict = { "image": "foo/bar:latest", "command": ["foo", "bar"], "args": ["foo", "bar"], } config = ContainerConfig.from_dict(config_dict) assert config.to_light_dict() == config_dict assert config.get_container_command_args() == (["foo", "bar"], ["foo", "bar"])
40.368852
86
0.497462
1,824
19,700
5.069079
0.089364
0.055159
0.051482
0.073545
0.837227
0.81711
0.785962
0.74973
0.737075
0.737075
0
0.012477
0.361269
19,700
487
87
40.451745
0.722324
0.029594
0
0.600998
0
0
0.384753
0.075604
0
0
0
0
0.122195
1
0.037406
false
0
0.014963
0
0.05985
0.002494
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
f8d879bdc13c8deae87d90592e328019646abd8f
255
py
Python
src/api/domain/operation/GetDataOperationJob/GetDataOperationJobResponse.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
14
2020-12-19T15:06:13.000Z
2022-01-12T19:52:17.000Z
src/api/domain/operation/GetDataOperationJob/GetDataOperationJobResponse.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
43
2021-01-06T22:05:22.000Z
2022-03-10T10:30:30.000Z
src/api/domain/operation/GetDataOperationJob/GetDataOperationJobResponse.py
PythonDataIntegrator/pythondataintegrator
6167778c36c2295e36199ac0d4d256a4a0c28d7a
[ "MIT" ]
4
2020-12-18T23:10:09.000Z
2021-04-02T13:03:12.000Z
from infrastructure.cqrs.decorators.responseclass import responseclass from domain.operation.GetDataOperationJob.GetDataOperationJobDto import GetDataOperationJobDto @responseclass class GetDataOperationJobResponse: Data: GetDataOperationJobDto = None
31.875
94
0.890196
20
255
11.35
0.7
0
0
0
0
0
0
0
0
0
0
0
0.070588
255
7
95
36.428571
0.957806
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.8
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
5d11c8714f79d639fa57642c9160a4ce52847a12
37
py
Python
gcmd/components/options/__init__.py
scorbett111/py-rename-repo
9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd
[ "MIT" ]
null
null
null
gcmd/components/options/__init__.py
scorbett111/py-rename-repo
9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd
[ "MIT" ]
null
null
null
gcmd/components/options/__init__.py
scorbett111/py-rename-repo
9b1a52fd2b59d7cebd29eda20fca8d3d47d11bfd
[ "MIT" ]
null
null
null
from .option_group import OptionGroup
37
37
0.891892
5
37
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
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
5d350fd2d47430cf9a3519de7e1604972f55abde
25
py
Python
_dev/distances/__init__.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
_dev/distances/__init__.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
_dev/distances/__init__.py
nicolossus/pylfi
7950aff5c36e7368cbe77b32ef348966b905f5cf
[ "MIT" ]
null
null
null
from .distances 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
5d61626bfbc5aa112b283d8e26dd32210441a001
1,675
py
Python
qtrio/_tests/examples/readme/test_qt.py
altendky/preqtrio
43c7ff24c0be2f7a3df86eef3c6cc5dae2f7ffd3
[ "Apache-2.0", "MIT" ]
29
2020-06-19T14:17:55.000Z
2021-06-20T05:36:20.000Z
qtrio/_tests/examples/readme/test_qt.py
altendky/qtrio
43c7ff24c0be2f7a3df86eef3c6cc5dae2f7ffd3
[ "Apache-2.0", "MIT" ]
266
2020-06-18T22:53:59.000Z
2021-10-12T01:57:11.000Z
qtrio/_tests/examples/readme/test_qt.py
altendky/preqtrio
43c7ff24c0be2f7a3df86eef3c6cc5dae2f7ffd3
[ "Apache-2.0", "MIT" ]
3
2020-07-08T14:05:33.000Z
2021-04-30T20:21:15.000Z
import pytestqt.qtbot from qts import QtWidgets import qtrio.examples.readme.qt def test_main(qtbot: pytestqt.qtbot.QtBot, qapp: QtWidgets.QApplication) -> None: input_dialog = qtrio.examples.readme.qt.create_input() output_dialog = qtrio.examples.readme.qt.create_output() qtbot.add_widget(input_dialog) qtbot.add_widget(output_dialog) text_to_enter = "everyone" main_object = qtrio.examples.readme.qt.Main( application=qapp, input_dialog=input_dialog, output_dialog=output_dialog, ) main_object.setup() qtbot.wait_for_window_shown(input_dialog) [line_edit] = input_dialog.findChildren(QtWidgets.QLineEdit) line_edit.setText(text_to_enter) input_dialog.accept() qtbot.wait_for_window_shown(output_dialog) output_text = output_dialog.text() output_dialog.accept() assert text_to_enter in output_text def test_main_cancelled( qtbot: pytestqt.qtbot.QtBot, qapp: QtWidgets.QApplication ) -> None: input_dialog = qtrio.examples.readme.qt.create_input() output_dialog = qtrio.examples.readme.qt.create_output() qtbot.add_widget(input_dialog) qtbot.add_widget(output_dialog) text_to_enter = "everyone" main_object = qtrio.examples.readme.qt.Main( application=qapp, input_dialog=input_dialog, output_dialog=output_dialog, ) main_object.setup() qtbot.wait_for_window_shown(input_dialog) [line_edit] = input_dialog.findChildren(QtWidgets.QLineEdit) line_edit.setText(text_to_enter) input_dialog.reject() # qtbot.wait(1_000) output_text = output_dialog.text() assert output_text == ""
24.275362
81
0.731343
215
1,675
5.376744
0.209302
0.133218
0.115052
0.127163
0.827855
0.762976
0.762976
0.762976
0.762976
0.762976
0
0.002892
0.174328
1,675
68
82
24.632353
0.832972
0.010149
0
0.651163
0
0
0.009662
0
0
0
0
0
0.046512
1
0.046512
false
0
0.069767
0
0.116279
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
5d7468d8f7a5461165a798f91ebe578271e3fdff
12,037
py
Python
nextcord/ext/checks/__init__.py
multiii/nextcord-ext-checks
49c46c5b2166ab2d6d69fbe825b6284a91b1c7f4
[ "MIT" ]
null
null
null
nextcord/ext/checks/__init__.py
multiii/nextcord-ext-checks
49c46c5b2166ab2d6d69fbe825b6284a91b1c7f4
[ "MIT" ]
null
null
null
nextcord/ext/checks/__init__.py
multiii/nextcord-ext-checks
49c46c5b2166ab2d6d69fbe825b6284a91b1c7f4
[ "MIT" ]
null
null
null
from typing import Dict, Union, Iterable from inspect import Parameter from nextcord import Spotify from nextcord.ext import commands from nextcord.ext.commands import CheckFailure class NotEqualArgs(CheckFailure): """Exception raised when a certain number of args haven't been passed for a command. This inherits from :exc:`CheckFailure`. Parameters ----------- a: :class:`int` The number of args to have been passed args: Dict[:class:`str`, :class:`inspect.Parameter`] The args which weren't passed """ def __init__(self, a: int, args: Dict[str, Parameter]): self.a = a self.args = args super().__init__( f"{a} Args have to be passed while using this Command for it to work.") class NotEnoughArgs(CheckFailure): """Exception raised when the number of args passed for a command are less than the number of args needed. This inherits from :exc:`CheckFailure`. Parameters ----------- a: :class:`int` The least number of args to have been passed args: Dict[:class:`str`, :class:`inspect.Parameter`] The args which weren't passed """ def __init__(self, a: int, args: Dict[str, Parameter]): self.a = a self.args = args super().__init__( f"Atleast {a} Args have to be passed while using this Command for it to work.") class MissingID(CheckFailure): """Exception raised when the Author, Channel or Guild ID of the Command isn't equal to a certain ID or IDs from a list. This inherits from :exc:`CheckFailure`. Parameters ----------- id: Union[:class:`int`, Iterable[:class:`int`]] The ID which was required id_type: :class: `str` The type of ID required (Author/User, Channel or Guild) """ def __init__(self, id: Union[int, Iterable[int]], id_type: str): self.id = id self.id_type = id_type if type(id) == int: super().__init__( f"The {id_type} ID should be equal to {id} for the Command to work.") else: super().__init__( f"The {id_type} ID should be equal to an ID in {id} for the Command to work.") class MissingName(CheckFailure): """Exception raised when the Author, Channel or Guild Name of the Command isn't equal to a certain Name or Names from a list. This inherits from :exc:`CheckFailure`. Parameters ----------- name: Union[:class:`str`, Iterable[:class:`str`]] The ID which was required name_type: :class: `str` The type of ID required (Author/User, Channel or Guild) """ def __init__(self, name: Union[str, Iterable[str]], name_type: str): self.name = name self.name_type = name_type if type(name) == str: super().__init__( f"The {name_type} Name should be equal to {name} for the Command to work.") else: super().__init__( f"The {name_type} Name should be equal to a Name in {name} for the Command to work.") class MissingDiscrim(CheckFailure): """Exception raised when the Author Discriminator of the Command isn't equal to a certain Discriminator or Discriminators from a list. This inherits from :exc:`CheckFailure`. Parameters ----------- discrim: Union[:class:`str`, Iterable[:class:`str`]] The Discriminator which was required """ def __init__(self, discrim: Union[str, Iterable[str]], name_type: str): self.discrim = discrim if type(id) == str: super().__init__( f"The Discriminator should be equal to {discrim} for the Command to work.") else: super().__init__( f"The Discriminator should be equal to one in {discrim} for the Command to work.") class NotGuildOwner(CheckFailure): """Exception raised when the Message Author is not the Owner of the Guild. This inherits from :exc:`CheckFailure` """ pass class GuildOwner(CheckFailure): """Exception raised when the Message Author is the Owner of the Guild. This inherits from :exc:`CheckFailure` """ pass class MissingNick(CheckFailure): """Exception raised when the Message Author does not have a Nickname. This inherits from :exc:`CheckFailure` """ pass class NotListening(CheckFailure): """Exception raised when the Message Author is not listening to Spotify. This inherits from :exc:`CheckFailure` """ pass def is_guild_owner(): """Checks if the Command Author is the Guild Owner""" def predicate(ctx) -> bool: if ctx.author.id == ctx.guild.owner_id: return True raise NotGuildOwner("The Command Author does not own the Server.") return commands.check(predicate) def is_not_guild_owner(): """Checks if the Command Author is not the Guild Owner""" def predicate(ctx) -> bool: if ctx.author.id != ctx.guild.owner_id: return True raise GuildOwner("The Command Author owns the Server.") return commands.check(predicate) def has_user_id(id: int): """Checks if the Command Author's ID is the same as the ID passed into the function""" def predicate(ctx) -> bool: if ctx.author.id == id: return True raise MissingID(id, "Author") return commands.check(predicate) def has_channel_id(id: int): """Checks if the Command Channel's ID is the same as the ID passed into the function""" def predicate(ctx) -> bool: if ctx.channel.id == id: return True raise MissingID(id, "Channel") return commands.check(predicate) def has_guild_id(id: int): """Checks if the Command Guild's ID is the same as the ID passed into the function""" def predicate(ctx) -> bool: if ctx.guild.id == id: return True raise MissingID(id, "Guild") return commands.check(predicate) def has_message_id(id: int): """Checks if the Command Message's ID is the same as the ID passed into the function""" def predicate(ctx) -> bool: if ctx.message.id == id: return True raise MissingID(id, "Message") return commands.check(predicate) def has_user_id_in(ids: Iterable[int]): """Checks if the Command Author's ID is the same as any ID in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for id in ids: if ctx.author.id == id: return True raise MissingID(ids, "Author") return commands.check(predicate) def has_channel_id_in(ids: Iterable[int]): """Checks if the Command Channel's ID is the same as any ID in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for id in ids: if ctx.channel.id == id: return True raise MissingID(ids, "Channel") return commands.check(predicate) def has_guild_id_in(ids: Iterable[int]): """Checks if the Command Guild's ID is the same as any ID in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for id in ids: if ctx.guild.id == id: return True raise MissingID(ids, "Guild") return commands.check(predicate) def has_message_id_in(ids: Iterable[int]): """Checks if the Command Message's ID is the same as any ID in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for id in ids: if ctx.message.id == id: return True raise MissingID(ids, "Message") return commands.check(predicate) def has_user_name(name: str): """Checks if the Command Author's Name is the same as the Name passed into the function""" def predicate(ctx) -> bool: if ctx.author.name == name: return True raise MissingName(name, "Author") return commands.check(predicate) def has_channel_name(name: str): """Checks if the Command Channel's Name is the same as the Name passed into the function""" def predicate(ctx) -> bool: if ctx.channel.name == name: return True raise MissingName(name, "Channel") return commands.check(predicate) def has_guild_name(name: str): """Checks if the Command Guild's Name is the same as the Name passed into the function""" def predicate(ctx) -> bool: if ctx.guild.name == name: return True raise MissingName(name, "Guild") return commands.check(predicate) def has_user_name_in(names: Iterable[str]): """Checks if the Command Author's Name is the same as any Name in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for name in names: if ctx.author.name == name: return True raise MissingName(names, "Author") return commands.check(predicate) def has_channel_name_in(names: Iterable[str]): """Checks if the Command Channel's Name is the same as any Name in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for name in names: if ctx.channel.name == name: return True raise MissingName(names, "Channel") return commands.check(predicate) def has_guild_name_in(names: Iterable[str]): """Checks if the Command Guild's Name is the same as any Name in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for name in names: if ctx.guild.name == name: return True raise MissingName(names, "Guild") return commands.check(predicate) def has_discrim(discrim: str): """Checks if the Command Author's Discriminator is the same as the Discriminator passed into the function""" def predicate(ctx) -> bool: if ctx.author.discriminator.replace("#", "") == discrim.replace("#", ""): return True raise MissingDiscrim(discrim) return commands.check(predicate) def has_discrim_in(discrims: Iterable[str]): """Checks if the Command Author's Discriminator is the same as any one in the Iterable Object (List, Tuple, etc) passed into the function""" def predicate(ctx) -> bool: for discrim in discrims: if ctx.author.discriminator.replace("#", "") == discrim.replace("#", ""): return True raise MissingDiscrim(discrim) return commands.check(predicate) def has_args(number: int): """Checks if the Number of Args in the Command passed is equal to the Number passed into this function (Context is considered to be an Arg)""" def predicate(ctx) -> bool: if len(ctx.args) == number: return True raise NotEqualArgs(number, ctx.command.clean_params[len(ctx.args):]) return commands.check(predicate) def has_args_atleast(number: int): """Checks if the Number of Args in the Command passed is greater than or equal to the Number passed into this function (Context is considered to be an Arg)""" def predicate(ctx) -> bool: if len(ctx.args) >= number: return True raise NotEnoughArgs(number, ctx.command.clean_params[len(ctx.args):]) return commands.check(predicate) def has_nick(): """Checks if the Command Author has a Nickname""" def predicate(ctx) -> bool: if bool(ctx.author.nick): return True raise MissingNick("The Command Author does not have a Nickname") return commands.check(predicate) def is_listening(): """Checks if the Command Author is listening to Spotify""" def predicate(ctx) -> bool: for activity in ctx.author.activities: if isinstance(activity, Spotify): return True raise NotListening("The Command Author is not listening to Spotify") return commands.check(predicate)
34.789017
162
0.642104
1,659
12,037
4.588306
0.07836
0.04598
0.031792
0.054913
0.859564
0.833552
0.790594
0.746847
0.698371
0.488571
0
0
0.25729
12,037
345
163
34.889855
0.851454
0.349423
0
0.574359
0
0.010256
0.112136
0
0
0
0
0
0
1
0.251282
false
0.030769
0.025641
0
0.548718
0
0
0
0
null
0
0
0
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
1
0
0
0
0
1
0
0
6
53b31f918229831d546efc66ddcc781a7fb204ed
81
py
Python
tests/test_appstore.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
1
2019-07-05T06:59:41.000Z
2019-07-05T06:59:41.000Z
tests/test_appstore.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
2
2019-07-14T19:39:17.000Z
2019-07-22T05:26:51.000Z
tests/test_appstore.py
grantjenks/python-appstore
d9aae18de157dfb7d9396d1af7e7b62168489990
[ "Apache-2.0" ]
null
null
null
import appstore def test_title(): assert appstore.__title__ == 'App Store'
13.5
44
0.716049
10
81
5.3
0.8
0
0
0
0
0
0
0
0
0
0
0
0.185185
81
5
45
16.2
0.80303
0
0
0
0
0
0.111111
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
6
53f812062a8984af5f4feeb90d520d37196bc178
164,260
py
Python
web/transiq/restapi/tests/test_api_employee.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/restapi/tests/test_api_employee.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/restapi/tests/test_api_employee.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
import json from datetime import datetime from django.contrib.auth.models import User from django.urls import reverse from model_mommy import mommy from rest_framework import status from rest_framework.test import APITestCase from employee.models import Employee, Designation, Department, FitnessDetail, PastEmployment, PermanentAddress, \ Referral, EmploymentAgency, CurrentEmploymentDetails, EducationalDegree, CertificationCourse, SkillSet, Nominee, \ LeaveRecord, Salary, Task, TaskEmail from utils.models import State, City, Address, AahoOffice, Bank class EmployeeSetup(APITestCase): """ Setup dummy data for Employee Setup """ def setUp(self): self.login_url = reverse('login') self.test_user = User.objects.create_user('testUser', 'test@example.com', 'testPassword') self.login_data = self.client.post(self.login_url, {"username": "testUser", "password": "testPassword"}).content self.login_data = json.loads(self.login_data.decode('utf8')) self.token = "Token {}".format(self.login_data["token"]) self.state = mommy.make(State) self.city = mommy.make(City) self.address = mommy.make(Address) self.aaho_office = mommy.make(AahoOffice) self.aaho_poc = mommy.make(Employee) self.account_details = mommy.make(Bank) self.bank = mommy.make(Bank) self.designation = mommy.make(Designation) self.department = mommy.make(Department) self.fitness_detail = mommy.make(FitnessDetail) self.past_employment = mommy.make(PastEmployment) self.permanent_address = mommy.make(PermanentAddress) self.referral = mommy.make(Referral) self.employment_agency = mommy.make(EmploymentAgency) self.employee = mommy.make(Employee) self.current_employment_details = mommy.make(CurrentEmploymentDetails) self.educational_degree = mommy.make(EducationalDegree) self.certification_course = mommy.make(CertificationCourse) self.skill_set = mommy.make(SkillSet) self.nominee = mommy.make(Nominee) self.leave_record = mommy.make(LeaveRecord) self.salary = mommy.make(Salary) self.task = mommy.make(Task) self.task_email = mommy.make(TaskEmail) class DesignationTest(EmployeeSetup): """ Test cases for Designation """ def setUp(self): super().setUp() self.designation_data = { "name": "Harshada aaho", "deleted": False, "deleted_on": None } self.minimum_valid_data = { "name": "test" } self.create_url = reverse("employee_designation_create") self.update_url = reverse("employee_designation_update", kwargs={"pk": self.designation.id}) self.partial_update_url = reverse("employee_designation_partial_update", kwargs={"pk": self.designation.id}) self.retrieve_url = reverse("employee_designation_retrieve", kwargs={"pk": self.designation.id}) def test_create_designation_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) #adding deleted to minimum data def test_create_designation_with_valid_deleted(self): data = self.minimum_valid_data.copy() data["deleted"] = True self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # adding deleted on to minimum data def test_create_designation_with_valid_deleted_on(self): data = self.minimum_valid_data.copy() data["deleted_on"] = datetime.now() self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_designation_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_designation_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.designation_data.copy() data["deleted"] = 'invalid' response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["name"] = "a"*101 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_designation_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_designation_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.designation_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_designation_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_designation(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_designation(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_designation_retrieve", kwargs={"pk": self.designation.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class DepartmentTest(EmployeeSetup): """ Test cases for Department """ def setUp(self): super().setUp() self.department_data = { "name": "Department aaho", "deleted": False, "deleted_on": None } self.minimum_valid_data = { "name": "test" } self.create_url = reverse("employee_department_create") self.update_url = reverse("employee_department_update", kwargs={"pk": self.department.id}) self.partial_update_url = reverse("employee_department_partial_update", kwargs={"pk": self.department.id}) self.retrieve_url = reverse("employee_department_retrieve", kwargs={"pk": self.department.id}) def test_create_department_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) #adding deleted in minimum data def test_create_department_with_valid_deleted(self): data = self.minimum_valid_data.copy() data["deleted"] = True self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # adding deleted on in minimum data def test_create_department_with_valid_deleted_on(self): data = self.minimum_valid_data.copy() data["deleted_on"] = datetime.now() self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_department_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_department_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.department_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["deleted"] = "invalid" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["name"] = "a"* 101 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_department_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_department_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.department_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_department_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_department(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_department(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_department_retrieve", kwargs={"pk": self.department.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class FitnessDetailTest(EmployeeSetup): """ Test cases for FitnessDetail """ def setUp(self): super().setUp() self.fitness_detail_data = { "height": "0.00", "weight": "0.00", "blood_group": 'o_pos', "medical_fitness": "Awesome", "emergency_contact_person_name": "Mr.X", "emergency_contact_person_phone": "2343452341", "emergency_contact_person_email": "test@aaho.com", "created_on": "2018-06-25T12:05:04.935253", "updated_on": "2018-06-25T12:05:04.935287", "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_fitness_detail_create") self.update_url = reverse("employee_fitness_detail_update", kwargs={"pk": self.fitness_detail.id}) self.partial_update_url = reverse("employee_fitness_detail_partial_update", kwargs={"pk": self.fitness_detail.id}) self.retrieve_url = reverse("employee_fitness_detail_retrieve", kwargs={"pk": self.fitness_detail.id}) def test_create_fitness_detail_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) #Adding field blood_group to min valid data def test_create_fitness_detail_with_blood_group(self): self.minimum_valid_data["blood_group"] = "o_pos" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) #Adding field emergency_contact_person_name to min valid data def test_create_fitness_detail_with_emergency_contact_person_name(self): self.minimum_valid_data["emergency_contact_person_name"] = "test" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_fitness_detail_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_fitness_detail_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.fitness_detail_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.fitness_detail_data.copy() data["blood_group"] = "invalidChoice" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.fitness_detail_data.copy() data["weight"] = "invalidWeight" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.fitness_detail_data.copy() data["height"] = "invalid123" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_fitness_detail_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_fitness_detail_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.fitness_detail_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_fitness_detail_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data = {"blood_group": "a_pos"} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_fitness_detail(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_fitness_detail(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_fitness_detail_retrieve", kwargs={"pk": self.fitness_detail.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class PastEmploymentTest(EmployeeSetup): """ Test cases for PastEmployment """ def setUp(self): super().setUp() self.past_employment_data = { "joining_date": "2017-06-25", "leaving_date": "2018-06-25", "organisation": "aaho", "designation": "HOD", "reporting_manager": "Tsunade", "gross_compensation": "123222213", "reason_for_change": "Bored", "total_experience": "5 years", "relevant_experience": "6 years", "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_past_employment_create") self.update_url = reverse("employee_past_employment_update", kwargs={"pk": self.past_employment.id}) self.partial_update_url = reverse("employee_past_employment_partial_update", kwargs={"pk": self.past_employment.id}) self.retrieve_url = reverse("employee_past_employment_retrieve", kwargs={"pk": self.past_employment.id}) def test_create_past_employment_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field joining_date to min valid data def test_create_past_employment_with_joining_date(self): self.minimum_valid_data["joining_date"] = "2017-06-25" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field organisation to min valid data def test_create_past_employment_with_emergency_contact_person_name(self): self.minimum_valid_data["organisation"] = "test" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_past_employment_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_past_employment_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.past_employment_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.past_employment_data.copy() data["joining_date"] = "2018-06-25T12:05:04.935253" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.past_employment_data.copy() data["total_experience"] = "a"*21 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.past_employment_data.copy() data["relevant_experience"] = "a"*21 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_past_employment_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_past_employment_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.past_employment_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_past_employment_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_past_employment(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_past_employment(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_past_employment_retrieve", kwargs={"pk": self.past_employment.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class PermanentAddressTest(EmployeeSetup): """ Test cases for PermanentAddress """ def setUp(self): super().setUp() self.permanent_address_data = { "address": "Hokage street", "pin": "122312", "phone": "1232123212", "city": self.city.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_permanent_address_create") self.update_url = reverse("employee_permanent_address_update", kwargs={"pk": self.permanent_address.id}) self.partial_update_url = reverse("employee_permanent_address_partial_update", kwargs={"pk": self.permanent_address.id}) self.retrieve_url = reverse("employee_permanent_address_retrieve", kwargs={"pk": self.permanent_address.id}) def test_create_permanent_address_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field address to min valid data def test_create_permanent_address_with_address(self): data = self.minimum_valid_data.copy() data["address"] = "Village hidden in the leaves" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field pin to min valid data def test_create_permanent_address_with_city(self): data = self.minimum_valid_data.copy() data["pin"] = "620015" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field city to min valid data def test_create_permanent_address_with_city(self): data = self.minimum_valid_data.copy() data["city"] = self.city.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_permanent_address_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_permanent_address_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.permanent_address_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.permanent_address_data.copy() data["city"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["city"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["city"] = self.permanent_address.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "0123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "123456789a" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_permanent_address_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_permanent_address_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.permanent_address_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_permanent_address_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_permanent_address(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_permanent_address(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_permanent_address_retrieve", kwargs={"pk": self.permanent_address.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class ReferralTest(EmployeeSetup): """ Test cases for Referral """ def setUp(self): super().setUp() self.referral_data = { "name": "Kakashi", "organisation": "aaho", "designation": "hokage", "phone": "1232123212", "address": "Fast lane", "email": "naruto@gmail.com", "nature_of_assisstance": "23", "number_of_year": "12", "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_referral_create") self.update_url = reverse("employee_referral_update", kwargs={"pk": self.referral.id}) self.partial_update_url = reverse("employee_referral_partial_update", kwargs={"pk": self.referral.id}) self.retrieve_url = reverse("employee_referral_retrieve", kwargs={"pk": self.referral.id}) def test_create_referral_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field address to min valid data def test_create_referral_with_address(self): self.minimum_valid_data["address"] = "Village hidden in the leaves" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field email to min valid data def test_create_referral_with_address(self): self.minimum_valid_data["email"] = "aaho@nic.in" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field phone to min valid data def test_create_referral_with_address(self): self.minimum_valid_data["phone"] = "8005021700" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_referral_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_referral_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.referral_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["name"] = "a"*101 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "0123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["deleted"] = "invalid" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_referral_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_referral_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.referral_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_referral_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_referral(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_referral(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_referral_retrieve", kwargs={"pk": self.referral.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class EmploymentAgencyTest(EmployeeSetup): """ Test cases for EmploymentAgency """ def setUp(self): super().setUp() self.employment_agency_data = { "agency_name": "aaho", "contact_name": "naruto", "phone": "1232123212", "email": "naruto@gmail.com", "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_employment_agency_create") self.update_url = reverse("employee_employment_agency_update", kwargs={"pk": self.employment_agency.id}) self.partial_update_url = reverse("employee_employment_agency_partial_update", kwargs={"pk": self.employment_agency.id}) self.retrieve_url = reverse("employee_employment_agency_retrieve", kwargs={"pk": self.employment_agency.id}) def test_create_employment_agency_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field phone to min valid data def test_create_employment_agency_with_agency_name(self): self.minimum_valid_data["phone"] = "9450490000" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field agency_name to min valid data def test_create_employment_agency_with_agency_name(self): self.minimum_valid_data["agency_name"] = "Village hidden in the leaves" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field email to min valid data def test_create_employment_agency_with_agency_name(self): self.minimum_valid_data["email"] = "aaho@pvt.ltd" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_employment_agency_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_employment_agency_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.employment_agency_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["deleted"] = "invalid" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "0123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "123abc1234" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["agency_name"] = "a"*71 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_employment_agency_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_employment_agency_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.employment_agency_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_employment_agency_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_employment_agency(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_employment_agency(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_employment_agency_retrieve", kwargs={"pk": self.employment_agency.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class EmployeeTest(EmployeeSetup): """ Test cases for Employee """ def setUp(self): super().setUp() self.employee_data = { "employee_id": "20003", "reporting_person": "Mani", "date_of_birth": "1995-06-23", "date_of_joining": "2017-06-23", "date_of_leaving": "2018-06-23", "gender": "male", "pan": "PanNumber", "aadhaar": "123212321232", "passport": "passportNumber", "marital_status": "married", "status": "active", "office": self.aaho_office.id, "username": self.test_user.username, "designation": self.designation.id, "department": self.department.id, "fitness_details": self.fitness_detail.id, "bank": self.bank.id, "past_employment": self.past_employment.id, "referral": self.referral.id, "permanent_address": self.permanent_address.id, "employment_agency": self.employment_agency.id, "office_multiple": [self.aaho_office.id], "deleted": False, "deleted_on": None } self.minimum_valid_data = { "employee_id": self.employee.id * 1212, "office_multiple": [self.aaho_office.id] } self.logout_url = reverse('logout') self.create_url = reverse("employee_employee_create") self.update_url = reverse("employee_employee_update", kwargs={"pk": self.employee.id}) self.partial_update_url = reverse("employee_employee_partial_update", kwargs={"pk": self.employee.id}) self.retrieve_url = reverse("employee_employee_retrieve", kwargs={"pk": self.employee.id}) self.filter_url = reverse("employee_employee_list") def test_create_employee_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field date_of_birth to min valid data def test_create_employee_with_date_of_birth(self): self.minimum_valid_data["date_of_birth"] = None self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field marital_status to min valid data def test_create_employee_with_marital_status(self): self.minimum_valid_data["marital_status"] = "married" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field designation to min valid data def test_create_employee_with_designation(self): self.minimum_valid_data["designation"] = self.designation.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field username to min valid data def test_create_employee_with_username(self): self.minimum_valid_data["username"] = self.test_user.username self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_employee_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_employee_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.employee_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.employee_data.copy() data["date_of_birth"] = "2018-06-06T12:01:21.885973" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.employee_data.copy() data["marital_status"] = "invalidChoice" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.employee_data.copy() data["username"] = "{}{}".format(self.test_user.username, "makingInvalid") response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) # Testing employee id should be unique data = self.employee_data.copy() data["employee_id"] = self.employee.employee_id response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_employee_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_employee_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.employee_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_employee_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["marital_status"] = "married" response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["designation"] = self.designation.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_employee(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_employee(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_employee_retrieve", kwargs={"pk": self.employee.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) # Filter test cases def test_employee_filter_working(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.filter_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) url = "{}?{}".format(self.filter_url, "id={}".format(self.employee.id)) response = self.client.get(url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_employee_search_working(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) url = "{}?{}".format(self.filter_url, "search={}".format(self.employee.id)) response = self.client.get(url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_employee_no_header(self): response = self.client.get(self.filter_url, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_employee_wrong_token(self): token = "806fa0efd3ce26fe080f65da4ad5a137e1d056ff" self.client.credentials(HTTP_AUTHORIZATION=token) response = self.client.get(self.filter_url, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_employee_expired_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.delete(self.logout_url) self.assertEqual(response.status_code, status.HTTP_200_OK) response = self.client.get(self.filter_url, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_employee_wrong_method(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.filter_url, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) class CurrentEmploymentDetailsTest(EmployeeSetup): """ Test cases for Current Employment Details """ def setUp(self): super().setUp() self.current_employment_details_data = { "current_job_responsibilities": "HOD", "present_salary": 0, "role": "HOD", "e_shops": "23", "date_of_acquisition": "2017", "date_of_vesting": "2017", "date_of_selling": "2017", "pan": "panNumber", "id_type": "unique", "id_number": "a123", "pf_account": "12uk0989", "remarks": "good", "employee": self.employee.id, "designation": self.designation.id, "department": self.department.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_current_employment_details_create") self.update_url = reverse("employee_current_employment_details_update", kwargs={"pk": self.current_employment_details.id}) self.partial_update_url = reverse("employee_current_employment_details_partial_update", kwargs={"pk": self.current_employment_details.id}) self.retrieve_url = reverse("employee_current_employment_details_retrieve", kwargs={"pk": self.current_employment_details.id}) def test_create_current_employment_details_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field role to min valid data def test_create_current_employment_details_with_role(self): self.minimum_valid_data["role"] = "Hokage" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_current_employment_details_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_current_employment_details_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_current_employment_details_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.current_employment_details_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.current_employment_details_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_current_employment_details_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_current_employment_details_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.current_employment_details_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_current_employment_details_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["designation"] = self.designation.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_current_employment_details(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_current_employment_details(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_current_employment_details_retrieve", kwargs={"pk": self.current_employment_details.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class EducationalDegreeTest(EmployeeSetup): """ Test cases for Educational Degree """ def setUp(self): super().setUp() self.educational_degree_data = { "course_name": "CSE", "college_name": "NIT GOA", "university_name": "Indian university", "specialization": "sniper", "marks_obtained": "110", "max_marks": "100", "passing_year": "2018-06-12", "employee": self.employee.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_education_degree_create") self.update_url = reverse("employee_education_degree_update", kwargs={"pk": self.educational_degree.id}) self.partial_update_url = reverse("employee_education_degree_partial_update", kwargs={"pk": self.educational_degree.id}) self.retrieve_url = reverse("employee_education_degree_retrieve", kwargs={"pk": self.educational_degree.id}) def test_create_educational_degree_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field course_name to min valid data def test_create_educational_degree_with_course_name(self): self.minimum_valid_data["course_name"] = "Hokage" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_educational_degree_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_educational_degree_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_educational_degree_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.educational_degree_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.educational_degree_data.copy() data["passing_year"] = "2018-06-25T14:38:21.614672" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.educational_degree_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_educational_degree_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_educational_degree_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.educational_degree_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_educational_degree_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_educational_degree(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_educational_degree(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_education_degree_retrieve", kwargs={"pk": self.educational_degree.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class CertificationCourseTest(EmployeeSetup): """ Test cases for CertificationCourse """ def setUp(self): super().setUp() self.certification_course_data = { "course_name": "CSE", "obtained_from": "India University", "validity": "2018-06-23", "quality": "specialist", "employee": self.employee.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_certification_course_create") self.update_url = reverse("employee_certification_course_update", kwargs={"pk": self.certification_course.id}) self.partial_update_url = reverse("employee_certification_course_partial_update", kwargs={"pk": self.certification_course.id}) self.retrieve_url = reverse("employee_certification_course_retrieve", kwargs={"pk": self.certification_course.id}) def test_create_certification_course_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field course_name to min valid data def test_create_certification_course_with_course_name(self): self.minimum_valid_data["course_name"] = "Hokage" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_certification_course_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_certification_course_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_certification_course_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.certification_course_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.certification_course_data.copy() data["validity"] = "2018-06-25T14:38:21.614672" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.certification_course_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_certification_course_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_certification_course_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.certification_course_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_certification_course_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_certification_course(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_certification_course(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_certification_course_retrieve", kwargs={"pk": self.certification_course.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class SkillSetTest(EmployeeSetup): """ Test cases for Skill Set """ def setUp(self): super().setUp() self.skill_set_data = { "technical_skill": "Backend", "professional_skill": "Sniper", "others": None, "employee": self.employee.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_skill_set_create") self.update_url = reverse("employee_skill_set_update", kwargs={"pk": self.skill_set.id}) self.partial_update_url = reverse("employee_skill_set_partial_update", kwargs={"pk": self.skill_set.id}) self.retrieve_url = reverse("employee_skill_set_retrieve", kwargs={"pk": self.skill_set.id}) def test_create_skill_set_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field technical_skill to min valid data def test_create_skill_set_with_technical_skill(self): self.minimum_valid_data["technical_skill"] = "Hokage" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_skill_set_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_skill_set_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_skill_set_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.skill_set_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.skill_set_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_skill_set_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_skill_set_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.skill_set_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_skill_set_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_skill_set(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_skill_set(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_skill_set_retrieve", kwargs={"pk": self.skill_set.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class NomineeTest(EmployeeSetup): """ Test cases for Nominee """ def setUp(self): super().setUp() self.nominee_data = { "name_of_nominee": "Hinata", "relationship_with_employee": "wife", "type_of_nomination": "wifeType", "nominee_age": "23", "percentage_share": "0.00", "address": "Hyga Residence", "pin": "123212", "phone": "1223123212", "employee": self.employee.id, "city": self.city.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_nominee_create") self.update_url = reverse("employee_nominee_update", kwargs={"pk": self.nominee.id}) self.partial_update_url = reverse("employee_nominee_partial_update", kwargs={"pk": self.nominee.id}) self.retrieve_url = reverse("employee_nominee_retrieve", kwargs={"pk": self.nominee.id}) def test_create_nominee_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field percentage_share to min valid data def test_create_nominee_with_percentage_share(self): self.minimum_valid_data["percentage_share"] = 76.23 self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_nominee_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_nominee_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_nominee_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.nominee_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.nominee_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "0123456789" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["phone"] = "12345678911" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_nominee_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_nominee_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.nominee_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_nominee_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_nominee(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_nominee(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_nominee_retrieve", kwargs={"pk": self.nominee.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class LeaveRecordTest(EmployeeSetup): """ Test cases for Leave Record """ def setUp(self): super().setUp() self.leave_record_data = { "leave_approval_status": "Pending", "leave_category": "Paid Leave", "from_date": "2017-06-23", "to_date": "2018-06-23", "reason_for_leave": "Gotta stop the 4th great ninja war", "leave_balance": "0", "remarks": "I will be back.", "employee": self.employee.id, "sanctioning_person": self.employee.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { "leave_category": "Paid Leave", } self.create_url = reverse("employee_leave_record_create") self.update_url = reverse("employee_leave_record_update", kwargs={"pk": self.leave_record.id}) self.partial_update_url = reverse("employee_leave_record_partial_update", kwargs={"pk": self.leave_record.id}) self.retrieve_url = reverse("employee_leave_record_retrieve", kwargs={"pk": self.leave_record.id}) def test_create_leave_record_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field leave_category to min valid data def test_create_leave_record_with_leave_category(self): self.minimum_valid_data["leave_category"] = "Paid Leave" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_leave_record_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_leave_record_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_leave_record_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.leave_record_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.leave_record_data.copy() data["leave_category"] = "invalidChoice" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.leave_record_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_leave_record_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_leave_record_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.leave_record_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_leave_record_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_leave_record(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_leave_record(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_leave_record_retrieve", kwargs={"pk": self.leave_record.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class SalaryTest(EmployeeSetup): """ Test cases for Salary """ def setUp(self): super().setUp() self.salary_data = { "pan_number": "123212321232", "total_salary": 10, "advance_payment": 20, "travel_allowance": 300, "food_allowance": 230, "mobile_allowance": 210, "tax_deduction": 1230, "bill_submission": 210, "net_payable": 2130, "employee": self.employee.id, "deleted": False, "deleted_on": None } self.minimum_valid_data = { } self.create_url = reverse("employee_salary_create") self.update_url = reverse("employee_salary_update", kwargs={"pk": self.salary.id}) self.partial_update_url = reverse("employee_salary_partial_update", kwargs={"pk": self.salary.id}) self.retrieve_url = reverse("employee_salary_retrieve", kwargs={"pk": self.salary.id}) def test_create_salary_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field pan_number to min valid data def test_create_salary_with_pan_number(self): self.minimum_valid_data["leave_category"] = "12321313" self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) # Adding field employee to min valid data def test_create_salary_with_employee(self): self.minimum_valid_data["employee"] = self.employee.id self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_salary_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_salary_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.salary_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.salary_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = "InvalidId" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_salary_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_salary_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.salary_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_salary_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = self.employee.id response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_salary(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_salary(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_salary_retrieve", kwargs={"pk": self.salary.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class TaskTest(EmployeeSetup): """ Test cases for Task """ def setUp(self): super().setUp() self.task_data = { "name": "hunting", "deleted": False, "deleted_on": None } self.minimum_valid_data = { "name": "Hunting" } self.create_url = reverse("employee_task_create") self.update_url = reverse("employee_task_update", kwargs={"pk": self.task.id}) self.partial_update_url = reverse("employee_task_partial_update", kwargs={"pk": self.task.id}) self.retrieve_url = reverse("employee_task_retrieve", kwargs={"pk": self.task.id}) def test_create_task_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_task_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_task_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.task_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_task_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_task_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.task_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_task_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_task(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_task(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_task_retrieve", kwargs={"pk": self.task.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) class TaskEmailTest(EmployeeSetup): """ Test cases for Task Email """ def setUp(self): super().setUp() self.task_email_data = { "office": self.aaho_office.id, "task": self.task.id, "employee": [self.employee.id], "deleted": False, "deleted_on": None } self.minimum_valid_data = { "office": self.aaho_office.id, "task": self.task.id, "employee": [self.employee.id] } self.create_url = reverse("employee_task_email_create") self.update_url = reverse("employee_task_email_update", kwargs={"pk": self.task_email.id}) self.partial_update_url = reverse("employee_task_email_partial_update", kwargs={"pk": self.task_email.id}) self.retrieve_url = reverse("employee_task_email_retrieve", kwargs={"pk": self.task_email.id}) def test_create_task_email_with_minimum_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_task_email_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_create_task_email_invalid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = self.task_email_data.copy() data["deleted_on"] = "2018-06-23" response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = self.task_email_data.copy() data["employee"] = -1 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = ["InvalidId"] response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data["employee"] = self.employee.id * 100 response = self.client.post(self.create_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_all_4_function_without_token(self): response = self.client.post(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_all_4_functions_with_invalid_token(self): self.client.credentials(HTTP_AUTHORIZATION=self.token + "invalidToken") response = self.client.post(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.put(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.patch(self.partial_update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) response = self.client.get(self.retrieve_url) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) def test_create_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.create_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.post(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_partial_update_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.partial_update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.partial_update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.get(self.partial_update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_get_function_with_invalid_request(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.retrieve_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.patch(self.retrieve_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) response = self.client.post(self.retrieve_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) def test_update_task_email_with_minimum_valid_date(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.minimum_valid_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_update_task_email_with_full_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.put(self.update_url, self.task_email_data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_partial_update_task_email_with_valid_data(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) data = {"deleted": False} response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) data["employee"] = [self.employee.id] response = self.client.patch(self.partial_update_url, data, format='json') self.assertEqual(response.status_code, status.HTTP_202_ACCEPTED) def test_retrieve_existing_task_email(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) response = self.client.get(self.retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_200_OK) def test_retrieve_non_existing_task_email(self): self.client.credentials(HTTP_AUTHORIZATION=self.token) bad_retrieve_url = reverse("employee_task_email_retrieve", kwargs={"pk": self.task_email.id * 1000}) response = self.client.get(bad_retrieve_url, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
51.948134
120
0.723591
20,440
164,260
5.507632
0.018689
0.075416
0.093857
0.151213
0.947431
0.937385
0.921289
0.909039
0.900592
0.895919
0
0.018998
0.174826
164,260
3,161
121
51.964568
0.811558
0.012097
0
0.685224
0
0
0.060491
0.01857
0
0
0
0
0.24571
1
0.12432
false
0.002093
0.003767
0
0.135622
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
99075849082be272a34fc61932108d2d52ac30f7
2,697
py
Python
API/quiz/models.py
kasimbozdag/SWE_573
4bce24f98fe6980b1f2c83196b8454b56118186b
[ "MIT" ]
null
null
null
API/quiz/models.py
kasimbozdag/SWE_573
4bce24f98fe6980b1f2c83196b8454b56118186b
[ "MIT" ]
52
2019-02-19T10:43:11.000Z
2022-02-10T10:36:37.000Z
API/quiz/models.py
kasimbozdag/SWE_573
4bce24f98fe6980b1f2c83196b8454b56118186b
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models # Create your models here. from content.models import Content from lesson.models import Lesson class Quiz(models.Model): lesson = models.ForeignKey(Lesson, on_delete=models.DO_NOTHING, unique=True) owner = models.ForeignKey(User, on_delete=models.DO_NOTHING) created_at = models.DateTimeField(auto_now_add=True, editable=False) last_edited_at = models.DateTimeField(auto_now_add=True, editable=True) is_active = models.BooleanField(default=True) def __str__(self): return self.lesson.title + " Quiz" def is_authorized(self, user): if self.owner == user: return True return False class Question(models.Model): quiz = models.ForeignKey(Quiz, on_delete=models.DO_NOTHING) owner = models.ForeignKey(User, on_delete=models.DO_NOTHING) description = models.CharField(max_length=1024) created_at = models.DateTimeField(auto_now_add=True, editable=False) last_edited_at = models.DateTimeField(auto_now_add=True, editable=True) is_active = models.BooleanField(default=True) def __str__(self): return self.description def is_authorized(self, user): if self.owner == user: return True return False class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.DO_NOTHING) owner = models.ForeignKey(User, on_delete=models.DO_NOTHING) description = models.CharField(max_length=1024) created_at = models.DateTimeField(auto_now_add=True, editable=False) last_edited_at = models.DateTimeField(auto_now_add=True, editable=True) is_active = models.BooleanField(default=True) is_answer = models.BooleanField(default=False) def __str__(self): return self.description def is_authorized(self, user): if self.owner == user: return True return False class QuizRelation(models.Model): quiz = models.ForeignKey(Quiz, on_delete=models.DO_NOTHING) user = models.ForeignKey(User, on_delete=models.DO_NOTHING) right = models.IntegerField(default=0) wrong = models.IntegerField(default=0) created_at = models.DateTimeField(auto_now_add=True, editable=False) class QuestionRelation(models.Model): question = models.ForeignKey(Question, on_delete=models.DO_NOTHING) quiz = models.ForeignKey(QuizRelation, on_delete=models.DO_NOTHING) user = models.ForeignKey(User, on_delete=models.DO_NOTHING) answer = models.ForeignKey(Choice, on_delete=models.DO_NOTHING) right = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now_add=True, editable=False)
35.96
80
0.737857
349
2,697
5.495702
0.169054
0.100104
0.087591
0.100104
0.774765
0.762774
0.762774
0.739312
0.739312
0.714286
0
0.004454
0.167594
2,697
74
81
36.445946
0.849889
0.008899
0
0.696429
0
0
0.001872
0
0
0
0
0
0
1
0.107143
false
0
0.071429
0.053571
0.946429
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
6
070c85362f26a416f8c51b3c4419d15d7daa1dfc
5,869
py
Python
tests/databases/value/mongo_db/test_value_update.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/databases/value/mongo_db/test_value_update.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
tests/databases/value/mongo_db/test_value_update.py
stevenbennett96/stk
6e5af87625b83e0bfc7243bc42d8c7a860cbeb76
[ "MIT" ]
null
null
null
import stk from ...utilities import ( DatabaseEntry, DatabaseState, assert_database_state, ) from .utilities import get_database_state def test_update_1(mongo_client): """ Test that existing entries are updated. """ collection = '_test_update_1' database_name = '_test_update_1' mongo_client.drop_database(database_name) database = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, ) molecule = stk.BuildingBlock('CCC') database.put(molecule, 12) assert_database_state( state1=get_database_state(database), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), v=12, ): 1, }), ) database.put(molecule, 43) assert_database_state( state1=get_database_state(database), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), v=43, ): 1, }), ) def test_update_2(mongo_client): """ Test that existing entries are updated. In this test, you first create two separate entries, using different molecule keys. You then update both at the same time, with a database which uses both molecule keys. """ collection = '_test_update_2' database_name = '_test_update_2' mongo_client.drop_database(database_name) database1 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.InchiKey(), ), ) database2 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.Smiles(), ), ) database3 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.InchiKey(), stk.Smiles(), ), ) molecule = stk.BuildingBlock('CCC') database1.put(molecule, 12) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), v=12, ): 1, }), ) # Should add another entry, as a different key maker is used. database2.put(molecule, 32) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), v=12, ): 1, DatabaseEntry( SMILES=stk.Smiles().get_key(molecule), v=32, ): 1, }), ) # Should update both entries as both key makers are used. database3.put(molecule, 56) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), SMILES=stk.Smiles().get_key(molecule), v=56, ): 2, }), ) def test_update_3(mongo_client): """ Test that existing entries are updated. In this test, you first create one entry with two keys. Then update the entry with databases, each using 1 different key. No duplicate entries should be made in the database this way. """ collection = '_test_update_3' database_name = '_test_update_3' mongo_client.drop_database(database_name) database1 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.InchiKey(), stk.Smiles(), ), ) database2 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.InchiKey(), ), ) database3 = stk.ValueMongoDb( mongo_client=mongo_client, collection=collection, database=database_name, put_lru_cache_size=0, get_lru_cache_size=0, key_makers=( stk.Smiles(), ), ) molecule = stk.BuildingBlock('CCC') database1.put(molecule, 12) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), SMILES=stk.Smiles().get_key(molecule), v=12, ): 1 }), ) # Should update the entry. database2.put(molecule, 32) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), SMILES=stk.Smiles().get_key(molecule), v=32, ): 1, }), ) # Should also update the entry. database3.put(molecule, 62) assert_database_state( state1=get_database_state(database1), state2=DatabaseState({ DatabaseEntry( InChIKey=stk.InchiKey().get_key(molecule), SMILES=stk.Smiles().get_key(molecule), v=62, ): 1, }), )
25.741228
67
0.582723
609
5,869
5.357964
0.142857
0.067423
0.051486
0.055777
0.787925
0.767698
0.756972
0.752375
0.738891
0.738891
0
0.025492
0.324928
5,869
227
68
25.854626
0.798082
0.11024
0
0.77095
0
0
0.018072
0
0
0
0
0
0.050279
1
0.01676
false
0
0.01676
0
0.03352
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
07519a35f1301286b633ee82f9a01aa845e021a8
26,351
py
Python
waldur_core/users/tests/test_invitation.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
23
2015-01-15T13:29:53.000Z
2017-05-04T05:12:24.000Z
waldur_core/users/tests/test_invitation.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
null
null
null
waldur_core/users/tests/test_invitation.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
8
2015-01-11T18:51:47.000Z
2017-06-29T18:53:12.000Z
from datetime import timedelta from ddt import ddt, data from django.conf import settings from django.utils import timezone from freezegun import freeze_time from mock_django import mock_signal_receiver from rest_framework import test, status from waldur_core.core.tests.helpers import override_waldur_core_settings from waldur_core.structure import models as structure_models from waldur_core.structure import signals from waldur_core.structure.tests import factories as structure_factories from waldur_core.users import models, tasks from waldur_core.users.tests import factories class BaseInvitationTest(test.APITransactionTestCase): def setUp(self): self.staff = structure_factories.UserFactory(is_staff=True) self.customer_owner = structure_factories.UserFactory() self.project_admin = structure_factories.UserFactory() self.project_manager = structure_factories.UserFactory() self.user = structure_factories.UserFactory() self.customer = structure_factories.CustomerFactory() self.second_customer = structure_factories.CustomerFactory() self.customer.add_user(self.customer_owner, structure_models.CustomerRole.OWNER) self.customer_role = structure_models.CustomerRole.OWNER self.customer_invitation = factories.CustomerInvitationFactory( customer=self.customer, customer_role=self.customer_role) self.project = structure_factories.ProjectFactory(customer=self.customer) self.project.add_user(self.project_admin, structure_models.ProjectRole.ADMINISTRATOR) self.project.add_user(self.project_manager, structure_models.ProjectRole.MANAGER) self.project_role = structure_models.ProjectRole.ADMINISTRATOR self.project_invitation = factories.ProjectInvitationFactory( project=self.project, project_role=self.project_role) @ddt class InvitationPermissionApiTest(BaseInvitationTest): # List tests def test_user_can_list_invitations(self): self.client.force_authenticate(user=self.user) response = self.client.get(factories.InvitationBaseFactory.get_list_url()) self.assertEqual(response.status_code, status.HTTP_200_OK) # Retrieve tests @data('staff', 'customer_owner') def test_user_with_access_can_retrieve_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.get(factories.ProjectInvitationFactory.get_url(self.project_invitation)) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_retrieve_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.get(factories.ProjectInvitationFactory.get_url(self.project_invitation)) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) @data('staff', 'customer_owner') def test_user_with_access_can_retrieve_customer_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.get(factories.CustomerInvitationFactory.get_url(self.customer_invitation)) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_retrieve_customer_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.get(factories.CustomerInvitationFactory.get_url(self.customer_invitation)) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) # Creation tests @data('staff', 'customer_owner') def test_user_with_access_can_create_project_admin_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_project_invitation_payload( self.project_invitation, project_role=structure_models.ProjectRole.ADMINISTRATOR) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_201_CREATED) @data('staff', 'customer_owner') def test_user_with_access_can_create_project_manager_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_project_invitation_payload( self.project_invitation, project_role=structure_models.ProjectRole.MANAGER) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_201_CREATED) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=False) def test_owner_can_create_project_manager_invitation_if_settings_are_tweaked(self): self.client.force_authenticate(user=self.customer_owner) payload = self._get_valid_project_invitation_payload( self.project_invitation, project_role=structure_models.ProjectRole.MANAGER) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_201_CREATED) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=True) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_create_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_project_invitation_payload(self.project_invitation) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(response.data, {'detail': 'You do not have permission to perform this action.'}) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=True) @data('staff', 'customer_owner') def test_user_with_access_can_create_customer_owner_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_customer_invitation_payload(self.customer_invitation) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_201_CREATED) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=False) def test_owner_can_not_create_customer_owner_invitation_if_settings_are_tweaked(self): self.client.force_authenticate(user=self.customer_owner) payload = self._get_valid_customer_invitation_payload(self.customer_invitation) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=True) @data('staff', 'customer_owner') def test_user_which_created_invitation_is_stored_in_inviatation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_customer_invitation_payload(self.customer_invitation) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) invitation = models.Invitation.objects.get(uuid=response.data['uuid']) self.assertEqual(invitation.created_by, getattr(self, user)) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_create_customer_owner_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) payload = self._get_valid_customer_invitation_payload(self.customer_invitation) response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertEqual(response.data, {'detail': 'You do not have permission to perform this action.'}) @data('staff', 'customer_owner') def test_user_with_access_can_cancel_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.ProjectInvitationFactory.get_url(self.project_invitation, action='cancel')) self.assertEqual(response.status_code, status.HTTP_200_OK) self.project_invitation.refresh_from_db() self.assertEqual(self.project_invitation.state, models.Invitation.State.CANCELED) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_cancel_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.ProjectInvitationFactory.get_url(self.project_invitation, action='cancel')) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=True) @data('staff', 'customer_owner') def test_user_with_access_can_cancel_customer_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.CustomerInvitationFactory.get_url(self.customer_invitation, action='cancel')) self.assertEqual(response.status_code, status.HTTP_200_OK) self.customer_invitation.refresh_from_db() self.assertEqual(self.customer_invitation.state, models.Invitation.State.CANCELED) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=False) def test_owner_can_not_cancel_customer_invitation_if_settings_are_tweaked(self): self.client.force_authenticate(user=self.customer_owner) response = self.client.post(factories.CustomerInvitationFactory.get_url(self.customer_invitation, action='cancel')) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=True) @data('staff', 'customer_owner') def test_user_with_access_can_send_customer_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.CustomerInvitationFactory.get_url(self.customer_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_200_OK) @override_waldur_core_settings(OWNERS_CAN_MANAGE_OWNERS=False) def test_owner_can_not_send_customer_invitation_if_settings_are_tweaked(self): self.client.force_authenticate(user=self.customer_owner) response = self.client.post(factories.CustomerInvitationFactory.get_url(self.customer_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) @data('staff', 'customer_owner') def test_user_with_access_can_send_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.ProjectInvitationFactory.get_url(self.project_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_owner_can_send_project_invitation_if_settings_are_tweaked(self): self.client.force_authenticate(user=self.customer_owner) response = self.client.post(factories.ProjectInvitationFactory.get_url(self.project_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('project_admin', 'project_manager', 'user') def test_user_without_access_cannot_send_project_invitation(self, user): self.client.force_authenticate(user=getattr(self, user)) response = self.client.post(factories.ProjectInvitationFactory.get_url(self.project_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) # API tests def test_user_cannot_create_invitation_with_invalid_link_template(self): self.client.force_authenticate(user=self.staff) payload = self._get_valid_project_invitation_payload(self.project_invitation) payload['link_template'] = '/invalid/link' response = self.client.post(factories.ProjectInvitationFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'link_template': ["Link template must include '{uuid}' parameter."]}) def test_user_cannot_create_invitation_for_project_and_customer_simultaneously(self): self.client.force_authenticate(user=self.staff) payload = self._get_valid_project_invitation_payload(self.project_invitation) customer_payload = self._get_valid_customer_invitation_payload(self.customer_invitation) payload['customer'] = customer_payload['customer'] payload['customer_role'] = customer_payload['customer_role'] response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'non_field_errors': ["Cannot create invitation to project and customer simultaneously."]}) def test_user_cannot_create_invitation_without_customer_or_project(self): self.client.force_authenticate(user=self.staff) payload = self._get_valid_project_invitation_payload(self.project_invitation) payload.pop('project') response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'non_field_errors': ["Customer or project must be provided."]}) def test_user_cannot_create_project_invitation_without_project_role(self): self.client.force_authenticate(user=self.staff) payload = self._get_valid_project_invitation_payload(self.project_invitation) payload.pop('project_role') response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'project_role': ["Project and its role must be provided."]}) def test_user_cannot_create_customer_invitation_without_customer_role(self): self.client.force_authenticate(user=self.staff) payload = self._get_valid_customer_invitation_payload(self.customer_invitation) payload.pop('customer_role') response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, {'customer_role': ["Customer and its role must be provided."]}) def test_user_can_create_invitation_for_existing_user(self): self.client.force_authenticate(user=self.staff) email = 'test@example.com' structure_factories.UserFactory(email=email) payload = self._get_valid_project_invitation_payload(self.project_invitation) payload['email'] = email response = self.client.post(factories.InvitationBaseFactory.get_list_url(), data=payload) self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_invitation_is_canceled_after_expiration_date(self): waldur_section = settings.WALDUR_CORE.copy() waldur_section['INVITATION_LIFETIME'] = timedelta(weeks=1) with self.settings(WALDUR_CORE=waldur_section): invitation = factories.ProjectInvitationFactory(created=timezone.now() - timedelta(weeks=1)) tasks.cancel_expired_invitations() self.assertEqual(models.Invitation.objects.get(uuid=invitation.uuid).state, models.Invitation.State.EXPIRED) def test_filtering_by_customer_uuid_includes_project_invitations_for_that_customer_too(self): self.client.force_authenticate(user=self.staff) response = self.client.get(factories.InvitationBaseFactory.get_list_url(), { 'customer': self.customer.uuid.hex }) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data), 2) def test_filtering_by_customer_url_includes_project_invitations_for_that_customer_too(self): self.client.force_authenticate(user=self.staff) response = self.client.get(factories.InvitationBaseFactory.get_list_url(), { 'customer_url': structure_factories.CustomerFactory.get_url(self.customer) }) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data), 2) def test_filtering_by_another_customer_does_not_includes_project_invitations_for_initial_customer(self): other_customer = structure_factories.CustomerFactory() self.client.force_authenticate(user=self.staff) response = self.client.get(factories.InvitationBaseFactory.get_list_url(), { 'customer': other_customer.uuid.hex }) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data), 0) @freeze_time('2018-05-15 00:00:00') def test_user_can_resend_expired_invitation(self): customer_expired_invitation = factories.CustomerInvitationFactory( state=models.Invitation.State.EXPIRED) self.client.force_authenticate(user=self.staff) response = self.client.post(factories.CustomerInvitationFactory .get_url(customer_expired_invitation, action='send')) self.assertEqual(response.status_code, status.HTTP_200_OK) customer_expired_invitation.refresh_from_db() self.assertEqual(customer_expired_invitation.state, models.Invitation.State.PENDING) self.assertEqual(customer_expired_invitation.created, timezone.now()) # Helper methods def _get_valid_project_invitation_payload(self, invitation=None, project_role=None): invitation = invitation or factories.ProjectInvitationFactory.build() return { 'email': invitation.email, 'link_template': invitation.link_template, 'project': structure_factories.ProjectFactory.get_url(invitation.project), 'project_role': project_role or structure_models.ProjectRole.ADMINISTRATOR, } def _get_valid_customer_invitation_payload(self, invitation=None, customer_role=None): invitation = invitation or factories.CustomerInvitationFactory.build() return { 'email': invitation.email, 'link_template': invitation.link_template, 'customer': structure_factories.CustomerFactory.get_url(invitation.customer), 'customer_role': customer_role or structure_models.CustomerRole.OWNER, } class InvitationAcceptTest(BaseInvitationTest): def test_authenticated_user_can_accept_project_invitation(self): self.client.force_authenticate(user=self.user) response = self.client.post(factories.ProjectInvitationFactory.get_url( self.project_invitation, action='accept')) self.assertEqual(response.status_code, status.HTTP_200_OK) self.project_invitation.refresh_from_db() self.assertEqual(self.project_invitation.state, models.Invitation.State.ACCEPTED) self.assertTrue(self.project.has_user(self.user, self.project_invitation.project_role)) def test_authenticated_user_can_accept_customer_invitation(self): self.client.force_authenticate(user=self.user) response = self.client.post(factories.CustomerInvitationFactory.get_url( self.customer_invitation, action='accept')) self.assertEqual(response.status_code, status.HTTP_200_OK) self.customer_invitation.refresh_from_db() self.assertEqual(self.customer_invitation.state, models.Invitation.State.ACCEPTED) self.assertTrue(self.customer.has_user(self.user, self.customer_invitation.customer_role)) def test_user_with_invalid_civil_number_cannot_accept_invitation(self): customer_invitation = factories.CustomerInvitationFactory( customer=self.customer, customer_role=self.customer_role, civil_number='123456789') self.client.force_authenticate(user=self.user) response = self.client.post(factories.CustomerInvitationFactory.get_url(customer_invitation, action='accept')) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, ['User has an invalid civil number.']) def test_user_which_already_has_role_within_customer_cannot_accept_invitation(self): customer_invitation = factories.CustomerInvitationFactory( customer=self.customer, customer_role=self.customer_role) self.client.force_authenticate(user=self.user) self.customer.add_user(self.user, customer_invitation.customer_role) response = self.client.post(factories.CustomerInvitationFactory.get_url(customer_invitation, action='accept')) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, ['User already has role within this customer.']) def test_user_which_already_has_role_within_project_cannot_accept_invitation(self): project_invitation = factories.ProjectInvitationFactory( project=self.project, project_role=self.project_role) self.client.force_authenticate(user=self.user) self.project.add_user(self.user, project_invitation.project_role) response = self.client.post(factories.ProjectInvitationFactory.get_url(project_invitation, action='accept')) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(response.data, ['User already has role within this project.']) def test_user_which_created_invitation_is_stored_in_permission(self): invitation = factories.CustomerInvitationFactory(created_by=self.customer_owner) self.client.force_authenticate(user=self.user) self.client.post(factories.CustomerInvitationFactory.get_url(invitation, action='accept')) permission = structure_models.CustomerPermission.objects.get(user=self.user, customer=invitation.customer) self.assertEqual(permission.created_by, self.customer_owner) def test_user_can_rewrite_his_email_on_invitation_accept(self): invitation = factories.CustomerInvitationFactory(created_by=self.customer_owner, email='invitation@i.ua') self.client.force_authenticate(user=self.user) self.client.post( factories.CustomerInvitationFactory.get_url(invitation, action='accept'), {'replace_email': True}) self.assertEqual(self.user.email, invitation.email) @override_waldur_core_settings(VALIDATE_INVITATION_EMAIL=True) def test_user_can_not_rewrite_his_email_on_acceptance_if_validation_of_emails_is_on(self): invitation = factories.CustomerInvitationFactory(created_by=self.customer_owner, email='invitation@i.ua') self.client.force_authenticate(user=self.user) url = factories.CustomerInvitationFactory.get_url(invitation, action='accept') response = self.client.post(url, {'replace_email': True}) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.user.refresh_from_db() self.assertNotEqual(self.user.email, invitation.email) @override_waldur_core_settings(VALIDATE_INVITATION_EMAIL=False) def test_user_can_rewrite_his_email_on_acceptance_if_validation_of_emails_is_off(self): invitation = factories.CustomerInvitationFactory(created_by=self.customer_owner, email=self.user.email) self.client.force_authenticate(user=self.user) url = factories.CustomerInvitationFactory.get_url(invitation, action='accept') response = self.client.post(url, {'replace_email': True}) self.assertEqual(response.status_code, status.HTTP_200_OK) self.user.refresh_from_db() self.assertEqual(self.user.email, invitation.email) @override_waldur_core_settings(VALIDATE_INVITATION_EMAIL=True) def test_user_can_accept_invitation_if_emails_match_and_validation_of_emails_is_on(self): invitation = factories.CustomerInvitationFactory(created_by=self.customer_owner, email=self.user.email) self.client.force_authenticate(user=self.user) url = factories.CustomerInvitationFactory.get_url(invitation, action='accept') response = self.client.post(url, {'replace_email': True}) self.assertEqual(response.status_code, status.HTTP_200_OK) self.user.refresh_from_db() self.assertEqual(self.user.email, invitation.email) def test_when_invitation_is_accepted_event_is_emitted(self): # Arrange self.project_invitation.created_by = self.customer_owner self.project_invitation.save() # Act with mock_signal_receiver(signals.structure_role_granted) as mock_signal: self.client.force_authenticate(user=self.user) self.client.post(factories.ProjectInvitationFactory.get_url( self.project_invitation, action='accept')) # Assert mock_signal.assert_called_once_with( structure=self.project, user=self.user, role=self.project_role, sender=structure_models.Project, signal=signals.structure_role_granted, created_by=self.customer_owner )
56.913607
118
0.743046
3,020
26,351
6.149007
0.072185
0.046311
0.060689
0.06252
0.831449
0.786053
0.747011
0.742811
0.728218
0.700862
0
0.006625
0.169367
26,351
462
119
57.036797
0.841785
0.003188
0
0.556757
0
0
0.052479
0
0
0
0
0
0.183784
1
0.127027
false
0
0.035135
0
0.175676
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
0763b501013e9451b1b47d0b53743a8889bd5326
6,821
py
Python
loldib/getratings/models/NA/na_malphite/na_malphite_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_malphite/na_malphite_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_malphite/na_malphite_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Malphite_Jng_Aatrox(Ratings): pass class NA_Malphite_Jng_Ahri(Ratings): pass class NA_Malphite_Jng_Akali(Ratings): pass class NA_Malphite_Jng_Alistar(Ratings): pass class NA_Malphite_Jng_Amumu(Ratings): pass class NA_Malphite_Jng_Anivia(Ratings): pass class NA_Malphite_Jng_Annie(Ratings): pass class NA_Malphite_Jng_Ashe(Ratings): pass class NA_Malphite_Jng_AurelionSol(Ratings): pass class NA_Malphite_Jng_Azir(Ratings): pass class NA_Malphite_Jng_Bard(Ratings): pass class NA_Malphite_Jng_Blitzcrank(Ratings): pass class NA_Malphite_Jng_Brand(Ratings): pass class NA_Malphite_Jng_Braum(Ratings): pass class NA_Malphite_Jng_Caitlyn(Ratings): pass class NA_Malphite_Jng_Camille(Ratings): pass class NA_Malphite_Jng_Cassiopeia(Ratings): pass class NA_Malphite_Jng_Chogath(Ratings): pass class NA_Malphite_Jng_Corki(Ratings): pass class NA_Malphite_Jng_Darius(Ratings): pass class NA_Malphite_Jng_Diana(Ratings): pass class NA_Malphite_Jng_Draven(Ratings): pass class NA_Malphite_Jng_DrMundo(Ratings): pass class NA_Malphite_Jng_Ekko(Ratings): pass class NA_Malphite_Jng_Elise(Ratings): pass class NA_Malphite_Jng_Evelynn(Ratings): pass class NA_Malphite_Jng_Ezreal(Ratings): pass class NA_Malphite_Jng_Fiddlesticks(Ratings): pass class NA_Malphite_Jng_Fiora(Ratings): pass class NA_Malphite_Jng_Fizz(Ratings): pass class NA_Malphite_Jng_Galio(Ratings): pass class NA_Malphite_Jng_Gangplank(Ratings): pass class NA_Malphite_Jng_Garen(Ratings): pass class NA_Malphite_Jng_Gnar(Ratings): pass class NA_Malphite_Jng_Gragas(Ratings): pass class NA_Malphite_Jng_Graves(Ratings): pass class NA_Malphite_Jng_Hecarim(Ratings): pass class NA_Malphite_Jng_Heimerdinger(Ratings): pass class NA_Malphite_Jng_Illaoi(Ratings): pass class NA_Malphite_Jng_Irelia(Ratings): pass class NA_Malphite_Jng_Ivern(Ratings): pass class NA_Malphite_Jng_Janna(Ratings): pass class NA_Malphite_Jng_JarvanIV(Ratings): pass class NA_Malphite_Jng_Jax(Ratings): pass class NA_Malphite_Jng_Jayce(Ratings): pass class NA_Malphite_Jng_Jhin(Ratings): pass class NA_Malphite_Jng_Jinx(Ratings): pass class NA_Malphite_Jng_Kalista(Ratings): pass class NA_Malphite_Jng_Karma(Ratings): pass class NA_Malphite_Jng_Karthus(Ratings): pass class NA_Malphite_Jng_Kassadin(Ratings): pass class NA_Malphite_Jng_Katarina(Ratings): pass class NA_Malphite_Jng_Kayle(Ratings): pass class NA_Malphite_Jng_Kayn(Ratings): pass class NA_Malphite_Jng_Kennen(Ratings): pass class NA_Malphite_Jng_Khazix(Ratings): pass class NA_Malphite_Jng_Kindred(Ratings): pass class NA_Malphite_Jng_Kled(Ratings): pass class NA_Malphite_Jng_KogMaw(Ratings): pass class NA_Malphite_Jng_Leblanc(Ratings): pass class NA_Malphite_Jng_LeeSin(Ratings): pass class NA_Malphite_Jng_Leona(Ratings): pass class NA_Malphite_Jng_Lissandra(Ratings): pass class NA_Malphite_Jng_Lucian(Ratings): pass class NA_Malphite_Jng_Lulu(Ratings): pass class NA_Malphite_Jng_Lux(Ratings): pass class NA_Malphite_Jng_Malphite(Ratings): pass class NA_Malphite_Jng_Malzahar(Ratings): pass class NA_Malphite_Jng_Maokai(Ratings): pass class NA_Malphite_Jng_MasterYi(Ratings): pass class NA_Malphite_Jng_MissFortune(Ratings): pass class NA_Malphite_Jng_MonkeyKing(Ratings): pass class NA_Malphite_Jng_Mordekaiser(Ratings): pass class NA_Malphite_Jng_Morgana(Ratings): pass class NA_Malphite_Jng_Nami(Ratings): pass class NA_Malphite_Jng_Nasus(Ratings): pass class NA_Malphite_Jng_Nautilus(Ratings): pass class NA_Malphite_Jng_Nidalee(Ratings): pass class NA_Malphite_Jng_Nocturne(Ratings): pass class NA_Malphite_Jng_Nunu(Ratings): pass class NA_Malphite_Jng_Olaf(Ratings): pass class NA_Malphite_Jng_Orianna(Ratings): pass class NA_Malphite_Jng_Ornn(Ratings): pass class NA_Malphite_Jng_Pantheon(Ratings): pass class NA_Malphite_Jng_Poppy(Ratings): pass class NA_Malphite_Jng_Quinn(Ratings): pass class NA_Malphite_Jng_Rakan(Ratings): pass class NA_Malphite_Jng_Rammus(Ratings): pass class NA_Malphite_Jng_RekSai(Ratings): pass class NA_Malphite_Jng_Renekton(Ratings): pass class NA_Malphite_Jng_Rengar(Ratings): pass class NA_Malphite_Jng_Riven(Ratings): pass class NA_Malphite_Jng_Rumble(Ratings): pass class NA_Malphite_Jng_Ryze(Ratings): pass class NA_Malphite_Jng_Sejuani(Ratings): pass class NA_Malphite_Jng_Shaco(Ratings): pass class NA_Malphite_Jng_Shen(Ratings): pass class NA_Malphite_Jng_Shyvana(Ratings): pass class NA_Malphite_Jng_Singed(Ratings): pass class NA_Malphite_Jng_Sion(Ratings): pass class NA_Malphite_Jng_Sivir(Ratings): pass class NA_Malphite_Jng_Skarner(Ratings): pass class NA_Malphite_Jng_Sona(Ratings): pass class NA_Malphite_Jng_Soraka(Ratings): pass class NA_Malphite_Jng_Swain(Ratings): pass class NA_Malphite_Jng_Syndra(Ratings): pass class NA_Malphite_Jng_TahmKench(Ratings): pass class NA_Malphite_Jng_Taliyah(Ratings): pass class NA_Malphite_Jng_Talon(Ratings): pass class NA_Malphite_Jng_Taric(Ratings): pass class NA_Malphite_Jng_Teemo(Ratings): pass class NA_Malphite_Jng_Thresh(Ratings): pass class NA_Malphite_Jng_Tristana(Ratings): pass class NA_Malphite_Jng_Trundle(Ratings): pass class NA_Malphite_Jng_Tryndamere(Ratings): pass class NA_Malphite_Jng_TwistedFate(Ratings): pass class NA_Malphite_Jng_Twitch(Ratings): pass class NA_Malphite_Jng_Udyr(Ratings): pass class NA_Malphite_Jng_Urgot(Ratings): pass class NA_Malphite_Jng_Varus(Ratings): pass class NA_Malphite_Jng_Vayne(Ratings): pass class NA_Malphite_Jng_Veigar(Ratings): pass class NA_Malphite_Jng_Velkoz(Ratings): pass class NA_Malphite_Jng_Vi(Ratings): pass class NA_Malphite_Jng_Viktor(Ratings): pass class NA_Malphite_Jng_Vladimir(Ratings): pass class NA_Malphite_Jng_Volibear(Ratings): pass class NA_Malphite_Jng_Warwick(Ratings): pass class NA_Malphite_Jng_Xayah(Ratings): pass class NA_Malphite_Jng_Xerath(Ratings): pass class NA_Malphite_Jng_XinZhao(Ratings): pass class NA_Malphite_Jng_Yasuo(Ratings): pass class NA_Malphite_Jng_Yorick(Ratings): pass class NA_Malphite_Jng_Zac(Ratings): pass class NA_Malphite_Jng_Zed(Ratings): pass class NA_Malphite_Jng_Ziggs(Ratings): pass class NA_Malphite_Jng_Zilean(Ratings): pass class NA_Malphite_Jng_Zyra(Ratings): pass
16.357314
46
0.776133
972
6,821
5.020576
0.151235
0.197951
0.42418
0.509016
0.814139
0.814139
0
0
0
0
0
0
0.162879
6,821
416
47
16.396635
0.854641
0
0
0.498195
0
0
0
0
0
0
0
0
0
1
0
true
0.498195
0.00361
0
0.501805
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
4affa13e602ac1aa36ead46612caf51f558202cd
29,011
py
Python
friction.py
ANANTstudent/friction1
8f82f0e319877df6eff6f9ab285522cd2f8b8799
[ "Apache-2.0" ]
null
null
null
friction.py
ANANTstudent/friction1
8f82f0e319877df6eff6f9ab285522cd2f8b8799
[ "Apache-2.0" ]
null
null
null
friction.py
ANANTstudent/friction1
8f82f0e319877df6eff6f9ab285522cd2f8b8799
[ "Apache-2.0" ]
null
null
null
from tkinter import * from tkinter import ttk import math from PIL import ImageTk, Image sr=1 wt=0 ang=15 pan=0 muv=0.5 sum='NAN' class HoverButton(Button): def __init__(self, master, **kw): Button.__init__(self, master=master, **kw) self.defaultBackground = self["background"] self.defaultForeground = self["foreground"] self.bind("<Enter>", self.on_enter) self.bind("<Leave>", self.on_leave) def on_enter(self, e): self['background'] = self['activebackground'] self['foreground'] = self['activeforeground'] def on_leave(self, e): self['background'] = self.defaultBackground self['foreground'] = self.defaultForeground def viewtablef(): global sr sr=1 ws = Tk() ws.title('viewtable') ws.geometry('600x210') ws['bg'] = 'white' scorll = Scrollbar(ws) scorll.pack(side=RIGHT, fill=X) scorll = Scrollbar(ws, orient='horizontal') scorll.pack(side=BOTTOM, fill=Y) global table table = ttk.Treeview(ws, yscrollcommand=scorll.set, xscrollcommand=scorll.set) scorll.config(command=table.yview) scorll.config(command=table.xview) table['columns'] = ('SR.NO', 'SURFACE OF SLIDER', 'WEIGHT OF PAN', 'WEIGHT OF BLOCK', 'COEFFICIENT OF FRICTION') table.column("#0", width=0, stretch=NO) table.column("SR.NO", anchor=CENTER, width=40) table.column("SURFACE OF SLIDER", anchor=CENTER, width=120) table.column("WEIGHT OF PAN", anchor=CENTER, width=120) table.column("WEIGHT OF BLOCK", anchor=CENTER, width=120) table.column("COEFFICIENT OF FRICTION", anchor=CENTER, width=160) table.heading("#0", text="", anchor=CENTER) table.heading("SR.NO", text="SR.NO", anchor=CENTER) table.heading("SURFACE OF SLIDER", text="SURFACE OF SLIDER", anchor=CENTER) table.heading("WEIGHT OF PAN", text="WEIGHT OF PAN", anchor=CENTER) table.heading("WEIGHT OF BLOCK", text="WEIGHT OF BLOCK", anchor=CENTER) table.heading("COEFFICIENT OF FRICTION", text="COEFFICIENT OF FRICTION", anchor=CENTER) table.pack() ws.mainloop() def addtotablef(): global sr if (muv == 0.5): check = "Rubber" else: check = "Aluminium" table.insert('', END, values=(sr, check, pan, wt, sum)) sr+=1 def murubber(): global muv muv=0.5 angrad=ang*math.pi/180 mattype=Label(friction,text='Rubber ',background='white',font=('Helvatical bold',25)) mattype.place(x=200, y=650) if (pan > (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def mualu(): global muv muv=0.45 angrad=ang*math.pi/180 mattype = Label(friction, text='Aluminium ', background='white', font=('Helvatical bold', 25)) mattype.place(x=200, y=650) if (pan > (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def resetu(): global ang ang=15 global wt wt=0 global pan pan=0 global muv muv = 0.5 global sum sum = 0 global sr sr=1 img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) inanglabel = Label(friction, text=ang, font=30, bg='white') inwtlabel = Label(friction, text=str(wt)+" ", font=30, bg='white') inpanlabel = Label(friction, text=str(pan)+" ", font=30, bg='white') mattype = Label(friction, text='Rubber ', background='white', font=('Helvatical bold', 25)) suml = Label(friction, text=" ", font=30, bg='white') suml.place(x=110, y=460) mattype.place(x=200, y=650) inanglabel.place(x=125, y=375) inwtlabel.place(x=130, y=102) inpanlabel.place(x=160, y=245) for item in table.get_children(): table.delete(item) def weightplus(): global wt wt+=100 wtlbl = Label(friction, text=wt, font=30,bg='white') wtlbl.place(x=130, y=102) global ang angrad = ang * math.pi / 180 if (pan >= (muv * wt * math.cos(angrad)) + wt * math.sin(angrad)): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def weightmin(): global wt if(wt>0): wt-=100 wtlbl = Label(friction, text=str(wt)+" ", font=30,bg='white') wtlbl.place(x=130, y=102) global ang angrad = ang * math.pi / 180 if (pan > (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def angminus(): global ang if(ang>15): ang-=15 anglbl=Label(friction,text=ang,font=30,bg='white') anglbl.place(x=125,y=375) if(ang==15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def angplus(): global ang if(ang<75): ang+=15 anglbl=Label(friction,text=ang,font=30,bg='white') if(ang==30): img2=Image.open("Friction_30deg_long.png") img.paste(img2,(0,0)) elif(ang==45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) anglbl.place(x=125,y=375) def calcu(): global ang global wt global pan global img global canva global sum angrad = ang * math.pi / 180 if(pan==wt*math.sin(angrad)): suml=Label(friction,text="change any value ",font=30,bg='white') suml.place(x=110, y=457) else: sum=((pan-(wt*math.sin(angrad)))/(wt*math.cos(angrad))) sum=abs(sum) if(abs((sum-muv))<muv*5/100): suml=Label(friction,text=str(sum)+" ",font=30,bg='white',fg='green') suml.place(x=110,y=457) elif(abs((sum-muv))<muv/10): suml = Label(friction, text=str(sum)+" ", font=30, bg='white', fg='orange') suml.place(x=110, y=457) else: suml = Label(friction, text=str(sum)+" ", font=30, bg='white', fg='red') suml.place(x=110, y=457) def panplus100(): global pan pan+=100 panlbl = Label(friction, text=str(pan)+" ", font=30, bg='white') panlbl.place(x=160, y=245) global ang angrad = ang * math.pi / 180 if (pan >= (muv * wt * math.cos(angrad)) + wt * math.sin(angrad)): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def panplus25(): global pan pan+=25 global ang angrad = ang * math.pi / 180 panlbl = Label(friction, text=str(pan)+" ", font=30, bg='white') panlbl.place(x=160, y=245) if (pan >= (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def panplus5(): global pan pan+=5 global ang angrad = ang * math.pi / 180 panlbl = Label(friction, text=str(pan)+" ", font=30, bg='white') panlbl.place(x=160, y=245) if (pan >= (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def panplus1(): global pan pan+=1 global ang angrad = ang * math.pi / 180 panlbl = Label(friction, text=str(pan)+" ", font=30, bg='white') panlbl.place(x=160, y=245) if (pan >= (muv * wt * math.cos(angrad)) + (wt * math.sin(angrad))): if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) def panminus100(): global pan global ang angrad = ang * math.pi / 180 if (pan>99): pan-=100 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) if (pan <=((muv * wt * math.cos(angrad)) + (wt * math.sin(angrad)))): if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: pan=0 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) def panminus25(): global pan global ang angrad = ang * math.pi / 180 if (pan>24): pan-=25 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) if (pan <=((muv * wt * math.cos(angrad)) + (wt * math.sin(angrad)))): if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: pan=0 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) def panminus5(): global pan global ang angrad = ang * math.pi / 180 if (pan>4): pan-=5 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) if (pan <=((muv * wt * math.cos(angrad)) + (wt * math.sin(angrad)))): if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: pan=0 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) def panminus1(): global pan global ang angrad = ang * math.pi / 180 if (pan>0): pan-=1 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) if (pan <=((muv * wt * math.cos(angrad)) + (wt * math.sin(angrad)))): if (ang == 15): img2 = Image.open("Friction_15deg_long.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_long.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_long.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_long.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_long.png") img.paste(img2, (0, 0)) else: if (ang == 15): img2 = Image.open("Friction_15deg_short.png") img.paste(img2, (0, 0)) elif (ang == 30): img2 = Image.open("Friction_30deg_short.png") img.paste(img2, (0, 0)) elif (ang == 45): img2 = Image.open("Friction_45deg_short.png") img.paste(img2, (0, 0)) elif (ang == 60): img2 = Image.open("Friction_60deg_short.png") img.paste(img2, (0, 0)) elif (ang == 75): img2 = Image.open("Friction_75deg_short.png") img.paste(img2, (0, 0)) else: pan=0 panlbl = Label(friction, text=str(pan)+" ", font=30,bg='white') panlbl.place(x=160, y=245) friction = Tk() friction.geometry("1080x720") friction.title("FRICTION") canva = Canvas(friction, width=1080, height=720) img = ImageTk.PhotoImage(Image.open("Friction_15deg_long.png")) canva.create_image(10, 10, anchor=NW, image=img) inanglabel = Label(friction,text='15 ',font=30,bg='white') inwtlabel = Label(friction,text=str(wt)+" ",font=30,bg='white') inpanlabel = Label(friction,text=str(pan)+" ",font=30,bg='white') wtlabl = Label(friction,text='WEIGHT OF BLOCK (in grams)',font=('Helvatical bold',25),foreground='blue',background='white') panlabl = Label(friction,text='WEIGHT OF PAN (in grams)',font=('Helvatical bold',25),fg='blue',bg='white') anglabl = Label(friction,text='ANGLE OF INCLINATION',font=('Helvatical bold',25),fg='blue',bg='white') pluspn100 = HoverButton(friction , text = '+100', command = panplus100,background='white',padx=2,pady=2, activeforeground='blue',highlightthickness=0,borderwidth=0) minpn100 = HoverButton(friction , text = '-100',padx=2,pady=2 ,command = panminus100,background='white',activeforeground='blue',borderwidth=0) pluspn25 = HoverButton(friction , text = '+25',padx=2,pady=2,borderwidth=0 , command = panplus25,background='white',activeforeground='blue') minpn25 = HoverButton(friction , text = '-25',padx=2,pady=2 , borderwidth=0,command = panminus25,background='white',activeforeground='blue') pluspn5 = HoverButton(friction , text = '+5',padx=2,pady=2,borderwidth=0 , command = panplus5,background='white',activeforeground='blue') minpn5 = HoverButton(friction , text = '-5',padx=2,pady=2 , borderwidth=0,command = panminus5,background='white',activeforeground='blue') pluspn1 = HoverButton(friction , text = '+1',padx=2,pady=2,borderwidth=0 , command = panplus1,background='white',activeforeground='blue') minpn1 = HoverButton(friction , text = '-1',padx=2,pady=2 , borderwidth=0,command = panminus1,background='white',activeforeground='blue') pluswt = HoverButton(friction , text = '+100',padx=2,pady=2 ,borderwidth=0, command = weightplus,background='white',activeforeground='blue') minwt = HoverButton(friction,text='-100',command=weightmin,borderwidth=0,padx=2,pady=2 ,background='white',activeforeground='blue') minang = HoverButton(friction,text='-15',command=angminus,borderwidth=0,padx=2,pady=2,background='white',activeforeground='blue') plusang = HoverButton(friction,text='+15',command=angplus,borderwidth=0,padx=2,pady=2,background='white',activeforeground='blue') calc = HoverButton(friction,text='CALC',command=calcu,borderwidth=0,padx=2,pady=2,background='white',activeforeground='blue') reset = HoverButton(friction,text='RESET',command=resetu,padx=2,pady=2,borderwidth=0,bg='white',activeforeground='blue') quiit = HoverButton(friction,text="QUIT", command =friction.destroy,padx=2,pady=2,borderwidth=0,bg='white',activeforeground='blue') mu = Label(friction,text='μ :',font=('Helvatical bold',25),fg='blue',bg='white') rubber = HoverButton(friction,text='RUBBER',command=murubber,padx=2,pady=2,borderwidth=0,background='white',activeforeground='blue') aluminium = HoverButton(friction,text='ALUMINIUM',command=mualu,padx=2,pady=2,borderwidth=0,background='white',activeforeground='blue') material = Label(friction,text='MATERIAL : ',background='white',font=('Helvatical bold',25),fg='blue',activeforeground='blue') viewtable = HoverButton(friction,text='View Table',command=viewtablef,padx=2,pady=2,borderwidth=0,background='white',activeforeground='blue') addtotable = HoverButton(friction,text='Add To Table',command=addtotablef,padx=2,pady=2,borderwidth=0,background='white',activeforeground='blue') if(muv == 0.5): type = 'Rubber' else: type = 'Aluminium' mattype = Label(friction,text=type,background='white',font=('Helvatical bold',25)) selectmaterial = Label(friction,text="SELECT MATERIAL",font=('Helvatical bold',25),bg='white',fg='blue') canva.place(x=0,y=0) quiit.place(x=122,y=500) calc.place(x=40,y=500) minang.place(x=60,y=375) plusang.place(x=160,y=375) pluswt.place(x=180,y=100) minwt.place(x=60,y=100) inanglabel.place(x=125,y=375) inwtlabel.place(x=130,y=102) inpanlabel.place(x=160, y=245) panlabl.place(x=25,y=170) anglabl.place(x=25,y=330) pluspn100.place(x=60,y=220) minpn100.place(x=60,y=270) pluspn25.place(x=125,y=220) minpn25.place(x=125,y=270) pluspn5.place(x=180,y=220) minpn5.place(x=180,y=270) pluspn1.place(x=230,y=220) minpn1.place(x=230,y=270) wtlabl.place(x=25,y=50) reset.place(x=200,y=500) mu.place(x=50,y=450) rubber.place(x=50,y=600) aluminium.place(x=175,y=600) selectmaterial.place(x=30,y=550) material.place(x=50,y=650) mattype.place(x=200,y=650) viewtable.place(x=500,y=650) addtotable.place(x=700,y=650) friction.mainloop()
38.072178
164
0.545655
3,799
29,011
4.094235
0.063175
0.0758
0.143179
0.175518
0.765269
0.737817
0.713193
0.708692
0.691398
0.682783
0
0.084017
0.290235
29,011
761
165
38.122208
0.671361
0
0
0.758475
0
0
0.153976
0.105925
0
0
0
0
0
1
0.029661
false
0
0.00565
0
0.036723
0
0
0
0
null
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ab4af94521912d300c74adfca88252259fc907ae
138
py
Python
src/pretraining/__init__.py
natgen-team/NatGen
b1a7070caf3ff45cf2be1fc2196198e4e23cb30d
[ "MIT" ]
null
null
null
src/pretraining/__init__.py
natgen-team/NatGen
b1a7070caf3ff45cf2be1fc2196198e4e23cb30d
[ "MIT" ]
null
null
null
src/pretraining/__init__.py
natgen-team/NatGen
b1a7070caf3ff45cf2be1fc2196198e4e23cb30d
[ "MIT" ]
null
null
null
from .pretrain import * from .prepare_data import * from .semcode_trainer import * from .atomic_code_util import DelayedKeyboardInterrupt
27.6
54
0.833333
17
138
6.529412
0.647059
0.27027
0
0
0
0
0
0
0
0
0
0
0.115942
138
4
55
34.5
0.909836
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
db50ba955fa2d8c0bc119436025c0f8833808d35
3,854
py
Python
tests/test_option.py
webbcam/debugserver-js
d82266538c1a24668f9a2f28f26c24f8415352fe
[ "MIT" ]
null
null
null
tests/test_option.py
webbcam/debugserver-js
d82266538c1a24668f9a2f28f26c24f8415352fe
[ "MIT" ]
null
null
null
tests/test_option.py
webbcam/debugserver-js
d82266538c1a24668f9a2f28f26c24f8415352fe
[ "MIT" ]
null
null
null
import pytest import time from test_helpers import (create_socket, send_msg, assert_msg_ok, assert_msg_fail, start_server, start_session, kill_server, stop_session, connect_to_target, disconnect_from_target) from test_setup import CCXML_PATH, CONNECTION, DEVICETYPE, SESSION def test_session_basic_get_option_numeric(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "getOption", "args": { "id": "TestNumeric" } } result = send_msg(s2, d) assert_msg_ok(result) assert type(result['data']) == int assert result['data'] == 0 disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_get_option_boolean(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "getOption", "args": { "id": "TestBoolean" } } result = send_msg(s2, d) assert_msg_ok(result) assert type(result['data']) == bool assert result['data'] == False disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_get_option_string(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "getOption", "args": { "id": "TestString", } } result = send_msg(s2, d) assert_msg_ok(result) assert type(result['data']) == str assert result['data'] == "" disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_get_option_object(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "getOption", "args": { "id": "DeviceInfoRevision", } } result = send_msg(s2, d) assert_msg_ok(result) assert type(result['data']) == str assert result['data'] == "2.1" disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_get_option_with_no_connection(debug_server): s = start_server() s2 = start_session(s) d = { "name": "getOption", "args": { "id": "DeviceInfoRevision" } } result = send_msg(s2, d) assert_msg_fail(result) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_set_option_numeric(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "setOption", "args": { "id": "TestNumeric", "value": 0xFF } } result = send_msg(s2, d) assert_msg_ok(result) disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_set_option_boolean(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "setOption", "args": { "id": "TestBoolean", "value": True, } } result = send_msg(s2, d) assert_msg_ok(result) disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close() def test_session_basic_set_option_string(debug_server): s = start_server() s2 = start_session(s) connect_to_target(s2) d = { "name": "setOption", "args": { "id": "TestString", "value": "Testing" } } result = send_msg(s2, d) assert_msg_ok(result) disconnect_from_target(s2) stop_session(s2) s2.close() kill_server(s) s.close()
18.440191
82
0.582512
468
3,854
4.476496
0.141026
0.053461
0.042005
0.064916
0.808115
0.808115
0.797613
0.797613
0.797613
0.779475
0
0.018403
0.295018
3,854
208
83
18.528846
0.752668
0
0
0.695364
0
0
0.080197
0
0
0
0.001038
0
0.112583
1
0.05298
false
0
0.02649
0
0.07947
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
db6db630fa4bbe850bdeca2a27d856e8b2ccf0ca
59
py
Python
grid/clients/__init__.py
cthorey/Grid
f86c117fda882a8c36073cfd872e542bb8fbe07f
[ "Apache-2.0" ]
1
2018-03-09T20:49:48.000Z
2018-03-09T20:49:48.000Z
grid/clients/__init__.py
jvmancuso/Grid
ce202add2a066eb6a1421d0391646b50e2d7f306
[ "Apache-2.0" ]
1
2018-03-28T09:08:28.000Z
2018-03-28T09:08:28.000Z
grid/clients/__init__.py
jvmancuso/Grid
ce202add2a066eb6a1421d0391646b50e2d7f306
[ "Apache-2.0" ]
null
null
null
from . import base from . import keras from . import torch
14.75
19
0.745763
9
59
4.888889
0.555556
0.681818
0
0
0
0
0
0
0
0
0
0
0.20339
59
3
20
19.666667
0.93617
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
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
91eb217b81f2bab1a7522c21658f44e8b2c75ca6
30
py
Python
geotweet/twitter/__init__.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
6
2016-03-26T19:29:25.000Z
2020-07-12T02:18:22.000Z
geotweet/twitter/__init__.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
null
null
null
geotweet/twitter/__init__.py
meyersj/geotweet
1a6b55f98adf34d1b91f172d9187d599616412d9
[ "MIT" ]
1
2020-01-06T01:25:05.000Z
2020-01-06T01:25:05.000Z
from geotweet import Geotweet
15
29
0.866667
4
30
6.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
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
37f63b6fdbe56ddf98170574d68fee052df87cdf
92
py
Python
terrascript/ns1/r.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/ns1/r.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
terrascript/ns1/r.py
amlodzianowski/python-terrascript
1111affe6cd30d9b8b7bc74ae4e27590f7d4dc49
[ "BSD-2-Clause" ]
null
null
null
# terrascript/ns1/r.py import terrascript class ns1_zone(terrascript.Resource): pass
11.5
37
0.76087
12
92
5.75
0.75
0
0
0
0
0
0
0
0
0
0
0.025641
0.152174
92
7
38
13.142857
0.858974
0.217391
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
533b8c738c80d4b9276aada0ba46b851366c02ad
9,551
py
Python
brevis/tools/test.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
null
null
null
brevis/tools/test.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
10
2021-06-10T20:41:38.000Z
2022-03-12T00:56:18.000Z
brevis/tools/test.py
vinayak19th/Brevis-2.0
a0dd211f25e2e719ae9a14f29ccd5cd6e72704aa
[ "MIT" ]
null
null
null
from trie import * s = ''' “You care too much,” I say to a friend, who’s stressed about something at work. The comment is true, but completely hypocritical. Caring too much is my speciality. The pair of us suffer from chronic conscientiousness, an inherent need to live up to our own (ridiculously high) expectations of ourselves. That’s not a humble brag. Being conscientious is great in reasonable doses, when you care about a job and want to do it well. But 24/7? It’s exhausting. In fact, I envy the workers who are content doing the acceptable minimum, because they’re (probably) happier than both of us. So heavy is the burden, that Jacky Francis Walker, psychotherapist and author of The Burnout Bible, calls it ‘The Curse of Conscientiousness’. Dedication and burnout go hand-in-hand, she says, because “the people who care most” are often the most susceptible. Nadya Ustyuzhantseva via Getty Images/iStockphoto If you’re prone to over-working, working from home may have exacerbated your habits, she adds, because it’s harder to draw a line between work and personal life. There’s also no one to distract you with a much-needed tea break. So, how do you stop positive conscientiousness from turning toxic? The first step is to recognise your work motivation and how this might contribute to your risk of burnout. Walker has identified five “types” worker most at-risk: 1. “The over-stretched, whose work culture expects them to work long hours with little time for respite, or who are juggling high levels of work and home demands.” 2. “Perfectionists, who feel compelled to push themselves to excel to prevent others thinking they aren’t good enough.” 3. “Selfless idealists, who are passionate about what they do and give their all to work (or a cause) without sufficient regard for the personal cost.” 4. “People pleasers, who find it hard to stand by personal or work boundaries, don’t feel they can say no and have difficulty asking for what they need.” 5. “Over-thinkers whose resilience is already compromised by their minds being continually on the alert for signs of danger, such as the things that could go wrong, or feeling continually at risk of being judged by others. They often have underlying anxiety about whether they are ‘good enough’, such as in imposter syndrome.” Signs your conscientiousness is turning toxic Once you’ve pondered the root of your conscientious tendencies, you need to keep them in check. Burnout happens over a period of time. “What starts as stress or healthy pressure, where a conscientious person will aim to rise to the challenge, becomes toxic if it goes on too long without adequate chances to recharge or step back,” Walker explains. “You lose visibility that you’ve switched from a healthy engagement to a toxic one.” The first signs of burnout are feeling less able to cope when small things go wrong, plus increasingly feeling mentally and physically exhausted. “Forgetting a password can feel like a big deal, whilst a small frustration – the kitchen bin not being emptied, again – can lead to an angry outburst,” she says. The stress hormones produced by the adrenal glands get overly depleted if this state continues and the brain’s executive functions start to fade. “It is hard then to be decisive, difficult to concentrate or process information and short-term memory suffers,” says Walker. “Emotional resilience becomes eroded, so you are more likely to feel overwhelmed by the impact and demands of daily life. Tasks take longer to do, yet you are less effective.” As the state of burnout increases, being too conscientious instead of prioritising self-care can lead to “mental rigidity”. “It becomes harder to handle new ideas or changes to plans,” says Walker. “You develop tunnel vision, lose sight of the bigger picture. You believe you need to work harder to complete a task instead of stepping back to consider if it even needs to be done. Imperceptibly, you let go of everything but the basics needed to survive: working, eating and (if you still can) sleeping tend to be prioritised. You become increasingly self critical.” Emotional range is another casualty of being too conscientious. “It’s common to lose the capacity to empathise with the experience of others, or feel moments of joy,” says Walker. “You gradually withdraw from social contact and fun activities that could revitalise you. Even talking to friends starts to feel too draining.” A serious warning sign, noticeable some time after conscientiousness has become toxic, is losing hope that things will get better, or even forgetting what “better” feels like. “You are stuck in a cycle of despair, feeling increasingly unable to get back on track, and aware that you are slipping further behind.” she adds. “You may wake up with a sense of dread about the day to come. At this point, professional help is essential.” How can you stop caring so damn much? The five groups that particularly suffer fall into two main groups, says Walker. One group (the overstretched and selfless idealists) tend to view work demands as more important than their own wellbeing. The second group (perfectionists, people pleasers and over thinkers), feel compelled to excessive conscientiousness to avoid appearing inadequate. If you’re in the first group, prioritising “recovery time” will help you keep your conscientiousness in check and burnout at bay. “Taking a short break of 30 seconds several times a day (closing your eyes and breathing deeply) can be surprisingly helpful,” says Walker. “Taking time to connect with others can be restorative too. For the longer term, looking at how to structure the week so that time is ring fenced for your self-care needs is essential. Make sure you have a life, as well as a work life.” If you identify with the second group, it can feel harder to put your needs first, as this only increases the feelings of anxiety that accompany your day. “It may help to take up a calming activity – yoga, mindfulness or a relaxing hobby – or something fun to give your brain respite from the toxic cocktail of hormones it is being bathed in,” says Walker. “It’s a good idea to interrupt any habitual negative commentary about yourself and look out for positives, noticing three things each day you feel pleased with, no matter how small. And you may be surprised at what happens when you write down some of the things you’d love to say to others, but daren’t.” Working smart, not hard Carling less is all well and good, but you still need to get the job done. We asked entrepreneur Grace Beverley, author of the upcoming book Working Hard, Hardly Working, for practical tips on working smart, not hard. Penguin Roundhouse Penguin Roundhouse How to work smart, according to Grace Beverley: 1. Prioritisation - “The first rule of working smart is ensuring you’re not doing things you don’t need to be doing. It’s easy to procrastinate the effective work you need to do by prioritising non-urgent, non-important tasks. My favourite method for prioritisation is the Eisenhower Matrix [which helps you select tasks based on importance].” 2. Time-block - “Time blocking is a great way to make the most out of your time and benefit from efficiency. The concept is simple: as much as you can, divide your day into blocks of time and dedicate each block to accomplishing a specific task or group of tasks. 3. Understand and implement boundaries - “How long does each task take you? How long can you work productively without a break? Knowing your working habits and where your boundaries lie is of the utmost importance when working smart and learning how to plan effectively. When you have a clearer view of how long tasks take you and where your concentration starts to trail off, you can plan that time-blocking and routine far more effectively and realistically.” 4. Set 2-3 email alarms per day - “If you can, time-block email checking into your day (limit it to two or three times), and turn off notifications. You might no longer win the prize for the quickest response, but your work quality and quantity will thank you! With our constantly connected new working world, we’re expected to be available at all times. Despite the benefits of this connection, the constant notifications can easily hamper our time-management efforts as we’re pulled in every direction.” 5. Incorporate rest into your idea of productivity - “Once you’ve learnt your boundaries, you need to keep them firmly in your mind while planning. This goes for small breaks in the day – for example, if you know you need to rest after a 1.5-hour time block, factor this in – and this also goes for more significant boundaries like weekends and evenings. Rest and productivity are two sides of the same coin, not two different entities – you can’t have one without the other.” Grace Beverley is the author of Working Hard, Hardly Working: How to achieve more, stress less and feel fulfilled (April 15, Hutchinson, £16.99) Useful websites and helplines Mind, open Monday to Friday, 9am-6pm on 0300 123 3393. Samaritans offers a listening service which is open 24 hours a day, on 116 123 (UK and ROI - this number is FREE to call and will not appear on your phone bill). CALM (the Campaign Against Living Miserably) offer a helpline open 5pm-midnight, 365 days a year, on 0800 58 58 58, and a webchat service. The Mix is a free support service for people under 25. Call 0808 808 4994 or email help@themix.org.uk''' tree = Trie() print("Loading pkl") tree.load('savedtries/trie.pkl') # tree.test_corpus_("biden") tree.test_corpus__(s)
1,061.222222
9,411
0.793634
1,648
9,551
4.601335
0.397451
0.00633
0.005934
0.003429
0.004484
0
0
0
0
0
0
0.009178
0.167208
9,551
9
9,412
1,061.222222
0.943173
0.002722
0
0
0
0.166667
0.990235
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
6
534142e0c600cfb2a124e5fee3d90742e59619ba
157
py
Python
searchpackers/search_packers/doctype/searchpackers_settings/test_searchpackers_settings.py
premkanish/searchpackers
a41e6eed00182603a7998ad4ff42bb1eb0e88391
[ "MIT" ]
null
null
null
searchpackers/search_packers/doctype/searchpackers_settings/test_searchpackers_settings.py
premkanish/searchpackers
a41e6eed00182603a7998ad4ff42bb1eb0e88391
[ "MIT" ]
null
null
null
searchpackers/search_packers/doctype/searchpackers_settings/test_searchpackers_settings.py
premkanish/searchpackers
a41e6eed00182603a7998ad4ff42bb1eb0e88391
[ "MIT" ]
null
null
null
# Copyright (c) 2021, invitik and Contributors # See license.txt # import frappe import unittest class TestSearchpackersSettings(unittest.TestCase): pass
17.444444
51
0.796178
18
157
6.944444
0.888889
0
0
0
0
0
0
0
0
0
0
0.029412
0.133758
157
8
52
19.625
0.889706
0.471338
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
725d73ca89f649eb8a16ef29d91fb8ab8f4bfce9
202
py
Python
movecar/auth_view.py
qq525492738/movecar
4c565c4438cfd25e89f84ce58ef8f85ac4b09703
[ "Apache-2.0" ]
null
null
null
movecar/auth_view.py
qq525492738/movecar
4c565c4438cfd25e89f84ce58ef8f85ac4b09703
[ "Apache-2.0" ]
null
null
null
movecar/auth_view.py
qq525492738/movecar
4c565c4438cfd25e89f84ce58ef8f85ac4b09703
[ "Apache-2.0" ]
null
null
null
import urllib from django.views.generic import View from django.http import HttpResponseRedirect from django.shortcuts import redirect from django.urls import reverse import youhui.setting as setting
25.25
44
0.851485
28
202
6.142857
0.571429
0.232558
0
0
0
0
0
0
0
0
0
0
0.118812
202
7
45
28.857143
0.966292
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
72ab9a82d1170d7d1f5a82fba264513d9b67dcf6
74
py
Python
Food/src/game/__init__.py
Babarbitz/Project-Food
e57b31b04a4c52ba6bba7e205e88b26a3f3b22f2
[ "MIT" ]
1
2020-11-05T21:47:20.000Z
2020-11-05T21:47:20.000Z
Food/src/game/__init__.py
Babarbitz/Project-Food
e57b31b04a4c52ba6bba7e205e88b26a3f3b22f2
[ "MIT" ]
null
null
null
Food/src/game/__init__.py
Babarbitz/Project-Food
e57b31b04a4c52ba6bba7e205e88b26a3f3b22f2
[ "MIT" ]
1
2020-11-05T21:58:07.000Z
2020-11-05T21:58:07.000Z
from .controller import * from .identifiers import * from .text import *
18.5
26
0.743243
9
74
6.111111
0.555556
0.363636
0
0
0
0
0
0
0
0
0
0
0.175676
74
3
27
24.666667
0.901639
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
72fdd33df33f822c2d430ea6be788577b3d2b263
2,893
py
Python
examples/configs/algorithm.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
examples/configs/algorithm.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
examples/configs/algorithm.py
caglasozen/wilds
db2ff095304891244962509459ee48e2fc5fd5e6
[ "MIT" ]
null
null
null
algorithm_defaults = { 'ERM': { 'train_loader': 'standard', 'uniform_over_groups': False, 'eval_loader': 'standard', 'randaugment_n': 2, # When running ERM + data augmentation }, 'groupDRO': { 'train_loader': 'standard', 'uniform_over_groups': True, 'distinct_groups': True, 'eval_loader': 'standard', 'group_dro_step_size': 0.01, }, 'deepCORAL': { 'train_loader': 'group', 'uniform_over_groups': True, 'distinct_groups': True, 'eval_loader': 'standard', 'coral_penalty_weight': 1., 'randaugment_n': 2, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled & unlabeled examples }, 'IRM': { 'train_loader': 'group', 'uniform_over_groups': True, 'distinct_groups': True, 'eval_loader': 'standard', 'irm_lambda': 100., 'irm_penalty_anneal_iters': 500, }, 'DANN': { 'train_loader': 'group', 'uniform_over_groups': True, 'distinct_groups': True, 'eval_loader': 'standard', 'randaugment_n': 2, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled & unlabeled examples }, 'AFN': { 'train_loader': 'standard', 'uniform_over_groups': False, 'eval_loader': 'standard', 'use_hafn': False, 'afn_penalty_weight': 0.01, 'safn_delta_r': 1.0, 'hafn_r': 1.0, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled & unlabeled examples 'randaugment_n': 2, }, 'FixMatch': { 'train_loader': 'standard', 'uniform_over_groups': False, 'eval_loader': 'standard', 'self_training_lambda': 1, 'self_training_threshold': 0.7, 'scheduler': 'FixMatchLR', 'randaugment_n': 2, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled examples }, 'PseudoLabel': { 'train_loader': 'standard', 'uniform_over_groups': False, 'eval_loader': 'standard', 'self_training_lambda': 1, 'self_training_threshold': 0.7, 'pseudolabel_T2': 0.4, 'scheduler': 'FixMatchLR', 'randaugment_n': 2, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled & unlabeled examples }, 'NoisyStudent': { 'train_loader': 'standard', 'uniform_over_groups': False, 'eval_loader': 'standard', 'noisystudent_add_dropout': True, 'noisystudent_dropout_rate': 0.5, 'scheduler': 'FixMatchLR', 'randaugment_n': 2, 'additional_train_transform': 'randaugment', # Apply strong augmentation to labeled & unlabeled examples } }
34.855422
116
0.588662
276
2,893
5.851449
0.246377
0.130031
0.094737
0.096594
0.802477
0.802477
0.782663
0.782663
0.782663
0.782663
0
0.016795
0.279641
2,893
82
117
35.280488
0.758157
0.128586
0
0.621951
0
0
0.505372
0.109431
0
0
0
0
0
1
0
false
0
0
0
0
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
72fe63a3cd7dfa547e48a75379f8b4fa74ac8df4
43
py
Python
__init__.py
cycomanic/pelican-perpagepublications
75657a708996fee8ad47759a0d92a3498a05f50a
[ "Unlicense" ]
null
null
null
__init__.py
cycomanic/pelican-perpagepublications
75657a708996fee8ad47759a0d92a3498a05f50a
[ "Unlicense" ]
null
null
null
__init__.py
cycomanic/pelican-perpagepublications
75657a708996fee8ad47759a0d92a3498a05f50a
[ "Unlicense" ]
null
null
null
from .pelican_perpagepublications import *
21.5
42
0.860465
4
43
9
1
0
0
0
0
0
0
0
0
0
0
0
0.093023
43
1
43
43
0.923077
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
f444f646d68e0c639255f1452dcdde75267ecd7e
72
py
Python
basic_ml/src/neural_networks/base/regularizers.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
1
2021-09-10T16:55:35.000Z
2021-09-10T16:55:35.000Z
basic_ml/src/neural_networks/base/regularizers.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
14
2022-03-12T01:06:08.000Z
2022-03-30T14:30:22.000Z
basic_ml/src/neural_networks/base/regularizers.py
jmetzz/ml-laboratory
26b1e87bd0d80efa4f15280f7f32ad46d59efc1f
[ "MIT" ]
null
null
null
# TODO: implement L1 regularization # TODO: implement L2 regularization
24
35
0.805556
8
72
7.25
0.625
0.448276
0
0
0
0
0
0
0
0
0
0.032258
0.138889
72
2
36
36
0.903226
0.930556
0
null
0
null
0
0
null
0
0
0.5
null
1
null
true
0
0
null
null
null
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
6
f476c4356c221424df04bac2052f64cce8898ec1
170
py
Python
puppy/data/p/PuppyCourse/ForStmt/sample.py
y-akinobu/puppy
08a83b770d79984b1626b1f98613256ffd31fc82
[ "MIT" ]
3
2019-08-27T11:39:06.000Z
2022-03-05T14:09:22.000Z
puppy/data/p/PuppyCourse/ForStmt/sample.py
y-akinobu/puppy
08a83b770d79984b1626b1f98613256ffd31fc82
[ "MIT" ]
32
2019-06-19T06:01:43.000Z
2021-03-09T08:40:32.000Z
puppy/data/p/PuppyCourse/ForStmt/sample.py
y-akinobu/puppy
08a83b770d79984b1626b1f98613256ffd31fc82
[ "MIT" ]
6
2019-06-18T07:58:46.000Z
2019-11-28T08:04:48.000Z
# n 回繰り返す N = 10 for i in range(N): print(i) print('Hello World') # インデントが異なるので、 # 'Hello World'を繰り返されない for i in range(N): print(i) print('Hello World')
11.333333
24
0.611765
28
170
3.714286
0.428571
0.288462
0.115385
0.211538
0.634615
0.634615
0.634615
0.634615
0.634615
0.634615
0
0.015504
0.241176
170
14
25
12.142857
0.790698
0.247059
0
0.857143
0
0
0.177419
0
0
0
0
0
0
1
0
false
0
0
0
0
0.571429
1
0
0
null
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
f477cb2d377fcc5754a42eb1c44d5f8a0f03388f
508
py
Python
apiflask/validators.py
johntheprime/apiflask
66e2138662e5fde1b1b1b053f375aa67a347c12c
[ "MIT" ]
1
2021-04-14T00:42:45.000Z
2021-04-14T00:42:45.000Z
apiflask/validators.py
wo-ni/apiflask
bd7cf2c10f00426c8aff423e0d49371931b1cbfa
[ "MIT" ]
null
null
null
apiflask/validators.py
wo-ni/apiflask
bd7cf2c10f00426c8aff423e0d49371931b1cbfa
[ "MIT" ]
null
null
null
# flake8: noqa from marshmallow.validate import ContainsNoneOf from marshmallow.validate import ContainsOnly from marshmallow.validate import Email from marshmallow.validate import Equal from marshmallow.validate import Length from marshmallow.validate import NoneOf from marshmallow.validate import OneOf from marshmallow.validate import Predicate from marshmallow.validate import Range from marshmallow.validate import Regexp from marshmallow.validate import URL from marshmallow.validate import Validator
36.285714
47
0.872047
62
508
7.145161
0.290323
0.406321
0.623025
0.785553
0
0
0
0
0
0
0
0.002188
0.100394
508
13
48
39.076923
0.967177
0.023622
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
be410c907fd3e21d2a6607f69b71f34f35477333
47
py
Python
tests/unit/utils/test_source_utils/test_import_python_file/main_module.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_source_utils/test_import_python_file/main_module.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_source_utils/test_import_python_file/main_module.py
dumpmemory/zenml
ec3f6994ae9666493519d600471c035eb9109ac4
[ "Apache-2.0" ]
null
null
null
from some_module import some_func some_func()
11.75
33
0.829787
8
47
4.5
0.625
0.444444
0
0
0
0
0
0
0
0
0
0
0.12766
47
3
34
15.666667
0.878049
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
6
be50e8544d244b16d0958f12bf061feeb162c0a4
930
py
Python
tests/test_utils.py
aauss/epi-quark
0b29111a9adecff4a424c859b461a98237956bd2
[ "MIT" ]
2
2021-11-16T18:08:46.000Z
2021-11-17T15:31:12.000Z
tests/test_utils.py
aauss/epi-quark
0b29111a9adecff4a424c859b461a98237956bd2
[ "MIT" ]
null
null
null
tests/test_utils.py
aauss/epi-quark
0b29111a9adecff4a424c859b461a98237956bd2
[ "MIT" ]
null
null
null
import pandas as pd from epiquark.utils import impute_signals def test_signal_imputation(shared_datadir) -> None: cases = pd.read_csv(shared_datadir / "paper_example/non_case_imputed_long.csv") signals = pd.read_csv(shared_datadir / "paper_example/signals_long.csv") imputed = impute_signals(signals, cases, coords=["x1", "x2"]) imputed_expected = pd.read_csv(shared_datadir / "paper_example/imputed_signals_long.csv") pd.testing.assert_frame_equal(imputed, imputed_expected, check_dtype=False) cases = pd.read_csv(shared_datadir / "paper_example/non_case_imputed_long.csv") signals = pd.read_csv(shared_datadir / "paper_example/imputed_signals_long.csv") imputed = impute_signals(signals, cases, coords=["x1", "x2"]) imputed_expected = pd.read_csv(shared_datadir / "paper_example/imputed_signals_long.csv") pd.testing.assert_frame_equal(imputed, imputed_expected, check_dtype=False)
46.5
93
0.778495
130
930
5.207692
0.276923
0.134417
0.079764
0.132939
0.864106
0.864106
0.864106
0.864106
0.864106
0.864106
0
0.004854
0.113978
930
19
94
48.947368
0.816748
0
0
0.615385
0
0
0.247312
0.23871
0
0
0
0
0.153846
1
0.076923
false
0
0.153846
0
0.230769
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
be5b2c5bc91d71110189e8d39d17cc06dd9fd1f1
2,428
py
Python
tests/test_S4R_matrixTension_expected.py
RayGuo-C/CompDam_DGD
8d620f1f5bb6c00900e9ecca6de234fe5970385c
[ "NASA-1.3" ]
null
null
null
tests/test_S4R_matrixTension_expected.py
RayGuo-C/CompDam_DGD
8d620f1f5bb6c00900e9ecca6de234fe5970385c
[ "NASA-1.3" ]
null
null
null
tests/test_S4R_matrixTension_expected.py
RayGuo-C/CompDam_DGD
8d620f1f5bb6c00900e9ecca6de234fe5970385c
[ "NASA-1.3" ]
1
2019-02-21T19:29:08.000Z
2019-02-21T19:29:08.000Z
parameters = { "results": [ { "type": "max", "identifier": { "symbol": "S22", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" }, "referenceValue": 62.3, # YT "tolerance": 0.05 }, { "type": "disp_at_zero_y", "step": "Step-1", "identifier": [ { # x "symbol": "U2", "nset": "Y+", "position": "Node 3" }, { # y "symbol": "S22", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" } ], "zeroTol": 0.00623, # Defines how close to zero the y value needs to be "referenceValue": 0.00889, # u_f = 2*GYT/YT "tolerance": 1e-5 }, { "type": "max", "identifier": { "symbol": "SDV_CDM_d2", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" }, "referenceValue": 1.0, "tolerance": 0.0 }, { "type": "max", "identifier": { "symbol": "SDV_CDM_d1T", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" }, "referenceValue": 0.0, "tolerance": 0.0 }, { "type": "max", "identifier": { "symbol": "SDV_CDM_d1C", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" }, "referenceValue": 0.0, "tolerance": 0.0 }, { "type": "continuous", "identifier": { "symbol": "S22", "elset": "ALL_ELEMS", "position": "Element 1 Int Point 1 Sec Pt SPOS, (fraction = 1:0)" }, "referenceValue": 0.0, "tolerance": 0.1 } ] }
31.128205
85
0.342257
199
2,428
4.095477
0.291457
0.017178
0.095706
0.154601
0.736196
0.736196
0.700614
0.700614
0.700614
0.700614
0
0.063094
0.523476
2,428
78
86
31.128205
0.641314
0.029242
0
0.384615
0
0
0.350765
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
be703deab1410135c32bac1e009a675ca140ed32
47
py
Python
file_io/__init__.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
null
null
null
file_io/__init__.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
null
null
null
file_io/__init__.py
johncoleman83/attom_python_client
2fad572162f481a71cccf6003da4cbd8ec4477d4
[ "MIT" ]
1
2020-11-20T19:28:36.000Z
2020-11-20T19:28:36.000Z
#!/usr/bin/env python3 import file_io.io as io
15.666667
23
0.744681
10
47
3.4
0.8
0
0
0
0
0
0
0
0
0
0
0.02439
0.12766
47
2
24
23.5
0.804878
0.446809
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
fe6a48ac24a59d0b43b4d456fc9a70a093f6ece8
90
py
Python
tests/basics/int_big_unary.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/basics/int_big_unary.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/basics/int_big_unary.py
learnforpractice/micropython-cpp
004bc8382f74899e7b876cc29bfa6a9cc976ba10
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# test bignum unary operations i = 1 << 65 print(bool(i)) print(+i) print(-i) print(~i)
10
30
0.633333
16
90
3.5625
0.5625
0.315789
0.368421
0.421053
0.333333
0
0
0
0
0
0
0.040541
0.177778
90
8
31
11.25
0.72973
0.311111
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.8
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
fe79c40843ece0e4c3764a235ca2683aa849d00f
208
py
Python
src/pages/models.py
jmrichardson/vmg
d5b5d97798fe43f54f7d2203da875f0e829d8906
[ "MIT" ]
1
2019-04-23T01:20:31.000Z
2019-04-23T01:20:31.000Z
src/pages/models.py
jmrichardson/vmg
d5b5d97798fe43f54f7d2203da875f0e829d8906
[ "MIT" ]
null
null
null
src/pages/models.py
jmrichardson/vmg
d5b5d97798fe43f54f7d2203da875f0e829d8906
[ "MIT" ]
null
null
null
from django.db import models class Stats(models.Model): spots_empty = models.IntegerField(default=0) spots_occupied = models.IntegerField(default=0) spots_total = models.IntegerField(default=0)
26
51
0.764423
27
208
5.777778
0.555556
0.346154
0.480769
0.5
0.397436
0
0
0
0
0
0
0.01676
0.139423
208
7
52
29.714286
0.854749
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
6
22b109fb38d04b9f9decd553dcab8afb9ede907a
76
py
Python
src/cltl/combot/infra/config/__init__.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
1
2020-11-21T18:53:22.000Z
2020-11-21T18:53:22.000Z
src/cltl/combot/infra/config/__init__.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
null
null
null
src/cltl/combot/infra/config/__init__.py
leolani/cltl-combot
7008742ba9db782166f79322658a8cb49890d61b
[ "MIT" ]
null
null
null
from .api import ConfigurationContainer, ConfigurationManager, Configuration
76
76
0.894737
6
76
11.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.065789
76
1
76
76
0.957746
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
22c78e6f2e746ae70557a05ad72a9ba6fd9216d1
28
py
Python
multitrans/__init__.py
AlexNilsson/python-google-translate
8c7a62cc69b18b81025db7cb16cf7a1d46bb0840
[ "MIT" ]
null
null
null
multitrans/__init__.py
AlexNilsson/python-google-translate
8c7a62cc69b18b81025db7cb16cf7a1d46bb0840
[ "MIT" ]
null
null
null
multitrans/__init__.py
AlexNilsson/python-google-translate
8c7a62cc69b18b81025db7cb16cf7a1d46bb0840
[ "MIT" ]
null
null
null
from .core import translate
14
27
0.821429
4
28
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.142857
28
1
28
28
0.958333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
22cc54f8c0dd32ec5dce1c5aa04d8b755575a766
30
py
Python
src/glp/models/__init__.py
katarinagresova/genomic_ML_playground
1cfe2dee325b0b84937fe29715e274f83bd84869
[ "Apache-2.0" ]
null
null
null
src/glp/models/__init__.py
katarinagresova/genomic_ML_playground
1cfe2dee325b0b84937fe29715e274f83bd84869
[ "Apache-2.0" ]
null
null
null
src/glp/models/__init__.py
katarinagresova/genomic_ML_playground
1cfe2dee325b0b84937fe29715e274f83bd84869
[ "Apache-2.0" ]
null
null
null
from glp.models.cnn import CNN
30
30
0.833333
6
30
4.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.1
30
1
30
30
0.925926
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