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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dbdf2e07c031f3d6a37cda2fd33a518c30b5f29
| 4,454
|
py
|
Python
|
PlutusOSS/data/tests.py
|
SzymonNastaly/PLUTUS-OSS
|
c932e07eb3604503edbde898633a0c20db265c9e
|
[
"MIT"
] | 1
|
2020-05-13T14:53:44.000Z
|
2020-05-13T14:53:44.000Z
|
PlutusOSS/data/tests.py
|
SzymonNastaly/PLUTUS-OSS
|
c932e07eb3604503edbde898633a0c20db265c9e
|
[
"MIT"
] | 6
|
2021-03-18T20:54:59.000Z
|
2022-02-10T07:09:07.000Z
|
PlutusOSS/data/tests.py
|
SzymonNastaly/PLUTUS-OSS
|
c932e07eb3604503edbde898633a0c20db265c9e
|
[
"MIT"
] | 2
|
2020-05-13T14:53:53.000Z
|
2021-09-24T17:35:39.000Z
|
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
# sample company data
company_data = """{"name": "TEST 1 AG", "ticker": "T1A.DE", "current_liab": 1000000, "equity": 1000000,
"total_assets": 1000000, "revenue12": 1000000, "revenue13": 1000000, "revenue14": 1000000,
"revenue15": 1000000, "revenue16": 1000000, "ebit": -1000000, "netincome12": 1000000,
"netincome13": -1000000, "netincome14": -1000000, "netincome15": -1000000, "netincome16": -1000000,
"free_cashflow": -110000, "eps12": 1.00, "eps13": -0.10, "eps14": 1.00, "eps15": 1.00,
"eps16": 1.00, "eps_e": 1.00, "total_dividend": 0, "dividend_ps": 0.0}"""
new_company_data = """{"name": "TEST 2 AG", "ticker": "T2A.DE", "current_liab": 1000000, "equity": 1000000,
"total_assets": 1000000, "revenue12": 1000000, "revenue13": 1000000, "revenue14": 1000000,
"revenue15": 1000000, "revenue16": 1000000, "ebit": -1000000, "netincome12": 1000000,
"netincome13": -1000000, "netincome14": -1000000, "netincome15": -1000000, "netincome16": -1000000,
"free_cashflow": -1000000, "eps12": 1.00, "eps13": -0.10, "eps14": 1.00, "eps15": 1.00,
"eps16": 1.00, "eps_e": 1.00, "total_dividend": 0, "dividend_ps": 0.0}"""
class TodoListAPIViewTestCase(APITestCase):
"""Testing the functionality of the list API view"""
def setUp(self):
self.username = "testadmin"
self.email = "test@admin.com"
self.password = "you_know_nothing"
self.user = User.objects.create_superuser(self.username, self.email, self.password)
self.token, created = Token.objects.get_or_create(user=self.user)
self.api_authentication()
def api_authentication(self):
self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token.key)
def test_create_company(self):
"""Testing creation with admin account"""
response = self.client.post("/stock/", data=company_data, content_type="application/json")
self.assertEqual(201, response.status_code)
self.assertEqual(eval(company_data)["name"], response.data["name"])
# TODO: Is this eval safe?
class StockDetailAPIViewTestCase(APITestCase):
"""Testing the functionality of the detail API view"""
def setUp(self):
self.username = "testadmin"
self.email = "test@admin.com"
self.password = "you_know_nothing"
self.user = User.objects.create_superuser(self.username, self.email, self.password)
self.token, created = Token.objects.get_or_create(user=self.user)
self.api_authentication()
response = self.client.post("/stock/", data=company_data, content_type="application/json")
def api_authentication(self):
self.client.credentials(HTTP_AUTHORIZATION='Token ' + self.token.key)
def test_get_company(self):
"""Testing company retrieve with non-admin account"""
new_user = User.objects.create_user("newuser", "user@email.com", "newpass")
new_token, created = Token.objects.get_or_create(user=new_user)
self.client.credentials(HTTP_AUTHORIZATION='Token ' + str(new_token))
response = self.client.get("/stock/3/", follow=True)
self.assertEqual(200, response.status_code)
self.assertEqual(eval(company_data)["name"], response.data["name"])
def test_edit_company_authorization(self):
"""Testing company edit with non-admin account (not allowed)"""
new_user = User.objects.create_user("newuser", "user@email.com", "newpass")
new_token, created = Token.objects.get_or_create(user=new_user)
self.client.credentials(HTTP_AUTHORIZATION='Token ' + str(new_token))
response = self.client.put("/stock/3/", data=company_data, content_type="application/json")
self.assertEqual(403, response.status_code)
self.assertEqual("permission_denied", response.data["detail"].code)
def test_edit_company(self):
"""Testing company edit with admin account (allowed)"""
response = self.client.put("/stock/1/", data=new_company_data, content_type="application/json")
self.assertEqual(200, response.status_code)
self.assertEqual(eval(new_company_data)["name"], response.data["name"])
# TODO: Teardown method
| 50.044944
| 117
| 0.663224
| 530
| 4,454
| 5.430189
| 0.243396
| 0.038221
| 0.02606
| 0.029187
| 0.798124
| 0.756776
| 0.729673
| 0.716122
| 0.703266
| 0.653231
| 0
| 0.09154
| 0.190615
| 4,454
| 88
| 118
| 50.613636
| 0.706796
| 0.079704
| 0
| 0.655172
| 0
| 0.172414
| 0.375553
| 0
| 0
| 0
| 0
| 0.011364
| 0.137931
| 1
| 0.137931
| false
| 0.103448
| 0.051724
| 0
| 0.224138
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
6dcc89c7aaf4cf6be676e4acce586c215616392a
| 3,626
|
py
|
Python
|
hangman.py
|
rbutt15/python-scripts
|
37da2e3881f5e5f20484cc7f3e277e2db37b3a2e
|
[
"MIT"
] | null | null | null |
hangman.py
|
rbutt15/python-scripts
|
37da2e3881f5e5f20484cc7f3e277e2db37b3a2e
|
[
"MIT"
] | null | null | null |
hangman.py
|
rbutt15/python-scripts
|
37da2e3881f5e5f20484cc7f3e277e2db37b3a2e
|
[
"MIT"
] | null | null | null |
print("Welcome to Hangman")
name=input("What's your name?")
print("Hi "+name)
print("_ _ _ _ _")
firstletter=input("What's your first letter?")
if firstletter==("a"):
print("a _ _ _ _")
secondletter=input("What's your second letter?")
if firstletter==("a"):
if secondletter==("p"):
print("app_ _")
elif secondletter==("e"):
print("a_ _ _e")
elif secondletter==("l"):
print("a_ _ l _")
elif firstletter==("p"):
if secondletter==("a"):
print("app_ _")
elif secondletter==("e"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ ppl _")
elif firstletter==("l"):
if secondletter==("a"):
print("a_ _ l _")
elif secondletter==("p"):
print("_ ppl _")
elif secondletter==("e"):
print("_ _ _ le")
elif firstletter==("e"):
if secondletter==("a"):
print("a_ _ _ e")
elif secondletter==("p"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ _ _ le")
elif firstletter==("p"):
print("_ p p _ _")
secondletter=input("What's your second letter?")
if firstletter==("a"):
if secondletter==("p"):
print("app_ _")
elif secondletter==("e"):
print("a_ _ _e")
elif secondletter==("l"):
print("a_ _ l _")
elif firstletter==("p"):
if secondletter==("a"):
print("app_ _")
elif secondletter==("e"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ ppl _")
elif firstletter==("l"):
if secondletter==("a"):
print("a_ _ l _")
elif secondletter==("p"):
print("_ ppl _")
elif secondletter==("e"):
print("_ _ _ le")
elif firstletter==("e"):
if secondletter==("a"):
print("a_ _ _ e")
elif secondletter==("p"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ _ _ le")
elif firstletter==("l"):
print("_ _ _ l _")
secondletter=input("What's your second letter?")
if firstletter==("a"):
if secondletter==("p"):
print("app_ _")
elif secondletter==("e"):
print("a_ _ _e")
elif secondletter==("l"):
print("a_ _ l _")
elif firstletter==("p"):
if secondletter==("a"):
print("app_ _")
elif secondletter==("e"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ ppl _")
elif firstletter==("l"):
if secondletter==("a"):
print("a_ _ l _")
elif secondletter==("p"):
print("_ ppl _")
elif secondletter==("e"):
print("_ _ _ le")
elif firstletter==("e"):
if secondletter==("a"):
print("a_ _ _ e")
elif secondletter==("p"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ _ _ le")
elif firstletter==("e"):
print("_ _ _ _ e")
secondletter=input("What's your second letter?")
if firstletter==("a"):
if secondletter==("p"):
print("app_ _")
elif secondletter==("e"):
print("a_ _ _e")
elif secondletter==("l"):
print("a_ _ l _")
elif firstletter==("p"):
if secondletter==("a"):
print("app_ _")
elif secondletter==("e"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ ppl _")
elif firstletter==("l"):
if secondletter==("a"):
print("a_ _ l _")
elif secondletter==("p"):
print("_ ppl _")
elif secondletter==("e"):
print("_ _ _ le")
elif firstletter==("e"):
if secondletter==("a"):
print("a_ _ _ e")
elif secondletter==("p"):
print("_ pp _ e")
elif secondletter==("l"):
print("_ _ _ le")
else:
print("Sorry, no!")
| 26.086331
| 53
| 0.519029
| 386
| 3,626
| 4.512953
| 0.072539
| 0.293915
| 0.156142
| 0.15155
| 0.912744
| 0.91217
| 0.91217
| 0.91217
| 0.91217
| 0.91217
| 0
| 0
| 0.275234
| 3,626
| 138
| 54
| 26.275362
| 0.662861
| 0
| 0
| 0.916031
| 0
| 0
| 0.185526
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.427481
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 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
| 1
|
0
| 9
|
6de61e451c75bac0fc2181a08ffe8f7cdf717fce
| 238,517
|
py
|
Python
|
contoh/Hello_py3.py
|
MR-X-junior/pyenc
|
3768481fd74e8c4a94f414df0792fb1fe16d36fe
|
[
"MIT"
] | 1
|
2021-03-31T08:21:05.000Z
|
2021-03-31T08:21:05.000Z
|
contoh/Hello_py3.py
|
MR-X-junior/pyenc
|
3768481fd74e8c4a94f414df0792fb1fe16d36fe
|
[
"MIT"
] | null | null | null |
contoh/Hello_py3.py
|
MR-X-junior/pyenc
|
3768481fd74e8c4a94f414df0792fb1fe16d36fe
|
[
"MIT"
] | 2
|
2021-05-21T01:42:50.000Z
|
2021-11-23T12:29:07.000Z
|
#coding=utf-8
#enskripsi By Rahmat
#Di Buat Pada Sat Mar 20 10:51:04 2021
# Contoh Script Yang Sudah Di Enskripsi
# Python 3
import marshal
exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x01\xc0\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsv\xbf\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xeb\xbe\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns`\xbe\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd5\xbd\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsJ\xbd\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbf\xbc\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns4\xbc\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa9\xbb\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1e\xbb\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x93\xba\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x08\xba\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns}\xb9\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf2\xb8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsg\xb8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdc\xb7\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsQ\xb7\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc6\xb6\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns;\xb6\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb0\xb5\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns%\xb5\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9a\xb4\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0f\xb4\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x84\xb3\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf9\xb2\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsn\xb2\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe3\xb1\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsX\xb1\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcd\xb0\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsB\xb0\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb7\xaf\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns,\xaf\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa1\xae\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x16\xae\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8b\xad\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x00\xad\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsu\xac\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xea\xab\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns_\xab\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd4\xaa\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsI\xaa\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbe\xa9\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns3\xa9\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa8\xa8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1d\xa8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x92\xa7\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x07\xa7\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns|\xa6\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf1\xa5\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsf\xa5\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdb\xa4\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsP\xa4\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc5\xa3\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns:\xa3\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xaf\xa2\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns$\xa2\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x99\xa1\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0e\xa1\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x83\xa0\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf8\x9f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsm\x9f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe2\x9e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsW\x9e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcc\x9d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsA\x9d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb6\x9c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns+\x9c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa0\x9b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x15\x9b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8a\x9a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xff\x99\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nst\x99\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe9\x98\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns^\x98\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd3\x97\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsH\x97\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbd\x96\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns2\x96\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa7\x95\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1c\x95\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x91\x94\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x06\x94\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns{\x93\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf0\x92\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nse\x92\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xda\x91\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsO\x91\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc4\x90\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns9\x90\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xae\x8f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns#\x8f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x98\x8e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\r\x8e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x82\x8d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf7\x8c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsl\x8c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe1\x8b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsV\x8b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcb\x8a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns@\x8a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb5\x89\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns*\x89\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9f\x88\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x14\x88\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x89\x87\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xfe\x86\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nss\x86\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe8\x85\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns]\x85\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd2\x84\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsG\x84\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbc\x83\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns1\x83\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa6\x82\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1b\x82\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x90\x81\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x05\x81\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsz\x80\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xef\x7f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsd\x7f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd9~\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsN~\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc3}\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns8}\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xad|\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns"|\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x97{\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0c{\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x81z\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf6y\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsky\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe0x\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsUx\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcaw\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns?w\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb4v\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns)v\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9eu\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x13u\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x88t\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xfds\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsrs\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe7r\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\\r\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd1q\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsFq\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbbp\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns0p\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa5o\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1ao\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8fn\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x04n\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsym\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xeel\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nscl\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd8k\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsMk\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc2j\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns7j\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xaci\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns!i\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x96h\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0bh\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x80g\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf5f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsjf\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdfe\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsTe\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc9d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns>d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb3c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns(c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9db\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x12b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x87a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xfc`\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsq`\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe6_\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns[_\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd0^\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsE^\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xba]\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns/]\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa4\\\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x19\\\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8e[\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x03[\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsxZ\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xedY\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsbY\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd7X\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsLX\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc1W\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns6W\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xabV\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns V\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x95U\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\nU\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x7fT\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf4S\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsiS\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdeR\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsSR\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc8Q\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns=Q\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb2P\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\'P\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9cO\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x11O\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x86N\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xfbM\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NspM\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe5L\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsZL\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcfK\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsDK\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb9J\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns.J\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa3I\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x18I\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8dH\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x02H\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NswG\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xecF\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsaF\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd6E\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsKE\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc0D\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns5D\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xaaC\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1fC\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x94B\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\tB\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns~A\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf3@\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsh@\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdd?\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsR?\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc7>\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns<>\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb1=\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns&=\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9b<\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x10<\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x85;\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xfa:\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nso:\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe49\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsY9\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xce8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsC8\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb87\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns-7\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa26\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x176\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8c5\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x015\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsv4\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xeb3\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns`3\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd52\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsJ2\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbf1\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns41\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa90\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1e0\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x93/\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x08/\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns}.\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf2-\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsg-\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdc,\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsQ,\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc6+\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns;+\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb0*\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns%*\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x9a)\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0f)\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x84(\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf9\'\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsn\'\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe3&\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsX&\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcd%\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsB%\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb7$\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns,$\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa1#\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x16#\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8b"\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x00"\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsu!\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xea \x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns_ \x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd4\x1f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsI\x1f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbe\x1e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns3\x1e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa8\x1d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1d\x1d\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x92\x1c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x07\x1c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns|\x1b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf1\x1a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsf\x1a\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xdb\x19\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsP\x19\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc5\x18\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns:\x18\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xaf\x17\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns$\x17\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x99\x16\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x0e\x16\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x83\x15\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf8\x14\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nsm\x14\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe2\x13\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsW\x13\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xcc\x12\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsA\x12\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xb6\x11\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns+\x11\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa0\x10\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x15\x10\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8a\x0f\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xff\x0e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nst\x0e\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xe9\r\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns^\r\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xd3\x0c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsH\x0c\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xbd\x0b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns2\x0b\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xa7\n\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x1c\n\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x91\t\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x06\t\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns{\x08\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xf0\x07\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Nse\x07\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xda\x06\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00NsO\x06\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xc4\x05\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns9\x05\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\xae\x04\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns#\x04\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x98\x03\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8q\x00\x00@\x00\x00\x00s\x12\xe4\x00\x00d\x00d\x01d\x02d\x03d\x04d\x05d\x06d\x07d\x08d\td\nd\x0bd\x0cd\rd\x00d\x0ed\x05d\x0fd\x10d\x11d\x04d\x12d\x0fd\x04d\x13d\x14d\x15d\x13d\x16d\x17d\x18d\x19d\x17d\td\rd\x00d\x1ad\x04d\x13d\x14d\x08d\x17d\td\x13d\x1bd\x17d\x03d\x17d\x13d\x1cd\x17d\td\x13d\x1dd\x17d\x11d\x13d\x1ed\x1fd\x13d d\x1fd!d"d#d!d#d$d\x13d\x1ed\x1fd\x1ed d\rd\x04d\x19d\x12d\x02d\x11d\td\x13d\x19d\x17d\x11d\x0fd\x18d\x17d%d\rd\x0ed&d\x0ed\x01d\'d\x19d\x17d\x11d\x0fd\x18d\x17d%d(d%d\x02d\x17d\x03d\x0fd\'d)d*d+d&d\x0ed,d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd"d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd-d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd\x0fd+d&d d\x17d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd\x03d+d&d\x1fd\x1fd\x03d+d&d\x1fd d%d+d&d\x1fd\x1fd.d+d&d\x1fd\x1fd\x0ed+d&d\x1fd d\x0ed+d&d\x1fd\x1fd+d&d\x17d\x1fd+d&d\x1fd\x1ed\x03d+d&d\x1fd\x1ed+d&d\x17d d+d&d\x1fd d+d&d\x0cd,d+d&d\x1fd d+d&d\x1fd d+d&d\x1fd\x1fd\x03d+d&d\x1fd d\x1cd+d&d\x1fd\x1fd/d+d&d\x1fd,d+d&d\x0ed0d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd1d\x17d+d&d\nd\x01d\x02d+d&d\x1fd\x1fd+d&d\x1fd\x1fd\x14d2d3d\x08d#d4d5d\x1dd\x19d\x03d)d\x00d6d7d\x0ed8d\x1fd9d:d;d.d\x06d4d\x12d<d4d5d\nd=d=d>d2d\x1bd?d@dAd\x0ed\x10d<dBd2d\x16dAdCd,d<dDd:dEdFd)dGd\x15d;d\x1dd\x1bdHd:d:dId>d4d\x0cd\x15dJd>d;d\x03dKd3d>d?d%d\x11d-dLd/d3d\td)dMd0d0d\x12d\x05d>d?d%d\x0fd>dLdNd6d\x0fd8d\x17d\x14d\x12dEd\x1cd>dId&dEd\x1ed;d\x04dOd2d%d;dBd"dEd@d=dDd<d\x11d>d;d\x04dOd2dDd2d\x19d,d#d\x05d;d\x05dPd\td\x0bd;d\x18d\ndQdDdFdRd\x16d\x1fd@d\x1dd@d8d\x16d\x10d\x03d1d\x1ad=d3d\x1dd9dLdSdLd<d\x1edBd\x18d;d\x1cd\x1ed\x01dAd7dFd\ndMdBd@d1dTd\x1cd>dSd\x1dd\x1ddQd)dRd\x1dd\x02d\x1ddUd#d\x1dd\x07d-dVdPd<d\x1edBd\x18dKd\x1dd@d\x0cdNd\x1dd.d\x03d\x1bd)d\x15d<dBd)d\td\x19d\x1cd#dWdGdXd\x1dd\x02dVd\x0fd=d<dBd)d\x10dWd\x1cd2d:d\x1ad dId=dEd\x06d\x14d\x16dXd\x00d\x17dAd<d@dEd=dUd\x16d>d4d\x19d1dId=d\'d\x14d?dAdRdHd\nd\x00d\x1cd2d\x1adFd2d.d\x01d3d"d\x18d.d>d1d\x0bd\x12d\x16d0d\x1bd-d4d.d\x14d@d\ndYd\x1cd#d\x1fdBdKd.d>d1d\x0bd\x12d\x16d0d\x1bd-d\x06d.d>d\x12d"d\nd.d\x14d%dFd\x19dFd=dXd\x14d\x05dAd/d\x06dOd\x01d\x16d;d\'d\x15dBd\x03d\x16d\x10d\x00d\x12d\x1ddAdOd"d$dIdPd7d1d=dIdLd d#dLd\x16d;d2dZd\tdLdCdId-d\x03dLd\x0bd\x10d5d<d\x16dNd#d\td\x0cd\x1dd\x1bdBdBdAdLd\x0bdDd\x04d4dId\x0bdOdVd2d\x03d\x1bdHd\x0bd=d\x16d\x01d\x08d\x16dXd\x1dd\x02dZdKdWd\x16d\x00dMd\x1bdNdId\nd"d\x15dLdLd\x04d\x10dKd\x1fd\x16d\x03d\x18d\x15dLdId\nd\x0ed\x17d\x1edLd%dJd=d\x02dLd\x06d\x17d8d\x1dd\x16d3d%d0d$d\x16d.d\x03d)d\x07d\x16d\x17d\x00d2d dLd\x04d\x08dTdAdLdCdId3d\x17dId\x1adGd5d\x07d\x16d\x00dMd\td\x0bdId\x03dTd\x1fd/d\x16d.d5d\x1bdEd\x16d.d\x1ed\x02dBdLdWd\x04d2d\x12d\x1dd\x12dWdAdGdIdHdXd.dRd\x16d$dGd\x1adCdLd%dJd0d\x11dLd%d\x1fd\x18d\x10dId\nd:d%dDdLdCdId\x08d.dIdHd$d dUd\x03d\x16d.dSd#d\x1dd\x12d\x04dOdBdId/d2dTdSd\x03dAd\x02dOd\'dId\x18dHdBdIdId\x0ed\x11dUd>dIdWdYd\x1edGd\x16dNd#d)d"dLd\x0bd\x14d?d\x0ed\x1dd\x1dd9d4dBdId/d\'dOdLd\x16d;d\'d=dIdLd\nd\x19dFd,d\x16d\x00dMdVdQdId\nd:dZd"d\x16d;d\'dQdVdLd%d\x07dRd@dId\x04dZd\x0ed1d\x1dd\x0fd\x1bd\'dQdLd\ndOd\'dLd\x1dd\x1bd\x15d\x0bd\x0cd\x1dd1dEd5dVdId\nd"d\x15d=d\x1ddKd>d\x08d8d\x16d\x03d\x04d\x1ed\x1bdId\x0bd\x19d2d\x1cdId\nd\x0edAdDdLd\ndOd\x18d\x0cd\x1dd\x1bd\x15d\x1bdJdLdWd$d\x08d)d\x16d6dEd>dGdLd\nd\x01dFd\x08d\x1dd\x1dd\x18dLd\x05dId/d\'dWd\x1ed\x16d\x0cd\x14d\x07d&dLd\ndOdHd=dId\x18d\x15d#d dIdPd7d\x1ed\x1ad\x16d6dUd\x18d:dLd%d3dOd7d\x1dd\x02dZd\x00d&dId\'d9d@dJd\x1dd\x0fdAd2d\x14d\x16d4d8d\x15d%dLd%d\x1fd\x18d\x17dId\nd:d\x0fd,dIdCd\x17dPd&dLd%dJdQdJd\x1dd\x16d.d\x1bd\x0cdId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07dGd\x16d;d\'d\x00d\x05d\x16d)dPdKd\x1dd\x16d\x00dMdNd-dId\nd"d\x06dXd\x16d\x17d\x16d\x10d>d\x1dd\x1bd\x15dFd\x07dIdPd\td\x0cd\x1ad\x16d\x0cd\x19dGdQd\x16d;dUdJd;d\x16d)d/d\x15d@dLdCdId&d\x17dId/d2d\x0fd$d\x03dAd\x02d@dEd\x1ddKd8dRd&dIdHdXd;d\x14d\x16d\x0cd\x14d\x07dZdLd\ndOd\'dLd\x16d)dPdKd\x1dd\x16d\x00dMdId\'d\x16d.d,d\x1cdJdLd\nd\x0edPdWd\x1dd1dUd\x0fdVdIdPd\td\x0cd0d\x16d3dDd8dXd\x16d6d?d6dVdLd%d\x1fd\td\x0edLdCdId\ndUd\x16d6dUd\x1ddPdLd\nd\x05d\x1fd<d\x1dd\x1bd\x15d\x1adJdId/d\'d\x04dOd\x16dEd.d#dKdLd\nd\x05d\x1fdKd\x16d)d/d:d#d\x16d\x00dMd\x0edPdId\nd"d\x12d\x0cdLdCd\x0bdGd\x00d\x16d.d\x03d\x1bdJdIdHdXd;dRd\x16d\x0cd=d)d\x07d\x16d;dUdJd;d\x1dd\x1bd\x15d d5dIdPd8d\x12d\x1fd\x16dEd.d\x1edKdLd\nd\x19dNd8d\x1dd\x1dd\x18dLd\x05dId\x0bd=d>d1d\x16d\x0cd\x14d-d\x15d\x16d;d/dMd3d\x16d)dPdWdKd\x1dd1dEd@d\x15d\x16d6dUd\x18d:dLd\x0bd\x14d\x02d\x18d\x1dd\x1dd\x18dXd\x19dLdWd\x18d6d\x01d\x16d3dDdEd1dLd\nd\x19d\x18d=d\x1dd\x1bd\x15d\x1adPdLdWd$d/d\ndId/d2d\x0fd$dLd5d\x12d\x06d&d\x1dd\x1dd\x18dLd\x05dId\x0bd=d$dAd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdBd\x04dIdPd8d\x00d"dLd\x04dTd\x01d\x01d\x16dGd\x0bd\x1cd7d\x1dd1dUd\x0fdVdId/d\'d\x04d@d\x1dd\x0fdAd2d\x14d\x16d4d8d\x17d\x0edLd%d\x1fd\td\x0edLdWd\x18d6d.d\x16d6dEd\x1ad6dLd5d\x12d\x06d&d\x1ddTd\x1dd6d2dId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07d&d\x16d;d/dMdEd\x1dd\x1bd\x15d dEd\x1dd1dEd5dVd\x16d6dUd\x1cd\x0bd\x03dAd\x02d@dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQdGd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd>d\x16d.d5d\x18dJd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x12d\x1fdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dKd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdPd\td\x0cd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdId@d\x1dd\x03dAd&dLd%d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\ndOd\'dRdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdId\x0bd=d$d\x1bd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d.d,d2d\x07dLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd\x19d7d,dLd%dJd\x06d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dRd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d.d,d2d\x07dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd\x19d7d,dLd%d d8d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdFd;d\x16d.d5d\x18dJd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId/d\'dWd#d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.d\x1edKdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16dEd.d#dKdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1ad6dLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNd8d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQdGdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1dd\x18dXd\x19dIdPd\td\x0cd=dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8dZd\x1edIdWd0dKd\x10dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dKd\x16d;d2d\x17d\x05dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1bd\x15dFd:dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x17d\x04d\x1ddAd\x14d\x1ad3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd>d\x16d.d5d\x18dJd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x12d\x1fdId\nd\x0ed;dDd\x03dAd&dLd%d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\nd\x05d\x1fdAd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdId\x0bd\x19dIdAd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdOd&d\x16dEd.dRd?d\x16dGd\x0bd\x1bd\x1dd\x1ddTd\x1dd\x02d\x16dLd\x04d\x08dRd?d\x16d\x0cd=d)d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8dZd\x1ed\x16dEd.d#d\x1bdLd\x0bd\x1fdEdYd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\nd\x05d\x1fdKd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd5d\x0cd\x0cdTd\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d d8d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd\x1edQd\x1ddTd\x1dd\x02d\x16dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd d\x1dd1dEd5d&dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4d\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16d\x0cd\x14d\x07d&dLd\ndOd\'dFd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d3dOd7d\x1dd1dUd\x0fd\x0fdLdWd\x18d6d\x01d\x16d3dDdEd\x1dd\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd\nd\x0edEd\x04d\x1ddKd8dRd&dIdHdXd\x01dFd\x16d\x0cd\x14d-d\x15dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd2dJd\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdQdLd\nd\x19d\x18d\x14dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd\nd\x19dNdRd\x1ddKd8dRd\x00dIdPd8dCd"d\x16dEdIdWd>dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId/d2d\x15d0dLd5d\x0cd#d1d\x1dd\x1bd\x15d\x1ad-dId/d\'dWd d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16dEd.d#dKd\x16d;d2d\x17d\x19d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d3dOd7d\x1dd\x1bd\x15dFd:dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x05d@dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15dFdSdId\x0bd=d\x1ad?d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:dQd\x14dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2d<d d\x16d$dGd\x1ad\x0bdLd\x06d.d\'d\x14dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd5d\x0cd\x0cdTd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\ndOd\'dRdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd\x14d\x02d%d\x1dd\x02dZd\x00d\tdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSdLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd\x02d1dIdPd\tdRd=d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd7d\x1ed=dId/d2dCd\x1adLd\x0bd,d2dHd\x1dd<d>d\x1ad4dId\x0bd\x19d2dUdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dXdBdLdWd$d\x04d4dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdId\x0bd=d$d\x1dd\x16d\x0cd=d)d5dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d\x0cd#d\x16dLd%d3dOd7d\x1dd<d>d\x1ad4dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x17d\x04dLd%d dXdBdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1dd\x1bd\x15dFd:dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdBd\x04dId\nd:dCd>d\x16dEd.dMd?dLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d\x14d\x16d;d\'d\x17d\x04dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd5d\x0cd#d1d\x1dd\x16d.d\x0ed0dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00d\x16d)dPdKd=dLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15d\x1ad9dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x0edLdWd$dAd\x16dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d-dId\x0bd=d$dKd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdOd&d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFd\x16dEd.d#d\x1bdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd2dCdLd\nd\x0edEd\x19d\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x17d\x04dLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1dd\x1bd\x15d\x1ad-dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdBd\x04d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddAd%d6d\x1edId\x0bd\x19d2d2d\x16d\x0cd\x19d\x1ad\x00dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4dId/d2dPd=dLd\nd\x0edPdWd\x1dd\x1bd\x15d\x1bd9dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d dUdHd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd%d\x1cdIdPd\td\x0cd=dId\nd"d\x12d0dLd\x0bd\x14d\x02d%dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd5d\x0cd\x0cdTd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\nd\x05d\x1fdAd\x1dd\x1bd\x15d\x05d@dLdWd$d\x02d\x17dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd>d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x02d.dId/d2d\x15d0dLdJd<d-d\x17d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cd\x16d;d\'d\x15dBdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x17d\x17dYd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,dLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15dFd\x07dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)d/dJd>dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHdLd\x05dIdPd\td\x0cd0dId\nd\x0ed5d=dLd\x0bd\x10dPd<dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd5dFdKd\x1fd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\ndOd\'dRdId\x18dHd\x0ed\x0ed\x16d\x00dMdId\'d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFdId/d2d\x00d>dLd\x0bd,d2dEd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,dLd%d\x1fd\'d\x04dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1dd\x1bd\x15dFdSdIdPd\td\x0cd=d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdEd\x11d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4d\x16dEd.d#d\x1bdLd5d\x0cd#d7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\ndOd\'dRdId\x18d\x15d"d:dLdCdId\x0bd\ndIdWd0d\x17d\x12d\x1ddKd8d\x0bdDd\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,dLd%d\x1fd\td\x02dIdPd7d\x0cdRdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdId\x0bd=d$dKd\x16d$dGdFdCd\x16d;d1d&dSdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x0bdGd\x00d\x1dd\x16d.d\x1cd$dLdWd$d\x01dUd\x16d\x0cd=d)d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4dId/d2dEd\x14dLd\x19dKd\x17d&d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d2dQdGdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1dd\x1bd\x15d\x1ad9dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd7d\x0cdRdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdId\x0bd=d$d\x1bd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXdIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d\x0cd\x19dGd9dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x02d.d\x16dEd.d\x14d\x16dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\ndLd%d d<dGdLdWd$d;dUdId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x17d\x16d\x0cd\x19dGd9dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x14d\x16dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x12d\x0cdLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd<dLd\x06d.d\'d\x14d\x16d\x01d\x08d=d>dIdPd7d\x1ed=dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdId\x0bd=d$dAd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMd\x0edPdIdCd\x17d\x03d\x02d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd#d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFd\x16dEd.dMd?dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16dEd.d#dAdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#d\x1bdLd\x0bd,dId\'d\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17d\x1dd\x1bd\x15d)d-dId\nd:dEd$d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16d\x0cd\x14d\x07d\x15d\x16d;d1d&d@dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd\x14d\x02d%d\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0edLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd\x1edQd\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00d\x16d)d/dJd\x1fdLdCdId%d;dLd\x19d\x1bd\x0cd5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2dTdDd\x16d\x0cd\x19dGdQd\x16d;d\'d\x15dBdId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd\nd\x05d\x1fd<d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLdId\x18dHd"d8dId\nd:d\x15d#dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16d\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16d\x0cd\x14d\x07dZdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dIdLd\x0bd,d2dHd\x16d;d2dKd\x03dId\x0bd\x19d2dUdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd8dPdXdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15dFdSdId\x0bd=d$d\x16d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:dQd\x14dIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPdXd\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x08d)d\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16dEd.d#dKdLd\nd\x05d\x1fd\x1bdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1ddKd8dMd\x15dLdWd\x18d6d\x17dId\nd\x0edAdYdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d#d\x1bdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#dAd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d\x0cd#d\x16dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d$d\x16d;d2dQd6dId\x04dZdBdAdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15dFd:dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1adPdId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x02dZd\x15dVdIdPd8dPd\x0cdId\nd"d\x12d>dLd\nd\x19d\x18d\x14dLd\x10d5d/d\x16dId\nd:dQd\x14dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x16dIdPd8dPd$d\x16d$d\x15d\x11d\x08dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x15d\x14dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd\x19d\x18d\x14dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd5d\x0cd\x0cdTd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\ndOd\'dRdId\x18dHd"d8dLdWd$d;dUd\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd\x1ad\x16dEdId\x06d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16d\x0cd\x14d\x07d\x15d\x16d;d\'dLd4d\x16d)d/dNd dId\nd:dOd\x1ad\x16d.d,dId:d\x16d\x17d7d\x16d4d\x16d\x03d\x04d\x1ed1dLdWdSd d\x03d\x16d\x0cd\x19d\x1ad\x00dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x08d)dId/d2dEd\x14d\x03dAd\x02dOd\x0bd\x1dd<d>dFd;dIdPd\tdRdRd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd1dEd5dVd\x16d\x03d\x0cd\x0cd\x1cdLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d0dLd\x06d\x1fdKd\x1cdLd%d\x1fd\x18d\x17dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1ddTd\x1dd%dAdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dLd%d dUdHd\x16d\x00dMdBdJdLd\x04dTd.d)d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16dEdId\x06d0d\x16d;d\'d\x15dBd\x16d\x01d\x08dCdTdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15d\x1ad-dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dLd%d\x1fd9d\x19dIdPd8dPdXdIdCd\x17d\x03d\x02d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd\x1ed\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.dTdUdLd\ndOd\x1dd\x1fd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0ed\x1dd\x1bd\x15d\x1adPdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15d\x1ad9dId\x0bd=d\x1adKd\x16d$d\x15d\x11d\tdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d$d@dKdLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\x06d.d\'d\x14dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd\nd\x0edPdWd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVdLd\nd\x05d\x1fd\x1bdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x17d\x17dYd\x1ddKd8dMdNdLdWd$d\x01d;d\x16d\x0cd\x19dGd9d\x16d6dUd\x1bd\x07dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd\nd\x0edPd\x05d\x1ddAd%d-d#dIdHdXd;dRd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdOd&d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd>d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fdId/d2dEd\x14dLd\x0bd\x10d5d7d\x1dd<d>d>d\x17dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdFd\x1ddIdPd8dPd$d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16d\x0cd=d)d:d\x16d;d\'d=d\x17dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd\nd\x01dFd\x08d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x04dBd6d\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17d\x1dd\x1bd\x15d\x1ad9dIdPd8dZd\x1edIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd0d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:dQd\x14d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd\x1ed\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d#d\x1bdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16dEd.d#dKdLd\ndOd7d\x1fd\x16d)dPd,d0dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddAd%d3d dId\x0bd=d$d1d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x08d)dId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16dEd.d#d\x16dLd\x06d\x1fdKd?d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d\x1fd9d\x19dLdWd$d\x08d)dId/d2d\x0fd$dLd\x0bd,dId\x0bd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d2dQdGdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd,dId\'d\x1dd\x1bd\x15dFd:dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0ed\x1dd\x1bd\x15d\x05d@dLdWd\x18d\x07d\x03dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd0d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:dQd\x14dIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8dId/d2d\x0fd$dLdCd\x0bdGd\x00d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLd\x1dd\x1bd\x02d\x1ed\x01dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddAd%d3d dIdHdXd;dLdId\x0ed\x11d\x16d#dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7d\x0cdRdId/d2dPd=dLd\x0bd\x14d\x02d\x18d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6d\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x0edPdWd\x1dd\x16d.d\x1cd$dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,dLd%d\x1fd\'d\x04dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1ddTd\x1dd\x02d\x16dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x05d@dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd<d>d\x1ad.dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6dZdLdWd$d\x01d2dId\nd\x0ed.dOdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16dEd.d#d\x1bdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dIdLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d0dLd\ndOd\x18d$dId\x04dZdNdUdLdCdId-d\x06d\x16dEdIdOd1dLd5d\x0cd#d7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d2dQd\x00d\x16d)dPd\x1fd"dIdPd8d5d\x0cdLd\x04dTd?d.d\x1ddKd>d\x11dMd\x16d\x03d\x04d\x1ed<dLd\x04d7d5d\x1bdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd7dRdFdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dCd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:dQd\x14dIdWd0d4d\x05dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\x06d.d\'d\x14d\x1ddAd\x14d\x1ad3dId\nd:d\x19d dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdOd&d\x16d\x03d$dQd1dLd%d3dOd1d\x1ddAd%d6d\x1edIdPd\td\x0cd=dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dXd6dIdPd8dZd\x1edIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd,d\x16d$dGd\x1ad\x0bdLd\ndOd\'dRdId\x18dHd\x18d\x17d\x1dd1dEdPdZd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dIdPd8dPd$d\x16d\x0cd\x14d\x07d\x15dLd\nd\x19d\x18d\x14dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5d\x0cd#d1d\x1ddKd8dMd6dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)d/dJd d\x1dd\x12d\x0cdQdVd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId/d\'dWd"dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd7d\x1ed=dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdId\x0bd=d$d\x1bd\x16dEdIdWd\x14dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x12d\x0cdLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1adNd\x16d;d\'d\x17d\x04dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x00d>dLd5dFdKd\x1fd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\ndOd\'dLd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd\x14d\x02d%d\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSdLd%d\x1fd\'d\x0fdId\x06d\x16dOd0dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdIdPd8dPd\x0cd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXdLd\x04dTd.d)d\x16d\x17d7d\x16d)d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\x06d.d\x18d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5dFdKd\x1fd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6d\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd\x14d\x02d%d\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17d\x1dd\x1bd\x15d\x02dXdId\x06d\x1cdMdLdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd\x1fd<dSdBd\x06d\tdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMd\x0edPd\x16dEd.dMd?dLd5d\x0cd#d1d\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,dLd%d dXdBdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1dd\x1bd\x15d\x1ad-dIdPd8d5dXd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:d\x15d#dLd\x19d\x1bd\x0cd5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d#d\x1bdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d\x0cd#d\x16dLd\nd\x0edEd\x19d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x16d\x16d;d\'d\x15dBd\x1ddAd%d\x05dJdLdWd\x18d/d)dId\nd"dWdXdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16dEd.d#dKdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#dAd\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd\x19d7d"d\x1dd\x1bd\x15d\x1adPdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1ddTd\x1dd%dKdIdHdXd\x01dFd\x16d\x0cd=d)d\x07d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId/d2d\x15d0dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d0dLd\nd\x19d7d,dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd5dFd\x1edQd\x1ddAd%dNdOdIdPd8dPd\x0cd\x16dEd.d#dKdLd\nd\x05d\x1fdKdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1ddKd8dRd3dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd7dRdFdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd\x1fd<dSdBd\x03d\tdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd<dLd\x06d.d\x18d,dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x00d>dLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\nd\x05d\x1fdAd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6d\x1dd\x1bd\x15d\x1bdJdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15d\x1ad-dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)d/dJd>d\x16d.d5d\x18dJd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x02dZd\x15dVdId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d dGdLdWd$d\x02d.dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdId\x0bd=d$d\x16d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPd0d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdId@d\x1ddLdCd\x15dQd0d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d\x15d\x16d;d2dQdGdLd%d\x1fd9d\x19dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dRd3dId\x0bdOd\tdAd\x16d.d\x1ed&d\x08dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFdId/d2dEd\x14dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d$d@dKd\x03dAd\x02d@dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\x06d.d\'d\x14dId\x04dZdNdUdLdCdId\x11dIdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x16dIdPd8dPd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd1dEdZdBdIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16dEd.d#d\x16dLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1ddKd8d?dNdIdPd\td\x0cd\x0cd\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#d\x1bdLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd\nd\x01dFd\x08d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd.dWd\x1ed\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,d\x1dd\x1bd\x02d\x1ed\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1ddTd\x1dd%dAdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdFd;dIdPd8dPdXdLd\x19d\x1bd\x0cd5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dRd\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4d\x16dEd.dRd\x1cdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16dEd.d#d\x1bdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x01dId\nd:dQd\x14d\x16d\x03d\x0cd#d\x16dLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd\x19d7d\x1edLd%d\x1fd\'d\x0fdId\nd:d\ndOd\x16d6dUd\x0ed5dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16d\x0cd\x14d\x07dVdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x1edCdLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd\x19d\x18d\x14dId\x04dVd,d\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1ddTd\x1dd\x02d\x1bdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)dPdKd\x1dd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1cd0dIdPd\td\x0cd=dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd9d\x19dLdWd$d\x08d)dId/d2dCd\x1adLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLd5dFdKd\x1fd\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,dLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd\x1edQd\x1dd\x1bd\x15dFd\x07dId\x0bd=d$d8d<dSdBd\x06dZd\x16d;d&dOd\x1fd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1dd1dUd\x0fd\x19dId\nd"d\x14dOdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUd\x15dLdWd$d\x08d)dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd\x0cd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXdIdCd\x17d\x03d\x02d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd>d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?d\x16dEd.d#d\x1bdLd\nd\x01dFd\x15d\x1dd\x1bd\x15d7d-dId\x0bd=d>d\x1dd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdEd\x11d\x16d6dUd\x0ed:d\x1ddKd>d\x11d<d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d0dLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x0edEd\x19d\x1dd<d>d>d\x17dId\x0bd=d$d1d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMdVd5dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2d<d d\x16d3dDdEd\x1ddLd\ndOd\x18d$dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd\nd\x05d\x1fd\x1bd\x1dd\x1bd\x15d7d-dIdPd\tdRdRd\x16d\x0cd=d)dJd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLd%d3d@d\x1dd\x16d\x03d\x04d\x1ed<dId\x0bdOd\td4d\x16dEdId\x06d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x14d\x16dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16dEd.d#dKdLd\nd\x19d\x10d\x0cdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1ddTd\x1dd\x02d?dId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd8d5d\x0cd\x16dEd.dTdUdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d$d@dKdLd5dFd1d@d\x16d\x17dAd:dQdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,d\x1dd\x1bd\x02d\x1ed\x01dLdWd$d\x01d2dId\nd\x0ed;dDdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16dEd.d#dKd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x1edCdLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd<dLd\nd\x19d7d,dId\x18dHd\x1cd\x17dId\nd:dCd0dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d5dIdPd8dPd\x1fd<dSdBd\x06d\tdLd\x06d\x1fdKdUd\x16d)dPdKd=dIdPd8dPdXd\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d$dGd\x1ad\x0bdLd\ndOd\x18d$dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd\nd\x0edPd\x05d\x1dd\x1bd\x15d\x1cdSdId/d\'d\x19d d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d\x05d\x07dId/d2dZd\x0cdLd\x0bd,d2dEd\x1ddTd\x1dd%d8dId\nd\x0ed\x17d,dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d\x1ad3dLdWd$d\x01d2dIdWdWd\x1fdId\x03dAd\x02d@dEd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\nd\x05d\x1fdAdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x0bdGd\x00d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,d\x1dd\x1bd\x15d\x1bdJdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1ddTd\x1dd\x02d1dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdFd\x1ddIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1bd>dIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd7dTd8dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d-dIdPd8dPdXd\x16dEd.d\x0cd\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x12d0d\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\x06d.d\'d\x14d\x16d)dPd\x1fd"dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1ddTd\x1dd\x02d\x1bdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdFd;dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHdLd\x05dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd8d@d>dId/d\'d?dSd\x03dAdVd9d\x0ed\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLdId\x18d\x15d"d:dLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1bd>dIdPd8dPd\x1fd\x16d.d,d\x1ddCdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d$d@dKdLd\x0bd,d2dEd\x1dd\x05dHdLdWdIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUd\x15dLdWd$d\x08d)dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdIdPd8dPd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMdVd5d\x16d\x03d$dOdAd\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x16d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5dFd1d@d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d2dQd6d\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x04dBd6d\x1dd\x16d.d\x1bd\x0cdLdWd$d\x01d;d\x16d\x0cd\x14d\x07d&dLd\x06d.d\x18d,dId\x04d<dFd\x1cdIdPd\tdRd=dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdIdPd8dCd"d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d\x05d\x07dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.dRd\x1cdLd5d\x0cd#d1d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\ndOd\'dRdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\'d\x14dLd%d d8d\x08dIdPd\tdAdFdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dCd"d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dLdWd$d\x08d)d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\x06d.d\'d\x14dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd\nd\x0edPdWd\x1ddKd8d?dNdIdPd8dPdXd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMdVd5dIdWd0d\x16d%dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd<dLd\x06d.d\x18d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5dFdKd\x1fd\x1ddTd\x1dd6d\x16dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1adHd\x1dd1dEdPdZd\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd1dUd\x0fd\x08dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd9dVdIdPd8d\x12d\x1fdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d5dIdPd8dPdXd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMd\x0edPdIdCd\x17d\x03d\x05dLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd\x19d7d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEdIdOd1dLd\nd\x0edPdWd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\nd\x05d\x1fdAd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1dd\x05dHd=d\x02dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07dGdLdWd$dAd\x16dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd0d\x16d\x0cd=d)d\x07d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d\x0cd#d\x16dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd1d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06dId/d2d\x00d>dLd5d\x0cd#d1d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\nd\x05d\x1fdAdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x15dBd\x1dd\x1bd\x02d\x1ed\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15d\x1adJdIdPd\td\x0cd=d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMdVd5dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16d\x16dEd.dTdUdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dKdLd\nd\x05d\x1fd\x1bd\x1dd\x1bd\x15d\x0edYd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHd=d\x02dId\x0bdOd\tdIdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd7d\x1ed=dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x16dId\x0bd=d$d1d\x16d\x0cd\x14d\x07d\x15d\x16d;d1d&dSdId\x18dHd7d\x16d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHdLd\x05dId\x0bd=d$dAdId\nd"d\x12d0dLd\x0bd\x14d\x02d%dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd5d\x0cd#d7d\x1ddKd8dRd&dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x02dXd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18dXd\x19dIdHdXd;dMd\x16dEd.d#d\x1bd\x16d4d8d\x15d\x19d\x16d\x01d\x08d=d\x1fdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15dFdSdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdBd\x04dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dRd3dId/d\'dWd"dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x12d\x1fdIdWdWd\x1fdIdLd%d3dOd1d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0ed\x1ddAd\x14d dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd\x1edQd\x1dd\x1bd\x15dFd\x07dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)d/dJd\x1fdLdWd$d6d\x03dIdCd\x17d\x03d\x02d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2d<d d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.dRd\x1cdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#dAdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d$d@dKdLdWd\x17dId\x1fd\x16d)d/d:d\x14dId/d\'dWd"dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d\x1ad5dIdPd8dZd\x1edIdCd\x17dKd\x04dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dAd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dId\x03dAd\x02d@dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\nd%d9d9dLd%dJdEdNdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15dFd:dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdBd\x04dIdPd8d5d0dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPd0d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fdId/d2dPd=dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x14d5dLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd<dLd\nd\x19d7d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd\nd\x19dNdRd\x1ddKd8dAdPdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dLd%d\x1fd9d\x05d\x1dd1dEdPd\x08dLd\x04dTd;d.dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x08d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd\nd\x01dFd\x08d\x1ddTd\x1dd6d?dId/d\'d\x04dOd\x16d$dGd\x1adJd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x1edCdLd%d\x07dRdSd\x1ddTd\x1dd%d8dId\nd\x0ed\x17d\x1fd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d\x1edKdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16dEd.d#dAdLd\nd\x0edEd\x18dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x15dBd\x1dd\x1bd&d\x07dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15dFdSdIdPd8dPd\x1fd<dSdBd\x06d\tdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd7d\x1ed=dIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd#d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16d\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>d>dIdIdPd8d5dXd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMdVd5dId\nd"d\x15d=d\x16d\x00d\x0fd\td\x14d\x1ddKd8dMdNdLd%d\x1fdGd\x18d<d@d\x03d\x03d%dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4dId/d2dPd=dLd%d3dOd7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\ndOd\'dRdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x00dWdDd\x1dd\x16d.d\x1cd$dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\'d\x14d\x1dd\x1bd\x15d d3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15d7d-dId\x0bd=d>d\x1dd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd1dEdZdBd\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d\x0cd\x19d\x1adNdLd\x06d.d\x18d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd\nd\x0edPd\x05d\x1ddTd\x1dd6d2dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1ad9d\x16d\x00dMdVd5d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16dEdId\x06d0d\x16dGd9d dHdId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd\nd\x19dNd8d\x1ddAd%d\'dDdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1ad9dId\nd:dCd0d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$d\x16d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d\x0cdAdLdJd<dDdId\x1dd\x1bd\x15d\x1ad5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdBd\x04dIdPd8d5d\x0cdId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPd0d\x16d$dGd\x1adCdLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd\nd\x01dFd\x08d\x1ddTd\x1dd%d\x1ddIdPd\td\x14d\x0cd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMdVd5d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\nd)dLd\nd\x0edEd\x19d\x1ddKd8d?d/dIdPd\td\x0cd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dIdPd8dPdXd\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16dEd.d#d\x16d\x16d;d2dQd6dId\x04dZd:dIdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15d\x1ad9dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdBdIdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15dFdQdId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d\x1ad5dIdPd7dTd8d\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\x0edId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1dd\x02dZd\x00d\tdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6d\x1dd\x1bd\x15d\x1bdJdIdPd8dZd\x1edIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd,d\x16d$dGdFdJd\x16d;d1d&d@dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x0bdGd\x00d\x1ddTd\x1dd\x02d1dId\'d9d@dQd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8dZd\x1edId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07d&dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd\x10dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\ndOd\x18d$dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x0edPdWd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVdLd\ndOd\'dLd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd5d\x0cd\x0cdTd\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6d\x1dd\x1bd\x15d)d-dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15dFd\x07dId\x0bd\x19d2d2d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#dIdWd0dUd\x19dLdWd\x17dId\x1fd\x16d\x01d\x08d\x03dMdIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d dGdLdWd$d;d?dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdIdPd8dPd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdEd\x11d\x16d6dUd)d\x07dLdWd\x17d)d d\x1dd<d>d\x1ad4dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,d\x1dd\x1bd&d6dZdIdPd\td\x0cd>d\x16d6dUd\x18d:dLd\x19dKd\x17d\td\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd\x00d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,d\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1dd\x1bd\x15dFd\x07dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdFd\x1ddLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd1dUd\x0fd\x08dIdPd8dPd$d\x16d\x0cd\x19dGd9dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.dMd?dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#dAd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLd\x18dGd\x1ddPd\x16d.d\x03d\x1cdHdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x15dBd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15dFd:dId\x0bd=d$d\x1dd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:dQd\x14d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$d\x16d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16dId/d2dEd\x14dLdCd\x15dQd0d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d\x15d\x16d;d2dQd\x00d\x16d)dPdKd=dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15d\x1ad9dId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x02dIdPd8dZd\x1ed\x16dEd.dTdUdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d1d\x16dEd.d#d\x1cdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd\x10dLd\x18dGd\x1ddPd\x1dd\x02dZd\x00d\tdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,dLd%d\x1fd\td\x0edIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15dFd\x07dId\x0bd=d$dAd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXd\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPdXd\x16d\x0cd\x14d\x07dVd\x16d6dUd\x1bdJdLd%dJd\x0fd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15dFd\x07dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x05d@dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x02dZd\x15dVdId\x0bdOd\td4d\x16d\x0cd\x14d\x07d\x15d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x0edEd\x04d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVdLd\ndOd\'dLdLd%d d0dZdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dRd3dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d dGdLdWd$d\x02d.dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdIdPd8dPd#d\x16d$d\x15d\x02dZd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#d\x1bd\x03dAd\x02d@dHd\x1dd\x05dHdLd\ndId\nd:d&dOd\x1dd\x11d\x07d\x18d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFd\x16dEd.d#d\x1bdLd5dFd\x1ed\x07d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVdLd\nd\x05d\x1fd\x1bdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,dLd%d dXdBdLdCdHd3dIdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd"d\x16d$d\x15d\x02d\x11d\x16d;d\'d\x17d\x04d\x16d)d/dJd\x1fdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18dXd\x19dIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd8d5d\x0cdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdId\x0bd=d$d\x1dd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2d<d d\x16d$d\x15d\x02d\tdLd\nd\x19d7d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cd\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd>d\x08d8d\x1ddAd%d6d\x1fdId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd7dTd8dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d-dIdPd8dPdXd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#d\x16d\x03d\x0cd\x1ed\x16d\x16d3d5dDd\x15d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd<dLd\nd%d9dSdId\x04dZdNdUdLdCdId\ndUdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2dTdDd\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFd\x16dEd.d\x14d\x16dLdCd\x15dQd0d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLd\x16d)dPdKd=dLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1cd0dId\x0bd=d$dKdId\nd"d\x12d0dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d\x1edKdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#d\x1bdLd\nd\x19d\x10d\x0cdId\x18dHd"d8dIdPd7d\x0cdRdIdWd0d\x17d\x02dLdWd\x17d4d@d\x1dd\x16d.d\x1cd$dLdWd$d\x01dIdId\nd\x0ed5d\x1adLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16d\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x15d\x0edYdIdPd8d5d0d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16d\x0cd\x14d\x07d&dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x15d\x0edYdIdPd8d@d>dLd\x19d\x1bd\x0cd\x07dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\nd\x05d\x1fdKdLd%d dXdBdLdWd$d\x02d.dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1ad5dIdPd8dPd$d\x16d$d\x15d\x02d\x11d\x16d;d\'d=d)d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd.dWd\x1ed\x1ddKd8dMdNdId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d dGdLdWd$d;d?dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdId\x0bd=d$d\x1dd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d6dUd2dJd\x16d\x17d\x16d\x10d>d\x16d\x01d\x08d\x17d\x0cdId\x06dNd1dLdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07dGdLdWd$d\x02d.dIdCd\x17d\x17d\x19dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16d\x0cd\x14d\x07dVdLd\ndOd\'dRd\x16d)dVdGd\x0fdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dRd3dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07dGdLdWd$d\x08d)dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdId\x0bd=d$d1d\x16d\x0cd\x14d\x07dZd\x16d;d/dMdEd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x17d\x17dYd\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSdLd%d d8d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd\x02d\x1bdIdPd\td\x0cd>d\x16dEdIdWd>d\x16d;d\'d=d)d\x16d)d/dNd dLdCdId%d4dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPd0d\x16d3dDdEd\x1dd\x16dGd9d dHdId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd\nd\x0edEd\x04d\x1dd\x16d.d2d\x0cdId/d\'d\x12d,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#d\x16d.d,d\x1dd\x0bdLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\ndOd\'dLdId\x18d\x15d"d:dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1dd\x1bd\x15d\x1adJdIdPd\td\x0cd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdEd\x11d\x16d\x03d\x0cd#d\x16dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07dVdLd\ndOd\'dLdId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd5dFd\x1edQd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\nd\x05d\x1fd\x1bdLd%d d0dZdLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dMdNdId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d\x1ad5dIdPd8dPdXdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdId\x0bd=d$d\x1bd\x16d$d\x15d\x02d\x11dLd\ndOd\x18d\x0cdId\x18dHd\x0ed\x0ed\x16d\x00dMdVd:d\x16dEd.dMd?d\x03dAd\x02d@dHd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1adNd\x16d;d\'d\x15dBdId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd\nd\x01dFd\x08d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x15d\x12dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0ed\x1dd\x1bd&d\x07dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdBd\x04d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd1dUd\x12dZdId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd7d\x0cdRdIdWd0dLd\x18dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16dEd.d#d\x1cd\x16d;d2d\x03dWd\x1dd\x1bd\x02d#d\x18d\x16d\x00dMdId\'d\x16d.d,d\x1dd\x0bdLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x16d\x16d;d\'d\x17d\x04d\x16d)dPd\x1fd"dIdPd8d@d>dId\nd"dWdXd\x03dAd&dLd\x18d\x1dd\x16d.d\x1bdXdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dLd%d\x1fd9dVd\x16d.d5d)dHd\x16d\x03d\x0cd\x0cd\x1cdLdCd\x0bdGd\x00d\x16d\x03d\x04d\x1ed\x16dIdPd8dPd\x0cdId\x0ed\x11d\x16d#dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?dId/d2d\x15d0dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd\x1fd<d@d,dLd\x04d\x16d;d\'d\x03d\nd\x1dd\x1bd\x15d\x0edYdIdPd7d\x1ed=d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16dEdId\x06d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.d\x1edKdLdJd<dSd)d\x1dd<d>d>dIdId\x0bd\x19d2d\x1bd\x16dEdIdWd=d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#d\x1bdLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07dVdLd\nd\x19d\x18d\x14d\x16d)d/dJd\x1fdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1ddTd\x1dd%d\x1cdIdPd\td\x0cd0d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dLdWd$d\x08d)dIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fd\x16d6d?d6dVdId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5d\x0cd\x0cdTd\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d dUd\x15dLdWd$d;d?d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16d$dGd\x1adCd\x16d4d8d\x17d\x0ed\x1ddAd\x14d\x1ad3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1dd\x1bd\x15d\x1ad5dIdHdXd;dMd\x16dEd.d\x0cd\x16dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dIdLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd<dLd\ndOd\x18d$d\x1ddAd%dJd@dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1dd\x1bd\x15dFdQdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd\x1fdLdWd$d;dUdId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd\x1ad\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?dId/d2dPd=dLd5d\x0cd#d7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x15dBdId\x18dHd"d\x1cd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddAd%d6d\x1edId\x0bd=d$d\x1bd\x16d\x0cd\x19d\x1adNdLd\x0bd>dPdAd\x1ddAd\x14d dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd\x02d\x1bdIdPd8dPd\x1fd<dSdBd\x06d\tdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#dLd\x04dTd.d)d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd#d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d\x1edKdLd5d\x0cd#d7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQdGdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1dd<d>d\x1ad4dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,dLd%d dUd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00d\x1dd\x1bd\x15d\x05d@dLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd1dUd\x12dZdId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd8d5d\x0cd\x16d$d\x15d\x02d\x0fdLd\x0bd,d2dHd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVdLd\ndOd\'dRdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18dXd\x0edId\x06d\x16dOd=d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4d\x16dEd.dMd?dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16dEd.d#d\x1bdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId/d2d\x15d0dLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd%d9dSdId\x04d<d"dRdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15dFd:dId\x0bd=d$d<d\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dId\x03dAd\x02d@dHd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdQdLd\x06d\x1fdKd?dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x19dNd8d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\nd\x05d\x1fd\x1bdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?d.d\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\'d\x14dLd%d\x1fd9d\x19dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1ad-dId\x0bd=d$d\x16d\x16d$dGd\x1adPd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d2d\x07dLd\nd\x0edEd\x19d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07d\x15d\x16d;d2dQd6d\x16d)d/dJd>dId\x06d\x16dOd0dIdWd0d<dWdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#dAd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.dRd\x1cdLd\nd\x05d\x1fd\x1bd\x1ddTd\x1dd%d\x1cdId\x0bdOd\tdIdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07dGdLdWd$dAd\x16dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1ad5dIdPd8dPd"d\x16dEdIdWd>d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId/d2dPd=dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d\x14d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd5d\x0cd#d1d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d\x15d\x16d;d2dQd6dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d dXdBdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGdId\x18dHdFd;d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dRd3dIdPd\td\x0cd>dId\nd"d\x12d0dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8dZd\x1ed\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16d\x0cd\x14d\x07dVd\x16d;d2d\x17d\x05dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x17d\x17dYd\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17dLd%d\x1fd\td\x0edIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15dFdQdIdPd8d5d$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMd\x0edPdId\nd"d\x0fd0dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd\x19d7d,dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd\nd\x05d\x1fd\x1bd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\nd\x05d\x1fd\x1bd\x1dd\x1bd\x15d"dHdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd%d\x1cdId\x0bd\x19d2d\x16dId\nd\x0ed5d\x1adLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x02d.dId/d2d\x0fd$dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16dEd.d#d\x1bdLd\x06d\x1fdKd?dLd\x10d5d\x0bd\x1ddLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15d\x1ad9dId/d\'dWd dId\nd\x0edAdYdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16dEd.d#d\x1bd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d$d@dKdLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdSd\x16d;d2d\x17d\x19dId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd5d\x0cd#d7d\x1ddTd\x1dd%d\x1cdIdPd\td\x0cd\x1ad\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMdVd5dId/d2dCdRd\x1ddKd>d\x11d<d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1ad6dLd\x06d\x1fdKd?dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x19dNdRd\x1dd<d>dFdIdIdPd8dCd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dIdPd8dPdXdId\nd"d\x19d$dLd\nd\x0edEd\x19d\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,d\x1dd\x1bd&d\x07dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15d\x1ad9dIdPd\td\x0cd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:d\x15d#d\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16d\x0cd\x19dGd9d\x16d;d2d\x17d\x19dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x05d\x1fd\x1bd\x1ddKd8dRdGdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd>d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId/d\'dWd\x1ed\x16d\x0cd\x19d\x1ad\x00dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x02d.dId/d2dEd\x14dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd#d\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x03d\nd\x1dd\x1bd\x15d\x0edYdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd1dUd\x12dZdIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07dGdLdWd$d\x02d.dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd,d\x16d\x0cd\x14d\x07d\x15dLd\ndOd\x10d"d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd<d>d\x1ad4dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15d\x1ad-dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1adHd\x1dd1dEdPdZd\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddAd%d6d\x1edId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd9d\x19dLdWd$d\x01d2dIdWdWd\x1fdId\x03dAd&dLd\x18d\x1ddAd%dNdYdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d\x1fd9d\x19dIdPd7d\x0cdRdIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x03d\x16d\x0cd\x14d\x07d\x15d\x16d;d\'d\x17d\x04dId\x04dVdLd\x06dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1ddTd\x1dd%dKdId\x0bd\x19d)d?d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dLdWd$d\x01d2dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPd0d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dAd\x16dEd.d#d\x1bd\x16d;d\'d\x15d\x12dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd5d\x0cd\x0cdTd\x1ddTd\x1dd%d8dId\nd\x0ed.dSd\x1dd\x0fdAd2d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x14d\x16dLd\nd\x0edPd\x05d\x1ddAd%d-d#dId\x0bd=d\x1ad\x1bd\x16d\x0cd=d)dJdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x1edCdLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\x06d\x1fdKd?dId\x04dVdLd\x06dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd\x02d\x1bdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d\x1fd9d\x19dLdCdId\nd2dId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2d<d d\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x02d.dId/d2d\x0fd$dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16dEd.d#d\x16dLd\nd-d#d\x19d\x16d)dPd\x1fd"dLdWd$d\x01d2dLd\x04dTd.d)d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEdId@d\x1ddLd5d\x0cd#d7d\x1ddTd\x1dd\x11dKdIdPd\td\x0cd\x14d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#d\x16d\x03d\x0cd\x0cd?d\x16d;d1d\x15d\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\ndOd8dOdId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd\nd\x01dFd\x08d\x1dd\x16d.d\x1cd\x14dIdPd8dPd\x1fd<dSdBd\x03dZd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x15d\x14dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1adNd\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd5dFdKd\x1fd\x1ddTd\x1dd%d\x1cdId/d\'d\x12d"d\x16dEdId\x06d\x0cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d\x0cd#d\x16dLd\nd\x0edPdWd\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6d\x1dd\x1bd\x15d\x05d@dIdPd7dRdFdId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d1d\x16dEd.d#d\x1bd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x04dTd?dIdLd\nd\x0edEd\x19d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\x06d.d\'d\x14dId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd5d\x0cd#d7d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x15dBd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x17d\x17dYd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d=d\x0ed\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1dd\x1bd\x15dFdQdIdHdXd\x01dFd\x16d\x0cd\x14d-d\x15dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d$d@dKd\x03dAd&dLd%d\x16d\x17dAd:dQdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSdLd%d\x1fd9d\x19dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd\x02d1dIdPd8dPd\x1fd<d@d,dEd\x15d\x16d;d2dQd6dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x05dHd=d\x0edId\x06dNd1d\x1ad\x16d\x0cd=d)d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d#d\x1bdLd5d\x12d\x06d\td\x1dd<d>d>dUdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdBd\x04dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd\x02d\x16dId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fdIdWd0d\x15dVdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dAd\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d2d\x07dLd\nd\x0edEd\x19d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd\nd\x05d\x1fd\x1bd\x1ddTd\x1dd%d\x1cdId/d\'d\x12d$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dLdWd$d\x01d2dLd\x04dTd.d)d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td.d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x0cd4d\x1ddAd\x14d dGdLdWd\x18d\x07d\x03dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd"d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMd\x0edPd\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd\x1ed\x16dEdId\x06d\x14dLd\nd\x19d\x18d\x14dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd5dFd1d@d\x1ddKd8dRd&dId/d\'dWd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:dQd\x14d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td.d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?d\x16dEd.dRd\x1cdLd\x19dKd4d\x0fd\x1dd<d>d\x1dd\x01dIdHdXd\x01dFd\x16d$dGdFd\x0bdLd\nd\x19d\x18d>d\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd\x14d\x02d%d\x1dd\x1dd\x18dXd\x19dLd\x04d7d5d\x1bdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd7d\x0cdRdId/d\'d\ndOdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1dd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd\nd\x0edPd\x05d\x1dd<d>d\x1dd\x0edIdHdXd\x01dMd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMd\x0edPd\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId/d2dTdDd\x16d\x0cd\x14d\x07d&dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dTd8d\x16dEd.d#d\x1bdLd\ndOdLdDd\x1dd<d>d>dIdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d\x1fd9dVdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId\x0bd=d$d1dId\nd:d\x12d dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x08d)d\x16dEdId@d\x1ddLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0d4d\x05dLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdSd\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x00d>dLd\nd\x0edEd\x04d\x1dd\x1bd\x15d\x1bd9dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdId\x18dHdFd1d\x1dd1dEdPdZd\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddKd8dMdNdId/d2dTdYdId\nd"d\x12d\x0cd\x16dGd9d\x18dOdId\x04dZdNdUdLdCdId-d\x06dId/d2dEd\x14dLd5dFd1d@d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cd\x16d;d2dQd\x00d\x1dd\x1bd\x15d\x1cd9d\x1dd1dEdPdZd\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd#d\x16dEd.d#d\x1bdLd\nd\x19d\x18d\x14dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x0edEd\x04d\x1dd\x1bd\x15dFd:dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x16d)dPdKd=dLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd%d\x1cdId\x0bdOd\tdIdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x0edLdWd$dAd\x16dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:d\x15d#dLd\x19d\x1bd\x0cd5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td;d\x16d3dDd8d$d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d\'d\x15dBdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLdWd\x04dBd6d\x1dd\x16d.d\x1cd#dIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd7d\x1ed=dId\nd"d\x0fd0dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16d\x0cd\x14d\x07d&dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd\x10dLdCd\x00d\x18d d\x1dd\x1dd\x18dXd\x19dLdWd$d\x01d4dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dXd6dIdPd8d\x12d\x1fd\x16d$d\x15d\x02d\x0fdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16d\x0cd\x14d\x07dZdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd2dCdLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd1d\x16d;d2d\x17d\x19dId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd5d\x0cd#d1d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\nd\x05d\x1fdKdLd%d d0dZd\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd%d\x1cdId\x0bd\x19d2dUdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8dEdIdPd7dTd8dId/d2d\x15d0dLdJd<dDdId\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cd\x16d;d2dQd\x00dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1dd\x1dd\x18dXd\x10dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd\x15d\x1adPdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d7d\x1dd\x1bd\x15dFd\x07dIdPd\tdRd\x1ad\x16d$dGdFd\x0bdLd\nd\x19d\x18d=d\x1dd\x1bd\x15d)d-dId\nd:dEd$dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd8dPdXd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16d\x0cd\x14d\x07dZdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLdCd\x00d\x18d d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$dGd\x1adHdLd\ndOd\x18d$dId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd\nd\x0edPdWd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\nd\x05d\x1fd\x1bd\x1dd\x1bd\x15d\x1adPdId\nd:dOdRd\x16d6dUd\x0ed:d\x16d;d1d\x15d\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdSd\x16d;d2d=d\x0ed\x16d)d/dJd\x1fdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1dd\x1bd\x15d7d5dId/d\'d\x12d"d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dId\nd:d\x15d#dLd\x04dTd.d)d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x17d\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8dZd\x1edId/d2d\x00d>dLd5d\x12dWd\x08d\x1dd<d>d>dIdId\x0bd=d$dKd\x16d$d\x15d\x11d\td\x16d;d\'d\x17d\x18d\x16d)dPdKd=dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1bd>dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07d\x0bdIdPd8dPdXdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dCd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdOd&d\x16dEd.d#d\x1bdLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x16d\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06d\x16dEdIdOd1dLd\nd\x0edEd\x04d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQd6d\x16d)d/dNd\x1ed\x1dd1dEd@dGdIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dIdCd.d9d\x17d\x16dEdId\x06d>d\x16d;d2dQdGdLd%d\x17d\'d\x0edIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1dd\x1bd\x15dFdQdId/d\'d\x12d"d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXdIdCd\x17dWdBd\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07dVdLd\nd\x05d\x1fd\x1bdId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd5d\x0cd#d1d\x1dd\x1bd\x15d\x1bd@dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x05d@dIdPd8d@d\x14d\x16dEd.dMd?dLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd<dLd\ndOd\x18d\x0cd\x1ddAd%dJd@dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15d\x1adJdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d dUdHdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId\x0bd=d$dAdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd8d@d>dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdId\x0bd=d$d\x1bd\x16d\x0cd\x14d-dGd\x16d;d/dMd3dLd\x10d5d/dMdLdCdId%d;d\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>d\x1ad2dIdHdXd;dMd\x16d\x0cd=d\x0ed:d\x16d;d\'d\x15dBdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x04dBd6d\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd%d9dSd\x1dd\x1bd&d6dZdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1dd\x1bd\x15dFdSdIdPd\td\x0cd0d\x16d\x0cd\x14d-d\x15d\x16d;d/dMd\'d\x1dd\x1bd\x15d)d-dLdCdId\x0bd\x0edLd\x04dTd.d)d\x16dGd\x0bd\x1bd\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d\x14d\x16d;d2dQd6dLd\x10d5d/dMdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1dd\x1bd\x15dFd:dIdHdXd\x01dRd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1dd\x16d\x00dMd\x0edPdId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd\x1ed\x16dEdId\x06d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.dTdUdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1cd\x16d;d\'d\x15d\x12dLd%d d<dGdLdWd$d\x01d;d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2d<d d\x16d$dGd\x1adHdLd\x06d.d\x18d,dId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd5dFdKd\x1fd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQdGdLd%d d8d\x08dLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15dFdQdIdPd\td\x0cd=dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd7d\x0cdRdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15dFdSdId\x0bd=d$d\x16d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd\x12d\x0cdEd\x11d\x16d.d,dId:d\x16dGd\x0bd\x1bd\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEdId\x06d0dLd\nd%d9dSdId\x18dHdBdIdId\x06d\x16dQd$dId\nd"dEd\x1adLd\ndOd\x1dd\x1fd\x1ddTd\x1dd&d\x1cdId\x0bd\x19d2dAd\x16d\x0cd=d\x0ed5d\x16d;d\'dLd;dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?d.d\x1ddKd8d\x0bdDd\x1ddKd8dRd\x00dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x02dIdPd7d\x1ed=dId/d2d\x00d>dLd5d\x12d\x06d&d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dVd\x16d;d2dQdGdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6d\x1dd\x1bd\x02d\x1ed\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1dd\x1bd\x15dFd\x07dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00d\x16d)d/dJd\x1fdLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd1dUd\x12dZdId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dXd6dIdPd8d5d\x0cdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd\x1fd<d@d,dEd&dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06dId/d2dPd=dLd\nd\x19dNd8d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x15d\x12dId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\x18d,d\x1dd\x1bd\x02d\x1ed\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1ddTd\x1dd%d\x1cdId\x0bd\x19d)d2d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXdId/d2dEd=d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d\x0cd=d)d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?d\x16dEd.d\nd)dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dCd"d\x16dEd.d#d\x1bd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0d4d\x05dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd<dLd\nd\x05d\x1fdKdLd%dJd8d\x19dId\x06d\x16dCd#dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdId\x0bd=d$d1d\x16dEd.d\x0cdAd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d\x03d$d@dKdLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07dVdLd\x06d.d\x18d\x1edLd%dJd\x0fd\x15dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15dFd\x07dId\x0bd\x19d)d;d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d\x0cd\x14d\x07dVd\x16d6dUd dEdId\x04dZdNdUdLdCdId-d\x06d\x16dEd.d\nd)dLd\nd\x01dFd\x15d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07dZdLd\nd\x05d\x1fdAd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1dd1dUd\x0fd\x0fdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17d\x1dd\x1bd&d\x07dGdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdFd1d\x1dd1dEd\x12d\x12d\x16d\x03d$dQdKd\x16d\x17d\x16d\x10dRd\x1ddTd\x1dd%dAdLdWdSd d\nd\x16d\x0cd\x19dGd9dLd\ndOd\x18dXdLd%dJdUdBdLdWd$d\x07d\x18dIdWdWd,d.dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x03d\nd\x1dd\x1bd\x15d\x0bd$dLdCdId&d)d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1ddTd\x1dd\x02d\x16dIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x02dIdPd8dZd\x1edIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%d\x1cdId\x0bd=d$d\x16d\x16dEdId\x06d0dLd\ndOd\'dLdLd%d\x1fd\'d\x04dId\nd:d\x0fd,dId\nd"dZd\x14d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d\'dWd\x1ed\x16d\x0cd\x19d\x1ad\x00dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd7dRdFdId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16dEd.d#d\x1cdLd\nd\x05d\x1fd\x1bd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLdWd\x17d\x17dYd\x1dd\x16d.d\x1cd$dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d=d\x17d\x1ddAd\x14d dGdLdCdIdDd\x04dId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16d\x0cd\x14d\x07dVd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd\x10dLd5d\x0cd#d1d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x08d\x16d;d2d\x17d\x19dId\x04d<d"dKdIdPd7d\x0cdRdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d5dId\x0bd=d$d\x1bd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddId\nd:dQd\x14d\x16d6dUd)d5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td.d\x16dEd.d#d\x16d\x16dGd9d dHd\x1ddAd\x19d d>dIdPd\tdTdRdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x1bdIdPd8dPd\x0cd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXd\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId/d2dTdDd\x16d3dDd8d#dLd\x0bd>dPd\x1bdId\x04dZdNdUdLdWd\x18d\x07d\x03dId\nd\x0ed?dYdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dAdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x15d\x14dLd\x0bd,d2dEd\x1dd\x02dZd\x00d\tdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x17d\x04d\x1ddAd\x14d\x1ad3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x08d\x1ddTd\x1dd%dAdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdFd;dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd1dUd\x0fd\x08dId/d\'dWd"dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07d\x0bdIdPd7dTd8dId/d\'d?dSdLd%d\x00d2dUd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&d\x16d;d\'d\x15dBdId\x18dHd7d\x16d\x16d\x00dMdNd-d\x16d.d,d\x1ddCd\x1ddKd>d\x11dMd\x1dd\x1bd\x15d\x1adPdId\x06d\x16dOd,d<d@d\x03d\x03d%dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEdIdOd1dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d1d\x16dEd.d#d\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#d\x1bdLd%d\x07dRdOd\x1dd\x02dZd\x00d\tdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\nd\x19d7d,d\x1dd\x1bd\x02d\x1ed\x01dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd\x1edQd\x1ddTd\x1dd%dAdId/d\'d\x19d d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d\x00dMdVd5d\x16d\x03d\x0cd#d\x16dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07dVdLd\ndOd\'dLdId\x04dZdNdUdLdCdId-d\x06dId/d2d\x0fd$dLd5dFd1d@d\x1dd\x16d.d)d>dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdFd;dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15dFdQdId/d2dTdDdId\nd\x0edAdYdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$dAd\x16dId/d2dEd\x14dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd"d\x16dEd.d#d\x1bdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16d6dUd\x0ed5dLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19dGdQdLd\nd\x05d\x1fdKdLd%dJd\x06d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd\x0cdTd\x1dd\x1bd\x15dFdQdId\x0bd=d$d\x1dd\x16d\x0cd\x14d\x07d\x15d\x16d;d/dMdEdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd5d\x0cd\x0cdTd\x1ddAd%dNdOdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d\x17d\x19d\x1dd\x1bd\x15d d3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFd1d@d\x1ddTd\x1dd\x02d\x1bdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1adPdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15d\x1ad9dIdPd\td\x0cd=dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\td\x0edLdWd$d;d?dIdCd\x17dKd\x04dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dKd\x16dEd.d#d\x1bd\x16d;d\'dLd4dId\x18dHd\x1cdAdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x1bd\x15d\x1ad9dIdPd8dPd#d\x16d$dGd\x1ad\x0bd\x16d;d\'d\x15dBdId\x04dZdNdUdLdCdId-d\x06d\x16dEd.dTdUdLd5dFd\x1edQd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#d\x1cdLd\ndOd\'dLd\x1dd\x1bd\x15d\x1bdDd\x16d.d5d\td:dIdCd\x17d\x03d\x02d\x16d;d1d\x15d\x1fd\x16d)d/d:d$dId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d dUdHdIdPd8d\x12d\x1fdIdWd0dUd\x19dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d\x03d\x0cd#d\x16dLd\x0bd,d2dHd\x16d)d/d:d0dLdWdSd d\ndId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d@d>dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1ad5dIdPd8dCd#d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dIdPd7d\x1ed=d\x16d\x03d\x0cd\x1ed\x16d\x16d\x01d\x19d\x07d&d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd1d\x16d;d\'d\x17d\x04dId\x04dZdNdUdLdCdId-d\x06dId/d2d\x00d>dLd\nd\x01dFd\x08d\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\ndOd\'dLdLd\x10d5d/d\x16d\x16d\x00dMdBd\x07d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x02dZd\x15dVdIdCd.d9d\x01d\x16dEdId\x06d>dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\nd)d\x03d\x16d0dIdMd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d\'d\x15dBdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\nd\x05d\x1fd\x1bd\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2d\x17d\x19dLd%d\x1fd\'d\x04dLdCdIdDd\x04dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdId\x0bd=d$dAd\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd8dPdXd\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td;d\x16d$d\x15d\x02d\tdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?d\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16d\x0cd\x14d\x07d&d\x16d;d/dMd3dLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd5d\x0cd\x0cdTd\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d\'d\x15dBd\x1ddAd\x14d\x1ad3dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d\x1ad9dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15d\x12dId\x18dHdFd\x1ddLdCdId\x11dId\x16dEd.d\x14d\x1cd\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\x0bdOd\td;d\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x01d2d\x16dEd.d\nd)dLd\ndOdLdDd\x1dd\x16d.d)dRdIdHdXd\x01dFd\x16dEd.d\x0cd\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd\x10dLd\x0bd,d2dHd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d3dDdEd1d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06dId/d2d\x15d0dLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\ndOd\'dLd\x16d)dPd=d\x0cdLdWd$d\x02d\x17d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHdLd\x05dId/d2d<d\x1fdId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x0fdIdPd8dPdXdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x16dIdPd8dCd#d\x16dEd.d#d\x16d\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdIdWd0dKd%d\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d\x0cd\x14d\x07d\x15d\x16d;d2d=d\x0edId\x04dZdNdUdLdWd\x18d\x07d\x03dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd\x02d\x16dIdPd8dPd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd\x1ddIdPd7d\x1ed=dIdWd0d\x17d\x02dLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d\x0cd\x19d\x1adNd\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd5dFd\x1edQd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKdLd\ndOd\'dLd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d\x07dRdOd\x1ddTd\x1dd\x02d\x1bdIdCd.d9d\x01dId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d d8d\x08dLdWd$d\x02d.dId/d2d\x00d>dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$dAd\x16dEd.d#d\x1cd\x16d;d\'d\x03d\nd\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBdLd\x19d\x1bd\x14d5dLdCd\x00d\x06dYd\x1dd1dUd\x12dZdId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8dZd\x1edId\nd#d\x1edTdLd\ndOdLdDd\x1dd\x16d.d2dXdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00d\x16d)d/dJd>d\x16d.d5d\td-d\x16d6dUd\x0ed:d\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x0fdLd\nd%d9dSd\x1ddAd\x14d\x1ad3dIdPd7dRdFdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dKdIdPd8dPd$d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/dId/d2dCd\x1adLdCd\x0bdGd\x00d\x16d\x17dAd:dQdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d.d\'d\x14d\x1dd\x1bd\x15d\x05d@dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1ddTd\x1dd%d\x1cdIdPd8d5d>d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd d\x1dd1dEdZdBd\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d\x0cd\x19dGd9dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?d\x16dEd.dMd?dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16dEd.d#d\x1bdLd\ndOd\'dFdId\x18dHd\x18d.dIdPd7d\x0cdRdLd\x04dTd\x01d)dLd%d3dOd7d\x1ddTd\x1dd\x02d\x1bdLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d d8d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x01dFd\x15d\x1ddTd\x1dd%d\x1cdIdPd\td\x0cd$d\x16dEdId\x06d>dLd\ndOd\'dRdLd%d d<dGdIdPd7d\x0cdRdLd\x04dTd?dIdLdWd\x04dBd6d\x1dd\x05dHdLd%dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x10dLd\x06d\x1fdKd?dLd%d dUdHdIdPd8dZd\x1ed\x16dEd.d#d\x1bdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16d\x0cd\x14d\x07dVdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId/d2d\x15d0dLd%d3dOd1d\x1ddTd\x1dd\x02d\x16dLdWdSd d\ndId\nd"d\x12d>dLd\x06d.d\x18d,dLd%d\x1fd\'d\x04dLdWd$d;d?dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d7d5dId\x0bd=d$d\x1bd\x16dEd.d#d\x1bdLd\ndOd\x18dXdId\x18dHd"d8dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd\x16d.d\x1bd>dIdHdXd;dFdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d\x07d\x0bdIdPd7d\x1ed=dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1ddTd\x1dd%dAdIdPd8dPd,d\x16d$dGdFdCdLd\ndOd8dDd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x0bdGd\x00d\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d\x1fd\'d\x04dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNdRd\x1dd\x1bd\x15d7d5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBdLd%d dUd\x15dId\nd:d\x15d#d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dId\x0bd=d$dKd\x16d\x0cd=d)d5dLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.d\x0cdAdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dAd\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLdCd\x00dWdDd\x1ddKd8dMd6dLdWd$d\x01d\x1bd<d@d\x03d\x03d\x19d\x16d;d2dQd6dLd%d d8d\x08dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd\nd\x19dNd8d\x1dd\x1bd\x15d\x1ad9dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d\'d\x15dBd\x1dd\x1bd\x15d\x1adPdId\nd:d\x15d#dIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdHdXd;dMd\x16dEd.d#d\x1bd\x16d6d?d6d&d\x1dd\x1bd\x15d\x1adPdIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5dFdKd\x1fd\x1ddTd\x1dd\x02d\x16dIdPd\td\x0cd"d<dSd\x12d:d\x03dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLd\nd\x0edEd\x19d\x1dd\x1dd\x18d,d\x05dIdPd\td\x0cd"d\x16d.d\x1ed&dZdLd\nd%d9dSdId\x18d\x15d"d:dIdPd\td\x0cd>dIdCd\x17d\x19dBdLd5d\x0cd#d1d\x1dd\x1bd\x15d\x1ad5dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQd\x00dId\x18dHdFd;dId\nd:dCd>d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x05dHd=d\x02dId/d\'dWd"dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1ddAd\x14d\x1ad3dLdWd$d;d?dId\nd"dEd\x1adLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d1d\x16d\x0cd\x14d\x07dVdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVdId\nd"d\x15d\x14dLdWd\x17d4d@d\x1dd\x1dd\x18dXd\x02dIdCd.d9d\x03d\x16d$dGd\x1ad\x0bdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d;d?dId/d2d\x15d0dLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x1bd\x16d\x0cd\x14d\x07dVdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEd5dVd\x16dEd.d#dAd\x1dd\x1dd.d\x06d#d\x16d)d/d:d\x14dId\x0bdOd\td.d\x16dEd.d#d\x1bdLd\ndOd\x18d$dId\x04dZdNd\x0edId\nd:dOd\x1adId\nd\x0ed.dOdLdJd<dSd)d\x1dd<d>dFd;dId\x0bd=d$d\x16d\x16d\x0cd\x14d\x07d&dLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLdWd\x17dId\x1fd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDdEd1d\x16d;d2dQd6dId\x04dZdNdUdLdCdId-d\x06dId/d2dZd\x0cdLd\nd\x05d\x1fd\x1bd\x1ddTd\x1dd6d?dIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGdId\x18dHdFd\x1ddLdWd$d;d?dLd\x19d\x1bd\x0cd5d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16dEd.d#dAdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d dGdLdWd$d\x04d4dId/d2d\x0fd$dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dAd\x16d;d&dDdOdId\x18dHdJdWdIdPd7d\x1ed=dLd\x19d\x1bd\x14d5dLd%d3d@d\x1dd\x16d)d/d:d\x14dId\x0bdOd\td.d\x16d$d\x15d\x02d\x08d\x16d;d2d=d\x0edId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x0edEd\x04d\x1ddTd\x1dd\x02d\x1bdId\x0bd\x19dIdAd\x16d\x0cd\x14d\x07d&dLd\ndOd\'dLd\x1dd\x1bd\x15d\x0edYdIdPd7d\x0cdRdLd\x04dTd\x01d)dLd\x0bd,dId\'d\x1dd1dUd\x0fd\x0fdLdWd$d\x01dIdId\nd\x0ed5dRd\x16d;d\'d=d\x17dLd%d d8d\x08dLdWd$d\x01d2dId/d\'dWd\x1fdLd5d\x12dWd\x08d\x1dd<d>d>dUdId\x0bd\x19d2d\x16d\x16d\x0cd\x14d\x07d&dLd\x06d\x1fdKd?d\x1dd\x1bd\x02d\x1ed\x19dIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd.dWd\x1ed\x1dd1dUd\x12dZdIdCd.d9d\x01dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x12d\x1fdIdCd\x17dUd\x10dLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dAdLd\ndOd\x10d"d\x1dd\x1bd\x02d\x1ed\x03d\x1dd1dEdZdBd\x16d.d,d\x1dd\x0bdLd\x18dGd\x1ddPd\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\nd%d9dSdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1dd<d>d>dIdIdHdXd\x01dFd\x16d\x0cd=d)d-d\x16d;d2dQdGd\x16d)d/dJd\x1fdIdPd8d@d\x14d\x16dEd.dMdUd\x1dd\x1dd\x18d\x15d\'d\x1dd\x1dd\x18d,d\x05dId\'d9d@d@dId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x12d\x1fdIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)dPdKd=dLdWd$d\x08d)d\x16d\x03d\x0cd\x1ed\x16d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@dYd\x16dEdId\x06d0dLd\x0bd\x14d\x02d%d\x16d)d/d\x19d-dLdCdIdDd\x04dIdCd\x17d\x03d\x05dLd%dJdQdJd\x1dd\x16d.d\x1bd"dId\x0bd\x19d2dUd\x16d\x0cd=d)d5d\x16d;d/dMd3dLd%d dUdGd\x1dd\x12d\x0cdEd\x0fdIdWd0dUd\x05d\x16d;d1d\x00d d\x1dd\x05dHdLd\x05dIdPd\td\x0cd\x1ad\x16d3dDdEd\x1ddLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.dTdUdLd\ndOd8dOd\x1ddTd\x1dd6d\x16dId\x0bd=d\x1ad?d\x16d\x0cd\x14d\x07d&d\x16d;d/dMdEdId\x18dHdJdWdIdPd7d\x1ed=dIdWd0dKd%d\x16d\x00d\x10d\x17d\x01d\x16d)d/d:d\x14dId\x0bdOd\td;d\x16d3dDd8d#dLd\ndOd8dOdId\x04dZdNdUdLdCdId-d\x06d\x16dEdId@d\x1ddLd\nd\x19dNdRd\x1dd\x16d.d)dRdId\x0bd\x19dIdAd\x16dEd.d#dKd\x16d;d2dQdGd\x16d)dPdLd\x1adIdPd7d\x0cdRdLd\x04dTd?dIdLd\x18dPd\nd\x10d\x1dd\x1dd\x18dXd\x02dIdPd8dPd\x0cdId\nd"d\x12d>dLd\x06d.d\x18d,d\x1dd\x1bd&d6d\'dIdPd8d\x00d"dIdWdWd\x1fdId\x03dAd\x19d2dQd\x1dd\x1bd\x15d\x1adJdIdPd8dPd,d\x16d$dGdFd\x0bdLd\x06d\x1fdKdUd\x16d)d/dJd>d\x16d.d5d2d/d\x16d.d,d\x1cd\x07d\x16d;d1d\x00d d\x1dd\x05dHd=d\x02dId\'d9d@d9d\x16d3dDd8dXdLd\x0bd\x14d\x02d\x19d\x1ddAd\x14d d\x0bdIdPd8d\x12d\x1fd\x16dEd.dTdUdLdJd<dSd)d\x1dd<d>dFd;dIdPd8dPd,d\x16dEd.d#dKdLd\nd\x19d\x18d=d\x1dd\x1bd\x15d dEd\x1dd\x12d\x0cd\x15d\x12dLd\x19dKd\x12d\x15dId\x06d\x1cd\ndKd\x16d"d9d\x1cdRd\x16d"d@dMd6dAd/d-dWd.d\x1ad7d\x01d/d+d&d\x1fd,d+d&d\x03d\x17d+d&d\x1fdXd)d\x17d\x0fd\x0edXd"d+d&d\x03d\x17d+d&d\x1fd"d\x0ed&d\x0ed\x01d+d&d\x03d\x17d+d\td)d\x0cd#d\x03d\x0ed\x01d\x02d\x03d\x0ed+d&d\x17d0d+d&d\x1fd\x1fd\x11d+d&d\x1fd#d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd\x11d+d&d\x1fd#d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\nd\x17d+d&d\x1fd)dJd>d\x15d\x08d\x13d\x1bd\x08d\td\x11d\x04d5d+d&d\x03d\x17d+d&d\x1fd\x0cdJd\x19d\x02d\x03d\x08d%d\x0ed5d+d&d\x1fd"d+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd\x0fd+d&d\x1fd\x1ed+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x1fd+d&d\x1fd\x0cd+d&d\x1fd d*d/d/\x90qg\xf8Z\x00e\x01d[\xa0\x02d\\d]\x84\x00e\x00D\x00\x83\x01\xa1\x01\x83\x01\x01\x00d^S\x00)_z#???????????????????????????????????zc???????????????????????????????????????????????????????????????????????????????????????????????????zo???????????????????????????????????????????????????????????????????????????????????????????????????????????????zd????????????????????????????????????????????????????????????????????????????????????????????????????zi?????????????????????????????????????????????????????????????????????????????????????????????????????????zn??????????????????????????????????????????????????????????????????????????????????????????????????????????????zg???????????????????????????????????????????????????????????????????????????????????????????????????????z=?????????????????????????????????????????????????????????????zu?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zt????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zf??????????????????????????????????????????????????????????????????????????????????????????????????????z-?????????????????????????????????????????????z8????????????????????????????????????????????????????????z\n??????????ze?????????????????????????????????????????????????????????????????????????????????????????????????????zs???????????????????????????????????????????????????????????????????????????????????????????????????????????????????zk???????????????????????????????????????????????????????????????????????????????????????????????????????????zr??????????????????????????????????????????????????????????????????????????????????????????????????????????????????zp????????????????????????????????????????????????????????????????????????????????????????????????????????????????z ????????????????????????????????zB??????????????????????????????????????????????????????????????????zy?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zR??????????????????????????????????????????????????????????????????????????????????za?????????????????????????????????????????????????????????????????????????????????????????????????zh????????????????????????????????????????????????????????????????????????????????????????????????????????zm?????????????????????????????????????????????????????????????????????????????????????????????????????????????zD????????????????????????????????????????????????????????????????????zP????????????????????????????????????????????????????????????????????????????????zS???????????????????????????????????????????????????????????????????????????????????zM?????????????????????????????????????????????????????????????????????????????z2??????????????????????????????????????????????????z0????????????????????????????????????????????????z1?????????????????????????????????????????????????z:??????????????????????????????????????????????????????????z4????????????????????????????????????????????????????z5?????????????????????????????????????????????????????z7???????????????????????????????????????????????????????zl????????????????????????????????????????????????????????????????????????????????????????????????????????????zx????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????z(????????????????????????????????????????z.??????????????????????????????????????????????zb??????????????????????????????????????????????????????????????????????????????????????????????????z\'???????????????????????????????????????z\\????????????????????????????????????????????????????????????????????????????????????????????z3???????????????????????????????????????????????????z@????????????????????????????????????????????????????????????????zZ??????????????????????????????????????????????????????????????????????????????????????????z)?????????????????????????????????????????z9?????????????????????????????????????????????????????????zN??????????????????????????????????????????????????????????????????????????????zV??????????????????????????????????????????????????????????????????????????????????????z%?????????????????????????????????????zX????????????????????????????????????????????????????????????????????????????????????????z>??????????????????????????????????????????????????????????????z!?????????????????????????????????zJ??????????????????????????????????????????????????????????????????????????zI?????????????????????????????????????????????????????????????????????????z_???????????????????????????????????????????????????????????????????????????????????????????????z????????????????????????????????????????????????????????????????zW???????????????????????????????????????????????????????????????????????????????????????zL????????????????????????????????????????????????????????????????????????????zC???????????????????????????????????????????????????????????????????zA?????????????????????????????????????????????????????????????????zT????????????????????????????????????????????????????????????????????????????????????z{???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zQ?????????????????????????????????????????????????????????????????????????????????zq?????????????????????????????????????????????????????????????????????????????????????????????????????????????????z;???????????????????????????????????????????????????????????z}?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????z&??????????????????????????????????????zG???????????????????????????????????????????????????????????????????????zz??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????z+???????????????????????????????????????????zY?????????????????????????????????????????????????????????????????????????????????????????z<????????????????????????????????????????????????????????????zO???????????????????????????????????????????????????????????????????????????????zF??????????????????????????????????????????????????????????????????????zH????????????????????????????????????????????????????????????????????????z$????????????????????????????????????z~??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????z*??????????????????????????????????????????z^??????????????????????????????????????????????????????????????????????????????????????????????zE?????????????????????????????????????????????????????????????????????z`????????????????????????????????????????????????????????????????????????????????????????????????zK???????????????????????????????????????????????????????????????????????????zU?????????????????????????????????????????????????????????????????????????????????????zw???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zj??????????????????????????????????????????????????????????????????????????????????????????????????????????z6??????????????????????????????????????????????????????z|????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????zv??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\xda\x00c\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\x18\x00\x00\x00g\x00|\x00]\x10}\x01t\x00t\x01|\x01\x83\x01\x83\x01\x91\x02q\x04S\x00\xa9\x00)\x02\xda\x03chr\xda\x03len)\x02\xda\x02.0\xda\x01ir\x02\x00\x00\x00r\x02\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\n<listcomp>\x01\x00\x00\x00s\x04\x00\x00\x00\x06\x00\x02\x00r\x08\x00\x00\x00N)\x03\xda\x04data\xda\x04exec\xda\x04joinr\x02\x00\x00\x00r\x02\x00\x00\x00r\x02\x00\x00\x00r\x07\x00\x00\x00\xda\x08<module>\x01\x00\x00\x00s\xca\x01\x00\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xff\x00\xda\x00)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01)\x03\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x05\x00\x00\x00r\x05\x00\x00\x00\xfa\x0b<Ayu Putri>\xda\x08<module>\x04\x00\x00\x00s\x02\x00\x00\x00\x08\x01'))
| 34,073.857143
| 238,377
| 0.755837
| 48,917
| 238,517
| 3.685304
| 0.026085
| 0.325904
| 0.348919
| 0.348936
| 0.927926
| 0.919123
| 0.9085
| 0.894516
| 0.879101
| 0.859081
| 0
| 0.30499
| 0.002918
| 238,517
| 7
| 238,377
| 34,073.857143
| 0.453034
| 0.000482
| 0
| 0
| 0
| 80.5
| 0.712913
| 0.709586
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 20
|
09c6e7053b39e56e0a08a5fb88d86f76f24a4def
| 68,586
|
py
|
Python
|
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/backup_results_unknownr/cmp_gamess/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.2597,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.406668,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.08607,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.750406,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.29943,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.745261,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.7951,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.575237,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 8.17165,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.205181,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0272028,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.306802,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.201181,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.511983,
'Execution Unit/Register Files/Runtime Dynamic': 0.228384,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.812508,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.81866,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 5.65419,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.0021904,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.0021904,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00191326,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000743624,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00288999,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00918406,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0208075,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.193401,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.477896,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.656876,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 1.35816,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0239248,
'L2/Runtime Dynamic': 0.00598647,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 6.876,
'Load Store Unit/Data Cache/Runtime Dynamic': 2.71773,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.182431,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.182431,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 7.74099,
'Load Store Unit/Runtime Dynamic': 3.79985,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.449844,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.899688,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.159651,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.159918,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0786164,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.8345,
'Memory Management Unit/Runtime Dynamic': 0.238535,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 30.3015,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.71583,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0469854,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.382652,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 1.14547,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 12.2022,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.105427,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.285496,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.428737,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.277772,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.448036,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.226153,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.951962,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.251959,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.15204,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0809977,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.011651,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.129438,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0861663,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.210436,
'Execution Unit/Register Files/Runtime Dynamic': 0.0978173,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.299053,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.676419,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.41707,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00113091,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00113091,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.0010179,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000412026,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00123779,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00451752,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00966854,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0828339,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.26894,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.213533,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.281341,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.74317,
'Instruction Fetch Unit/Runtime Dynamic': 0.591895,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0106468,
'L2/Runtime Dynamic': 0.00289539,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.63709,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.15768,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0776447,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0776447,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.00374,
'Load Store Unit/Runtime Dynamic': 1.61824,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.191459,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.382917,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0679493,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0680613,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.327604,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0351471,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.600437,
'Memory Management Unit/Runtime Dynamic': 0.103208,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 21.0995,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.213068,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0151253,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.139464,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.367657,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 5.10096,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.107816,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.287371,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.45947,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.267826,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.431994,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.218056,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.917877,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.235872,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.16447,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0868037,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0112338,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.126591,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0830811,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.213394,
'Execution Unit/Register Files/Runtime Dynamic': 0.094315,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.293651,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.657767,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.36271,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00103708,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00103708,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000939484,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000383484,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00119347,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00420711,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00865037,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.079868,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.08029,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.19576,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.271268,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.54536,
'Instruction Fetch Unit/Runtime Dynamic': 0.559753,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0109674,
'L2/Runtime Dynamic': 0.00261919,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.58682,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.13232,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0760185,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0760186,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.9458,
'Load Store Unit/Runtime Dynamic': 1.58323,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.187449,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.374898,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0665261,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0666479,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.315874,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0322191,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.586263,
'Memory Management Unit/Runtime Dynamic': 0.098867,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.8423,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.228341,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0148625,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.133799,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.377002,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.98418,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.112566,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.291103,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.49611,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.262377,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.423204,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.213619,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.899201,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.224024,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.19953,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0937258,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0110053,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.12627,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0813907,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.219996,
'Execution Unit/Register Files/Runtime Dynamic': 0.092396,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.294164,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.652688,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.34076,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000933063,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000933063,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000850848,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000350243,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00116918,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00388616,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00758304,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.078243,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.97693,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.180331,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.265748,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.43698,
'Instruction Fetch Unit/Runtime Dynamic': 0.535792,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0107842,
'L2/Runtime Dynamic': 0.00224707,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.55037,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.11373,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0748391,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0748391,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.90377,
'Load Store Unit/Runtime Dynamic': 1.55765,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.18454,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.369081,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.065494,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0656257,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.309447,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0296522,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.578063,
'Memory Management Unit/Runtime Dynamic': 0.0952779,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.7186,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.24655,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0148382,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.130464,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.391852,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.92358,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 0.04640737378344492,
'Runtime Dynamic': 0.04640737378344492,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.0362781,
'Runtime Dynamic': 0.0226978,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 92.9982,
'Peak Power': 126.11,
'Runtime Dynamic': 27.2336,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 92.9619,
'Total Cores/Runtime Dynamic': 27.2109,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.0362781,
'Total L3s/Runtime Dynamic': 0.0226978,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
| 75.039387
| 124
| 0.681976
| 8,082
| 68,586
| 5.78149
| 0.067681
| 0.123614
| 0.112999
| 0.093481
| 0.939327
| 0.931302
| 0.918653
| 0.886573
| 0.861961
| 0.842786
| 0
| 0.131573
| 0.224404
| 68,586
| 914
| 125
| 75.039387
| 0.746818
| 0
| 0
| 0.642232
| 0
| 0
| 0.657632
| 0.048114
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
09cfb48b7d5e827369dac9d2381150f1113bd5d6
| 2,702
|
py
|
Python
|
2019/02/test_interpreter.py
|
cheshyre/advent-of-code
|
2ccc1529bbf8b0deed938d0783deb09dcc8f5e50
|
[
"Unlicense"
] | 1
|
2021-12-03T07:20:23.000Z
|
2021-12-03T07:20:23.000Z
|
2019/02/test_interpreter.py
|
cheshyre/advent-of-code
|
2ccc1529bbf8b0deed938d0783deb09dcc8f5e50
|
[
"Unlicense"
] | null | null | null |
2019/02/test_interpreter.py
|
cheshyre/advent-of-code
|
2ccc1529bbf8b0deed938d0783deb09dcc8f5e50
|
[
"Unlicense"
] | null | null | null |
"""Module to test interpreter."""
import unittest
import interpreter
class InterpreterPart1Test(unittest.TestCase):
"""Class to test interpreter based on examples in Day 2 Part 1."""
def test_program1_command1(self):
"""Test the first command of the first program."""
memory = "1,9,10,3,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 0
_ = interpreter.execute_instruction(memory, cur_instr)
expected_memory = "1,9,10,70,2,3,11,0,99,30,40,50".split(",")
expected_memory = [int(x) for x in expected_memory]
self.assertListEqual(memory, expected_memory)
def test_program1_command1_instr_step(self):
"""Test that first command gives back instruction step 4."""
memory = "1,9,10,3,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 0
instr_step = interpreter.execute_instruction(memory, cur_instr)
self.assertEqual(instr_step, 4)
def test_program1_command2(self):
"""Test the second command of the first program."""
memory = "1,9,10,70,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 4
_ = interpreter.execute_instruction(memory, cur_instr)
expected_memory = "3500,9,10,70,2,3,11,0,99,30,40,50".split(",")
expected_memory = [int(x) for x in expected_memory]
self.assertListEqual(memory, expected_memory)
def test_program1_command2_instr_step(self):
"""Test that second command gives back instruction step 4."""
memory = "1,9,10,70,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 4
instr_step = interpreter.execute_instruction(memory, cur_instr)
self.assertEqual(instr_step, 4)
def test_program1_command3(self):
"""Test the third command of the first program."""
memory = "3500,9,10,70,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 8
_ = interpreter.execute_instruction(memory, cur_instr)
expected_memory = "3500,9,10,70,2,3,11,0,99,30,40,50".split(",")
expected_memory = [int(x) for x in expected_memory]
self.assertListEqual(memory, expected_memory)
def test_program1_command3_instr_step(self):
"""Test that third command gives back instruction step None."""
memory = "3500,9,10,70,2,3,11,0,99,30,40,50".split(",")
memory = [int(x) for x in memory]
cur_instr = 8
instr_step = interpreter.execute_instruction(memory, cur_instr)
self.assertEqual(instr_step, None)
| 34.202532
| 72
| 0.636936
| 399
| 2,702
| 4.170426
| 0.150376
| 0.064904
| 0.100962
| 0.027043
| 0.832332
| 0.775841
| 0.761418
| 0.761418
| 0.730769
| 0.701923
| 0
| 0.098848
| 0.228719
| 2,702
| 78
| 73
| 34.641026
| 0.699616
| 0.145448
| 0
| 0.755556
| 0
| 0.2
| 0.127425
| 0.123457
| 0
| 0
| 0
| 0
| 0.133333
| 1
| 0.133333
| false
| 0
| 0.044444
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
09d473a5eb26d5685ec84dc4d3aebff03b2c9bc9
| 168
|
py
|
Python
|
tests/test_sample.py
|
emfloyd2/python-project-template
|
6ab96f74ef50b38806c003cd88dcafd3da40a142
|
[
"MIT"
] | null | null | null |
tests/test_sample.py
|
emfloyd2/python-project-template
|
6ab96f74ef50b38806c003cd88dcafd3da40a142
|
[
"MIT"
] | null | null | null |
tests/test_sample.py
|
emfloyd2/python-project-template
|
6ab96f74ef50b38806c003cd88dcafd3da40a142
|
[
"MIT"
] | null | null | null |
import pytest
import sample
@pytest.fixture
def dummy_value():
return 1
def test_some_function(dummy_value):
assert sample.some_function() == dummy_value
| 12
| 48
| 0.75
| 23
| 168
| 5.217391
| 0.565217
| 0.25
| 0.283333
| 0.366667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007194
| 0.172619
| 168
| 13
| 49
| 12.923077
| 0.856115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 1
| 0.285714
| false
| 0
| 0.285714
| 0.142857
| 0.714286
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
1139291a7e02ff22e5eb3bbdc1c392b89d770966
| 601
|
py
|
Python
|
library/tests/test_dimensions.py
|
rickyphewitt/st7789-python
|
5c16baecb8844b1807da221b40d03dec500b3a9e
|
[
"MIT"
] | 118
|
2019-11-26T19:44:01.000Z
|
2022-03-28T15:24:53.000Z
|
library/tests/test_dimensions.py
|
rickyphewitt/st7789-python
|
5c16baecb8844b1807da221b40d03dec500b3a9e
|
[
"MIT"
] | 18
|
2019-10-30T14:43:20.000Z
|
2022-02-15T23:46:26.000Z
|
library/tests/test_dimensions.py
|
rickyphewitt/st7789-python
|
5c16baecb8844b1807da221b40d03dec500b3a9e
|
[
"MIT"
] | 48
|
2020-01-31T16:17:47.000Z
|
2022-03-26T19:38:14.000Z
|
def test_240_240(GPIO, spidev):
import ST7789
display = ST7789.ST7789(port=0, cs=0, dc=24, width=240, height=240, rotation=0)
assert display.width == 240
assert display.height == 240
def test_240_135(GPIO, spidev):
import ST7789
display = ST7789.ST7789(port=0, cs=0, dc=24, width=240, height=135, rotation=0)
assert display.width == 240
assert display.height == 135
def test_320_240(GPIO, spidev):
import ST7789
display = ST7789.ST7789(port=0, cs=0, dc=24, width=320, height=240, rotation=0)
assert display.width == 320
assert display.height == 240
| 30.05
| 83
| 0.68386
| 93
| 601
| 4.354839
| 0.204301
| 0.192593
| 0.118519
| 0.162963
| 0.82716
| 0.82716
| 0.82716
| 0.730864
| 0.730864
| 0.488889
| 0
| 0.216049
| 0.191348
| 601
| 19
| 84
| 31.631579
| 0.617284
| 0
| 0
| 0.466667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.2
| false
| 0
| 0.2
| 0
| 0.4
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3a215566fbbf76d2c7abcaffe67f37542e7d0c84
| 86
|
py
|
Python
|
transformations/resize.py
|
1mplex/segmentation_image_augmentation
|
bd93c1589078247c0c7aff8556afc16a7e15be39
|
[
"MIT"
] | 15
|
2020-07-21T08:57:38.000Z
|
2022-01-24T21:59:10.000Z
|
transformations/resize.py
|
el-lilya/segmentation_image_augmentation
|
c16604274a220e00a6fbc4d653ab9c90276a8eba
|
[
"MIT"
] | 1
|
2021-02-15T21:24:11.000Z
|
2021-02-15T21:24:11.000Z
|
transformations/resize.py
|
el-lilya/segmentation_image_augmentation
|
c16604274a220e00a6fbc4d653ab9c90276a8eba
|
[
"MIT"
] | 9
|
2021-07-01T02:42:22.000Z
|
2022-01-24T21:59:12.000Z
|
import cv2
def resize(img, shape):
return cv2.resize(img, (shape[1], shape[0]))
| 14.333333
| 48
| 0.651163
| 14
| 86
| 4
| 0.642857
| 0.321429
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.056338
| 0.174419
| 86
| 5
| 49
| 17.2
| 0.732394
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 7
|
e905c392a6c5f12f411050efedf3003acabd49db
| 146
|
py
|
Python
|
quests/professions/fishing.py
|
0rtis/dfk
|
4c85ccc1e78f4d6fd1bb0915024af56ec4529382
|
[
"MIT"
] | 90
|
2021-10-17T19:36:45.000Z
|
2022-03-31T17:19:43.000Z
|
quests/professions/fishing.py
|
neelfirst/dfk
|
52f9c5288a0637f507cb3e42b680c13f776ac4c0
|
[
"MIT"
] | 13
|
2021-11-13T00:19:31.000Z
|
2022-03-20T15:13:22.000Z
|
quests/professions/fishing.py
|
neelfirst/dfk
|
52f9c5288a0637f507cb3e42b680c13f776ac4c0
|
[
"MIT"
] | 71
|
2021-11-05T03:00:41.000Z
|
2022-03-30T06:16:25.000Z
|
QUEST_CONTRACT_ADDRESS_V1 = '0xE259e8386d38467f0E7fFEdB69c3c9C935dfaeFc'
QUEST_CONTRACT_ADDRESS_V2 = '0xADFFD2A255B3792873a986895c6312e8FbacFc8B'
| 48.666667
| 72
| 0.917808
| 10
| 146
| 12.8
| 0.7
| 0.203125
| 0.3125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.342857
| 0.041096
| 146
| 2
| 73
| 73
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0.575342
| 0.575342
| 0
| 0
| 0.575342
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
3acbc54b08a74daefa834fd0c99f8ba75b9ae6e2
| 4,745
|
py
|
Python
|
tests/parser/bug.46.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/bug.46.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/bug.46.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
% Reported by Axel Polleres to trigger a bug with -OR.
true.
%actiontime(T) :- T < #maxint, #int(T).
location(t) :- true.
location(B) :- block(B).
% blocksC2.dl without free variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Blocks world domain description in C
% Elementary Actions: move(B,L) for all blocks B and locations L
% Fluents: on(B,L) for all blocks B and locations L
% effect of moving a block
% move(B,L) causes on(B,L) (for all blocks B and locations L)
on(B,L,T1) :- move(B,L,T).%, #succ(T,T1).
% move(B,L) causes -on(B,L1) if on(B,L1)
-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).
% a block can be moved only when it's clear
% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)
% :- move(B,L,T), on(B1,B,T).
% pushed into guess
% any two blocks cannot be on the same block at the same time.
% that means a block cannot be moved to an occupied block:
% nonexecutable move(B,B1) if on(B2,B1) & block(B1)
% :- move(B,B1,T), on(B2,B1,T), block(B1).
% pushed into guess using the following auxiliary predicate:
onblock(B,T) :- on(_,B,T), block(B).
% wherever a block is, it's not anywhere else
% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1
% where -(L=L1)) (2)
% assuming a complete initial description this can be skipped !!!
% a block is never on top of itself
% that means it cannot be moved on top of itself:
% nonexecutable move(B,B).
% :- move(B,B,T).
% pushed into guess.
% no concurrency
% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)
move1(B,T) :- move(B,_,T).
move2(L,T) :- move(_,L,T).
:- move1(B,T), move1(B1,T), B!=B1.
% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)
:- move2(L,T), move2(L1,T), L!=L1.
% inertia
% inertial on
on(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
move(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),
not onblock(L,T), not onblock(B,T), B!=L.
block(b1).
block(b2).
block(b3).
block(b4).
block(b5).
on(b5,t,0) :- true.
on(b3,t,0) :- true.
on(b2,b5,0) :- true.
on(b4,b3,0) :- true.
on(b1,b4,0) :- true.
%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?
on(b5,b4)?
"""
output = """
% Reported by Axel Polleres to trigger a bug with -OR.
true.
%actiontime(T) :- T < #maxint, #int(T).
location(t) :- true.
location(B) :- block(B).
% blocksC2.dl without free variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Blocks world domain description in C
% Elementary Actions: move(B,L) for all blocks B and locations L
% Fluents: on(B,L) for all blocks B and locations L
% effect of moving a block
% move(B,L) causes on(B,L) (for all blocks B and locations L)
on(B,L,T1) :- move(B,L,T).%, #succ(T,T1).
% move(B,L) causes -on(B,L1) if on(B,L1)
-on(B,L,T1) :- move1(B,T), on(B,L,T).%, #succ(T,T1).
% a block can be moved only when it's clear
% nonexecutable move(B,L) if on(B1,B) (for all blocks B,B1 and locations L)
% :- move(B,L,T), on(B1,B,T).
% pushed into guess
% any two blocks cannot be on the same block at the same time.
% that means a block cannot be moved to an occupied block:
% nonexecutable move(B,B1) if on(B2,B1) & block(B1)
% :- move(B,B1,T), on(B2,B1,T), block(B1).
% pushed into guess using the following auxiliary predicate:
onblock(B,T) :- on(_,B,T), block(B).
% wherever a block is, it's not anywhere else
% caused -on(B,L1) if on(B,L) (for all blocks B, and locations L,L1
% where -(L=L1)) (2)
% assuming a complete initial description this can be skipped !!!
% a block is never on top of itself
% that means it cannot be moved on top of itself:
% nonexecutable move(B,B).
% :- move(B,B,T).
% pushed into guess.
% no concurrency
% nonexecutable (move(B,L), move(B1,L1)) if (B!=B1)
move1(B,T) :- move(B,_,T).
move2(L,T) :- move(_,L,T).
:- move1(B,T), move1(B1,T), B!=B1.
% nonexecutable (move(B,L), move(B1,L1)) if (L!=L1)
:- move2(L,T), move2(L1,T), L!=L1.
% inertia
% inertial on
on(B,L,T1) :- on(B,L,T), not -on(B,L,T1).%, #succ(T,T1).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
move(B,L,T) | -move(B,L,T) :- block(B), location(L), actiontime(T),
not onblock(L,T), not onblock(B,T), B!=L.
block(b1).
block(b2).
block(b3).
block(b4).
block(b5).
on(b5,t,0) :- true.
on(b3,t,0) :- true.
on(b2,b5,0) :- true.
on(b4,b3,0) :- true.
on(b1,b4,0) :- true.
%on(b1,t,#maxint),on(b2,b1,#maxint), on(b3,b2,#maxint),on(b4,b3,#maxint), on(b5,b4,#maxint)?
on(b5,b4)?
"""
| 28.076923
| 92
| 0.572603
| 858
| 4,745
| 3.159674
| 0.122378
| 0.029509
| 0.044264
| 0.047953
| 0.995942
| 0.995942
| 0.995942
| 0.995942
| 0.995942
| 0.995942
| 0
| 0.036721
| 0.185037
| 4,745
| 168
| 93
| 28.244048
| 0.664339
| 0
| 0
| 0.983607
| 0
| 0.196721
| 0.993467
| 0.085985
| 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
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c92b092a43e9d0806f5332f51ab131ad38326d1f
| 3,137
|
py
|
Python
|
app_test.py
|
amir734jj/ping-pong-reservation-app
|
de32215f6829e8a23d19a471ab82e03659cd38da
|
[
"MIT"
] | 1
|
2018-04-22T05:01:12.000Z
|
2018-04-22T05:01:12.000Z
|
app_test.py
|
amir734jj/ping-pong-reservation-app
|
de32215f6829e8a23d19a471ab82e03659cd38da
|
[
"MIT"
] | null | null | null |
app_test.py
|
amir734jj/ping-pong-reservation-app
|
de32215f6829e8a23d19a471ab82e03659cd38da
|
[
"MIT"
] | null | null | null |
import unittest, datetime
from app import User, validate_start_end_time
class UserTest(unittest.TestCase):
def test_validate_start_end_time_equal_false(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=1)
_users = [User("", str(start_time), str(end_time))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertFalse(result)
def test_validate_start_end_time_basic_before_true(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=1)
_users = [User("", str(start_time - datetime.timedelta(days=10)), str(end_time - datetime.timedelta(days=10)))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertTrue(result)
def test_validate_start_end_time_basic_after_true(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=1)
_users = [User("", str(start_time + datetime.timedelta(days=10)), str(end_time + datetime.timedelta(days=10)))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertTrue(result)
def test_validate_start_end_time_case1(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=2)
_users = [User("", str(start_time - datetime.timedelta(days=1)), str(end_time + datetime.timedelta(days=2)))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertFalse(result)
def test_validate_start_end_time_case1_reverse(self):
# Arrange
s1 = datetime.datetime.now()
e1 = s1 + datetime.timedelta(days=2)
s2 = s1 - datetime.timedelta(days=1)
e2 = e1 + datetime.timedelta(days=2)
_users = [User("", str(s1), str(e1))]
# Act
result = validate_start_end_time(s2, e2, 12, users=_users)
# Assert
self.assertFalse(result)
def test_validate_start_end_time_case2(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=10)
_users = [User("", str(start_time + datetime.timedelta(days=1)), str(end_time + datetime.timedelta(days=2)))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertFalse(result)
def test_validate_start_end_time_case3(self):
# Arrange
start_time = datetime.datetime.now()
end_time = start_time + datetime.timedelta(days=5)
_users = [User("", str(start_time + datetime.timedelta(days=1)), str(end_time + datetime.timedelta(days=2)))]
# Act
result = validate_start_end_time(start_time, end_time, 12, users=_users)
# Assert
self.assertFalse(result)
| 34.855556
| 119
| 0.650303
| 395
| 3,137
| 4.858228
| 0.116456
| 0.120375
| 0.207921
| 0.208442
| 0.877019
| 0.877019
| 0.846795
| 0.828557
| 0.818134
| 0.818134
| 0
| 0.022194
| 0.238763
| 3,137
| 90
| 120
| 34.855556
| 0.781407
| 0.042078
| 0
| 0.510638
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 1
| 0.148936
| false
| 0
| 0.042553
| 0
| 0.212766
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 8
|
c931e71b77d7ce1c2b8accfbcb757028184b06c5
| 39
|
py
|
Python
|
src/lib/Bastion.py
|
DTenore/skulpt
|
098d20acfb088d6db85535132c324b7ac2f2d212
|
[
"MIT"
] | 2,671
|
2015-01-03T08:23:25.000Z
|
2022-03-31T06:15:48.000Z
|
src/lib/Bastion.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 972
|
2015-01-05T08:11:00.000Z
|
2022-03-29T13:47:15.000Z
|
src/lib/Bastion.py
|
wakeupmuyunhe/skulpt
|
a8fb11a80fb6d7c016bab5dfe3712517a350b347
|
[
"MIT"
] | 845
|
2015-01-03T19:53:36.000Z
|
2022-03-29T18:34:22.000Z
|
import _sk_fail; _sk_fail._("Bastion")
| 19.5
| 38
| 0.769231
| 6
| 39
| 4.166667
| 0.666667
| 0.48
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 39
| 1
| 39
| 39
| 0.694444
| 0
| 0
| 0
| 0
| 0
| 0.179487
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 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
| 1
| 0
|
0
| 7
|
c96dcd75a62a72db7e9ccc81fe9cea2ff1b23b25
| 83,769
|
py
|
Python
|
tests/brainload/test_freesurferdata.py
|
dfsp-spirit/cogload
|
ff9d19803c2e0c9aea248a45380959c2758ba83a
|
[
"MIT"
] | 8
|
2018-11-11T11:41:19.000Z
|
2022-02-09T10:50:34.000Z
|
tests/brainload/test_freesurferdata.py
|
dfsp-spirit/cogload
|
ff9d19803c2e0c9aea248a45380959c2758ba83a
|
[
"MIT"
] | 8
|
2018-11-05T10:11:09.000Z
|
2019-11-05T20:34:19.000Z
|
tests/brainload/test_freesurferdata.py
|
dfsp-spirit/cogload
|
ff9d19803c2e0c9aea248a45380959c2758ba83a
|
[
"MIT"
] | 1
|
2020-07-20T06:43:57.000Z
|
2020-07-20T06:43:57.000Z
|
import os
import pytest
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
import brainload as bl
import brainload.freesurferdata as fsd
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_DATA_DIR = os.path.join(THIS_DIR, os.pardir, 'test_data')
# Respect the environment variable BRAINLOAD_TEST_DATA_DIR if it is set. If not, fall back to default.
TEST_DATA_DIR = os.getenv('BRAINLOAD_TEST_DATA_DIR', TEST_DATA_DIR)
FSAVERAGE_NUM_VERTS_PER_HEMISPHERE = 163842 # number of vertices of the 'fsaverage' subject from FreeSurfer 6.0
FSAVERAGE_NUM_FACES_PER_HEMISPHERE = 327680
SUBJECT1_SURF_LH_WHITE_NUM_VERTICES = 149244 # this number is quite arbitrary: the number of vertices is specific for this subject and surface.
SUBJECT1_SURF_LH_WHITE_NUM_FACES = 298484 # this number is quite arbitrary: the number of faces is specific for this subject and surface.
SUBJECT1_SURF_RH_WHITE_NUM_VERTICES = 153333 # this number is quite arbitrary: the number of vertices is specific for this subject and surface.
SUBJECT1_SURF_RH_WHITE_NUM_FACES = 306662 # this number is quite arbitrary: the number of faces is specific for this subject and surface.
def test_get_morphometry_data_suffix_for_surface_with_surf_white():
suffix = fsd._get_morphometry_data_suffix_for_surface('white')
assert suffix == ''
def test_get_morphometry_data_suffix_for_surface_with_surf_other():
suffix = fsd._get_morphometry_data_suffix_for_surface('pial')
assert suffix == '.pial'
def test_read_mgh_file_with_valid_fsaverage_file():
mgh_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
mgh_data, mgh_meta_data = fsd.read_mgh_file(mgh_file)
assert mgh_meta_data['data_bytespervox'] == 4
assert len(mgh_meta_data) == 13
assert mgh_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1, 1)
def test_merge_meshes():
m1_vertex_coords = np.array([[0, 0, 0], [5, -5, 0], [5, 5, 0], [10, 5, 0]])
m1_faces = np.array([[0, 1, 2], [1, 2, 3]])
m2_vertex_coords = np.array([[0, 0, 0], [10, -10, 0], [10, 10, 0], [15, 10, 0]])
m2_faces = np.array([[0, 2, 1], [1, 3, 2]])
merged_verts, merged_faces = fsd._merge_meshes(np.array([[m1_vertex_coords, m1_faces], [m2_vertex_coords, m2_faces]]))
assert merged_verts.shape == (8, 3)
assert merged_faces.shape == (4, 3)
# test vertices
assert_allclose(np.array([0, 0, 0]), merged_verts[0])
assert_allclose(np.array([5, -5, 0]), merged_verts[1])
assert_allclose(np.array([0, 0, 0]), merged_verts[4])
assert_allclose(np.array([10, -10, 0]), merged_verts[5])
# test faces without vertex index shift
assert_allclose(np.array([0, 1, 2]), merged_faces[0])
assert_allclose(np.array([1, 2, 3]), merged_faces[1])
# test faces WITH vertex index shift (shift should be +4 because m1 has 4 vertices)
assert_allclose(np.array([4, 6, 5]), merged_faces[2])
assert_allclose(np.array([5, 7, 6]), merged_faces[3])
def test_merge_morphometry_data():
morph_data1 = np.array([0.0, 0.1, 0.2, 0.3])
morph_data2 = np.array([0.4])
morph_data3 = np.array([0.5, 0.6])
merged_data = fsd.merge_morphometry_data(np.array([morph_data1, morph_data2, morph_data3]))
assert merged_data.shape == (7,)
assert merged_data[0] == pytest.approx(0.0, 0.0001)
assert merged_data[4] == pytest.approx(0.4, 0.0001)
assert merged_data[6] == pytest.approx(0.6, 0.0001)
def test_read_fs_surface_file_and_record_meta_data_without_existing_metadata():
surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
vert_coords, faces, meta_data = fsd.read_fs_surface_file_and_record_meta_data(surf_file, 'lh')
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == surf_file
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES, 3)
assert len(meta_data) == 3
def test_read_fs_surface_file_and_record_meta_data_with_existing_metadata():
surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
vert_coords, faces, meta_data = fsd.read_fs_surface_file_and_record_meta_data(surf_file, 'lh', meta_data={'this_boy': 'still_exists'})
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES, 3)
assert len(meta_data) == 4
assert meta_data['this_boy'] == 'still_exists'
def test_read_fs_surface_file_and_record_meta_data_raises_on_wrong_hemisphere_value():
surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
with pytest.raises(ValueError) as exc_info:
vert_coords, faces, meta_data = fsd.read_fs_surface_file_and_record_meta_data(surf_file, 'invalid_hemisphere')
assert 'hemisphere_label must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_read_fs_morphometry_data_file_and_record_meta_data_with_subj1_curv_file_without_existing_metadata():
morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
per_vertex_data, meta_data = fsd.read_fs_morphometry_data_file_and_record_meta_data(morphometry_file, 'lh')
assert len(meta_data) == 3
assert meta_data['lh.morphometry_file'] == morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert per_vertex_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
def test_read_fs_morphometry_data_file_and_record_meta_data_with_subj1_curv_file_with_existing_metadata():
morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
per_vertex_data, meta_data = fsd.read_fs_morphometry_data_file_and_record_meta_data(morphometry_file, 'lh', meta_data={'this_boy': 'still_exists'})
assert len(meta_data) == 4
assert meta_data['this_boy'] == 'still_exists'
assert per_vertex_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
def test_read_fs_morphometry_data_file_and_record_meta_data_with_fsavg_mgh_file_with_existing_metadata():
morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fsaverage.mgh')
per_vertex_data, meta_data = fsd.read_fs_morphometry_data_file_and_record_meta_data(morphometry_file, 'lh', format='mgh', meta_data={'this_boy': 'still_exists'})
assert len(meta_data) == 4
assert meta_data['this_boy'] == 'still_exists'
assert meta_data['lh.morphometry_file'] == morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['lh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert per_vertex_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
def test_read_fs_morphometry_data_file_and_record_meta_data_raises_on_wrong_hemisphere_value():
morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
with pytest.raises(ValueError) as exc_info:
per_vertex_data, meta_data = fsd.read_fs_morphometry_data_file_and_record_meta_data(morphometry_file, 'invalid_hemisphere')
assert 'hemisphere_label must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_read_fs_morphometry_data_file_and_record_meta_data_raises_on_wrong_format_value():
morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
with pytest.raises(ValueError) as exc_info:
per_vertex_data, meta_data = fsd.read_fs_morphometry_data_file_and_record_meta_data(morphometry_file, 'lh', format='invalid_format')
assert 'format must be one of' in str(exc_info.value)
assert 'invalid_format' in str(exc_info.value)
def test_load_subject_mesh_files_raises_on_invalid_hemi():
lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
with pytest.raises(ValueError) as exc_info:
vert_coords, faces, meta_data = fsd.load_subject_mesh_files(lh_surf_file, rh_surf_file, hemi='invalid_hemisphere')
assert 'hemi must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_load_subject_mesh_files():
lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
vert_coords, faces, meta_data = fsd.load_subject_mesh_files(lh_surf_file, rh_surf_file)
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == lh_surf_file
assert meta_data['rh.num_vertices'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['rh.num_faces'] == SUBJECT1_SURF_RH_WHITE_NUM_FACES
assert meta_data['rh.surf_file'] == rh_surf_file
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert len(meta_data) == 6
def test_load_subject_mesh_files_preserves_existing_meta_data():
lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
vert_coords, faces, meta_data = fsd.load_subject_mesh_files(lh_surf_file, rh_surf_file, hemi='both', meta_data={'this_boy': 'still_exists'})
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert meta_data['this_boy'] == 'still_exists'
assert len(meta_data) == 7
def test_load_subject_mesh_files_works_with_left_hemisphere_only():
lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
vert_coords, faces, meta_data = fsd.load_subject_mesh_files(lh_surf_file, None, hemi='lh')
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == lh_surf_file
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES, 3)
assert len(meta_data) == 3
def test_load_subject_mesh_files_works_with_right_hemisphere_only():
rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
vert_coords, faces, meta_data = fsd.load_subject_mesh_files(None, rh_surf_file, hemi='rh')
assert meta_data['rh.num_vertices'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['rh.num_faces'] == SUBJECT1_SURF_RH_WHITE_NUM_FACES
assert meta_data['rh.surf_file'] == rh_surf_file
assert vert_coords.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert len(meta_data) == 3
def test_load_subject_morphometry_data_files():
lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files(lh_morphometry_file, rh_morphometry_file)
assert meta_data['lh.morphometry_file'] == lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['rh.morphometry_file'] == rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'curv'
assert meta_data['rh.num_data_points'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert len(meta_data) == 6
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_load_subject_morphometry_data_files_preserves_existing_meta_data():
lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files(lh_morphometry_file, rh_morphometry_file, meta_data={'this_boy': 'still_exists'})
assert meta_data['this_boy'] == 'still_exists'
assert len(meta_data) == 7
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_load_subject_morphometry_data_files_works_with_left_hemisphere_only():
lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files(lh_morphometry_file, None, hemi='lh')
assert meta_data['lh.morphometry_file'] == lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['rh.num_data_points'] == 0
assert len(meta_data) == 4
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
def test_load_subject_morphometry_data_files_works_with_right_hemisphere_only():
rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files(None, rh_morphometry_file, hemi='rh')
assert meta_data['rh.morphometry_file'] == rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'curv'
assert meta_data['rh.num_data_points'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['lh.num_data_points'] == 0
assert len(meta_data) == 4
assert morphometry_data.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_load_subject_morphometry_data_files_raises_on_invalid_format():
with pytest.raises(ValueError) as exc_info:
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files('some_file', 'some_other_file', format='invalid_format')
assert 'format must be one of' in str(exc_info.value)
assert 'invalid_format' in str(exc_info.value)
def test_load_subject_morphometry_data_files_raises_on_invalid_hemisphere():
with pytest.raises(ValueError) as exc_info:
morphometry_data, meta_data = fsd.load_subject_morphometry_data_files('some_file', 'some_other_file', hemi='invalid_hemisphere')
assert 'hemi must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_parse_subject():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR)
assert len(meta_data) == 20
expected_subjects_dir = TEST_DATA_DIR
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['rh.num_vertices'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['rh.num_faces'] == SUBJECT1_SURF_RH_WHITE_NUM_FACES
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'curv'
assert meta_data['rh.num_data_points'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['subject_id'] == 'subject1'
assert meta_data['display_subject'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['display_surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'native_space'
assert meta_data['hemi'] == 'both'
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_parse_subject_preserves_existing_meta_data():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, meta_data={'this_boy': 'still_exists'})
assert len(meta_data) == 21
assert meta_data['this_boy'] == 'still_exists'
def test_parse_subject_raises_on_invalid_hemisphere():
with pytest.raises(ValueError) as exc_info:
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='invalid_hemisphere')
assert 'hemi must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_parse_subject_works_with_left_hemisphere_only():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='lh')
assert len(meta_data) == 15
expected_subjects_dir = TEST_DATA_DIR
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['rh.num_data_points'] == 0
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'native_space'
assert meta_data['hemi'] == 'lh'
assert meta_data['display_subject'] == 'subject1'
assert meta_data['display_surf'] == 'white'
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES, 3)
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
def test_parse_subject_works_with_single_hemispheres_data_correct():
lh_vert_coords, lh_faces, lh_morphometry_data, lh_meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='lh')
rh_vert_coords, rh_faces, rh_morphometry_data, rh_meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='rh')
both_vert_coords, both_faces, both_morphometry_data, both_meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='both')
assert lh_vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, 3)
assert lh_faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES, 3)
assert lh_morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
assert rh_vert_coords.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert rh_faces.shape == (SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert rh_morphometry_data.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
assert both_vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert both_faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert both_morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
# Test vertices (i.e., their consistency between both, lh and rh data)
for vert_idx in range(5000, 5100):
assert lh_vert_coords[vert_idx][0] == pytest.approx(both_vert_coords[vert_idx][0], 0.01) # x coord
assert lh_vert_coords[vert_idx][1] == pytest.approx(both_vert_coords[vert_idx][1], 0.01) # y coord
assert lh_vert_coords[vert_idx][2] == pytest.approx(both_vert_coords[vert_idx][2], 0.01) # z coord
rh_vertex_offset = SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
for vert_idx in range(5000, 5100):
assert rh_vert_coords[vert_idx][0] == pytest.approx(both_vert_coords[vert_idx + rh_vertex_offset][0], 0.01)
assert rh_vert_coords[vert_idx][1] == pytest.approx(both_vert_coords[vert_idx + rh_vertex_offset][1], 0.01)
assert rh_vert_coords[vert_idx][2] == pytest.approx(both_vert_coords[vert_idx + rh_vertex_offset][2], 0.01)
# Test faces (i.e., their consistency between both, lh and rh data)
for face_idx in range(5000, 5100):
assert lh_faces[face_idx][0] == both_faces[face_idx][0] # first vertex index of 3-face. Theses are integers, so no need for approx.
assert lh_faces[face_idx][1] == both_faces[face_idx][1] # second vertex index of 3-face
assert lh_faces[face_idx][2] == both_faces[face_idx][2] # third vertex index of 3-face
rh_face_offset = SUBJECT1_SURF_LH_WHITE_NUM_FACES
for face_idx in range(5000, 5100):
assert rh_faces[face_idx][0]+SUBJECT1_SURF_LH_WHITE_NUM_VERTICES == both_faces[face_idx + rh_face_offset][0]
assert rh_faces[face_idx][1]+SUBJECT1_SURF_LH_WHITE_NUM_VERTICES == both_faces[face_idx + rh_face_offset][1]
assert rh_faces[face_idx][2]+SUBJECT1_SURF_LH_WHITE_NUM_VERTICES == both_faces[face_idx + rh_face_offset][2]
# Test morphometry data (i.e., their consistency between both, lh and rh data)
for vert_data_idx in range(5000, 5100):
assert lh_morphometry_data[vert_data_idx] == pytest.approx(both_morphometry_data[vert_data_idx], 0.01)
rh_data_offset = SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
for vert_data_idx in range(5000, 5100):
assert rh_morphometry_data[vert_data_idx] == both_morphometry_data[vert_data_idx + rh_data_offset]
def test_parse_subject_works_with_right_hemisphere_only():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, hemi='rh')
assert len(meta_data) == 15
expected_subjects_dir = TEST_DATA_DIR
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
assert meta_data['rh.num_vertices'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['rh.num_faces'] == SUBJECT1_SURF_RH_WHITE_NUM_FACES
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'curv'
assert meta_data['rh.num_data_points'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['lh.num_data_points'] == 0
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'native_space'
assert meta_data['hemi'] == 'rh'
assert meta_data['display_subject'] == 'subject1'
assert meta_data['display_surf'] == 'white'
assert vert_coords.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert morphometry_data.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_parse_subject_does_not_load_surface_when_asked_not_to():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, load_surface_files=False)
assert len(meta_data) == 14
expected_subjects_dir = TEST_DATA_DIR
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area')
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'curv'
assert meta_data['lh.num_data_points'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'curv'
assert meta_data['rh.num_data_points'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'native_space'
assert meta_data['hemi'] == 'both'
assert meta_data['display_subject'] is None
assert meta_data['display_surf'] is None
assert vert_coords == None
assert faces == None
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
def test_parse_subject_does_not_load_morphometry_data_when_asked_not_to():
vert_coords, faces, morphometry_data, meta_data = bl.subject('subject1', subjects_dir=TEST_DATA_DIR, load_morphometry_data=False)
assert len(meta_data) == 14
expected_subjects_dir = TEST_DATA_DIR
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.white')
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.white')
assert meta_data['lh.num_vertices'] == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES
assert meta_data['lh.num_faces'] == SUBJECT1_SURF_LH_WHITE_NUM_FACES
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['rh.num_vertices'] == SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
assert meta_data['rh.num_faces'] == SUBJECT1_SURF_RH_WHITE_NUM_FACES
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == None
assert meta_data['space'] == 'native_space'
assert meta_data['hemi'] == 'both'
assert meta_data['display_subject'] == 'subject1'
assert meta_data['display_surf'] == 'white'
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
assert morphometry_data is None
def test_parse_subject_standard_space_data():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR)
assert len(meta_data) == 24
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'lh.white')
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'rh.white')
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
assert meta_data['lh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['lh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['rh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['lh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'mgh'
assert meta_data['rh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['average_subject'] == 'fsaverage'
assert meta_data['average_subjects_dir'] == expected_subjects_dir
assert meta_data['display_surf'] == 'white'
assert meta_data['display_subject'] == 'fsaverage'
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'standard_space'
assert meta_data['hemi'] == 'both'
assert meta_data['fwhm'] == '10'
assert vert_coords.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, 3)
assert faces.shape == (FSAVERAGE_NUM_FACES_PER_HEMISPHERE * 2, 3)
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, )
def test_parse_subject_standard_space_data_raises_on_invalid_hemisphere():
with pytest.raises(ValueError) as exc_info:
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, hemi='invalid_hemisphere')
assert 'hemi must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_parse_subject_standard_space_data_works_with_left_hemisphere_only():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, hemi='lh')
assert len(meta_data) == 19
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'lh.white')
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
assert meta_data['lh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['lh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['lh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'standard_space'
assert meta_data['hemi'] == 'lh'
assert meta_data['fwhm'] == '10'
assert vert_coords.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 3)
assert faces.shape == (FSAVERAGE_NUM_FACES_PER_HEMISPHERE, 3)
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
def test_parse_subject_standard_space_data_works_with_right_hemisphere_only():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, hemi='rh')
assert len(meta_data) == 19
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'rh.white')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
assert meta_data['rh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'mgh'
assert meta_data['rh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['subject_id'] == 'subject1'
assert meta_data['subjects_dir'] == expected_subjects_dir
assert meta_data['surf'] == 'white'
assert meta_data['measure'] == 'area'
assert meta_data['space'] == 'standard_space'
assert meta_data['hemi'] == 'rh'
assert vert_coords.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 3)
assert faces.shape == (FSAVERAGE_NUM_FACES_PER_HEMISPHERE, 3)
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
def test_parse_subject_standard_space_data_respects_fwhm_setting_none():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, fwhm=None)
assert len(meta_data) == 24
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fsaverage.mgh') # No 'fhwmX' in here!
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['lh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'mgh'
assert meta_data['rh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['fwhm'] == None
assert vert_coords.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, 3)
assert faces.shape == (FSAVERAGE_NUM_FACES_PER_HEMISPHERE * 2, 3)
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, )
def test_parse_subject_standard_space_data_does_not_load_surface_when_asked_not_to():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, load_surface_files=False)
assert len(meta_data) == 18
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['lh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'mgh'
assert meta_data['rh.num_data_points'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['display_subject'] is None
assert meta_data['display_surf'] is None
assert meta_data['measure'] == 'area'
assert meta_data['custom_morphometry_files_used'] == False
assert vert_coords is None
assert faces is None
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, )
def test_parse_subject_standard_space_data_does_not_load_morphometry_data_when_asked_not_to():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, load_morphometry_data=False)
assert len(meta_data) == 17
expected_lh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'lh.white')
expected_rh_surf_file = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf', 'rh.white')
assert meta_data['lh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['lh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['lh.surf_file'] == expected_lh_surf_file
assert meta_data['rh.num_vertices'] == FSAVERAGE_NUM_VERTS_PER_HEMISPHERE
assert meta_data['rh.num_faces'] == FSAVERAGE_NUM_FACES_PER_HEMISPHERE
assert meta_data['rh.surf_file'] == expected_rh_surf_file
assert meta_data['display_subject'] == 'fsaverage'
assert meta_data['display_surf'] == 'white'
assert meta_data['measure'] is None
assert vert_coords.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, 3)
assert faces.shape == (FSAVERAGE_NUM_FACES_PER_HEMISPHERE * 2, 3)
assert morphometry_data is None
def test_parse_subject_standard_space_data_accepts_custom_morphometry_files():
expected_subjects_dir = TEST_DATA_DIR
expected_fsaverage_surf_dir = os.path.join(TEST_DATA_DIR, 'fsaverage', 'surf')
if not os.path.isdir(expected_fsaverage_surf_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_surf_dir)
custom_morphometry_files = { 'lh': 'lh.area.fsaverage.mgh', 'rh': 'rh.area.fsaverage.mgh' } # You could access these files without the custom_morphometry_files argument (by setting fwhm to None explicitely), but using this custom name is convenient because we already have test data named like this.
vert_coords, faces, morphometry_data, meta_data = bl.subject_avg('subject1', subjects_dir=TEST_DATA_DIR, custom_morphometry_files=custom_morphometry_files)
assert len(meta_data) == 24
expected_lh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fsaverage.mgh')
expected_rh_morphometry_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
assert meta_data['lh.morphometry_file'] == expected_lh_morphometry_file
assert meta_data['lh.morphometry_file_format'] == 'mgh'
assert meta_data['rh.morphometry_file'] == expected_rh_morphometry_file
assert meta_data['rh.morphometry_file_format'] == 'mgh'
assert meta_data['custom_morphometry_files_used'] == True
def test_load_group_data():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_lh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_subjects_file = os.path.join(TEST_DATA_DIR, 'subjects.txt')
assert group_data.shape == (5, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(run_meta_data) == 5
assert run_meta_data['custom_morphometry_file_templates_used'] == False
assert run_meta_data['subjects_file_used'] == True
assert run_meta_data['subjects_file'] == expected_subjects_file
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'file'
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data['subject1']) == 18
assert group_meta_data['subject1']['lh.morphometry_file'] == expected_lh_morphometry_file_subject1
assert group_meta_data['subject1']['rh.morphometry_file'] == expected_rh_morphometry_file_subject1
assert group_meta_data['subject1']['display_subject'] is None
assert group_meta_data['subject1']['display_surf'] is None
assert group_meta_data['subject1']['measure'] == 'area'
assert len(group_meta_data['subject5']) == 18
assert group_meta_data['subject5']['lh.morphometry_file'] == expected_lh_morphometry_file_subject5
assert group_meta_data['subject5']['rh.morphometry_file'] == expected_rh_morphometry_file_subject5
def test_load_group_data_works_with_subjects_file_in_custom_dir():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
custom_subjects_file_dir = os.path.join(TEST_DATA_DIR, 'subject_files_in_extra_dir')
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR, subjects_file='subjects_including_s6_in_subdir.csv', subjects_file_dir=custom_subjects_file_dir)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_lh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_subjects_file = os.path.join(TEST_DATA_DIR, 'subjects.txt')
assert group_data.shape == (6, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(group_meta_data) == 6
assert len(group_meta_data) == len(group_data_subjects)
def test_load_group_data_works_with_left_hemisphere_only():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', hemi='lh', subjects_dir=TEST_DATA_DIR)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_lh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
assert len(run_meta_data) == 5
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'file'
assert group_data.shape == (5, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data['subject1']) == 16
assert group_meta_data['subject1']['lh.morphometry_file'] == expected_lh_morphometry_file_subject1
assert group_meta_data['subject5']['lh.morphometry_file'] == expected_lh_morphometry_file_subject5
assert not 'rh.morphometry_file' in group_meta_data['subject1']
assert not 'rh.morphometry_file' in group_meta_data['subject5']
def test_load_group_data_works_with_right_hemisphere_only():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', hemi='rh', subjects_dir=TEST_DATA_DIR)
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
assert len(run_meta_data) == 5
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'file'
assert group_data.shape == (5, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data['subject1']) == 16
assert group_meta_data['subject1']['rh.morphometry_file'] == expected_rh_morphometry_file_subject1
assert group_meta_data['subject5']['rh.morphometry_file'] == expected_rh_morphometry_file_subject5
assert not 'lh.morphometry_file' in group_meta_data['subject1']
assert not 'lh.morphometry_file' in group_meta_data['subject5']
def test_load_group_data_works_with_custom_morphometry_file_templates_using_variables_surf_white():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
morphometry_template = '${HEMI}.${SURF}${MEASURE}.${AVERAGE_SUBJECT}.mgh'
custom_morphometry_file_templates = {'lh': morphometry_template, 'rh': morphometry_template}
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', hemi='both', surf='white', subjects_dir=TEST_DATA_DIR, custom_morphometry_file_templates=custom_morphometry_file_templates)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fsaverage.mgh') # for surface 'white', the surface must NOT show up in the result.
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
expected_lh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'lh.area.fsaverage.mgh')
expected_rh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'rh.area.fsaverage.mgh')
expected_subjects_file = os.path.join(TEST_DATA_DIR, 'subjects.txt')
assert len(run_meta_data) == 7
assert run_meta_data['custom_morphometry_file_templates_used'] == True
assert run_meta_data['subjects_file_used'] == True
assert run_meta_data['subjects_file'] == expected_subjects_file
assert run_meta_data['lh.custom_morphometry_file_template'] == morphometry_template
assert run_meta_data['rh.custom_morphometry_file_template'] == morphometry_template
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'file'
assert group_data.shape == (5, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data['subject1']) == 18
assert group_meta_data['subject1']['lh.morphometry_file'] == expected_lh_morphometry_file_subject1
assert group_meta_data['subject1']['rh.morphometry_file'] == expected_rh_morphometry_file_subject1
assert group_meta_data['subject5']['lh.morphometry_file'] == expected_lh_morphometry_file_subject5
assert group_meta_data['subject5']['rh.morphometry_file'] == expected_rh_morphometry_file_subject5
def test_load_group_data_works_with_custom_morphometry_file_templates_using_hardcoded_filenames():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
template_lh = 'lh.area.fsaverage.mgh' # nobody forces you to use any variables
template_rh = 'rh.area.fsaverage.mgh'
custom_morphometry_file_templates = {'lh': template_lh, 'rh': template_rh}
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', hemi='both', subjects_dir=TEST_DATA_DIR, custom_morphometry_file_templates=custom_morphometry_file_templates)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fsaverage.mgh')
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
expected_lh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'lh.area.fsaverage.mgh')
expected_rh_morphometry_file_subject5 = os.path.join(TEST_DATA_DIR, 'subject5', 'surf', 'rh.area.fsaverage.mgh')
expected_subjects_file = os.path.join(TEST_DATA_DIR, 'subjects.txt')
assert len(run_meta_data) == 7
assert run_meta_data['custom_morphometry_file_templates_used'] == True
assert run_meta_data['subjects_file_used'] == True
assert run_meta_data['subjects_file'] == expected_subjects_file
assert run_meta_data['lh.custom_morphometry_file_template'] == template_lh
assert run_meta_data['rh.custom_morphometry_file_template'] == template_rh
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'file'
assert group_data.shape == (5, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2) # We have 5 subjects in the subjects.txt file in the test data dir
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data['subject1']) == 18
assert group_meta_data['subject1']['lh.morphometry_file'] == expected_lh_morphometry_file_subject1
assert group_meta_data['subject1']['rh.morphometry_file'] == expected_rh_morphometry_file_subject1
assert group_meta_data['subject5']['lh.morphometry_file'] == expected_lh_morphometry_file_subject5
assert group_meta_data['subject5']['rh.morphometry_file'] == expected_rh_morphometry_file_subject5
def test_load_group_data_works_with_subjects_list():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
subjects_list = [ 'subject1', 'subject3' ]
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR, subjects_list=subjects_list)
expected_lh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject1 = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
expected_lh_morphometry_file_subject3 = os.path.join(TEST_DATA_DIR, 'subject3', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
expected_rh_morphometry_file_subject3 = os.path.join(TEST_DATA_DIR, 'subject3', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
assert len(run_meta_data) == 4
assert run_meta_data['custom_morphometry_file_templates_used'] == False
assert run_meta_data['subjects_file_used'] == False
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'list'
assert group_data.shape == (2, FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2)
assert len(group_meta_data) == 2
assert len(group_meta_data) == len(group_data_subjects)
assert not 'subject2' in group_meta_data
assert len(group_meta_data['subject1']) == 18
assert group_meta_data['subject1']['lh.morphometry_file'] == expected_lh_morphometry_file_subject1
assert group_meta_data['subject1']['rh.morphometry_file'] == expected_rh_morphometry_file_subject1
assert group_meta_data['subject1']['display_subject'] is None
assert group_meta_data['subject1']['display_surf'] is None
assert group_meta_data['subject1']['measure'] == 'area'
assert len(group_meta_data['subject3']) == 18
assert group_meta_data['subject3']['lh.morphometry_file'] == expected_lh_morphometry_file_subject3
assert group_meta_data['subject3']['rh.morphometry_file'] == expected_rh_morphometry_file_subject3
def test_load_group_data_subject_order_in_data_is_correct_from_subjects_file():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR, subjects_file='subjects_including_s6.csv')
assert len(group_meta_data) == 6
assert len(group_meta_data) == len(group_data_subjects)
assert group_data_subjects[0] == 'subject1' # This is the order in which the subjects appear in our test data subjects file. So we can use group_data_subjects to access the correct data.
assert group_data_subjects[1] == 'subject2'
assert group_data_subjects[2] == 'subject3'
assert group_data_subjects[3] == 'subject4'
assert group_data_subjects[4] == 'subject5'
assert group_data_subjects[5] == 'subject6'
assert group_data[0][100000] == pytest.approx(0.74, 0.1) # We know this value from loading the MGH file manually.
assert group_data[1][100000] == pytest.approx(0.74, 0.1) # the value is identical for this subject2 because it is a copy of subject1 (see how test data is created)
assert group_data[2][100000] == pytest.approx(0.74, 0.1) # the value is identical for this subject3 because it is a copy of subject1 (see how test data is created)
assert group_data[3][100000] == pytest.approx(0.74, 0.1) # the value is identical for this subject4 because it is a copy of subject1 (see how test data is created)
assert group_data[4][100000] == pytest.approx(0.74, 0.1) # the value is identical for this subject5 because it is a copy of subject1 (see how test data is created)
assert group_data[5][100000] == pytest.approx(0.20, 0.1) # the value is NOT identical for subject6 because we manually edited it in the test data file in the repo. See also the function test_test_data_lh_is_as_expected() in this file. Note that this shows that subject 6 shows up in the correct position.
def test_load_group_data_subject_order_in_data_is_correct_from_subjects_list():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data for subject2 .. subject5 not available: e.g., directory '%s' does not exist. You can get it by running './develop/get_group_data.bash' in the repo root." % expected_subject2_dir)
subjects_list = [ 'subject1', 'subject6', 'subject3' ]
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', fwhm='10', subjects_dir=TEST_DATA_DIR, subjects_list=subjects_list)
assert len(group_meta_data) == 3
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_data_subjects) == len(subjects_list)
assert group_data_subjects[0] == 'subject1'
assert group_data_subjects[1] == 'subject6'
assert group_data_subjects[2] == 'subject3'
# This is most likely close to real-world usage of the 'group_data_subjects' list:
subject6_idx = group_data_subjects.index('subject6')
assert group_data[subject6_idx][100000] == pytest.approx(0.20, 0.1) # The modified value. So subject6 is in the expected position.
# This is a unit test, so test some more stuff
assert subject6_idx == 1
assert group_data[0][100000] == pytest.approx(0.74, 0.1)
assert group_data[2][100000] == pytest.approx(0.74, 0.1)
def test_test_data_lh_is_as_expected():
# The file lh.area.fwhm11.fsaverage.mgh is an edited version of lh.area.fwhm10.fsaverage.mgh. The only change is that the data value at index 100,000 (with indexing starting at 0), 0.74, is replaced with the value 0.2.
# The MGH file edits were done with the FreeSurfer matlab functions MRIread and MRIwrite.
morphometry_file_value_orig = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
morphometry_file_value_mod = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'lh.area.fwhm11.fsaverage.mgh')
mgh_data_orig, mgh_meta_data_orig = fsd.read_mgh_file(morphometry_file_value_orig)
assert mgh_data_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1, 1)
relevant_data_inner_array_orig = mgh_data_orig[:,0]
assert relevant_data_inner_array_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1)
per_vertex_data_orig = relevant_data_inner_array_orig[:,0]
assert per_vertex_data_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
assert per_vertex_data_orig[100000] == pytest.approx(0.74, 0.1) # lh original value at index 100,000
mgh_data_mod, mgh_meta_data_mod = fsd.read_mgh_file(morphometry_file_value_mod)
assert mgh_data_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1, 1)
relevant_data_inner_array_mod = mgh_data_mod[:,0]
assert relevant_data_inner_array_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1)
per_vertex_data_mod = relevant_data_inner_array_mod[:,0]
assert per_vertex_data_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
assert per_vertex_data_mod[100000] == pytest.approx(0.20, 0.1) # edited value
# test random other data for equality
assert per_vertex_data_orig[50] == pytest.approx(per_vertex_data_mod[50], 0.1)
assert per_vertex_data_orig[5000] == pytest.approx(per_vertex_data_mod[5000], 0.1)
assert per_vertex_data_orig[9000] == pytest.approx(per_vertex_data_mod[9000], 0.1)
assert per_vertex_data_orig[123000] == pytest.approx(per_vertex_data_mod[123000], 0.1)
def test_test_data_rh_is_as_expected():
# The file rh.area.fwhm11.fsaverage.mgh is an edited version of rh.area.fwhm10.fsaverage.mgh. The only change is that the data value at index 100,000 (with indexing starting at 0), 0.60, is replaced with the value 0.2.
# The MGH file edits were done with the FreeSurfer matlab functions MRIread and MRIwrite.
morphometry_file_value_orig = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm10.fsaverage.mgh')
morphometry_file_value_mod = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fwhm11.fsaverage.mgh')
mgh_data_orig, mgh_meta_data_orig = fsd.read_mgh_file(morphometry_file_value_orig)
assert mgh_data_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1, 1)
relevant_data_inner_array_orig = mgh_data_orig[:,0]
assert relevant_data_inner_array_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1)
per_vertex_data_orig = relevant_data_inner_array_orig[:,0]
assert per_vertex_data_orig.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
assert per_vertex_data_orig[100000] == pytest.approx(0.60, 0.1) # rh original value at index 100,000
mgh_data_mod, mgh_meta_data_mod = fsd.read_mgh_file(morphometry_file_value_mod)
assert mgh_data_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1, 1)
relevant_data_inner_array_mod = mgh_data_mod[:,0]
assert relevant_data_inner_array_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, 1)
per_vertex_data_mod = relevant_data_inner_array_mod[:,0]
assert per_vertex_data_mod.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
assert per_vertex_data_mod[100000] == pytest.approx(0.20, 0.1) # edited value
# test random other data for equality
assert per_vertex_data_orig[50] == pytest.approx(per_vertex_data_mod[50], 0.1)
assert per_vertex_data_orig[5000] == pytest.approx(per_vertex_data_mod[5000], 0.1)
assert per_vertex_data_orig[9000] == pytest.approx(per_vertex_data_mod[9000], 0.1)
assert per_vertex_data_orig[123000] == pytest.approx(per_vertex_data_mod[123000], 0.1)
def test_load_group_data_raises_on_invalid_hemisphere():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', hemi='invalid_hemisphere', subjects_dir=TEST_DATA_DIR)
assert 'hemi must be one of' in str(exc_info.value)
assert 'invalid_hemisphere' in str(exc_info.value)
def test_load_group_data_raises_on_invalid_subjects_detection_mode():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_detection_mode='invalid_subjects_detection_mode', subjects_dir=TEST_DATA_DIR)
assert 'subjects_detection_mode must be one of' in str(exc_info.value)
assert 'invalid_subjects_detection_mode' in str(exc_info.value)
def test_load_group_data_raises_with_subjects_list_in_mode_file():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_detection_mode='file', subjects_list=['bert', 'tim'], subjects_dir=TEST_DATA_DIR)
assert 'subjects_detection_mode is set to \'file\'' in str(exc_info.value)
assert 'but a subjects_list was given' in str(exc_info.value)
def test_load_group_data_raises_without_subjects_list_in_mode_list():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_detection_mode='list', subjects_dir=TEST_DATA_DIR)
assert 'subjects_detection_mode is set to \'list\'' in str(exc_info.value)
assert 'but the subjects_list parameter was not given' in str(exc_info.value)
def test_load_group_data_raises_with_subjects_list_in_mode_search_dir():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_detection_mode='search_dir', subjects_list=['bert', 'tim'], subjects_dir=TEST_DATA_DIR)
assert 'subjects_detection_mode is set to \'search_dir\'' in str(exc_info.value)
assert 'but a subjects_list was given' in str(exc_info.value)
def test_load_group_data_raises_with_nonexistant_subjects_file_in_mode_file():
with pytest.raises(ValueError) as exc_info:
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_detection_mode='file', subjects_file='no_such_file', subjects_dir=TEST_DATA_DIR)
assert 'no_such_file' in str(exc_info.value)
assert 'subjects_detection_mode is set to \'file\' but the subjects_file' in str(exc_info.value)
def test_load_group_data_auto_mode_prefers_list_over_explicitely_given_subjects_file():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
subjects_list = [ 'subject1', 'subject6', 'subject3' ]
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', fwhm='10', subjects_dir=TEST_DATA_DIR, subjects_list=subjects_list, subjects_file='no_such_file')
assert len(group_meta_data) == 3
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_data_subjects) == len(subjects_list)
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'list'
def test_load_group_data_auto_mode_prefers_list_over_default_subjects_file_and_search_dir():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
subjects_list = [ 'subject1', 'subject6', 'subject3' ]
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', fwhm='10', subjects_dir=TEST_DATA_DIR, subjects_list=subjects_list)
assert len(group_meta_data) == 3
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_data_subjects) == len(subjects_list)
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'list'
def test_load_group_data_auto_mode_searches_dir_as_last_resort():
extra_subjects_dir = os.path.join(TEST_DATA_DIR, 'extra_subjects')
if not os.path.isdir(extra_subjects_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % extra_subjects_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', fwhm='10', subjects_dir=extra_subjects_dir)
assert len(group_meta_data) == 2
assert len(group_meta_data) == len(group_data_subjects)
assert 'subject2x' in group_data_subjects # relying on order would be dangerous when the files are read from a file system
assert 'subject3x' in group_data_subjects
assert run_meta_data['subjects_detection_mode'] == 'auto'
assert run_meta_data['subjects_detection_mode_auto_used_method'] == 'search_dir'
def test_load_group_data_search_dir_mode_works():
extra_subjects_dir = os.path.join(TEST_DATA_DIR, 'extra_subjects')
if not os.path.isdir(extra_subjects_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % extra_subjects_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', fwhm='10', subjects_dir=extra_subjects_dir, subjects_detection_mode='search_dir')
assert len(group_meta_data) == 2
assert len(group_meta_data) == len(group_data_subjects)
assert 'subject2x' in group_data_subjects # relying on order would be dangerous when the files are read from a file system
assert 'subject3x' in group_data_subjects
assert run_meta_data['subjects_detection_mode'] == 'search_dir'
assert run_meta_data['subjects_file_used'] == False
assert not 'subjects_detection_mode_auto_used_method' in run_meta_data
def test_load_group_data_file_mode_works():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR, subjects_detection_mode='file')
assert len(group_meta_data) == 5
assert len(group_meta_data) == len(group_data_subjects)
assert run_meta_data['subjects_detection_mode'] == 'file'
assert run_meta_data['subjects_file_used'] == True
assert not 'subjects_detection_mode_auto_used_method' in run_meta_data
def test_load_group_data_list_mode_works():
expected_subject2_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_dir)
subjects_list = [ 'subject1', 'subject6', 'subject3' ]
group_data, group_data_subjects, group_meta_data, run_meta_data = bl.group('area', subjects_dir=TEST_DATA_DIR, subjects_list=subjects_list, subjects_detection_mode='list')
assert len(group_meta_data) == 3
assert len(group_meta_data) == len(group_data_subjects)
assert len(group_meta_data) == len(subjects_list)
assert run_meta_data['subjects_detection_mode'] == 'list'
assert run_meta_data['subjects_file_used'] == False
assert not 'subjects_detection_mode_auto_used_method' in run_meta_data
def test_rhi_all_fine():
morphometry_data_lh, meta_data_lh = bl.subject('subject1', hemi='lh', subjects_dir=TEST_DATA_DIR, load_surface_files=False)[2:4]
morphometry_data_rh, meta_data_rh = bl.subject('subject1', hemi='rh', subjects_dir=TEST_DATA_DIR, load_surface_files=False)[2:4]
morphometry_data_both, meta_data_both = bl.subject('subject1', hemi='both', subjects_dir=TEST_DATA_DIR, load_surface_files=False)[2:4]
assert meta_data_both['lh.num_data_points'] == len(morphometry_data_lh)
assert meta_data_both['rh.num_data_points'] == len(morphometry_data_rh)
assert meta_data_lh['lh.num_data_points'] == meta_data_both['lh.num_data_points']
assert meta_data_rh['rh.num_data_points'] == meta_data_both['rh.num_data_points']
abs_rh_start = bl.rhi(0, meta_data_both)
assert morphometry_data_both[abs_rh_start] == pytest.approx(morphometry_data_rh[0], 0.1)
assert bl.rhv(0, morphometry_data_both, meta_data_both) == pytest.approx(morphometry_data_rh[0], 0.1)
abs_rh_second_to_last = bl.rhi(-1, meta_data_both)
assert abs_rh_second_to_last == len(morphometry_data_lh) + len(morphometry_data_rh) -2
assert morphometry_data_both[abs_rh_second_to_last] == pytest.approx(morphometry_data_rh[len(morphometry_data_rh)-2], 0.1)
def test_hemi_range():
meta_data = dict()
meta_data['lh.num_data_points'] = 10
meta_data['rh.num_data_points'] = 9
sl, el = bl.hemi_range(meta_data, 'lh')
assert sl == 0
assert el == 9
sr, er = bl.hemi_range(meta_data, 'rh')
assert sr == 10
assert er == 18
def test_hemi_range_invalid_hemi():
meta_data = dict()
meta_data['lh.num_data_points'] = 10
meta_data['rh.num_data_points'] = 9
with pytest.raises(ValueError) as exc_info:
sl, el = bl.hemi_range(meta_data, 'nosuchhemi')
assert "ERROR: hemi must be one of {'lh', 'rh'} but" in str(exc_info.value)
assert 'nosuchhemi' in str(exc_info.value)
def test_rhi_raises_on_invalid_metadata():
meta_data_both = 5
with pytest.raises(ValueError) as exc_info:
abs_rh_start = bl.rhi(0, meta_data_both)
assert 'must be a meta data dictionary containing the keys' in str(exc_info.value)
def test_rhi_raises_on_missing_metadata_keys():
meta_data_both = {'a': 'test', 'b': 'test2'}
with pytest.raises(ValueError) as exc_info:
abs_rh_start = bl.rhi(0, meta_data_both)
assert 'must be a meta data dictionary containing the keys' in str(exc_info.value)
def test_rhi_raises_on_index_out_of_bounds():
morphometry_data_both, meta_data_both = bl.subject('subject1', hemi='both', subjects_dir=TEST_DATA_DIR, load_surface_files=False)[2:4]
with pytest.raises(ValueError) as exc_info:
abs_rh_start = bl.rhi(500000, meta_data_both)
assert 'out of bounds: right hemisphere has' in str(exc_info.value)
assert '500000' in str(exc_info.value)
def test_fsaverage_mesh():
expected_fsaverage_dir = os.path.join(TEST_DATA_DIR, 'fsaverage')
if not os.path.isdir(expected_fsaverage_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_fsaverage_dir)
verts, faces, meta_data = bl.fsaverage_mesh(subjects_dir=TEST_DATA_DIR, use_freesurfer_home_if_missing=True)
assert verts.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE * 2, 3)
def test_fsaverage_mesh_no_dirs_given():
for var_to_del in ['SUBJECTS_DIR', 'FREESURFER_HOME']:
if var_to_del in os.environ:
del os.environ[var_to_del]
with pytest.raises(FileNotFoundError) as exc_info:
verts, faces, meta_data = bl.fsaverage_mesh()
def test_read_mgh_file_without_data():
mgh_file = os.path.join(TEST_DATA_DIR, 'subject1', 'surf', 'rh.area.fsaverage.mgh')
mgh_data, mgh_meta_data = fsd.read_mgh_file(mgh_file, collect_data=False)
assert mgh_data is None
assert mgh_meta_data is not None
def test_read_mgh_header_matrices_mgh():
mgh_file = os.path.join(TEST_DATA_DIR, 'subject1', 'mri', 'orig.mgh')
ras2vox, vox2ras, vox2ras_tkr = fsd.read_mgh_header_matrices(mgh_file)
assert ras2vox.shape == (4, 4)
assert vox2ras.shape == (4, 4)
assert vox2ras_tkr.shape == (4, 4)
def test_read_mgh_header_matrices_mgz():
mgh_file = os.path.join(TEST_DATA_DIR, 'subject1', 'mri', 'orig.mgz')
ras2vox, vox2ras, vox2ras_tkr = fsd.read_mgh_header_matrices(mgh_file)
assert ras2vox.shape == (4, 4)
assert vox2ras.shape == (4, 4)
assert vox2ras_tkr.shape == (4, 4)
def test_subject_mesh():
vert_coords, faces, meta_data = bl.subject_mesh('subject1', TEST_DATA_DIR, surf='white', hemi='both')
assert vert_coords.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, 3)
assert faces.shape == (SUBJECT1_SURF_LH_WHITE_NUM_FACES + SUBJECT1_SURF_RH_WHITE_NUM_FACES, 3)
def test_parse_talairach_matrix_lines():
lines_str = """1.111536 0.040948 0.012535 -0.803558
-0.029730 0.981154 0.342306 -19.558083
0.022961 -0.452588 1.111222 10.044540;""" # Note the ; at the end
matrix = fsd._parse_talairach_matrix_lines(lines_str.splitlines())
assert matrix.shape == (3, 4)
def test_parse_talairach_matrix_lines_clean():
lines_str = """1.111536 0.040948 0.012535 -0.803558
-0.029730 0.981154 0.342306 -19.558083
0.022961 -0.452588 1.111222 10.044540""" # No ; this time
matrix = fsd._parse_talairach_matrix_lines(lines_str.splitlines())
assert matrix.shape == (3, 4)
def test_parse_talairach_file():
talairach_file = os.path.join(TEST_DATA_DIR, 'subject1', 'mri', 'transforms', 'talairach.xfm')
matrix = fsd.parse_talairach_file(talairach_file)
assert matrix.shape == (3, 4)
def test_read_lookup_file():
lookup_file = os.path.join(TEST_DATA_DIR, 'fs', 'FreeSurferColorLUT.txt')
results = fsd.read_lookup_file(lookup_file)
assert results.shape == (1292, 6)
assert results.dtype == '<U50'
# 19 Left-Insula 80 196 98 0
left_insula_row = results[results[:,0] == "19"]
assert left_insula_row.shape == (1, 6)
left_insula_fields = left_insula_row[0]
assert left_insula_fields[0] == "19"
assert left_insula_fields[1] == "Left-Insula"
assert left_insula_fields[2] == "80"
assert left_insula_fields[3] == "196"
assert left_insula_fields[4] == "98"
assert left_insula_fields[5] == "0"
def test_read_m3z_file():
m3z_file = os.path.join(TEST_DATA_DIR, 'subject1', 'mri', 'transforms', 'talairach.m3z')
vol_orig, vol_dest, vol_ind0, meta_data = fsd.read_m3z_file(m3z_file)
assert meta_data['version'] == pytest.approx(1.0)
assert meta_data['width'] == 128
assert meta_data['height'] == 128
assert meta_data['depth'] == 128
assert meta_data['spacing'] == 2
assert meta_data['exp_k'] == pytest.approx(20.0)
assert meta_data['data_start_pos'] == 24
assert 75497496 == 24 + (128 * 128 * 128 * 9 * 4) # the expected data end position in the file. there are 9 numbers per voxel, each 4 bytes long (and width * height * depth voxels)
data_end_pos_expected = 75497496
expected_numbers_to_read = 128 * 128 * 128 * 9
expected_bytes_to_read = 128 * 128 * 128 * 9 * 4
assert meta_data['bytes_to_read'] == expected_bytes_to_read
assert meta_data['numbers_to_read'] == expected_numbers_to_read
assert meta_data['data_end_pos'] == data_end_pos_expected
assert meta_data['remaining_data_tag'] == 10
assert meta_data['file_end_pos'] == 83888912 # we know this number from running the matlab implementation on our test file (mris_read_m3z from FreeSurfer soure repo at Github)
assert vol_orig.shape == (128, 128, 128, 3)
assert vol_orig.dtype == np.single
assert vol_orig[63,63,63,0] == pytest.approx(124.9153, 0.001)
assert vol_orig[63,63,63,1] == pytest.approx(80.8790, 0.001)
assert vol_orig[63,63,63,2] == pytest.approx(117.6751, 0.001)
assert vol_dest.shape == (128, 128, 128, 3)
assert vol_dest.dtype == np.single
assert vol_dest[63,63,63,0] == pytest.approx(124.8608, 0.001)
assert vol_dest[63,63,63,1] == pytest.approx(80.8703, 0.001)
assert vol_dest[63,63,63,2] == pytest.approx(117.6641, 0.001)
assert vol_ind0.shape == (128, 128, 128, 3)
assert vol_ind0.dtype == np.int32
assert vol_ind0[63,63,63,0] == 63
assert vol_ind0[63,63,63,1] == 63
assert vol_ind0[63,63,63,2] == 63
def test_deduce_hemisphere_label_from_file_path_no_info_no_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('/dev/null')
assert label == "lh"
assert is_default == True
def test_deduce_hemisphere_label_from_file_path_no_info_with_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('/dev/null', default='rh')
assert label == "rh"
assert is_default == True
def test_deduce_hemisphere_label_from_file_path_with_info_right_no_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/rh.area')
assert label == "rh"
assert is_default == False
def test_deduce_hemisphere_label_from_file_path_with_info_left_no_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/lh.area')
assert label == "lh"
assert is_default == False
def test_deduce_hemisphere_label_from_file_path_with_info_underscore_right_no_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/rh_area_of_my_surf')
assert label == "rh"
assert is_default == False
def test_deduce_hemisphere_label_from_file_path_with_info_underscore_left_no_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/lh_area_of_my_surf')
assert label == "lh"
assert is_default == False
def test_deduce_hemisphere_label_from_file_path_with_info_right_with_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/rh.area', default='lh')
assert label == "rh"
assert is_default == False
def test_deduce_hemisphere_label_from_file_path_with_info_left_with_default():
label, is_default = fsd._deduce_hemisphere_label_from_file_path('./subject1/surf/lh.area', default='rh')
assert label == "lh"
assert is_default == False
def test_subject_data_native_lh():
morphometry_data, meta_data = bl.subject_data_native('subject1', TEST_DATA_DIR, 'area', 'lh')
assert morphometry_data.shape == (SUBJECT1_SURF_LH_WHITE_NUM_VERTICES, )
assert 'lh.num_data_points' in meta_data
def test_subject_data_native_rh():
morphometry_data, meta_data = bl.subject_data_native('subject1', TEST_DATA_DIR, 'area', 'rh')
assert morphometry_data.shape == (SUBJECT1_SURF_RH_WHITE_NUM_VERTICES, )
assert 'rh.num_data_points' in meta_data
def test_subject_data_standard():
morphometry_data, meta_data = bl.subject_data_standard('subject1', TEST_DATA_DIR, 'area', 'lh', '10')
assert morphometry_data.shape == (FSAVERAGE_NUM_VERTS_PER_HEMISPHERE, )
def test_get_num_fsaverage_verts_per_hemi_with_fs6():
assert fsd.get_num_fsaverage_verts_per_hemi() == 163842
def test_get_num_fsaverage_verts_per_hemi_with_unsupported_version():
with pytest.raises(ValueError) as exc_info:
vc = fsd.get_num_fsaverage_verts_per_hemi(fsversion=8)
assert 'Currently the only supported FreeSurfer version is 6' in str(exc_info.value)
def test_group_native():
expected_subject2_testdata_dir = os.path.join(TEST_DATA_DIR, 'subject2')
if not os.path.isdir(expected_subject2_testdata_dir):
pytest.skip("Test data missing: e.g., directory '%s' does not exist. You can get all test data by running './develop/get_test_data_all.bash' in the repo root." % expected_subject2_testdata_dir)
morph_data, meta_data = fsd.group_native('area', TEST_DATA_DIR, ['subject1', 'subject2'])
assert len(morph_data) == 2
assert len(meta_data) == 2
assert 'subject1' in morph_data
assert 'subject2' in morph_data
assert 'subject1' in meta_data
assert 'subject2' in meta_data
assert len(morph_data['subject1']) == SUBJECT1_SURF_LH_WHITE_NUM_VERTICES + SUBJECT1_SURF_RH_WHITE_NUM_VERTICES
def test_get_surface_file_path():
assert fsd.get_surface_file_path('study1', 'subject1', 'lh', 'white') == os.path.join('study1', 'subject1', 'surf', 'lh.white')
assert fsd.get_surface_file_path('study1', 'subject2', 'rh', 'pial') == os.path.join('study1', 'subject2', 'surf', 'rh.pial')
assert fsd.get_surface_file_path('study1', 'subject2', 'rh', 'pial', subdir='mri') == os.path.join('study1', 'subject2', 'mri', 'rh.pial')
def test_get_standard_space_morphometry_file_path():
assert fsd.get_standard_space_morphometry_file_path('study1', 'subject1', 'lh', 'area') == os.path.join('study1', 'subject1', 'surf', 'lh.area.fwhm10.fsaverage.mgh')
assert fsd.get_standard_space_morphometry_file_path('study1', 'subject1', 'lh', 'area', fwhm="25") == os.path.join('study1', 'subject1', 'surf', 'lh.area.fwhm25.fsaverage.mgh')
assert fsd.get_standard_space_morphometry_file_path('study1', 'subject1', 'lh', 'area', average_subject="bert") == os.path.join('study1', 'subject1', 'surf', 'lh.area.fwhm10.bert.mgh')
assert fsd.get_standard_space_morphometry_file_path('study1', 'subject1', 'rh', 'area', subdir='mri', file_ext='mgz') == os.path.join('study1', 'subject1', 'mri', 'rh.area.fwhm10.fsaverage.mgz')
| 58.826545
| 311
| 0.758861
| 12,751
| 83,769
| 4.587013
| 0.03733
| 0.06962
| 0.051223
| 0.027287
| 0.897451
| 0.869411
| 0.850981
| 0.82766
| 0.814102
| 0.796526
| 0
| 0.024921
| 0.132006
| 83,769
| 1,423
| 312
| 58.867885
| 0.779483
| 0.049052
| 0
| 0.611162
| 0
| 0.021958
| 0.192076
| 0.053276
| 0
| 0
| 0
| 0
| 0.574565
| 1
| 0.087832
| false
| 0
| 0.005489
| 0
| 0.093321
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6ea8903480dbc0728b0877f1ac51cc33d7760100
| 32,928
|
py
|
Python
|
iiif_api_services/tests/test_sequence.py
|
utlib/utl_iiif_api
|
e2d77ad5a677487e205b840cc800af46b4697eab
|
[
"Apache-2.0"
] | 4
|
2019-12-08T18:39:37.000Z
|
2021-11-09T19:35:44.000Z
|
iiif_api_services/tests/test_sequence.py
|
utlib/utl_iiif_api
|
e2d77ad5a677487e205b840cc800af46b4697eab
|
[
"Apache-2.0"
] | 2
|
2020-06-05T16:45:31.000Z
|
2021-06-10T17:30:00.000Z
|
iiif_api_services/tests/test_sequence.py
|
utlib/utl_iiif_api
|
e2d77ad5a677487e205b840cc800af46b4697eab
|
[
"Apache-2.0"
] | 1
|
2019-12-08T18:45:52.000Z
|
2019-12-08T18:45:52.000Z
|
import os
import json
from test_addons import APIMongoTestCase
from rest_framework import status
from rest_framework_jwt.settings import api_settings
from django.conf import settings # import the settings file to get IIIF_BASE_URL & IIIF_CONTEXT
from iiif_api_services.models.User import User
from iiif_api_services.models.SequenceModel import Sequence
from iiif_api_services.models.CanvasModel import Canvas
from iiif_api_services.models.AnnotationModel import Annotation
SEQUENCE_FULL = os.path.join(os.path.dirname(__file__), 'testData', 'sequence', 'sequenceFull.json')
SEQUENCE_MEDIUM = os.path.join(os.path.dirname(__file__), 'testData', 'sequence', 'sequenceMedium.json')
SEQUENCE_SHORT = os.path.join(os.path.dirname(__file__), 'testData', 'sequence', 'sequenceShort.json')
URL = '/book1/sequence'
MANIFEST_FULL = os.path.join(os.path.dirname(__file__), 'testData', 'sequence', 'manifestFull.json')
class Sequence_Test_Without_Authentication(APIMongoTestCase):
def setUp(self):
Sequence(label="sequence1", identifier="book1", name="sequence1", ATid="http://example.org/iiif/book1/sequence/sequence1").save()
Sequence(label="sequence2", identifier="book1", name="sequence2", ATid="http://example.org/iiif/book1/sequence/sequence2").save()
Sequence(label="sequence3", identifier="book1", name="sequence3", ATid="http://example.org/iiif/book1/sequence/sequence3").save()
def test_to_get_all_sequences_of_an_item(self):
response = self.client.get(URL)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 3)
def test_to_get_a_specific_sequence_of_an_item(self):
response = self.client.get(URL+"/sequence2")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data["ATtype"], 'sc:Sequence')
self.assertEqual(response.data["label"], 'sequence2')
def test_a_sequence_cannot_be_created(self):
response = self.client.post(URL, {})
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_a_sequence_cannot_be_updated(self):
response = self.client.put(URL+"/sequence1", {})
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
def test_a_sequence_cannot_be_deleted(self):
response = self.client.delete(URL+"/sequence1", {})
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
class Sequence_Test_POST(APIMongoTestCase):
def setUp(self):
self.user = User.create_user('testadmin', 'testemail@mail.com', 'testadminpass', True)
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(self.user)
token = jwt_encode_handler(payload)
self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token)
def test_a_sequence_can_be_successfully_created_with_no_nested_structures(self):
data = {"sequence": json.loads(open(SEQUENCE_SHORT).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(response.data["responseBody"]["@id"], settings.IIIF_BASE_URL+"/book1/sequence/normal")
self.assertEqual(Sequence.objects()[0].label, 'Current Page Order')
def test_a_sequence_can_be_successfully_created_with_one_level_nested_structures(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects()[0].label, 'Current Page Order')
self.assertEqual(len(Canvas.objects()), 3)
self.assertEqual(Canvas.objects()[1].ATid, settings.IIIF_BASE_URL + "/book1/canvas/p2")
createdSequenceID = settings.IIIF_BASE_URL + "/book1/sequence/normal"
self.assertEqual(createdSequenceID in Canvas.objects.get(identifier='book1', name='p1').belongsTo, True)
self.assertEqual(createdSequenceID in Canvas.objects.get(identifier='book1', name='p2').belongsTo, True)
self.assertEqual(createdSequenceID in Canvas.objects.get(identifier='book1', name='p3').belongsTo, True)
def test_a_sequence_cannot_be_created_with_errors_in_nested_structures(self):
self.assertEqual(len(Sequence.objects), 0)
self.assertEqual(len(Canvas.objects), 0)
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
data["sequence"]["canvases"][0]["height"] = "invalid"
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]['height'][0], 'A valid integer is required.')
self.assertEqual(len(Sequence.objects), 0)
self.assertEqual(len(Canvas.objects), 0)
def test_nested_structures_created_previously_before_errors_will_be_cleaned_if_error_happens_after(self):
self.assertEqual(len(Sequence.objects), 0)
self.assertEqual(len(Canvas.objects), 0)
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
data["sequence"]["canvases"][2]["height"] = "invalid"
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]['height'][0], 'A valid integer is required.')
self.assertEqual(len(Sequence.objects), 0)
self.assertEqual(len(Canvas.objects), 0)
def test_a_sequence_can_be_successfully_created_along_with_multi_level_nested_structures(self):
data = {"sequence": json.loads(open(SEQUENCE_FULL).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects()[0].label, 'Sequence s0')
self.assertEqual(Sequence.objects()[0].ATid, settings.IIIF_BASE_URL + "/book1/sequence/s0")
self.assertEqual(len(Canvas.objects()), 2)
self.assertEqual(Canvas.objects()[0].ATid, settings.IIIF_BASE_URL + "/book1/canvas/c0")
self.assertEqual(len(Annotation.objects()), 2)
self.assertEqual(Annotation.objects()[0].ATid, settings.IIIF_BASE_URL + "/book1/annotation/a1")
self.assertEqual(Annotation.objects()[0].on, settings.IIIF_BASE_URL + "/book1/canvas/c0")
createdSequenceID = settings.IIIF_BASE_URL + "/book1/sequence/s0"
self.assertEqual(createdSequenceID in Canvas.objects.get(identifier='book1', name='c0').belongsTo, True)
self.assertEqual(createdSequenceID in Canvas.objects.get(identifier='book1', name='c1').belongsTo, True)
createdAnnotationID1 = settings.IIIF_BASE_URL + "/book1/annotation/a1"
createdAnnotationID2 = settings.IIIF_BASE_URL + "/book1/annotation/a2"
def test_a_duplicate_sequence_cannot_be_created(self):
data = {"sequence": json.loads(open(SEQUENCE_SHORT).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]["ATid"][0], 'This field must be unique.')
def test_a_sequence_with_no_id_given_can_be_successfully_created(self):
data = {"sequence": json.loads(open(SEQUENCE_SHORT).read())}
del data["sequence"]["@id"]
response = self.client.post("/identifier/sequence", data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects()[0].label, 'Current Page Order')
def test_a_hidden_child_cannot_be_viewed(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
canvas = Canvas.objects.get(identifier='book1', name='p1')
canvas.hidden = True
canvas.save()
response = self.client.get("/book1/sequence/normal")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data["canvases"]), 2)
def test_an_already_existing_sequence_will_be_updated_from_a_POST_of_manifest(self):
data = {"sequence": json.loads(open(SEQUENCE_SHORT).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
self.assertEqual(Sequence.objects.get(identifier="book1", name="normal").viewingDirection, "left-to-right")
self.assertFalse(settings.IIIF_BASE_URL + "/book1/manifest" in Sequence.objects.get(identifier="book1", name="normal").belongsTo)
data = {"manifest": json.loads(open(MANIFEST_FULL).read())}
data["manifest"]["sequences"][1]["@id"] = "http://example.org/iiif/book1/sequence/normal"
data["manifest"]["sequences"][1]["viewingDirection"] = "NEW"
response = self.client.post('/book1/manifest', data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects.get(identifier="book1", name="normal").viewingDirection, "NEW")
self.assertTrue(settings.IIIF_BASE_URL + "/book1/manifest" in Sequence.objects.get(identifier="book1", name="normal").belongsTo)
def test_a_new_sequence_will_created_from_a_POST_of_manifest(self):
data = {"manifest": json.loads(open(MANIFEST_FULL).read())}
response = self.client.post('/book1/manifest', data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects.get(identifier="book1", name="sequence2").viewingDirection, "right-to-left")
def test_a_sequence_will_update_its_user_permissions_field(self):
self.user = User.create_user('testStaff', 'testemail@mail.com', 'testStaffpass', False)
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(self.user)
token = jwt_encode_handler(payload)
self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token)
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertEqual(Sequence.objects.get(identifier="book1", name="normal").ownedBy, ["testStaff"])
self.assertEqual(Canvas.objects.get(identifier="book1", name="p1").ownedBy, ["testStaff"])
self.assertEqual(Canvas.objects.get(identifier="book1", name="p2").ownedBy, ["testStaff"])
self.assertEqual(Canvas.objects.get(identifier="book1", name="p3").ownedBy, ["testStaff"])
class Sequence_Test_GET(APIMongoTestCase):
def setUp(self):
Sequence(label="sequence1", identifier="book1", name="sequence1", ATid="http://example.org/iiif/book1/sequence/sequence1").save()
def test_a_sequence_from_an_item_that_does_not_exist_cannot_be_viewed(self):
response = self.client.get("/nonExistingItem/sequence/sequence1")
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["error"], "sequence with name 'sequence1' does not exist in identifier 'nonExistingItem'.")
def test_a_sequence_that_does_not_exist_cannot_be_viewed(self):
response = self.client.get(URL+"/nonExistingSequence")
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["error"], "sequence with name 'nonExistingSequence' does not exist in identifier 'book1'.")
def test_a_sequence_can_be_viewed(self):
response = self.client.get("/book1/sequence/sequence1")
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_to_view_a_sequence_not_embedded_entirely_in_manifest(self):
self.user = User.create_user('testadmin', 'testemail@mail.com', 'testadminpass', True)
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(self.user)
token = jwt_encode_handler(payload)
self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token)
data = {"manifest": json.loads(open(MANIFEST_FULL).read())}
data["manifest"]["sequences"].append({"@id": "http://example.org/iiif/book1/sequence/normal2", "label": "2nd Sequence", "viewingDirection": "right-to-left"})
response = self.client.post('/book1/manifest', data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(Sequence.objects().get(identifier="book1", name="normal2").viewingDirection, "right-to-left")
response = self.client.get('/book1/manifest')
self.assertFalse("viewingDirection" in response.data["sequences"][1])
class Sequence_Test_GET_ALL(APIMongoTestCase):
def setUp(self):
Sequence(label="sequence1", identifier="book1", name="sequence1", ATid="http://example.org/iiif/book1/sequence/sequence1").save()
Sequence(label="sequence2", identifier="book1", name="sequence2", ATid="http://example.org/iiif/book1/sequence/sequence2").save()
Sequence(label="sequence3", identifier="book1", name="sequence3", ATid="http://example.org/iiif/book1/sequence/sequence3").save()
def test_all_sequences_from_an_item_is_returned(self):
response = self.client.get("/book1/sequence")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.data), 3)
self.assertEqual(response.data[0]["@id"], "http://example.org/iiif/book1/sequence/sequence1")
self.assertEqual(response.data[2]["@id"], "http://example.org/iiif/book1/sequence/sequence3")
def test_a_sequence_from_an_item_that_does_not_exist_cannot_be_viewed(self):
response = self.client.get("/nonExistingItem/sequence")
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["error"], "Item with name 'nonExistingItem' does not exist.")
class Sequence_Test_DELETE(APIMongoTestCase):
def setUp(self):
self.user = User.create_user('testadmin', 'testemail@mail.com', 'testadminpass', True)
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(self.user)
token = jwt_encode_handler(payload)
self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token)
Sequence(label="sequence1", identifier="book1", name="sequence1", ATid="http://example.org/iiif/book1/sequence/sequence1").save()
Sequence(label="sequence2", identifier="book1", name="sequence2", ATid="http://example.org/iiif/book1/sequence/sequence2").save()
def test_a_sequence_can_be_deleted_sucessfully(self):
response = self.client.delete(URL+"/sequence1")
if settings.QUEUE_DELETE_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_204_NO_CONTENT)
self.assertEqual(response.data["responseBody"]['message'], "Successfully deleted Sequence 'sequence1' from identifier 'book1'.")
def test_a_sequence_from_an_item_that_does_not_exist_cannot_be_deleted(self):
response = self.client.delete("/nonExistingItem/sequence/sequence1")
if settings.QUEUE_DELETE_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["responseBody"]["error"], "Sequence with name 'sequence1' does not exist in identifier 'nonExistingItem'.")
def test_a_sequence_that_does_not_exist_cannot_be_deleted(self):
response = self.client.delete(URL+"/nonExistingSequence")
if settings.QUEUE_DELETE_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["responseBody"]["error"], "Sequence with name 'nonExistingSequence' does not exist in identifier 'book1'.")
def test_deleting_a_sequence_will_delete_all_of_its_nested_objects(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.delete(URL+"/normal")
if settings.QUEUE_DELETE_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_204_NO_CONTENT)
self.assertEqual(response.data["responseBody"]['message'], "Successfully deleted Sequence 'normal' from identifier 'book1'.")
self.assertEqual(len(Canvas.objects), 0)
class Sequence_Test_PUT(APIMongoTestCase):
def setUp(self):
self.user = User.create_user('testadmin', 'testemail@mail.com', 'testadminpass', True)
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(self.user)
token = jwt_encode_handler(payload)
self.client.credentials(HTTP_AUTHORIZATION='JWT ' + token)
Sequence(label="sequence1", identifier="book1", name="sequence1", ATid="http://example.org/iiif/book1/sequence/sequence1", viewingHint="paged").save()
Sequence(label="sequence2", identifier="book1", name="sequence2", ATid="http://example.org/iiif/book1/sequence/sequence2").save()
def test_a_sequence_can_be_updated_sucessfully(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
data["sequence"]["label"] = "new_sequence1"
data["sequence"]["viewingHint"] = "non-paged"
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_200_OK)
self.assertEqual(Sequence.objects.get(identifier="book1", name="normal").label, 'new_sequence1')
self.assertEqual(Sequence.objects.get(identifier="book1", name="normal").viewingHint, 'non-paged')
def test_a_sequence_with_invalid_data_cannot_be_updated(self):
data = {"sequence": {"label": "new_sequence1", "viewingHint": ["invalid"]}}
response = self.client.put(URL+"/sequence1", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]["viewingHint"][0], 'Not a valid string.')
def test_a_sequence_that_does_not_exist_cannot_be_updated(self):
data = {"sequence": {"label": "new_sequence1", "viewingHint": "non-paged"}}
response = self.client.put(URL+"/nonExistingSequence", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_404_NOT_FOUND)
self.assertEqual(response.data["responseBody"]["error"], "Sequence with name 'nonExistingSequence' does not exist in identifier 'book1'.")
def test_a_sequence_with_new_id_can_be_updated_successfully(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
data = {"sequence": {"@id": "http://example.org/iiif/new_book1/sequence/new_sequence1", "viewingHint": "non-paged"}}
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_200_OK)
self.assertEqual(Sequence.objects.get(identifier="new_book1", name="new_sequence1").ATid, settings.IIIF_BASE_URL + "/new_book1/sequence/new_sequence1")
def test_a_sequence_with_nested_objects_can_be_updated_successfully(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
self.assertEqual(Canvas.objects.get(identifier="book1", name="p1").label, "p. 1")
data["sequence"]["canvases"][0]["label"] = 'NEW LABEL'
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_200_OK)
self.assertEqual(Canvas.objects.get(identifier="book1", name="p1").label, "NEW LABEL")
def test_a_sequence_with_invalid_nested_objects_cannot_be_updated_successfully(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
data["sequence"]["canvases"][0]["viewingHint"] = ["invalid"]
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]["viewingHint"][0], "Not a valid string.")
def test_a_sequence_with_new_id_will_update_its_nested_objects_belongsTo_field(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
self.assertEqual(Canvas.objects.get(identifier='book1', name='p1').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/normal")
self.assertEqual(Canvas.objects.get(identifier='book1', name='p2').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/normal")
self.assertEqual(Canvas.objects.get(identifier='book1', name='p3').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/normal")
data["sequence"]["@id"] = "http://example.org/iiif/book1/sequence/not-normal"
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_200_OK)
self.assertEqual(Canvas.objects.get(identifier='book1', name='p1').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/not-normal")
self.assertEqual(Canvas.objects.get(identifier='book1', name='p2').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/not-normal")
self.assertEqual(Canvas.objects.get(identifier='book1', name='p3').belongsTo[0], settings.IIIF_BASE_URL+"/book1/sequence/not-normal")
def test_a_sequence_cannot_be_updated_with_errors_in_nested_structures(self):
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post(URL, data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
data["sequence"]["canvases"][0]["height"] = "invalid"
response = self.client.put(URL+"/normal", data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_422_UNPROCESSABLE_ENTITY)
self.assertEqual(response.data["responseBody"]["error"]['height'][0], 'A valid integer is required.')
self.assertEqual(len(Sequence.objects), 3)
self.assertEqual(len(Canvas.objects), 3)
def test_a_sequence_can_be_updated_with_a_new_belongsTo_field_will_replace_existing_values(self):
Sequence(label="p1", identifier="book1", name="normal", ATid="http://example.org/iiif/book1/sequence/normal", belongsTo=[settings.IIIF_BASE_URL +"/book1/manifest"]).save()
self.assertEqual(Sequence.objects.get(identifier='book1', name="normal").belongsTo, [settings.IIIF_BASE_URL + "/book1/manifest"])
self.assertFalse("http://example.org/iiif/book2/manifest" in Sequence.objects.get(identifier='book1', name="normal").belongsTo)
data = {"sequence": {"belongsTo": ["http://example.org/iiif/book2/manifest"]}}
response = self.client.put('/book1/sequence/normal', data)
if settings.QUEUE_PUT_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_200_OK)
self.assertFalse(settings.IIIF_BASE_URL + "/book1/manifest" in Sequence.objects.get(identifier='book1', name="normal").belongsTo)
self.assertTrue("http://example.org/iiif/book2/manifest" in Sequence.objects.get(identifier='book1', name="normal").belongsTo)
def test_an_embedded_canvas_updated_with_a_new_belongsTo_field_will_append_existing_values(self):
Canvas(label="normal", identifier="book1", name="p1", ATid="http://example.org/iiif/book1/canvas/p1", belongsTo=[settings.IIIF_BASE_URL +"/book1/sequence/normal2"]).save()
self.assertEqual(Canvas.objects.get(identifier='book1', name="p1").belongsTo, [settings.IIIF_BASE_URL + "/book1/sequence/normal2"])
self.assertFalse(settings.IIIF_BASE_URL + "/book1/sequence/normal" in Canvas.objects.get(identifier='book1', name="p1").belongsTo)
data = {"sequence": json.loads(open(SEQUENCE_MEDIUM).read())}
response = self.client.post("/book1/sequence", data)
if settings.QUEUE_POST_ENABLED:
while self.client.get(response.data["status"]).status_code!=status.HTTP_301_MOVED_PERMANENTLY: pass # Wait till background process finishes
response = self.client.get(response.data["status"])
self.assertEqual(response.data["responseCode"], status.HTTP_201_CREATED)
self.assertTrue(settings.IIIF_BASE_URL + "/book1/sequence/normal2" in Canvas.objects.get(identifier='book1', name="p1").belongsTo)
self.assertTrue(settings.IIIF_BASE_URL + "/book1/sequence/normal" in Canvas.objects.get(identifier='book1', name="p1").belongsTo)
| 69.910828
| 179
| 0.719965
| 4,065
| 32,928
| 5.623124
| 0.055597
| 0.049873
| 0.058273
| 0.05696
| 0.898373
| 0.880436
| 0.861843
| 0.820194
| 0.804314
| 0.768702
| 0
| 0.016628
| 0.147048
| 32,928
| 470
| 180
| 70.059574
| 0.79723
| 0.042213
| 0
| 0.601467
| 0
| 0
| 0.175143
| 0.01781
| 0
| 0
| 0
| 0
| 0.281174
| 1
| 0.102689
| false
| 0.0978
| 0.02445
| 0
| 0.141809
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
42ba4c7ec2b3b1b7e0962790ae2ce572378af352
| 23
|
py
|
Python
|
Unit 3/3.4/3.4.5 Add Parentheses.py
|
shashwat73/cse
|
60e49307e57105cf9916c7329f53f891c5e81fdb
|
[
"MIT"
] | 1
|
2021-04-08T14:02:49.000Z
|
2021-04-08T14:02:49.000Z
|
Unit 3/3.4/3.4.5 Add Parentheses.py
|
shashwat73/cse
|
60e49307e57105cf9916c7329f53f891c5e81fdb
|
[
"MIT"
] | null | null | null |
Unit 3/3.4/3.4.5 Add Parentheses.py
|
shashwat73/cse
|
60e49307e57105cf9916c7329f53f891c5e81fdb
|
[
"MIT"
] | null | null | null |
print 2 + 3 * (4 + 8)
| 11.5
| 22
| 0.391304
| 5
| 23
| 1.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.285714
| 0.391304
| 23
| 1
| 23
| 23
| 0.357143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
6e4244249bd865c5a0a686a46724e3a3033a2b12
| 16,261
|
py
|
Python
|
sdk/python/pulumi_github/repository_environment.py
|
pulumi/pulumi-github
|
303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91
|
[
"ECL-2.0",
"Apache-2.0"
] | 20
|
2020-04-27T15:05:01.000Z
|
2022-02-08T00:28:32.000Z
|
sdk/python/pulumi_github/repository_environment.py
|
pulumi/pulumi-github
|
303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91
|
[
"ECL-2.0",
"Apache-2.0"
] | 103
|
2020-05-01T17:36:32.000Z
|
2022-03-31T15:26:35.000Z
|
sdk/python/pulumi_github/repository_environment.py
|
pulumi/pulumi-github
|
303ed7a28cbfe6ba1db75b3b365dcfa0b00e6e91
|
[
"ECL-2.0",
"Apache-2.0"
] | 4
|
2020-06-24T19:15:02.000Z
|
2021-11-26T08:05:46.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
from ._inputs import *
__all__ = ['RepositoryEnvironmentArgs', 'RepositoryEnvironment']
@pulumi.input_type
class RepositoryEnvironmentArgs:
def __init__(__self__, *,
environment: pulumi.Input[str],
repository: pulumi.Input[str],
deployment_branch_policy: Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']] = None,
reviewers: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]] = None,
wait_timer: Optional[pulumi.Input[int]] = None):
"""
The set of arguments for constructing a RepositoryEnvironment resource.
:param pulumi.Input[str] environment: The name of the environment.
:param pulumi.Input[str] repository: The repository of the environment.
:param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered.
"""
pulumi.set(__self__, "environment", environment)
pulumi.set(__self__, "repository", repository)
if deployment_branch_policy is not None:
pulumi.set(__self__, "deployment_branch_policy", deployment_branch_policy)
if reviewers is not None:
pulumi.set(__self__, "reviewers", reviewers)
if wait_timer is not None:
pulumi.set(__self__, "wait_timer", wait_timer)
@property
@pulumi.getter
def environment(self) -> pulumi.Input[str]:
"""
The name of the environment.
"""
return pulumi.get(self, "environment")
@environment.setter
def environment(self, value: pulumi.Input[str]):
pulumi.set(self, "environment", value)
@property
@pulumi.getter
def repository(self) -> pulumi.Input[str]:
"""
The repository of the environment.
"""
return pulumi.get(self, "repository")
@repository.setter
def repository(self, value: pulumi.Input[str]):
pulumi.set(self, "repository", value)
@property
@pulumi.getter(name="deploymentBranchPolicy")
def deployment_branch_policy(self) -> Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']]:
return pulumi.get(self, "deployment_branch_policy")
@deployment_branch_policy.setter
def deployment_branch_policy(self, value: Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']]):
pulumi.set(self, "deployment_branch_policy", value)
@property
@pulumi.getter
def reviewers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]]:
return pulumi.get(self, "reviewers")
@reviewers.setter
def reviewers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]]):
pulumi.set(self, "reviewers", value)
@property
@pulumi.getter(name="waitTimer")
def wait_timer(self) -> Optional[pulumi.Input[int]]:
"""
Amount of time to delay a job after the job is initially triggered.
"""
return pulumi.get(self, "wait_timer")
@wait_timer.setter
def wait_timer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "wait_timer", value)
@pulumi.input_type
class _RepositoryEnvironmentState:
def __init__(__self__, *,
deployment_branch_policy: Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']] = None,
environment: Optional[pulumi.Input[str]] = None,
repository: Optional[pulumi.Input[str]] = None,
reviewers: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]] = None,
wait_timer: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering RepositoryEnvironment resources.
:param pulumi.Input[str] environment: The name of the environment.
:param pulumi.Input[str] repository: The repository of the environment.
:param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered.
"""
if deployment_branch_policy is not None:
pulumi.set(__self__, "deployment_branch_policy", deployment_branch_policy)
if environment is not None:
pulumi.set(__self__, "environment", environment)
if repository is not None:
pulumi.set(__self__, "repository", repository)
if reviewers is not None:
pulumi.set(__self__, "reviewers", reviewers)
if wait_timer is not None:
pulumi.set(__self__, "wait_timer", wait_timer)
@property
@pulumi.getter(name="deploymentBranchPolicy")
def deployment_branch_policy(self) -> Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']]:
return pulumi.get(self, "deployment_branch_policy")
@deployment_branch_policy.setter
def deployment_branch_policy(self, value: Optional[pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs']]):
pulumi.set(self, "deployment_branch_policy", value)
@property
@pulumi.getter
def environment(self) -> Optional[pulumi.Input[str]]:
"""
The name of the environment.
"""
return pulumi.get(self, "environment")
@environment.setter
def environment(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "environment", value)
@property
@pulumi.getter
def repository(self) -> Optional[pulumi.Input[str]]:
"""
The repository of the environment.
"""
return pulumi.get(self, "repository")
@repository.setter
def repository(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "repository", value)
@property
@pulumi.getter
def reviewers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]]:
return pulumi.get(self, "reviewers")
@reviewers.setter
def reviewers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]]]):
pulumi.set(self, "reviewers", value)
@property
@pulumi.getter(name="waitTimer")
def wait_timer(self) -> Optional[pulumi.Input[int]]:
"""
Amount of time to delay a job after the job is initially triggered.
"""
return pulumi.get(self, "wait_timer")
@wait_timer.setter
def wait_timer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "wait_timer", value)
class RepositoryEnvironment(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None,
environment: Optional[pulumi.Input[str]] = None,
repository: Optional[pulumi.Input[str]] = None,
reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None,
wait_timer: Optional[pulumi.Input[int]] = None,
__props__=None):
"""
This resource allows you to create and manage environments for a GitHub repository.
## Example Usage
```python
import pulumi
import pulumi_github as github
current = github.get_user(username="")
example_repository = github.Repository("exampleRepository", description="My awesome codebase")
example_repository_environment = github.RepositoryEnvironment("exampleRepositoryEnvironment",
environment="example",
repository=example_repository.name,
reviewers=[github.RepositoryEnvironmentReviewerArgs(
users=[current.id],
)],
deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(
protected_branches=True,
custom_branch_policies=False,
))
```
## Import
GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
```sh
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] environment: The name of the environment.
:param pulumi.Input[str] repository: The repository of the environment.
:param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: RepositoryEnvironmentArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
This resource allows you to create and manage environments for a GitHub repository.
## Example Usage
```python
import pulumi
import pulumi_github as github
current = github.get_user(username="")
example_repository = github.Repository("exampleRepository", description="My awesome codebase")
example_repository_environment = github.RepositoryEnvironment("exampleRepositoryEnvironment",
environment="example",
repository=example_repository.name,
reviewers=[github.RepositoryEnvironmentReviewerArgs(
users=[current.id],
)],
deployment_branch_policy=github.RepositoryEnvironmentDeploymentBranchPolicyArgs(
protected_branches=True,
custom_branch_policies=False,
))
```
## Import
GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
```sh
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
```
:param str resource_name: The name of the resource.
:param RepositoryEnvironmentArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(RepositoryEnvironmentArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None,
environment: Optional[pulumi.Input[str]] = None,
repository: Optional[pulumi.Input[str]] = None,
reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None,
wait_timer: Optional[pulumi.Input[int]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = RepositoryEnvironmentArgs.__new__(RepositoryEnvironmentArgs)
__props__.__dict__["deployment_branch_policy"] = deployment_branch_policy
if environment is None and not opts.urn:
raise TypeError("Missing required property 'environment'")
__props__.__dict__["environment"] = environment
if repository is None and not opts.urn:
raise TypeError("Missing required property 'repository'")
__props__.__dict__["repository"] = repository
__props__.__dict__["reviewers"] = reviewers
__props__.__dict__["wait_timer"] = wait_timer
super(RepositoryEnvironment, __self__).__init__(
'github:index/repositoryEnvironment:RepositoryEnvironment',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
deployment_branch_policy: Optional[pulumi.Input[pulumi.InputType['RepositoryEnvironmentDeploymentBranchPolicyArgs']]] = None,
environment: Optional[pulumi.Input[str]] = None,
repository: Optional[pulumi.Input[str]] = None,
reviewers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RepositoryEnvironmentReviewerArgs']]]]] = None,
wait_timer: Optional[pulumi.Input[int]] = None) -> 'RepositoryEnvironment':
"""
Get an existing RepositoryEnvironment resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] environment: The name of the environment.
:param pulumi.Input[str] repository: The repository of the environment.
:param pulumi.Input[int] wait_timer: Amount of time to delay a job after the job is initially triggered.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _RepositoryEnvironmentState.__new__(_RepositoryEnvironmentState)
__props__.__dict__["deployment_branch_policy"] = deployment_branch_policy
__props__.__dict__["environment"] = environment
__props__.__dict__["repository"] = repository
__props__.__dict__["reviewers"] = reviewers
__props__.__dict__["wait_timer"] = wait_timer
return RepositoryEnvironment(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="deploymentBranchPolicy")
def deployment_branch_policy(self) -> pulumi.Output[Optional['outputs.RepositoryEnvironmentDeploymentBranchPolicy']]:
return pulumi.get(self, "deployment_branch_policy")
@property
@pulumi.getter
def environment(self) -> pulumi.Output[str]:
"""
The name of the environment.
"""
return pulumi.get(self, "environment")
@property
@pulumi.getter
def repository(self) -> pulumi.Output[str]:
"""
The repository of the environment.
"""
return pulumi.get(self, "repository")
@property
@pulumi.getter
def reviewers(self) -> pulumi.Output[Optional[Sequence['outputs.RepositoryEnvironmentReviewer']]]:
return pulumi.get(self, "reviewers")
@property
@pulumi.getter(name="waitTimer")
def wait_timer(self) -> pulumi.Output[Optional[int]]:
"""
Amount of time to delay a job after the job is initially triggered.
"""
return pulumi.get(self, "wait_timer")
| 43.948649
| 193
| 0.668963
| 1,649
| 16,261
| 6.370528
| 0.111583
| 0.073298
| 0.070538
| 0.02713
| 0.804093
| 0.777249
| 0.761828
| 0.740409
| 0.717373
| 0.704522
| 0
| 0.00008
| 0.235533
| 16,261
| 369
| 194
| 44.067751
| 0.844984
| 0.272
| 0
| 0.694175
| 1
| 0
| 0.166849
| 0.110353
| 0
| 0
| 0
| 0
| 0
| 1
| 0.15534
| false
| 0.004854
| 0.033981
| 0.029126
| 0.281553
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
95383eca678e295f3aea372162b89be183a932de
| 1,934
|
py
|
Python
|
dataStateAccess/BookDTO.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
dataStateAccess/BookDTO.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
dataStateAccess/BookDTO.py
|
vishu221b/bookme-flask-REST-API-Collection
|
9ee923e13d786af9b11421370edac718743855af
|
[
"MIT"
] | null | null | null |
def book_dto(book):
try:
if not book:
return None
return {
'id': str(book.pk),
'book_name': book.name,
'summary': book.summary if book.summary else "",
'author': book.author,
'book_genre': book.genre,
'barcode': book.barcode,
'created_at': str(book.created_at),
'created_by': book.created_by,
'last_updated_at': str(book.last_updated_at),
'last_updated_by': book.last_updated_by,
'is_active': book.is_active,
'privacy_scope': book.privacy_scope,
'document_name': book.document_name,
'entity_tag': book.entity_tag,
'book_repo': book.repo_key
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at BOOK_DTO.".format(e))
def embed_book_dto(book):
try:
return {
'id': str(book.pk),
'book_name': book.name,
'author': book.author,
'summary': book.summary
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at EMBED_BOOK_DTO.".format(e))
def public_book_response_dto(book):
try:
if not book:
return None
return {
'id': str(book.pk),
'book_name': book.name,
'summary': book.summary if book.summary else "",
'author': book.author,
'book_genre': book.genre,
'barcode': book.barcode,
'created_at': str(book.created_at),
'created_by': book.created_by,
'last_updated_at': str(book.last_updated_at),
'last_updated_by': book.last_updated_by,
'is_active': book.is_active,
'privacy_scope': book.privacy_scope
}
except Exception as e:
print("DEBUG: Exception - {}, occurred at PUBLIC_BOOK_RESPONSE_DTO.".format(e))
| 33.344828
| 87
| 0.546536
| 224
| 1,934
| 4.473214
| 0.1875
| 0.087824
| 0.035928
| 0.04491
| 0.820359
| 0.786427
| 0.786427
| 0.786427
| 0.786427
| 0.612774
| 0
| 0
| 0.332472
| 1,934
| 57
| 88
| 33.929825
| 0.776143
| 0
| 0
| 0.716981
| 0
| 0
| 0.22544
| 0.012927
| 0
| 0
| 0
| 0
| 0
| 1
| 0.056604
| false
| 0
| 0
| 0
| 0.150943
| 0.056604
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
95438238d213adaf1c5202dbda477eae1e401ba3
| 20,114
|
py
|
Python
|
cjaasPythonClient/admin-apis/swagger_client/api/account_api.py
|
kat-mulberries/cjaas-sdk
|
11dc39c9e2058d1a6c900ad0ef4236a984f8aac5
|
[
"Apache-2.0"
] | 4
|
2021-04-28T16:33:09.000Z
|
2022-01-12T00:19:06.000Z
|
cjaasPythonClient/admin-apis/swagger_client/api/account_api.py
|
kat-mulberries/cjaas-sdk
|
11dc39c9e2058d1a6c900ad0ef4236a984f8aac5
|
[
"Apache-2.0"
] | 2
|
2021-07-06T15:35:59.000Z
|
2021-12-16T16:52:34.000Z
|
cjaasPythonClient/admin-apis/swagger_client/api/account_api.py
|
kat-mulberries/cjaas-sdk
|
11dc39c9e2058d1a6c900ad0ef4236a984f8aac5
|
[
"Apache-2.0"
] | 7
|
2021-05-13T20:15:21.000Z
|
2021-12-16T10:28:02.000Z
|
# coding: utf-8
"""
Azure Functions OpenAPI Extension
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class AccountApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def create_app(self, authorization, **kwargs): # noqa: E501
"""Create App # noqa: E501
Create an application for a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_app(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Common Identity Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericObjectResponseCreateApp
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_app_with_http_info(authorization, **kwargs) # noqa: E501
else:
(data) = self.create_app_with_http_info(authorization, **kwargs) # noqa: E501
return data
def create_app_with_http_info(self, authorization, **kwargs): # noqa: E501
"""Create App # noqa: E501
Create an application for a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_app_with_http_info(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Common Identity Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericObjectResponseCreateApp
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['authorization'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method create_app" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'authorization' is set
if ('authorization' not in params or
params['authorization'] is None):
raise ValueError("Missing the required parameter `authorization` when calling `create_app`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'authorization' in params:
header_params['Authorization'] = params['authorization'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v1/organizations/apps', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HttpGenericObjectResponseCreateApp', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_app(self, authorization, **kwargs): # noqa: E501
"""Delete App # noqa: E501
Delete an application from a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_app(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpSimpleMessageObjectResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_app_with_http_info(authorization, **kwargs) # noqa: E501
else:
(data) = self.delete_app_with_http_info(authorization, **kwargs) # noqa: E501
return data
def delete_app_with_http_info(self, authorization, **kwargs): # noqa: E501
"""Delete App # noqa: E501
Delete an application from a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_app_with_http_info(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpSimpleMessageObjectResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['authorization'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_app" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'authorization' is set
if ('authorization' not in params or
params['authorization'] is None):
raise ValueError("Missing the required parameter `authorization` when calling `delete_app`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'authorization' in params:
header_params['Authorization'] = params['authorization'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v1/organizations/apps/{appname}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HttpSimpleMessageObjectResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def list_apps(self, authorization, **kwargs): # noqa: E501
"""List Apps # noqa: E501
Lists Apps for a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_apps(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericListObjectResponseAppsDocumentSwagger
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_apps_with_http_info(authorization, **kwargs) # noqa: E501
else:
(data) = self.list_apps_with_http_info(authorization, **kwargs) # noqa: E501
return data
def list_apps_with_http_info(self, authorization, **kwargs): # noqa: E501
"""List Apps # noqa: E501
Lists Apps for a particular organization. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_apps_with_http_info(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericListObjectResponseAppsDocumentSwagger
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['authorization'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_apps" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'authorization' is set
if ('authorization' not in params or
params['authorization'] is None):
raise ValueError("Missing the required parameter `authorization` when calling `list_apps`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'authorization' in params:
header_params['Authorization'] = params['authorization'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v1/organizations/apps', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HttpGenericListObjectResponseAppsDocumentSwagger', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def rotate_app_key(self, authorization, **kwargs): # noqa: E501
"""Rotate App Key # noqa: E501
Rotates a secret key for a particular application. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.rotate_app_key(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericObjectResponseCreateApp
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.rotate_app_key_with_http_info(authorization, **kwargs) # noqa: E501
else:
(data) = self.rotate_app_key_with_http_info(authorization, **kwargs) # noqa: E501
return data
def rotate_app_key_with_http_info(self, authorization, **kwargs): # noqa: E501
"""Rotate App Key # noqa: E501
Rotates a secret key for a particular application. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.rotate_app_key_with_http_info(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Cisco CI Bearer Token Prefix token with 'Bearer ' (required)
:return: HttpGenericObjectResponseCreateApp
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['authorization'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method rotate_app_key" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'authorization' is set
if ('authorization' not in params or
params['authorization'] is None):
raise ValueError("Missing the required parameter `authorization` when calling `rotate_app_key`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'authorization' in params:
header_params['Authorization'] = params['authorization'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v1/organizations/apps/{appname}/key', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HttpGenericObjectResponseCreateApp', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_app_attributes(self, authorization, **kwargs): # noqa: E501
"""Update App Attributes # noqa: E501
Updates an Apps Attributes # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_app_attributes(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Common Identity Bearer Token (required)
:return: HttpSimpleMessageObjectResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_app_attributes_with_http_info(authorization, **kwargs) # noqa: E501
else:
(data) = self.update_app_attributes_with_http_info(authorization, **kwargs) # noqa: E501
return data
def update_app_attributes_with_http_info(self, authorization, **kwargs): # noqa: E501
"""Update App Attributes # noqa: E501
Updates an Apps Attributes # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_app_attributes_with_http_info(authorization, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str authorization: Common Identity Bearer Token (required)
:return: HttpSimpleMessageObjectResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['authorization'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_app_attributes" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'authorization' is set
if ('authorization' not in params or
params['authorization'] is None):
raise ValueError("Missing the required parameter `authorization` when calling `update_app_attributes`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
if 'authorization' in params:
header_params['Authorization'] = params['authorization'] # noqa: E501
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/v1/organizations/apps/{appname}/attributes', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='HttpSimpleMessageObjectResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 39.516699
| 129
| 0.621855
| 2,183
| 20,114
| 5.502061
| 0.079249
| 0.04729
| 0.038298
| 0.044959
| 0.9458
| 0.941554
| 0.938473
| 0.928982
| 0.925985
| 0.923487
| 0
| 0.01596
| 0.292881
| 20,114
| 508
| 130
| 39.594488
| 0.828517
| 0.34563
| 0
| 0.814126
| 1
| 0
| 0.196961
| 0.058386
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040892
| false
| 0
| 0.01487
| 0
| 0.115242
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
954d67ef9d42489de3495d7e2f20bee778cd0cb0
| 208
|
py
|
Python
|
carball/output_generation/__init__.py
|
twobackfromtheend/carball
|
6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73
|
[
"Apache-2.0"
] | null | null | null |
carball/output_generation/__init__.py
|
twobackfromtheend/carball
|
6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73
|
[
"Apache-2.0"
] | null | null | null |
carball/output_generation/__init__.py
|
twobackfromtheend/carball
|
6dcc3f7f0f2266cc3e0a3de24deaac2aec392b73
|
[
"Apache-2.0"
] | null | null | null |
from carball.output_generation.data_frame_generation.data_frame import create_data_frame
from carball.output_generation.proto_generation.game import create_game
__all__ = ['create_game', 'create_data_frame']
| 52
| 88
| 0.875
| 29
| 208
| 5.724138
| 0.37931
| 0.216867
| 0.204819
| 0.325301
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057692
| 208
| 4
| 89
| 52
| 0.846939
| 0
| 0
| 0
| 0
| 0
| 0.133971
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
9567c349cb0ecb0b4b59cebc4efa1c98882ad8d4
| 39
|
py
|
Python
|
Compiler Design Lab/ChocoPy_LLVM_Compiler/tests/parse/bad_inner_class2.py
|
Abhishek-Aditya-bs/Lab-Projects-and-Assignments
|
fd2681a1c7453367a4df1790e58afb312f13998c
|
[
"MIT"
] | 7
|
2021-08-28T18:20:45.000Z
|
2022-02-01T07:35:59.000Z
|
Compiler Design Lab/ChocoPy_LLVM_Compiler/tests/parse/bad_inner_class2.py
|
Abhishek-Aditya-bs/Lab-Projects-and-Assignments
|
fd2681a1c7453367a4df1790e58afb312f13998c
|
[
"MIT"
] | 1
|
2020-05-30T17:57:11.000Z
|
2020-05-30T20:44:53.000Z
|
tests/parse/bad_inner_class2.py
|
yangdanny97/chocopy-python-frontend
|
d0fb63fc744771640fa4d06076743f42089899c1
|
[
"MIT"
] | 2
|
2022-02-05T06:16:16.000Z
|
2022-02-24T11:07:09.000Z
|
def f()->int:
class C:
pass
| 13
| 13
| 0.435897
| 6
| 39
| 2.833333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.410256
| 39
| 3
| 14
| 13
| 0.73913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0
| 0
| 0.666667
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
9578063d83cdffc15a89b5358873cddc2358d974
| 2,145
|
py
|
Python
|
src/data/pretty_test_target.py
|
morgannewellsun/Reverse-Conway
|
1750bf6ab96b8d6ccc1d8905264097e091adb82c
|
[
"Unlicense"
] | 1
|
2022-03-13T22:44:53.000Z
|
2022-03-13T22:44:53.000Z
|
src/data/pretty_test_target.py
|
morgannewellsun/Reverse-Conway
|
1750bf6ab96b8d6ccc1d8905264097e091adb82c
|
[
"Unlicense"
] | null | null | null |
src/data/pretty_test_target.py
|
morgannewellsun/Reverse-Conway
|
1750bf6ab96b8d6ccc1d8905264097e091adb82c
|
[
"Unlicense"
] | null | null | null |
import numpy as np
pretty_test_target = np.array(
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
).astype(np.float32).reshape((1, 25, 25, 1))
| 73.965517
| 81
| 0.323077
| 642
| 2,145
| 1.076324
| 0.021807
| 1.412446
| 1.984081
| 2.489146
| 0.904486
| 0.904486
| 0.904486
| 0.904486
| 0.904486
| 0.904486
| 0
| 0.45704
| 0.354312
| 2,145
| 28
| 82
| 76.607143
| 0.041877
| 0
| 0
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.035714
| 0
| 0.035714
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 13
|
95a43db8f9e323207325e75c5f40df33bb6b452d
| 1,503
|
py
|
Python
|
mentoring/migrations/0003_auto_20161016_1818.py
|
TomWerner/AlumniMentoring
|
d4bac09fc768232f0795a0672eb041a2225118ae
|
[
"MIT"
] | 2
|
2016-10-19T17:04:53.000Z
|
2017-07-23T21:49:34.000Z
|
mentoring/migrations/0003_auto_20161016_1818.py
|
TomWerner/AlumniMentoring
|
d4bac09fc768232f0795a0672eb041a2225118ae
|
[
"MIT"
] | null | null | null |
mentoring/migrations/0003_auto_20161016_1818.py
|
TomWerner/AlumniMentoring
|
d4bac09fc768232f0795a0672eb041a2225118ae
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-16 23:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mentoring', '0002_auto_20161016_1817'),
]
operations = [
migrations.AlterField(
model_name='menteecontactinformation',
name='facebook_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='menteecontactinformation',
name='linkedin_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='menteecontactinformation',
name='personal_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='mentorcontactinformation',
name='facebook_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='mentorcontactinformation',
name='linkedin_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AlterField(
model_name='mentorcontactinformation',
name='personal_url',
field=models.CharField(blank=True, max_length=100, null=True),
),
]
| 32.673913
| 74
| 0.612109
| 144
| 1,503
| 6.208333
| 0.333333
| 0.134228
| 0.167785
| 0.194631
| 0.785235
| 0.785235
| 0.725951
| 0.725951
| 0.725951
| 0.725951
| 0
| 0.04512
| 0.277445
| 1,503
| 45
| 75
| 33.4
| 0.778085
| 0.043247
| 0
| 0.789474
| 1
| 0
| 0.172822
| 0.116376
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.052632
| 0
| 0.131579
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c28bceb1c95032cfb451884b49aa421437587537
| 5,751
|
py
|
Python
|
netaddr/tests/ip/test_platform_osx.py
|
Rockly/netaddr
|
9c3b71bf34f2132ced0e143d1a7f5efa706caf48
|
[
"BSD-3-Clause"
] | 416
|
2015-01-02T18:23:32.000Z
|
2020-01-17T02:08:01.000Z
|
netaddr/tests/ip/test_platform_osx.py
|
Rockly/netaddr
|
9c3b71bf34f2132ced0e143d1a7f5efa706caf48
|
[
"BSD-3-Clause"
] | 110
|
2015-01-07T16:14:40.000Z
|
2020-01-08T08:14:11.000Z
|
netaddr/tests/ip/test_platform_osx.py
|
Rockly/netaddr
|
9c3b71bf34f2132ced0e143d1a7f5efa706caf48
|
[
"BSD-3-Clause"
] | 108
|
2015-02-25T09:47:31.000Z
|
2020-01-16T14:24:08.000Z
|
import platform
import pytest
from netaddr import iprange_to_cidrs, IPNetwork, IPAddress, INET_PTON, AddrFormatError
from netaddr.strategy.ipv6 import int_to_str
@pytest.mark.skipif('sys.platform != "darwin"')
def test_ip_behaviour_osx():
assert iprange_to_cidrs('::1', '::255.255.255.254') == [
IPNetwork('::1/128'),
IPNetwork('::0.0.0.2/127'),
IPNetwork('::0.0.0.4/126'),
IPNetwork('::0.0.0.8/125'),
IPNetwork('::0.0.0.16/124'),
IPNetwork('::0.0.0.32/123'),
IPNetwork('::0.0.0.64/122'),
IPNetwork('::0.0.0.128/121'),
IPNetwork('::0.0.1.0/120'),
IPNetwork('::0.0.2.0/119'),
IPNetwork('::0.0.4.0/118'),
IPNetwork('::0.0.8.0/117'),
IPNetwork('::0.0.16.0/116'),
IPNetwork('::0.0.32.0/115'),
IPNetwork('::0.0.64.0/114'),
IPNetwork('::0.0.128.0/113'),
IPNetwork('::0.1.0.0/112'),
IPNetwork('::0.2.0.0/111'),
IPNetwork('::0.4.0.0/110'),
IPNetwork('::0.8.0.0/109'),
IPNetwork('::0.16.0.0/108'),
IPNetwork('::0.32.0.0/107'),
IPNetwork('::0.64.0.0/106'),
IPNetwork('::0.128.0.0/105'),
IPNetwork('::1.0.0.0/104'),
IPNetwork('::2.0.0.0/103'),
IPNetwork('::4.0.0.0/102'),
IPNetwork('::8.0.0.0/101'),
IPNetwork('::16.0.0.0/100'),
IPNetwork('::32.0.0.0/99'),
IPNetwork('::64.0.0.0/98'),
IPNetwork('::128.0.0.0/98'),
IPNetwork('::192.0.0.0/99'),
IPNetwork('::224.0.0.0/100'),
IPNetwork('::240.0.0.0/101'),
IPNetwork('::248.0.0.0/102'),
IPNetwork('::252.0.0.0/103'),
IPNetwork('::254.0.0.0/104'),
IPNetwork('::255.0.0.0/105'),
IPNetwork('::255.128.0.0/106'),
IPNetwork('::255.192.0.0/107'),
IPNetwork('::255.224.0.0/108'),
IPNetwork('::255.240.0.0/109'),
IPNetwork('::255.248.0.0/110'),
IPNetwork('::255.252.0.0/111'),
IPNetwork('::255.254.0.0/112'),
IPNetwork('::255.255.0.0/113'),
IPNetwork('::255.255.128.0/114'),
IPNetwork('::255.255.192.0/115'),
IPNetwork('::255.255.224.0/116'),
IPNetwork('::255.255.240.0/117'),
IPNetwork('::255.255.248.0/118'),
IPNetwork('::255.255.252.0/119'),
IPNetwork('::255.255.254.0/120'),
IPNetwork('::255.255.255.0/121'),
IPNetwork('::255.255.255.128/122'),
IPNetwork('::255.255.255.192/123'),
IPNetwork('::255.255.255.224/124'),
IPNetwork('::255.255.255.240/125'),
IPNetwork('::255.255.255.248/126'),
IPNetwork('::255.255.255.252/127'),
IPNetwork('::255.255.255.254/128'),
]
# inet_pton has to be different on Mac OSX *sigh*...
assert IPAddress('010.000.000.001', flags=INET_PTON) == IPAddress('10.0.0.1')
# ...but at least Apple changed inet_ntop in Mac OS 10.15 (Catalina) so it's compatible with Linux
if platform.mac_ver()[0] >= '10.15':
assert int_to_str(0xffff) == '::ffff'
else:
assert int_to_str(0xffff) == '::0.0.255.255'
@pytest.mark.skipif('sys.platform == "darwin"')
def test_ip_behaviour_non_osx():
assert iprange_to_cidrs('::1', '::255.255.255.254') == [
IPNetwork('::1/128'),
IPNetwork('::2/127'),
IPNetwork('::4/126'),
IPNetwork('::8/125'),
IPNetwork('::10/124'),
IPNetwork('::20/123'),
IPNetwork('::40/122'),
IPNetwork('::80/121'),
IPNetwork('::100/120'),
IPNetwork('::200/119'),
IPNetwork('::400/118'),
IPNetwork('::800/117'),
IPNetwork('::1000/116'),
IPNetwork('::2000/115'),
IPNetwork('::4000/114'),
IPNetwork('::8000/113'),
IPNetwork('::0.1.0.0/112'),
IPNetwork('::0.2.0.0/111'),
IPNetwork('::0.4.0.0/110'),
IPNetwork('::0.8.0.0/109'),
IPNetwork('::0.16.0.0/108'),
IPNetwork('::0.32.0.0/107'),
IPNetwork('::0.64.0.0/106'),
IPNetwork('::0.128.0.0/105'),
IPNetwork('::1.0.0.0/104'),
IPNetwork('::2.0.0.0/103'),
IPNetwork('::4.0.0.0/102'),
IPNetwork('::8.0.0.0/101'),
IPNetwork('::16.0.0.0/100'),
IPNetwork('::32.0.0.0/99'),
IPNetwork('::64.0.0.0/98'),
IPNetwork('::128.0.0.0/98'),
IPNetwork('::192.0.0.0/99'),
IPNetwork('::224.0.0.0/100'),
IPNetwork('::240.0.0.0/101'),
IPNetwork('::248.0.0.0/102'),
IPNetwork('::252.0.0.0/103'),
IPNetwork('::254.0.0.0/104'),
IPNetwork('::255.0.0.0/105'),
IPNetwork('::255.128.0.0/106'),
IPNetwork('::255.192.0.0/107'),
IPNetwork('::255.224.0.0/108'),
IPNetwork('::255.240.0.0/109'),
IPNetwork('::255.248.0.0/110'),
IPNetwork('::255.252.0.0/111'),
IPNetwork('::255.254.0.0/112'),
IPNetwork('::255.255.0.0/113'),
IPNetwork('::255.255.128.0/114'),
IPNetwork('::255.255.192.0/115'),
IPNetwork('::255.255.224.0/116'),
IPNetwork('::255.255.240.0/117'),
IPNetwork('::255.255.248.0/118'),
IPNetwork('::255.255.252.0/119'),
IPNetwork('::255.255.254.0/120'),
IPNetwork('::255.255.255.0/121'),
IPNetwork('::255.255.255.128/122'),
IPNetwork('::255.255.255.192/123'),
IPNetwork('::255.255.255.224/124'),
IPNetwork('::255.255.255.240/125'),
IPNetwork('::255.255.255.248/126'),
IPNetwork('::255.255.255.252/127'),
IPNetwork('::255.255.255.254/128'),
]
# Sadly, inet_pton cannot help us here ...
with pytest.raises(AddrFormatError):
IPAddress('010.000.000.001', flags=INET_PTON)
assert int_to_str(0xffff) == '::ffff'
| 36.630573
| 102
| 0.517649
| 848
| 5,751
| 3.477594
| 0.143868
| 0.078671
| 0.03764
| 0.09766
| 0.727026
| 0.720244
| 0.703967
| 0.703967
| 0.680909
| 0.680909
| 0
| 0.278364
| 0.226048
| 5,751
| 156
| 103
| 36.865385
| 0.384183
| 0.033038
| 0
| 0.680556
| 0
| 0
| 0.362196
| 0.052925
| 0
| 0
| 0.00324
| 0
| 0.041667
| 1
| 0.013889
| true
| 0
| 0.027778
| 0
| 0.041667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c2b649f0295ef6c62d82e629c0521fc95bc860a1
| 5,099
|
py
|
Python
|
tests/test_fields.py
|
bicyclemicycle/docxcompose
|
2b8d07f545302e0730d8be514839a8f5cb3bf930
|
[
"MIT"
] | 66
|
2017-09-15T17:28:48.000Z
|
2022-03-30T18:08:22.000Z
|
tests/test_fields.py
|
bicyclemicycle/docxcompose
|
2b8d07f545302e0730d8be514839a8f5cb3bf930
|
[
"MIT"
] | 49
|
2017-10-13T07:23:19.000Z
|
2022-03-30T08:21:52.000Z
|
tests/test_fields.py
|
4teamwork/docxmerge
|
1584b79c7ba6ef1c7477de2615c6564e11667b06
|
[
"MIT"
] | 21
|
2019-01-23T14:45:52.000Z
|
2022-03-21T08:15:30.000Z
|
from datetime import datetime
from docxcompose.properties import FieldBase
from docxcompose.utils import word_to_python_date_format
class FieldForTesting(FieldBase):
def _get_fieldname_string(self):
return self.node
class TestFieldNameParsing(object):
def test_can_parse_quoted_property_names(self):
node = ' DOCPROPERTY "Propertyname" \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
def test_can_parse_unquoted_property_names(self):
node = ' DOCPROPERTY Propertyname \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
def test_can_parse_quoted_property_names_with_spaces(self):
node = ' DOCPROPERTY "Text Property" \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Text Property"
def test_can_parse_unquoted_property_names_with_spaces(self):
node = ' DOCPROPERTY Text Property \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Text Property"
def test_can_parse_quoted_property_names_with_extra_spaces(self):
node = ' DOCPROPERTY "Text Property" \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Text Property"
def test_can_parse_unquoted_property_names_with_extra_spaces(self):
node = ' DOCPROPERTY Text Property \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Text Property"
class TestFieldDateFormatParsing(object):
def test_can_parse_quoted_date_format(self):
node = ' DOCPROPERTY "Propertyname" \\@ "dd-yy-mm" \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d-%y-%M"
def test_can_parse_quoted_date_format_with_spaces(self):
node = ' DOCPROPERTY "Propertyname" \\@ "dd yy mm" \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d %y %M"
def test_can_parse_quoted_date_format_with_extra_spaces(self):
node = ' DOCPROPERTY "Propertyname" \\@ "dd yy mm" \\* MERGEFORMAT'
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d %y %M"
def test_can_parse_unquoted_date_format(self):
node = ' DOCPROPERTY "Propertyname" \\@ dd-yy-mm \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d-%y-%M"
def test_can_parse_unquoted_date_format_with_spaces(self):
node = ' DOCPROPERTY "Propertyname" \\@ dd yy mm \\* MERGEFORMAT '
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d %y %M"
def test_can_parse_unquoted_date_format_with_extra_spaces(self):
node = ' DOCPROPERTY "Propertyname" \\@ dd yy mm \\* MERGEFORMAT'
assert FieldForTesting(node).name == "Propertyname"
assert FieldForTesting(node).date_format == "%d %y %M"
class TestFieldDateFormatMapping(object):
def test_correctly_maps_simple_date(self):
date = datetime(2020, 11, 19)
assert word_to_python_date_format('yy/MM/dd') == '%y/%m/%d'
assert word_to_python_date_format('YY/MM/DD') == '%y/%m/%d'
assert date.strftime(
word_to_python_date_format('yy/MM/dd')) == '20/11/19'
assert word_to_python_date_format('yyyy/MM/dd') == '%Y/%m/%d'
assert word_to_python_date_format('YYYY/MM/DD') == '%Y/%m/%d'
assert date.strftime(
word_to_python_date_format('YYYY/MM/DD')) == '2020/11/19'
def test_correctly_maps_date_padding(self):
date = datetime(2001, 2, 4)
assert word_to_python_date_format('yy/MM/dd') == '%y/%m/%d'
assert date.strftime(
word_to_python_date_format('yy/MM/dd')) == '01/02/04'
assert word_to_python_date_format('yy/M/d') == '%y/%-m/%-d'
assert date.strftime(
word_to_python_date_format('yy/M/d')) == '01/2/4'
def test_correctly_maps_date_with_weekday_and_month_name(self):
date = datetime(2020, 11, 19, 23, 59, 43)
assert word_to_python_date_format('ddd dd MMM yyyy') == '%a %d %b %Y'
assert date.strftime(
word_to_python_date_format('ddd dd MMM yyyy')) == 'Thu 19 Nov 2020'
assert word_to_python_date_format('dddd dd MMMM yyyy') == '%A %d %B %Y'
assert date.strftime(word_to_python_date_format(
'dddd dd MMMM yyyy')) == 'Thursday 19 November 2020'
def test_correctly_maps_date_with_time(self):
date = datetime(2020, 11, 19, 1, 9, 8)
assert word_to_python_date_format(
'ddd DD MMM YYYY HH:mm:ss') == '%a %d %b %Y %H:%M:%S'
assert date.strftime(word_to_python_date_format(
'ddd DD MMM YYYY HH:mm:ss')) == 'Thu 19 Nov 2020 01:09:08'
assert word_to_python_date_format(
'ddd DD MMM YYYY H:m:s') == '%a %d %b %Y %-H:%-M:%-S'
assert date.strftime(word_to_python_date_format(
'ddd DD MMM YYYY H:m:s')) == 'Thu 19 Nov 2020 1:9:8'
| 42.140496
| 79
| 0.66464
| 667
| 5,099
| 4.802099
| 0.133433
| 0.096784
| 0.071183
| 0.094911
| 0.865439
| 0.851077
| 0.806744
| 0.78926
| 0.771776
| 0.757415
| 0
| 0.023904
| 0.212395
| 5,099
| 120
| 80
| 42.491667
| 0.773655
| 0
| 0
| 0.436782
| 0
| 0
| 0.252599
| 0
| 0
| 0
| 0
| 0
| 0.413793
| 1
| 0.195402
| false
| 0
| 0.034483
| 0.011494
| 0.287356
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c2e8cdd1aa6660019650dc82f448bfe349de7ec0
| 1,229
|
py
|
Python
|
test/regexp/python9.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/regexp/python9.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/regexp/python9.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
a = r'foo[^]'
a = r'foo[]'
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.single.python
' : punctuation.definition.string.begin.python, source.python, string.regexp.quoted.single.python
foo : source.python, string.regexp.quoted.single.python
[^] : source.python, string.regexp.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.regexp.quoted.single.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.single.python
' : punctuation.definition.string.begin.python, source.python, string.regexp.quoted.single.python
foo : source.python, string.regexp.quoted.single.python
[] : source.python, string.regexp.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.regexp.quoted.single.python
| 53.434783
| 109
| 0.644426
| 134
| 1,229
| 5.910448
| 0.134328
| 0.272727
| 0.272727
| 0.30303
| 0.987374
| 0.987374
| 0.987374
| 0.987374
| 0.987374
| 0.987374
| 0
| 0
| 0.238405
| 1,229
| 22
| 110
| 55.863636
| 0.846154
| 0
| 0
| 0.8
| 0
| 0.1
| 0.00895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
c2f2be91960d4a38ffbeef786ce4063823274bce
| 44
|
py
|
Python
|
tests/test_hueniversity_py.py
|
vermashivam679/hueniversity_py
|
20a768cf7e04637e5b6d517d9ba544f64b1c8d7a
|
[
"MIT"
] | null | null | null |
tests/test_hueniversity_py.py
|
vermashivam679/hueniversity_py
|
20a768cf7e04637e5b6d517d9ba544f64b1c8d7a
|
[
"MIT"
] | null | null | null |
tests/test_hueniversity_py.py
|
vermashivam679/hueniversity_py
|
20a768cf7e04637e5b6d517d9ba544f64b1c8d7a
|
[
"MIT"
] | null | null | null |
from hueniversity_py import hueniversity_py
| 22
| 43
| 0.909091
| 6
| 44
| 6.333333
| 0.666667
| 0.736842
| 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 | 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
| 7
|
6c3730bb4df4c3fbccc2dbb911006dd686a734ee
| 31,058
|
py
|
Python
|
adaptive/interface/adaptive/Adaptive.py
|
scwolof/adaptive
|
9f7475400aa0469778cb60d5ce9c95d9ca359174
|
[
"MIT"
] | null | null | null |
adaptive/interface/adaptive/Adaptive.py
|
scwolof/adaptive
|
9f7475400aa0469778cb60d5ce9c95d9ca359174
|
[
"MIT"
] | null | null | null |
adaptive/interface/adaptive/Adaptive.py
|
scwolof/adaptive
|
9f7475400aa0469778cb60d5ce9c95d9ca359174
|
[
"MIT"
] | null | null | null |
#
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive import fix_spec
import sys
import logging
from .ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
all_structs = []
class Iface(object):
def createUserAccount(self, userData):
"""
Parameters:
- userData
"""
pass
def user_request(self, reqData):
"""
Parameters:
- reqData
"""
pass
def createBizAccount(self, bizData):
"""
Parameters:
- bizData
"""
pass
def biz_request(self, reqData):
"""
Parameters:
- reqData
"""
pass
def registerAdEvent(self, adEvent):
"""
Parameters:
- adEvent
"""
pass
class Client(Iface):
def __init__(self, iprot, oprot=None):
self._iprot = self._oprot = iprot
if oprot is not None:
self._oprot = oprot
self._seqid = 0
def createUserAccount(self, userData):
"""
Parameters:
- userData
"""
self.send_createUserAccount(userData)
return self.recv_createUserAccount()
def send_createUserAccount(self, userData):
self._oprot.writeMessageBegin('createUserAccount', TMessageType.CALL, self._seqid)
args = createUserAccount_args()
args.userData = userData
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_createUserAccount(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = createUserAccount_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
raise TApplicationException(TApplicationException.MISSING_RESULT, "createUserAccount failed: unknown result")
def user_request(self, reqData):
"""
Parameters:
- reqData
"""
self.send_user_request(reqData)
return self.recv_user_request()
def send_user_request(self, reqData):
self._oprot.writeMessageBegin('user_request', TMessageType.CALL, self._seqid)
args = user_request_args()
args.reqData = reqData
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_user_request(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = user_request_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.error is not None:
raise result.error
raise TApplicationException(TApplicationException.MISSING_RESULT, "user_request failed: unknown result")
def createBizAccount(self, bizData):
"""
Parameters:
- bizData
"""
self.send_createBizAccount(bizData)
return self.recv_createBizAccount()
def send_createBizAccount(self, bizData):
self._oprot.writeMessageBegin('createBizAccount', TMessageType.CALL, self._seqid)
args = createBizAccount_args()
args.bizData = bizData
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_createBizAccount(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = createBizAccount_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
raise TApplicationException(TApplicationException.MISSING_RESULT, "createBizAccount failed: unknown result")
def biz_request(self, reqData):
"""
Parameters:
- reqData
"""
self.send_biz_request(reqData)
return self.recv_biz_request()
def send_biz_request(self, reqData):
self._oprot.writeMessageBegin('biz_request', TMessageType.CALL, self._seqid)
args = biz_request_args()
args.reqData = reqData
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
def recv_biz_request(self):
iprot = self._iprot
(fname, mtype, rseqid) = iprot.readMessageBegin()
if mtype == TMessageType.EXCEPTION:
x = TApplicationException()
x.read(iprot)
iprot.readMessageEnd()
raise x
result = biz_request_result()
result.read(iprot)
iprot.readMessageEnd()
if result.success is not None:
return result.success
if result.error is not None:
raise result.error
raise TApplicationException(TApplicationException.MISSING_RESULT, "biz_request failed: unknown result")
def registerAdEvent(self, adEvent):
"""
Parameters:
- adEvent
"""
self.send_registerAdEvent(adEvent)
def send_registerAdEvent(self, adEvent):
self._oprot.writeMessageBegin('registerAdEvent', TMessageType.ONEWAY, self._seqid)
args = registerAdEvent_args()
args.adEvent = adEvent
args.write(self._oprot)
self._oprot.writeMessageEnd()
self._oprot.trans.flush()
class Processor(Iface, TProcessor):
def __init__(self, handler):
self._handler = handler
self._processMap = {}
self._processMap["createUserAccount"] = Processor.process_createUserAccount
self._processMap["user_request"] = Processor.process_user_request
self._processMap["createBizAccount"] = Processor.process_createBizAccount
self._processMap["biz_request"] = Processor.process_biz_request
self._processMap["registerAdEvent"] = Processor.process_registerAdEvent
def process(self, iprot, oprot):
(name, type, seqid) = iprot.readMessageBegin()
if name not in self._processMap:
iprot.skip(TType.STRUCT)
iprot.readMessageEnd()
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
x.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
return
else:
self._processMap[name](self, seqid, iprot, oprot)
return True
def process_createUserAccount(self, seqid, iprot, oprot):
args = createUserAccount_args()
args.read(iprot)
iprot.readMessageEnd()
result = createUserAccount_result()
try:
result.success = self._handler.createUserAccount(args.userData)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("createUserAccount", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_user_request(self, seqid, iprot, oprot):
args = user_request_args()
args.read(iprot)
iprot.readMessageEnd()
result = user_request_result()
try:
result.success = self._handler.user_request(args.reqData)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except adaptive.interface.constants.exceptions.ttypes.ServerException as error:
msg_type = TMessageType.REPLY
result.error = error
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("user_request", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_createBizAccount(self, seqid, iprot, oprot):
args = createBizAccount_args()
args.read(iprot)
iprot.readMessageEnd()
result = createBizAccount_result()
try:
result.success = self._handler.createBizAccount(args.bizData)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("createBizAccount", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_biz_request(self, seqid, iprot, oprot):
args = biz_request_args()
args.read(iprot)
iprot.readMessageEnd()
result = biz_request_result()
try:
result.success = self._handler.biz_request(args.reqData)
msg_type = TMessageType.REPLY
except TTransport.TTransportException:
raise
except adaptive.interface.constants.exceptions.ttypes.ServerException as error:
msg_type = TMessageType.REPLY
result.error = error
except TApplicationException as ex:
logging.exception('TApplication exception in handler')
msg_type = TMessageType.EXCEPTION
result = ex
except Exception:
logging.exception('Unexpected exception in handler')
msg_type = TMessageType.EXCEPTION
result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
oprot.writeMessageBegin("biz_request", msg_type, seqid)
result.write(oprot)
oprot.writeMessageEnd()
oprot.trans.flush()
def process_registerAdEvent(self, seqid, iprot, oprot):
args = registerAdEvent_args()
args.read(iprot)
iprot.readMessageEnd()
try:
self._handler.registerAdEvent(args.adEvent)
except TTransport.TTransportException:
raise
except Exception:
logging.exception('Exception in oneway handler')
# HELPER FUNCTIONS AND STRUCTURES
class createUserAccount_args(object):
"""
Attributes:
- userData
"""
def __init__(self, userData=None,):
self.userData = userData
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.userData = adaptive.interface.user_data.ttypes.UserAccountCreation()
self.userData.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('createUserAccount_args')
if self.userData is not None:
oprot.writeFieldBegin('userData', TType.STRUCT, 1)
self.userData.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(createUserAccount_args)
createUserAccount_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'userData', [adaptive.interface.user_data.ttypes.UserAccountCreation, None], None, ), # 1
)
class createUserAccount_result(object):
"""
Attributes:
- success
"""
def __init__(self, success=None,):
self.success = success
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I32:
self.success = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('createUserAccount_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I32, 0)
oprot.writeI32(self.success)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(createUserAccount_result)
createUserAccount_result.thrift_spec = (
(0, TType.I32, 'success', None, None, ), # 0
)
class user_request_args(object):
"""
Attributes:
- reqData
"""
def __init__(self, reqData=None,):
self.reqData = reqData
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.reqData = UserAdRequest()
self.reqData.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('user_request_args')
if self.reqData is not None:
oprot.writeFieldBegin('reqData', TType.STRUCT, 1)
self.reqData.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(user_request_args)
user_request_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'reqData', [UserAdRequest, None], None, ), # 1
)
class user_request_result(object):
"""
Attributes:
- success
- error
"""
def __init__(self, success=None, error=None,):
self.success = success
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = UserAdResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.error = adaptive.interface.constants.exceptions.ttypes.ServerException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('user_request_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(user_request_result)
user_request_result.thrift_spec = (
(0, TType.STRUCT, 'success', [UserAdResponse, None], None, ), # 0
(1, TType.STRUCT, 'error', [adaptive.interface.constants.exceptions.ttypes.ServerException, None], None, ), # 1
)
class createBizAccount_args(object):
"""
Attributes:
- bizData
"""
def __init__(self, bizData=None,):
self.bizData = bizData
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.bizData = adaptive.interface.biz_data.ttypes.BizAccountCreation()
self.bizData.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('createBizAccount_args')
if self.bizData is not None:
oprot.writeFieldBegin('bizData', TType.STRUCT, 1)
self.bizData.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(createBizAccount_args)
createBizAccount_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'bizData', [adaptive.interface.biz_data.ttypes.BizAccountCreation, None], None, ), # 1
)
class createBizAccount_result(object):
"""
Attributes:
- success
"""
def __init__(self, success=None,):
self.success = success
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.I32:
self.success = iprot.readI32()
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('createBizAccount_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.I32, 0)
oprot.writeI32(self.success)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(createBizAccount_result)
createBizAccount_result.thrift_spec = (
(0, TType.I32, 'success', None, None, ), # 0
)
class biz_request_args(object):
"""
Attributes:
- reqData
"""
def __init__(self, reqData=None,):
self.reqData = reqData
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.reqData = BizAdRequest()
self.reqData.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('biz_request_args')
if self.reqData is not None:
oprot.writeFieldBegin('reqData', TType.STRUCT, 1)
self.reqData.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(biz_request_args)
biz_request_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'reqData', [BizAdRequest, None], None, ), # 1
)
class biz_request_result(object):
"""
Attributes:
- success
- error
"""
def __init__(self, success=None, error=None,):
self.success = success
self.error = error
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 0:
if ftype == TType.STRUCT:
self.success = BizAdResponse()
self.success.read(iprot)
else:
iprot.skip(ftype)
elif fid == 1:
if ftype == TType.STRUCT:
self.error = adaptive.interface.constants.exceptions.ttypes.ServerException()
self.error.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('biz_request_result')
if self.success is not None:
oprot.writeFieldBegin('success', TType.STRUCT, 0)
self.success.write(oprot)
oprot.writeFieldEnd()
if self.error is not None:
oprot.writeFieldBegin('error', TType.STRUCT, 1)
self.error.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(biz_request_result)
biz_request_result.thrift_spec = (
(0, TType.STRUCT, 'success', [BizAdResponse, None], None, ), # 0
(1, TType.STRUCT, 'error', [adaptive.interface.constants.exceptions.ttypes.ServerException, None], None, ), # 1
)
class registerAdEvent_args(object):
"""
Attributes:
- adEvent
"""
def __init__(self, adEvent=None,):
self.adEvent = adEvent
def read(self, iprot):
if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.adEvent = adaptive.interface.ad_event.ttypes.AdEvent()
self.adEvent.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot._fast_encode is not None and self.thrift_spec is not None:
oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
return
oprot.writeStructBegin('registerAdEvent_args')
if self.adEvent is not None:
oprot.writeFieldBegin('adEvent', TType.STRUCT, 1)
self.adEvent.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.items()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
all_structs.append(registerAdEvent_args)
registerAdEvent_args.thrift_spec = (
None, # 0
(1, TType.STRUCT, 'adEvent', [adaptive.interface.ad_event.ttypes.AdEvent, None], None, ), # 1
)
fix_spec(all_structs)
del all_structs
| 33.576216
| 134
| 0.603419
| 3,182
| 31,058
| 5.64362
| 0.054683
| 0.015035
| 0.027063
| 0.020047
| 0.826874
| 0.80304
| 0.769518
| 0.72948
| 0.714166
| 0.714166
| 0
| 0.00339
| 0.297057
| 31,058
| 924
| 135
| 33.612554
| 0.819165
| 0.020896
| 0
| 0.778711
| 1
| 0
| 0.038435
| 0.003011
| 0
| 0
| 0
| 0
| 0
| 1
| 0.12605
| false
| 0.007003
| 0.011204
| 0.037815
| 0.243697
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
6c658b35c800350570b0d4c585a72400755d3c24
| 179
|
py
|
Python
|
examples/drjr-demo/core/admin.py
|
janos-gonye/django-rest-jwt-registration
|
d16389f66ae8a87bcb6ac7df51394329aa8e6a05
|
[
"MIT"
] | null | null | null |
examples/drjr-demo/core/admin.py
|
janos-gonye/django-rest-jwt-registration
|
d16389f66ae8a87bcb6ac7df51394329aa8e6a05
|
[
"MIT"
] | 1
|
2022-03-15T00:12:58.000Z
|
2022-03-18T22:15:51.000Z
|
examples/drjr-demo/core/admin.py
|
janos-gonye/django-rest-jwt-registration
|
d16389f66ae8a87bcb6ac7df51394329aa8e6a05
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model
admin.site.register(get_user_model(), UserAdmin)
| 25.571429
| 48
| 0.837989
| 27
| 179
| 5.407407
| 0.444444
| 0.205479
| 0.349315
| 0.287671
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089385
| 179
| 6
| 49
| 29.833333
| 0.895706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 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
| 8
|
66da0cbe3636d1753e6e6b830912874754dac006
| 1,450
|
py
|
Python
|
zkay/examples/scenarios/nested_if.py
|
nibau/zkay
|
da04760088767e05214aac2d2beee4cbf8ed77f6
|
[
"MIT"
] | null | null | null |
zkay/examples/scenarios/nested_if.py
|
nibau/zkay
|
da04760088767e05214aac2d2beee4cbf8ed77f6
|
[
"MIT"
] | null | null | null |
zkay/examples/scenarios/nested_if.py
|
nibau/zkay
|
da04760088767e05214aac2d2beee4cbf8ed77f6
|
[
"MIT"
] | null | null | null |
from zkay.examples.scenario import ScenarioBuilder
a = 'a'
sb = ScenarioBuilder('NestedIfStatements', 'code/NestedIfCond.zkay').set_users(a)
sb.set_deployment_transaction(owner=a)
sb.add_balance_assertion(0)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=False)
sb.add_state_assertion('res', user=a, should_decrypt=True, expected_value=0)
sb.add_transaction('test_if', [51], user=a)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=True)
sb.add_state_assertion('res', user=a, should_decrypt=True, expected_value=2)
sb.add_state_assertion('res2', expected_value=10)
sb.add_transaction('test_if', [43], user=a)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=True)
sb.add_state_assertion('res', user=a, should_decrypt=True, expected_value=3)
sb.add_state_assertion('res2', user=a, expected_value=15)
sb.add_transaction('test_if', [42], user=a)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=False)
sb.add_state_assertion('res', user=a, should_decrypt=True, expected_value=3)
sb.add_state_assertion('res2', user=a, expected_value=15)
sb.add_transaction('test_if', [0], user=a)
sb.add_state_assertion('val', user=a, should_decrypt=True, expected_value=False)
sb.add_state_assertion('res', user=a, should_decrypt=True, expected_value=4)
sb.add_state_assertion('res2', user=a, expected_value=20)
sb.add_balance_assertion(0)
SCENARIO = sb.build()
| 46.774194
| 81
| 0.792414
| 236
| 1,450
| 4.584746
| 0.182203
| 0.092421
| 0.12939
| 0.245841
| 0.82902
| 0.726433
| 0.726433
| 0.726433
| 0.726433
| 0.68854
| 0
| 0.019048
| 0.058621
| 1,450
| 30
| 82
| 48.333333
| 0.773626
| 0
| 0
| 0.44
| 0
| 0
| 0.07931
| 0.015172
| 0
| 0
| 0
| 0
| 0.64
| 1
| 0
| false
| 0
| 0.04
| 0
| 0.04
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
66e9c51385b0e2c94cb188b2969c91277ae6e563
| 6,009
|
py
|
Python
|
academia_ai/neural_network/layers/sigmoid.py
|
Knuppknou/academia_AI
|
a6605150e9b1afc390c35230620f45c1e75464f5
|
[
"MIT"
] | 4
|
2017-04-23T10:15:14.000Z
|
2017-04-23T10:47:29.000Z
|
academia_ai/neural_network/layers/sigmoid.py
|
Knuppknou/academia_AI
|
a6605150e9b1afc390c35230620f45c1e75464f5
|
[
"MIT"
] | null | null | null |
academia_ai/neural_network/layers/sigmoid.py
|
Knuppknou/academia_AI
|
a6605150e9b1afc390c35230620f45c1e75464f5
|
[
"MIT"
] | 3
|
2017-01-16T08:08:34.000Z
|
2017-04-23T10:15:31.000Z
|
import numpy as np
class SigmoidLayer(object):
''' With the sigmoid function the data pixels are set on 0 or 1 generally.
tp is the turning point of the sigmoid function.
m is the slope of the function.
Todo: implement Gauss distribution
'''
class Sigmoid(object):
def sigmoid(x, tp, m):
y = 1 / (1 + (np.exp(-m * (x - tp))))
return y
sigmoid_vector = np.vectorize(sigmoid)
def __init__(self, tp=0, m=20):
self.tp = tp
self.m = m
# ignore self, data[depth][i][j]
def forward_prop(self, data):
new_data = np.zeros(data.shape)
new_data = self.sigmoid_vector(data, self.tp, self.m)
return new_data
def back_prop(self, data):
return self.m * self.sigmoid_vector(data, self.tp, self.m) * (
1 - self.sigmoid_vector(data, self.tp, self.m))
def __init__(self, tp=0.5, m=20, shape=(2, 2), learning=True):
self.shape = shape
self.learning = learning
sl_list = []
tp_list = []
m_list = []
# produce a vector with the Sigmoid(data) of each olddata
# with the turning_point of each
# with the slope m of each
for x in range(np.product(self.shape)):
sl_list.append(SigmoidLayer.Sigmoid(tp, m))
tp_list.append(tp)
m_list.append(m)
self.sl_vector = np.array(sl_list)
self.tp_vector = np.array(tp_list)
self.m_vector = np.array(m_list)
def pprint(self):
print("sigmoid layer with shape=", self.shape)
def forward_prop(self, data, debug=False):
if not(data.shape == self.shape):
print("Error: shapes do not match")
self.i_vector = data.ravel().copy()
o_list = []
for x in range(np.product(self.shape)):
o_list.append(self.sl_vector[x].forward_prop(self.i_vector[x]))
self.o_vector = np.array(o_list)
return self.o_vector.reshape(self.shape)
def back_prop(self, data, epsilon=0):
data = data.ravel().copy()
o = self.o_vector
dedtp = data * (self.m_vector * o * (o - 1))
# print("dedtp=",dedtp)
dedm = data * ((self.tp_vector - self.i_vector) * o * (o - 1))
# print("dedm=",dedm)
if (self.learning or epsilon != 0):
# newtp and newm produced with the learningrate epsilon and tp and
# m updated
self.tp_vector = self.tp_vector - epsilon * dedtp
# TODO: Why is the learning of m so much slower?
self.m_vector = self.m_vector - 100 * epsilon * dedm
for i in range(len(self.sl_vector)):
self.sl_vector[i].m = self.m_vector[i]
self.sl_vector[i].tp = self.tp_vector[i]
# dedi
dEdi = data * (self.m_vector * o * (1 - o))
return dEdi.reshape(self.shape)
class SigmoidLayerSHAPE(object):
''' With the sigmoid function the data pixels are set on 0 or 1 generally.
tp is the turning point of the sigmoid function.
m is the slope of the function.
Todo: implement Gauss distribution
'''
class Sigmoid(object):
def sigmoid(x, tp, m):
y = 1 / (1 + (np.exp(-m * (x - tp))))
return y
sigmoid_vector = np.vectorize(sigmoid)
def __init__(self, tp=0, m=20):
self.tp = tp
self.m = m
# ignore self, data[depth][i][j]
def forward_prop(self, data):
new_data = np.zeros(data.shape)
new_data = self.sigmoid_vector(data, self.tp, self.m)
return new_data
def back_prop(self, data):
return self.m * self.sigmoid_vector(data, self.tp, self.m) * (
1 - self.sigmoid_vector(data, self.tp, self.m))
def __init__(self, in_shape = (2,2), tp=0.5, m=20, learning=True):
self.in_shape = in_shape
self.out_shape = out_shape
self.learning = learning
sl_list = []
tp_list = []
m_list = []
# produce a vector with the Sigmoid(data) of each olddata
# with the turning_point of each
# with the slope m of each
for x in range(np.product(self.in_shape)):
sl_list.append(SigmoidLayer.Sigmoid(tp, m))
tp_list.append(tp)
m_list.append(m)
self.sl_vector = np.array(sl_list)
self.tp_vector = np.array(tp_list)
self.m_vector = np.array(m_list)
def pprint(self):
print("sigmoid layer with shape=", self.in_shape)
def forward_prop(self, data, debug=False):
if not(data.shape == self.in_shape):
print("Error: shapes do not match")
self.i_vector = data.ravel().copy()
o_list = []
for x in range(np.product(self.in_shape)):
o_list.append(self.sl_vector[x].forward_prop(self.i_vector[x]))
self.o_vector = np.array(o_list)
return self.o_vector.reshape(self.in_shape)
def back_prop(self, data, epsilon=0):
data = data.ravel().copy()
o = self.o_vector
dedtp = data * (self.m_vector * o * (o - 1))
# print("dedtp=",dedtp)
dedm = data * ((self.tp_vector - self.i_vector) * o * (o - 1))
# print("dedm=",dedm)
if (self.learning or epsilon != 0):
# newtp and newm produced with the learningrate epsilon and tp and
# m updated
self.tp_vector = self.tp_vector - epsilon * dedtp
# TODO: Why is the learning of m so much slower?
self.m_vector = self.m_vector - 100 * epsilon * dedm
for i in range(len(self.sl_vector)):
self.sl_vector[i].m = self.m_vector[i]
self.sl_vector[i].tp = self.tp_vector[i]
# dedi
dEdi = data * (self.m_vector * o * (1 - o))
return dEdi.reshape(self.in_shape)
| 35.982036
| 78
| 0.559993
| 852
| 6,009
| 3.807512
| 0.117371
| 0.033909
| 0.040691
| 0.038841
| 0.952528
| 0.948212
| 0.948212
| 0.948212
| 0.948212
| 0.946979
| 0
| 0.010829
| 0.323848
| 6,009
| 167
| 79
| 35.982036
| 0.787595
| 0.177068
| 0
| 0.851852
| 0
| 0
| 0.020936
| 0
| 0
| 0
| 0
| 0.023952
| 0
| 1
| 0.148148
| false
| 0
| 0.009259
| 0.018519
| 0.287037
| 0.055556
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
dd176ddd3f51326b348707b83102ecd51bc0ec99
| 25,829
|
py
|
Python
|
bitcoinscript/samples.py
|
fungibit/bitcoinscript
|
ced6fb37dfa40eac7341826c758842e0ed7e7475
|
[
"MIT"
] | 1
|
2017-10-25T17:11:44.000Z
|
2017-10-25T17:11:44.000Z
|
bitcoinscript/samples.py
|
fungibit/bitcoinscript
|
ced6fb37dfa40eac7341826c758842e0ed7e7475
|
[
"MIT"
] | 3
|
2017-03-10T05:27:29.000Z
|
2017-04-07T16:06:28.000Z
|
bitcoinscript/samples.py
|
fungibit/bitcoinscript
|
ced6fb37dfa40eac7341826c758842e0ed7e7475
|
[
"MIT"
] | null | null | null |
"""
Samples of real scripts from the blockchains.
Part of this file is GENERATED USING bin/gen_samples.py! (by running it and copy/pasting the output).
"""
from bitcoin.core.scripteval import SCRIPT_VERIFY_P2SH
from .script import ScriptType, outscript_from_raw, inscript_from_raw
################################################################################
################################################################################
# *** BEGINNING OF GENERATED CODE *** --->
################################################################################
################################################################################
SCRIPT_SAMPLES = \
{'HASH_PREIMAGE': {'block_height': 301005,
'iidx': 0,
'inscript': '0f342038203135203136203233203432',
'oidx': 0,
'outscript': 'aa2072108f11d697b2435c7844a5b2bcebe3753b6ca18398f8b2ea57872b4c01965087',
'txblob': '0100000001a80309515fecc576c72da7865e43e7191729c2dc6ec8982402f745c4683aa1dd00000000100f342038203135203136203233203432ffffffff012f750000000000001976a914487747b3a9d3f7b68ab7f88f7115e91276bc851188ac00000000',
'txid': 'd23989de3915347552c03f382fb57b57a5c1cace8ecbe8f0c8fd971ca059b610'},
'IF': {'block_height': 323199,
'iidx': 0,
'inscript': '4df3010020202020202020202020202020202020202020200a5765277265206e6f20737472616e6765727320746f206c6f76650a596f75206b6e6f77207468652072756c657320616e6420736f20646f20490a412066756c6c20636f6d6d69746d656e74277320776861742049276d207468696e6b696e67206f660a596f7520776f756c646e27742067657420746869732066726f6d20616e79206f74686572206775790a49206a7573742077616e6e612074656c6c20796f7520686f772049276d206665656c696e670a476f747461206d616b6520796f7520756e6465727374616e640a20202020202020202020202020202020202020200a43484f52555320202020202020202020202020200a4e6576657220676f6e6e61206769766520796f752075702c0a4e6576657220676f6e6e61206c657420796f7520646f776e0a4e6576657220676f6e6e612072756e2061726f756e6420616e642064657365727420796f750a4e6576657220676f6e6e61206d616b6520796f75206372792c0a4e6576657220676f6e6e612073617920676f6f646279650a4e6576657220676f6e6e612074656c6c2061206c696520616e64206875727420796f750a20202020202020202020202020202020202020200a5765277665206b6e6f776e2065616368206f7468657220666f7220736f206c6f6e670a004de30100596f75722068656172742773206265656e20616368696e672062757420796f7527726520746f6f2073687920746f207361792069740a496e7369646520776520626f7468206b6e6f7720776861742773206265656e20676f696e67206f6e0a5765206b6e6f77207468652067616d6520616e6420776527726520676f6e6e6120706c61792069740a416e6420696620796f752061736b206d6520686f772049276d206665656c696e670a446f6e27742074656c6c206d6520796f7527726520746f6f20626c696e6420746f20736565202843484f525553290a20202020202020202020202020202020202020200a43484f52555343484f52555320202020202020200a284f6f68206769766520796f75207570292020200a284f6f68206769766520796f75207570292020200a284f6f6829206e6576657220676f6e6e6120676976652c206e6576657220676f6e6e6120676976650a286769766520796f7520757029202020202020200a284f6f6829206e6576657220676f6e6e6120676976652c206e6576657220676f6e6e6120676976650a286769766520796f7520757029202020202020200a20202020202020202020202020202020202020200a5765277665206b6e6f776e2065616368206f7468657220666f7220736f206c6f6e670a004ca900596f75722068656172742773206265656e20616368696e672062757420796f7527726520746f6f2073687920746f207361792069740a496e7369646520776520626f7468206b6e6f7720776861742773206265656e20676f696e67206f6e0a5765206b6e6f77207468652067616d6520616e6420776527726520676f6e6e6120706c61792069742028544f2046524f4e54290a20202020202020202020202020202020202020200a51',
'oidx': 0,
'outscript': '63a914c11697659735859a6975f3736a0f132d7cd37dee88a9149752d0cc5c375099063f7c0b9063bc8d2077d39588a914fa66143f81182941d0c4d6ee672c118d7273c6fe87674104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac68',
'txblob': '0100000001bf6dff83630eb973c1108a863cae41405da3775b006a0ad23ed145d1ab2e2d0000000000fd88044df3010020202020202020202020202020202020202020200a5765277265206e6f20737472616e6765727320746f206c6f76650a596f75206b6e6f77207468652072756c657320616e6420736f20646f20490a412066756c6c20636f6d6d69746d656e74277320776861742049276d207468696e6b696e67206f660a596f7520776f756c646e27742067657420746869732066726f6d20616e79206f74686572206775790a49206a7573742077616e6e612074656c6c20796f7520686f772049276d206665656c696e670a476f747461206d616b6520796f7520756e6465727374616e640a20202020202020202020202020202020202020200a43484f52555320202020202020202020202020200a4e6576657220676f6e6e61206769766520796f752075702c0a4e6576657220676f6e6e61206c657420796f7520646f776e0a4e6576657220676f6e6e612072756e2061726f756e6420616e642064657365727420796f750a4e6576657220676f6e6e61206d616b6520796f75206372792c0a4e6576657220676f6e6e612073617920676f6f646279650a4e6576657220676f6e6e612074656c6c2061206c696520616e64206875727420796f750a20202020202020202020202020202020202020200a5765277665206b6e6f776e2065616368206f7468657220666f7220736f206c6f6e670a004de30100596f75722068656172742773206265656e20616368696e672062757420796f7527726520746f6f2073687920746f207361792069740a496e7369646520776520626f7468206b6e6f7720776861742773206265656e20676f696e67206f6e0a5765206b6e6f77207468652067616d6520616e6420776527726520676f6e6e6120706c61792069740a416e6420696620796f752061736b206d6520686f772049276d206665656c696e670a446f6e27742074656c6c206d6520796f7527726520746f6f20626c696e6420746f20736565202843484f525553290a20202020202020202020202020202020202020200a43484f52555343484f52555320202020202020200a284f6f68206769766520796f75207570292020200a284f6f68206769766520796f75207570292020200a284f6f6829206e6576657220676f6e6e6120676976652c206e6576657220676f6e6e6120676976650a286769766520796f7520757029202020202020200a284f6f6829206e6576657220676f6e6e6120676976652c206e6576657220676f6e6e6120676976650a286769766520796f7520757029202020202020200a20202020202020202020202020202020202020200a5765277665206b6e6f776e2065616368206f7468657220666f7220736f206c6f6e670a004ca900596f75722068656172742773206265656e20616368696e672062757420796f7527726520746f6f2073687920746f207361792069740a496e7369646520776520626f7468206b6e6f7720776861742773206265656e20676f696e67206f6e0a5765206b6e6f77207468652067616d6520616e6420776527726520676f6e6e6120706c61792069742028544f2046524f4e54290a20202020202020202020202020202020202020200a51ffffffff01fe5501000000000017a914367e3c2c31cb061606e5a812257fc153f2bef80e8700000000',
'txid': '9b78962d840f1ff681e5042264e4d0359cda98ce49d97569df14ce956622b966'},
'OTHER': {'block_height': 367875,
'iidx': 1,
'inscript': '51',
'oidx': 0,
'outscript': '',
'txblob': '010000000292c99c2c32ea1a17817aae64a8247043918c23e13d4c1f7cffc587a713389c8d000000000151fffffffffcbc551ac49026987cfe6e725e54e131fc779a611a03d9d8267b0996b8818108000000000151ffffffff010000000000000000016a00000000',
'txid': '70340f9ac2cc2c3d6ad427d9fc6dace6eb8a84724d942b74e40e105e75aa4814'},
'P2MULTISIG': {'block_height': 448883,
'iidx': 0,
'inscript': '00483045022100ae076577fef3db24620fc4b3ae57927898f4c98899f35500b0946a3962bba88402205ddf304bf45c7d03d672e98eb07d61acea0019201ab7aab212a3758e901099eb0147304402200b927a72e8fda61e6c366350d376b00af1485bb736dbae7dc4b97c45932acdc50220573c1b0199c35c578a3c1828fb91a76da23b562bf46166b05f76c262de61b7f901',
'oidx': 2,
'outscript': '52210268f9e8cd5dfe88d3297e9e34750de72d14a15f6dcf526e6a1a798294d630ec3e2102d1bf0007e2dffffb22aea49f37f69778c1f4f0ed8bb545cfc0ba36b26f12aca052ae',
'txblob': '01000000012a5fa14ed40030ff64b6de4dab604284eb800b7b6a089c61c1b2220b8b3416ae020000009200483045022100ae076577fef3db24620fc4b3ae57927898f4c98899f35500b0946a3962bba88402205ddf304bf45c7d03d672e98eb07d61acea0019201ab7aab212a3758e901099eb0147304402200b927a72e8fda61e6c366350d376b00af1485bb736dbae7dc4b97c45932acdc50220573c1b0199c35c578a3c1828fb91a76da23b562bf46166b05f76c262de61b7f901ffffffff0272390600000000001976a914ec62d349dc470fa45221380ae128b5d716bed3c188acc2ae0000000000004752210268f9e8cd5dfe88d3297e9e34750de72d14a15f6dcf526e6a1a798294d630ec3e2102d1bf0007e2dffffb22aea49f37f69778c1f4f0ed8bb545cfc0ba36b26f12aca052ae00000000',
'txid': '0da1b197fe64d7c8d1a74ee1b05aa93b07aed9c2095dbba2023d8715a9d5c14e'},
'P2PK': {'block_height': 449986,
'iidx': 0,
'inscript': '48304502210084e4a544c447fae4e522f8e07b6fd00fd81ed02d48ce8eb6141a5a55b772e130022076eb2075b564c5045703d588ad66ca87fcff8954eafaec393e39fb109c98ee8801',
'oidx': 4,
'outscript': '210337d820fb848e903a8560fe7790c36bd3d1064db2c2a61deee5d07de6bbc432ebac',
'txblob': '010000000152d2bdbfe2ed70667df19969a24e9f0f23a1bed232bc6083f2ea480a28c06122040000004948304502210084e4a544c447fae4e522f8e07b6fd00fd81ed02d48ce8eb6141a5a55b772e130022076eb2075b564c5045703d588ad66ca87fcff8954eafaec393e39fb109c98ee8801ffffffff02e8030000000000001976a914d92fdad55c031c8722de649dbc0c4822cfd604cc88ac00000000000000004c6a4a455720426974636f696e2077696c6c20616c776179732062652068657265206265636175736520426974636f696e206973207468652070656f706c6573206d6174682026206d6f6e657900000000',
'txid': 'd009f7a796560cb792d8a3b109aa381107a35532f3253ad62d2879eea4825f52'},
'P2PKH': {'block_height': 449999,
'iidx': 1,
'inscript': '47304402206e6d16c8f99b741c8f6653065bbfb4f56bddec9ca5a72411f1efd6f7d8edc37402205b1ce1b896591130a5b25c2333828460f17c81da21dc7250bb1f858ba89ca2730121020af25248fda8749fd9d2210c81e228252bf45b9845821bfb5e76ec4202288334',
'oidx': 1,
'outscript': '76a914b68965d18ccf3f89bf024a20f84e08b29b19226288ac',
'txblob': '0100000002e53f78367fb908e765c8cd4a4a3aea5f314fd121622410a0d2f10f9298cf4bd6000000006b483045022100c3588dfedf6145ff73c427d275d6dbfc5e3e55665321cceee6534009ceaab55d022070608d65a38b46be42f0cbbc7808e89ff5660081869b97c3ce81894fc2b2052e012103d45e61ad6cbf47582684672e7becb75585a1b4aa4ef0f4ad9cd99a4e0ee3bc81ffffffff3186279ce7b45838948209dcec8743c522846510a817b22a071cf0387193ed00010000006a47304402206e6d16c8f99b741c8f6653065bbfb4f56bddec9ca5a72411f1efd6f7d8edc37402205b1ce1b896591130a5b25c2333828460f17c81da21dc7250bb1f858ba89ca2730121020af25248fda8749fd9d2210c81e228252bf45b9845821bfb5e76ec4202288334ffffffff02a8dc0100000000001976a914ff1554cf610d01e9cfb7001fe0cb060b694d92a288ac18540000000000001976a91468e103f201d869628b364f83e5f124f447f56ada88ac00000000',
'txid': '1ba8992620d4b524ff2692de21b5e303ac4d61a04c9ea0ae013f3c1db541d25b'},
'PROVABLY_UNSPENDABLE': {'block_height': 449999,
'iidx': None,
'inscript': None,
'oidx': 1,
'outscript': '6a1c62d6b2bebf4e549be6ff60c431a9e2063f20c0c4d5d30071a9aae411',
'txblob': '01000000015f2ff70e82f9ec641ae636a711eb80c3c7453ca9f45f63d8a0415b6fe29acdbd010000006b4830450221008ff8d233749999d4842f6cfb279273da575ee70054399f55966679b0b6d14c790220435cc1770cc8c60cfa91ca845b9b35e0b861574ca4a26a50a10d163ef969904301210382eb4e152278a3ba009e78b9b48797e6844074e3a6ce047f29d8cfba207e98f0ffffffff0336150000000000001976a914e07eda7055e04eef0dab9ed1989ef8ab1824d6b188ac00000000000000001e6a1c62d6b2bebf4e549be6ff60c431a9e2063f20c0c4d5d30071a9aae4110e2b0000000000001976a914290792af1376f00b419bcd3e628df2fc13102f6688ac00000000',
'txid': '73f40ff41863479dbdc8fa7f0e2faff06b9105b6a95d1195eeca52f4ee368ba2'}}
P2SH_SCRIPT_SAMPLES = \
{'HASH_PREIMAGE': {'block_height': 395383,
'iidx': 1,
'inscript': '4de6014c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742e20437261732061206c7563747573207175616d2e2053656420636f6e76616c6c6973206469676e697373696d206e69736c206120766f6c75747061742e20566573746962756c756d20616e746520697073756d207072696d697320696e206661756369627573206f726369206c756374757320657420756c74726963657320706f737565726520637562696c69612043757261653b2050656c6c656e7465737175652074656d707573206c7563747573206469616d2c20616320617563746f7220697073756d2074656d706f722073697420616d65742e20457469616d20616320657569736d6f64207475727069732c206e656320656c656966656e642073656d2e20447569732065676574206c6163696e6961206e756e632e2053757370656e6469737365206469676e697373696d20657569736d6f64206d6574757320616320617563746f722e204675736365206661756369627573206d616c65737561646120746f72746f72207574207072657469756d2e204e756c6c6120666163696c6973692e20496e746567657220757420756c74726963657320697073756d2e204675736365206e756c6c616d2e23a820aa309be6746e6c9e2597b4286da72b531af17ded59533088c39a928ea7f6906087',
'oidx': 0,
'outscript': 'a914ab8311beedf7ac776315cd0595706aef4fcfbdc987',
'rscript': 'a820aa309be6746e6c9e2597b4286da72b531af17ded59533088c39a928ea7f6906087',
'txblob': '01000000023ee8c8bbe6e4ea7ab6da54fe272851ac90503a7e33c779b07c119ff1d157b331000000006b483045022100d3f0b415a120a8bb259a460610938ab70292186a9482530b16054ad728e04b4002200229518cd88b4c1edf61c97aae5607ffb82ccd5c65c8539c72ec4e5989443617012103d7c6052544bc42eb2bc0d27c884016adb933f15576a1a2d21cd4dd0f2de0c37dffffffffc0ee0de4398b8abe0df0a9ce2bc8ce5f40b7e4c248ea4b7b447910204a0ba56000000000fd0d024de6014c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742e20437261732061206c7563747573207175616d2e2053656420636f6e76616c6c6973206469676e697373696d206e69736c206120766f6c75747061742e20566573746962756c756d20616e746520697073756d207072696d697320696e206661756369627573206f726369206c756374757320657420756c74726963657320706f737565726520637562696c69612043757261653b2050656c6c656e7465737175652074656d707573206c7563747573206469616d2c20616320617563746f7220697073756d2074656d706f722073697420616d65742e20457469616d20616320657569736d6f64207475727069732c206e656320656c656966656e642073656d2e20447569732065676574206c6163696e6961206e756e632e2053757370656e6469737365206469676e697373696d20657569736d6f64206d6574757320616320617563746f722e204675736365206661756369627573206d616c65737561646120746f72746f72207574207072657469756d2e204e756c6c6120666163696c6973692e20496e746567657220757420756c74726963657320697073756d2e204675736365206e756c6c616d2e23a820aa309be6746e6c9e2597b4286da72b531af17ded59533088c39a928ea7f6906087ffffffff01e8030000000000001976a914937fe2ee82229d282edec2606c70e755875334c088ac00000000',
'txid': '00e51053ad7dc6f08e9f1547a01073fa8246d8f9ba47e7b33c8eb4de2bde918b'},
'IF': {'block_height': 447649,
'iidx': 0,
'inscript': '00483045022100e00e1c51ddebb5265ab6de5b1ee4c4aaf89de8ab7c4680a481e5fbb27765f48b022010fa0a7d26ef1852acf4aa0895a81b184f317687346781a6b612d578eeca10bc014730440220472b0b8470552d2b52047736a0fb36b205d0f6a5522a22d0995dd97a68a56d6d022043943681b3266f8f0bcf2bdb481229d282e1c62757bf2734aaf4ed037d11ec6c01514c7463522102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7b21023927b837a922696836e26399f759965328437f93aafaf3e02767d22860c0fba752ae670414767758b1752102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7bac68',
'oidx': 0,
'outscript': 'a9141804c4f92ecd780c81e36018441514c35a05816787',
'rscript': '63522102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7b21023927b837a922696836e26399f759965328437f93aafaf3e02767d22860c0fba752ae670414767758b1752102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7bac68',
'txblob': '0100000001fb128a3fbedd80bcd4ffb543d69686b7bc2bdd03075e81aa972ea95f8942d50c00000000fd090100483045022100e00e1c51ddebb5265ab6de5b1ee4c4aaf89de8ab7c4680a481e5fbb27765f48b022010fa0a7d26ef1852acf4aa0895a81b184f317687346781a6b612d578eeca10bc014730440220472b0b8470552d2b52047736a0fb36b205d0f6a5522a22d0995dd97a68a56d6d022043943681b3266f8f0bcf2bdb481229d282e1c62757bf2734aaf4ed037d11ec6c01514c7463522102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7b21023927b837a922696836e26399f759965328437f93aafaf3e02767d22860c0fba752ae670414767758b1752102259b57015e60de464e1d83c375bdd01d272290c51cede0b794301de1b7770c7bac68000000000124c20000000000001976a914e954e8ec1b9859c511ab21aec2064457517c67d088acffbab057',
'txid': '1ddfe527891991b00c8f44755e1b3f91fb5f27ef5b0e3d7259dbe384baaa8f73'},
'OTHER': {'block_height': 449996,
'iidx': 0,
'inscript': '473044022013eba9f76b3833563eeb9491190c4db2dd4c6647df3178c18587c3db6c42c50d02201be203152e6f19dd21df2f58a3a7828e69c335a23b7c30e10890c99b49ad63f00101004c50632103df3146f25958acde1a49cebf1df7774ea192b073ec97656fbd3274695297aa98ad6704a0837958b1756821025f7ada2d8eecb18bb7bffd73a3300ee949115b793391defed70c2bd66fcfab89ac',
'oidx': 0,
'outscript': 'a914c525edb27c1ed95893c51f2c8cf5a57d32004ba087',
'rscript': '632103df3146f25958acde1a49cebf1df7774ea192b073ec97656fbd3274695297aa98ad6704a0837958b1756821025f7ada2d8eecb18bb7bffd73a3300ee949115b793391defed70c2bd66fcfab89ac',
'txblob': '010000000193ab764a307d97c7c7073039df6217d8470e1fd9a02ffa229b0a4cf39e8f81df000000009c473044022013eba9f76b3833563eeb9491190c4db2dd4c6647df3178c18587c3db6c42c50d02201be203152e6f19dd21df2f58a3a7828e69c335a23b7c30e10890c99b49ad63f00101004c50632103df3146f25958acde1a49cebf1df7774ea192b073ec97656fbd3274695297aa98ad6704a0837958b1756821025f7ada2d8eecb18bb7bffd73a3300ee949115b793391defed70c2bd66fcfab89acfeffffff0158920100000000001976a914487366e7316c9e158a5d326ea7da19e72a1b7ef988aca0837958',
'txid': '71bb6a1517965d7c58135c0a833a7da760f2dbc5423341933eb80b4f22d26ff0'},
'P2MULTISIG': {'block_height': 449999,
'iidx': 0,
'inscript': '00473044022008ad8bb73cd4dcc4a667f36b41939cad42b70ef01bf0c9fe70a24021f6bcf85d02202d858ed30040ddb64680c73bb920627f127d3f15a28180b0017659df31aa2d0f014ccf5121022787591559c0e474427921b10348465db7edd917f70594ec63009e50016de0ed210240779d518e4ad47e9ded5ecdc8e691d7b0ac2faeffebdabdd53e7976af5ff7b02102561775844b2e62c0eda3aae63c1cd9222d999ce08f7302ba34f2042e29724706210395e74eca2e189e9c7097354cf9d1d5326168d25cfd5b13a079d00b5a54dfdf592103ad89895d4ff244a8b6e0f82f3a62fce4acbebf3ae3f7e1081ab188298e69553b2103cbb40cd17972bcce3f8e566499da78109262671c9ddd2b6ff4a298fb0675cfe756ae',
'oidx': 0,
'outscript': 'a91491a4a645459cefac2bdf9ce72459c271f488362c87',
'rscript': '5121022787591559c0e474427921b10348465db7edd917f70594ec63009e50016de0ed210240779d518e4ad47e9ded5ecdc8e691d7b0ac2faeffebdabdd53e7976af5ff7b02102561775844b2e62c0eda3aae63c1cd9222d999ce08f7302ba34f2042e29724706210395e74eca2e189e9c7097354cf9d1d5326168d25cfd5b13a079d00b5a54dfdf592103ad89895d4ff244a8b6e0f82f3a62fce4acbebf3ae3f7e1081ab188298e69553b2103cbb40cd17972bcce3f8e566499da78109262671c9ddd2b6ff4a298fb0675cfe756ae',
'txblob': '01000000018d259e1cad2a22be092cbc11e9e1d5d646188cff13a66005512bbee1df1bd71100000000fd1a0100473044022008ad8bb73cd4dcc4a667f36b41939cad42b70ef01bf0c9fe70a24021f6bcf85d02202d858ed30040ddb64680c73bb920627f127d3f15a28180b0017659df31aa2d0f014ccf5121022787591559c0e474427921b10348465db7edd917f70594ec63009e50016de0ed210240779d518e4ad47e9ded5ecdc8e691d7b0ac2faeffebdabdd53e7976af5ff7b02102561775844b2e62c0eda3aae63c1cd9222d999ce08f7302ba34f2042e29724706210395e74eca2e189e9c7097354cf9d1d5326168d25cfd5b13a079d00b5a54dfdf592103ad89895d4ff244a8b6e0f82f3a62fce4acbebf3ae3f7e1081ab188298e69553b2103cbb40cd17972bcce3f8e566499da78109262671c9ddd2b6ff4a298fb0675cfe756aeffffffff029963db050000000017a91491a4a645459cefac2bdf9ce72459c271f488362c8748ca3b00000000001976a91461a1e37fb277cef23ed264b4fb37c00d0652e89988ac00000000',
'txid': '62bc4d9d69b0da6fa664d55862bd3ccd518ecf39537fb12129083de83fbbef7b'},
'P2PK': {'block_height': 412813,
'iidx': 0,
'inscript': '473044022041b288851ef4bca3975d368e6e3b2f66154b3e0f5bc9d07f58c7f8ee24a0dfce02206553228ac9d026c817a91449dbb9aa7787a6544cd06d458b1989b8b7f94b6f85012321027f9e38b0b6d94ebfaec3f5154049732931d98215197bd9c8b31c06467e520f8cac',
'oidx': 1,
'outscript': 'a91434a770d6f46f061404de0c3a9533a4fd6040b91587',
'rscript': '21027f9e38b0b6d94ebfaec3f5154049732931d98215197bd9c8b31c06467e520f8cac',
'txblob': '0100000001c4b475395324142cb88156fa5a7c165baf76a912e0caea5c81557c31256b5335010000006c473044022041b288851ef4bca3975d368e6e3b2f66154b3e0f5bc9d07f58c7f8ee24a0dfce02206553228ac9d026c817a91449dbb9aa7787a6544cd06d458b1989b8b7f94b6f85012321027f9e38b0b6d94ebfaec3f5154049732931d98215197bd9c8b31c06467e520f8cacffffffff02662100000000000017a914f4c60a2cb6d645c363867f530e20bc11d59d203987d0070000000000001976a914daa1b863d045c01b62219e64abf3e4e4e982547288ac00000000',
'txid': 'ff708ffaee01e523150f704d6b2ef1d49db8d38dcdb611b0b1f4418d97b5207f'},
'P2PKH': {'block_height': 439186,
'iidx': 0,
'inscript': '4830450221008e1c269b18d06d362ddb80a7d0b00689bcdfd3d6c7124c6a4a86b3146d66903102202ef0fe948b6a28608cef98c2eea993b6bf39083e441a5e744b165cd2dd97b4d701210373a2e2ec7a423640cd093087e4a84fbdb9bc797280dc083734c91c28c9208fde1976a9147372e3272c733fe465f7f77f37fe9b40d759d15f88ac',
'oidx': 0,
'outscript': 'a91463087d5f3dd4a58d14af34f22772e294948805a587',
'rscript': '76a9147372e3272c733fe465f7f77f37fe9b40d759d15f88ac',
'txblob': '0100000001c32c213e3b163f413f1ba484d000eb25c86623dd8b80b5c5e65a7f7da17a6e2600000000854830450221008e1c269b18d06d362ddb80a7d0b00689bcdfd3d6c7124c6a4a86b3146d66903102202ef0fe948b6a28608cef98c2eea993b6bf39083e441a5e744b165cd2dd97b4d701210373a2e2ec7a423640cd093087e4a84fbdb9bc797280dc083734c91c28c9208fde1976a9147372e3272c733fe465f7f77f37fe9b40d759d15f88acffffffff0184f80500000000001976a914ae4770c01fdee510414d1f165bdd6d46a929676788ac00000000',
'txid': 'ec0b738291973f50641bafab99f5665caeffccf1f1d426307cd469b659b00349'},
'TIMELOCK': {'block_height': 448610,
'iidx': 0,
'inscript': '4730440220180499b30cb6d6b8300bf22ac2b8ddf6fb46e09d8b316926f575f2e41d99749d022033b7771ab6465adf1372758462624e67d4a2209cccd67aa8b1db1839089ebada012a04b0c67b58b17521039d3ec469ee90be3f3ef1284413d68e3e7efb199cb337f34a26591c457d483dc5ac',
'oidx': 0,
'outscript': 'a9141b4ca86dcfcc5227b76e79222bbe38c48efeae1287',
'rscript': '04b0c67b58b17521039d3ec469ee90be3f3ef1284413d68e3e7efb199cb337f34a26591c457d483dc5ac',
'txblob': '0100000001235246a82e8ac26280818c49f50d93ad56b8b60c96749398f8b3c93b83b4058c00000000734730440220180499b30cb6d6b8300bf22ac2b8ddf6fb46e09d8b316926f575f2e41d99749d022033b7771ab6465adf1372758462624e67d4a2209cccd67aa8b1db1839089ebada012a04b0c67b58b17521039d3ec469ee90be3f3ef1284413d68e3e7efb199cb337f34a26591c457d483dc5ac0000000001706f98000000000017a91450d2da47bcc191d877dc1f67c8d81a1a1f833ed187b0c67b58',
'txid': 'a1bcd6eabb23b5d3ee801ee6176aa2267936c40074e215056ce404ce80824145'}}
ADDRESS_SAMPLES = \
[{'address': '1eg7exp5UpL8NxGbrKoQY6KCFcdfUteg4',
'hash160': '07200abb579ba6f2138bec7e060b26d83c03259c',
'is_p2sh': False,
'origin': 'P2PK',
'pubkey': '0337d820fb848e903a8560fe7790c36bd3d1064db2c2a61deee5d07de6bbc432eb'},
{'address': '1HeAaUXrufcW7yKVUQgiZaYfq1kpX721eL',
'hash160': 'b68965d18ccf3f89bf024a20f84e08b29b192262',
'is_p2sh': False,
'origin': 'P2PKH',
'pubkey': None},
{'address': '3Ey79QY4H5oSYVo6XsmbsY4CZwXdydRBs4',
'hash160': '91a4a645459cefac2bdf9ce72459c271f488362c',
'is_p2sh': True,
'origin': 'P2SH/P2MULTISIG',
'pubkey': None}]
################################################################################
################################################################################
# <--- *** END OF GENERATED CODE ***
################################################################################
################################################################################
def get_sample(script_type, script_subtype = None):
"""
:return: a 2-tuple of (outscript, inscript)
"""
d = get_sample_data(script_type, script_subtype)
o = outscript_from_raw(bytes.fromhex(d['outscript']))
i = inscript_from_raw(bytes.fromhex(d['inscript']), o)
return o, i
def get_sample_data(script_type, script_subtype = None):
"""
:return: sample data, as a dict, with keys: inscript, outscript, txid, iidx, oidx, etc.
"""
script_type = getattr(script_type, 'name', script_type)
script_subtype = getattr(script_subtype, 'name', script_subtype)
script_type = ScriptType[script_type]
if script_type == ScriptType.P2SH:
if script_subtype is None:
script_subtype = ScriptType.P2MULTISIG
else:
script_subtype = ScriptType[script_subtype]
return P2SH_SCRIPT_SAMPLES[script_subtype.name]
else:
return SCRIPT_SAMPLES[script_type.name]
def get_sample_exec_args(script_type, script_subtype = None, flags = ()):
# extract data from sample:
d = get_sample_data(script_type, script_subtype)
#d['inscript'] = d['inscript'][:-2] + 'ff' # HACK ERROR PLANTING (useful for debugging the debugger)
#d['inscript'] = d['inscript'][2:] # HACK ERROR PLANTING (useful for debugging the debugger)
#d['txblob'] = '99' + d['txblob'][2:] # HACK ERROR PLANTING (useful for debugging the debugger)
outscript = outscript_from_raw(bytes.fromhex(d['outscript']))
inscript = inscript_from_raw(bytes.fromhex(d['inscript']), outscript)
rawtx = bytes.fromhex(d['txblob'])
input_idx = d['iidx']
# set some flags
if outscript.type == ScriptType.P2SH and SCRIPT_VERIFY_P2SH not in flags:
flags += ( SCRIPT_VERIFY_P2SH, )
return (inscript, outscript), dict(flags = flags, rawtx = rawtx, input_idx = input_idx)
################################################################################
| 134.526042
| 2,511
| 0.857989
| 575
| 25,829
| 38.394783
| 0.325217
| 0.006976
| 0.005888
| 0.006251
| 0.026181
| 0.023327
| 0.018118
| 0.009784
| 0.006432
| 0
| 0
| 0.614637
| 0.07631
| 25,829
| 191
| 2,512
| 135.230366
| 0.310713
| 0.026404
| 0
| 0.205298
| 1
| 0
| 0.840402
| 0.799795
| 0
| 1
| 0
| 0
| 0
| 1
| 0.019868
| false
| 0
| 0.013245
| 0
| 0.059603
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b0f1494d1fffbd2fe514cc063b8391c100e7364c
| 916
|
py
|
Python
|
src/django_auth_mafiasi/django_rest_framework/permissions.py
|
fsinfuhh/django_auth_mafiasi
|
f6226fb7a13883e5a57238e0295d5577d63a1bbf
|
[
"MIT"
] | 1
|
2021-01-26T14:54:10.000Z
|
2021-01-26T14:54:10.000Z
|
src/django_auth_mafiasi/django_rest_framework/permissions.py
|
fsinfuhh/django_auth_mafiasi
|
f6226fb7a13883e5a57238e0295d5577d63a1bbf
|
[
"MIT"
] | 3
|
2021-11-09T17:08:13.000Z
|
2021-11-16T11:53:57.000Z
|
src/django_auth_mafiasi/django_rest_framework/permissions.py
|
fsinfuhh/django_auth_mafiasi
|
f6226fb7a13883e5a57238e0295d5577d63a1bbf
|
[
"MIT"
] | null | null | null |
from rest_framework.permissions import BasePermission
def get_user(request):
return request.user
class IsStaff(BasePermission):
"""
Grants permission if the logged-in user is considered staff
See https://docs.djangoproject.com/en/3.1/ref/contrib/auth/#django.contrib.auth.models.User.is_staff
"""
def has_permission(self, request, view):
return request.user.is_staff
def has_object_permission(self, request, view, obj):
return request.user.is_staff
class IsSuperUser(BasePermission):
"""
Grants permission if the logged-in user is considered a superuser
See https://docs.djangoproject.com/en/3.1/ref/contrib/auth/#django.contrib.auth.models.User.is_superuser
"""
def has_permission(self, request, view):
return request.user.is_superuser
def has_object_permission(self, request, view, obj):
return request.user.is_superuser
| 29.548387
| 108
| 0.728166
| 124
| 916
| 5.266129
| 0.346774
| 0.073507
| 0.130168
| 0.153139
| 0.808576
| 0.744257
| 0.744257
| 0.744257
| 0.744257
| 0.744257
| 0
| 0.005277
| 0.172489
| 916
| 31
| 109
| 29.548387
| 0.856201
| 0.363537
| 0
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.384615
| false
| 0
| 0.076923
| 0.384615
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 9
|
9fe80a4eb2cd7d73de93ab2fa229bf6f7b6b5c01
| 103,400
|
py
|
Python
|
tests/simulations/system/test_system_packaged_vav.py
|
john-grando/pyExpandObjects
|
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
|
[
"BSD-3-Clause"
] | null | null | null |
tests/simulations/system/test_system_packaged_vav.py
|
john-grando/pyExpandObjects
|
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
|
[
"BSD-3-Clause"
] | 1
|
2021-02-03T01:56:56.000Z
|
2021-02-03T01:56:56.000Z
|
tests/simulations/system/test_system_packaged_vav.py
|
john-grando/pyExpandObjects
|
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
|
[
"BSD-3-Clause"
] | 1
|
2022-01-11T18:31:05.000Z
|
2022-01-11T18:31:05.000Z
|
from pathlib import Path
from tests.simulations import BaseSimulationTest
from src.epjson_handler import EPJSON
test_dir = Path(__file__).parent.parent.parent
schedule_objects = {
"Schedule:Compact": {
"Always0.8": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 0.8
}
],
"schedule_type_limits_name": "Any Number"
},
"Always6.8": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 6.8
}
],
"schedule_type_limits_name": "Any Number"
},
"Always12.5": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 12.5
}
],
"schedule_type_limits_name": "Any Number"
},
"Always15.5": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 15.5
}
],
"schedule_type_limits_name": "Any Number"
},
"Always62": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 62.0
}
],
"schedule_type_limits_name": "Any Number"
},
"Always29": {
"data": [
{
"field": "Through: 12/31"
},
{
"field": "For: AllDays"
},
{
"field": "Until: 24:00"
},
{
"field": 29.0
}
],
"schedule_type_limits_name": "Any Number"
}
}
}
hot_water_objects = {
"HVACTemplate:Plant:Boiler": {
"Main Boiler": {
"boiler_type": "HotWaterBoiler",
"capacity": "Autosize",
"efficiency": 0.8,
"fuel_type": "NaturalGas",
"priority": "1"
}
},
"HVACTemplate:Plant:HotWaterLoop": {
"Hot Water Loop": {
"hot_water_design_setpoint": 82,
"hot_water_plant_operation_scheme_type": "Default",
"hot_water_pump_configuration": "ConstantFlow",
"hot_water_pump_rated_head": 179352,
"hot_water_reset_outdoor_dry_bulb_high": 10,
"hot_water_reset_outdoor_dry_bulb_low": -6.7,
"hot_water_setpoint_at_outdoor_dry_bulb_high": 65.6,
"hot_water_setpoint_at_outdoor_dry_bulb_low": 82.2,
"hot_water_setpoint_reset_type": "OutdoorAirTemperatureReset",
"pump_control_type": "Intermittent"
}
}
}
class TestSimulationsSystemPackagedVAV(BaseSimulationTest):
def setUp(self):
self.ej = EPJSON()
base_idf_file_path = test_dir.joinpath('..', 'simulation', 'ExampleFiles', 'HVACTemplate-5ZonePackagedVAV.idf')
base_copy_file_path = self._copy_to_test_directory(base_idf_file_path)
# read in base file, then edit inputs for alternate tests
self.base_epjson = self.get_epjson_object_from_idf_file(base_copy_file_path)
self.base_epjson.pop('Output:Variable')
return
def teardown(self):
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:ConstantVolume:minimum_inputs")
def test_minimum_inputs(self):
# todo_eo: legacy fails with error
# <root>[ZoneControl:Humidistat][DXVAV Sys 1 Humidification Humidistat] - Missing required property 'zone_name'
self.base_epjson['HVACTemplate:Zone:VAV']['HVACTemplate:Zone:VAV 1'][
'zone_cooling_design_supply_air_temperature_input_method'] = 'SupplyAirTemperature'
self.base_epjson['HVACTemplate:Zone:VAV']['HVACTemplate:Zone:VAV 2'][
'zone_cooling_design_supply_air_temperature_input_method'] = 'SupplyAirTemperature'
self.base_epjson['HVACTemplate:Zone:VAV']['HVACTemplate:Zone:VAV 3'][
'zone_cooling_design_supply_air_temperature_input_method'] = 'SupplyAirTemperature'
self.base_epjson['HVACTemplate:Zone:VAV']['HVACTemplate:Zone:VAV 4'][
'zone_cooling_design_supply_air_temperature_input_method'] = 'SupplyAirTemperature'
self.base_epjson['HVACTemplate:System:PackagedVAV'].pop('DXVAV Sys 1')
self.ej.merge_epjson(
super_dictionary=self.base_epjson,
object_dictionary={
'HVACTemplate:System:PackagedVAV': {
'DXVAV Sys 1': {
}
}
}
)
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:system_availability_schedule_name")
def test_system_availability_schedule_name(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['system_availability_schedule_name'] = 'OCCUPY-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'OCCUPY-1',
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['availability_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_maximum_flow_rate")
def test_supply_fan_maximum_flow_rate(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_maximum_flow_rate'] = 2
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
2.0,
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System']['cooling_supply_air_flow_rate'])
self.assertEqual(
'Flow/System',
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System']['cooling_supply_air_flow_rate_method'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_minimum_flow_rate")
def test_supply_fan_minimum_flow_rate(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_minimum_flow_rate'] = 0.25
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.25,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_minimum_air_flow_rate'])
self.assertEqual(
'FixedFlowRate',
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_minimum_flow_rate_input_method'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement"
"_draw_through_cooling_none_heating_none")
def test_supply_fan_placement_draw_through_cooling_none_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement"
"_draw_through_cooling_none_heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_draw_through_cooling_none_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement"
"_blow_through_cooling_none_heating_none")
def test_supply_fan_placement_blow_through_cooling_none_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement"
"_blow_through_cooling_none_heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_blow_through_cooling_none_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_warmest_heating_none")
def test_supply_fan_placement_draw_through_cooling_warmest_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_warmest_heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_draw_through_cooling_warmest_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"blow_through_cooling_warmest_heating_none")
def test_supply_fan_placement_blow_through_cooling_warmest_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"blow_through_cooling_warmest_heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_blow_through_cooling_warmest_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'Warmest'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_warmest_temperature_first_heating_none")
def test_supply_fan_placement_draw_through_cooling_warmest_temperature_first_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_warmest_temperature_first_"
"heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_draw_through_cooling_warmest_temperature_first_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"blow_through_cooling_warmest_first_heating_none")
def test_supply_fan_placement_blow_through_cooling_warmest_temperature_first_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"blow_through_cooling_warmest_first_"
"heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_blow_through_cooling_warmest_temperature_first_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'WarmestTemperatureFirst'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_outdoor_air_temperature_reset_heating_none")
def test_supply_fan_placement_draw_through_cooling_outdoor_air_temperature_reset_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_outdoor_air_temperature_reset_"
"heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_draw_through_cooling_outdoor_air_temperature_reset_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'DrawThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_outdoor_air_temperature_reset_heating_none")
def test_supply_fan_placement_blow_through_cooling_outdoor_air_temperature_reset_heating_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_placement_"
"draw_through_cooling_outdoor_air_temperature_reset_"
"heating_outdoor_air_temperature_reset")
def test_supply_fan_placement_blow_through_cooling_outdoor_air_temperature_reset_heating_outdoor_air_temperature_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['cooling_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 2']['heating_coil_setpoint_reset_type'] = \
'OutdoorAirTemperatureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_total_efficiency")
def test_supply_fan_total_efficiency(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_total_efficiency'] = 0.75
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.75,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_total_efficiency'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_delta_pressure")
def test_supply_fan_delta_pressure(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_delta_pressure'] = 1100
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
1100,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['pressure_rise'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_fan_motor_efficiency")
def test_supply_fan_motor_efficiency(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1']['supply_fan_motor_efficiency'] = 0.8
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.8,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['motor_efficiency'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_motor_in_air_stream_fraction")
def test_supply_fan_motor_in_air_stream_fraction(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_motor_in_air_stream_fraction'] = 0.8
base_file_path = self.create_idf_file_from_epjson(
epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.8,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['motor_in_airstream_fraction'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_type_two_speed_dx")
def test_cooling_coil_type_two_speed_dx(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_type'] = 'TwoSpeedDX'
base_file_path = self.create_idf_file_from_epjson(
epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(
epjson_output['Coil:Cooling:DX:TwoSpeed'].get('DXVAV Sys 1 Cooling Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_type_two_speed_humid_control_dx")
def test_cooling_coil_type_two_speed_humid_control_dx(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_type'] = 'TwoSpeedHumidControlDX'
base_file_path = self.create_idf_file_from_epjson(
epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(
epjson_output['Coil:Cooling:DX:TwoStageWithHumidityControlMode'].get('DXVAV Sys 1 Cooling Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_availability_schedule_name")
def test_cooling_coil_availability_schedule_name(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_availability_schedule_name'] = 'OCCUPY-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'OCCUPY-1',
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil']['availability_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_setpoint_schedule_name")
def test_cooling_coil_setpoint_schedule_name(self):
self.ej.merge_epjson(
super_dictionary=self.base_epjson,
object_dictionary=schedule_objects)
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_setpoint_schedule_name'] = 'Always12.5'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_setpoint_reset_type'] = 'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'Always12.5',
epjson_output['SetpointManager:Scheduled']['DXVAV Sys 1 Cooling Supply Air Temp Manager']['schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_design_setpoint")
def test_cooling_coil_design_setpoint(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_design_setpoint'] = 13
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
13,
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System'][
'central_cooling_design_supply_air_temperature'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_total_capacity")
def test_cooling_coil_gross_rated_total_capacity(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_total_capacity'] = 2000
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
2000,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'high_speed_gross_rated_total_cooling_capacity'])
self.assertEqual(
2000 * 0.33,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'low_speed_gross_rated_total_cooling_capacity'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_total_capacity_two_speed_humid_control")
def test_cooling_coil_gross_rated_total_capacity_two_speed_humid_control(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_type'] = 'TwoSpeedHumidControlDX'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_total_capacity'] = 2000
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
1000,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1'][
'gross_rated_total_cooling_capacity'])
self.assertEqual(
2000,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1+2'][
'gross_rated_total_cooling_capacity'])
self.assertEqual(
1000,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1'][
'gross_rated_total_cooling_capacity'])
self.assertEqual(
2000,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1+2'][
'gross_rated_total_cooling_capacity'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_sensible_heat_ratio")
def test_cooling_coil_gross_rated_sensible_heat_ratio(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_sensible_heat_ratio'] = 0.75
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.75,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'low_speed_gross_rated_sensible_heat_ratio'])
self.assertEqual(
0.75,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'high_speed_rated_sensible_heat_ratio'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_sensible_heat_ratio")
def test_cooling_coil_gross_rated_sensible_heat_ratio_two_speed_humid_control(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_type'] = 'TwoSpeedHumidControlDX'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_sensible_heat_ratio'] = 0.75
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.75,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1'][
'gross_rated_sensible_heat_ratio'])
self.assertEqual(
0.75,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1+2'][
'gross_rated_sensible_heat_ratio'])
self.assertEqual(
0.75 * 0.9,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1'][
'gross_rated_sensible_heat_ratio'])
self.assertEqual(
0.75 * 0.9,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1+2'][
'gross_rated_sensible_heat_ratio'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_cop")
def test_cooling_coil_gross_rated_cop(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_cop'] = 3.1
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
3.1,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'high_speed_gross_rated_cooling_cop'])
self.assertEqual(
3.1 * 1.5,
epjson_output['Coil:Cooling:DX:TwoSpeed']['DXVAV Sys 1 Cooling Coil'][
'low_speed_gross_rated_cooling_cop'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"cooling_coil_gross_rated_cop")
def test_cooling_coil_gross_rated_cop_two_speed_humid_control(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_type'] = 'TwoSpeedHumidControlDX'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'cooling_coil_gross_rated_cop'] = 3.1
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
3.1,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1'][
'gross_rated_cooling_cop'])
self.assertEqual(
3.1,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Standard Perf 1+2'][
'gross_rated_cooling_cop'])
self.assertEqual(
3.1 * 0.9,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1'][
'gross_rated_cooling_cop'])
self.assertEqual(
3.1 * 0.9,
epjson_output['CoilPerformance:DX:Cooling']['DXVAV Sys 1 Dehumid Perf 1+2'][
'gross_rated_cooling_cop'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heating_coil_type_none")
def test_heating_coil_type_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_type'] = 'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNone(
epjson_output['Coil:Heating:Fuel'].get('DXVAV Sys 1 Heating Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heating_coil_type_hot_water")
def test_heating_coil_type_hot_water(self):
self.ej.merge_epjson(
super_dictionary=self.base_epjson,
object_dictionary=hot_water_objects)
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_type'] = 'HotWater'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(
epjson_output['Coil:Heating:Water'].get('DXVAV Sys 1 Heating Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heating_coil_type_electric")
def test_heating_coil_type_electric(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_type'] = 'Electric'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(
epjson_output['Coil:Heating:Electric'].get('DXVAV Sys 1 Heating Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heating_coil_type_gas")
def test_heating_coil_type_gas(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_type'] = 'Gas'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(
epjson_output['Coil:Heating:Fuel'].get('DXVAV Sys 1 Heating Coil'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"heating_coil_availability_schedule_name")
def test_heating_coil_availability_schedule_name(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_availability_schedule_name'] = 'OCCUPY-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'OCCUPY-1',
epjson_output['Coil:Heating:Fuel']['DXVAV Sys 1 Heating Coil']['availability_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"heating_coil_setpoint_schedule_name")
def test_heating_coil_setpoint_schedule_name(self):
self.ej.merge_epjson(
super_dictionary=self.base_epjson,
object_dictionary=schedule_objects)
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_setpoint_schedule_name'] = 'Always6.8'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_setpoint_reset_type'] = 'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'Always6.8',
epjson_output['SetpointManager:Scheduled']['DXVAV Sys 1 Heating Supply Air Temp Manager']['schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"heating_coil_design_setpoint")
def test_heating_coil_design_setpoint(self):
# todo_eo: Warning issued in legacy which does not appear to be correct.
# ** Warning ** Output:PreprocessorMessage="ExpandObjects" has the following Warning conditions:
# ** ~~~ ** Warning: In HVACTemplate:System:PackagedVAV "DXVAV Sys 1" the Heating Coil
# ** ~~~ ** Design Setpoint is greater than the Cooling Coil Design Setpoint. This may
# ** ~~~ ** cause the heating coil and cooling coil to operate simultaneously. Check
# ** ~~~ ** results carefully and adjust controls if needed.
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_setpoint_reset_type'] = 'None'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_design_setpoint'] = 9.0
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'HVACTemplate-Always9.0',
epjson_output['SetpointManager:Scheduled']['DXVAV Sys 1 Heating Supply Air Temp Manager']['schedule_name'])
self.assertEqual(
9.0,
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System'][
'central_heating_design_supply_air_temperature'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"heating_coil_capacity")
def test_heating_coil_capacity(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heating_coil_capacity'] = 1000
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
1000,
epjson_output['Coil:Heating:Fuel']['DXVAV Sys 1 Heating Coil']['nominal_capacity'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"gas_heating_coil_efficiency")
def test_gas_heating_coil_efficiency(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'gas_heating_coil_efficiency'] = 0.77
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.77,
epjson_output['Coil:Heating:Fuel']['DXVAV Sys 1 Heating Coil']['burner_efficiency'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"gas_heating_coil_parasitic_electric_load")
def test_gas_heating_coil_parasitic_electric_load(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'gas_heating_coil_parasitic_electric_load'] = 1
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
1,
epjson_output['Coil:Heating:Fuel']['DXVAV Sys 1 Heating Coil']['parasitic_electric_load'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"outdoor_air_flow_rates")
def test_outdoor_air_flow_rates(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_placement'] = 'BlowThrough'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'maximum_outdoor_air_flow_rate'] = 0.66
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'minimum_outdoor_air_flow_rate'] = 0.1
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.66,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['maximum_outdoor_air_flow_rate'])
self.assertEqual(
0.1,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['minimum_outdoor_air_flow_rate'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"minimum_outdoor_air_control_type_proportional_minimum")
def test_minimum_outdoor_air_control_type_proportional_minimum(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'minimum_outdoor_air_control_type'] = 'ProportionalMinimum'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'ProportionalMinimum',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['minimum_limit_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"minimum_outdoor_air_control_type_fixed_minimum")
def test_minimum_outdoor_air_control_type_fixed_minimum(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'minimum_outdoor_air_control_type'] = 'FixedMinimum'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'FixedMinimum',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['minimum_limit_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:minimum_outdoor_air_schedule_name")
def test_minimum_outdoor_air_schedule_name(self):
self.ej.merge_epjson(
super_dictionary=self.base_epjson,
object_dictionary=schedule_objects)
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'minimum_outdoor_air_schedule_name'] = 'Always0.8'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'Always0.8',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['minimum_outdoor_air_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_no_economizer")
def test_economizer_type_no_economizer(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'NoEconomizer'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'NoEconomizer',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_fixed_dry_bulb")
def test_economizer_type_fixed_dry_bulb(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedDryBulb'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'FixedDryBulb',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_fixed_enthalpy")
def test_economizer_type_fixed_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedEnthalpy'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'FixedEnthalpy',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_differential_dry_bulb")
def test_economizer_type_differential_dry_bulb(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'DifferentialDryBulb'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'DifferentialDryBulb',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_differential_enthalpy")
def test_economizer_type_differential_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'DifferentialEnthalpy'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'DifferentialEnthalpy',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"economizer_type_fixed_dew_point_and_dry_bulb")
def test_economizer_type_fixed_dew_point_and_dry_bulb(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedDewPointAndDryBulb'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'FixedDewPointAndDryBulb',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"electronic_enthalpy")
def test_economizer_type_electronic_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'ElectronicEnthalpy'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'ElectronicEnthalpy',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_type_"
"differential_dry_bulb_and_enthalpy")
def test_economizer_type_differential_dry_bulb_and_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'DifferentialDryBulbAndEnthalpy'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'DifferentialDryBulbAndEnthalpy',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['economizer_control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_lockout_no_lockout")
def test_economizer_lockout_no_lockout(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_lockout'] = 'NoLockout'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'NoLockout',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['lockout_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_lockout_lockout_with_heating")
def test_economizer_lockout_lockout_with_heating(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_lockout'] = 'LockoutWithHeating'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'LockoutWithHeating',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['lockout_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"economizer_lockout_lockout_with_compressor")
def test_economizer_lockout_lockout_with_compressor(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_lockout'] = 'LockoutWithCompressor'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'LockoutWithCompressor',
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller']['lockout_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_temperature_limits")
def test_economizer_temperature_limits(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedDryBulb'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_maximum_limit_dry_bulb_temperature'] = 18
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_minimum_limit_dry_bulb_temperature'] = 5
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
18,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller'][
'economizer_maximum_limit_dry_bulb_temperature'])
self.assertEqual(
5,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller'][
'economizer_minimum_limit_dry_bulb_temperature'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:economizer_maximum_limit_enthalpy")
def test_economizer_maximum_limit_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedEnthalpy'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_maximum_limit_enthalpy'] = 100
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
100,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller'][
'economizer_maximum_limit_enthalpy'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"economizer_maximum_limit_dewpoint_temperature")
def test_economizer_maximum_limit_dewpoint_temperature(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_type'] = 'FixedDewPointAndDryBulb'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'economizer_maximum_limit_dewpoint_temperature'] = 7.1
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
7.1,
epjson_output['Controller:OutdoorAir']['DXVAV Sys 1 OA Controller'][
'economizer_maximum_limit_dewpoint_temperature'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:supply_plenum_name")
def test_supply_plenum_name(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'].pop('return_plenum_name')
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_plenum_name'] = 'PLENUM-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'PLENUM-1',
epjson_output['AirLoopHVAC:SupplyPlenum']['DXVAV Sys 1 Supply Plenum']['zone_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:return_plenum_name")
def test_return_plenum_name(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_plenum_name'] = 'PLENUM-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'PLENUM-1',
epjson_output['AirLoopHVAC:ReturnPlenum']['DXVAV Sys 1 Return Plenum']['zone_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_part_load_power_coefficients_inlet_vane_dampers")
def test_supply_fan_part_load_power_coefficients_inlet_vane_dampers(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_part_load_power_coefficients'] = 'InletVaneDampers'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.35071223,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_part_load_power_coefficients_outlet_dampers")
def test_supply_fan_part_load_power_coefficients_outlet_dampers(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_part_load_power_coefficients'] = 'OutletDampers'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.37073425,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_part_load_power_coefficients_variable_speed_motor")
def test_supply_fan_part_load_power_coefficients_variable_speed_motor(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_part_load_power_coefficients'] = 'VariableSpeedMotor'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.0015302446,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_part_load_power_coefficients_ASHRAE901_2004_appendix_g")
def test_supply_fan_part_load_power_coefficients_ASHRAE901_2004_appendix_g(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_part_load_power_coefficients'] = 'ASHRAE90.1-2004AppendixG'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.0013,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"supply_fan_part_load_power_coefficients_"
"variable_speed_motor_pressure_resst")
def test_supply_fan_part_load_power_coefficients_variable_speed_motor_pressure_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'supply_fan_part_load_power_coefficients'] = 'VariableSpeedMotorPressureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.040759894,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Supply Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:night_cycle_control_stay_off")
def test_night_cycle_control_stay_off(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control'] = 'StayOff'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'StayOff',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability']['control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:night_cycle_control_cycle_on_any")
def test_night_cycle_control_cycle_on_any(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control'] = 'CycleOnAny'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'CycleOnAny',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability']['control_type'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:night_cycle_control_cycle_on_control_zone")
def test_night_cycle_control_cycle_on_control_zone(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control'] = 'CycleOnControlZone'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control_zone_name'] = 'SPACE1-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'CycleOnControlZone',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability']['control_type'])
self.assertEqual(
'SPACE1-1',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability']['control_zone_or_zone_list_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:night_cycle_control_"
"cycle_on_any_zone_fans_only")
def test_night_cycle_control_cycle_on_any_zone_fans_only(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control'] = 'CycleOnAnyZoneFansOnly'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'night_cycle_control_zone_name'] = 'SPACE1-1'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'CycleOnAnyZoneFansOnly',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability']['control_type'])
self.assertEqual(
'SPACE1-1',
epjson_output['AvailabilityManager:NightCycle']['DXVAV Sys 1 Availability'][
'control_zone_or_zone_list_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heat_recovery_sensible")
def test_heat_recovery_sensible(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heat_recovery_type'] = 'Sensible'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output.get('HeatExchanger:AirToAir:SensibleAndLatent'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heat_recovery_enthalpy")
def test_heat_recovery_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heat_recovery_type'] = 'Enthalpy'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output.get('HeatExchanger:AirToAir:SensibleAndLatent'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heat_recovery_effectiveness_sensible")
def test_heat_recovery_effectiveness_sensible(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heat_recovery_type'] = 'Sensible'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'sensible_heat_recovery_effectiveness'] = 0.72
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output.get('HeatExchanger:AirToAir:SensibleAndLatent'))
self.assertEqual(
0.77,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_75_cooling_air_flow'])
self.assertEqual(
0.77,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_75_heating_air_flow'])
self.assertEqual(
0.72,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_100_cooling_air_flow'])
self.assertEqual(
0.72,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_100_heating_air_flow'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:heat_recovery_effectiveness_enthalpy")
def test_heat_recovery_effectiveness_enthalpy(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'heat_recovery_type'] = 'Enthalpy'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'sensible_heat_recovery_effectiveness'] = 0.72
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'latent_heat_recovery_effectiveness'] = 0.61
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output.get('HeatExchanger:AirToAir:SensibleAndLatent'))
self.assertEqual(
0.77,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_75_cooling_air_flow'])
self.assertEqual(
0.77,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_75_heating_air_flow'])
self.assertEqual(
0.72,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_100_cooling_air_flow'])
self.assertEqual(
0.72,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'sensible_effectiveness_at_100_heating_air_flow'])
self.assertEqual(
0.61,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'latent_effectiveness_at_100_cooling_air_flow'])
self.assertEqual(
0.61,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'latent_effectiveness_at_100_heating_air_flow'])
self.assertEqual(
0.66,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'latent_effectiveness_at_75_cooling_air_flow'])
self.assertEqual(
0.66,
epjson_output['HeatExchanger:AirToAir:SensibleAndLatent']['DXVAV Sys 1 Heat Recovery'][
'latent_effectiveness_at_75_heating_air_flow'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:dehumidification_control_type_none")
def test_dehumidification_control_type_none(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'dehumidification_control_type'] = 'None'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:dehumidification_control_type_cool_reheat")
def test_dehumidification_control_type_cool_reheat(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'dehumidification_control_type'] = 'CoolReheat'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'dehumidification_control_zone_name'] = 'SPACE1-1'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'dehumidification_setpoint'] = 62
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'HVACTemplate-Always62.0',
epjson_output['ZoneControl:Humidistat']['DXVAV Sys 1 Dehumidification Humidistat'][
'dehumidifying_relative_humidity_setpoint_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:humidifier_type")
def test_humidifier_type(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_type'] = 'ElectricSteam'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_control_zone_name'] = 'SPACE1-1'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_setpoint'] = 29
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output['Humidifier:Steam:Electric'].get('DXVAV Sys 1 Humidifier'))
self.assertEqual(
'HVACTemplate-Always29.0',
epjson_output['ZoneControl:Humidistat']['DXVAV Sys 1 Humidification Humidistat'][
'humidifying_relative_humidity_setpoint_schedule_name'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:humidifier_inputs")
def test_humidifier_inputs(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_type'] = 'ElectricSteam'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_control_zone_name'] = 'SPACE1-1'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_setpoint'] = 29
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_availability_schedule_name'] = 'OCCUPY-1'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_rated_capacity'] = 1
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'humidifier_rated_electric_power'] = 1000
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output['Humidifier:Steam:Electric'].get('DXVAV Sys 1 Humidifier'))
self.assertEqual(
'OCCUPY-1',
epjson_output['Humidifier:Steam:Electric']['DXVAV Sys 1 Humidifier']['availability_schedule_name'])
self.assertEqual(
1,
epjson_output['Humidifier:Steam:Electric']['DXVAV Sys 1 Humidifier']['rated_capacity'])
self.assertEqual(
1000,
epjson_output['Humidifier:Steam:Electric']['DXVAV Sys 1 Humidifier']['rated_power'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:sizing_option_non_coincident")
def test_sizing_option_non_coincident(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'sizing_option'] = 'NonCoincident'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'NonCoincident',
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System']['type_of_zone_sum_to_use'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:sizing_option_non_coincident")
def test_sizing_option_coincident(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'sizing_option'] = 'Coincident'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
'Coincident',
epjson_output['Sizing:System']['DXVAV Sys 1 Sizing System']['type_of_zone_sum_to_use'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:return_fan_yes")
def test_return_fan_yes(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNotNone(epjson_output['Fan:VariableVolume'].get('DXVAV Sys 1 Return Fan'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:return_fan_no")
def test_return_fan_no(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'No'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertIsNone(epjson_output['Fan:VariableVolume'].get('DXVAV Sys 1 Return Fan'))
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:return_fan_inputs")
def test_return_fan_inputs(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_total_efficiency'] = 0.72
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_delta_pressure'] = 295
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_motor_efficiency'] = 0.85
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_motor_in_air_stream_fraction'] = 0.9
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath('..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.72,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_total_efficiency'])
self.assertEqual(
295,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['pressure_rise'])
self.assertEqual(
0.85,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['motor_efficiency'])
self.assertEqual(
0.9,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['motor_in_airstream_fraction'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"return_fan_part_load_power_coefficients_inlet_vane_dampers")
def test_return_fan_part_load_power_coefficients_inlet_vane_dampers(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_part_load_power_coefficients'] = 'InletVaneDampers'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.35071223,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"return_fan_part_load_power_coefficients_outlet_dampers")
def test_return_fan_part_load_power_coefficients_outlet_dampers(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_part_load_power_coefficients'] = 'OutletDampers'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.37073425,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"return_fan_part_load_power_coefficients_variable_speed_motor")
def test_return_fan_part_load_power_coefficients_variable_speed_motor(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_part_load_power_coefficients'] = 'VariableSpeedMotor'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.0015302446,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"return_fan_part_load_power_coefficients_ASHRAE901_2004_appendix_g")
def test_return_fan_part_load_power_coefficients_ASHRAE901_2004_appendix_g(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_part_load_power_coefficients'] = 'ASHRAE90.1-2004AppendixG'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.0013,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_power_coefficient_1'])
return
@BaseSimulationTest._test_logger(doc_text="Simulation:System:PackagedVAV:"
"return_fan_part_load_power_coefficients_"
"variable_speed_motor_pressure_resst")
def test_return_fan_part_load_power_coefficients_variable_speed_motor_pressure_reset(self):
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan'] = 'Yes'
self.base_epjson['HVACTemplate:System:PackagedVAV']['DXVAV Sys 1'][
'return_fan_part_load_power_coefficients'] = 'VariableSpeedMotorPressureReset'
base_file_path = self.create_idf_file_from_epjson(epjson=self.base_epjson, file_name='base_pre_input.epJSON')
self.perform_full_comparison(base_idf_file_path=base_file_path)
epjson_output = self.ej._get_json_file(test_dir.joinpath(
'..', 'simulation', 'test', 'test_input_epjson.epJSON'))
self.assertEqual(
0.040759894,
epjson_output['Fan:VariableVolume']['DXVAV Sys 1 Return Fan']['fan_power_coefficient_1'])
return
| 61.76822
| 129
| 0.689255
| 11,928
| 103,400
| 5.554158
| 0.030433
| 0.038521
| 0.065721
| 0.0832
| 0.951713
| 0.934596
| 0.924543
| 0.913042
| 0.905042
| 0.897404
| 0
| 0.011011
| 0.202466
| 103,400
| 1,673
| 130
| 61.80514
| 0.79236
| 0.006809
| 0
| 0.701597
| 0
| 0
| 0.382555
| 0.275101
| 0
| 0
| 0
| 0.000598
| 0.071566
| 1
| 0.060064
| false
| 0
| 0.001917
| 0.000639
| 0.122684
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
b026aeb253107976fd67c65d85729e391e553787
| 125
|
py
|
Python
|
parser.py
|
smdth/mimLab
|
78a49c17a4e103841f49cd4b880561a490682864
|
[
"0BSD"
] | null | null | null |
parser.py
|
smdth/mimLab
|
78a49c17a4e103841f49cd4b880561a490682864
|
[
"0BSD"
] | null | null | null |
parser.py
|
smdth/mimLab
|
78a49c17a4e103841f49cd4b880561a490682864
|
[
"0BSD"
] | null | null | null |
#!/bin/env python
import sys
print sys.argv[1]
print sys.argv[1].split("[")
print sys.argv[1].split("[")[-1].split("]")[0]
| 15.625
| 46
| 0.616
| 22
| 125
| 3.5
| 0.454545
| 0.311688
| 0.467532
| 0.506494
| 0.467532
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044248
| 0.096
| 125
| 7
| 47
| 17.857143
| 0.637168
| 0.128
| 0
| 0
| 0
| 0
| 0.027778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.25
| null | null | 0.75
| 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
| 1
|
0
| 7
|
b029d2111e43d7122ccee5b19071cf1ac93c09d1
| 14,592
|
py
|
Python
|
app/sqlalchemyclassnotes.py
|
sargentfrancesca/flasky
|
0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f
|
[
"MIT"
] | 3
|
2017-12-12T19:38:07.000Z
|
2022-01-17T09:54:07.000Z
|
app/sqlalchemyclassnotes.py
|
sargentfrancesca/flasky
|
0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f
|
[
"MIT"
] | 117
|
2016-08-08T09:10:13.000Z
|
2017-01-31T15:19:51.000Z
|
app/sqlalchemyclassnotes.py
|
sargentfrancesca/flasky
|
0bea79fddb45f1279da7c468d1ae7f8a6a3e8c7f
|
[
"MIT"
] | 1
|
2020-05-01T08:36:42.000Z
|
2020-05-01T08:36:42.000Z
|
>>> from sqlalchemy.orm.query import Query
>>>
>>> class VersionQuery(Query):
... def __iter__(self):
... return Query.__iter__(self.original())
... def original(self):
... mzero = self._mapper_zero()
... if mzero is not None:
... # crit = mzero.class_.version.version_number == 0
... return self.enable_assertions(False).filter(Version.version_number == 0)
... else:
... return self
...
>>> from sqlalchemy import *
>>> from sqlalchemy.orm import *
>>> from sqlalchemy.ext.declarative import declarative_base
>>> Base = declarative_base()
>>>
>>> engine = create_engine('mysql://root:jeh5t@localhost/demog_compadre', echo=False)
>>> Base.metadata.create_all(engine)
>>> Session = sessionmaker(bind=engine, query_cls=VersionQuery)
>>> sess = Session()
>>> species = sess.query(Species).filter_by(species_accepted='Alaria nana').original()
>>> for s in species:
... s
...
2016-12-16 14:35:36,347 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2016-12-16 14:35:36,351 INFO sqlalchemy.engine.base.Engine SELECT species.id AS species_id, species.species_accepted AS species_species_accepted, species.species_common AS species_species_common, species.iucn_status_id AS species_iucn_status_id, species.esa_status_id AS species_esa_status_id, species.invasive_status AS species_invasive_status, species.gbif_taxon_key AS species_gbif_taxon_key, species.image_path AS species_image_path, species.image_path2 AS species_image_path2
FROM species, versions
WHERE species.species_accepted = %s AND versions.version_number = %s AND versions.version_number = %s
2016-12-16 14:35:36,351 INFO sqlalchemy.engine.base.Engine ('Alaria nana', 0, 0)
<Species 1L>
>>> species[0].version.version_number
2016-12-16 14:35:54,461 INFO sqlalchemy.engine.base.Engine SELECT species.id AS species_id, species.species_accepted AS species_species_accepted, species.species_common AS species_species_common, species.iucn_status_id AS species_iucn_status_id, species.esa_status_id AS species_esa_status_id, species.invasive_status AS species_invasive_status, species.gbif_taxon_key AS species_gbif_taxon_key, species.image_path AS species_image_path, species.image_path2 AS species_image_path2
FROM species, versions
WHERE species.species_accepted = %s AND versions.version_number = %s AND versions.version_number = %s
LIMIT %s
2016-12-16 14:35:54,461 INFO sqlalchemy.engine.base.Engine ('Alaria nana', 0, 0, 1)
2016-12-16 14:35:54,466 INFO sqlalchemy.engine.base.Engine SELECT versions.id AS versions_id, versions.version_number AS versions_version_number, versions.version_of_id AS versions_version_of_id, versions.version_date_added AS versions_version_date_added, versions.version_timestamp_created AS versions_version_timestamp_created, versions.version_uid AS versions_version_uid, versions.checked AS versions_checked, versions.status_id AS versions_status_id, versions.checked_count AS versions_checked_count, versions.version_user_id AS versions_version_user_id, versions.database_id AS versions_database_id, versions.species_id AS versions_species_id, versions.taxonomy_id AS versions_taxonomy_id, versions.trait_id AS versions_trait_id, versions.publication_id AS versions_publication_id, versions.study_id AS versions_study_id, versions.population_id AS versions_population_id, versions.matrix_id AS versions_matrix_id, versions.fixed_id AS versions_fixed_id, versions.stage_id AS versions_stage_id, versions.stage_type_id AS versions_stage_type_id, versions.matrix_stage_id AS versions_matrix_stage_id, versions.matrix_value_id AS versions_matrix_value_id, versions.author_contact_id AS versions_author_contact_id, versions.additional_source_id AS versions_additional_source_id
FROM versions
WHERE %s = versions.species_id AND versions.version_number = %s
2016-12-16 14:35:54,467 INFO sqlalchemy.engine.base.Engine (1L, 0)
0L
>>>
from sqlalchemy.orm.query import Query
class VersionQuery(Query):
def __iter__(self):
return Query.__iter__(self.original())
def new(self):
mzero = self._mapper_zero()
if mzero is not None:
return self.enable_assertions(False).filter(Version.version_number == 1)
else:
return self
def original(self):
mzero = self._mapper_zero()
if mzero is not None:
return self.enable_assertions(False).filter(Version.version_number == 0)
else:
return self
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
engine = create_engine('mysql://root:jeh5t@localhost/demog_compadre', echo=False)
Base.metadata.create_all(engine)
Session = scoped_session(sessionmaker(bind=engine, query_cls=VersionQuery))
sess = Session()
species = sess.query(Species).filter_by(species_accepted='Alaria nana').original()
for s in species:
s.version
all_species = sess.query(Species).original()
len([s for s in all_species])
len(Species.query.all())
2016-12-16 14:35:36,347 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)
2016-12-16 14:35:36,351 INFO sqlalchemy.engine.base.Engine SELECT species.id AS species_id, species.species_accepted AS species_species_accepted, species.species_common AS species_species_common, species.iucn_status_id AS species_iucn_status_id, species.esa_status_id AS species_esa_status_id, species.invasive_status AS species_invasive_status, species.gbif_taxon_key AS species_gbif_taxon_key, species.image_path AS species_image_path, species.image_path2 AS species_image_path2
FROM species, versions
WHERE species.species_accepted = %s AND versions.version_number = %s AND versions.version_number = %s
2016-12-16 14:35:36,351 INFO sqlalchemy.engine.base.Engine ('Alaria nana', 0, 0)
<Species 1L>
species[0].version.version_number
2016-12-16 14:35:54,461 INFO sqlalchemy.engine.base.Engine SELECT species.id AS species_id, species.species_accepted AS species_species_accepted, species.species_common AS species_species_common, species.iucn_status_id AS species_iucn_status_id, species.esa_status_id AS species_esa_status_id, species.invasive_status AS species_invasive_status, species.gbif_taxon_key AS species_gbif_taxon_key, species.image_path AS species_image_path, species.image_path2 AS species_image_path2
FROM species, versions
WHERE species.species_accepted = %s AND versions.version_number = %s AND versions.version_number = %s
LIMIT %s
2016-12-16 14:35:54,461 INFO sqlalchemy.engine.base.Engine ('Alaria nana', 0, 0, 1)
2016-12-16 14:35:54,466 INFO sqlalchemy.engine.base.Engine SELECT versions.id AS versions_id, versions.version_number AS versions_version_number, versions.version_of_id AS versions_version_of_id, versions.version_date_added AS versions_version_date_added, versions.version_timestamp_created AS versions_version_timestamp_created, versions.version_uid AS versions_version_uid, versions.checked AS versions_checked, versions.status_id AS versions_status_id, versions.checked_count AS versions_checked_count, versions.version_user_id AS versions_version_user_id, versions.database_id AS versions_database_id, versions.species_id AS versions_species_id, versions.taxonomy_id AS versions_taxonomy_id, versions.trait_id AS versions_trait_id, versions.publication_id AS versions_publication_id, versions.study_id AS versions_study_id, versions.population_id AS versions_population_id, versions.matrix_id AS versions_matrix_id, versions.fixed_id AS versions_fixed_id, versions.stage_id AS versions_stage_id, versions.stage_type_id AS versions_stage_type_id, versions.matrix_stage_id AS versions_matrix_stage_id, versions.matrix_value_id AS versions_matrix_value_id, versions.author_contact_id AS versions_author_contact_id, versions.additional_source_id AS versions_additional_source_id
FROM versions
WHERE %s = versions.species_id AND versions.version_number = %s
2016-12-16 14:35:54,467 INFO sqlalchemy.engine.base.Engine (1L, 0)
0L
import time
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.query import Query
from sqlalchemy import or_
class VersionQuery(Query):
def __iter__(self):
return Query.__iter__(self)
def all(self):
status = Status.query.filter(Status.status_name=='Green').first()
return [s for s in self.filter(Version.statuses == status).filter(Version.checked == True).order_by(Version.version_number.desc())]
def original(self):
return self.filter(Version.version_number == 0)[0]
def latest(self):
status = Status.query.filter(Status.status_name=='Green').first()
return self.filter(Version.statuses == status).filter(Version.checked == True).order_by(Version.version_number.desc())[0]
def all_checked(self):
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return self.filter(or_(Version.statuses == amber, Version.statuses == green)).filter(Version.checked == True).order_by(Version.version_number.desc())]
def all_checked_unchecked(self):
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return [s for s in self.filter(or_(Version.statuses == amber, Version.statuses == green)).order_by(Version.version_number.desc())]
def all_v(self):
return [s for s in self.all()]
def get_version(self, id):
return self.filter(Version.version_number == id)[0]
Base = declarative_base()
engine = create_engine('mysql://root:jeh5t@localhost/demog_compadre', echo=False)
Base.metadata.create_all(engine)
Session = scoped_session(sessionmaker(bind=engine, query_cls=VersionQuery))
sess = Session()
sess.query(Species).all_v()
def session_original_query():
start_time = time.time()
[s for s in sess.query(Species).original()]
print("--- Custom Query Loop Original %s seconds ---" % (time.time() - start_time))
session_original_query()
def session_loop_manually():
start_time = time.time()
[s for s in Species.query.filter(Version.version_number == 0)]
print("--- Manual Query Loop Original %s seconds ---" % (time.time() - start_time))
session_loop_manually()
normal_query()
session_all_query()
session_original_query()
///////
import time
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.query import Query
from sqlalchemy import or_
class VersionQuery(Query):
def __iter__(self):
return Query.__iter__(self)
def all(self):
return [s for s in self.filter_by(version_ok=1).order_by(Version.version_number.desc())]
def original(self):
return self.filter_by(version_original=1)
def latest(self):
return self.filter_by(version_latest=1)
def all_checked(self):
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return self.filter(or_(Version.statuses == amber, Version.statuses == green)).filter(Version.checked == True).order_by(Version.version_number.desc())]
def all_checked_unchecked(self):
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return [s for s in self.filter(or_(Version.statuses == amber, Version.statuses == green)).order_by(Version.version_number.desc())]
def all_v(self):
return [s for s in self.all()]
def get_version(self, id):
return self.filter(Version.version_number == id)[0]
Base = declarative_base()
engine = create_engine('mysql://root:jeh5t@localhost/demog_compadre', echo=False)
Base.metadata.create_all(engine)
Session = scoped_session(sessionmaker(bind=engine, query_cls=VersionQuery))
sess = Session()
sess.query(Species).all_v()
def session_original_query():
start_time = time.time()
[s for s in sess.query(Species).original()]
print("--- Custom Query Loop Original %s seconds ---" % (time.time() - start_time))
session_original_query()
def session_loop_manually():
start_time = time.time()
[s for s in Species.query.filter(Version.version_number == 0)]
print("--- Manual Query Loop Original %s seconds ---" % (time.time() - start_time))
session_loop_manually()
normal_query()
session_all_query()
session_original_query()
import time
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm.query import Query
from sqlalchemy import or_
class VersionQuery(Query):
def __iter__(self):
return Query.__iter__(self)
def all(self):
try:
version_ok = self.version_ok if self.version_ok else 0
except:
return [s for s in self]
else:
return [s for s in self.filter_by(version_ok=1).order_by(Version.version_number.desc())]
def original(self):
return self.filter_by(version_original=1)
def latest(self):
return self.filter_by(version_latest=1)
def all_checked(self):
# This is slow
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return self.filter(or_(Version.statuses == amber, Version.statuses == green)).filter(Version.checked == True).order_by(Version.version_number.desc())]
def all_checked_unchecked(self):
# This is slow
amber = Status.query.filter(Status.status_name=='Amber').first()
green = Status.query.filter(Status.status_name=='Green').first()
return [s for s in self.filter(or_(Version.statuses == amber, Version.statuses == green)).order_by(Version.version_number.desc())]
def all_v(self):
return [s for s in self]
def get_version(self, id):
return self.filter(Version.version_number == id)[0]
Base = declarative_base()
engine = create_engine('mysql://root:jeh5t@localhost/demog_compadre', echo=False)
Base.metadata.create_all(engine)
Session = scoped_session(sessionmaker(bind=engine, query_cls=VersionQuery))
sess = Session()
| 54.245353
| 1,279
| 0.748081
| 2,068
| 14,592
| 5.022727
| 0.070116
| 0.019255
| 0.043901
| 0.010109
| 0.980938
| 0.980841
| 0.977279
| 0.977279
| 0.977279
| 0.977279
| 0
| 0.023338
| 0.148438
| 14,592
| 268
| 1,280
| 54.447761
| 0.81257
| 0
| 0
| 0.820628
| 0
| 0
| 0.036585
| 0.014813
| 0
| 0
| 0
| 0
| 0.013453
| 0
| null | null | 0
| 0.116592
| null | null | 0.017937
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b02b5563d04b5fb093b80e6fbd6c305a98da11b8
| 11,606
|
py
|
Python
|
conf/settings.py
|
RosenLo/elasticsearch-agent
|
920aec639cd0b377016ff8ea084e07d42da56a32
|
[
"MIT"
] | 16
|
2016-12-25T16:11:26.000Z
|
2019-05-24T08:17:36.000Z
|
conf/settings.py
|
rosenlo/elasticsearch-agent
|
920aec639cd0b377016ff8ea084e07d42da56a32
|
[
"MIT"
] | 1
|
2018-04-27T12:53:07.000Z
|
2018-10-11T10:12:40.000Z
|
conf/settings.py
|
rosenlo/elasticsearch-agent
|
920aec639cd0b377016ff8ea084e07d42da56a32
|
[
"MIT"
] | 3
|
2017-10-17T12:18:03.000Z
|
2018-12-24T07:34:00.000Z
|
#!/usr/bin/env python
# encoding: utf-8
"""
Author: Rosen
Mail: rosenluov@gmail.com
File: settings.py
Created Time: 12/22/16 12:05
"""
import socket
import logging.config
from os import path
BASE_DIR = path.dirname(path.abspath(__file__))
pidfile = '/run/elasticsearch/es-agent.pid'
stdout = '/data/log/elasticsearch/es-agent.log'
stderr = '/data/log/elasticsearch/es-agent.err'
HOSTNAME = socket.gethostname()
IP = socket.gethostbyname(HOSTNAME)
PORT = 9200
OPEN_FALCON = BASE_DIR + '/open-falcon.yaml'
STATSD_FILE = BASE_DIR + '/statsd.yaml'
ES_FILE = BASE_DIR + '/es.yaml'
# setting for log
logging.config.dictConfig({
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': "[%(asctime)s] [%(name)s] %(filename)s[line:%(lineno)d] %(levelname)s: %(message)s",
'datefmt': "%Y-%m-%d %H:%M:%S"
},
'simple': {
'format': '%(levelname)s %(message)s'
},
},
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'logging.NullHandler',
},
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose'
},
'file_stdout': {
'level': 'DEBUG',
'class': 'cloghandler.ConcurrentRotatingFileHandler',
'maxBytes': 1024 * 1024 * 10,
'backupCount': 50,
# If delay is true,
# then file opening is deferred until the first call to emit().
'delay': True,
'filename': stdout,
'formatter': 'verbose'
},
'file_stderr': {
'level': 'DEBUG',
'class': 'cloghandler.ConcurrentRotatingFileHandler',
'maxBytes': 1024 * 1024 * 10,
'backupCount': 50,
# If delay is true,
# then file opening is deferred until the first call to emit().
'delay': True,
'filename': stderr,
'formatter': 'verbose'
}
},
'loggers': {
'': {
'handlers': ['file_stdout', 'file_stderr'],
'level': 'INFO',
},
# 'err': {
# 'handlers': ['file_stdout', 'file_stderr'],
# 'level': 'INFO',
# },
}
})
# keys for health page
traps1 = [
"status",
"active_primary_shards",
"active_shards",
"initializing_shards",
"number_of_data_nodes",
"task_max_waiting_in_queue_millis",
"number_of_pending_tasks",
"number_of_nodes",
"relocating_shards",
"unassigned_shards"
]
# keys for cluster stats page
traps2 = [
"thread_pool.index.active",
# "thread_pool.index.completed",
# "thread_pool.index.largest",
"thread_pool.index.queue",
"thread_pool.index.rejected",
# "thread_pool.index.threads",
# "thread_pool.search.completed"
"thread_pool.search.rejected",
"thread_pool.search.active",
# "thread_pool.search.largest",
"thread_pool.search.queue",
# "thread_pool.search.threads",
"thread_pool.bulk.active",
"thread_pool.bulk.queue",
"thread_pool.bulk.rejected",
# "http.current_open",
# "http.total_opened",
"process.cpu.percent",
"process.cpu.sys_in_millis",
"process.cpu.total_in_millis",
"process.cpu.user_in_millis",
"process.mem.resident_in_bytes",
"process.mem.share_in_bytes",
"process.mem.total_virtual_in_bytes",
# "process.open_file_descriptors",
"indices.query_cache.memory_size_in_bytes",
"indices.query_cache.total_count",
"indices.query_cache.hit_count",
"indices.query_cache.miss_count",
"indices.query_cache.cache_size",
"indices.request_cache.memory_size_in_bytes",
"indices.request_cache.hit_count",
"indices.request_cache.miss_count",
"indices.docs.count",
"indices.docs.deleted",
"indices.flush.total",
"indices.flush.total_time_in_millis",
"indices.get.exists_time_in_millis",
"indices.get.exists_total",
"indices.get.missing_time_in_millis",
"indices.get.missing_total",
"indices.indexing.delete_time_in_millis",
"indices.indexing.delete_total",
"indices.indexing.index_time_in_millis",
"indices.indexing.index_total",
"indices.indexing.index_current",
"indices.indexing.index_failed",
"indices.merges.total_size_in_bytes",
"indices.merges.total_time_in_millis",
"indices.refresh.total",
"indices.refresh.total_time_in_millis",
"indices.search.fetch_time_in_millis",
"indices.search.fetch_total",
"indices.search.query_time_in_millis",
"indices.search.query_total",
"indices.store.throttle_time_in_millis",
"indices.warmer.total",
"indices.warmer.total_time_in_millis",
"indices.segments.memory_in_bytes",
"indices.segments.count",
# "jvm.mem.heap_committed_in_bytes",
# "jvm.mem.heap_max_in_bytes",
# "jvm.mem.heap_used_in_bytes",
"jvm.mem.heap_used_percent",
# "jvm.mem.non_heap_committed_in_bytes",
# "jvm.mem.non_heap_used_in_bytes",
"jvm.mem.pools.old.max_in_bytes",
# "jvm.mem.pools.old.peak_max_in_bytes",
# "jvm.mem.pools.old.peak_used_in_bytes",
"jvm.mem.pools.old.used_in_bytes",
"jvm.mem.pools.young.max_in_bytes",
# "jvm.mem.pools.young.peak_max_in_bytes",
# "jvm.mem.pools.young.peak_used_in_bytes",
"jvm.mem.pools.young.used_in_bytes",
"jvm.mem.pools.survivor.max_in_bytes",
# "jvm.mem.pools.survivor.peak_max_in_bytes",
# "jvm.mem.pools.survivor.peak_used_in_bytes",
"jvm.mem.pools.survivor.used_in_bytes",
"jvm.threads.count",
"jvm.threads.peak_count",
"jvm.gc.collectors.old.collection_count",
"jvm.gc.collectors.old.collection_time_in_millis",
"jvm.gc.collectors.young.collection_count",
"jvm.gc.collectors.young.collection_time_in_millis",
"jvm.buffer_pools.direct.count",
"jvm.buffer_pools.direct.total_capacity_in_bytes",
"jvm.buffer_pools.direct.used_in_bytes",
"jvm.buffer_pools.mapped.count",
"jvm.buffer_pools.mapped.total_capacity_in_bytes",
"jvm.buffer_pools.mapped.used_in_bytes",
# "os.mem.used_in_bytes",
# "os.mem.total_in_bytes",
# "os.mem.free_in_bytes",
"os.mem.free_percent",
"os.mem.used_percent",
"os.cpu_percent",
# "os.load_average",
"transport.rx_size_in_bytes",
"transport.rx_count",
"transport.tx_size_in_bytes",
"transport.tx_count"
]
traps3 = [
"indices.count",
]
GAUGE = [
"active_primary_shards",
"active_shards",
"status",
"task_max_waiting_in_queue_millis",
"number_of_pending_tasks",
"number_of_data_nodes",
"number_of_nodes",
"unassigned_shards",
# "http.current_open",
"initializing_shards",
"jvm.buffer_pools.direct.count",
"jvm.buffer_pools.direct.total_capacity_in_bytes",
"jvm.buffer_pools.direct.used_in_bytes",
"jvm.buffer_pools.mapped.count",
"jvm.buffer_pools.mapped.total_capacity_in_bytes",
"jvm.buffer_pools.mapped.used_in_bytes",
# "jvm.mem.heap_committed_in_bytes",
# "jvm.mem.heap_max_in_bytes",
# "jvm.mem.heap_used_in_bytes",
"jvm.mem.heap_used_percent",
# "jvm.mem.non_heap_committed_in_bytes",
# "jvm.mem.non_heap_used_in_bytes",
"jvm.mem.pools.old.max_in_bytes",
# "jvm.mem.pools.old.peak_max_in_bytes",
# "jvm.mem.pools.old.peak_used_in_bytes",
"jvm.mem.pools.old.used_in_bytes",
"jvm.mem.pools.survivor.max_in_bytes",
# "jvm.mem.pools.survivor.peak_max_in_bytes",
# "jvm.mem.pools.survivor.peak_used_in_bytes",
"jvm.mem.pools.survivor.used_in_bytes",
"jvm.mem.pools.young.max_in_bytes",
# "jvm.mem.pools.young.peak_max_in_bytes",
# "jvm.mem.pools.young.peak_used_in_bytes",
"jvm.mem.pools.young.used_in_bytes",
"jvm.threads.count",
"jvm.threads.peak_count",
"jvm_heap_p_of_RAM",
"jvm_heap_p_used",
"jvm.uptime_in_millis",
# "os.mem.used_in_bytes",
# "os.mem.total_in_bytes",
# "os.mem.free_in_bytes",
"os.mem.free_percent",
"os.mem.used_percent",
"os.cpu_percent",
"os.load_average",
"process.cpu.percent",
"process.cpu.sys_in_millis",
"process.cpu.total_in_millis",
"process.cpu.user_in_millis",
"process.mem.resident_in_bytes",
"process.mem.share_in_bytes",
"process.mem.total_virtual_in_bytes",
# "process.open_file_descriptors",
"indices.segments.count",
"indices.indexing.index_current",
"indices.segments.memory_in_bytes",
"indices.query_cache.memory_size_in_bytes",
"indices.query_cache.cache_size",
"indices.request_cache.memory_size_in_bytes",
"thread_pool.index.active",
"thread_pool.bulk.active",
"thread_pool.search.active",
"thread_pool.index.queue",
"thread_pool.bulk.queue",
"thread_pool.search.queue",
"relocating_shards"
]
COUNTER = [
# "http.total_opened",
"indices.docs.count",
"indices.docs.deleted",
"indices.query_cache.hit_count",
"indices.query_cache.total_count",
"indices.query_cache.miss_count",
"indices.request_cache.hit_count",
"indices.request_cache.miss_count",
"indices.flush.total",
"indices.flush.total_time_in_millis",
"indices.get.exists_time_in_millis",
"indices.get.exists_total",
"indices.get.missing_time_in_millis",
"indices.get.missing_total",
"indices.indexing.delete_time_in_millis",
"indices.indexing.delete_total",
"indices.indexing.index_time_in_millis",
"indices.indexing.index_total",
"indices.indexing.index_failed",
"indices.merges.total_size_in_bytes",
"indices.merges.total_time_in_millis",
"indices.refresh.total",
"indices.refresh.total_time_in_millis",
"indices.search.fetch_time_in_millis",
"indices.search.fetch_total",
"indices.search.query_time_in_millis",
"indices.search.query_total",
"indices.store.throttle_time_in_millis",
"indices.warmer.total",
"indices.warmer.total_time_in_millis",
# "thread_pool.index.completed"
"thread_pool.index.rejected",
# "thread_pool.index.largest",
# "thread_pool.index.threads",
# "thread_pool.search.completed"
"thread_pool.search.rejected",
"thread_pool.bulk.rejected",
# "thread_pool.search.largest",
# "thread_pool.search.threads",
"jvm.gc.collectors.old.collection_count",
"jvm.gc.collectors.old.collection_time_in_millis",
"jvm.gc.collectors.young.collection_time_in_millis",
"jvm.gc.collectors.young.collection_count",
"transport.rx_size_in_bytes",
"transport.rx_count",
"transport.tx_size_in_bytes",
"transport.tx_count"
]
SEC_METRIC = {
"indices.search.query_time_in_millis": "indices.search.query_total",
"indices.search.fetch_time_in_millis": "indices.search.fetch_total",
"indices.get.exists_time_in_millis": "indices.get.exists_total",
"indices.get.missing_time_in_millis": "indices.get.missing_total",
"indices.merges.total_size_in_bytes": "indices.merges.total_time_in_millis",
"indices.flush.total_time_in_millis": "indices.flush.total",
"indices.refresh.total_time_in_millis": "indices.refresh.total",
"indices.indexing.index_time_in_millis": "indices.indexing.index_total",
"indices.indexing.delete_time_in_millis": "indices.indexing.delete_total",
"indices.warmer.total_time_in_millis": "indices.warmer.total",
"jvm.gc.collectors.young.collection_time_in_millis": "jvm.gc.collectors.young.collection_count",
"jvm.gc.collectors.old.collection_time_in_millis": "jvm.gc.collectors.old.collection_count",
}
if __name__ == '__main__':
pass
| 33.64058
| 106
| 0.677236
| 1,491
| 11,606
| 4.934943
| 0.144869
| 0.06374
| 0.055722
| 0.058304
| 0.839087
| 0.818701
| 0.780103
| 0.723294
| 0.695026
| 0.691356
| 0
| 0.004493
| 0.17534
| 11,606
| 344
| 107
| 33.738372
| 0.764288
| 0.167069
| 0
| 0.695489
| 0
| 0.003759
| 0.674479
| 0.549375
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.003759
| 0.011278
| 0
| 0.011278
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b039d6c449f8b89629e38e6414393861dead04e7
| 2,755
|
py
|
Python
|
Mundo 2_Estruturas de Controle/Desafio_59.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
Mundo 2_Estruturas de Controle/Desafio_59.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
Mundo 2_Estruturas de Controle/Desafio_59.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
n1 = float(input('\nPRIMEIRO VALOR: '))
n2 = float(input('SEGUNDO VALOR: '))
print('\nOQUE DESEJA FAZER?')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
while menu != 7:
if menu == 1:
print(f'\nA SOMA DE {n1} + {n2} = {n1+n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif menu == 2:
print(f'\nA MULTIPLICAÇÃO DE {n1} x {n2} = {n1*n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif menu == 3:
print(f'\nA SUBTRAÇÃO DE {n1} - {n2} = {n1-n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif menu == 4:
if n2 == 0:
print('O SEGUNDO VALOR NÃO PODE SER ZERO!')
n2 = float(input('SEGUNDO VALOR: '))
print(f'\nA DIVISÃO DE {n1} / {n2} = {n1/n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif menu == 5:
if n1 > n2:
print(f'\n{n1} > {n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif n2 > n1:
print(f'\n{n2} > {n1}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
else:
print(f'\n{n1} = {n2}\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
elif menu == 6:
n1 = float(input('\nPRIMEIRO VALOR: '))
n2 = float(input('SEGUNDO VALOR: '))
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
else:
print('\nPOR FAVOR, DIGITE UMA OPÇÃO VÁLIDA!\n')
menu = int(input('[ 1 ] - SOMAR\n[ 2 ] - MULTIPLICAR\n[ 3 ] - SUBTRAIR\n[ 4 ] - DIVIDIR\n[ 5 ] - MAIOR OU MENOR\n[ 6 ] - NOVOS NÚMEROS\n[ 7 ] - SAIR\n-> QUAL SUA OPÇÃO: '))
| 67.195122
| 184
| 0.514338
| 436
| 2,755
| 3.25
| 0.130734
| 0.0494
| 0.084686
| 0.091743
| 0.865914
| 0.865914
| 0.84192
| 0.84192
| 0.84192
| 0.84192
| 0
| 0.055556
| 0.281307
| 2,755
| 40
| 185
| 68.875
| 0.660101
| 0
| 0
| 0.459459
| 0
| 0.27027
| 0.684574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.27027
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b0414d7127ad8f8fc1c7945e12df022d28641958
| 1,591
|
py
|
Python
|
custom_components/fpl/sensor_DatesSensor.py
|
Dominic7/hass-fpl
|
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
|
[
"MIT"
] | 12
|
2020-10-16T15:13:03.000Z
|
2022-03-23T15:16:00.000Z
|
custom_components/fpl/sensor_DatesSensor.py
|
Dominic7/hass-fpl
|
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
|
[
"MIT"
] | 27
|
2020-01-18T19:30:32.000Z
|
2022-03-28T22:27:33.000Z
|
custom_components/fpl/sensor_DatesSensor.py
|
Dominic7/hass-fpl
|
fa5ba8a1b6f2e0b0c812edfe5568074c7c42a764
|
[
"MIT"
] | 16
|
2020-06-16T16:45:37.000Z
|
2022-03-24T03:26:03.000Z
|
from .fplEntity import FplEntity
class CurrentBillDateSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Current Bill Date")
@property
def state(self):
return self.getData("current_bill_date")
@property
def icon(self):
return "mdi:calendar"
class NextBillDateSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Next Bill Date")
@property
def state(self):
return self.getData("next_bill_date")
@property
def icon(self):
return "mdi:calendar"
class ServiceDaysSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Service Days")
@property
def state(self):
return self.getData("service_days")
@property
def icon(self):
return "mdi:calendar"
class AsOfDaysSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "As Of Days")
@property
def state(self):
return self.getData("as_of_days")
@property
def icon(self):
return "mdi:calendar"
class RemainingDaysSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Remaining Days")
@property
def state(self):
return self.getData("remaining_days")
@property
def icon(self):
return "mdi:calendar"
| 23.746269
| 75
| 0.664991
| 170
| 1,591
| 5.941176
| 0.188235
| 0.168317
| 0.237624
| 0.09901
| 0.847525
| 0.817822
| 0.817822
| 0.817822
| 0.656436
| 0.478218
| 0
| 0
| 0.224387
| 1,591
| 66
| 76
| 24.106061
| 0.818477
| 0
| 0
| 0.652174
| 0
| 0
| 0.121936
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.326087
| false
| 0
| 0.021739
| 0.217391
| 0.673913
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 1
| 0
|
0
| 8
|
b04876548259452b6259438f71a18b658bd93dc8
| 162
|
py
|
Python
|
schedulers/__init__.py
|
zihaomu/HID_2020_baseline
|
c2c3705707695a969d24aa52c225aa3f85c7a4f3
|
[
"Apache-2.0"
] | 34
|
2020-08-26T14:53:13.000Z
|
2021-09-26T12:41:55.000Z
|
schedulers/__init__.py
|
zihaomu/HID_2020_baseline
|
c2c3705707695a969d24aa52c225aa3f85c7a4f3
|
[
"Apache-2.0"
] | 1
|
2020-10-10T14:29:25.000Z
|
2020-10-10T19:28:03.000Z
|
schedulers/__init__.py
|
zihaomu/HID_2020_baseline
|
c2c3705707695a969d24aa52c225aa3f85c7a4f3
|
[
"Apache-2.0"
] | 7
|
2020-09-06T06:49:45.000Z
|
2022-03-11T11:13:39.000Z
|
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .scheduler_factory import get_scheduler
| 23.142857
| 45
| 0.845679
| 20
| 162
| 6.05
| 0.5
| 0.247934
| 0.396694
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 162
| 6
| 46
| 27
| 0.876812
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.25
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b04cc7f69196861f6ec242bf6e6c217670038389
| 3,361
|
py
|
Python
|
tests/data.py
|
PDXFinder/pdcm-etl
|
3caf80938d9e80f1fc7bb0724cba6ae68a8d315e
|
[
"Apache-2.0"
] | 1
|
2021-05-24T14:54:48.000Z
|
2021-05-24T14:54:48.000Z
|
tests/data.py
|
PDXFinder/pdcm-etl
|
3caf80938d9e80f1fc7bb0724cba6ae68a8d315e
|
[
"Apache-2.0"
] | 1
|
2021-06-01T10:46:07.000Z
|
2021-06-01T10:46:07.000Z
|
tests/data.py
|
PDXFinder/pdcm-etl
|
3caf80938d9e80f1fc7bb0724cba6ae68a8d315e
|
[
"Apache-2.0"
] | null | null | null |
model_raw_data = [
{
"Field": "Description",
"model_id": "",
"host_strain": "",
"host_strain_full": "",
"engraftment_site": "",
"engraftment_type": "",
"sample_type": "",
"sample_state": "",
"passage_number": "",
"publications": ""
},
{
"Field": "Example",
"model_id": "",
"host_strain": "",
"host_strain_full": "",
"engraftment_site": "",
"engraftment_type": "",
"sample_type": "",
"sample_state": "",
"passage_number": "",
"publications": ""
},
{
"Field": "Description",
"model_id": "",
"host_strain": "",
"host_strain_full": "",
"engraftment_site": "",
"engraftment_type": "",
"sample_type": "",
"sample_state": "",
"passage_number": "",
"publications": ""
},
{
"Field": "Essential?",
"model_id": "",
"host_strain": "",
"host_strain_full": "",
"engraftment_site": "",
"engraftment_type": "",
"sample_type": "",
"sample_state": "",
"passage_number": "",
"publications": ""
},
{
"Field": None,
"model_id": "BRC0013PR",
"host_strain": "NOD SCID GAMMA",
"host_strain_full": "NOD.Cg-Prkdcscid Il2rgtm1Sug/JicTac",
"engraftment_site": "interscapular fat pad",
"engraftment_type": "heterotopic",
"sample_type": "tissue fragment",
"sample_state": "fresh",
"passage_number": "0",
"publications": ""
},
{
"Field": None,
"model_id": "BRC0015PR",
"host_strain": "NOD SCID GAMMA",
"host_strain_full": "NOD.Cg-Prkdcscid Il2rgtm1Sug/JicTac",
"engraftment_site": "interscapular fat pad",
"engraftment_type": "heterotopic",
"sample_type": "tissue fragment",
"sample_state": "fresh",
"passage_number": "0,1,2,3",
"publications": "PMID: 27626319"
}
]
molecular_data_raw_data = [
{
"model_id": "CRL-449",
"sample_id": "MAXF_449-8651",
"sample_origin": "xenograft",
"passage": "20",
"host_strain_nomenclature": "NMRI",
"chromosome": "",
"seq_start_position": "",
"seq_end_position": "",
"symbol": "5_8S_rRNA",
"ucsc_gene_id": "",
"ncbi_gene_id": "",
"ensembl_gene_id": "ENSG00000275877.1",
"log10r_cna": "",
"log2r_cna": "",
"copy_number_status": "",
"gistic_value": "",
"picnic_value": "",
"genome_assembly": "GRCh38",
"platform": "Affymetrix SNP6.0"
},
{
"model_id": "CRL-449",
"sample_id": "MAXF_449-8651",
"sample_origin": "xenograft",
"passage": "20",
"host_strain_nomenclature": "NMRI",
"chromosome": "",
"seq_start_position": "",
"seq_end_position": "",
"symbol": "5_8S_rRNA",
"ucsc_gene_id": "",
"ncbi_gene_id": "",
"ensembl_gene_id": "ENSG00000276871.1",
"log10r_cna": "",
"log2r_cna": "",
"copy_number_status": "",
"gistic_value": "",
"picnic_value": "",
"genome_assembly": "GRCh38",
"platform": "Affymetrix SNP6.0"
}
]
| 28.008333
| 66
| 0.492115
| 282
| 3,361
| 5.478723
| 0.287234
| 0.090615
| 0.054369
| 0.044013
| 0.920388
| 0.895146
| 0.895146
| 0.895146
| 0.895146
| 0.895146
| 0
| 0.039965
| 0.322523
| 3,361
| 119
| 67
| 28.243697
| 0.63856
| 0
| 0
| 0.754237
| 0
| 0
| 0.488843
| 0.014281
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.067797
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
b0592da7eda0ba99e9752b4f9f904b040939e2a5
| 12,658
|
py
|
Python
|
pydass_vasp/electronic_structure/dos.py
|
terencezl/pydass_vasp
|
77b5e285d6e9755f8f170159b7818a090a364917
|
[
"MIT"
] | 9
|
2015-11-13T15:30:07.000Z
|
2020-06-02T12:54:55.000Z
|
pydass_vasp/electronic_structure/dos.py
|
dlnguyen/pydass_vasp
|
77b5e285d6e9755f8f170159b7818a090a364917
|
[
"MIT"
] | 2
|
2016-02-26T16:49:48.000Z
|
2018-05-23T02:22:37.000Z
|
pydass_vasp/electronic_structure/dos.py
|
dlnguyen/pydass_vasp
|
77b5e285d6e9755f8f170159b7818a090a364917
|
[
"MIT"
] | 3
|
2018-10-01T17:45:19.000Z
|
2021-04-16T21:08:43.000Z
|
import re
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from .helpers import determine_tag_value, figs_assert, initiate_figs, plot_helper_settings
from ..xml_utils import parse
def get_tdos(filepath='DOSCAR', ISPIN=None, Ef=None, plot=False, xlim=None, ylim_upper=None, on_figs=None):
"""
Get the total density of states, with consideration of spin-polarization.
Accepts file type 'DOSCAR', or 'vasprun.xml'.
Parameters
----------
filepath: string
filepath, default to 'DOSCAR'
For DOSCAR-type file, can be any string containing 'DOSCAR'.
For vasprun.xml-type file, can be any string ending with '.xml'.
ISPIN: int
user specified ISPIN
If not given, for DOSCAR-type file, infer from 'OUTCAR'/'INCAR'.
Ef: float
user specified Ef
plot: bool
whether to plot the data, default to False
xlim: list
the range of x-axis, 2 values in a list
ylim_upper: int/float
the upper limit of y-axis(, of the spin-combined plot if ISPIN == 2)
on_figs: list/int
the current figure numbers to plot to, default to new figures
Returns
-------
a dict, containing
'data': a pandas dataframe
'ax': the axes reference
"""
# get data
if re.match(r".*\.xml", filepath):
root = parse(filepath)
NEDOS = int(root.find("./parameters/separator[@name='dos']/i[@name='NEDOS']").text)
Ef = float(root.find("./calculation/dos/i[@name='efermi']").text)
if ISPIN:
print("Using user specified ISPIN.")
else:
ISPIN = int(root.find(
"./parameters/separator[@name='electronic']/separator[@name='electronic spin']/i[@name='ISPIN']").text)
if ISPIN == 1:
data = np.zeros((NEDOS, 3))
for n_step, elem in enumerate(root.findall(
"./calculation/dos/total/array/set/set[@comment='spin 1']/r")):
data[n_step] = elem.text.split()
elif ISPIN == 2:
data1 = np.zeros((NEDOS, 3))
for n_step, elem in enumerate(root.findall(
"./calculation/dos/total/array/set/set[@comment='spin 1']/r")):
data1[n_step] = elem.text.split()
data2 = np.zeros((NEDOS, 3))
for n_step, elem in enumerate(root.findall(
"./calculation/dos/total/array/set/set[@comment='spin 2']/r")):
data2[n_step] = elem.text.split()
elif re.match(r".*DOSCAR.*", filepath):
with open(filepath, 'r') as f:
DOSCAR = f.readlines()
for i in range(len(DOSCAR)):
DOSCAR[i] = DOSCAR[i].split()
NEDOS = int(DOSCAR[5][2])
Ef = float(DOSCAR[5][3])
if ISPIN:
print("Using user specified ISPIN.")
else:
ISPIN = determine_tag_value('ISPIN', filepath)
data = np.array(DOSCAR[6:6 + NEDOS], dtype=float)
if ISPIN == 2:
data1 = data[:, [0, 1, 3]]
data2 = data[:, [0, 2, 4]]
# confluence and data organizing
if ISPIN == 1:
col_names = ['E', 'tot', 'tot_integrated']
data[:, 0] -= Ef
return_dict = {'data': pd.DataFrame(**{'columns': col_names, 'data': data})}
elif ISPIN == 2:
col_names1 = ['E', 'tot_up', 'tot_integrated_up']
col_names2 = ['E', 'tot_down', 'tot_integrated_down']
data1[:, 0] -= Ef
data2[:, 0] -= Ef
return_dict = {'data_spin_up': pd.DataFrame(**{'columns': col_names1, 'data': data1}),
'data_spin_down': pd.DataFrame(**{'columns': col_names2, 'data': data2}),
}
if plot:
# start plotting
figs_assert(on_figs, ISPIN, 'tdos')
if ISPIN == 1:
initiate_figs(on_figs)
plt.plot(data[:, 0], data[:, 1])
ax = plt.gca()
plot_helper_settings((xlim, [0, ylim_upper]), 'tdos')
return_dict.update({'ax': ax})
elif ISPIN == 2:
# Plot the combined TDOS
initiate_figs(on_figs)
plt.plot(data1[:, 0], data1[:, 1] + data2[:, 1], label='spin up + down')
ax1 = plt.gca()
plot_helper_settings((xlim, [0, ylim_upper]), 'tdos')
# Plot the separated TDOS
initiate_figs(on_figs)
plt.plot(data1[:, 0], data1[:, 1], label='spin up')
plt.plot(data2[:, 0], -data2[:, 1], label='spin down')
ax2 = plt.gca()
ylim_upper_sp = None
ylim_lower_sp = None
if ylim_upper:
ylim_upper_sp = ylim_upper/2.
ylim_lower_sp = -ylim_upper_sp
plot_helper_settings((xlim, [ylim_lower_sp, ylim_upper_sp]), 'tdos')
return_dict.update({'ax_spin_combined': ax1, 'ax_spin_separated': ax2})
return return_dict
def get_ldos(atom, filepath='DOSCAR', ISPIN=None, LORBIT=None, Ef=None, plot=False, xlim=None, ylim_upper=None,
on_figs=None):
"""
Get the local projected density of states, with consideration of spin-polarization.
Accepts file type 'DOSCAR', or 'vasprun.xml'.
Parameters
----------
atom: int
the atom number in DOSCAR/POSCAR interested, counting from 1
filepath: string
filepath, default to 'DOSCAR'
For DOSCAR-type file, can be any string containing 'DOSCAR'.
For vasprun.xml-type file, can be any string ending with '.xml'.
ISPIN: int
user specified ISPIN
If not given, for DOSCAR-type file, infer from 'OUTCAR'/'INCAR'.
LORBIT: int
user specified LORBIT
If not given, for both DOSCAR- and vasprun.xml-types of file, infer from 'OUTCAR'/'INCAR'. Because there is an
error in vasprun.xml.
Ef: float
user specified Ef
plot: bool
whether to plot the data, default to False
xlim: list
the range of x-axis, 2 values in a list
ylim_upper: int/float
the upper limit of y-axis(, of the spin-combined plot if ISPIN == 2)
on_figs: list/int
the current figure numbers to plot to, default to new figures
Returns
-------
a dict, containing
'data': a dataframe
'ax': the axes reference
"""
# get data
if re.match(r".*\.xml", filepath):
root = parse(filepath)
NEDOS = int(root.find("./parameters/separator[@name='dos']/i[@name='NEDOS']").text)
Ef = float(root.find("./calculation/dos/i[@name='efermi']").text)
if ISPIN:
print("Using user specified ISPIN.")
else:
ISPIN = int(root.find(
"./parameters/separator[@name='electronic']/separator[@name='electronic spin']/i[@name='ISPIN']").text)
# vasprun.xml's LORBIT is not correct
if LORBIT:
print("Using user specified LORBIT.")
else:
LORBIT = determine_tag_value('LORBIT', filepath)
if ISPIN == 1:
if LORBIT == 10 or LORBIT == 0:
data = np.zeros((NEDOS, 4))
elif LORBIT == 11 or LORBIT == 1:
data = np.zeros((NEDOS, 10))
for n_step, elem in enumerate(root.findall(
"./calculation/dos/partial/array/set/set[@comment='ion " + str(
atom) + "']/set[@comment='spin 1']/r")):
data[n_step] = elem.text.split()
elif ISPIN == 2:
if LORBIT == 10 or LORBIT == 0:
data1 = np.zeros((NEDOS, 4))
data2 = np.zeros((NEDOS, 4))
elif LORBIT == 11 or LORBIT == 1:
data1 = np.zeros((NEDOS, 10))
data2 = np.zeros((NEDOS, 10))
for n_step, elem in enumerate(root.findall(
"./calculation/dos/partial/array/set/set[@comment='ion " + str(
atom) + "']/set[@comment='spin 1']/r")):
data1[n_step] = elem.text.split()
for n_step, elem in enumerate(root.findall(
"./calculation/dos/partial/array/set/set[@comment='ion " + str(
atom) + "']/set[@comment='spin 2']/r")):
data2[n_step] = elem.text.split()
elif re.match(r".*DOSCAR.*", filepath):
with open(filepath, 'r') as f:
DOSCAR = f.readlines()
for i in range(len(DOSCAR)):
DOSCAR[i] = DOSCAR[i].split()
NEDOS = int(DOSCAR[5][2])
Ef = float(DOSCAR[5][3])
if ISPIN:
print("Using user specified ISPIN.")
else:
ISPIN = determine_tag_value('ISPIN', filepath)
if LORBIT:
print("Using user specified LORBIT.")
else:
LORBIT = determine_tag_value('LORBIT', filepath)
data = np.array(DOSCAR[(6 + (NEDOS + 1) * atom):(6 + (NEDOS + 1) * atom + NEDOS)], dtype=float)
if ISPIN == 2:
if LORBIT == 10 or LORBIT == 0:
data1 = data[:, [0, 1, 3, 5]]
data2 = data[:, [0, 2, 4, 6]]
elif LORBIT == 11 or LORBIT == 1:
data1 = data[:, [0, 1, 3, 5, 7, 9, 11, 13, 15, 17]]
data2 = data[:, [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]]
# confluence and data organizing
if ISPIN == 1:
if LORBIT == 10 or LORBIT == 0:
col_names = ['E', 's', 'p', 'd']
elif LORBIT == 11 or LORBIT == 1:
col_names = ['E', 's', 'p_y', 'p_z', 'p_x', 'd_xy', 'd_yz', 'd_z2', 'd_xz', 'd_x2y2']
data[:, 0] -= Ef
return_dict = {'data': pd.DataFrame(**{'columns': col_names, 'data': data})}
elif ISPIN == 2:
if LORBIT == 10 or LORBIT == 0:
col_names1 = ['E', 's_up', 'p_up', 'd_up']
col_names2 = ['E', 's_down', 'p_down', 'd_down']
elif LORBIT == 11 or LORBIT == 1:
col_names1 = ['E', 's_up', 'p_y_up', 'p_z_up', 'p_x_up', 'd_xy_up', 'd_yz_up', 'd_z2_up', 'd_xz_up',
'd_x2y2_up']
col_names2 = ['E', 's_down', 'p_y_down', 'p_z_down', 'p_x_down', 'd_xy_down', 'd_yz_down', 'd_z2_down',
'd_xz_down', 'd_x2y2_down']
data1[:, 0] -= Ef
data2[:, 0] -= Ef
return_dict = {'data_spin_up': pd.DataFrame(**{'columns': col_names1, 'data': data1}),
'data_spin_down': pd.DataFrame(**{'columns': col_names2, 'data': data2}),
}
if plot:
# start plotting
figs_assert(on_figs, ISPIN, 'ldos')
if ISPIN == 1:
initiate_figs(on_figs)
if LORBIT == 10 or LORBIT == 0:
for i in range(1, 4):
plt.plot(data[:, 0], data[:, i], label=col_names[i])
elif LORBIT == 11 or LORBIT == 1:
for i in range(1, 10):
plt.plot(data[:, 0], data[:, i], label=col_names[i])
ax = plt.gca()
plot_helper_settings((xlim, [0, ylim_upper]), 'ldos')
return_dict.update({'ax': ax})
elif ISPIN == 2:
# plot spin combined
initiate_figs(on_figs)
if LORBIT == 10 or LORBIT == 0:
for i in range(1, 4):
plt.plot(data1[:, 0], data1[:, i] + data2[:, i], label=col_names1[i] + ' + ' + col_names2[i])
elif LORBIT == 11 or LORBIT == 1:
for i in range(1, 10):
plt.plot(data1[:, 0], data1[:, i] + data2[:, i], label=col_names1[i] + ' + ' + col_names2[i])
ax1 = plt.gca()
plot_helper_settings((xlim, [0, ylim_upper]), 'ldos')
# plot spin separated
initiate_figs(on_figs)
if LORBIT == 10 or LORBIT == 0:
for i in range(1, 4):
plt.plot(data1[:, 0], data1[:, i], label=col_names1[i])
plt.plot(data2[:, 0], -data2[:, i], label=col_names2[i])
elif LORBIT == 11 or LORBIT == 1:
for i in range(1, 10):
plt.plot(data1[:, 0], data1[:, i], label=col_names1[i])
plt.plot(data2[:, 0], -data2[:, i], label=col_names2[i])
ax2 = plt.gca()
ylim_upper_sp = None
ylim_lower_sp = None
if ylim_upper:
ylim_upper_sp = ylim_upper/2.
ylim_lower_sp = -ylim_upper_sp
plot_helper_settings((xlim, [ylim_lower_sp, ylim_upper_sp]), 'ldos')
return_dict.update({'ax_spin_combined': ax1, 'ax_spin_separated': ax2})
return return_dict
| 40.570513
| 119
| 0.523937
| 1,636
| 12,658
| 3.927262
| 0.122861
| 0.028016
| 0.016809
| 0.013697
| 0.864903
| 0.848093
| 0.825214
| 0.79144
| 0.79144
| 0.761089
| 0
| 0.031412
| 0.331016
| 12,658
| 311
| 120
| 40.700965
| 0.727326
| 0.173408
| 0
| 0.762136
| 0
| 0.009709
| 0.152398
| 0.072374
| 0
| 0
| 0
| 0
| 0.014563
| 1
| 0.009709
| false
| 0
| 0.029126
| 0
| 0.048544
| 0.029126
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
05eaa18fc35ce8baad6675276fa26a7128985e46
| 1,777
|
py
|
Python
|
modules/variables.py
|
EnzoKilm/pierre-feuille-ciseaux
|
d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1
|
[
"Apache-2.0"
] | null | null | null |
modules/variables.py
|
EnzoKilm/pierre-feuille-ciseaux
|
d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1
|
[
"Apache-2.0"
] | null | null | null |
modules/variables.py
|
EnzoKilm/pierre-feuille-ciseaux
|
d57442f5fea66b7cdc1fb23d08ef3cd552aa33f1
|
[
"Apache-2.0"
] | null | null | null |
# Variables
pierre = ['P', 'PIERRE', 'PIERE', 'PIERRES']
feuille = ['F', 'FEUILLE', 'FEUILL', 'FEUILLES']
ciseaux = ['C', 'CISEAUX', 'CISEAU', 'CISEAUS']
sc_o = 0
sc_j = 0
esp = "\n"
jouer = 1
oui = ['OUI', 'YES', 'YEP', 'UI', 'OIU']
non = ['NON', 'NO', 'NOPE', 'NNO', 'NONN']
partie = 1
# https://en.wikipedia.org/wiki/Box-drawing_character
# http://csbruce.com/software/utf-8.html
# Titre
ti_l1 = "\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2551 Partie "
ti_l2 = " \u2551\n\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"
# Séparation
trait = "\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"
# Statistiques
st_l1 = "\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2551 Satistiques \u2551\n\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"
stats_win = 0
nb_p = 1
# Classement
cl_l1 = "\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2551 Classement "
cl_l2 = "\u2551\n\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"
cl_titre_played = "\n \u2794 Nombre de parties \n jouées\n"
cl_titre_win = "\n \u2794 Nombre de gagnées\n"
cl_titre_time = "\n \u2794 Temps de jeu \n (en secondes)\n"
cl_liste_l1 = " \u2780 "
cl_liste_l2 = " \u2781 "
cl_liste_l3 = " \u2782 "
inter = " : "
| 53.848485
| 312
| 0.71919
| 286
| 1,777
| 4.391608
| 0.297203
| 0.907643
| 1.289809
| 1.624204
| 0.620223
| 0.620223
| 0.620223
| 0.620223
| 0.620223
| 0.620223
| 0
| 0.399377
| 0.096792
| 1,777
| 32
| 313
| 55.53125
| 0.383178
| 0.079347
| 0
| 0
| 0
| 0.24
| 0.755528
| 0.572482
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
af1495ef7dca18f425b8fa6c6348f33073c93576
| 1,043
|
py
|
Python
|
echoError.py
|
wgr5600133/kmail
|
b5a69924098189b85ebad12e649bc202c3820bee
|
[
"MIT"
] | 2
|
2020-07-30T23:21:07.000Z
|
2020-07-30T23:21:10.000Z
|
echoError.py
|
wgr5600133/kmail
|
b5a69924098189b85ebad12e649bc202c3820bee
|
[
"MIT"
] | null | null | null |
echoError.py
|
wgr5600133/kmail
|
b5a69924098189b85ebad12e649bc202c3820bee
|
[
"MIT"
] | null | null | null |
<<<<<<< HEAD
<<<<<<< HEAD
import click
def startStatment(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def finishStatement(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def errorStatement(statement):
click.echo(click.style(statement, fg='red'))
=======
import click
def startStatment(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def finishStatement(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def errorStatement(statement):
click.echo(click.style(statement, fg='red'))
>>>>>>> abd6cba59923e6eac426400fb5e8d010b55c29db
=======
import click
def startStatment(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def finishStatement(statement):
click.echo(" ")
click.echo(click.style(statement, fg='green'))
def errorStatement(statement):
click.echo(click.style(statement, fg='red'))
>>>>>>> abd6cba59923e6eac426400fb5e8d010b55c29db
| 22.673913
| 50
| 0.688399
| 112
| 1,043
| 6.410714
| 0.125
| 0.188022
| 0.292479
| 0.288301
| 0.988858
| 0.988858
| 0.988858
| 0.988858
| 0.988858
| 0.988858
| 0
| 0.048512
| 0.130393
| 1,043
| 45
| 51
| 23.177778
| 0.743109
| 0
| 0
| 1
| 0
| 0
| 0.043145
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.090909
| null | null | 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
af5fb47de419dd28e496529971a4216375769167
| 81,292
|
py
|
Python
|
solutions/previous_solution_python/contest_leetcode_5461.py
|
YuhanShi53/Leetcode_solutions
|
cdcad34656d25d6af09b226e17250c6070305ab0
|
[
"MIT"
] | null | null | null |
solutions/previous_solution_python/contest_leetcode_5461.py
|
YuhanShi53/Leetcode_solutions
|
cdcad34656d25d6af09b226e17250c6070305ab0
|
[
"MIT"
] | null | null | null |
solutions/previous_solution_python/contest_leetcode_5461.py
|
YuhanShi53/Leetcode_solutions
|
cdcad34656d25d6af09b226e17250c6070305ab0
|
[
"MIT"
] | null | null | null |
class Solution:
def numSub(self, s: str) -> int:
s = s.split('0')
res = 0
for x in s:
y = len(x)
res += (y + 1) * y // 2
return res
if __name__ == '__main__':
s = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100101011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100001001"
res = Solution().numSub(s)
print(res)
| 6,253.230769
| 81,026
| 0.998056
| 39
| 81,292
| 2,080.153846
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.998066
| 0.001415
| 81,292
| 13
| 81,027
| 6,253.230769
| 0.001306
| 0
| 0
| 0
| 0
| 0
| 0.996703
| 0.996593
| 0
| 1
| 0
| 0
| 0
| 1
| 0.083333
| false
| 0
| 0
| 0
| 0.25
| 0.083333
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
bb6918cc0feafe18403c26a8139eb05e9c2b6ce4
| 67
|
py
|
Python
|
fexr/core/__init__.py
|
fexrapis/pyfexr
|
2273f29c9a828722d546e9f7a6cbbc6f50987786
|
[
"MIT"
] | null | null | null |
fexr/core/__init__.py
|
fexrapis/pyfexr
|
2273f29c9a828722d546e9f7a6cbbc6f50987786
|
[
"MIT"
] | null | null | null |
fexr/core/__init__.py
|
fexrapis/pyfexr
|
2273f29c9a828722d546e9f7a6cbbc6f50987786
|
[
"MIT"
] | null | null | null |
from fexr.core.usage import Usage
from fexr.core.users import Users
| 33.5
| 33
| 0.835821
| 12
| 67
| 4.666667
| 0.5
| 0.285714
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104478
| 67
| 2
| 34
| 33.5
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
bbb1579009ea492c1968893be0f945e6194b974b
| 103,390
|
py
|
Python
|
coach/EggPan/message_Reyn_CUR2.py
|
LSTM-Kirigaya/NUAA-guandan
|
f6920868649c26536b3dc3fce8ecd1d4f7c755fa
|
[
"MIT"
] | null | null | null |
coach/EggPan/message_Reyn_CUR2.py
|
LSTM-Kirigaya/NUAA-guandan
|
f6920868649c26536b3dc3fce8ecd1d4f7c755fa
|
[
"MIT"
] | null | null | null |
coach/EggPan/message_Reyn_CUR2.py
|
LSTM-Kirigaya/NUAA-guandan
|
f6920868649c26536b3dc3fce8ecd1d4f7c755fa
|
[
"MIT"
] | 1
|
2022-03-08T11:06:51.000Z
|
2022-03-08T11:06:51.000Z
|
#Reyn_AI 2.0.0 采用加权思想全新改版
#暂定比赛版本
#Author: Ryen Zhang
#University: NUAA
#point-val对应列表
point_val = [28,6,8,10,12,15,18,20,21,22,23,24,25, 100] # 目前最强版本
#该函数负责转换点数所对应的val
def get_point_val(card,curRank):
if card[1] == curRank and card[0] == 'H':
return 500
if card[1] == curRank:
return 100
if card[1] == '2':
return 1
if card[1] == '3':
return 2
elif card[1] == '4':
return 3
elif card[1] == '5':
return 4
elif card[1] == '6':
return 5
elif card[1] == '7':
return 6
elif card[1] == '8':
return 7
elif card[1] == '9':
return 8
elif card[1] == 'T':
return 9
elif card[1] == 'J':
return 10
elif card[1] == 'Q':
return 11
elif card[1] == 'K':
return 12
elif card[1] == 'A':
return 13
elif card[1] == 'B':
return 150
else:
return 200
#该函数负责计算剩余的权值
#未考虑三带二之类
def get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank):
val = 0
#首先考虑同花顺
for i in range(9):
ok = 1
for j in range(5):
if handCards_S[i+j] == 0:
ok = 0
if ok == 1:
val += 50 * point_val[i]
# # print('Reyn_AI Tip 扫描到同花顺,点数为:',point_val[i])
for i in range(9):
ok = 1
for j in range(5):
if handCards_H[i+j] == 0:
ok = 0
if ok == 1:
val += 50 * point_val[i]
# # print('Reyn_AI Tip 扫描到同花顺,点数为:',point_val[i])
for i in range(9):
ok = 1
for j in range(5):
if handCards_C[i+j] == 0:
ok = 0
if ok == 1:
val += 50 * point_val[i]
# # print('Reyn_AI Tip 扫描到同花顺,点数为:',point_val[i])
for i in range(9):
ok = 1
for j in range(5):
ok = 0
if ok == 1:
val += 50 * point_val[i]
# # print('Reyn_AI Tip 扫描到同花顺,点数为:',point_val[i])
#再考虑其他的
for i in range(13):
#单张
if handCards_A[i] == 1:
val -= 300
val += point_val[i]
#对子
if handCards_A[i] == 2:
val -= 200
val += point_val[i] * 2
#三张
if handCards_A[i] == 3:
val -= 300
val += point_val[i] * 5
#炸弹
if handCards_A[i] >= 4:
val += 100 * point_val[i] * (handCards_A[i] - 3)
#大小王
val += handCards_K[0] * 150 + handCards_K[1] * 200
#级牌
val += handCards_R[1] * 100 + handCards_R[2] * 500
return val
#本函数负责计算敌人手牌的价值-没用到
def get_opp_VAL(card,curRank):
if card[0] == 'Single':
# # print('Reyn_AI Tip 确认敌人Action为Single形式')
val = 0
val += get_point_val(card[2][0],curRank)
# # print('Reyn_AI Tip 敌人的出牌权值为',val)
return val
if card[0] == 'Pair':
# # print('Reyn_AI Tip 确认敌人Action为Pair形式')
val = 20
val += get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
# # print('Reyn_AI Tip 敌人的出牌权值为',val)
return val
if card[0] == 'Trips':
# # print('Reyn_AI Tip 确认敌人Action为Trips形式')
val = 100
val += get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += 5 * point_val[get_num(card[1])]
# # print('Reyn_AI Tip 敌人的出牌权值为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 4:
# # print('Reyn_AI Tip 确认敌人Action为Bomb_4形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += 100 * point_val[get_num(card[1])]
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 5:
# # print('Reyn_AI Tip 确认敌人Action为Bomb形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += 150 * point_val[get_num(card[1])]
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'Straight':
# # print('Reyn_AI Tip 确认敌人Action为Straight形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += 300
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'ThreeWithTwo':
# # print('Reyn_AI Tip 确认敌人Action为ThreeWithTwo形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += 200
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'ThreePair':
# # print('Reyn_AI Tip 确认敌人Action为ThreePair形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += get_point_val(card[2][5],curRank)
val += 150
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'TwoTrips':
# # print('Reyn_AI Tip 确认敌人Action为TwoTrips形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += get_point_val(card[2][5],curRank)
val += 120
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
if card[0] == 'StraightFlush':
# # print('Reyn_AI Tip 确认敌人Action为StraightFlush形式')
val = get_point_val(card[2][0],curRank)
val += get_point_val(card[2][1],curRank)
val += get_point_val(card[2][2],curRank)
val += get_point_val(card[2][3],curRank)
val += get_point_val(card[2][4],curRank)
val += 180 * point_val[get_num(card[1])]
# # print('Reyn_AI Tip 敌人出牌权值为',val)
return val
return 3000
#该函数负责获取每步操作的权重,并返回该权重
#接下来会考虑引入递归的方式遍历所有可能情况,做到精准判断权重
#首轮出牌函数
def get_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,card,curRank):
#计算出的牌减去的权重
if card[0] == 'PASS':
return -99999
if card[0] == 'Single':
# # print('Reyn_AI Tip 确认该Action为Single形式')
val = 100
val -= get_point_val(card[2][0],curRank)
# # print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# # print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Pair':
# # print('Reyn_AI Tip 确认该Action为Pair形式')
val = 100
val -= get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
# # print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
val+=get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# # print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Trips':
# # print('Reyn_AI Tip 确认该Action为Trips形式')
val = 80
val -= get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= 5 * point_val[get_num(card[1])]
# # print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# # print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 4:
# print('Reyn_AI Tip 确认该Action为Bomb_4形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= 100 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 5:
# print('Reyn_AI Tip 确认该Action为Bomb形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= 150 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Straight':
# print('Reyn_AI Tip 确认该Action为Straight形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val += 250
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'ThreeWithTwo':
# print('Reyn_AI Tip 确认该Action为ThreeWithTwo形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val += 300
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'ThreePair':
# print('Reyn_AI Tip 确认该Action为ThreePair形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= get_point_val(card[2][5],curRank)
val += 250
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
if card[2][5] == 'SB':
handCards_K[0] -= 1
if card[2][5] == 'HR':
handCards_K[1] -= 1
if card[2][5][0] == 'S' and card[2][5][1] != 'B':
handCards_S[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'H' and card[2][5][1] != 'R':
handCards_H[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'C':
handCards_C[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'D':
handCards_D[get_num(card[2][5][1])] -= 1
if card[2][5][1] != 'B' and card[2][5][1] != 'R':
handCards_A[get_num(card[2][5][1])] -= 1
if card[2][5][1] == curRank:
handCards_R[1] -= 1
if card[2][5][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'TwoTrips':
# print('Reyn_AI Tip 确认该Action为TwoTrips形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= get_point_val(card[2][5],curRank)
val += 150
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
if card[2][5] == 'SB':
handCards_K[0] -= 1
if card[2][5] == 'HR':
handCards_K[1] -= 1
if card[2][5][0] == 'S' and card[2][5][1] != 'B':
handCards_S[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'H' and card[2][5][1] != 'R':
handCards_H[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'C':
handCards_C[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'D':
handCards_D[get_num(card[2][5][1])] -= 1
if card[2][5][1] != 'B' and card[2][5][1] != 'R':
handCards_A[get_num(card[2][5][1])] -= 1
if card[2][5][1] == curRank:
handCards_R[1] -= 1
if card[2][5][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'StraightFlush':
# print('Reyn_AI Tip 确认该Action为StraightFlush形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= 180 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
return -30000
#接敌人牌函数
def get_VAL_OPP(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,card,curRank,attack):
#计算出的牌减去的权重
if attack == 0:
if card[0] == 'PASS':
return -1500
else:
if card[0] == 'PASS':
return -99999
if card[0] == 'Single':
# print('Reyn_AI Tip 确认该Action为Single形式')
val = -get_point_val(card[2][0],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Pair':
# print('Reyn_AI Tip 确认该Action为Pair形式')
val =- get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
val+=get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Trips':
# print('Reyn_AI Tip 确认该Action为Trips形式')
val =- get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= 5 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 4:
# print('Reyn_AI Tip 确认该Action为Bomb_4形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= 50 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Bomb' and len(card[2]) == 5:
# print('Reyn_AI Tip 确认该Action为Bomb形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= 100 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'Straight':
# print('Reyn_AI Tip 确认该Action为Straight形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'ThreeWithTwo':
# print('Reyn_AI Tip 确认该Action为ThreeWithTwo形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'ThreePair':
# print('Reyn_AI Tip 确认该Action为ThreePair形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= get_point_val(card[2][5],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
if card[2][5] == 'SB':
handCards_K[0] -= 1
if card[2][5] == 'HR':
handCards_K[1] -= 1
if card[2][5][0] == 'S' and card[2][5][1] != 'B':
handCards_S[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'H' and card[2][5][1] != 'R':
handCards_H[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'C':
handCards_C[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'D':
handCards_D[get_num(card[2][5][1])] -= 1
if card[2][5][1] != 'B' and card[2][5][1] != 'R':
handCards_A[get_num(card[2][5][1])] -= 1
if card[2][5][1] == curRank:
handCards_R[1] -= 1
if card[2][5][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'TwoTrips':
# print('Reyn_AI Tip 确认该Action为TwoTrips形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= get_point_val(card[2][5],curRank)
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
if card[2][5] == 'SB':
handCards_K[0] -= 1
if card[2][5] == 'HR':
handCards_K[1] -= 1
if card[2][5][0] == 'S' and card[2][5][1] != 'B':
handCards_S[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'H' and card[2][5][1] != 'R':
handCards_H[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'C':
handCards_C[get_num(card[2][5][1])] -= 1
if card[2][5][0] == 'D':
handCards_D[get_num(card[2][5][1])] -= 1
if card[2][5][1] != 'B' and card[2][5][1] != 'R':
handCards_A[get_num(card[2][5][1])] -= 1
if card[2][5][1] == curRank:
handCards_R[1] -= 1
if card[2][5][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
if card[0] == 'StraightFlush':
# print('Reyn_AI Tip 确认该Action为StraightFlush形式')
val = -get_point_val(card[2][0],curRank)
val -= get_point_val(card[2][1],curRank)
val -= get_point_val(card[2][2],curRank)
val -= get_point_val(card[2][3],curRank)
val -= get_point_val(card[2][4],curRank)
val -= 150 * point_val[get_num(card[1])]
# print('Reyn_AI Tip 由于该出牌行动,权值目前为',val)
#开始删除刚刚打出的牌
if card[2][0] == 'SB':
handCards_K[0] -= 1
if card[2][0] == 'HR':
handCards_K[1] -= 1
if card[2][0][0] == 'S' and card[2][0][1] != 'B':
handCards_S[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'H' and card[2][0][1] != 'R':
handCards_H[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'C':
handCards_C[get_num(card[2][0][1])] -= 1
if card[2][0][0] == 'D':
handCards_D[get_num(card[2][0][1])] -= 1
if card[2][0][1] != 'B' and card[2][0][1] != 'R':
handCards_A[get_num(card[2][0][1])] -= 1
if card[2][0][1] == curRank:
handCards_R[1] -= 1
if card[2][0][0] == 'H':
handCards_R[2] -= 1
if card[2][1] == 'SB':
handCards_K[0] -= 1
if card[2][1] == 'HR':
handCards_K[1] -= 1
if card[2][1][0] == 'S' and card[2][1][1] != 'B':
handCards_S[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'H' and card[2][1][1] != 'R':
handCards_H[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'C':
handCards_C[get_num(card[2][1][1])] -= 1
if card[2][1][0] == 'D':
handCards_D[get_num(card[2][1][1])] -= 1
if card[2][1][1] != 'B' and card[2][1][1] != 'R':
handCards_A[get_num(card[2][1][1])] -= 1
if card[2][1][1] == curRank:
handCards_R[1] -= 1
if card[2][1][0] == 'H':
handCards_R[2] -= 1
if card[2][2] == 'SB':
handCards_K[0] -= 1
if card[2][2] == 'HR':
handCards_K[1] -= 1
if card[2][2][0] == 'S' and card[2][2][1] != 'B':
handCards_S[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'H' and card[2][2][1] != 'R':
handCards_H[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'C':
handCards_C[get_num(card[2][2][1])] -= 1
if card[2][2][0] == 'D':
handCards_D[get_num(card[2][2][1])] -= 1
if card[2][2][1] != 'B' and card[2][2][1] != 'R':
handCards_A[get_num(card[2][2][1])] -= 1
if card[2][2][1] == curRank:
handCards_R[1] -= 1
if card[2][2][0] == 'H':
handCards_R[2] -= 1
if card[2][3] == 'SB':
handCards_K[0] -= 1
if card[2][3] == 'HR':
handCards_K[1] -= 1
if card[2][3][0] == 'S' and card[2][3][1] != 'B':
handCards_S[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'H' and card[2][3][1] != 'R':
handCards_H[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'C':
handCards_C[get_num(card[2][3][1])] -= 1
if card[2][3][0] == 'D':
handCards_D[get_num(card[2][3][1])] -= 1
if card[2][3][1] != 'B' and card[2][3][1] != 'R':
handCards_A[get_num(card[2][3][1])] -= 1
if card[2][3][1] == curRank:
handCards_R[1] -= 1
if card[2][3][0] == 'H':
handCards_R[2] -= 1
if card[2][4] == 'SB':
handCards_K[0] -= 1
if card[2][4] == 'HR':
handCards_K[1] -= 1
if card[2][4][0] == 'S' and card[2][4][1] != 'B':
handCards_S[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'H' and card[2][4][1] != 'R':
handCards_H[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'C':
handCards_C[get_num(card[2][4][1])] -= 1
if card[2][4][0] == 'D':
handCards_D[get_num(card[2][4][1])] -= 1
if card[2][4][1] != 'B' and card[2][4][1] != 'R':
handCards_A[get_num(card[2][4][1])] -= 1
if card[2][4][1] == curRank:
handCards_R[1] -= 1
if card[2][4][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
return val
return -1500
#将数字与字母兼有的点数转换为纯数字表达形式
#注意,在该AI版本中,所有点数都被转化为了比人类所认为少1的数值,以方便列表的赋值
def get_num(point):
if point == 'A':
return 0
elif point == 'T':
return 9
elif point == 'J':
return 10
elif point == 'Q':
return 11
elif point == 'K':
return 12
elif point=='JOKER':
return 13
else:
return int(point) - 1
#判断自己的手牌中是否有接牌的牌型
#'greaterAction': ['Single', '4', ['S4']]
def check_patterns_fri(message,action):
point_dic={
'2':0,
'3':1,
'4':2,
'5':3,
'6':4,
'7':5,
'8':6,
'9':7,
'T':8,
'J':9,
'Q':10,
'K':11,
'A':12,
'B':14,
'R':15
}
action_patterns=action[0]
action_point=point_dic[action[1]]
#记录手牌
handcard_list=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
if message['curRank']==action[1]:
action_point=13
for hcard in message['handCards']:
if hcard[1]==message['curRank']:
handcard_list[13]+=1
else:
handcard_list[point_dic[hcard[1]]]+=1
#判断牌型是否存在,有则返回1,无则返回0
#因为有的话却没有打这个牌说明这个牌更重要
if action_patterns=='Single':
if handcard_list[action_point]==1:
return 1
else:
return 0
elif action_patterns=='Pair':
if handcard_list[action_point]==2:
return 1
else:
return 0
elif action_patterns=='Trips':
if handcard_list[action_point]==3:
return 1
else:
return 0
elif action_patterns=='ThreeWithTwo':
if handcard_list[action_point]==3:
for point1 in range(0,8):
if handcard_list[point1]==2:
return 1
else:
return 0
elif action_patterns=='ThreePair':
#因为三联对最大为QQKKAA
if handcard_list[action_point]==2 and handcard_list[action_point+1]==2 and handcard_list[action_point+2]==2:
return 1
else:
return 0
#T-J-Q-K-A
elif action_patterns =='Straight':
if handcard_list[action_point]==1 and handcard_list[action_point+1]==1 and handcard_list[action_point+2]==1 and handcard_list[action_point+3]==1 and handcard_list[action_point+4]==1 :
return 1
else:
return 0
def check_patterns(message):
#对照表:
point_dic={
'2':0,
'3':1,
'4':2,
'5':3,
'6':4,
'7':5,
'8':6,
'9':7,
'T':8,
'J':9,
'Q':10,
'K':11,
'A':12,
'B':14,
'R':15
}
action_patterns=message['greaterAction'][0]
#记录手牌
handcard_list=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
if message['curRank']==message['greaterAction'][1]:
action_point=13
elif message['greaterAction'][1]=='JOKER':
return 1
else:
action_point=point_dic[message['greaterAction'][1]]
for hcard in message['handCards']:
if hcard[1]==message['greaterAction'][1]:
handcard_list[13]+=1
else:
handcard_list[point_dic[hcard[1]]]+=1
#判断牌型是否存在,有则返回1,无则返回0
#因为有的话却没有打这个牌说明这个牌更重要
if action_patterns=='Single':
if action_point==15:
return 0
for point in range(action_point+1,16):
if handcard_list[point]==1:
return 1
else:
return 0
elif action_patterns=='Pair':
if action_point==15:
return 0
for point in range(action_point+1,16):
if handcard_list[point]==2:
return 1
else:
return 0
elif action_patterns=='Trips':
if action_point==15:
return 0
for point in range(action_point+1,16):
if handcard_list[point]==3:
return 1
else:
return 0
elif action_patterns=='ThreeWithTwo':
for point in range(action_point+1,16):
if handcard_list[point]==3:
for point1 in range(0,12):
if handcard_list[point1]==2:
return 1
else:
return 0
elif action_patterns=='ThreePair':
#因为三联对最大为QQKKAA
if action_point>=10:
return 0
for point in range(action_point+1,11):
if handcard_list[point]==2 and handcard_list[point+1]==2 and handcard_list[point+2]==2:
return 1
else:
return 0
#T-J-Q-K-A
elif action_patterns =='Straight':
for point in range(action_point+1,9):
if handcard_list[point]==1 and handcard_list[point+1]==1 and handcard_list[point+2]==1 and handcard_list[point+3]==1 and handcard_list[point+4]==1 :
return 1
else:
return 0
def check_message(message,pos):
#读取当前牌局的等级
curRank = message['curRank']
# print('Reyn_AI Tip 已读取到当前等级为:',curRank)
#还贡判断
if message['stage'] == 'back':
#开始遍历Actionlist
index = -1
#创建空操作权重列表[权重值]
value = []
for check_card in message['actionList']:
index += 1
# print('Reyn_AI Tip 当前判断Action',index,':',check_card)
#读取手牌部分开始
# print('Reyn_AI Log 进入到读取手牌部分')
#创建按花色和顺序归类好的牌库,数值为该牌拥有的数量
#黑桃:S 红桃:H 梅花:C 方片:D
#花色牌列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_S = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_H = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_C = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_D = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#数值总列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_A = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#级牌列表[点数-级牌数量-红桃级牌数量]
handCards_R = [get_num(curRank)+1,0,0]
#特殊牌列表[数量] 序号-点数 分别为:[0-B,1-R]
handCards_K = [0,0]
#遍历服务器所给的'handCards',为上述数据赋值
for card in message['handCards']:
if card[1] == curRank:
handCards_R[1] += 1
if card[0] == 'H':
handCards_R[2] += 1
if card[1] == 'B' or card[1] == 'R':
if card[1] == 'B':
handCards_K[0] += 1
if card[1] == 'R':
handCards_K[1] += 1
else:
if card[0] == 'S' and card[1] != 'B':
handCards_S[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'H' and card[1] != 'R':
handCards_H[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'C':
handCards_C[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'D':
handCards_D[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
## print('Reyn_AI Log 读取手牌部分结束')
## print('Reyn_AI Tip 当前读取到的手牌为')
## print('handCards_S:',handCards_S)
## print('handCards_H:',handCards_H)
## print('handCards_C:',handCards_C)
## print('handCards_D:',handCards_D)
## print('handCards_A:',handCards_A)
## print('handCards_R:',handCards_R)
## print('handCards_K:',handCards_K)
#读取手牌部分结束
# print('Reyn_AI Tip 开始选择最优还贡牌')
val = -get_point_val(check_card[2][0],curRank)
# print('Reyn_AI Tip 由于该还贡行动,权值目前为',val)
#开始删除刚刚打出的牌
if check_card[2][0] == 'SB':
handCards_K[0] -= 1
if check_card[2][0] == 'HR':
handCards_K[1] -= 1
if check_card[2][0][0] == 'S' and check_card[2][0][1] != 'B':
handCards_S[get_num(check_card[2][0][1])] -= 1
if check_card[2][0][0] == 'H' and check_card[2][0][1] != 'R':
handCards_H[get_num(check_card[2][0][1])] -= 1
if check_card[2][0][0] == 'C':
handCards_C[get_num(check_card[2][0][1])] -= 1
if check_card[2][0][0] == 'D':
handCards_D[get_num(check_card[2][0][1])] -= 1
if check_card[2][0][1] != 'B' and check_card[2][0][1] != 'R':
handCards_A[get_num(check_card[2][0][1])] -= 1
if check_card[2][0][1] == curRank:
handCards_R[1] -= 1
if check_card[2][0][0] == 'H':
handCards_R[2] -= 1
val += get_remain_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,curRank)
# print('Reyn_AI Tip 已计算出该操作权重为',val)
value.append(val)
max = -50000
AI_choice = 0
for i in range(index + 1):
if value[i] > max:
AI_choice = i
max = value[i]
# print(value)
return AI_choice
#我方先手 AI选择部分开始
if message['greaterPos']==pos or message['greaterPos']==-1:
# print('Reyn_AI Tip 轮到我方先手出牌')
#开始遍历Actionlist
index = -1
#创建空操作权重列表[权重值]
value = []
for check_card in message['actionList']:
index += 1
# print('Reyn_AI Tip 当前判断Action',index,':',check_card)
#读取手牌部分开始
# print('Reyn_AI Log 进入到读取手牌部分')
#创建按花色和顺序归类好的牌库,数值为该牌拥有的数量
#黑桃:S 红桃:H 梅花:C 方片:D
#花色牌列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_S = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_H = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_C = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_D = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#数值总列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_A = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#级牌列表[点数-级牌数量-红桃级牌数量]
handCards_R = [get_num(curRank)+1,0,0]
#特殊牌列表[数量] 序号-点数 分别为:[0-B,1-R]
handCards_K = [0,0]
#遍历服务器所给的'handCards',为上述数据赋值
for card in message['handCards']:
if card[1] == curRank:
handCards_R[1] += 1
if card[0] == 'H':
handCards_R[2] += 1
if card[1] == 'B' or card[1] == 'R':
if card[1] == 'B':
handCards_K[0] += 1
if card[1] == 'R':
handCards_K[1] += 1
else:
if card[0] == 'S' and card[1] != 'B':
handCards_S[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'H' and card[1] != 'R':
handCards_H[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'C':
handCards_C[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'D':
handCards_D[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
## print('Reyn_AI Log 读取手牌部分结束')
## print('Reyn_AI Tip 当前读取到的手牌为')
## print('handCards_S:',handCards_S)
## print('handCards_H:',handCards_H)
## print('handCards_C:',handCards_C)
## print('handCards_D:',handCards_D)
## print('handCards_A:',handCards_A)
## print('handCards_R:',handCards_R)
## print('handCards_K:',handCards_K)
#读取手牌部分结束
value.append(get_VAL(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,check_card,curRank))
max = -50000
AI_choice = 0
for i in range(index + 1):
if value[i] > max:
AI_choice = i
max = value[i]
# print(value)
return AI_choice
#接队友牌
#对照表:
point_dic={
'A':1,
'2':2,
'3':3,
'4':4,
'5':5,
'6':6,
'7':7,
'8':8,
'9':9,
'T':10,
'J':11,
'Q':12,
'K':13,
'B':14,
'R':15
}
if message['greaterPos']==(pos+2)%4:
own_side_action=message['greaterAction'][0]
own_side_point=message['greaterAction'][1]
if own_side_action=='Bomb':
return 0
elif own_side_action=='Single' or own_side_action=='Pair' or own_side_action=='Trips' or own_side_action=='ThreeWithTwo':
if own_side_point=='T' or own_side_point=='J' or own_side_point=='Q' or own_side_point=='K' or own_side_point=='A' or own_side_point=='B' or own_side_point=='R' or own_side_point==message['curRank']:
return 0
elif own_side_action=='ThreePair' or own_side_action=='TripsPair':
if own_side_point=='T' or own_side_point=='J' or own_side_point=='Q' or own_side_point=='K' or own_side_point=='A':
return 0
elif own_side_action=='Straight':
if own_side_point=='7' or own_side_point=='8' or own_side_point=='9' or own_side_point=='T' or own_side_point=='J':
return 0
elif own_side_action=='StraightFlush':
return 0
elif own_side_action=='JOKER':
return 0
# 对选择完的牌型做进一步缩小范围
index=-1
#创建按花色和顺序归类好的牌库,数值为该牌拥有的数量
#黑桃:S 红桃:H 梅花:C 方片:D
#花色牌列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_S = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_H = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_C = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_D = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#数值总列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_A = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#级牌列表[点数-级牌数量-红桃级牌数量]
handCards_R = [get_num(curRank)+1,0,0]
#特殊牌列表[数量] 序号-点数 分别为:[0-B,1-R]
handCards_K = [0,0]
for check_card in message['actionList']:
index += 1
# print('Reyn_AI Tip 当前判断Action',index,':',check_card)
#读取手牌部分开始
# print('Reyn_AI Log 进入到读取手牌部分')
#遍历服务器所给的'handCards',为上述数据赋值
for card in message['handCards']:
if card[1] == curRank:
handCards_R[1] += 1
if card[0] == 'H':
handCards_R[2] += 1
if card[1] == 'B' or card[1] == 'R':
if card[1] == 'B':
handCards_K[0] += 1
if card[1] == 'R':
handCards_K[1] += 1
else:
if card[0] == 'S' and card[1] != 'B':
handCards_S[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'H' and card[1] != 'R':
handCards_H[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'C':
handCards_C[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'D':
handCards_D[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
val=[]
action_List=message['actionList']
for action_index in range(len(action_List)):
if 'H'+message['curRank'] in action_List[action_index][2]:
val.append(-100000)
continue
if action_List[action_index][0]==own_side_action and action_List[action_index][1] != message['curRank']:
if point_dic[action_List[action_index][1]]-point_dic[own_side_point]<=2 and check_patterns_fri(message,action_List[action_index]):
val.append(get_VAL_OPP(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,action_List[action_index],curRank,1))
else:
val.append(-100000)
else:
val.append(-100000)
max = -50000
AI_choice = 0
for i in range(index + 1):
if val[i] > max:
AI_choice = i
max = val[i]
# print(val)
return AI_choice
else:
attack = 0 #激进度 0-不激进 1-激进
# print('Reyn_AI Tip 轮到我方迎接敌人')
opp_num1 = message['publicInfo'][(pos + 1)%4]['rest']
opp_num2 = message['publicInfo'][(pos + 3)%4]['rest']
# print('Reyn_AI Tip 敌方剩余手牌', opp_num1,' ',opp_num2)
if opp_num1 >= 16 and opp_num2 >= 16:
# print('Reyn_AI Tip 确认敌方手牌均大于16,采取非激近策略')
...
else:
# print('Reyn_AI Tip 确认敌方手牌至少有一人少于16,采取激近策略')
attack = 1
#开始遍历Actionlist
index = -1
#创建空操作权重列表[权重值]
value = []
for check_card in message['actionList']:
index += 1
# print('Reyn_AI Tip 当前判断Action',index,':',check_card)
#读取手牌部分开始
# print('Reyn_AI Log 进入到读取手牌部分')
#创建按花色和顺序归类好的牌库,数值为该牌拥有的数量
#黑桃:S 红桃:H 梅花:C 方片:D
#花色牌列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_S = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_H = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_C = [0,0,0,0,0,0,0,0,0,0,0,0,0]
handCards_D = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#数值总列表[数量] 序号-点数 分别为:[0-A,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-T,10-J,11-Q,12-K]
handCards_A = [0,0,0,0,0,0,0,0,0,0,0,0,0]
#级牌列表[点数-级牌数量-红桃级牌数量]
handCards_R = [get_num(curRank)+1,0,0]
#特殊牌列表[数量] 序号-点数 分别为:[0-B,1-R]
handCards_K = [0,0]
#遍历服务器所给的'handCards',为上述数据赋值
for card in message['handCards']:
if card[1] == curRank:
handCards_R[1] += 1
if card[0] == 'H':
handCards_R[2] += 1
if card[1] == 'B' or card[1] == 'R':
if card[1] == 'B':
handCards_K[0] += 1
if card[1] == 'R':
handCards_K[1] += 1
else:
if card[0] == 'S' and card[1] != 'B':
handCards_S[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'H' and card[1] != 'R':
handCards_H[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'C':
handCards_C[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
if card[0] == 'D':
handCards_D[get_num(card[1])] += 1
handCards_A[get_num(card[1])] += 1
# print('Reyn_AI Log 读取手牌部分结束')
# print('Reyn_AI Tip 当前读取到的手牌为')
# print('handCards_S:',handCards_S)
# print('handCards_H:',handCards_H)
# print('handCards_C:',handCards_C)
# print('handCards_D:',handCards_D)
# print('handCards_A:',handCards_A)
# print('handCards_R:',handCards_R)
# print('handCards_K:',handCards_K)
#读取手牌部分结束
#开始计算地方卡牌权值
card_opp = message['greaterAction']
value.append(get_VAL_OPP(handCards_S,handCards_H,handCards_C,handCards_D,handCards_A,handCards_R,handCards_K,check_card,curRank,attack))
max = -50000
AI_choice = 0
for i in range(index + 1):
if value[i] > max:
AI_choice = i
max = value[i]
# print(value)
return AI_choice
| 41.273453
| 212
| 0.453061
| 16,394
| 103,390
| 2.722032
| 0.014701
| 0.170084
| 0.119373
| 0.131944
| 0.938129
| 0.931473
| 0.919081
| 0.91758
| 0.915742
| 0.909692
| 0
| 0.096887
| 0.331947
| 103,390
| 2,505
| 213
| 41.273453
| 0.549196
| 0.067183
| 0
| 0.928923
| 0
| 0
| 0.020384
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004023
| false
| 0.001341
| 0
| 0
| 0.048726
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
a55c54bb39395e4f1e5846b38940fb011bc0b9ce
| 1,597
|
py
|
Python
|
gpu_ver/refcode/models/layers/utils.py
|
bigaidream-projects/drmad
|
a4bb6010595d956f29c5a42a095bab76a60b29eb
|
[
"MIT"
] | 119
|
2016-02-24T17:20:50.000Z
|
2021-05-28T21:35:16.000Z
|
gpu_ver/refcode/models/layers/utils.py
|
LinZichuan/drmad
|
a4bb6010595d956f29c5a42a095bab76a60b29eb
|
[
"MIT"
] | 8
|
2016-02-25T03:13:38.000Z
|
2017-09-15T00:54:52.000Z
|
gpu_ver/refcode/models/layers/utils.py
|
LinZichuan/drmad
|
a4bb6010595d956f29c5a42a095bab76a60b29eb
|
[
"MIT"
] | 31
|
2016-03-10T04:57:11.000Z
|
2021-05-02T01:00:04.000Z
|
import theano.tensor as T
import numpy as np
# Numerically stable log mean exp. Will keep dims.
def LogSumExp(x, axis=None):
x_max = T.max(x, axis=axis, keepdims=True)
return T.log(T.sum(T.exp(x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogMeanExp(x, axis=None):
x_max = T.max(x, axis=axis, keepdims=True)
return T.log(T.mean(T.exp(x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogMeanExpNp(x, axis=None):
x_max = np.amax(x, axis=axis, keepdims=True)
return np.log(np.mean(np.exp(x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogSumExpNp(x, axis=None):
x_max = np.amax(x, axis=axis, keepdims=True)
return np.log(np.sum(np.exp(x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogSumExp2Np(x, axis=None):
x_max = np.amax(x, axis=axis, keepdims=True)
return np.log2(np.sum(2 ** (x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp. Will keep dims.
def LogMeanExp2Np(x, axis=None):
x_max = np.amax(x, axis=axis, keepdims=True)
return np.log2(np.mean(2 ** (x - x_max), axis=axis, keepdims=True)) + x_max
# Numerically stable log mean exp with weighted mean. Will keep dims.
def LogMeanExp2WeightedNp(x, weights, axis=None):
x_max = np.amax(x, axis=axis, keepdims=True)
return np.log2(np.sum(2 ** (x - x_max) * weights, axis=axis,
keepdims=True)) + x_max
| 34.717391
| 79
| 0.678147
| 277
| 1,597
| 3.833935
| 0.133574
| 0.079096
| 0.210923
| 0.263653
| 0.822976
| 0.822976
| 0.800377
| 0.800377
| 0.800377
| 0.760829
| 0
| 0.006891
| 0.182217
| 1,597
| 45
| 80
| 35.488889
| 0.806279
| 0.226049
| 0
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.291667
| false
| 0
| 0.083333
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
a56250f50e20757ea9f1e7ae924320ba249b7220
| 316
|
py
|
Python
|
pyorb/utils/__init__.py
|
sunxb05/aichem
|
79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0
|
[
"Apache-2.0"
] | 1
|
2020-01-29T11:24:52.000Z
|
2020-01-29T11:24:52.000Z
|
pyorb/utils/__init__.py
|
sunxb05/aichem
|
79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0
|
[
"Apache-2.0"
] | 1
|
2021-06-22T07:43:55.000Z
|
2021-06-29T10:57:43.000Z
|
pyorb/utils/__init__.py
|
sunxb05/aichem
|
79a22f49f7e2bec8aa4a8cc718dbd22bbdd40eb0
|
[
"Apache-2.0"
] | 1
|
2020-01-12T07:38:07.000Z
|
2020-01-12T07:38:07.000Z
|
from .drawfigures import OrbitalOrdered, Difference, DrawOverlap, DrawFragEnergy, DrawOverlap2FragEnergy, DrawCoef
from .selectMO import OrbitalInteractionSelected, OrbitalInteractionSelectedWeak, DataSummary, GetComplexOrb
from .selectMOopen import OrbitalInteractionSelectedOpen, DataSummaryOpen, GetComplexOrbOpen
| 105.333333
| 114
| 0.892405
| 22
| 316
| 12.818182
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.00339
| 0.066456
| 316
| 3
| 115
| 105.333333
| 0.952542
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
a5b59b88510db723970e4dcd62adb40d0f9c4040
| 84,852
|
py
|
Python
|
pcdet/models/dense_heads/e2e_fusion_modules.py
|
ocNflag/point2seq
|
710686f576b3df5469a06c66860758b25f852dbd
|
[
"Apache-2.0"
] | 21
|
2022-03-24T09:37:38.000Z
|
2022-03-31T13:21:54.000Z
|
pcdet/models/dense_heads/e2e_fusion_modules.py
|
ocNflag/point2seq
|
710686f576b3df5469a06c66860758b25f852dbd
|
[
"Apache-2.0"
] | null | null | null |
pcdet/models/dense_heads/e2e_fusion_modules.py
|
ocNflag/point2seq
|
710686f576b3df5469a06c66860758b25f852dbd
|
[
"Apache-2.0"
] | 1
|
2022-03-24T09:37:48.000Z
|
2022-03-24T09:37:48.000Z
|
import torch
import math
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from pcdet.utils import common_utils, box_utils
from pcdet.utils.common_utils import limit_period_torch
from pcdet.models.dense_heads.utils import FeatureAdaption, Sequential
from pcdet.ops.dcn import ModulatedDeformConv
class FeatureAdaption(nn.Module):
def __init__(self, in_ch, off_in_ch, out_ch, kernel_size=3):
super(FeatureAdaption, self).__init__()
offset_ch = kernel_size * kernel_size * 3
self.conv_offset = nn.Conv2d(off_in_ch, offset_ch, 1, bias=True)
self.conv_adaption = ModulatedDeformConv(in_ch, out_ch, kernel_size=kernel_size, padding=kernel_size // 2)
self.relu = nn.ReLU(inplace=True)
self.init_weights()
self.init_offset()
def init_offset(self):
self.conv_offset.bias.data.zero_()
def init_weights(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def forward(self, x, off):
out = self.conv_offset(off)
o1, o2, mask = torch.chunk(out, 3, dim=1)
offset = torch.cat((o1, o2), dim=1)
mask = torch.sigmoid(mask)
rlt = self.relu(self.conv_adaption(x, offset, mask))
return rlt
class DCNV2Fusion(nn.Module):
def __init__(self, feat_ch, num_cls, offset_ch, out_ch, naive=False, **kwargs):
super().__init__()
self.naive = naive
if self.naive:
self.fg_fuse = nn.Conv2d(feat_ch + num_cls, out_ch, kernel_size=1)
self.cnr_fuse = nn.Conv2d(feat_ch + (4 * num_cls), out_ch, kernel_size=1)
self.ctr_fuse = nn.Conv2d(feat_ch + num_cls, out_ch, kernel_size=1)
else:
self.fg_fuse = FeatureAdaption(feat_ch + num_cls, offset_ch, out_ch)
self.cnr_fuse = FeatureAdaption(feat_ch + (4 * num_cls), offset_ch, out_ch)
self.ctr_fuse = FeatureAdaption(feat_ch + num_cls, offset_ch, out_ch)
self.base_queries = nn.Sequential(
nn.Conv2d(offset_ch, feat_ch // 4, kernel_size=1, padding=0, bias=True),
nn.BatchNorm2d(feat_ch // 4),
nn.ReLU(),
)
self.center_key = nn.Sequential(
nn.Conv2d(feat_ch, feat_ch // 4, kernel_size=1, padding=0, bias=True),
nn.BatchNorm2d(feat_ch // 4),
nn.ReLU(),
)
self.corner_key = nn.Sequential(
nn.Conv2d(feat_ch, feat_ch // 4, kernel_size=1, padding=0, bias=True),
nn.BatchNorm2d(feat_ch // 4),
nn.ReLU(),
)
self.fg_key = nn.Sequential(
nn.Conv2d(feat_ch, feat_ch // 4, kernel_size=1, padding=0, bias=True),
nn.BatchNorm2d(feat_ch // 4),
nn.ReLU(),
)
def forward(self, orig_feat, center_feat, corner_feat, foreground_feat, **kwargs):
assert (orig_feat != orig_feat).sum().item() == 0
if self.naive:
ctr_feat = self.ctr_fuse(center_feat)
cnr_feat = self.cnr_fuse(corner_feat)
fg_feat = self.fg_fuse(foreground_feat)
return ctr_feat + cnr_feat + fg_feat
ctr_feat = self.ctr_fuse(center_feat, orig_feat)
cnr_feat = self.cnr_fuse(corner_feat, orig_feat)
fg_feat = self.fg_fuse(foreground_feat, orig_feat)
base_q = self.base_queries(orig_feat)
ctr_k = self.center_key(ctr_feat)
ctr_a = (base_q * ctr_k).sum(1, keepdim=True) # (B, 1, W, H)
cnr_k = self.corner_key(cnr_feat)
cnr_a = (base_q * cnr_k).sum(1, keepdim=True) # (B, 1, W, H)
fg_k = self.fg_key(fg_feat)
fg_a = (base_q * fg_k).sum(1, keepdim=True) # (B, 1, W, H)
attention_weights = F.softmax(torch.cat([ctr_a, cnr_a, fg_a], dim=1), dim=1).unsqueeze(2)
attention_feats = torch.stack([ctr_feat, cnr_feat, fg_feat], dim=1) # (B, 3, C, H, W)
rlt = (attention_weights * attention_feats).sum(1) # (B, C, H, W)
return rlt
class OneNetFusionHead(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
code_size = heads['code_size']
if heads['encode_angle_by_sincos']:
code_size += 1
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch)
self.cls_head = Sequential(
nn.Conv2d(in_channels + head_ch, head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.ReLU(inplace=True),
nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2),
)
self.bbox_head = nn.Sequential(
nn.Conv2d(in_channels + head_ch, head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.ReLU(inplace=True),
nn.Conv2d(head_ch, code_size, kernel_size=ks, stride=1, padding=ks // 2),
)
self._reset_parameters()
self.cls_head[-1].bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
ret['pred_logits'] = self.cls_head(final_feat)
ret['pred_boxes'] = self.bbox_head(final_feat)
return ret
class OneNetSeqFusionHead(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.wlh_box_scale_factor = heads.get('cls_box_scale_factor', 1.0)
self.is_nusc = heads.get('is_nusc', False)
self.naive = heads.get('naive', False)
if self.is_nusc:
theta_ch = 4
else:
theta_ch = 2
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, theta_ch, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['raw_xy'] = raw_xy
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
raw_xy = context['raw_xy']
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
context['flatten_xy'] = tmp_xy
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy, box_scale_ratio=self.wlh_box_scale_factor)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
xyz_feat = self.xyz_conv(final_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
theta_feat = torch.cat([final_feat, xyz_feat], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
pred_feats = torch.cat([final_feat, wlh_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadDense(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (6 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (6 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['raw_xy'] = raw_xy
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
raw_xy = context['raw_xy']
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
context['flatten_xy'] = tmp_xy
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
xyz_feat = self.xyz_conv(final_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
theta_feat = torch.cat([final_feat, xyz_feat], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, xyz_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
pred_feats = torch.cat([final_feat, xyz_feat, wlh_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadTCS(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['flatten_xy'] = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
theta_feat = self.theta_conv(final_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
xyz_feat = torch.cat([final_feat, theta_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
wlh_feat = torch.cat([final_feat, xyz_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
pred_feats = torch.cat([final_feat, wlh_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadCST(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['raw_xy'] = raw_xy
tmp_xy = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
context['flatten_xy'] = tmp_xy
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
context['theta'] = theta
flatten_xy = context['flatten_xy']
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, flatten_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
theta = wlh.new_zeros(n * h * w)
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
xyz_feat = self.xyz_conv(final_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
wlh_feat = torch.cat([final_feat, xyz_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
theta_feat = torch.cat([final_feat, wlh_feat], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
pred_feats = torch.cat([final_feat, theta_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadTSC(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
n, _, h, w = wlh.shape
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
theta_feat = self.theta_conv(final_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
xyz_feat = torch.cat([final_feat, wlh_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
pred_feats = torch.cat([final_feat, xyz_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadCLSCTS(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.wlh_box_scale_factor = heads.get('cls_box_scale_factor', 1.0)
self.is_nusc = heads.get('is_nusc', False)
self.naive = heads.get('naive', False)
if self.is_nusc:
theta_ch = 4
else:
theta_ch = 2
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, theta_ch, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['raw_xy'] = raw_xy
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
raw_xy = context['raw_xy']
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
context['flatten_xy'] = tmp_xy
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy, box_scale_ratio=self.wlh_box_scale_factor)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
pred_feats = self.cls_conv(final_feat)
pred_logits = self.cls_head(pred_feats)
xyz_feat = torch.cat([final_feat, pred_feats], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
theta_feat = torch.cat([final_feat, xyz_feat], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadCLSTSC(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
n, _, h, w = wlh.shape
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
pred_feats = self.cls_conv(final_feat)
pred_logits = self.cls_head(pred_feats)
theta_feat = torch.cat([final_feat, pred_feats], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
xyz_feat = torch.cat([final_feat, wlh_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadCLSSTC(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
wlh = context['wlh']
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.box_to_surface_bev(wlh, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
n, _, h, w = wlh.shape
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
context['wlh'] = wlh
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, torch.zeros_like(wlh[:, 0]), tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
pred_feats = self.cls_conv(final_feat)
pred_logits = self.cls_head(pred_feats)
wlh_feat = torch.cat([final_feat, pred_feats], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
theta_feat = torch.cat([final_feat, wlh_feat], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
xyz_feat = torch.cat([final_feat, theta_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadCLSTCS(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
context['flatten_xy'] = raw_xy.permute(0, 2, 3, 1).contiguous().view(n * h * w, 2)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
flatten_xy = context['flatten_xy']
n, _, h, w = wlh.shape
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, flatten_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
pred_feats = self.cls_conv(final_feat)
pred_logits = self.cls_head(pred_feats)
theta_feat = torch.cat([final_feat, pred_feats], dim=1)
theta_feat = self.theta_conv(theta_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
xyz_feat = torch.cat([final_feat, theta_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
wlh_feat = torch.cat([final_feat, xyz_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
class OneNetSeqFusionHeadFTSC(nn.Module):
def __init__(self, in_channels, heads, **kwargs):
super().__init__(**kwargs)
ks = heads['kernel_size']
num_cls = heads['num_classes']
head_ch = heads['head_channels']
init_bias = heads['init_bias']
self.register_buffer('template_box', torch.tensor(heads['template_box']))
self.pc_range = heads['pc_range']
self.voxel_size = heads['voxel_size']
self.register_buffer('xy_offset', heads['offset_grid'])
self.naive = heads.get('naive', False)
# heatmap prediction head
self.center_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.center_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
# corner_map prediction head
self.corner_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True)
)
self.corner_head = nn.Conv2d(head_ch, num_cls * 4, kernel_size=3, stride=1, padding=1, bias=True)
self.fg_conv = Sequential(
nn.Conv2d(in_channels, head_ch, kernel_size=3, padding=1, bias=True),
nn.ReLU(inplace=True),
)
self.fg_head = nn.Conv2d(head_ch, num_cls, kernel_size=3, stride=1, padding=1, bias=True)
self.fusion_module = DCNV2Fusion(head_ch, num_cls, in_channels, head_ch, naive=self.naive)
self.full_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.full_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.theta_conv = nn.Sequential(
nn.Conv2d(in_channels + (1 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.theta_head = nn.Conv2d(head_ch, 2, kernel_size=ks, stride=1, padding=ks // 2)
self.wlh_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.wlh_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.xyz_conv = nn.Sequential(
nn.Conv2d(in_channels + (5 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.xyz_head = nn.Conv2d(head_ch, 3, kernel_size=ks, stride=1, padding=ks // 2)
self.cls_conv = nn.Sequential(
nn.Conv2d(in_channels + (2 * head_ch), head_ch, kernel_size=ks, stride=1, padding=ks // 2),
nn.BatchNorm2d(head_ch),
nn.ReLU(inplace=True),
)
self.cls_head = nn.Conv2d(head_ch, num_cls, kernel_size=ks, stride=1, padding=ks // 2)
self._reset_parameters()
self.cls_head.bias.data.fill_(init_bias)
self.fg_head.bias.data.fill_(init_bias)
self.corner_head.bias.data.fill_(init_bias)
self.center_head.bias.data.fill_(init_bias)
def _reset_parameters(self):
for p in self.parameters():
if p.dim() > 1:
nn.init.xavier_uniform_(p)
def to_grid_coord(self, global_x, global_y):
xmin, ymin, _, xmax, ymax, _ = self.pc_range
x_v, y_v, _ = self.voxel_size
xall = xmax - xmin - x_v
yall = ymax - ymin - y_v
grid_x = (global_x - (xmin + (x_v / 2))) / xall * 2 - 1
grid_y = (global_y - (ymin + (y_v / 2))) / yall * 2 - 1
return grid_x.contiguous(), grid_y.contiguous()
def get_center_sampled_feat(self, xy, xy_feat, context):
n, _, h, w = xy.shape
raw_xy = xy[:, :2] + self.xy_offset # n, 2, h, w
grid_x, grid_y = self.to_grid_coord(raw_xy[:, 0], raw_xy[:, 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1)
sample_feats = F.grid_sample(xy_feat, sample_grids)
return sample_feats
def get_theta_sampled_feat(self, theta, theta_feat, context):
n, _, h, w = theta.shape
sint, cost = theta[:, 1, :, :].contiguous(), theta[:, 0, :, :].contiguous()
theta = torch.atan2(sint, cost).view(-1) # N, h, w - > n*h*w
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
context['theta'] = theta
sample_point = box_utils.template_to_surface_bev(self.template_box, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(theta_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def get_wlh_sampled_feat(self, wlh, wlh_feat, context):
theta = context['theta']
n, _, h, w = wlh.shape
tmp_xy = self.xy_offset.permute(0, 2, 3, 1).repeat(n, 1, 1, 1).contiguous().view(n * h * w, 2)
wlh = torch.exp(wlh).permute(0, 2, 3, 1).contiguous().view(n * h * w, -1)
# wlh = torch.clamp(wlh, min=0, max=9.4)
sample_point = box_utils.box_to_surface_bev(wlh, theta, tmp_xy)
sample_point = sample_point.view(n, h, w, 4, 2)
grid_x, grid_y = self.to_grid_coord(sample_point[..., 0], sample_point[..., 1])
sample_grids = torch.stack([grid_x, grid_y], dim=-1).view(n, h, w * 4, 2) # n, 2, 4, h, w
sample_feats = F.grid_sample(wlh_feat, sample_grids).view(n, -1, h, w, 4).permute(0, 1, 4, 2, 3).contiguous()
sample_feats = sample_feats.view((n, -1, h, w))
return sample_feats
def forward(self, x):
ret = {}
center_feat = self.center_conv(x)
center_map = self.center_head(center_feat)
corner_feat = self.corner_conv(x)
corner_map = self.corner_head(corner_feat)
fg_feat = self.fg_conv(x)
fg_map = self.fg_head(fg_feat)
fusion_feat = self.fusion_module(
orig_feat=x,
center_feat=torch.cat([center_feat, center_map], dim=1),
corner_feat=torch.cat([corner_feat, corner_map], dim=1),
foreground_feat=torch.cat([fg_feat, fg_map], dim=1)
)
final_feat = torch.cat([x, fusion_feat], dim=1)
ret['center_map'] = center_map
ret['corner_map'] = corner_map
ret['foreground_map'] = fg_map
ret['final_feat'] = final_feat
context = {}
theta_feat = self.theta_conv(final_feat)
theta = self.theta_head(theta_feat)
theta = torch.clamp(theta, min=-2, max=2)
theta_feat = self.get_theta_sampled_feat(theta, theta_feat, context)
wlh_feat = torch.cat([final_feat, theta_feat], dim=1)
wlh_feat = self.wlh_conv(wlh_feat)
wlh = self.wlh_head(wlh_feat)
wlh = torch.clamp(wlh, min=-2, max=3)
wlh_feat = self.get_wlh_sampled_feat(wlh, wlh_feat, context)
xyz_feat = torch.cat([final_feat, wlh_feat], dim=1)
xyz_feat = self.xyz_conv(xyz_feat)
xyz = self.xyz_head(xyz_feat)
xyz = torch.clamp(xyz, min=-4, max=4)
xyz_feat = self.get_center_sampled_feat(xyz, xyz_feat, context)
pred_feats = torch.cat([final_feat, xyz_feat], dim=1)
pred_feats = self.cls_conv(pred_feats)
pred_logits = self.cls_head(pred_feats)
ret['pred_logits'] = pred_logits
ret['pred_boxes'] = torch.cat([xyz, wlh, theta], dim=1)
return ret
| 41.371039
| 119
| 0.605313
| 12,650
| 84,852
| 3.793202
| 0.015652
| 0.036512
| 0.03472
| 0.032261
| 0.964697
| 0.961966
| 0.959153
| 0.95759
| 0.95313
| 0.950629
| 0
| 0.024581
| 0.256871
| 84,852
| 2,051
| 120
| 41.371039
| 0.736393
| 0.018715
| 0
| 0.8844
| 0
| 0
| 0.026651
| 0.000264
| 0
| 0
| 0
| 0
| 0.000622
| 1
| 0.049099
| false
| 0
| 0.005594
| 0
| 0.096333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
3c81b35669efe8cc959af5db0b0e6ef8df2323d9
| 74
|
py
|
Python
|
dataviz/__init__.py
|
aroques/k-means
|
7c85f1e5d25a44d94cedae083b00747ae770bb07
|
[
"MIT"
] | 1
|
2020-03-22T03:45:04.000Z
|
2020-03-22T03:45:04.000Z
|
dataviz/__init__.py
|
aroques/k-means
|
7c85f1e5d25a44d94cedae083b00747ae770bb07
|
[
"MIT"
] | 2
|
2021-04-20T18:02:03.000Z
|
2021-06-01T22:10:15.000Z
|
dataviz/__init__.py
|
aroques/k-means
|
7c85f1e5d25a44d94cedae083b00747ae770bb07
|
[
"MIT"
] | 2
|
2018-04-17T14:01:33.000Z
|
2019-01-08T03:54:31.000Z
|
from .dataviz import generate_clusters
from .dataviz import plot_clusters
| 24.666667
| 38
| 0.864865
| 10
| 74
| 6.2
| 0.6
| 0.354839
| 0.548387
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108108
| 74
| 2
| 39
| 37
| 0.939394
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
3c84ebe56c1149639ff9639f525565bb3b738c69
| 3,269
|
py
|
Python
|
tests/test_provider_ukfast_ecloud.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 507
|
2017-07-26T02:58:38.000Z
|
2022-01-21T12:35:13.000Z
|
tests/test_provider_ukfast_ecloud.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 135
|
2017-07-20T12:01:59.000Z
|
2021-10-04T22:25:40.000Z
|
tests/test_provider_ukfast_ecloud.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 81
|
2018-02-20T17:55:28.000Z
|
2022-01-31T07:08:40.000Z
|
# tests/test_provider_ukfast_ecloud.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:15:38 UTC)
def test_provider_import():
import terrascript.provider.ukfast.ecloud
def test_resource_import():
from terrascript.resource.ukfast.ecloud import ecloud_firewallpolicy
from terrascript.resource.ukfast.ecloud import ecloud_firewallrule
from terrascript.resource.ukfast.ecloud import ecloud_floatingip
from terrascript.resource.ukfast.ecloud import ecloud_host
from terrascript.resource.ukfast.ecloud import ecloud_hostgroup
from terrascript.resource.ukfast.ecloud import ecloud_instance
from terrascript.resource.ukfast.ecloud import ecloud_network
from terrascript.resource.ukfast.ecloud import ecloud_networkpolicy
from terrascript.resource.ukfast.ecloud import ecloud_networkrule
from terrascript.resource.ukfast.ecloud import ecloud_router
from terrascript.resource.ukfast.ecloud import ecloud_ssh_keypair
from terrascript.resource.ukfast.ecloud import ecloud_volume
from terrascript.resource.ukfast.ecloud import ecloud_vpc
from terrascript.resource.ukfast.ecloud import ecloud_vpn_endpoint
from terrascript.resource.ukfast.ecloud import ecloud_vpn_service
from terrascript.resource.ukfast.ecloud import ecloud_vpn_session
def test_datasource_import():
from terrascript.data.ukfast.ecloud import ecloud_availability_zone
from terrascript.data.ukfast.ecloud import ecloud_firewallpolicy
from terrascript.data.ukfast.ecloud import ecloud_firewallrule
from terrascript.data.ukfast.ecloud import ecloud_floatingip
from terrascript.data.ukfast.ecloud import ecloud_host
from terrascript.data.ukfast.ecloud import ecloud_hostgroup
from terrascript.data.ukfast.ecloud import ecloud_hostspec
from terrascript.data.ukfast.ecloud import ecloud_image
from terrascript.data.ukfast.ecloud import ecloud_instance
from terrascript.data.ukfast.ecloud import ecloud_network
from terrascript.data.ukfast.ecloud import ecloud_networkpolicy
from terrascript.data.ukfast.ecloud import ecloud_networkrule
from terrascript.data.ukfast.ecloud import ecloud_nic
from terrascript.data.ukfast.ecloud import ecloud_region
from terrascript.data.ukfast.ecloud import ecloud_router
from terrascript.data.ukfast.ecloud import ecloud_router_throughput
from terrascript.data.ukfast.ecloud import ecloud_ssh_keypair
from terrascript.data.ukfast.ecloud import ecloud_volume
from terrascript.data.ukfast.ecloud import ecloud_vpc
from terrascript.data.ukfast.ecloud import ecloud_vpn_endpoint
from terrascript.data.ukfast.ecloud import ecloud_vpn_profile_group
from terrascript.data.ukfast.ecloud import ecloud_vpn_service
from terrascript.data.ukfast.ecloud import ecloud_vpn_session
# TODO: Shortcut imports without namespace for official and supported providers.
# TODO: This has to be moved into a required_providers block.
# def test_version_source():
#
# import terrascript.provider.ukfast.ecloud
#
# t = terrascript.provider.ukfast.ecloud.ecloud()
# s = str(t)
#
# assert 'https://github.com/ukfast/terraform-provider-ecloud' in s
# assert '2.0.0' in s
| 31.737864
| 80
| 0.804221
| 415
| 3,269
| 6.183133
| 0.2
| 0.201091
| 0.273578
| 0.36477
| 0.823071
| 0.794232
| 0.788776
| 0.218239
| 0
| 0
| 0
| 0.005329
| 0.13888
| 3,269
| 102
| 81
| 32.04902
| 0.906217
| 0.148669
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009804
| 0
| 1
| 0.069767
| true
| 0
| 1
| 0
| 1.069767
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 10
|
591ef837736b011630e22d883cdac0930215f448
| 4,120
|
py
|
Python
|
test/test_main.py
|
jackdewinter/pyscan
|
05ea9bff0aaf4d53aa401c51526bb847accec56a
|
[
"MIT"
] | 1
|
2021-01-14T17:39:18.000Z
|
2021-01-14T17:39:18.000Z
|
test/test_main.py
|
jackdewinter/pyscan
|
05ea9bff0aaf4d53aa401c51526bb847accec56a
|
[
"MIT"
] | 17
|
2020-08-15T23:27:28.000Z
|
2022-02-20T18:23:49.000Z
|
test/test_main.py
|
jackdewinter/pyscan
|
05ea9bff0aaf4d53aa401c51526bb847accec56a
|
[
"MIT"
] | null | null | null |
"""
Module to provide tests related to the basic parts of the scanner.
"""
from test.test_scenarios import MainlineExecutor
def test_scanner_with_no_parameters():
"""
Test to make sure we get the simple information if no parameters are supplied.
"""
# Arrange
scanner = MainlineExecutor()
supplied_arguments = []
expected_return_code = 2
expected_output = """usage: main.py [-h] [--version] [--cobertura path] [--junit path]
[--only-changes] [--publish]
Summarize Python files.
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--cobertura path source file name for cobertura test coverage reporting
--junit path source file name for junit test result reporting
--only-changes only_changes
--publish publish
"""
expected_error = ""
# Act
execute_results = scanner.invoke_main(arguments=supplied_arguments)
# Assert
execute_results.assert_results(
expected_output, expected_error, expected_return_code
)
def test_scanner_with_no_parameters_through_module():
"""
Test to make sure we get the simple information if no parameters are supplied,
but through the module interface.
"""
# Arrange
scanner = MainlineExecutor(use_module=True)
supplied_arguments = []
expected_return_code = 2
expected_output = """usage: __main.py__ [-h] [--version] [--cobertura path] [--junit path]
[--only-changes] [--publish]
Summarize Python files.
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--cobertura path source file name for cobertura test coverage reporting
--junit path source file name for junit test result reporting
--only-changes only_changes
--publish publish
"""
expected_error = ""
# Act
execute_results = scanner.invoke_main(arguments=supplied_arguments)
# Assert
execute_results.assert_results(
expected_output, expected_error, expected_return_code
)
def test_scanner_with_no_parameters_through_main():
"""
Test to make sure we get the simple information if no parameters are supplied,
but through the main interface.
"""
# Arrange
scanner = MainlineExecutor(use_main=True)
supplied_arguments = []
expected_return_code = 2
expected_output = """usage: main.py [-h] [--version] [--cobertura path] [--junit path]
[--only-changes] [--publish]
Summarize Python files.
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--cobertura path source file name for cobertura test coverage reporting
--junit path source file name for junit test result reporting
--only-changes only_changes
--publish publish
"""
expected_error = ""
# Act
execute_results = scanner.invoke_main(arguments=supplied_arguments)
# Assert
execute_results.assert_results(
expected_output, expected_error, expected_return_code
)
def test_scanner_with_dash_h():
"""
Test to make sure we get help if '-h' is supplied.
"""
# Arrange
scanner = MainlineExecutor()
supplied_arguments = ["-h"]
expected_return_code = 0
expected_output = """usage: main.py [-h] [--version] [--cobertura path] [--junit path]
[--only-changes] [--publish]
Summarize Python files.
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--cobertura path source file name for cobertura test coverage reporting
--junit path source file name for junit test result reporting
--only-changes only_changes
--publish publish
"""
expected_error = ""
# Act
execute_results = scanner.invoke_main(arguments=supplied_arguments)
# Assert
execute_results.assert_results(
expected_output, expected_error, expected_return_code
)
| 28.611111
| 94
| 0.679612
| 488
| 4,120
| 5.559426
| 0.163934
| 0.048655
| 0.053078
| 0.053078
| 0.940656
| 0.909694
| 0.860302
| 0.860302
| 0.860302
| 0.860302
| 0
| 0.001268
| 0.234466
| 4,120
| 143
| 95
| 28.811189
| 0.858909
| 0.120631
| 0
| 0.82716
| 0
| 0
| 0.536765
| 0
| 0
| 0
| 0
| 0
| 0.049383
| 1
| 0.049383
| false
| 0
| 0.012346
| 0
| 0.061728
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
59404a2c089fbd909961feb21691e08575cc621f
| 189
|
py
|
Python
|
tests/test_get.py
|
chimmy-changa/dummy-basic
|
d8bf598fd64138892634dfbc7bbdcbe8cf94937f
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_get.py
|
chimmy-changa/dummy-basic
|
d8bf598fd64138892634dfbc7bbdcbe8cf94937f
|
[
"BSD-2-Clause"
] | null | null | null |
tests/test_get.py
|
chimmy-changa/dummy-basic
|
d8bf598fd64138892634dfbc7bbdcbe8cf94937f
|
[
"BSD-2-Clause"
] | null | null | null |
from dummy_basic.get import get_hello, get_hello_world
def test_get_hello():
assert "hello" == get_hello()
def test_get_hello_world():
assert "hello_world" == get_hello_world()
| 18.9
| 54
| 0.740741
| 29
| 189
| 4.37931
| 0.344828
| 0.377953
| 0.307087
| 0.23622
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.153439
| 189
| 9
| 55
| 21
| 0.79375
| 0
| 0
| 0
| 0
| 0
| 0.084656
| 0
| 0
| 0
| 0
| 0
| 0.4
| 1
| 0.4
| true
| 0
| 0.2
| 0
| 0.6
| 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
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
597edbca863d5d2042572d4ea1ee41b6811a28da
| 208
|
py
|
Python
|
api_exporter/views.py
|
taboola/prometheus-api-exporter
|
de0c0a802725aaa965093b3a457da481a311b561
|
[
"MIT"
] | 7
|
2021-08-04T06:51:17.000Z
|
2021-08-04T19:47:57.000Z
|
api_exporter/views.py
|
taboola/prometheus-api-exporter
|
de0c0a802725aaa965093b3a457da481a311b561
|
[
"MIT"
] | null | null | null |
api_exporter/views.py
|
taboola/prometheus-api-exporter
|
de0c0a802725aaa965093b3a457da481a311b561
|
[
"MIT"
] | 1
|
2022-02-21T09:56:24.000Z
|
2022-02-21T09:56:24.000Z
|
from django.shortcuts import redirect
from django.shortcuts import render
def index(request):
return render(request, 'main/index.html')
def view_404(request, exception=None):
return redirect('/')
| 18.909091
| 45
| 0.75
| 27
| 208
| 5.740741
| 0.592593
| 0.129032
| 0.245161
| 0.322581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016854
| 0.144231
| 208
| 10
| 46
| 20.8
| 0.853933
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
59959bc6e5aacc859c78a8a4d13162ed7f312c65
| 102
|
py
|
Python
|
addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py
|
niklas2902/py4godot---Open-Project
|
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
|
[
"Apache-2.0"
] | null | null | null |
addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py
|
niklas2902/py4godot---Open-Project
|
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
|
[
"Apache-2.0"
] | null | null | null |
addons/windows64/cpython-3.9.7-windows64/python/install/Lib/site-packages/sitecustomize.py
|
niklas2902/py4godot---Open-Project
|
0983ea2b4f8dd1d0e239dcffb556c678147a1e79
|
[
"Apache-2.0"
] | null | null | null |
import site
import os
site.addsitedir(os.getcwd()+'/addons/windows64')
site.addsitedir(os.getcwd())
| 14.571429
| 48
| 0.754902
| 14
| 102
| 5.5
| 0.5
| 0.363636
| 0.415584
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.078431
| 102
| 6
| 49
| 17
| 0.797872
| 0
| 0
| 0
| 0
| 0
| 0.168317
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
ab69e61b9777798ea64443cae01d56dbb618a6c0
| 947
|
py
|
Python
|
backend/src/exercise/models.py
|
Rdani2005/helping-you2
|
772367ca6046ca578a6a951558f55fae2c974024
|
[
"MIT"
] | null | null | null |
backend/src/exercise/models.py
|
Rdani2005/helping-you2
|
772367ca6046ca578a6a951558f55fae2c974024
|
[
"MIT"
] | null | null | null |
backend/src/exercise/models.py
|
Rdani2005/helping-you2
|
772367ca6046ca578a6a951558f55fae2c974024
|
[
"MIT"
] | null | null | null |
# -------------------- Libraries --------------------------------
from django.db import models
# ------------------ Copyright ----------------------------------
__author__ = "Danny Sequeira"
__copyright__ = "Copyright (C) Danny Sequeira 2022"
# ------------------ Models -------------------------------------
# Mental Excersises model
class Mental(models.Model):
title = models.TextField(null=True, blank=True)
content = models.TextField(null=True, blank=True)
author = models.TextField(null=True, blank=True)
updated = models.DateTimeField(auto_now=True)
created = models.DateTimeField(auto_now_add=True)
# Physical Excersises model
class Physical(models.Model):
title = models.TextField(null=True, blank=True)
content = models.TextField(null=True, blank=True)
author = models.TextField(null=True, blank=True)
updated = models.DateTimeField(auto_now=True)
created = models.DateTimeField(auto_now_add=True)
| 45.095238
| 65
| 0.621964
| 99
| 947
| 5.808081
| 0.292929
| 0.156522
| 0.198261
| 0.24
| 0.702609
| 0.702609
| 0.702609
| 0.702609
| 0.702609
| 0.702609
| 0
| 0.004808
| 0.121436
| 947
| 20
| 66
| 47.35
| 0.686298
| 0.254488
| 0
| 0.666667
| 0
| 0
| 0.067143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.066667
| 0
| 0.866667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
ab87f4195e40378c5291ad69068c694bc9f1742a
| 3,588
|
py
|
Python
|
tests/test_fasta.py
|
carlosp420/dataset-creator
|
d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9
|
[
"BSD-2-Clause"
] | 1
|
2020-10-05T15:16:21.000Z
|
2020-10-05T15:16:21.000Z
|
tests/test_fasta.py
|
carlosp420/dataset-creator
|
d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9
|
[
"BSD-2-Clause"
] | 9
|
2015-09-16T10:49:10.000Z
|
2020-06-28T20:07:10.000Z
|
tests/test_fasta.py
|
carlosp420/dataset-creator
|
d15e4a9b7a6bcf367fcd53c1532a812b8ed84bc9
|
[
"BSD-2-Clause"
] | null | null | null |
import os
import unittest
from dataset_creator.dataset import Dataset
from .generate_test_data import get_test_data
FASTA_DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'Fasta')
class TestFasta(unittest.TestCase):
def setUp(self):
self.maxDiff = None
self.test_data = get_test_data()
def tearDown(self):
del self.test_data
def test_dataset(self):
dataset = Dataset(self.test_data, format='FASTA', partitioning='by gene')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset.fas')).read()
self.assertEqual(expected, result)
def test_dataset__with_long_name(self):
"""Test that we can output fasta files with long names
Test taht we don't truncate to 54 characters
"""
dataset = Dataset(self.test_data, format='FASTA', partitioning='by gene')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset.fas')).read()
self.assertEqual(expected, result)
def test_dataset_with_gaps(self):
seq = self.test_data[0].seq
seq = list(seq)
seq[:3] = "---"
self.test_data[0].seq = "".join(seq)
dataset = Dataset(self.test_data, format='FASTA', partitioning='by gene')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_with_gaps.fas')).read()
self.assertEqual(expected, result)
def test_partitioned_by_1st2nd_3rd(self):
test_data = get_test_data("sample_data_numbers.txt")
dataset = Dataset(test_data, format='FASTA', partitioning='1st-2nd, 3rd')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_1st2nd_3rd_numbers.fas')).read()
self.assertEqual(expected, result)
def test_partitioned_by_1st2nd_3rd_only_1st2nd_codon_positions(self):
test_data = get_test_data("sample_data_numbers.txt")
dataset = Dataset(test_data, format='FASTA', partitioning='1st-2nd, 3rd',
codon_positions='1st-2nd')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_1st2nd_numbers.fas')).read()
self.assertEqual(expected, result)
def test_partitioned_by_1st2nd_3rd_only_1st_codon_position(self):
test_data = get_test_data("sample_data_numbers.txt")
dataset = Dataset(test_data, format='FASTA', partitioning='1st-2nd, 3rd',
codon_positions='1st')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_1st_numbers.fas')).read()
self.assertEqual(expected, result)
def test_partitioned_by_1st2nd_3rd_only_2nd_codon_position(self):
test_data = get_test_data("sample_data_numbers.txt")
dataset = Dataset(test_data, format='FASTA', partitioning='1st-2nd, 3rd',
codon_positions='2nd')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_2nd_numbers.fas')).read()
self.assertEqual(expected, result)
def test_partitioned_by_1st2nd_3rd_only_3rd_codon_position(self):
test_data = get_test_data("sample_data_numbers.txt")
dataset = Dataset(test_data, format='FASTA', partitioning='1st-2nd, 3rd',
codon_positions='3rd')
result = dataset.dataset_str
expected = open(os.path.join(FASTA_DATA_PATH, 'dataset_3rd_numbers.fas')).read()
self.assertEqual(expected, result)
| 42.211765
| 95
| 0.678372
| 463
| 3,588
| 4.963283
| 0.151188
| 0.087032
| 0.062663
| 0.066144
| 0.815057
| 0.801131
| 0.791123
| 0.791123
| 0.7698
| 0.7698
| 0
| 0.018695
| 0.209866
| 3,588
| 84
| 96
| 42.714286
| 0.791887
| 0.027035
| 0
| 0.46875
| 1
| 0
| 0.123414
| 0.07526
| 0
| 0
| 0
| 0
| 0.125
| 1
| 0.15625
| false
| 0
| 0.0625
| 0
| 0.234375
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
aba8a42dee7350c02d4df85d74b303251b1373c0
| 13,033
|
py
|
Python
|
yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 36
|
2018-12-23T13:51:50.000Z
|
2022-03-25T07:48:24.000Z
|
yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 15
|
2019-02-28T04:55:09.000Z
|
2022-03-06T23:17:24.000Z
|
yandex/cloud/billing/v1/billing_account_service_pb2_grpc.py
|
korsar182/python-sdk
|
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
|
[
"MIT"
] | 18
|
2019-02-23T07:10:57.000Z
|
2022-03-28T14:41:08.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.access import access_pb2 as yandex_dot_cloud_dot_access_dot_access__pb2
from yandex.cloud.billing.v1 import billing_account_pb2 as yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__pb2
from yandex.cloud.billing.v1 import billing_account_service_pb2 as yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
class BillingAccountServiceStub(object):
"""A set of methods for managing BillingAccount resources.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Get = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/Get',
request_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.GetBillingAccountRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__pb2.BillingAccount.FromString,
)
self.List = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/List',
request_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsResponse.FromString,
)
self.ListBillableObjectBindings = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/ListBillableObjectBindings',
request_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsResponse.FromString,
)
self.BindBillableObject = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/BindBillableObject',
request_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.BindBillableObjectRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
)
self.ListAccessBindings = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/ListAccessBindings',
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
)
self.UpdateAccessBindings = channel.unary_unary(
'/yandex.cloud.billing.v1.BillingAccountService/UpdateAccessBindings',
request_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
)
class BillingAccountServiceServicer(object):
"""A set of methods for managing BillingAccount resources.
"""
def Get(self, request, context):
"""Returns the specified billing account.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def List(self, request, context):
"""Retrieves the list of billing accounts available for current user.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListBillableObjectBindings(self, request, context):
"""Retrieves the list of billable object bindings associated with the specified billing account.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def BindBillableObject(self, request, context):
"""Binds billable object to the specified billing account.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ListAccessBindings(self, request, context):
"""Lists access bindings for the specified billing account.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def UpdateAccessBindings(self, request, context):
"""Updates access bindings for the specified billing account.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_BillingAccountServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'Get': grpc.unary_unary_rpc_method_handler(
servicer.Get,
request_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.GetBillingAccountRequest.FromString,
response_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__pb2.BillingAccount.SerializeToString,
),
'List': grpc.unary_unary_rpc_method_handler(
servicer.List,
request_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsRequest.FromString,
response_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsResponse.SerializeToString,
),
'ListBillableObjectBindings': grpc.unary_unary_rpc_method_handler(
servicer.ListBillableObjectBindings,
request_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsRequest.FromString,
response_serializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsResponse.SerializeToString,
),
'BindBillableObject': grpc.unary_unary_rpc_method_handler(
servicer.BindBillableObject,
request_deserializer=yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.BindBillableObjectRequest.FromString,
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
),
'ListAccessBindings': grpc.unary_unary_rpc_method_handler(
servicer.ListAccessBindings,
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.FromString,
response_serializer=yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.SerializeToString,
),
'UpdateAccessBindings': grpc.unary_unary_rpc_method_handler(
servicer.UpdateAccessBindings,
request_deserializer=yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.FromString,
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'yandex.cloud.billing.v1.BillingAccountService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class BillingAccountService(object):
"""A set of methods for managing BillingAccount resources.
"""
@staticmethod
def Get(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/Get',
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.GetBillingAccountRequest.SerializeToString,
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__pb2.BillingAccount.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def List(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/List',
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsRequest.SerializeToString,
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillingAccountsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ListBillableObjectBindings(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/ListBillableObjectBindings',
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsRequest.SerializeToString,
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.ListBillableObjectBindingsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def BindBillableObject(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/BindBillableObject',
yandex_dot_cloud_dot_billing_dot_v1_dot_billing__account__service__pb2.BindBillableObjectRequest.SerializeToString,
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ListAccessBindings(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/ListAccessBindings',
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsRequest.SerializeToString,
yandex_dot_cloud_dot_access_dot_access__pb2.ListAccessBindingsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def UpdateAccessBindings(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.billing.v1.BillingAccountService/UpdateAccessBindings',
yandex_dot_cloud_dot_access_dot_access__pb2.UpdateAccessBindingsRequest.SerializeToString,
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 53.413934
| 164
| 0.72209
| 1,268
| 13,033
| 6.951893
| 0.097003
| 0.052184
| 0.063528
| 0.077141
| 0.853659
| 0.849007
| 0.82768
| 0.790698
| 0.742938
| 0.711288
| 0
| 0.008031
| 0.216527
| 13,033
| 243
| 165
| 53.633745
| 0.855254
| 0.064375
| 0
| 0.523077
| 1
| 0
| 0.095112
| 0.067124
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071795
| false
| 0
| 0.025641
| 0.030769
| 0.14359
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6180ab91e27a84b198426ef07daeb1c16bd1ae8
| 131
|
py
|
Python
|
getGAP.py
|
caiomcg/TSP
|
047ff34a8769b062306d261169ab4ca3f4368be1
|
[
"MIT"
] | 1
|
2019-09-04T17:48:06.000Z
|
2019-09-04T17:48:06.000Z
|
getGAP.py
|
caiomcg/TSP
|
047ff34a8769b062306d261169ab4ca3f4368be1
|
[
"MIT"
] | null | null | null |
getGAP.py
|
caiomcg/TSP
|
047ff34a8769b062306d261169ab4ca3f4368be1
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
import sys
print(sys.argv[1])
print(((float(sys.argv[1]) - float(sys.argv[2]))/(float(sys.argv[2]))) * 100.0)
| 16.375
| 79
| 0.625954
| 24
| 131
| 3.416667
| 0.5
| 0.341463
| 0.439024
| 0.317073
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067227
| 0.091603
| 131
| 7
| 80
| 18.714286
| 0.621849
| 0.122137
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 8
|
e63b1a49e13a59e8ed1da3c058b08aaf6785832c
| 8,121
|
py
|
Python
|
silo/benchmarks/results/istc11-3-21-13.py
|
anshsarkar/TailBench
|
25845756aee9a892229c25b681051591c94daafd
|
[
"MIT"
] | 274
|
2015-01-23T16:24:09.000Z
|
2022-02-22T03:16:14.000Z
|
silo/benchmarks/results/istc11-3-21-13.py
|
anshsarkar/TailBench
|
25845756aee9a892229c25b681051591c94daafd
|
[
"MIT"
] | 3
|
2015-03-17T11:52:36.000Z
|
2019-07-22T23:04:25.000Z
|
silo/benchmarks/results/istc11-3-21-13.py
|
anshsarkar/TailBench
|
25845756aee9a892229c25b681051591c94daafd
|
[
"MIT"
] | 94
|
2015-01-07T06:55:36.000Z
|
2022-01-22T08:14:15.000Z
|
RESULTS = [({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 1}, [(341977.0, 0.0), (367991.0, 0.0), (342608.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 4}, [(1565190.0, 0.0), (1565550.0, 0.0), (1563210.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 8}, [(3193760.0, 0.0), (3182240.0, 0.0), (3188560.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 12}, [(4780000.0, 0.0), (4767620.0, 0.0), (4771070.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 16}, [(6332840.0, 0.0), (6328970.0, 0.0), (6334500.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 20}, [(7872050.0, 0.0), (7871110.0, 0.0), (7845550.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 24}, [(9363600.0, 0.0), (9368290.0, 0.0), (9366990.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 28}, [(10832500.0, 0.0), (10770300.0, 0.0), (10818600.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'kvdb', 'bench': 'ycsb', 'par_load': True, 'threads': 32}, [(11856400.0, 0.0), (11855900.0, 0.0), (11865400.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 1}, [(323784.0, 0.0), (321806.0, 0.0), (322916.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 4}, [(1385090.0, 0.0), (1391820.0, 0.0), (1344820.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 8}, [(2827340.0, 0.0), (2732100.0, 0.0), (2758880.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 12}, [(4209050.0, 0.0), (4182500.0, 0.0), (4193630.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 16}, [(5485600.0, 0.0), (5500570.0, 0.0333328), (5532810.0, 0.0166665)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 20}, [(6959520.0, 0.0), (6969320.0, 0.0166664), (6948200.0, 0.0)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 24}, [(8319120.0, 0.0), (8340050.0, 0.0333328), (8297860.0, 0.0333328)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 28}, [(9631680.0, 0.0), (9588000.0, 0.0333328), (9622120.0, 0.0333327)]), ({'bench_opts': '', 'scale_factor': 320000, 'db': 'ndb-proto2', 'bench': 'ycsb', 'par_load': True, 'threads': 32}, [(10263300.0, 0.0166629), (10300700.0, 0.0333262), (10163800.0, 0.0499888)]), ({'bench_opts': '--new-order-remote-item-pct 0', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(440703.0, 0.0), (435462.0, 0.0), (449485.0, 0.0)]), ({'bench_opts': '--new-order-remote-item-pct 1', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(434779.0, 68.3486), (438273.0, 69.6653), (442467.0, 69.2987)]), ({'bench_opts': '--new-order-remote-item-pct 2', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(445738.0, 142.23), (435539.0, 136.43), (430208.0, 135.364)]), ({'bench_opts': '--new-order-remote-item-pct 3', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(435363.0, 202.596), (431492.0, 204.33), (447837.0, 213.629)]), ({'bench_opts': '--new-order-remote-item-pct 4', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(430948.0, 266.161), (441064.0, 273.478), (431624.0, 272.662)]), ({'bench_opts': '--new-order-remote-item-pct 5', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(436018.0, 340.293), (438748.0, 339.76), (438044.0, 338.56)]), ({'bench_opts': '--new-order-remote-item-pct 6', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(431446.0, 400.741), (434324.0, 402.438), (436072.0, 405.976)]), ({'bench_opts': '--new-order-remote-item-pct 7', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(429735.0, 463.173), (440026.0, 472.789), (426122.0, 457.674)]), ({'bench_opts': '--new-order-remote-item-pct 8', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(425216.0, 521.456), (438042.0, 535.771), (430484.0, 529.554)]), ({'bench_opts': '--new-order-remote-item-pct 9', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(439448.0, 602.687), (436484.0, 596.338), (442301.0, 608.353)]), ({'bench_opts': '--new-order-remote-item-pct 10', 'scale_factor': 28, 'db': 'ndb-proto2', 'bench': 'tpcc', 'par_load': False, 'threads': 28}, [(434582.0, 661.104), (424904.0, 634.071), (434322.0, 665.07)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 0', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(758259.0, 0.0), (771913.0, 0.0), (763892.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 1', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(645656.0, 0.0), (650949.0, 0.0), (627824.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 2', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(536405.0, 0.0), (531694.0, 0.0), (537912.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 3', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(443490.0, 0.0), (432826.0, 0.0), (441318.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 4', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(368602.0, 0.0), (352058.0, 0.0), (368116.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 5', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(306356.0, 0.0), (308941.0, 0.0), (310371.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 6', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(263430.0, 0.0), (250817.0, 0.0), (263369.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 7', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(227992.0, 0.0), (216511.0, 0.0), (226312.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 8', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(197707.0, 0.0), (196394.0, 0.0), (197256.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 9', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(177286.0, 0.0), (177743.0, 0.0), (175348.0, 0.0)]), ({'bench_opts': '--enable-separate-tree-per-partition --enable-partition-locks --new-order-remote-item-pct 10', 'scale_factor': 28, 'db': 'kvdb', 'bench': 'tpcc', 'par_load': True, 'threads': 28}, [(157529.0, 0.0), (159431.0, 0.0), (158633.0, 0.0)])]
| 4,060.5
| 8,120
| 0.607191
| 1,281
| 8,121
| 3.75566
| 0.178767
| 0.070671
| 0.049886
| 0.108501
| 0.741634
| 0.74101
| 0.74101
| 0.714197
| 0.714197
| 0.714197
| 0
| 0.214956
| 0.094323
| 8,121
| 1
| 8,121
| 8,121
| 0.439157
| 0
| 0
| 0
| 0
| 11
| 0.43369
| 0.154414
| 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
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
05120bc7098f24a8600040afe53bc1790b641087
| 91,200
|
py
|
Python
|
src/framework/scsLib.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | 1
|
2022-03-10T13:00:25.000Z
|
2022-03-10T13:00:25.000Z
|
src/framework/scsLib.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | 1
|
2019-07-23T08:49:09.000Z
|
2019-07-23T08:49:09.000Z
|
src/framework/scsLib.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 11 22:12:05 2018
@author: saad
"""
'''
Scenarios:
+ Single tenant:
+ phy2vm2vm2phy_Baseline_NoDPDK
+ phy2vm2vm2phy_Baseline_DPDK
+ phy2vm2vm2phy_SRIOV_NoDPDK
+ phy2vm2vm2phy_SRIOV_DPDK
+ phy2phy_Baseline_NoDPDK
+ phy2phy_Baseline_DPDK
+ phy2phy_SRIOV_NoDPDK
+ phy2phy_SRIOV_DPDK
+multi tenant:
+ phy2vm2vm2phy_Baseline_MultiTenant_NoDPDK
+ phy2vm2vm2phy_Baseline_MultiTenant_DPDK
+ phy2vm2vm2phy_SRIOV_MultiTenant_NoDPDK
+ phy2vm2vm2phy_SRIOV_MultiTenant_DPDK
+ phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK
+ phy2vm2vm2phy_SRIOV_MultiOvs_DPDK
+ phy2phy_Baseline_MultiTenant_NoDPDK
+ phy2phy_Baseline_MultiTenant_DPDK
+ phy2phy_SRIOV_MultiTenant_NoDPDK
+ phy2phy_SRIOV_MultiTenant_DPDK
+ phy2phy_SRIOV_MultiOvs_NoDPDK
+ phy2phy_SRIOV_MultiOvs_DPDK
'''
import expLib as exp
import smtplib
from datetime import datetime
import os
import errno
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders
###########################################################################################
####################################---Scenario Specific Data---###########################
###########################################################################################
# Server CPU
MaxCpu= 8
#cpu isolation
IsCpusIsolated=True
#Destination MAC (needed for Flow Rules)
outDestMac="00:00:00:00:30:56"
#cpu_array=[Host ,Vswitch VM ,Tenant VM ,ovs-vswitchd ,dpdk-vswitch ,dpdk-tenant, OVS-VM count, Tenents per OVS]
CpuData= []
################################ single tenant ################################
CpuData.append(["phy2phy", "Baseline_NoDPDK", [2 ,0 ,0 ,0 ,0 ,0, 0 ,0]])
CpuData.append(["phy2phy", "Baseline_DPDK", [2 ,0 ,0 ,0 ,1 ,0, 0 ,0]])
CpuData.append(["phy2phy", "SRIOV_NoDPDK", [1 ,2 ,0 ,0 ,0 ,0, 1, 0]])
CpuData.append(["phy2phy", "SRIOV_DPDK", [1 ,1 ,0 ,0 ,1 ,0, 1, 0]])
#-------------------------------------------------------------------------------------------------------
CpuData.append(["phy2vm2vm2phy", "Baseline_NoDPDK", [2 ,0 ,2 ,0 ,0 ,0, 0, 1]])
CpuData.append(["phy2vm2vm2phy", "Baseline_DPDK", [2 ,0 ,2 ,0 ,1 ,0, 0, 1]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_NoDPDK", [1 ,2 ,2 ,0 ,0 ,0, 1, 1]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_DPDK", [1 ,1 ,2 ,0 ,1 ,0, 1, 1]])
################################ Multi tenant ################################
CpuData.append(["phy2phy", "Baseline_MultiTenant_NoDPDK", [2 ,0 ,0 ,0 ,0 ,0, 0 ,0]])
CpuData.append(["phy2phy", "Baseline_MultiTenant_DPDK", [2 ,0 ,0 ,0 ,1 ,0, 0 ,0]])
CpuData.append(["phy2phy", "SRIOV_MultiTenant_NoDPDK", [1 ,2 ,0 ,0 ,0 ,0, 1, 0]])
CpuData.append(["phy2phy", "SRIOV_MultiTenant_DPDK", [1 ,1 ,0 ,0 ,1 ,0, 1, 0]])
CpuData.append(["phy2phy", "SRIOV_MultiOvs_NoDPDK", [1 ,2 ,0 ,0 ,0 ,0, 2, 0]])
CpuData.append(["phy2phy", "SRIOV_MultiOvs_DPDK", [1 ,1 ,0 ,0 ,1 ,0, 2, 0]])
#-------------------------------------------------------------------------------------------------------
CpuData.append(["phy2vm2vm2phy", "Baseline_MultiTenant_NoDPDK", [2 ,0 ,2 ,0 ,0 ,0, 0, 2]])
CpuData.append(["phy2vm2vm2phy", "Baseline_MultiTenant_DPDK", [2 ,0 ,2 ,0 ,1 ,0, 0, 2]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_MultiTenant_NoDPDK", [1 ,2 ,2 ,0 ,0 ,0, 1, 2]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_MultiTenant_DPDK", [1 ,1 ,2 ,0 ,1 ,0, 1, 2]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_MultiOvs_NoDPDK", [1 ,2 ,2 ,0 ,0 ,0, 2, 1]])
CpuData.append(["phy2vm2vm2phy", "SRIOV_MultiOvs_DPDK", [1 ,1 ,2 ,0 ,1 ,0, 2, 1]])
###########################################################################################
####################################---Helper Functions---#################################
###########################################################################################
def Logs(Summary,cpuArray, time):
exp.CmdLogPath= "./ExpLib_logs/"+time+"/"+exp.scsName+"_"+exp.Server_cnx[0]+"_"+str(cpuArray)+"_.txt"
exp.SummaryPath= "./ExpLib_logs/"+time+"/summary.txt"
if not os.path.exists(os.path.dirname(exp.SummaryPath)):
try:
os.makedirs(os.path.dirname(exp.SummaryPath))
except OSError as exc: # Guard against race condition
if exc.errno != errno.EEXIST:
raise
with open(exp.SummaryPath, "w") as f:
f.write(Summary)
f.close()
def CpuArrayFinder(ScsName, dpdk_vswitch_cores):
for d in CpuData:
if d[0]==ScsName and d[1]==dpdk_vswitch_cores:
return d[2]
#cpu_array=[Host ,Vswitch VM ,Tenant VM ,ovs-vswitchd ,dpdk-vswitch ,dpdk-tenant, OVS-VM count, Tenents per OVS]
def CpuAllocation(config):
exp.HOST_CPU=str(config[0])
ovsVmCpuListArray=[]
tenantVmCpuListArray=[]
if config[1]!=0:
if config[6]==1:
ovsHostCpuCount= config[0]
ovsVmCpuCount= config[1] +config[3] +config[4]
tenantVmCpuCount= config[2] +config[5]
ovsVmCpuList = range(ovsHostCpuCount,ovsVmCpuCount+ovsHostCpuCount)
ovsVmCpuListArray.append(ovsVmCpuList)
start= ovsVmCpuCount+ovsHostCpuCount
end=ovsVmCpuCount+ovsHostCpuCount
for i in range(config[7]):
start=end
end=end + tenantVmCpuCount
tenantVmCpuList = range(start,end)
tenantVmCpuListArray.append(tenantVmCpuList)
vSwitchdCpuList= range(config[1]+config[3])
dpdkVswitchCpu= range(config[1]+config[3], config[1]+config[3]+config[4])
vSwitchdCpuStr= ','.join(str(c) for c in vSwitchdCpuList)
OvsCpu=[vSwitchdCpuStr, vSwitchdCpuStr]
DpdkCpu=[ovsVmCpuCount,dpdkVswitchCpu]
else:
ovsHostCpuCount= config[0]
ovsVmCpuCount= config[1] +config[3] +config[4]
tenantVmCpuCount= config[2] +config[5]
if IsCpusIsolated:
ovsVmCpuCount= ovsVmCpuCount-1
start=ovsHostCpuCount
end=ovsHostCpuCount
for i in range(config[6]):
start=end
end=end + ovsVmCpuCount
ovsVmCpuList = range(start,end)
ovsVmCpuListArray.append(ovsVmCpuList)
else:
start=ovsHostCpuCount
end=ovsHostCpuCount+ ovsVmCpuCount
for i in range(config[6]):
ovsVmCpuList = range(start,end)
ovsVmCpuListArray.append(ovsVmCpuList)
Tstart=end
Tend=end
for i in range(config[6]):
Tstart= Tend
Tend= Tend + tenantVmCpuCount
tenantVmCpuList = range(Tstart,Tend)
tenantVmCpuListArray.append(tenantVmCpuList)
if IsCpusIsolated:
dpdkVswitchCpu= range(ovsVmCpuCount)
if config[1]+config[3]>1:
vSwitchdCpuList= range(config[1]+config[3]-1)
else:
vSwitchdCpuList= range(config[1]+config[3])
else:
dpdkVswitchCpu= range(config[1]+config[3], config[1]+config[3]+config[4])
vSwitchdCpuList= range(config[1]+config[3])
vSwitchdCpuStr= ','.join(str(c) for c in vSwitchdCpuList)
OvsCpu=[vSwitchdCpuStr, vSwitchdCpuStr]
DpdkCpu=[ovsVmCpuCount,dpdkVswitchCpu]
else:
ovsCpuCount= config[3] +config[4]
if ovsCpuCount>0:
ovsHostCpuCount= config[0] -1
else:
ovsHostCpuCount= config[0]
tenantVmCpuCount= config[2] +config[5]
vSwitchdCpuList= range(ovsHostCpuCount)
dpdkVswitchCpu= range(ovsHostCpuCount, ovsHostCpuCount +config[4])
ovsVmCpuList=[]
ovsVmCpuListArray.append(ovsVmCpuList)
start= ovsCpuCount+ovsHostCpuCount
end=ovsCpuCount+ovsHostCpuCount
for i in range(config[7]):
start=end
end=end + tenantVmCpuCount
tenantVmCpuList = range(start,end)
tenantVmCpuListArray.append(tenantVmCpuList)
vSwitchdCpuStr= ','.join(str(c) for c in vSwitchdCpuList)
OvsCpu=[vSwitchdCpuStr, vSwitchdCpuStr]
DpdkCpu=[MaxCpu ,dpdkVswitchCpu]
return [ovsVmCpuListArray, tenantVmCpuListArray, OvsCpu, DpdkCpu]
def EmailNotify(body, state, time, attachmentPath=""):
subject = time+": "+exp.scsName+" "+state+" on "+exp.Server_cnx[0]
# Sign In
gmail_sender = 'XXX'
gmail_passwd = 'XXX'
#Receivers
receivers = "XXX"
subject = time+": "+exp.scsName+" "+state+" on "+exp.Server_cnx[0]
msg = MIMEMultipart()
msg['From'] = gmail_sender
msg['To'] = receivers
msg['Subject'] = subject
msg.attach(MIMEText(body))
if(attachmentPath!=""):
attachment =open(attachmentPath,'rb')
part = MIMEBase('application','octet-stream')
part.set_payload((attachment).read())
encoders.encode_base64(part)
part.add_header('Content-Disposition',"attachment; filename= "+attachmentPath)
msg.attach(part)
text = msg.as_string()
server = smtplib.SMTP('smtp.gmail.com',587)
server.starttls()
server.login(gmail_sender,gmail_passwd)
try:
server.sendmail(gmail_sender, receivers.split(","), text)
except:
print ('error sending mail')
server.quit()
def GetScenarioSummary(OvsVmPorts, OvsCpu, DpdkCpu, DpdkMem):
SummaryMsg="Scenario Name: "+exp.scsName+"\n"
SummaryMsg= SummaryMsg+ "Nic : "+ str(exp.NicType)+"\n"
SummaryMsg= SummaryMsg+ "Is OVS running with DPDK : "+str(exp.IsDPDK)+"\n"
SummaryMsg= SummaryMsg+ "Is SR-IOV enabled : "+str(exp.isSRIOV)+"\n"
SummaryMsg= SummaryMsg+ "CPU Isolation : "+str(IsCpusIsolated)+"\n"
SummaryMsg= SummaryMsg+ " \n \n"
SummaryMsg= SummaryMsg+ "Physical Ports config: \n"
if exp.isSRIOV:
for p in exp.PhyPorts:
SummaryMsg= SummaryMsg+ " +port "+p[0]+" has "+p[1]+" configured Vfs \n"
else:
if exp.IsDPDK:
for p in exp.PhyPorts:
SummaryMsg= SummaryMsg+ " +port "+p[0]+" assigned to:"+p[1]+" as a DPDK port on Core"+p[3]+" \n"
else:
for p in exp.PhyPorts:
SummaryMsg= SummaryMsg+ " +port "+p[0]+" assigned to:"+p[1]+" \n"
SummaryMsg= SummaryMsg+ " \n \n"
if exp.isSRIOV:
SummaryMsg= SummaryMsg+ "Vfs config: \n"
for vf in exp.MyVfs:
SummaryMsg= SummaryMsg+ " +"+vf[0]+" Vlan: "+vf[1]+" Spoofchk: "+vf[2]+" asssigned to "+vf[3]+"\n"
else:
if len(exp.VirtualPorts)!=0:
SummaryMsg= SummaryMsg+ "Virtual ports config: \n"
for vp in exp.VirtualPorts:
SummaryMsg= SummaryMsg+ " +Mac Id: "+vp[0]+" assigned to bridge: "+vp[1]+" assigned to: "+vp[2]+"\n"
SummaryMsg= SummaryMsg+ " \n \n"
if len(exp.usedVms)!=0:
SummaryMsg= SummaryMsg+ "VMs config: \n"
for vm in exp.usedVms:
SummaryMsg= SummaryMsg+ " +"+vm[0]+" Running on cores:"+str(vm[1])+" RAM: "+vm[2]+"\n"
SummaryMsg= SummaryMsg+ " \n \n"
SummaryMsg= SummaryMsg+ "OVS CPU Config: \n"
SummaryMsg= SummaryMsg+ " +OVSDb: "+OvsCpu[0]+" \n"
SummaryMsg= SummaryMsg+ " +Vswitchd: "+OvsCpu[1]+" \n"
if exp.IsDPDK:
SummaryMsg= SummaryMsg+ " +OVS-DPDK: "+str(DpdkCpu[1])+" \n"
SummaryMsg= SummaryMsg+ " +DPDK Memory: "+DpdkMem+" \n"
SummaryMsg= SummaryMsg+ " \n \n"
if exp.isSRIOV and len(OvsVmPorts)!=0:
SummaryMsg= SummaryMsg+ "OVS VM(s) Config: \n"
indx=1
for pl in OvsVmPorts:
SummaryMsg= SummaryMsg+ "OVS-VM "+str(indx)+" Config: \n"
indx=indx+1
for vmp in pl:
if vmp[1]==True:
SummaryMsg= SummaryMsg+ " +vf "+vmp[0]+" is a DPDK port Running on cores:"+vmp[2]+"\n"
else:
SummaryMsg= SummaryMsg+ " +vf "+vmp[0]+"\n"
return SummaryMsg
###########################################################################################
####################################---Scenarios---########################################
###########################################################################################
###########################################################################################
####################################---Single Tenant VM---#################################
###########################################################################################
def phy2vm2vm2phy_SRIOV_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][1])),
("enp3s0f3", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][0])),
("enp3s0f3", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2--> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM
#exp.StartDpdkApp("tenant-green-1")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_SRIOV_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off","tenant-green-1")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False),
("enp3s1f3", False),
("enp3s0f3", False)]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM
#exp.StartDpdkApp("tenant-green-1")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_Baseline_NoDPDK(cnx_server, config):
# ----------------------------------------#
exp.NicType = "mlx"
exp.isSRIOV = False
exp.IsDPDK = False
exp.OVS_PATH = exp.nodpdk_path
exp.Server_cnx = cnx_server
exp.scsName= "phy2vm2vm2phy_Baseline_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# ----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts = [
("enp3s0f0", "br0"),
("enp3s0f1", "br0")
]
exp.VirtualPorts = [
("1", "br0", "tenant-green-1"),
("2", "br0", "tenant-green-1")
]
exp.usedVms = [
("tenant-green-1", cpu_config[1][0], "4G")]
OvsCpu = cpu_config[2]
msg= GetScenarioSummary([], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
# ----------------------------------------#
exp.InitialConfig()
exp.ConfigOVS(exp.Server_cnx, "br0", " ", OvsCpu)
exp.VirPortConfig()
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip: 10.0.0.2 --> out= vnet1
+ (2) in: vnet2 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action = "vnet1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet2"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
#Tenant-Vm Bridge
#exp.SetBridging("tenant-green-1", exp.VirPortsMatch["1"], exp.VirPortsMatch["2"])
EmailNotify(msg, "is ready", logTimeStamp)
return True
# Not tested !!!
def phy2vm2vm2phy_Baseline_DPDK(cnx_server, config, dpdkMemory="1024,0"):
# ----------------------------------------#
exp.NicType = "mlx"
exp.isSRIOV = False
exp.IsDPDK = True
exp.OVS_PATH = exp.dpdk_path
exp.Server_cnx = cnx_server
exp.scsName= "phy2vm2vm2phy_Baseline_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# ----------------------------------------#
cpu_config= CpuAllocation(config)
exp.VirtualPorts = [
("1", "br0", "tenant-green-1"),
("2", "br0", "tenant-green-1")
]
exp.usedVms = [
("tenant-green-1", cpu_config[1][0], "4G")]
OvsCpu = cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][0]))]
else:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
# ----------------------------------------#
exp.InitialConfig(True)
exp.ConfigOVS(exp.Server_cnx, "br0", " ", OvsCpu, DpdkMem, DpdkCpu)
exp.VirPortConfig()
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip:10.0.0.2 --> out= vnet1
+ (2) in: vnet2 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action = "vnet1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet2"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
#Start DPDK App
#Change it To DPDK App
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#-------------------------------------------
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu1= cpu_config[2]
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False)]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu1, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu1)
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_Baseline_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= False
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_Baseline_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "br0"),
("enp3s0f1", "br0")
]
exp.VirtualPorts=[]
#no Vm is used in this topology
exp.usedVms=[]
#no Vfs ir virtual portes are needed in this topology
Ports=[]
OvsCpu= cpu_config[2]
msg= GetScenarioSummary([], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.ConfigOVS(exp.Server_cnx, "br0", Ports, OvsCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip:10.0.0.2 --> out= enp3s0f1
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
# Not tested !!!
def phy2phy_Baseline_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= False
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_Baseline_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.VirtualPorts=[]
#no Vm is used in this topology
exp.usedVms=[]
#no Vfs ir virtual portes are needed in this topology
Ports=[]
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][1]))]
else:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig(True)
exp.ConfigOVS(exp.Server_cnx, "br0", Ports, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip:10.0.0.2 --> out= enp3s0f1
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
###########################################################################################
####################################---Multi Tenant VMs---#################################
###########################################################################################
def phy2vm2vm2phy_SRIOV_MultiOvs_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_MultiOvs_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2"),
("enp3s1f6", "20", "off", "vswitch-vm-2"),
("enp3s0f6", "20", "off", "vswitch-vm-2"),
("enp3s0f7", "20", "off", "tenant-green-2"),
("enp3s1f7", "20", "off", "tenant-green-2")
]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("vswitch-vm-2", cpu_config[0][1], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
#----------------- OVS-VM_1------------------
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][1])),
("enp3s0f3", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][0])),
("enp3s0f3", True, str(DpdkCpu[1][0]))]
#----------------- OVS-VM_2------------------
if len(DpdkCpu[1]) >1:
OvsVmPorts2= [
("enp3s0f5", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][0])),
("enp3s1f6", True, str(DpdkCpu[1][1])),
("enp3s0f6", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts2= [
("enp3s0f5", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][0])),
("enp3s1f6", True, str(DpdkCpu[1][0])),
("enp3s0f6", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
if IsCpusIsolated:
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, DpdkMem, DpdkCpu)
else:
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, DpdkMem, [2,[0]])
'''
OVS Flow Rules for OVS-VM-1:
+ (1) in: enp3s0f2 with ip: 10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f5 with ip:10.0.0.3--> out= enp3s0f6, change Mac to enp3s0f7 mac
+ (2) in: enp3s1f6 --> out= enp3s1f5, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f7")+","+exp.VfsMatch["enp3s0f6"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f6"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM 1
#exp.StartDpdkApp("tenant-green-1")
#Start DPDK App in The tenantVM 2
#exp.StartDpdkApp("tenant-green-2")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2"),
("enp3s1f6", "20", "off", "vswitch-vm-2"),
("enp3s0f6", "20", "off", "vswitch-vm-2"),
("enp3s0f7", "20", "off", "tenant-green-2"),
("enp3s1f7", "20", "off", "tenant-green-2")
]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("vswitch-vm-2", cpu_config[0][1], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu= cpu_config[2]
#----------------- OVS-VM_1------------------
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False),
("enp3s1f3", False),
("enp3s0f3", False)]
#----------------- OVS-VM_2------------------
OvsVmPorts2= [
("enp3s0f5", False),
("enp3s1f5", False),
("enp3s1f6", False),
("enp3s0f6", False)]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu)
'''
OVS Flow Rules for OVS-VM-1:
+ (1) in: enp3s0f2 with ip: 10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f5 with ip: 10.0.0.3 --> out= enp3s0f6, change Mac to enp3s0f7 mac
+ (2) in: enp3s1f6 --> out= enp3s1f5, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f7")+","+exp.VfsMatch["enp3s0f6"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f6"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM 1
#exp.StartDpdkApp("tenant-green-1")
#Start DPDK App in The tenantVM 2
#exp.StartDpdkApp("tenant-green-2")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_Baseline_MultiTenant_NoDPDK(cnx_server, config):
# ----------------------------------------#
exp.NicType = "mlx"
exp.isSRIOV = False
exp.IsDPDK = False
exp.OVS_PATH = exp.nodpdk_path
exp.Server_cnx = cnx_server
exp.scsName= "phy2vm2vm2phy_Baseline_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# ----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts = [
("enp3s0f0", "br0"),
("enp3s0f1", "br0")
]
exp.VirtualPorts = [
("1", "br0", "tenant-green-1"),
("2", "br0", "tenant-green-1"),
("4", "br0", "tenant-green-2"),
("5", "br0", "tenant-green-2")
]
exp.usedVms = [
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu = cpu_config[2]
msg= GetScenarioSummary([], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
# ----------------------------------------#
exp.InitialConfig()
exp.ConfigOVS(exp.Server_cnx, "br0", " ", OvsCpu)
exp.VirPortConfig()
'''
OVS Flow Rules for Tenant-1:
+ (1) in: enp3s0f0 with dest-IP 10.0.0.2: --> out= vnet1
+ (2) in: vnet2 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action = "vnet1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet2"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for Tenant-2:
+ (1) in: enp3s0f0 with dest-IP 10.0.0.3: --> out= vnet4
+ (2) in: vnet5 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.3"
action = "vnet4"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet5"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
#Tenant-Vm Bridge
#exp.SetBridging("tenant-green-1", exp.VirPortsMatch["1"], exp.VirPortsMatch["2"])
#exp.SetBridging("tenant-green-2", exp.VirPortsMatch["4"], exp.VirPortsMatch["5"])
EmailNotify(msg, "is ready", logTimeStamp)
return True
# Not tested !!!
def phy2vm2vm2phy_Baseline_MultiTenant_DPDK(cnx_server, config, dpdkMemory="1024,0"):
# ----------------------------------------#
exp.NicType = "mlx"
exp.isSRIOV = False
exp.IsDPDK = True
exp.OVS_PATH = exp.dpdk_path
exp.Server_cnx = cnx_server
exp.scsName= "phy2vm2vm2phy_Baseline_MultiTenant_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# ----------------------------------------#
cpu_config= CpuAllocation(config)
exp.VirtualPorts = [
("1", "br0", "tenant-green-1"),
("2", "br0", "tenant-green-1"),
("4", "br0", "tenant-green-2"),
("5", "br0", "tenant-green-2")
]
exp.usedVms = [
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu = cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][1]))]
else:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
# ----------------------------------------#
exp.InitialConfig(True)
exp.ConfigOVS(exp.Server_cnx, "br0", " ", OvsCpu, DpdkMem, DpdkCpu)
exp.VirPortConfig()
'''
OVS Flow Rules for Tenant-1:
+ (1) in: enp3s0f0 , dest IP 10.0.0.2: --> out= vnet1
+ (2) in: vnet2 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action = "vnet1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet2"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for Tenant-2:
+ (1) in: enp3s0f0 from IP 10.0.0.3: --> out= vnet4
+ (2) in: vnet5 --> out= enp3s0f1
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.3"
action = "vnet4"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet5"
action = "enp3s0f1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
#Start DPDK App on both Tenant VMs
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_SRIOV_MultiTenant_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_MultiTenant_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s1f5", "20", "off", "vswitch-vm"),
("enp3s0f5", "20", "off", "vswitch-vm"),
("enp3s0f6", "20", "off", "tenant-green-2"),
("enp3s1f6", "20", "off", "tenant-green-2")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][0])),
("enp3s0f3", True, str(DpdkCpu[1][1])),
("enp3s1f5", True, str(DpdkCpu[1][1])),
("enp3s0f5", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][0])),
("enp3s0f3", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][0])),
("enp3s0f5", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules for tenant-1 :
+ (1) in: enp3s0f2 ,dest IP 10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for tenant-2 :
+ (1) in: enp3s0f2 ,dest IP 10.0.0.3 --> out= enp3s0f5, change Mac to enp3s0f6 mac
+ (2) in: enp3s1f5 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f6")+","+exp.VfsMatch["enp3s0f5"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f5"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM
#exp.StartDpdkApp("tenant-green-1")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_SRIOV_MultiTenant_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s1f5", "20", "off", "vswitch-vm"),
("enp3s0f5", "20", "off", "vswitch-vm"),
("enp3s0f6", "20", "off", "tenant-green-2"),
("enp3s1f6", "20", "off", "tenant-green-2")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False),
("enp3s1f3", False),
("enp3s0f3", False),
("enp3s1f5", False),
("enp3s0f5", False)]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
'''
OVS Flow Rules for tenant-1 :
+ (1) in: enp3s0f2 ,dest IP 10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for tenant-2 :
+ (1) in: enp3s0f2 ,dest IP 10.0.0.3 --> out= enp3s0f5, change Mac to enp3s0f6 mac
+ (2) in: enp3s1f5 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f6")+","+exp.VfsMatch["enp3s0f5"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f5"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM
#exp.StartDpdkApp("tenant-green-1")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_MultiOvs_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_MultiOvs_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("vswitch-vm-2", cpu_config[0][1], "4G")]
OvsCpu= cpu_config[2]
#----------------- OVS-VM_1------------------
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False)]
#----------------- OVS-VM_2------------------
OvsVmPorts2= [
("enp3s0f5", False),
("enp3s1f5", False)]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp )
Logs(msg,config, logTimeStamp)
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu)
'''
OVS Flow Rules for OVS-VM-1:
+ (1) in: enp3s0f2 with ip: 10.0.0.2 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f5 with ip: 10.0.0.3 --> out= enp3s1f5, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_MultiOvs_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_MultiOvs_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("vswitch-vm-2", cpu_config[0][1], "4G")]
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
#----------------- OVS-VM_1------------------
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0]))]
#----------------- OVS-VM_2------------------
if len(DpdkCpu[1]) >1:
OvsVmPorts2= [
("enp3s0f5", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts2= [
("enp3s0f5", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#-------------------------------------------
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
if IsCpusIsolated:
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, DpdkMem, DpdkCpu)
else:
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, DpdkMem, [2,[0]])
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2--> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f3 with ip:10.0.0.3--> out= enp3s1f3, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_Baseline_MultiTenant_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= False
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_Baseline_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "br0"),
("enp3s0f1", "br0")
]
exp.VirtualPorts=[]
#no Vm is used in this topology
exp.usedVms=[]
#no Vfs ir virtual portes are needed in this topology
Ports=[]
OvsCpu= cpu_config[2]
msg= GetScenarioSummary([], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.ConfigOVS(exp.Server_cnx, "br0", Ports, OvsCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip 10.0.0.2 --> out= enp3s0f1
+ (2) in: enp3s0f0 with ip 10.0.0.3 --> out= enp3s0f1
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.3"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
# Not tested !!!
def phy2phy_Baseline_MultiTenant_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= False
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_Baseline_MultiTenant_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.VirtualPorts=[]
#no Vm is used in this topology
exp.usedVms=[]
#no Vfs ir virtual portes are needed in this topology
Ports=[]
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][1]))]
else:
exp.PhyPorts= [
("enp3s0f0", "br0", True, str(DpdkCpu[1][0])),
("enp3s0f1", "br0", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig(True)
exp.ConfigOVS(exp.Server_cnx, "br0", Ports, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f0 with ip 10.0.0.2 --> out= enp3s0f1
+ (2) in: enp3s0f0 with ip 10.0.0.3 --> out= enp3s0f1
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port=enp3s0f0,ip,nw_dst=10.0.0.3"
action="enp3s0f1"
exp.addFlowRule(exp.Server_cnx , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_MultiTenant_DPDK(cnx_server, config, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_MultiTenant_DPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
DpdkCpu= cpu_config[3]
DpdkMem= dpdkMemory
if len(DpdkCpu[1]) >1:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][1]))]
else:
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#-------------------------------------------
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules:
+ (1) in: enp3s0f2 with ip:10.0.0.2--> out= enp3s1f2, change Mac to 00:00:00:00:30:56
+ (2) in: enp3s0f2 with ip:10.0.0.3--> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2phy_SRIOV_MultiTenant_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2phy_SRIOV_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu1= cpu_config[2]
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False)]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu1, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu1)
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
EmailNotify(msg, "is ready", logTimeStamp)
return True
###########################################################################################
###################---Custom Scenarios (No CPU array is needed)---#########################
###########################################################################################
def phy2vm2vm2phy_SRIOV_MultiOvs_DPDK_Custom(cnx_server, dpdkMemory="1024,0"):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= True
exp.OVS_PATH= exp.dpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_MultiOvs_DPDK_Custom"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
exp.HOST_CPU="custom"
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2"),
("enp3s1f6", "20", "off", "vswitch-vm-2"),
("enp3s0f6", "20", "off", "vswitch-vm-2"),
("enp3s0f7", "20", "off", "tenant-green-2"),
("enp3s1f7", "20", "off", "tenant-green-2")
]
exp.usedVms=[
("vswitch-vm", [4,5], "4G"),
("tenant-green-1", [0,1], "4G"),
("vswitch-vm-2", [6,7], "4G"),
("tenant-green-2",[2,3], "4G")]
OvsCpu= ["0","0"]
DpdkCpu=[2,[1]]
DpdkMem= dpdkMemory
#----------------- OVS-VM_1------------------
OvsVmPorts1= [
("enp3s0f2", True, str(DpdkCpu[1][0])),
("enp3s1f2", True, str(DpdkCpu[1][0])),
("enp3s1f3", True, str(DpdkCpu[1][0])),
("enp3s0f3", True, str(DpdkCpu[1][0]))]
#----------------- OVS-VM_2------------------
OvsVmPorts2= [
("enp3s0f5", True, str(DpdkCpu[1][0])),
("enp3s1f5", True, str(DpdkCpu[1][0])),
("enp3s1f6", True, str(DpdkCpu[1][0])),
("enp3s0f6", True, str(DpdkCpu[1][0]))]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, DpdkCpu, DpdkMem)
EmailNotify(msg, "is beeing prepared", logTimeStamp)
# Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, DpdkMem, DpdkCpu)
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, DpdkMem, DpdkCpu)
'''
OVS Flow Rules for OVS-VM-1:
+ (1) in: enp3s0f2 with ip: 10.0.0.2--> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:16
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f5 with ip: 10.0.0.3 --> out= enp3s0f6, change Mac to enp3s0f7 mac
+ (2) in: enp3s1f6 --> out= enp3s1f5, change Mac to 00:00:00:00:30:16
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f7")+","+exp.VfsMatch["enp3s0f6"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f6"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM 1
#exp.StartDpdkApp("tenant-green-1")
#Start DPDK App in The tenantVM 2
#exp.StartDpdkApp("tenant-green-2")
EmailNotify(msg, "is ready", logTimeStamp)
return True
def phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK_Custom(cnx_server):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "phy2vm2vm2phy_SRIOV_NoDPDK_MultiOvs_Custom"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
exp.HOST_CPU="custom"
exp.PhyPorts= [
("enp3s0f0", "8"),
("enp3s0f1", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s1f2", "0", "off", "vswitch-vm"),
("enp3s1f3", "10", "off", "vswitch-vm"),
("enp3s0f3", "10", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "tenant-green-1"),
("enp3s1f4", "10", "off", "tenant-green-1"),
("enp3s0f5", "0", "off", "vswitch-vm-2"),
("enp3s1f5", "0", "off", "vswitch-vm-2"),
("enp3s1f6", "20", "off", "vswitch-vm-2"),
("enp3s0f6", "20", "off", "vswitch-vm-2"),
("enp3s0f7", "20", "off", "tenant-green-2"),
("enp3s1f7", "20", "off", "tenant-green-2")
]
exp.usedVms=[
("vswitch-vm", [4, 5], "4G"),
("tenant-green-1", [0, 1], "4G"),
("vswitch-vm-2", [6, 7], "4G"),
("tenant-green-2",[2, 3], "4G")]
OvsCpu= ["0,1","0,1"]
#----------------- OVS-VM_1------------------
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s1f2", False),
("enp3s1f3", False),
("enp3s0f3", False)]
#----------------- OVS-VM_2------------------
OvsVmPorts2= [
("enp3s0f5", False),
("enp3s1f5", False),
("enp3s1f6", False),
("enp3s0f6", False)]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
# Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu, [], "")
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu, [], "")
'''
OVS Flow Rules for OVS-VM-1:
+ (1) in: enp3s0f2 with ip: 10.0.0.2 --> out= enp3s0f3, change Mac to enp3s0f4 mac
+ (2) in: enp3s1f3 --> out= enp3s1f2, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f4")+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f3"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f2"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
+ (1) in: enp3s0f5 with ip: 10.0.0.3 --> out= enp3s0f6, change Mac to enp3s0f7 mac
+ (2) in: enp3s1f6 --> out= enp3s1f5, change Mac to 00:00:00:00:30:56
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f7")+","+exp.VfsMatch["enp3s0f6"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1f6"]
action="mod_dl_dst:"+outDestMac+","+exp.VfsMatch["enp3s1f5"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
#Start DPDK App in The tenantVM 1
#exp.StartDpdkApp("tenant-green-1")
#Start DPDK App in The tenantVM 2
#exp.StartDpdkApp("tenant-green-2")
EmailNotify(msg, "is ready", logTimeStamp)
return True
########################################### Benchmark Scenarios ########################################
BenIntrMac= "00:0f:53:5b:b7:e1"
BenIntr="ens2f1"
BenServer= exp.cnx_dosse
def bench_phy2vm2vm2phy_SRIOV_MultiTenant_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "bench_phy2vm2vm2phy_SRIOV_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s0f3", "0", "off", "vswitch-vm"),
("enp3s0f4", "10", "off", "vswitch-vm"),
("enp3s0f5", "20", "off", "vswitch-vm"),
("enp3s0f6", "10", "off", "tenant-green-1"),
("enp3s0f7", "20", "off", "tenant-green-2")]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
#----------------- OVS-VM_1------------------
OvsCpu= cpu_config[2]
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s0f3", False),
("enp3s0f4", False),
("enp3s0f5", False)]
msg= GetScenarioSummary([OvsVmPorts1], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.RebootServer(BenServer, wait=False)
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
'''
OVS Flow Rules for tenant-1 :
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f6")+","+exp.VfsMatch["enp3s0f4"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f4"]
action="mod_dl_dst:"+BenIntrMac+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for tenant-2 :
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f7")+","+exp.VfsMatch["enp3s0f5"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f5"]
action="mod_dl_dst:"+BenIntrMac+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
###############################################
exp.setCnxLimit(BenServer, 4096)
exp.SetInt(BenServer,BenIntr,"up")
exp.SetIpInt(BenServer, BenIntr, "10.0.0.1/24")
exp.SetArpEntry(BenServer,"10.0.0.3", exp.GetMacByVf("enp3s0f2"), BenIntr)
exp.SetArpEntry(BenServer,"10.0.0.2", exp.GetMacByVf("enp3s0f2"), BenIntr)
###############################################
exp.SetIpInt(exp.getVmCnx("tenant-green-1"), "ens8", "10.0.0.2/24")
exp.SetIpInt(exp.getVmCnx("tenant-green-2"), "ens8", "10.0.0.3/24")
exp.SetArpEntry(exp.getVmCnx("tenant-green-1"),"10.0.0.1", exp.GetMacByVf("enp3s0f4"), exp.VfsMatch["enp3s0f6"])
exp.SetArpEntry(exp.getVmCnx("tenant-green-2"),"10.0.0.1", exp.GetMacByVf("enp3s0f5"), exp.VfsMatch["enp3s0f7"])
################################################
EmailNotify(msg, "is ready", logTimeStamp)
return True
def bench_phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK(cnx_server, config):
#----------------------------------------#
exp.NicType= "mlx"
exp.isSRIOV= True
exp.IsDPDK= False
exp.OVS_PATH= exp.nodpdk_path
exp.Server_cnx= cnx_server
exp.scsName= "bench_phy2vm2vm2phy_SRIOV_MultiOvs_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
#----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts= [
("enp3s0f0", "8")
]
exp.MyVfs= [
("enp3s0f2", "0", "off", "vswitch-vm"),
("enp3s0f3", "0", "off", "vswitch-vm"),
("enp3s0f4","10", "off", "vswitch-vm"),
("enp3s0f5","10", "off", "tenant-green-1"),
("enp3s0f6", "0", "off", "vswitch-vm-2"),
("enp3s0f7", "0", "off", "vswitch-vm-2"),
("enp3s1", "20", "off", "vswitch-vm-2"),
("enp3s1f1","20", "off", "tenant-green-2")
]
exp.usedVms=[
("vswitch-vm", cpu_config[0][0], "4G"),
("tenant-green-1", cpu_config[1][0], "4G"),
("vswitch-vm-2", cpu_config[0][1], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu= cpu_config[2]
#----------------- OVS-VM_1------------------
OvsVmPorts1= [
("enp3s0f2", False),
("enp3s0f3", False),
("enp3s0f4", False)]
#----------------- OVS-VM_2------------------
OvsVmPorts2= [
("enp3s0f6", False),
("enp3s0f7", False),
("enp3s1", False)]
msg= GetScenarioSummary([OvsVmPorts1, OvsVmPorts2], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
#----------------------------------------#
exp.RebootServer(BenServer, wait=False)
exp.InitialConfig()
exp.Vfsconfig()
exp.ConfigOVS("vswitch-vm", "br0", OvsVmPorts1, OvsCpu)
exp.ConfigOVS("vswitch-vm-2", "br0", OvsVmPorts2, OvsCpu)
'''
OVS Flow Rules for OVS-VM-1:
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f2"]+",ip,nw_dst=10.0.0.2"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s0f5")+","+exp.VfsMatch["enp3s0f4"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f4"]
action="mod_dl_dst:"+BenIntrMac+","+exp.VfsMatch["enp3s0f3"]
exp.addFlowRule("vswitch-vm" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm", exp.OVS_PATH,"br0")
'''
OVS Flow Rules for OVS-VM-2:
'''
#Flow Rules (1)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s0f6"]+",ip,nw_dst=10.0.0.3"
action="mod_dl_dst:"+exp.GetMacByVf("enp3s1f1")+","+exp.VfsMatch["enp3s1"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#Flow Rules (2)
#---------------------------------------------------------
match="in_port="+exp.VfsMatch["enp3s1"]
action="mod_dl_dst:"+BenIntrMac+","+exp.VfsMatch["enp3s0f7"]
exp.addFlowRule("vswitch-vm-2" , exp.OVS_PATH, "br0", match, action)
#show Flow rules of br0
exp.showFlowRules("vswitch-vm-2", exp.OVS_PATH,"br0")
###############################################
exp.setCnxLimit(BenServer, 4096)
exp.SetInt(BenServer,BenIntr,"up")
exp.SetIpInt(BenServer, BenIntr, "10.0.0.1/24")
exp.SetArpEntry(BenServer,"10.0.0.2", exp.GetMacByVf("enp3s0f2"), BenIntr)
exp.SetArpEntry(BenServer,"10.0.0.3", exp.GetMacByVf("enp3s0f6"), BenIntr)
###############################################
exp.SetIpInt(exp.getVmCnx("tenant-green-1"), "ens8", "10.0.0.2/24")
exp.SetIpInt(exp.getVmCnx("tenant-green-2"), "ens8", "10.0.0.3/24")
exp.SetArpEntry(exp.getVmCnx("tenant-green-1"),"10.0.0.1", exp.GetMacByVf("enp3s0f4"), exp.VfsMatch["enp3s0f5"])
exp.SetArpEntry(exp.getVmCnx("tenant-green-2"),"10.0.0.1", exp.GetMacByVf("enp3s1"), exp.VfsMatch["enp3s1f1"])
################################################
EmailNotify(msg, "is ready", logTimeStamp)
return True
def bench_phy2vm2vm2phy_Baseline_MultiTenant_NoDPDK(cnx_server, config):
# ----------------------------------------#
exp.NicType = "mlx"
exp.isSRIOV = False
exp.IsDPDK = False
exp.OVS_PATH = exp.nodpdk_path
exp.Server_cnx = cnx_server
exp.scsName= "bench_phy2vm2vm2phy_Baseline_MultiTenant_NoDPDK"
logTimeStamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
# ----------------------------------------#
cpu_config= CpuAllocation(config)
exp.PhyPorts = [
("enp3s0f0", "br0")
]
exp.VirtualPorts = [
("1", "br0", "tenant-green-1"),
("3", "br0", "tenant-green-2")
]
exp.usedVms = [
("tenant-green-1", cpu_config[1][0], "4G"),
("tenant-green-2", cpu_config[1][1], "4G")]
OvsCpu = cpu_config[2]
msg= GetScenarioSummary([], OvsCpu, [], "")
EmailNotify(msg, "is beeing prepared", logTimeStamp)
Logs(msg,config, logTimeStamp)
# ----------------------------------------#
exp.RebootServer(BenServer, wait=False)
exp.InitialConfig()
exp.ConfigOVS(exp.Server_cnx, "br0", " ", OvsCpu)
exp.VirPortConfig()
'''
OVS Flow Rules for Tenant-1:
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.2"
action = "vnet1"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet1"
action = "enp3s0f0"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
'''
OVS Flow Rules for Tenant-2:
'''
# Flow Rules (1)
# ---------------------------------------------------------
match = "in_port=enp3s0f0,ip,nw_dst=10.0.0.3"
action = "vnet3"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# Flow Rules (2)
# ---------------------------------------------------------
match = "in_port=vnet3"
action = "enp3s0f0"
exp.addFlowRule(exp.Server_cnx, exp.OVS_PATH, "br0", match, action)
# show Flow rules of br0
exp.showFlowRules(exp.Server_cnx, exp.OVS_PATH, "br0")
###############################################
exp.setCnxLimit(BenServer, 4096)
exp.SetInt(BenServer,BenIntr,"up")
exp.SetIpInt(BenServer, BenIntr, "10.0.0.1/24")
exp.SetArpEntry(BenServer,"10.0.0.2", exp.GenerateMacID("1"), BenIntr)
exp.SetArpEntry(BenServer,"10.0.0.3", exp.GenerateMacID("3"), BenIntr)
###############################################
exp.SetIpInt(exp.getVmCnx("tenant-green-1"), "ens8", "10.0.0.2/24")
exp.SetIpInt(exp.getVmCnx("tenant-green-2"), "ens8", "10.0.0.3/24")
exp.SetArpEntry(exp.getVmCnx("tenant-green-1"),"10.0.0.1", BenIntrMac, "ens8")
exp.SetArpEntry(exp.getVmCnx("tenant-green-2"),"10.0.0.1", BenIntrMac, "ens8")
################################################
EmailNotify(msg, "is ready", logTimeStamp)
return True
| 35.063437
| 123
| 0.493684
| 9,656
| 91,200
| 4.572908
| 0.035729
| 0.040153
| 0.028309
| 0.029441
| 0.899266
| 0.884727
| 0.872928
| 0.861921
| 0.85746
| 0.853723
| 0
| 0.060402
| 0.246645
| 91,200
| 2,600
| 124
| 35.076923
| 0.582278
| 0.133531
| 0
| 0.812457
| 0
| 0
| 0.192398
| 0.021459
| 0
| 0
| 0
| 0
| 0
| 1
| 0.020534
| false
| 0.001369
| 0.00616
| 0
| 0.045859
| 0.000684
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
054d06df525a0202e695c2c4e8ef8cd4966c35f1
| 7,000
|
py
|
Python
|
CodigoPython.py
|
JuanMPerezM/Proyecto-Final-POO
|
79f3d874603f544d3bd186a6189ae04758330832
|
[
"MIT"
] | null | null | null |
CodigoPython.py
|
JuanMPerezM/Proyecto-Final-POO
|
79f3d874603f544d3bd186a6189ae04758330832
|
[
"MIT"
] | null | null | null |
CodigoPython.py
|
JuanMPerezM/Proyecto-Final-POO
|
79f3d874603f544d3bd186a6189ae04758330832
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import random
c=0
k=0
bplo=0
ihi=0
ilo=0
aux=0
resta=0
valores=int(input("ingrese la cantidad de valores que va a ingresar: "))
for i in range (1, valores+1):
valorpp=float(input("ingrese el varlor obtenido:"))
if valorpp>0 and valorpp<=55:
print (f"la calidad del aire con un total de {valorpp} es muy buena ")
bplo=round(random.uniform(0,valorpp - 0.001),3)
print("El valor de BpLo es: ", bplo)
ihi=50
ilo=0
k= ihi - ilo
resta= round((valorpp - bplo),3)
print("El valor de la resta es: ",resta)
k= round((k / resta),2)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+0.001,0.070),3)
print("El valor redondeado para la concentración del contaminante es: ", c)
print("apartado particulas menores a 10 micrometros")
valorpp= round(random.uniform(1,40))
print("El valor de bphi es: ", valorpp)
bplo=round(random.uniform(0,valorpp - 1))
print("El valor de bplo es: ", bplo)
k= ihi - ilo
resta= round((valorpp - bplo))
print("El valor de la resta es: ",resta)
k= round((k / resta),3)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+1,40))
print("El valor redondeado para la concentración del contaminante es: ", c)
indice = k * (c - bplo)
indice= round((indice + ilo))
print("El indice de contaminación en Partículas Menores a 10 micrómetros (PM10) es: ", indice)
if valorpp>=51 and valorpp<=110:
bplo=round(random.uniform(0.071,valorpp - 0.001),3)
print("El valor de BpLo es: ", bplo)
ihi=100
ilo=51
k= ihi - ilo
resta= round((valorpp - bplo),3)
print("El valor de la resta es: ",resta)
k= round((k / resta),2)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+0.001,0.095),3)
print("El valor redondeado para la concentración del contaminante es: ", c)
print("apartado particulas menores a 10 micrometros")
valorpp= round(random.uniform(41,75))
print("El valor de bphi es: ", valorpp)
bplo=round(random.uniform(40,valorpp - 1))
print("El valor de bplo es: ", bplo)
k= ihi - ilo
resta= round((valorpp - bplo))
print("El valor de la resta es: ",resta)
k= round((k / resta),3)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+1,75))
print("El valor redondeado para la concentración del contaminante es: ", c)
indice = k * (c - bplo)
indice= round((indice + ilo))
print("El indice de contaminación en Partículas Menores a 10 micrómetros (PM10) es: ", indice)
print (f"la calidad del aire con un total de {valorpp} es regular ")
if valorpp>=111 and valorpp<=165:
bplo=round(random.uniform(0.096,valorpp - 0.001),3)
print("El valor de BpLo es: ", bplo)
ihi=150
ilo=101
k= ihi - ilo
resta= round((valorpp - bplo),3)
print("El valor de la resta es: ",resta)
k= round((k / resta),2)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+0.001,0.154),3)
print("El valor redondeado para la concentración del contaminante es: ", c)
print("\n")
print("\n")
print("apartado particulas menores a 10 micrometros")
valorpp= round(random.uniform(77,214))
print("El valor de bphi es: ", valorpp)
bplo=round(random.uniform(76,valorpp - 1))
print("El valor de bplo es: ", bplo)
k= ihi - ilo
resta= round((valorpp - bplo))
print("El valor de la resta es: ",resta)
k= round((k / resta),3)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+1,214))
print("El valor redondeado para la concentración del contaminante es: ", c)
indice = k * (c - bplo)
indice= round((indice + ilo))
print("El indice de contaminación en Partículas Menores a 10 micrómetros (PM10) es: ", indice)
print (f"la calidad del aire con un total de {valorpp} es mala ")
if valorpp>=166 and valorpp<=220:
bplo=round(random.uniform(0.155,valorpp - 0.001),3)
print("El valor de BpLo es: ", bplo)
ihi=200
ilo=151
k= ihi - ilo
resta= round((valorpp - bplo),3)
print("El valor de la resta es: ",resta)
k= round((k / resta),2)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+0.001,0.204),3)
print("El valor redondeado para la concentración del contaminante es: ", c)
print("\n")
print("\n")
print("apartado particulas menores a 10 micrometros")
valorpp= round(random.uniform(216,354))
print("El valor de bphi es: ", valorpp)
bplo=round(random.uniform(215,valorpp - 1))
print("El valor de bplo es: ", bplo)
k= ihi - ilo
resta= round((valorpp - bplo))
print("El valor de la resta es: ",resta)
k= round((k / resta),3)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+1,354))
print("El valor redondeado para la concentración del contaminante es: ", c)
indice = k * (c - bplo)
indice= round((indice + ilo))
print("El indice de contaminación en Partículas Menores a 10 micrómetros (PM10) es: ", indice)
print (f"la calidad del aire con un total de {valorpp} es muy mala ")
if valorpp>=221 and valorpp<=550:
bplo=round(random.uniform(0.205,valorpp - 0.001),3)
print("El valor de BpLo es: ", bplo)
ihi=200
ilo=151
k= ihi - ilo
resta= round((valorpp - bplo),3)
print("El valor de la resta es: ",resta)
k= round((k / resta),2)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+0.001,0.604),3)
print("El valor redondeado para la concentración del contaminante es: ", c)
print (f"la calidad del aire con un total de {valorpp} es extremadamente mala ")
print("\n")
print("\n")
print("apartado particulas menores a 10 micrometros")
valorpp= round(random.uniform(356,604))
print("El valor de bphi es: ", valorpp)
bplo=round(random.uniform(355,valorpp - 1))
print("El valor de bplo es: ", bplo)
k= ihi - ilo
resta= round((valorpp - bplo))
print("El valor de la resta es: ",resta)
k= round((k / resta),3)
print("El valor de K es: ",k)
c=round(random.uniform(bplo+1,604))
print("El valor redondeado para la concentración del contaminante es: ", c)
indice = k * (c - bplo)
indice= round((indice + ilo))
print("El indice de contaminación en Partículas Menores a 10 micrómetros (PM10) es: ", indice)
| 39.772727
| 102
| 0.573
| 1,009
| 7,000
| 3.975223
| 0.107037
| 0.08726
| 0.13463
| 0.122164
| 0.896535
| 0.872351
| 0.866367
| 0.866367
| 0.866367
| 0.866367
| 0
| 0.051366
| 0.299143
| 7,000
| 175
| 103
| 40
| 0.766205
| 0.003
| 0
| 0.681529
| 0
| 0
| 0.339114
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.006369
| 0
| 0.006369
| 0.420382
| 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
| 1
|
0
| 7
|
058cf09aa2a1c6148d381ae072a5ded91f8789a0
| 12,767
|
py
|
Python
|
tools/page_finder/login_page_scanner.py
|
onurrozkaan/interrogator
|
799613bdb39cfdf00ad19381a8121be2a7291c2b
|
[
"MIT"
] | 5
|
2019-03-09T09:45:58.000Z
|
2021-06-27T10:18:24.000Z
|
tools/page_finder/login_page_scanner.py
|
ozkanonur/interrogator
|
799613bdb39cfdf00ad19381a8121be2a7291c2b
|
[
"MIT"
] | null | null | null |
tools/page_finder/login_page_scanner.py
|
ozkanonur/interrogator
|
799613bdb39cfdf00ad19381a8121be2a7291c2b
|
[
"MIT"
] | null | null | null |
import http.client
import socket
import sys
from assets.styling.colors import *
from assets.dork.config import *
def login_scanner():
try:
result_count = 0
page_count = 0
try:
message = sys.stdout.write( red + "Enter URL to scan Login page: ")
domain = input()
domain = domain.replace("http://", "")
print("\r")
print(purple + ("\t Checking website " + domain + "..."))
conn = http.client.HTTPConnection(domain)
conn.connect()
except (http.client.NotConnected, socket.error) as Exit:
print("\r")
sys.stdout.write(red + "\t ERROR! Make sure the URL or Internet Connection correctly works.")
input()
exit()
print("\r")
print("Select one of the following technologies:")
print("\r")
print(blue + "1) Website based with PHP")
print(blue + "2) Website based with ASP")
print(blue + "3) Website based with CFM")
print(blue + "4) Website based with JS")
print(blue + "5) Website based with CGI")
print(blue + "6) Website based with BRF")
print(blue + "7) All in one (Might take long time)")
print(blue + "8) Deep scan (Might take 'very long' time)")
print("\r")
code = eval(input("> "))
if code == 1:
print(("\t [+] Processing on " + domain))
for admin in php:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 2:
print(("\t [+] Processing on " + domain))
for admin in asp:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 3:
print(("\t [+] Processing on " + domain))
for admin in cfm:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 4:
print(("\t [+] Processing on " + domain))
for admin in js:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 5:
print(("\t [+] Processing on " + domain))
for admin in cgi:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 6:
print(("\t [+] Processing on " + domain))
for admin in brf:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 7:
print(("\t [+] Processing on " + domain))
for admin in all_together:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
if code == 8:
print(("\t [+] Processing on " + domain))
for admin in big_wordlist:
admin = admin.replace("\n", "")
admin = "/" + admin
host = domain + admin
print(("\t [#] Loading for > " + host))
connection = http.client.HTTPConnection(domain)
connection.request("GET", admin)
response = connection.getresponse()
page_count = page_count + 1
if response.status == 200:
result_count = result_count + 1
print("%s %s" % ("\n\n>>>" + host,
"1 page detected, might be admin page."))
input("Press enter to continue scanning.\n")
elif response.status == 404:
page_count = page_count
elif response.status == 302:
page_count = page_count
else:
page_count = page_count
connection.close()
print(yellow + "\n\n*****- Scanning is completed -***** \n")
print(result_count, green + " Admin Page Found !")
print("\r")
print(green + "Count of scanned pages: ", page_count)
print("\r")
sys.stdout.write(red + "Press Enter to Exit")
input()
elif code > 8:
print("\r")
print("Unknown choise. Please select one of the above options.")
except (KeyboardInterrupt, SystemExit):
print(yellow + "\n\t Session goes down. See ya next time!")
| 43.872852
| 105
| 0.460249
| 1,244
| 12,767
| 4.642283
| 0.106109
| 0.113766
| 0.072035
| 0.09974
| 0.841039
| 0.841039
| 0.837056
| 0.837056
| 0.789957
| 0.789957
| 0
| 0.015583
| 0.421947
| 12,767
| 290
| 106
| 44.024138
| 0.766938
| 0
| 0
| 0.832143
| 0
| 0
| 0.189943
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.003571
| false
| 0
| 0.017857
| 0
| 0.021429
| 0.292857
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
5530c0e9499475d8836884e1b3e6ca5c39be7eb1
| 2,244
|
py
|
Python
|
darknight/test/process/test_remove_other_elements.py
|
xuliang2019/darknight
|
4c89a4d584d050c320eab6028971948a45314e17
|
[
"MIT"
] | 3
|
2019-11-20T22:54:39.000Z
|
2020-05-17T08:58:29.000Z
|
darknight/test/process/test_remove_other_elements.py
|
xuliang2019/darknight
|
4c89a4d584d050c320eab6028971948a45314e17
|
[
"MIT"
] | 10
|
2020-03-24T18:15:10.000Z
|
2022-03-12T00:16:34.000Z
|
darknight/test/process/test_remove_other_elements.py
|
xuliang2019/darknight
|
4c89a4d584d050c320eab6028971948a45314e17
|
[
"MIT"
] | 1
|
2020-01-12T05:08:40.000Z
|
2020-01-12T05:08:40.000Z
|
# Import
import pandas as pd
import numpy as np
from rdkit.Chem import AllChem as Chem
from rdkit.Chem import PandasTools,Draw
import math
import openbabel
import darkchem
import sys
sys.path.append("../..")
import process
# Define testing function
def test_remove_other_elements():
# Import some data to use
data = pd.read_excel('test_remove_other_elements.xlsx')
# Operate the function wihch is being tested
remove_other_elements = process.remove_other_elements(data)
# Assert several arguments
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'F']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'l'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'B']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'r'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'I']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'i'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'M']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'g'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'L']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'b'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'a']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'e'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'K']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'V'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'd']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'R'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'Z']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'G'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'A']) == len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'Y'])
assert len(remove_other_elements.loc[remove_other_elements['Reactants'] == 'u']) == 0
return 0
| 64.114286
| 161
| 0.755348
| 299
| 2,244
| 5.351171
| 0.210702
| 0.31625
| 0.54625
| 0.28875
| 0.744375
| 0.744375
| 0.744375
| 0.744375
| 0.744375
| 0.71125
| 0
| 0.000989
| 0.098485
| 2,244
| 34
| 162
| 66
| 0.789916
| 0.054367
| 0
| 0
| 0
| 0
| 0.116257
| 0.01465
| 0
| 0
| 0
| 0
| 0.44
| 1
| 0.04
| false
| 0
| 0.36
| 0
| 0.44
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 10
|
5530f9033b705ee53bcf47bf6ec02e12f6cdb981
| 14,079
|
py
|
Python
|
tests/test_azure_vault_settings.py
|
kewtree1408/pydantic-azure-secrets
|
e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c
|
[
"MIT"
] | 5
|
2021-02-17T08:27:12.000Z
|
2021-12-21T19:43:04.000Z
|
tests/test_azure_vault_settings.py
|
kewtree1408/pydantic-azure-secrets
|
e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c
|
[
"MIT"
] | null | null | null |
tests/test_azure_vault_settings.py
|
kewtree1408/pydantic-azure-secrets
|
e34e44d9fa90b9582ac80be3d2ab0122ec4c2b6c
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
from typing import Any
from unittest import mock
import pydantic
import pytest
from pathlib import Path
from pydantic_azure_secrets import AzureVaultSettings
PWD = Path(__file__).parent.absolute()
class SettingsENVs(AzureVaultSettings):
"""
Example of settings with environment variables
"""
field1: str = "default_value1"
field2: str = "default_value2"
class Config:
env_prefix = "test_prefix_"
class SettingsDotEnv(AzureVaultSettings):
"""
Example of settings with environment variables and dot-env files
"""
field1: str = "default_value1"
field2: str = "default_value2"
class Config:
env_prefix = "test_prefix_"
env_file = PWD / "test_data/test.env"
class SettingsDotEnvMissingFields(AzureVaultSettings):
"""
Example of settings with environment variables and dot-env files,
but some fields are missing
"""
test_prefix_field1: str
field_missing: str
class Config:
env_file = PWD / "test_data/test.env"
class SettingsSecretDir(AzureVaultSettings):
"""
Example of settings with environment variables, dot-env files
and secret directory
"""
field1: str = "default_value1"
field2: str = "default_value2"
class Config:
env_prefix = "test_prefix_"
env_file = "test_not_existed.env"
secrets_dir = PWD / "test_data/secret_dir"
class SettingsAzureKV(AzureVaultSettings):
"""
Example of settings with environment variables, dot-env files,
secret directory and azure keyvault path
"""
field1: Any = "default_value1"
field2: Any = "default_value2"
class Config:
env_prefix = "test_prefix_"
env_file = "test_not_existed.env"
# if secrets_dir doesn't exist then exception is raise by pydantic
secrets_dir = "/var/tmp"
azure_keyvault = "https://pydenticlib-test.vault.azure.net/"
class SettingsAzureMissingFields(AzureVaultSettings):
"""
Example of settings with environment variables, dot-env files,
secret directory and azure keyvault path,
but some values are missing in KeyVault
"""
field: str = "default_value"
# the same field was defined in SettingsAzureKV
test_prefix_field1: str
field_missing: str
class Config:
env_file = "test_not_existed.env"
secrets_dir = "/var/tmp"
azure_keyvault = "https://pydenticlib-test.vault.azure.net/"
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_very_simple(secret_client_mock, creds_mock):
settings = SettingsENVs()
assert settings.field1 == "default_value1"
assert settings.field2 == "default_value2"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_very_simple_environ(secret_client_mock, creds_mock, monkeypatch):
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_prefix_field2", "value2_from_environment", prepend=False)
settings = SettingsENVs()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_very_simple_dotenv(secret_client_mock, creds_mock, monkeypatch):
settings = SettingsDotEnv()
assert settings.field1 == "value1_from_test.env-file"
assert settings.field2 == "value2_from_test.env-file"
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_prefix_field2", "value2_from_environment", prepend=False)
settings = SettingsDotEnv()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_dotenv_file_init(secret_client_mock, creds_mock, monkeypatch):
settings = SettingsDotEnv()
assert settings.field1 == "value1_from_test.env-file"
assert settings.field2 == "value2_from_test.env-file"
settings = SettingsDotEnv(_env_file=PWD / "test_data/.dotenvfile")
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsDotEnv(
_env_file=PWD / "test_data/.dotenvfile", _env_file_encoding="utf-8"
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_PREFIX_field2", "value2_from_environment", prepend=False)
settings = SettingsDotEnv()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_secret_dir(secret_client_mock, creds_mock, monkeypatch):
settings = SettingsSecretDir()
assert settings.field1 == "value1_from_file_inside_secret_directory"
assert settings.field2 == "value2_from_file_inside_secret_directory"
settings = SettingsSecretDir(_env_file=PWD / "test_data/.dotenvfile")
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsSecretDir(
_env_file=PWD / "test_data/.dotenvfile", _env_file_encoding="utf-8"
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_PREFIX_field2", "value2_from_environment", prepend=False)
settings = SettingsSecretDir()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_secret_dir_init(secret_client_mock, creds_mock, monkeypatch):
settings = SettingsSecretDir()
show_the_dir = PWD / "test_data/.secret_dir_init"
assert settings.field1 == "value1_from_file_inside_secret_directory"
assert settings.field2 == "value2_from_file_inside_secret_directory"
settings = SettingsSecretDir(_env_file=PWD / "test_data/.dotenvfile")
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsSecretDir(
_env_file=PWD / "test_data/.dotenvfile", _env_file_encoding="utf-8"
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsSecretDir(_secrets_dir=PWD / "test_data/.secret_dir_init")
show_the_dir = PWD / "test_data/.secret_dir_init"
assert show_the_dir is not None
assert settings.field1 == "value1_from_.secret_dir_init"
assert settings.field2 == "value2_from_.secret_dir_init"
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_PREFIX_field2", "value2_from_environment", prepend=False)
settings = SettingsSecretDir()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 0
assert creds_mock.call_count == 0
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_secret_dir_with_missing_fields(secret_client_mock, creds_mock, monkeypatch):
with pytest.raises(pydantic.error_wrappers.ValidationError):
settings = SettingsDotEnvMissingFields()
monkeypatch.setenv("FIELD_MISSING", "value_from_environment")
settings = SettingsDotEnvMissingFields()
assert settings.field_missing == "value_from_environment"
@mock.patch("pydantic_azure_secrets.azure_vault_settings.SecretClient")
@mock.patch("pydantic_azure_secrets.azure_vault_settings.DefaultAzureCredential")
def test_mocked_keyvault(secret_client_mock, creds_mock, monkeypatch):
# This test check a mocked integration with Azure keyvault
settings = SettingsAzureKV()
assert secret_client_mock.call_count == 2
assert creds_mock.call_count == 2
settings = SettingsAzureKV(_env_file=PWD / "test_data/.dotenvfile")
assert secret_client_mock.call_count == 4
assert creds_mock.call_count == 4
settings = SettingsAzureKV(
_env_file=PWD / "test_data/.dotenvfile", _env_file_encoding="utf-8"
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
assert secret_client_mock.call_count == 6
assert creds_mock.call_count == 6
settings = SettingsAzureKV(
_env_file=PWD / "test_data/.dotenvfile",
_env_file_encoding="utf-8",
_secrets_dir=PWD / "test_data/.secret_dir_init",
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
assert secret_client_mock.call_count == 8
assert creds_mock.call_count == 8
settings = SettingsAzureKV(_secrets_dir=PWD / "test_data/.secret_dir_init")
assert settings.field1 == "value1_from_.secret_dir_init"
assert settings.field2 == "value2_from_.secret_dir_init"
assert secret_client_mock.call_count == 10
assert creds_mock.call_count == 10
settings = SettingsAzureKV(
_secrets_dir=PWD / "test_data/.secret_dir_init",
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert settings.field1 == "value1_from_.secret_dir_init"
assert settings.field2 == "value2_from_.secret_dir_init"
assert secret_client_mock.call_count == 12
assert creds_mock.call_count == 12
settings = SettingsAzureKV(
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert secret_client_mock.call_count == 14
assert creds_mock.call_count == 14
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_PREFIX_field2", "value2_from_environment", prepend=False)
settings = SettingsAzureKV()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
assert secret_client_mock.call_count == 16
assert creds_mock.call_count == 16
@pytest.mark.integration
def test_keyvault(monkeypatch):
# This test check a real integration with Azure keyvault
settings = SettingsAzureKV()
assert settings.field1 == "value1_inside_default_azureKV"
assert settings.field2 == "value2_inside_default_azureKV"
settings = SettingsAzureKV(_env_file=PWD / "test_data/.dotenvfile")
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsAzureKV(
_env_file=PWD / "test_data/.dotenvfile", _env_file_encoding="utf-8"
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsAzureKV(
_env_file=PWD / "test_data/.dotenvfile",
_env_file_encoding="utf-8",
_secrets_dir=PWD / "test_data/.secret_dir_init",
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert settings.field1 == "value1_from_.dotenvfile"
assert settings.field2 == "value2_from_.dotenvfile"
settings = SettingsAzureKV(_secrets_dir=PWD / "test_data/.secret_dir_init")
assert settings.field1 == "value1_from_.secret_dir_init"
assert settings.field2 == "value2_from_.secret_dir_init"
settings = SettingsAzureKV(
_secrets_dir=PWD / "test_data/.secret_dir_init",
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert settings.field1 == "value1_from_.secret_dir_init"
assert settings.field2 == "value2_from_.secret_dir_init"
settings = SettingsAzureKV(
_azure_keyvault="https://pydantictestinit.vault.azure.net/",
)
assert settings.field1 == "value1_inside_azureKV_from_init"
assert settings.field2 == "value2_inside_azureKV_from_init"
monkeypatch.setenv("test_prefix_field1", "value1_from_environment", prepend=False)
monkeypatch.setenv("test_PREFIX_field2", "value2_from_environment", prepend=False)
settings = SettingsAzureKV()
assert settings.field1 == "value1_from_environment"
assert settings.field2 == "value2_from_environment"
@pytest.mark.integration
def test_keyvault_if_some_fields_are_empty(monkeypatch):
# This test check a real integration with Azure keyvault
with pytest.raises(pydantic.error_wrappers.ValidationError):
settings = SettingsAzureMissingFields()
monkeypatch.setenv("FIELD_MISSING", "missing_value_from_environments")
settings = SettingsAzureMissingFields()
assert settings.field == "default_value"
assert settings.test_prefix_field1 == "value1_inside_default_azureKV"
assert settings.field_missing == "missing_value_from_environments"
| 38.572603
| 86
| 0.75325
| 1,653
| 14,079
| 6.057471
| 0.07804
| 0.089484
| 0.054329
| 0.075302
| 0.904624
| 0.863977
| 0.832218
| 0.804055
| 0.764806
| 0.756816
| 0
| 0.017751
| 0.151715
| 14,079
| 364
| 87
| 38.678571
| 0.820648
| 0.05945
| 0
| 0.724409
| 0
| 0
| 0.334755
| 0.259561
| 0
| 0
| 0
| 0
| 0.366142
| 1
| 0.03937
| false
| 0
| 0.023622
| 0
| 0.161417
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
5535150b80712861281c6fc909414a11033be521
| 195
|
py
|
Python
|
dj_literature/views.py
|
NameNolen/LiteratureView
|
0642f071e703360286d898425ea39a41745b6beb
|
[
"MIT"
] | null | null | null |
dj_literature/views.py
|
NameNolen/LiteratureView
|
0642f071e703360286d898425ea39a41745b6beb
|
[
"MIT"
] | null | null | null |
dj_literature/views.py
|
NameNolen/LiteratureView
|
0642f071e703360286d898425ea39a41745b6beb
|
[
"MIT"
] | null | null | null |
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
# todo 只是做了index。
def index(request):
return render(request, 'dj_literature/index.html')
| 19.5
| 54
| 0.774359
| 26
| 195
| 5.769231
| 0.769231
| 0.133333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.14359
| 195
| 9
| 55
| 21.666667
| 0.898204
| 0.2
| 0
| 0
| 0
| 0
| 0.156863
| 0.156863
| 0
| 0
| 0
| 0.111111
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
e98fcad081656dc211d6bef321e741a9e08a854f
| 39
|
py
|
Python
|
High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py
|
SomewhereOutInSpace/Computer-Science-Class
|
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
|
[
"Unlicense"
] | null | null | null |
High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py
|
SomewhereOutInSpace/Computer-Science-Class
|
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
|
[
"Unlicense"
] | null | null | null |
High School/9th Grade APCSP (Python)/Unit 1/Unit 01.03 (Variables)/01.03.05.py
|
SomewhereOutInSpace/Computer-Science-Class
|
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
|
[
"Unlicense"
] | null | null | null |
#01.03.05 Math?!
print(2 + 3 * 8 / 2)
| 9.75
| 20
| 0.487179
| 9
| 39
| 2.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.344828
| 0.25641
| 39
| 3
| 21
| 13
| 0.310345
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
e9bafc99b92cc5adcf8283b82c942a070cad6291
| 252
|
py
|
Python
|
shdlCore/src/__init__.py
|
ckf42/shdl
|
1ff377c43edb3333fbc54a74f4cd8a9fc256c976
|
[
"MIT"
] | null | null | null |
shdlCore/src/__init__.py
|
ckf42/shdl
|
1ff377c43edb3333fbc54a74f4cd8a9fc256c976
|
[
"MIT"
] | 15
|
2021-09-03T13:01:24.000Z
|
2022-01-24T10:09:11.000Z
|
shdlCore/src/__init__.py
|
ckf42/shdl
|
1ff377c43edb3333fbc54a74f4cd8a9fc256c976
|
[
"MIT"
] | null | null | null |
from re import sub as re_sub
from re import split as re_split
from shdlCore.src.CliArg import *
from shdlCore.src.CommonUtil import *
from shdlCore.src.StringTransformer import *
from shdlCore.src.LocalFileHandler import *
from .RepoHandler import *
| 25.2
| 44
| 0.809524
| 37
| 252
| 5.459459
| 0.351351
| 0.237624
| 0.29703
| 0.311881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134921
| 252
| 9
| 45
| 28
| 0.926606
| 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
| 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
| 7
|
756dae18ff20dd84188eb7b23a87101693b4dd78
| 9,180
|
py
|
Python
|
TestCreateTableSqlBuilder.py
|
ytyaru/Python.Database.201706300700
|
e4a81571648fb65a6bb4a2819aa037abe925422d
|
[
"CC0-1.0"
] | null | null | null |
TestCreateTableSqlBuilder.py
|
ytyaru/Python.Database.201706300700
|
e4a81571648fb65a6bb4a2819aa037abe925422d
|
[
"CC0-1.0"
] | null | null | null |
TestCreateTableSqlBuilder.py
|
ytyaru/Python.Database.201706300700
|
e4a81571648fb65a6bb4a2819aa037abe925422d
|
[
"CC0-1.0"
] | null | null | null |
import unittest
from CreateTableSqlAnalyzer import CreateTableSqlAnalyzer
from CreateTableSqlBuilder import CreateTableSqlBuilder
class TestCreateTableSqlBuilder(unittest.TestCase):
def test_create_table(self):
sql = '''create table TBL_NM(Id integer primary key, Name text not null);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key,
Name text not null
);''')
def test_type(self):
sql = '''create table TBL_NM(Id integer, Name text, Tax real, Image blob, Null null);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer,
Name text,
Tax real,
Image blob,
Null null
);''')
def test_Autoincrement(self):
sql = '''create table TBL_NM(Id integer primary key autoincrement);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key autoincrement
);''')
def test_NotNull(self):
sql = '''create table TBL_NM(Name text not null);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text not null
);''')
def test_Unique(self):
sql = '''create table TBL_NM(Name text unique);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text unique
);''')
def test_PrimaryKey(self):
sql = '''create table TBL_NM(Name text primary key);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text primary key
);''')
def test_Default_text(self):
sql = '''create table TBL_NM(Name text default 'def_str');'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text default 'def_str'
);''')
def test_Default_integer(self):
sql = '''create table TBL_NM(Age integer default 123);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Age integer default 123
);''')
def test_Default_escape(self):
sql = '''create table TBL_NM(Name text default 'I''am andy.');'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text default 'I''am andy.'
);''')
def test_Check(self):
sql = '''create table TBL_NM(Name text check('FixedName' == Name));'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text check('FixedName' == Name)
);''')
def test_Check_space(self):
sql = '''create table TBL_NM(Name text check ( 'FixedName' == Name ) );'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Name text check('FixedName' == Name)
);''')
def test_Constraints(self):
sql = '''create table TBL_NM(
Id integer primary key autoincrement unique not null default 0 check (Id<100),
Name text);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key autoincrement unique not null default 0 check(Id<100),
Name text
);''')
def test_ForeignKey(self):
sql = '''create table TBL_NM(
Id integer primary key,
AccountId integer,
foreign key(AccountId) references ParentTable(Id));'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key,
AccountId integer,
foreign key(AccountId) references ParentTable(Id)
);''')
def test_quotation(self):
sql = '''create table "TBL_NM"("Id" integer primary key, "Name" text not null);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table "TBL_NM"(
"Id" integer primary key,
"Name" text not null
);''')
def test_quotation_escape(self):
sql = '''create table "T""B""L_NM"("I""d" integer primary key, "N""a""me" text not null);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table "T""B""L_NM"(
"I""d" integer primary key,
"N""a""me" text not null
);''')
def test_multi_columns_and_space(self):
sql = '''create table TBL_NM(
Id integer primary key autoincrement unique not null default 0 check (Id<100),
Key integer not null,
Name text not null,
Rate real default 0.5 check ( 0 <= Tax && (Tax <= 1 || Tax <= 1) ),
Image blob ,
Null null,
foreign key ( Key ) references SomeTable ( SomeId )
);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key autoincrement unique not null default 0 check(Id<100),
Key integer not null,
Name text not null,
Rate real default 0.5 check(0 <= Tax && (Tax <= 1 || Tax <= 1)),
Image blob,
Null null,
foreign key(Key) references SomeTable(SomeId)
);''')
def test_multi_columns_and_space_and_quoat_escape(self):
sql = '''create table """T""BL NM""" (
"I""d" integer primary key autoincrement unique not null default 0 check (Id<100),
"""K"" ey""" integer not null,
"N""""ame" text not null check( "N""""ame" == 'ABC' || "N""""ame" == 'DEF' ),
"""R""ate""" real default 0.5 check ( 0 <= Tax && (Tax <= 1 || Tax <= 1) ),
"I""mage" blob ,
"N""ull" null,
MyColumn text,
foreign key ( """K"" ey""" ) references "Some ""Table" ( "Some"" Id" )
);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table """T""BL NM"""(
"I""d" integer primary key autoincrement unique not null default 0 check(Id<100),
"""K"" ey""" integer not null,
"N""""ame" text not null check("N""""ame" == 'ABC' || "N""""ame" == 'DEF'),
"""R""ate""" real default 0.5 check(0 <= Tax && (Tax <= 1 || Tax <= 1)),
"I""mage" blob,
"N""ull" null,
MyColumn text,
foreign key("""K"" ey""") references "Some ""Table"("Some"" Id")
);''')
def test_const_sequence(self):
sql = '''create table TBL_NM(
Id integer check ( Id < 100 ) default 0 primary key autoincrement unique not null,
Key integer not null
);'''
c = CreateTableSqlAnalyzer()
tblnm, coldef = c.Load(sql)
b = CreateTableSqlBuilder()
sql = b.Build(tblnm, coldef)
print(sql)
self.assertEqual(sql, '''create table TBL_NM(
Id integer primary key autoincrement unique not null default 0 check(Id < 100),
Key integer not null
);''')
if __name__ == '__main__':
unittest.main()
| 36
| 131
| 0.56841
| 1,069
| 9,180
| 4.808232
| 0.085126
| 0.079183
| 0.098054
| 0.105837
| 0.91323
| 0.912062
| 0.889494
| 0.887549
| 0.870623
| 0.843385
| 0
| 0.009029
| 0.300218
| 9,180
| 254
| 132
| 36.141732
| 0.791096
| 0
| 0
| 0.753191
| 0
| 0.034043
| 0.459913
| 0
| 0
| 0
| 0
| 0
| 0.076596
| 1
| 0.076596
| false
| 0
| 0.012766
| 0
| 0.093617
| 0.076596
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
75852097d2d572ddfdb294c53aaf7cc84df01fac
| 185
|
py
|
Python
|
CA117/Lab_2/plural_12.py
|
PRITI1999/OneLineWonders
|
91a7368e0796e5a3b5839c9165f9fbe5460879f5
|
[
"MIT"
] | 6
|
2016-02-04T00:15:20.000Z
|
2019-10-13T13:53:16.000Z
|
CA117/Lab_2/plural_12.py
|
PRITI1999/OneLineWonders
|
91a7368e0796e5a3b5839c9165f9fbe5460879f5
|
[
"MIT"
] | 2
|
2016-03-14T04:01:36.000Z
|
2019-10-16T12:45:34.000Z
|
CA117/Lab_2/plural_12.py
|
PRITI1999/OneLineWonders
|
91a7368e0796e5a3b5839c9165f9fbe5460879f5
|
[
"MIT"
] | 10
|
2016-02-09T14:38:32.000Z
|
2021-05-25T08:16:26.000Z
|
print(__import__("re").sub("([^aeiou]y|fe|ch|sh|[fxszo])$",lambda m:("v"if"f"in m.group(0)else m.group(0)[:-1]+"i"if"y"in m.group(0)else m.group(0))+"e",__import__("sys").argv[1])+"s")
| 92.5
| 184
| 0.610811
| 41
| 185
| 2.560976
| 0.609756
| 0.228571
| 0.266667
| 0.171429
| 0.380952
| 0.380952
| 0.380952
| 0.380952
| 0
| 0
| 0
| 0.03352
| 0.032432
| 185
| 1
| 185
| 185
| 0.553073
| 0
| 0
| 0
| 0
| 0
| 0.216216
| 0.156757
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 9
|
75a6f0e52f2238b237b5c348c94f07f0246bd4f6
| 6,697
|
py
|
Python
|
switch.py
|
winxin/micropython-tft-gui-
|
59b812b81be70e25d2ffd816ce9b544ea561e691
|
[
"MIT"
] | 73
|
2016-05-11T07:45:18.000Z
|
2021-12-13T13:39:04.000Z
|
switch.py
|
winxin/micropython-tft-gui-
|
59b812b81be70e25d2ffd816ce9b544ea561e691
|
[
"MIT"
] | 2
|
2016-11-23T09:22:13.000Z
|
2021-02-05T08:51:27.000Z
|
switch.py
|
winxin/micropython-tft-gui-
|
59b812b81be70e25d2ffd816ce9b544ea561e691
|
[
"MIT"
] | 11
|
2017-09-20T06:37:23.000Z
|
2021-04-24T14:29:00.000Z
|
# Code generated by bmp_to_icon.py
from uctypes import addressof
_icons = {
0: (
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfd\x97\x77\x55'
b'\x55\x55\x55\x55\x55\x55\x55\x55\x55\x77\x7b\xdf\xff\xff\xff\xff'
b'\xff\xff\xff\xfb\x79\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99'
b'\x99\x99\x99\x97\xbf\xff\xff\xff\xff\xff\xfe\x79\x99\x77\x77\x77'
b'\x9b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x99\x99\x97\xef\xff\xff'
b'\xff\xff\xd7\x99\x77\xbd\xee\xdb\x77\x9b\xbb\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xb9\x99\x7d\xff\xff\xff\xfe\x7b\x77\xbe\xee\xee\xee'
b'\xed\x77\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xb9\xb7\xef\xff'
b'\xff\xf7\xb7\x7e\xed\xee\xee\xed\xde\xe7\x7b\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\x9b\x7f\xff\xff\xb9\x97\xee\xdd\xee\xee\xed'
b'\xdd\xee\x79\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xb9\x9b\xff'
b'\xff\x7b\x5b\xed\xdb\xde\xee\xdb\xdd\xde\xb5\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xb7\xff\xfb\x99\x7e\xed\xdb\xbe\xee\xbb'
b'\xbd\xdd\xe7\x9b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xb9\xbf'
b'\xf9\xb7\x9e\xdd\xbb\xbd\xee\xbb\xbd\xee\xe9\x7b\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x9f\xf7\xb5\xde\xee\xdb\xbb\xed\xbd'
b'\xee\xee\xed\x5b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7f'
b'\xf7\xb3\xee\xee\xee\xed\xdd\xee\xee\xee\xee\x3b\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7f\xf7\xb3\xee\xee\xee\xee\xdd\xdd'
b'\xee\xee\xee\x3b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7f'
b'\xf7\xb5\xde\xee\xee\xdb\xde\xbb\xbd\xde\xed\x5b\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7f\xf9\xb7\x9e\xee\xdb\xbb\xde\xdb'
b'\xbb\xdd\xe9\x7b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x9f'
b'\xfb\x99\x5e\xdd\xdb\xbb\xee\xeb\xbd\xdd\xe5\x9b\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xb9\xbf\xff\x7b\x3b\xed\xdd\xbd\xee\xed'
b'\xbd\xde\xb3\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xb7\xff'
b'\xff\xb9\x93\xee\xdd\xdd\xee\xee\xdd\xee\x39\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\x9b\xff\xff\xf7\xb7\x5e\xed\xde\xee\xee'
b'\xee\xe5\x7b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7f\xff'
b'\xff\xfe\x7b\x72\xbe\xee\xee\xee\xeb\x27\xbb\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xb7\xef\xff\xff\xff\xd7\xb9\x25\x9d\xee\xd9'
b'\x52\x9b\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x7d\xff\xff'
b'\xff\xff\xfe\x79\xb7\x52\x00\x25\x9b\xbb\xbb\xbb\xbb\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\x99\xef\xff\xff\xff\xff\xff\xfb\x79\xbb\xbb\xbb'
b'\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb\x97\xbf\xff\xff\xff'
b'\xff\xff\xff\xff\xfd\xb9\x77\x77\x77\x77\x77\x77\x77\x77\x77\x77'
b'\x77\x77\x9b\xdf\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
),
1: (
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfa\x61\x11\x11'
b'\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11\x16\xaf\xff\xff\xff\xff'
b'\xff\xff\xff\xfa\x11\x46\x66\x66\x66\x66\x66\x66\x66\x66\x66\x66'
b'\x66\x66\x64\x11\xaf\xff\xff\xff\xff\xff\xfc\x11\x66\x66\x88\x88'
b'\x88\x88\x88\x88\x88\x88\x88\x86\x41\x11\x14\x46\x11\xcf\xff\xff'
b'\xff\xff\xa1\x66\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x86\x14'
b'\xad\xee\xda\x41\x46\x1a\xff\xff\xff\xfc\x16\x68\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x88\x88\x41\xce\xee\xee\xee\xec\x14\x61\xcf\xff'
b'\xff\xe1\x66\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x84\x4e\xed'
b'\xee\xee\xed\xde\xe4\x46\x1e\xff\xff\x64\x68\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x88\x61\xee\xdd\xee\xee\xdd\xdd\xee\x14\x46\xff'
b'\xfd\x16\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x1c\xed\xdc'
b'\xde\xee\xdc\xcd\xde\xc1\x61\xef\xfa\x46\x88\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x84\x4e\xdd\xdc\xcd\xee\xcc\xcc\xdd\xe4\x44\xaf'
b'\xf4\x66\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x84\xae\xdd\xcc'
b'\xcd\xee\xcc\xcd\xee\xea\x46\x4f\xf1\x68\x88\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x81\xce\xed\xdc\xcc\xdd\xcd\xee\xee\xed\x16\x1f'
b'\xf1\x68\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x81\xee\xee\xee'
b'\xed\xdd\xee\xee\xee\xee\x16\x1f\xf1\x68\x88\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x81\xee\xee\xee\xee\xdd\xdd\xee\xee\xee\x16\x1f'
b'\xf1\x68\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x81\xce\xee\xee'
b'\xdc\xde\xcc\xcd\xde\xec\x16\x1f\xf4\x66\x88\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x84\xae\xee\xdc\xcc\xde\xdc\xcc\xdd\xea\x46\x4f'
b'\xfa\x46\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x86\x4e\xdd\xdc'
b'\xcc\xee\xec\xcd\xdd\xe4\x44\xaf\xfd\x16\x88\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x88\x1a\xed\xdd\xcd\xee\xed\xcd\xde\xc1\x61\xdf'
b'\xff\x64\x68\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x61\xde\xdd'
b'\xdd\xee\xee\xdd\xed\x14\x46\xff\xff\xe1\x66\x88\x88\x88\x88\x88'
b'\x88\x88\x88\x88\x88\x84\x4d\xed\xde\xee\xee\xde\xd4\x46\x1e\xff'
b'\xff\xfc\x16\x68\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x41\xce'
b'\xee\xee\xee\xec\x14\x61\xcf\xff\xff\xff\xa1\x66\x68\x88\x88\x88'
b'\x88\x88\x88\x88\x88\x88\x86\x14\xac\xee\xca\x41\x46\x1a\xff\xff'
b'\xff\xff\xfc\x11\x66\x88\x88\x88\x88\x88\x88\x88\x88\x88\x88\x86'
b'\x41\x11\x14\x46\x11\xdf\xff\xff\xff\xff\xff\xfa\x11\x66\x66\x66'
b'\x66\x66\x66\x66\x66\x66\x66\x66\x66\x66\x66\x11\xaf\xff\xff\xff'
b'\xff\xff\xff\xff\xfa\x61\x11\x11\x11\x11\x11\x11\x11\x11\x11\x11'
b'\x11\x11\x16\xaf\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'
),
}
colortable = {
0: (
b'\x51\x54\x52\x04\x9d\x6a\x33\x00\x62\x65\x63\x00\x6a\x6d\x6b\x00'
b'\xad\x7c\x4c\x00\x76\x79\x77\x00\xbb\x8d\x60\x00\x8c\x8f\x8d\x00'
b'\xca\x9a\x64\x00\xae\xb1\xaf\x00\xd0\xb5\x9b\x00\xc5\xc9\xc7\x00'
b'\xda\xcd\xc0\x00\xe2\xe1\xdc\x00\xec\xee\xec\x00\xfc\xff\xfd\x00'),
1: (
b'\x28\x2a\x29\x02\x4e\x35\x19\x00\x31\x32\x31\x00\x35\x36\x35\x00'
b'\x56\x3e\x26\x00\x3b\x3c\x3b\x00\x5d\x46\x30\x00\x46\x47\x46\x00'
b'\x65\x4d\x32\x00\x57\x58\x57\x00\x68\x5a\x4d\x00\x62\x64\x63\x00'
b'\x6d\x66\x60\x00\x71\x70\x6e\x00\x76\x77\x76\x00\x7e\x7f\x7e\x00'),
}
width = 48
height = 26
colors = 4
def get_icon(icon_index = 0, color_index = 0):
return width, height, addressof(_icons[icon_index]), colors, addressof(colortable[color_index])
def draw(x, y, icon_index, draw_fct, color_index = 0):
draw_fct(x - width//2, y - height // 2, width, height, addressof(_icons[icon_index]), colors, addressof(colortable[color_index]))
| 60.333333
| 133
| 0.680305
| 1,536
| 6,697
| 2.955729
| 0.111979
| 0.255066
| 0.319163
| 0.340969
| 0.648238
| 0.584361
| 0.546256
| 0.545595
| 0.460793
| 0.448678
| 0
| 0.185791
| 0.077348
| 6,697
| 110
| 134
| 60.881818
| 0.548956
| 0.004778
| 0
| 0.096154
| 1
| 0.826923
| 0.826178
| 0.826178
| 0
| 1
| 0
| 0
| 0
| 1
| 0.019231
| false
| 0
| 0.009615
| 0.009615
| 0.038462
| 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
| 1
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
75df39ee83534bbadc26be3f4dee7c2d2e840be6
| 69,267
|
py
|
Python
|
spark_fhir_schemas/r4/resources/activitydefinition.py
|
imranq2/SparkFhirSchemas
|
24debae6980fb520fe55aa199bdfd43c0092eb9c
|
[
"Apache-2.0"
] | 2
|
2020-10-31T23:25:01.000Z
|
2021-06-09T14:12:42.000Z
|
spark_fhir_schemas/r4/resources/activitydefinition.py
|
imranq2/SparkFhirSchemas
|
24debae6980fb520fe55aa199bdfd43c0092eb9c
|
[
"Apache-2.0"
] | null | null | null |
spark_fhir_schemas/r4/resources/activitydefinition.py
|
imranq2/SparkFhirSchemas
|
24debae6980fb520fe55aa199bdfd43c0092eb9c
|
[
"Apache-2.0"
] | null | null | null |
from typing import Union, List, Optional
from pyspark.sql.types import (
StructType,
StructField,
StringType,
ArrayType,
DateType,
BooleanType,
DataType,
TimestampType,
)
# This file is auto-generated by generate_schema so do not edit it manually
# noinspection PyPep8Naming
class ActivityDefinitionSchema:
"""
This resource allows for the definition of some activity to be performed,
independent of a particular patient, practitioner, or other performance
context.
"""
# noinspection PyDefaultArgument
@staticmethod
def get_schema(
max_nesting_depth: Optional[int] = 6,
nesting_depth: int = 0,
nesting_list: List[str] = [],
max_recursion_limit: Optional[int] = 2,
include_extension: Optional[bool] = False,
extension_fields: Optional[List[str]] = [
"valueBoolean",
"valueCode",
"valueDate",
"valueDateTime",
"valueDecimal",
"valueId",
"valueInteger",
"valuePositiveInt",
"valueString",
"valueTime",
"valueUnsignedInt",
"valueUri",
"valueUrl",
],
extension_depth: int = 0,
max_extension_depth: Optional[int] = 2,
include_modifierExtension: Optional[bool] = False,
) -> Union[StructType, DataType]:
"""
This resource allows for the definition of some activity to be performed,
independent of a particular patient, practitioner, or other performance
context.
resourceType: This is a ActivityDefinition resource
id: The logical id of the resource, as used in the URL for the resource. Once
assigned, this value never changes.
meta: The metadata about the resource. This is content that is maintained by the
infrastructure. Changes to the content might not always be associated with
version changes to the resource.
implicitRules: A reference to a set of rules that were followed when the resource was
constructed, and which must be understood when processing the content. Often,
this is a reference to an implementation guide that defines the special rules
along with other profiles etc.
language: The base language in which the resource is written.
text: A human-readable narrative that contains a summary of the resource and can be
used to represent the content of the resource to a human. The narrative need
not encode all the structured data, but is required to contain sufficient
detail to make it "clinically safe" for a human to just read the narrative.
Resource definitions may define what content should be represented in the
narrative to ensure clinical safety.
contained: These resources do not have an independent existence apart from the resource
that contains them - they cannot be identified independently, and nor can they
have their own independent transaction scope.
extension: May be used to represent additional information that is not part of the basic
definition of the resource. To make the use of extensions safe and manageable,
there is a strict set of governance applied to the definition and use of
extensions. Though any implementer can define an extension, there is a set of
requirements that SHALL be met as part of the definition of the extension.
modifierExtension: May be used to represent additional information that is not part of the basic
definition of the resource and that modifies the understanding of the element
that contains it and/or the understanding of the containing element's
descendants. Usually modifier elements provide negation or qualification. To
make the use of extensions safe and manageable, there is a strict set of
governance applied to the definition and use of extensions. Though any
implementer is allowed to define an extension, there is a set of requirements
that SHALL be met as part of the definition of the extension. Applications
processing a resource are required to check for modifier extensions.
Modifier extensions SHALL NOT change the meaning of any elements on Resource
or DomainResource (including cannot change the meaning of modifierExtension
itself).
url: An absolute URI that is used to identify this activity definition when it is
referenced in a specification, model, design or an instance; also called its
canonical identifier. This SHOULD be globally unique and SHOULD be a literal
address at which at which an authoritative instance of this activity
definition is (or will be) published. This URL can be the target of a
canonical reference. It SHALL remain the same when the activity definition is
stored on different servers.
identifier: A formal identifier that is used to identify this activity definition when it
is represented in other formats, or referenced in a specification, model,
design or an instance.
version: The identifier that is used to identify this version of the activity
definition when it is referenced in a specification, model, design or
instance. This is an arbitrary value managed by the activity definition author
and is not expected to be globally unique. For example, it might be a
timestamp (e.g. yyyymmdd) if a managed version is not available. There is also
no expectation that versions can be placed in a lexicographical sequence. To
provide a version consistent with the Decision Support Service specification,
use the format Major.Minor.Revision (e.g. 1.0.0). For more information on
versioning knowledge assets, refer to the Decision Support Service
specification. Note that a version is required for non-experimental active
assets.
name: A natural language name identifying the activity definition. This name should
be usable as an identifier for the module by machine processing applications
such as code generation.
title: A short, descriptive, user-friendly title for the activity definition.
subtitle: An explanatory or alternate title for the activity definition giving
additional information about its content.
status: The status of this activity definition. Enables tracking the life-cycle of the
content.
experimental: A Boolean value to indicate that this activity definition is authored for
testing purposes (or education/evaluation/marketing) and is not intended to be
used for genuine usage.
subjectCodeableConcept: A code or group definition that describes the intended subject of the activity
being defined.
subjectReference: A code or group definition that describes the intended subject of the activity
being defined.
date: The date (and optionally time) when the activity definition was published.
The date must change when the business version changes and it must change if
the status code changes. In addition, it should change when the substantive
content of the activity definition changes.
publisher: The name of the organization or individual that published the activity
definition.
contact: Contact details to assist a user in finding and communicating with the
publisher.
description: A free text natural language description of the activity definition from a
consumer's perspective.
useContext: The content was developed with a focus and intent of supporting the contexts
that are listed. These contexts may be general categories (gender, age, ...)
or may be references to specific programs (insurance plans, studies, ...) and
may be used to assist with indexing and searching for appropriate activity
definition instances.
jurisdiction: A legal or geographic region in which the activity definition is intended to
be used.
purpose: Explanation of why this activity definition is needed and why it has been
designed as it has.
usage: A detailed description of how the activity definition is used from a clinical
perspective.
copyright: A copyright statement relating to the activity definition and/or its contents.
Copyright statements are generally legal restrictions on the use and
publishing of the activity definition.
approvalDate: The date on which the resource content was approved by the publisher. Approval
happens once when the content is officially approved for usage.
lastReviewDate: The date on which the resource content was last reviewed. Review happens
periodically after approval but does not change the original approval date.
effectivePeriod: The period during which the activity definition content was or is planned to
be in active use.
topic: Descriptive topics related to the content of the activity. Topics provide a
high-level categorization of the activity that can be useful for filtering and
searching.
author: An individiual or organization primarily involved in the creation and
maintenance of the content.
editor: An individual or organization primarily responsible for internal coherence of
the content.
reviewer: An individual or organization primarily responsible for review of some aspect
of the content.
endorser: An individual or organization responsible for officially endorsing the content
for use in some setting.
relatedArtifact: Related artifacts such as additional documentation, justification, or
bibliographic references.
library: A reference to a Library resource containing any formal logic used by the
activity definition.
kind: A description of the kind of resource the activity definition is representing.
For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.
Typically, but not always, this is a Request resource.
profile: A profile to which the target of the activity definition is expected to
conform.
code: Detailed description of the type of activity; e.g. What lab test, what
procedure, what kind of encounter.
intent: Indicates the level of authority/intentionality associated with the activity
and where the request should fit into the workflow chain.
priority: Indicates how quickly the activity should be addressed with respect to other
requests.
doNotPerform: Set this to true if the definition is to indicate that a particular activity
should NOT be performed. If true, this element should be interpreted to
reinforce a negative coding. For example NPO as a code with a doNotPerform of
true would still indicate to NOT perform the action.
timingTiming: The period, timing or frequency upon which the described activity is to occur.
timingDateTime: The period, timing or frequency upon which the described activity is to occur.
timingAge: The period, timing or frequency upon which the described activity is to occur.
timingPeriod: The period, timing or frequency upon which the described activity is to occur.
timingRange: The period, timing or frequency upon which the described activity is to occur.
timingDuration: The period, timing or frequency upon which the described activity is to occur.
location: Identifies the facility where the activity will occur; e.g. home, hospital,
specific clinic, etc.
participant: Indicates who should participate in performing the action described.
productReference: Identifies the food, drug or other product being consumed or supplied in the
activity.
productCodeableConcept: Identifies the food, drug or other product being consumed or supplied in the
activity.
quantity: Identifies the quantity expected to be consumed at once (per dose, per meal,
etc.).
dosage: Provides detailed dosage instructions in the same way that they are described
for MedicationRequest resources.
bodySite: Indicates the sites on the subject's body where the procedure should be
performed (I.e. the target sites).
specimenRequirement: Defines specimen requirements for the action to be performed, such as required
specimens for a lab test.
observationRequirement: Defines observation requirements for the action to be performed, such as body
weight or surface area.
observationResultRequirement: Defines the observations that are expected to be produced by the action.
transform: A reference to a StructureMap resource that defines a transform that can be
executed to produce the intent resource using the ActivityDefinition instance
as the input.
dynamicValue: Dynamic values that will be evaluated to produce values for elements of the
resulting resource. For example, if the dosage of a medication must be
computed based on the patient's weight, a dynamic value would be used to
specify an expression that calculated the weight, and the path on the request
resource that would contain the result.
"""
from spark_fhir_schemas.r4.simple_types.id import idSchema
from spark_fhir_schemas.r4.complex_types.meta import MetaSchema
from spark_fhir_schemas.r4.simple_types.uri import uriSchema
from spark_fhir_schemas.r4.simple_types.code import codeSchema
from spark_fhir_schemas.r4.complex_types.narrative import NarrativeSchema
from spark_fhir_schemas.r4.complex_types.resourcelist import ResourceListSchema
from spark_fhir_schemas.r4.complex_types.extension import ExtensionSchema
from spark_fhir_schemas.r4.complex_types.identifier import IdentifierSchema
from spark_fhir_schemas.r4.complex_types.codeableconcept import (
CodeableConceptSchema,
)
from spark_fhir_schemas.r4.complex_types.reference import ReferenceSchema
from spark_fhir_schemas.r4.simple_types.datetime import dateTimeSchema
from spark_fhir_schemas.r4.complex_types.contactdetail import (
ContactDetailSchema,
)
from spark_fhir_schemas.r4.simple_types.markdown import markdownSchema
from spark_fhir_schemas.r4.complex_types.usagecontext import UsageContextSchema
from spark_fhir_schemas.r4.complex_types.period import PeriodSchema
from spark_fhir_schemas.r4.complex_types.relatedartifact import (
RelatedArtifactSchema,
)
from spark_fhir_schemas.r4.simple_types.canonical import canonicalSchema
from spark_fhir_schemas.r4.complex_types.timing import TimingSchema
from spark_fhir_schemas.r4.complex_types.age import AgeSchema
from spark_fhir_schemas.r4.complex_types.range import RangeSchema
from spark_fhir_schemas.r4.complex_types.duration import DurationSchema
from spark_fhir_schemas.r4.complex_types.activitydefinition_participant import (
ActivityDefinition_ParticipantSchema,
)
from spark_fhir_schemas.r4.complex_types.quantity import QuantitySchema
from spark_fhir_schemas.r4.complex_types.dosage import DosageSchema
from spark_fhir_schemas.r4.complex_types.activitydefinition_dynamicvalue import (
ActivityDefinition_DynamicValueSchema,
)
if (
max_recursion_limit
and nesting_list.count("ActivityDefinition") >= max_recursion_limit
) or (max_nesting_depth and nesting_depth >= max_nesting_depth):
return StructType([StructField("id", StringType(), True)])
# add my name to recursion list for later
my_nesting_list: List[str] = nesting_list + ["ActivityDefinition"]
schema = StructType(
[
# This is a ActivityDefinition resource
StructField("resourceType", StringType(), True),
# The logical id of the resource, as used in the URL for the resource. Once
# assigned, this value never changes.
StructField(
"id",
idSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The metadata about the resource. This is content that is maintained by the
# infrastructure. Changes to the content might not always be associated with
# version changes to the resource.
StructField(
"meta",
MetaSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A reference to a set of rules that were followed when the resource was
# constructed, and which must be understood when processing the content. Often,
# this is a reference to an implementation guide that defines the special rules
# along with other profiles etc.
StructField(
"implicitRules",
uriSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The base language in which the resource is written.
StructField(
"language",
codeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A human-readable narrative that contains a summary of the resource and can be
# used to represent the content of the resource to a human. The narrative need
# not encode all the structured data, but is required to contain sufficient
# detail to make it "clinically safe" for a human to just read the narrative.
# Resource definitions may define what content should be represented in the
# narrative to ensure clinical safety.
StructField(
"text",
NarrativeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# These resources do not have an independent existence apart from the resource
# that contains them - they cannot be identified independently, and nor can they
# have their own independent transaction scope.
StructField(
"contained",
ArrayType(
ResourceListSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# May be used to represent additional information that is not part of the basic
# definition of the resource. To make the use of extensions safe and manageable,
# there is a strict set of governance applied to the definition and use of
# extensions. Though any implementer can define an extension, there is a set of
# requirements that SHALL be met as part of the definition of the extension.
StructField(
"extension",
ArrayType(
ExtensionSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# May be used to represent additional information that is not part of the basic
# definition of the resource and that modifies the understanding of the element
# that contains it and/or the understanding of the containing element's
# descendants. Usually modifier elements provide negation or qualification. To
# make the use of extensions safe and manageable, there is a strict set of
# governance applied to the definition and use of extensions. Though any
# implementer is allowed to define an extension, there is a set of requirements
# that SHALL be met as part of the definition of the extension. Applications
# processing a resource are required to check for modifier extensions.
#
# Modifier extensions SHALL NOT change the meaning of any elements on Resource
# or DomainResource (including cannot change the meaning of modifierExtension
# itself).
StructField(
"modifierExtension",
ArrayType(
ExtensionSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# An absolute URI that is used to identify this activity definition when it is
# referenced in a specification, model, design or an instance; also called its
# canonical identifier. This SHOULD be globally unique and SHOULD be a literal
# address at which at which an authoritative instance of this activity
# definition is (or will be) published. This URL can be the target of a
# canonical reference. It SHALL remain the same when the activity definition is
# stored on different servers.
StructField(
"url",
uriSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A formal identifier that is used to identify this activity definition when it
# is represented in other formats, or referenced in a specification, model,
# design or an instance.
StructField(
"identifier",
ArrayType(
IdentifierSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# The identifier that is used to identify this version of the activity
# definition when it is referenced in a specification, model, design or
# instance. This is an arbitrary value managed by the activity definition author
# and is not expected to be globally unique. For example, it might be a
# timestamp (e.g. yyyymmdd) if a managed version is not available. There is also
# no expectation that versions can be placed in a lexicographical sequence. To
# provide a version consistent with the Decision Support Service specification,
# use the format Major.Minor.Revision (e.g. 1.0.0). For more information on
# versioning knowledge assets, refer to the Decision Support Service
# specification. Note that a version is required for non-experimental active
# assets.
StructField("version", StringType(), True),
# A natural language name identifying the activity definition. This name should
# be usable as an identifier for the module by machine processing applications
# such as code generation.
StructField("name", StringType(), True),
# A short, descriptive, user-friendly title for the activity definition.
StructField("title", StringType(), True),
# An explanatory or alternate title for the activity definition giving
# additional information about its content.
StructField("subtitle", StringType(), True),
# The status of this activity definition. Enables tracking the life-cycle of the
# content.
StructField("status", StringType(), True),
# A Boolean value to indicate that this activity definition is authored for
# testing purposes (or education/evaluation/marketing) and is not intended to be
# used for genuine usage.
StructField("experimental", BooleanType(), True),
# A code or group definition that describes the intended subject of the activity
# being defined.
StructField(
"subjectCodeableConcept",
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A code or group definition that describes the intended subject of the activity
# being defined.
StructField(
"subjectReference",
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The date (and optionally time) when the activity definition was published.
# The date must change when the business version changes and it must change if
# the status code changes. In addition, it should change when the substantive
# content of the activity definition changes.
StructField(
"date",
dateTimeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The name of the organization or individual that published the activity
# definition.
StructField("publisher", StringType(), True),
# Contact details to assist a user in finding and communicating with the
# publisher.
StructField(
"contact",
ArrayType(
ContactDetailSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# A free text natural language description of the activity definition from a
# consumer's perspective.
StructField(
"description",
markdownSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The content was developed with a focus and intent of supporting the contexts
# that are listed. These contexts may be general categories (gender, age, ...)
# or may be references to specific programs (insurance plans, studies, ...) and
# may be used to assist with indexing and searching for appropriate activity
# definition instances.
StructField(
"useContext",
ArrayType(
UsageContextSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# A legal or geographic region in which the activity definition is intended to
# be used.
StructField(
"jurisdiction",
ArrayType(
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Explanation of why this activity definition is needed and why it has been
# designed as it has.
StructField(
"purpose",
markdownSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A detailed description of how the activity definition is used from a clinical
# perspective.
StructField("usage", StringType(), True),
# A copyright statement relating to the activity definition and/or its contents.
# Copyright statements are generally legal restrictions on the use and
# publishing of the activity definition.
StructField(
"copyright",
markdownSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The date on which the resource content was approved by the publisher. Approval
# happens once when the content is officially approved for usage.
StructField("approvalDate", DateType(), True),
# The date on which the resource content was last reviewed. Review happens
# periodically after approval but does not change the original approval date.
StructField("lastReviewDate", DateType(), True),
# The period during which the activity definition content was or is planned to
# be in active use.
StructField(
"effectivePeriod",
PeriodSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Descriptive topics related to the content of the activity. Topics provide a
# high-level categorization of the activity that can be useful for filtering and
# searching.
StructField(
"topic",
ArrayType(
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# An individiual or organization primarily involved in the creation and
# maintenance of the content.
StructField(
"author",
ArrayType(
ContactDetailSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# An individual or organization primarily responsible for internal coherence of
# the content.
StructField(
"editor",
ArrayType(
ContactDetailSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# An individual or organization primarily responsible for review of some aspect
# of the content.
StructField(
"reviewer",
ArrayType(
ContactDetailSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# An individual or organization responsible for officially endorsing the content
# for use in some setting.
StructField(
"endorser",
ArrayType(
ContactDetailSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Related artifacts such as additional documentation, justification, or
# bibliographic references.
StructField(
"relatedArtifact",
ArrayType(
RelatedArtifactSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# A reference to a Library resource containing any formal logic used by the
# activity definition.
StructField(
"library",
ArrayType(
canonicalSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# A description of the kind of resource the activity definition is representing.
# For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.
# Typically, but not always, this is a Request resource.
StructField(
"kind",
codeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# A profile to which the target of the activity definition is expected to
# conform.
StructField(
"profile",
canonicalSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Detailed description of the type of activity; e.g. What lab test, what
# procedure, what kind of encounter.
StructField(
"code",
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Indicates the level of authority/intentionality associated with the activity
# and where the request should fit into the workflow chain.
StructField(
"intent",
codeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Indicates how quickly the activity should be addressed with respect to other
# requests.
StructField(
"priority",
codeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Set this to true if the definition is to indicate that a particular activity
# should NOT be performed. If true, this element should be interpreted to
# reinforce a negative coding. For example NPO as a code with a doNotPerform of
# true would still indicate to NOT perform the action.
StructField("doNotPerform", BooleanType(), True),
# The period, timing or frequency upon which the described activity is to occur.
StructField(
"timingTiming",
TimingSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The period, timing or frequency upon which the described activity is to occur.
StructField("timingDateTime", TimestampType(), True),
# The period, timing or frequency upon which the described activity is to occur.
StructField(
"timingAge",
AgeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The period, timing or frequency upon which the described activity is to occur.
StructField(
"timingPeriod",
PeriodSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The period, timing or frequency upon which the described activity is to occur.
StructField(
"timingRange",
RangeSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# The period, timing or frequency upon which the described activity is to occur.
StructField(
"timingDuration",
DurationSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Identifies the facility where the activity will occur; e.g. home, hospital,
# specific clinic, etc.
StructField(
"location",
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Indicates who should participate in performing the action described.
StructField(
"participant",
ArrayType(
ActivityDefinition_ParticipantSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Identifies the food, drug or other product being consumed or supplied in the
# activity.
StructField(
"productReference",
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Identifies the food, drug or other product being consumed or supplied in the
# activity.
StructField(
"productCodeableConcept",
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Identifies the quantity expected to be consumed at once (per dose, per meal,
# etc.).
StructField(
"quantity",
QuantitySchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Provides detailed dosage instructions in the same way that they are described
# for MedicationRequest resources.
StructField(
"dosage",
ArrayType(
DosageSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Indicates the sites on the subject's body where the procedure should be
# performed (I.e. the target sites).
StructField(
"bodySite",
ArrayType(
CodeableConceptSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Defines specimen requirements for the action to be performed, such as required
# specimens for a lab test.
StructField(
"specimenRequirement",
ArrayType(
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Defines observation requirements for the action to be performed, such as body
# weight or surface area.
StructField(
"observationRequirement",
ArrayType(
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# Defines the observations that are expected to be produced by the action.
StructField(
"observationResultRequirement",
ArrayType(
ReferenceSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
# A reference to a StructureMap resource that defines a transform that can be
# executed to produce the intent resource using the ActivityDefinition instance
# as the input.
StructField(
"transform",
canonicalSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth + 1,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
),
True,
),
# Dynamic values that will be evaluated to produce values for elements of the
# resulting resource. For example, if the dosage of a medication must be
# computed based on the patient's weight, a dynamic value would be used to
# specify an expression that calculated the weight, and the path on the request
# resource that would contain the result.
StructField(
"dynamicValue",
ArrayType(
ActivityDefinition_DynamicValueSchema.get_schema(
max_nesting_depth=max_nesting_depth,
nesting_depth=nesting_depth + 1,
nesting_list=my_nesting_list,
max_recursion_limit=max_recursion_limit,
include_extension=include_extension,
extension_fields=extension_fields,
extension_depth=extension_depth,
max_extension_depth=max_extension_depth,
include_modifierExtension=include_modifierExtension,
)
),
True,
),
]
)
if not include_extension:
schema.fields = [
c
if c.name != "extension"
else StructField("extension", StringType(), True)
for c in schema.fields
]
if not include_modifierExtension:
schema.fields = [
c
if c.name != "modifierExtension"
else StructField("modifierExtension", StringType(), True)
for c in schema.fields
]
return schema
| 53.037519
| 110
| 0.556354
| 6,267
| 69,267
| 5.928355
| 0.094303
| 0.064921
| 0.040777
| 0.063306
| 0.888757
| 0.885608
| 0.884532
| 0.861922
| 0.859123
| 0.853901
| 0
| 0.00277
| 0.405908
| 69,267
| 1,305
| 111
| 53.078161
| 0.900075
| 0.311837
| 0
| 0.782658
| 0
| 0
| 0.018541
| 0.002038
| 0
| 0
| 0
| 0
| 0
| 1
| 0.001126
| false
| 0
| 0.030405
| 0
| 0.03491
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
f975ae757cb9fa24ff4e7c97926d304b7ceb1aaa
| 2,395
|
py
|
Python
|
src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py
|
fei-protocol/checkthechain
|
ec838f3d0d44af228f45394d9ba8d8eb7f677520
|
[
"MIT"
] | 94
|
2022-02-15T19:34:49.000Z
|
2022-03-26T19:26:22.000Z
|
src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py
|
fei-protocol/checkthechain
|
ec838f3d0d44af228f45394d9ba8d8eb7f677520
|
[
"MIT"
] | 7
|
2022-03-03T02:58:47.000Z
|
2022-03-11T18:41:05.000Z
|
src/ctc/protocols/fourbyte_utils/query_utils/remote_queries.py
|
fei-protocol/checkthechain
|
ec838f3d0d44af228f45394d9ba8d8eb7f677520
|
[
"MIT"
] | 7
|
2022-02-15T17:53:07.000Z
|
2022-03-17T19:14:17.000Z
|
from __future__ import annotations
import typing
from .. import fourbyte_spec
async def async_query_function_signature_remote(
hex_signature: typing.Optional[str] = None,
*,
id: typing.Optional[int] = None,
bytes_signature: typing.Optional[str] = None,
text_signature: typing.Optional[str] = None,
) -> list[fourbyte_spec.Entry]:
import aiohttp
# get url template
if id is not None:
url_template = fourbyte_spec.endpoints['function_id']
elif hex_signature is not None:
url_template = fourbyte_spec.endpoints['function_hex']
elif text_signature is not None:
url_template = fourbyte_spec.endpoints['function_text']
else:
raise Exception()
# get url
inputs = {
'id': id,
'bytes_signature': bytes_signature,
'hex_signature': hex_signature,
'text_signature': text_signature,
}
url = url_template.format(**inputs)
# perform request
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
result = await response.json()
if id is not None:
return [result]
else:
return result['results'] # type: ignore
async def async_query_event_signature_remote(
hex_signature: typing.Optional[str] = None,
*,
id: typing.Optional[int] = None,
bytes_signature: typing.Optional[str] = None,
text_signature: typing.Optional[str] = None,
) -> list[fourbyte_spec.Entry]:
import aiohttp
# get url template
if id is not None:
url_template = fourbyte_spec.endpoints['event_id']
elif hex_signature is not None:
url_template = fourbyte_spec.endpoints['event_hex']
elif text_signature is not None:
url_template = fourbyte_spec.endpoints['event_text']
else:
raise Exception()
# get url
inputs = {
'id': id,
'bytes_signature': bytes_signature,
'hex_signature': hex_signature,
'text_signature': text_signature,
}
url = url_template.format(**inputs)
# perform request
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
result = await response.json()
if id is not None:
return [result]
else:
return result['results'] # type: ignore
| 28.176471
| 63
| 0.637161
| 278
| 2,395
| 5.284173
| 0.18705
| 0.074881
| 0.049013
| 0.106195
| 0.925119
| 0.925119
| 0.925119
| 0.925119
| 0.925119
| 0.91627
| 0
| 0
| 0.271816
| 2,395
| 84
| 64
| 28.511905
| 0.842317
| 0.044676
| 0
| 0.793651
| 0
| 0
| 0.0724
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.079365
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
32dcd153a3e78f901496a7b4e415babb5c013e48
| 25,504
|
py
|
Python
|
System/DateTime/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
System/DateTime/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
System/DateTime/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
from typing import overload
from UdonPie import System
from UdonPie.Undefined import *
class DateTime:
def __new__(cls, arg1=None):
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1):
'''
:param arg1: Int64
:type arg1: System.Int64
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2):
'''
:param arg1: Int64
:type arg1: System.Int64
:param arg2: DateTimeKind
:type arg2: System.DateTimeKind
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Undefined variable
:type arg4: SystemGlobalizationCalendar.SystemGlobalizationCalendar
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: DateTimeKind
:type arg7: System.DateTimeKind
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: Undefined variable
:type arg7: SystemGlobalizationCalendar.SystemGlobalizationCalendar
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: Int32
:type arg7: System.Int32 or int
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: Int32
:type arg7: System.Int32 or int
:param arg8: DateTimeKind
:type arg8: System.DateTimeKind
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: Int32
:type arg7: System.Int32 or int
:param arg8: Undefined variable
:type arg8: SystemGlobalizationCalendar.SystemGlobalizationCalendar
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ctor(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:param arg3: Int32
:type arg3: System.Int32 or int
:param arg4: Int32
:type arg4: System.Int32 or int
:param arg5: Int32
:type arg5: System.Int32 or int
:param arg6: Int32
:type arg6: System.Int32 or int
:param arg7: Int32
:type arg7: System.Int32 or int
:param arg8: Undefined variable
:type arg8: SystemGlobalizationCalendar.SystemGlobalizationCalendar
:param arg9: DateTimeKind
:type arg9: System.DateTimeKind
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def ctor(arg1=None, arg2=None, arg3=None, arg4=None, arg5=None, arg6=None, arg7=None, arg8=None, arg9=None):
pass
@staticmethod
def op_Addition(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: TimeSpan
:type arg2: System.TimeSpan
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def op_Subtraction(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: TimeSpan
:type arg2: System.TimeSpan
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def op_Subtraction(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: TimeSpan
:rtype: System.TimeSpan
'''
pass
@staticmethod
def op_Subtraction(arg1=None, arg2=None):
pass
@staticmethod
def op_Equality(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def op_Inequality(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def op_LessThan(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def op_LessThanOrEqual(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def op_GreaterThan(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def op_GreaterThanOrEqual(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def get_MinValue():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def get_MaxValue():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def Add(arg1):
'''
:param arg1: TimeSpan
:type arg1: System.TimeSpan
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddDays(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddHours(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddMilliseconds(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddMinutes(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddMonths(arg1):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddSeconds(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddTicks(arg1):
'''
:param arg1: Int64
:type arg1: System.Int64
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def AddYears(arg1):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def Compare(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
@overload
def CompareTo(arg1):
'''
:param arg1: Object
:type arg1: System.Object
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
@overload
def CompareTo(arg1):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def CompareTo(arg1=None):
pass
@staticmethod
def DaysInMonth(arg1, arg2):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:param arg2: Int32
:type arg2: System.Int32 or int
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
@overload
def Equals(arg1):
'''
:param arg1: Object
:type arg1: System.Object
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
@overload
def Equals(arg1):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
@overload
def Equals(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTime
:type arg2: System.DateTime
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def Equals(arg1=None, arg2=None):
pass
@staticmethod
def FromBinary(arg1):
'''
:param arg1: Int64
:type arg1: System.Int64
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def FromFileTime(arg1):
'''
:param arg1: Int64
:type arg1: System.Int64
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def FromFileTimeUtc(arg1):
'''
:param arg1: Int64
:type arg1: System.Int64
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def FromOADate(arg1):
'''
:param arg1: Double
:type arg1: System.Double
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def IsDaylightSavingTime():
'''
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def SpecifyKind(arg1, arg2):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:param arg2: DateTimeKind
:type arg2: System.DateTimeKind
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def ToBinary():
'''
:returns: Int64
:rtype: System.Int64
'''
pass
@staticmethod
def get_Date():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def get_Day():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_DayOfWeek():
'''
:returns: DayOfWeek
:rtype: System.DayOfWeek
'''
pass
@staticmethod
def get_DayOfYear():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def GetHashCode():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Hour():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Kind():
'''
:returns: DateTimeKind
:rtype: System.DateTimeKind
'''
pass
@staticmethod
def get_Millisecond():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Minute():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Month():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Now():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def get_UtcNow():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def get_Second():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def get_Ticks():
'''
:returns: Int64
:rtype: System.Int64
'''
pass
@staticmethod
def get_TimeOfDay():
'''
:returns: TimeSpan
:rtype: System.TimeSpan
'''
pass
@staticmethod
def get_Today():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def get_Year():
'''
:returns: Int32
:rtype: System.Int32
'''
pass
@staticmethod
def IsLeapYear(arg1):
'''
:param arg1: Int32
:type arg1: System.Int32 or int
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
@overload
def Parse(arg1):
'''
:param arg1: String
:type arg1: System.String or str
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def Parse(arg1, arg2):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: IFormatProvider
:type arg2: System.IFormatProvider
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def Parse(arg1, arg2, arg3):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: IFormatProvider
:type arg2: System.IFormatProvider
:param arg3: DateTimeStyles
:type arg3: System.DateTimeStyles
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def Parse(arg1=None, arg2=None, arg3=None):
pass
@staticmethod
@overload
def ParseExact(arg1, arg2, arg3):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: String
:type arg2: System.String or str
:param arg3: IFormatProvider
:type arg3: System.IFormatProvider
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ParseExact(arg1, arg2, arg3, arg4):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: String
:type arg2: System.String or str
:param arg3: IFormatProvider
:type arg3: System.IFormatProvider
:param arg4: DateTimeStyles
:type arg4: System.DateTimeStyles
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ParseExact(arg1, arg2, arg3, arg4):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: StringArray
:type arg2: System.StringArray
:param arg3: IFormatProvider
:type arg3: System.IFormatProvider
:param arg4: DateTimeStyles
:type arg4: System.DateTimeStyles
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def ParseExact(arg1=None, arg2=None, arg3=None, arg4=None):
pass
@staticmethod
@overload
def Subtract(arg1):
'''
:param arg1: DateTime
:type arg1: System.DateTime
:returns: TimeSpan
:rtype: System.TimeSpan
'''
pass
@staticmethod
@overload
def Subtract(arg1):
'''
:param arg1: TimeSpan
:type arg1: System.TimeSpan
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
def Subtract(arg1=None):
pass
@staticmethod
def ToOADate():
'''
:returns: Double
:rtype: System.Double
'''
pass
@staticmethod
def ToFileTime():
'''
:returns: Int64
:rtype: System.Int64
'''
pass
@staticmethod
def ToFileTimeUtc():
'''
:returns: Int64
:rtype: System.Int64
'''
pass
@staticmethod
def ToLocalTime():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def ToString():
'''
:returns: String
:rtype: System.String
'''
pass
@staticmethod
@overload
def ToString(arg1):
'''
:param arg1: String
:type arg1: System.String or str
:returns: String
:rtype: System.String
'''
pass
@staticmethod
@overload
def ToString(arg1):
'''
:param arg1: IFormatProvider
:type arg1: System.IFormatProvider
:returns: String
:rtype: System.String
'''
pass
@staticmethod
@overload
def ToString(arg1, arg2):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: IFormatProvider
:type arg2: System.IFormatProvider
:returns: String
:rtype: System.String
'''
pass
@staticmethod
def ToString(arg1=None, arg2=None):
pass
@staticmethod
def ToUniversalTime():
'''
:returns: DateTime
:rtype: System.DateTime
'''
pass
@staticmethod
@overload
def TryParse(arg1, arg2):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: Undefined variable
:type arg2: DateTimeRef.DateTimeRef
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
@overload
def TryParse(arg1, arg2, arg3, arg4):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: IFormatProvider
:type arg2: System.IFormatProvider
:param arg3: DateTimeStyles
:type arg3: System.DateTimeStyles
:param arg4: Undefined variable
:type arg4: DateTimeRef.DateTimeRef
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def TryParse(arg1=None, arg2=None, arg3=None, arg4=None):
pass
@staticmethod
@overload
def GetDateTimeFormats():
'''
:returns: StringArray
:rtype: System.StringArray
'''
pass
@staticmethod
@overload
def GetDateTimeFormats(arg1):
'''
:param arg1: IFormatProvider
:type arg1: System.IFormatProvider
:returns: StringArray
:rtype: System.StringArray
'''
pass
@staticmethod
@overload
def GetDateTimeFormats(arg1):
'''
:param arg1: Char
:type arg1: System.Char
:returns: StringArray
:rtype: System.StringArray
'''
pass
@staticmethod
@overload
def GetDateTimeFormats(arg1, arg2):
'''
:param arg1: Char
:type arg1: System.Char
:param arg2: IFormatProvider
:type arg2: System.IFormatProvider
:returns: StringArray
:rtype: System.StringArray
'''
pass
@staticmethod
def GetDateTimeFormats(arg1=None, arg2=None):
pass
@staticmethod
def ToLongDateString():
'''
:returns: String
:rtype: System.String
'''
pass
@staticmethod
def ToLongTimeString():
'''
:returns: String
:rtype: System.String
'''
pass
@staticmethod
def ToShortTimeString():
'''
:returns: String
:rtype: System.String
'''
pass
@staticmethod
@overload
def TryParseExact(arg1, arg2, arg3, arg4, arg5):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: String
:type arg2: System.String or str
:param arg3: IFormatProvider
:type arg3: System.IFormatProvider
:param arg4: DateTimeStyles
:type arg4: System.DateTimeStyles
:param arg5: Undefined variable
:type arg5: DateTimeRef.DateTimeRef
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
@overload
def TryParseExact(arg1, arg2, arg3, arg4, arg5):
'''
:param arg1: String
:type arg1: System.String or str
:param arg2: StringArray
:type arg2: System.StringArray
:param arg3: IFormatProvider
:type arg3: System.IFormatProvider
:param arg4: DateTimeStyles
:type arg4: System.DateTimeStyles
:param arg5: Undefined variable
:type arg5: DateTimeRef.DateTimeRef
:returns: Boolean
:rtype: System.Boolean
'''
pass
@staticmethod
def TryParseExact(arg1=None, arg2=None, arg3=None, arg4=None, arg5=None):
pass
@staticmethod
def ToShortDateString():
'''
:returns: String
:rtype: System.String
'''
pass
@staticmethod
def GetType():
'''
:returns: Type
:rtype: System.Type
'''
pass
| 22.411248
| 112
| 0.532975
| 2,386
| 25,504
| 5.683571
| 0.047779
| 0.122705
| 0.092471
| 0.067252
| 0.917631
| 0.909741
| 0.903252
| 0.885407
| 0.840941
| 0.729813
| 0
| 0.050244
| 0.373353
| 25,504
| 1,137
| 113
| 22.430959
| 0.798273
| 0.467809
| 0
| 0.752809
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294944
| false
| 0.294944
| 0.008427
| 0
| 0.30618
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
fd11dd25d86247dd8b2bcbd4dcd85f721a879756
| 14,940
|
py
|
Python
|
dairy_erp/patches/malbar_v1_0/vlcc_list.py
|
shrikant9867/Dairy_project_Daiyerp
|
635d34115f0eb2081b6835a190eda4971dbfb99f
|
[
"MIT"
] | null | null | null |
dairy_erp/patches/malbar_v1_0/vlcc_list.py
|
shrikant9867/Dairy_project_Daiyerp
|
635d34115f0eb2081b6835a190eda4971dbfb99f
|
[
"MIT"
] | null | null | null |
dairy_erp/patches/malbar_v1_0/vlcc_list.py
|
shrikant9867/Dairy_project_Daiyerp
|
635d34115f0eb2081b6835a190eda4971dbfb99f
|
[
"MIT"
] | 2
|
2020-01-19T13:27:57.000Z
|
2021-12-28T20:32:56.000Z
|
from __future__ import unicode_literals
import frappe
def vlcc_list():
return [{'Kolalambu KSS':'MILMA01_3000_0006_8516'},{'Kolalambu KSS':'MILMA01_3000_0006_8516'},
{'Kakkattiri KSS':'MILMA01_3000_0009_8664'},{'Kakkattiri KSS':'MILMA01_3000_0009_8664'},
{'Cherpulassery KSS':'MILMA01_3000_0002_6734'},{'Cherpulassery KSS':'MILMA01_3000_0002_6734'},
{'Vattenad KSS':'MILMA01_3000_0009_9628'},{'Vattenad KSS':'MILMA01_3000_0009_9628'},
{'Vattamkulam KSS':'MILMA01_3000_0012_8532'},{'Vattamkulam KSS':'MILMA01_3000_0012_8532'},
{'Varode KSS':'MILMA01_3000_0011_6671'},{'Varode KSS':'MILMA01_3000_0011_6671'},
{'Valanchery KSS':'MILMA01_3000_0010_40137'},{'Valanchery KSS':'MILMA01_3000_0010_40137'},
{'Valamaruthur KSS':'MILMA01_3000_0012_40161'},{'Valamaruthur KSS':'MILMA01_3000_0012_40161'},
{'Vadanamkurussi KSS':'MILMA01_3000_0011_9903'},{'Vadanamkurussi KSS':'MILMA01_3000_0011_9903'},
{'Vadakkan vellinezhi KSS':'MILMA01_3000_0008_50017'},{'Vadakkan vellinezhi KSS':'MILMA01_3000_0008_50017'},
{'V K kadavu KSS':'MILMA01_3000_0005_8621'},{'V K kadavu KSS':'MILMA01_3000_0005_8621'},
{'Viyatnampady KSS':'MILMA01_3000_0007_8575'},{'Viyatnampady KSS':'MILMA01_3000_0007_8575'},
{'Venginikkara KSS':'MILMA01_3000_0012_40056'},{'Venginikkara KSS':'MILMA01_3000_0012_40056'},
{'Vavannur KSS':'MILMA01_3000_0013_9148'},{'Vavannur KSS':'MILMA01_3000_0013_9148'},
{'Thuyyam KSS':'MILMA01_3000_0012_9131'},{'Thuyyam KSS':'MILMA01_3000_0012_9131'},
{'Thrithala koppam KSS':'MILMA01_3000_0013_8631'},{'Thrithala koppam KSS':'MILMA01_3000_0013_8631'},
{'Thrikkaderi KSS':'MILMA01_3000_0002_8801'},{'Thrikkaderi KSS':'MILMA01_3000_0002_8801'},
{'Thozhukkade KSS':'MILMA01_3000_0003_8869'},{'Thozhukkade KSS':'MILMA01_3000_0003_8869'},
{'Thiruvegappura KSS':'MILMA01_3000_0010_9164'},{'Thiruvegappura KSS':'MILMA01_3000_0010_9164'},
{'Thiruvazhiyode town KSS':'MILMA01_3000_0001_50181'},{'Thiruvazhiyode town KSS':'MILMA01_3000_0001_50181'},
{'Thirunavaya KSS':'MILMA01_3000_0010_40234'},{'Thirunavaya KSS':'MILMA01_3000_0010_40234'},
{'Thazhathelpadi KSS':'MILMA01_3000_0006_6378'},{'Thazhathelpadi KSS':'MILMA01_3000_0006_6378'},
{'Thavanur KSS':'MILMA01_3000_0005_9483'},{'Thavanur KSS':'MILMA01_3000_0005_9483'},
{'Tharakkal padi KSS':'MILMA01_3000_0001_8834'},{'Tharakkal padi KSS':'MILMA01_3000_0001_8834'},
{'Thanneerkkode KSS':'MILMA01_3000_0009_50106'},{'Thanneerkkode KSS':'MILMA01_3000_0009_50106'},
{'Thalakkassery KSS':'MILMA01_3000_0009_50300'},{'Thalakkassery KSS':'MILMA01_3000_0009_50300'},
{'Sree krishnapuram KSS':'MILMA01_3000_0001_9539'},{'Sree krishnapuram KSS':'MILMA01_3000_0001_9539'},
{'Purathur KSS':'MILMA01_3000_0012_40171'},{'Purathur KSS':'MILMA01_3000_0012_40171'},
{'Pottody KSS':'MILMA01_3000_0012_40625'},{'Pottody KSS':'MILMA01_3000_0012_40625'},
{'Pothannur KSS':'MILMA01_3000_0005_8011'},{'Pothannur KSS':'MILMA01_3000_0005_8011'},
{'Perunthuruthi KSS':'MILMA01_3000_0012_40676'},{'Perunthuruthi KSS':'MILMA01_3000_0012_40676'},
{'Perumparambu vanitha KSS':'MILMA01_3000_0005_7978'},{'Perumparambu vanitha KSS':'MILMA01_3000_0005_7978'},
{'Perumpadappu KSS':'MILMA01_3000_0006_40226'},{'Perumpadappu KSS':'MILMA01_3000_0006_40226'},
{'Peringode KSS':'MILMA01_3000_0003_8729'},{'Peringode KSS':'MILMA01_3000_0003_8729'},
{'Perassannur KSS':'MILMA01_3000_0010_40110'},{'Perassannur KSS':'MILMA01_3000_0010_40110'},
{'Pavukkonam KSS':'MILMA01_3000_0004_50041'},{'Pavukkonam KSS':'MILMA01_3000_0004_50041'},
{'Pattithara KSS':'MILMA01_3000_0005_8656'},{'Pattithara KSS':'MILMA01_3000_0005_8656'},
{'Pattambi vanitha KSS':'MILMA01_3000_0007_8753'},{'Pattambi vanitha KSS':'MILMA01_3000_0007_8753'},
{'Pathankulam KSS':'MILMA01_3000_0004_8788'},{'Pathankulam KSS':'MILMA01_3000_0004_8788'},
{'Panthavoor KSS':'MILMA01_3000_0006_7994'},{'Panthavoor KSS':'MILMA01_3000_0006_7994'},
{'Panayur KSS':'MILMA01_3000_0004_8941'},{'Panayur KSS':'MILMA01_3000_0004_8941'},
{'Panamanna KSS':'MILMA01_3000_0004_9547'},{'Panamanna KSS':'MILMA01_3000_0004_9547'},
{'Pallangattuchira KSS':'MILMA01_3000_0009_50191'},{'Pallangattuchira KSS':'MILMA01_3000_0009_50191'},
{'Palakkode KSS':'MILMA01_3000_0011_8818'},{'Palakkode KSS':'MILMA01_3000_0011_8818'},
{'Padiyam KSS':'MILMA01_3000_0012_40579'},{'Padiyam KSS':'MILMA01_3000_0012_40579'},
{'Padinjattumpuram KSS':'MILMA01_3000_0007_40498'},{'Padinjattumpuram KSS':'MILMA01_3000_0007_40498'},
{'Ongallur KSS':'MILMA01_3000_0004_8842'},{'Ongallur KSS':'MILMA01_3000_0004_8842'},
{'Nhangattiri KSS':'MILMA01_3000_0013_8567'},{'Nhangattiri KSS':'MILMA01_3000_0013_8567'},
{'Nannammukku KSS':'MILMA01_3000_0006_7986'},{'Nannammukku KSS':'MILMA01_3000_0006_7986'},
{'Naduvattam KSS':'MILMA01_3000_0006_8990'},{'Naduvattam KSS':'MILMA01_3000_0006_8990'},
{'Muthuthala KSS':'MILMA01_3000_0013_8648'},{'Muthuthala KSS':'MILMA01_3000_0013_8648'},
{'Munnurcode KSS':'MILMA01_3000_0002_6033'},{'Munnurcode KSS':'MILMA01_3000_0002_6033'},
{'Mundamuka KSS':'MILMA01_3000_0004_50092'},{'Mundamuka KSS':'MILMA01_3000_0004_50092'},
{'Mezhathur KSS':'MILMA01_3000_0009_8699'},{'Mezhathur KSS':'MILMA01_3000_0009_8699'},
{'Maruthur KSS':'MILMA01_3000_0007_8680'},{'Maruthur KSS':'MILMA01_3000_0007_8680'},
{'Mannannur KSS':'MILMA01_3000_0004_9717'},{'Mannannur KSS':'MILMA01_3000_0004_9717'},
{'Mannampatta KSS':'MILMA01_3000_0001_9709'},{'Mannampatta KSS':'MILMA01_3000_0001_9709'},
{'Mankery KSS':'MILMA01_3000_0010_6300'},{'Mankery KSS':'MILMA01_3000_0010_6300'},
{'Mangalamkunnu KSS':'MILMA01_3000_0002_50009'},{'Mangalamkunnu KSS':'MILMA01_3000_0002_50009'},
{'Kuttipuram north KSS':'MILMA01_3000_0010_6009'},{'Kuttipuram north KSS':'MILMA01_3000_0010_6009'},
{'Kuruvattoor KSS':'MILMA01_3000_0008_6610'},{'Kuruvattoor KSS':'MILMA01_3000_0008_6610'},
{'Kumbidy KSS':'MILMA01_3000_0012_8931'},{'Kumbidy KSS':'MILMA01_3000_0012_8931'},
{'Kulakkad KSS':'MILMA01_3000_0008_6696'},{'Kulakkad KSS':'MILMA01_3000_0008_6696'},
{'Kothachira KSS':'MILMA01_3000_0003_8885'},{'Kothachira KSS':'MILMA01_3000_0003_8885'},
{'Koonathara KSS':'MILMA01_3000_0004_8850'},{'Koonathara KSS':'MILMA01_3000_0004_8850'},
{'Koonathara KSS':'MILMA01_3000_0004_8850'},{'Koonathara KSS':'MILMA01_3000_0004_8850'},
{'Koodallur anakkara KSS':'MILMA01_3000_0005_9156'},{'Koodallur anakkara KSS':'MILMA01_3000_0005_9156'},
{'Kokkur KSS':'MILMA01_3000_0009_7961'},{'Kokkur KSS':'MILMA01_3000_0009_7961'},
{'Kodumunda KSS':'MILMA01_3000_0013_50408'},{'Kodumunda KSS':'MILMA01_3000_0013_50408'},
{'Kodumudi KSS':'MILMA01_3000_0010_40129'},{'Kodumudi KSS':'MILMA01_3000_0010_40129'},
{'Kodikunnu vanitha KSS':'MILMA01_3000_0010_8591'},{'Kodikunnu vanitha KSS':'MILMA01_3000_0010_8591'},
{'Kodalur mele pattambi KSS':'MILMA01_3000_0013_9393'},{'Kodalur mele pattambi KSS':'MILMA01_3000_0013_9393'},
{'Karalmanna KSS':'MILMA01_3000_0001_50051'},{'Karalmanna KSS':'MILMA01_3000_0001_50051'},
{'Kalluvazhi KSS':'MILMA01_3000_0002_50361'},{'Kalluvazhi KSS':'MILMA01_3000_0002_50361'},
{'Kanjirathani KSS':'MILMA01_3000_0009_8710'},{'Kanjirathani KSS':'MILMA01_3000_0009_8710'},
{'Kanhiyoor KSS':'MILMA01_3000_0006_8524'},{'Kanhiyoor KSS':'MILMA01_3000_0006_8524'},
{'Kaladi KSS':'MILMA01_3000_0005_9563'},{'Kaladi KSS':'MILMA01_3000_0005_9563'},
{'Kakkayam KSS':'MILMA01_3000_0012_50297'},{'Kakkayam KSS':'MILMA01_3000_0012_50297'},
{'Kailiyade KSS':'MILMA01_3000_0011_8974'},{'Kailiyade KSS':'MILMA01_3000_0011_8974'},
{'Kadambur KSS':'MILMA01_3000_0002_50262'},{'Kadambur KSS':'MILMA01_3000_0002_50262'},
{'Kadakkasseri KSS':'MILMA01_3000_0005_6092'},{'Kadakkasseri KSS':'MILMA01_3000_0005_6092'},
{'Ezhumangade Vanitha KSS':'MILMA01_3000_0003_8745'},{'Ezhumangade Vanitha KSS':'MILMA01_3000_0003_8745'},
{'Chundanpotta KSS':'MILMA01_3000_0007_8893'},{'Chundanpotta KSS':'MILMA01_3000_0007_8893'},
{'Chuduvalathur KSS':'MILMA01_3000_0004_6645'},{'Chuduvalathur KSS':'MILMA01_3000_0004_6645'},
{'Chorottoor KSS':'MILMA01_3000_0011_50254'},{'Chorottoor KSS':'MILMA01_3000_0011_50254'},
{'Chethalloor KSS':'MILMA01_3000_0008_50211'},{'Chethalloor KSS':'MILMA01_3000_0008_50211'},
{'Chekkode KSS':'MILMA01_3000_0005_9611'},{'Chekkode KSS':'MILMA01_3000_0005_9611'},
{'Chazhiyattiri KSS':'MILMA01_3000_0003_9857'},{'Chazhiyattiri KSS':'MILMA01_3000_0003_9857'},
{'Athani KSS':'MILMA01_3000_0006_6191'},{'Athani KSS':'MILMA01_3000_0006_6191'},
{'Athaloor KSS':'MILMA01_3000_0005_40641'},{'Athaloor KSS':'MILMA01_3000_0005_40641'},
{'Ambalavattom Panamanna KSS':'MILMA01_3000_0004_6726'},{'Ambalavattom Panamanna KSS':'MILMA01_3000_0004_6726'}]
# vmcr_list = [{'VMCR- 1811-00163':'MILMA01_3000_0001_50173'},
# {'VMCR- 1811-00164':'MILMA01_3000_0001_50416'},
# {'VMCR- 1811-00171':'MILMA01_3000_0002_50262'},
# {'VMCR- 1811-00170':'MILMA01_3000_0002_50361'},
# {'VMCR- 1811-00169':'MILMA01_3000_0002_50327'},
# {'VMCR- 1811-00179':'MILMA01_3000_0003_8869'},
# {'VMCR- 1811-00219':'MILMA01_3000_0005_6092'},
# {'VMCR- 1811-00218':'MILMA01_3000_0005_9563'},
# {'VMCR- 1811-00215':'MILMA01_3000_0005_8011'},
# {'VMCR- 1811-00232':'MILMA01_3000_0006_40226'},
# {'VMCR- 1811-00159':'MILMA01_3000_0007_8907'},
# {'VMCR- 1811-00156':'MILMA01_3000_0007_8893'},
# {'VMCR- 1811-00158':'MILMA01_3000_0007_40498'},
# {'VMCR- 1811-00157':'MILMA01_3000_0007_8575'},
# {'VMCR- 1811-00200':'MILMA01_3000_0009_7961'},
# {'VMCR- 1811-00198':'MILMA01_3000_0009_50191'},
# {'VMCR- 1811-00246':'MILMA01_3000_0010_40730'},
# {'VMCR- 1811-00201':'MILMA01_3000_0011_50254'},
# {'VMCR- 1811-00217':'MILMA01_3000_0012_40641'},
# {'VMCR- 1811-00238':'MILMA01_3000_0012_40668'},
# {'VMCR- 1811-00240':'MILMA01_3000_0012_50297'},
# {'VMCR- 1811-00235':'MILMA01_3000_0012_8931'},
# {'VMCR- 1811-00241':'MILMA01_3000_0012_40579'},
# {'VMCR- 1811-00242':'MILMA01_3000_0012_40676'},
# {'VMCR- 1811-00233':'MILMA01_3000_0012_8559'},
# {'VMCR- 1811-00209':'MILMA01_3000_0013_8613'}]
vmcr_list = [{'VMCR- 1811-00234':'MILMA01_3000_0012_8540'},
{'VMCR- 1811-00159':'MILMA01_3000_0012_8907'},
{'VMCR- 1811-00204':'MILMA01_3000_0011_50114'},
{'VMCR- 1811-00189':'MILMA01_3000_0004_6726'},
{'VMCR- 1811-00217':'MILMA01_3000_0007_40641'},
{'VMCR- 1811-00231':'MILMA01_3000_0006_6191'},
{'VMCR- 1811-00175':'MILMA01_3000_0008_8771'},
{'VMCR- 1811-00206':'MILMA01_3000_0011_8923'},
{'VMCR- 1811-00182':'MILMA01_3000_0003_9172'},
{'VMCR- 1811-00167':'MILMA01_3000_002_8761'},
{'VMCR- 1811-00238':'MILMA01_3000_0012_40668'},
{'VMCR- 1811-00180':'MILMA01_3000_0003_8737'},
{'VMCR- 1811-00178':'MILMA01_3000_0003_9857'},
{'VMCR- 1811-00224':'MILMA01_3000_005_9611'},
{'VMCR- 1811-00174':'MILMA01_3000_002_6734'},
{'VMCR- 1811-00152':'MILMA01_3000_0008_50211'},
{'VMCR- 1811-00201':'MILMA01_3000_0011_50254'},
{'VMCR- 1811-00185':'MILMA01_3000_0004_6645'},
{'VMCR- 1811-00156':'MILMA01_3000_0007_8893'},
{'VMCR- 1811-00176':'MILMA01_3000_0003_8745'},
{'VMCR- 1811-00219':'MILMA01_3000_0005_6092'},
{'VMCR- 1811-00171':'MILMA01_3000_0002_50262'},
{'VMCR- 1811-00207':'MILMA01_3000_0011_8974'},
{'VMCR- 1811-00196':'MILMA01_3000_0009_8664'},
{'VMCR- 1811-00240':'MILMA01_3000_0012_50297'},
{'VMCR- 1811-00218':'MILMA01_3000_0005_9563'},
{'VMCR- 1811-00170':'MILMA01_3000_0002_50361'},
{'VMCR- 1811-00229':'MILMA01_3000_0006_8524'},
{'VMCR- 1811-00199':'MILMA01_3000_0009_8710'},
{'VMCR- 1811-00183':'MILMA01_3000_001_50051'},
{'VMCR- 1811-00169':'MILMA01_3000_0002_50327'},
{'VMCR- 1811-00208':'MILMA01_3000_013_9393'},
{'VMCR- 1811-00243':'MILMA01_3000_010_8591'},
{'VMCR- 1811-00245':'MILMA01_3000_010_40129'},
{'VMCR- 1811-00212':'MILMA01_3000_013_50408'},
{'VMCR- 1811-00200':'MILMA01_3000_0009_7961'},
{'VMCR- 1811-00226':'MILMA01_3000_0006_8516'},
{'VMCR- 1811-00222':'MILMA01_3000_005_9156'},
{'VMCR- 1811-00192':'MILMA01_3000_0004_8850'},
{'VMCR- 1811-00181':'MILMA01_3000_0003_8885'},
{'VMCR- 1811-00150':'MILMA01_3000_0008_6696'},
{'VMCR- 1811-00235':'MILMA01_3000_0012_8931'},
{'VMCR- 1811-00223':'MILMA01_3000_005_50076'},
{'VMCR- 1811-00151':'MILMA01_3000_0008_6610'},
{'VMCR- 1811-00248':'MILMA01_3000_010_6009'},
{'VMCR- 1811-00168':'MILMA01_3000_002_50009'},
{'VMCR- 1811-00247':'MILMA01_3000_010_6300'},
{'VMCR- 1811-00166':'MILMA01_3000_001_9709'},
{'VMCR- 1811-00186':'MILMA01_3000_0004_9717'},
{'VMCR- 1811-00155':'MILMA01_3000_007_8680'},
{'VMCR- 1811-00194':'MILMA01_3000_0009_8699'},
{'VMCR- 1811-00246':'MILMA01_3000_0010_40730'},
{'VMCR- 1811-00184':'MILMA01_3000_0004_50092'},
{'VMCR- 1811-00172':'MILMA01_3000_002_6033'},
{'VMCR- 1811-00213':'MILMA01_3000_013_8648'},
{'VMCR- 1811-00225':'MILMA01_3000_0006_8990'},
{'VMCR- 1811-00228':'MILMA01_3000_0006_7986'},
{'VMCR- 1811-00210':'MILMA01_3000_013_8567'},
{'VMCR- 1811-00193':'MILMA01_3000_0004_8842'},
{'VMCR- 1811-00158':'MILMA01_3000_0007_40498'},
{'VMCR- 1811-00241':'MILMA01_3000_0012_40579'},
{'VMCR- 1811-00205':'MILMA01_3000_0011_8818'},
{'VMCR- 1811-00198':'MILMA01_3000_0009_50191'},
{'VMCR- 1811-00188':'MILMA01_3000_0004_9547'},
{'VMCR- 1811-00187':'MILMA01_3000_0004_8941'},
{'VMCR- 1811-00227':'MILMA01_3000_0006_7994'},
{'VMCR- 1811-00190':'MILMA01_3000_0004_8788'},
{'VMCR- 1811-00160':'MILMA01_3000_007_8753'},
{'VMCR- 1811-00221':'MILMA01_3000_005_8656'},
{'VMCR- 1811-00191':'MILMA01_3000_0004_50041'},
{'VMCR- 1811-00249':'MILMA01_3000_010_40110'},
{'VMCR- 1811-00177':'MILMA01_3000_0003_8729'},
{'VMCR- 1811-00232':'MILMA01_3000_0006_40226'},
{'VMCR- 1811-00216':'MILMA01_3000_005_7978'},
{'VMCR- 1811-00242':'MILMA01_3000_0012_40676'},
{'VMCR- 1811-00215':'MILMA01_3000_0005_8011'},
{'VMCR- 1811-00165':'MILMA01_3000_001_9539'},
{'VMCR- 1811-00197':'MILMA01_3000_0009_50300'},
{'VMCR- 1811-00161':'MILMA01_3000_001_8834'},
{'VMCR- 1811-00230':'MILMA01_3000_0006_6378'},
{'VMCR- 1811-00250':'MILMA01_3000_010_40234'},
{'VMCR- 1811-00163':'MILMA01_3000_0001_50173'},
{'VMCR- 1811-00162':'MILMA01_3000_001_50181'},
{'VMCR- 1811-00244':'MILMA01_3000_010_9164'},
{'VMCR- 1811-00179':'MILMA01_3000_0003_8869'},
{'VMCR- 1811-00173':'MILMA01_3000_002_8801'},
{'VMCR- 1811-00233':'MILMA01_3000_00121_8559'},
{'VMCR- 1811-00211':'MILMA01_3000_013_8631'},
{'VMCR- 1811-00237':'MILMA01_3000_0012_9131'},
{'VMCR- 1811-00220':'MILMA01_3000_005_8621'},
{'VMCR- 1811-00153':'MILMA01_3000_0008_50017'},
{'VMCR- 1811-00154':'MILMA01_3000_0008_50017'},
{'VMCR- 1811-00202':'MILMA01_3000_0011_9903'},
{'VMCR- 1811-00164':'MILMA01_3000_0001_50416'},
{'VMCR- 1811-00203':'MILMA01_3000_0011_6671'},
{'VMCR- 1811-00239':'MILMA01_3000_0012_8532'},
{'VMCR- 1811-00209':'MILMA01_3000_0013_8613'},
{'VMCR- 1811-00195':'MILMA01_3000_0009_9628'},
{'VMCR- 1811-00214':'MILMA01_3000_013_9148'},
{'VMCR- 1811-00236':'MILMA01_3000_0012_40056'},
{'VMCR- 1811-00157':'MILMA01_3000_0007_8575'}]
| 66.4
| 112
| 0.746252
| 2,028
| 14,940
| 5.036489
| 0.169132
| 0.332779
| 0.249462
| 0.03877
| 0.775113
| 0.761112
| 0.280399
| 0.183474
| 0.162522
| 0.012532
| 0
| 0.398375
| 0.069009
| 14,940
| 225
| 113
| 66.4
| 0.33597
| 0.083601
| 0
| 0.010256
| 0
| 0
| 0.780022
| 0.459788
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005128
| false
| 0
| 0.010256
| 0
| 0.020513
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd125ef6889e668bbd01caab74e5711dbc15088c
| 76
|
py
|
Python
|
goldtest/__init__.py
|
vadimg/goldtest
|
809a4d5703d75edafbd4ab737f4088fc027d75d4
|
[
"MIT"
] | null | null | null |
goldtest/__init__.py
|
vadimg/goldtest
|
809a4d5703d75edafbd4ab737f4088fc027d75d4
|
[
"MIT"
] | null | null | null |
goldtest/__init__.py
|
vadimg/goldtest
|
809a4d5703d75edafbd4ab737f4088fc027d75d4
|
[
"MIT"
] | null | null | null |
from goldtest import TestCase # noqa
from goldtest import Goldtest # noqa
| 25.333333
| 37
| 0.789474
| 10
| 76
| 6
| 0.5
| 0.4
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.184211
| 76
| 2
| 38
| 38
| 0.967742
| 0.118421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b5ef3629621f3fe0dc6580066cd16821f6133fab
| 4,915
|
py
|
Python
|
tests/functional/test_scoping/test_model_repository.py
|
stanislaw/textX
|
cccb0e0680635e884841f7ef929b1234131716d3
|
[
"MIT"
] | 346
|
2018-12-30T18:47:09.000Z
|
2022-03-31T23:07:13.000Z
|
tests/functional/test_scoping/test_model_repository.py
|
stanislaw/textX
|
cccb0e0680635e884841f7ef929b1234131716d3
|
[
"MIT"
] | 183
|
2018-12-27T17:22:28.000Z
|
2022-03-28T08:31:09.000Z
|
tests/functional/test_scoping/test_model_repository.py
|
stanislaw/textX
|
cccb0e0680635e884841f7ef929b1234131716d3
|
[
"MIT"
] | 46
|
2019-01-01T07:58:04.000Z
|
2022-01-01T14:15:38.000Z
|
from __future__ import unicode_literals
from os.path import dirname, abspath, join
import textx.scoping.providers as scoping_providers
from textx import metamodel_from_file
from textx.scoping import is_file_included
def test_inclusion_check_1():
"""
Test to demonstrate how to check if a file is used by a model.
This can be used by an IDE to determine, if a model has to be
updated/reloaded.
"""
#################################
# META MODEL DEF
#################################
my_meta_model = metamodel_from_file(
join(abspath(dirname(__file__)), 'issue66', 'task_specification.tx'))
search_path = [
join(abspath(dirname(__file__)), 'issue66', 'somewhere1'), # assembly
join(abspath(dirname(__file__)), 'issue66', 'somewhere2') # position
]
my_meta_model.register_scope_providers(
{"*.*": scoping_providers.PlainNameImportURI(search_path=search_path)})
#################################
# MODEL PARSING
#################################
# This model load two files
# * one file exists locally and in a search path --> the local one should
# be preferred.
# * one only exists locally.
m = my_meta_model.model_from_file(
join(abspath(dirname(__file__)),
'issue66', 'assembly_car1.prog'))
# the model file itself is "included" (special case)
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66',
'assembly_car1.prog'),
m
)
# another model file
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'assembly_car3.prog'),
m
)
# file in folder "local"
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'mylib', 'local.tasks'),
m
)
# file in folder "local"
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'mylib', 'position.tasks'),
m
)
# distant file (part of search path)
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'somewhere1',
'mylib', 'assembly.tasks'),
m
)
# distant file (part of search path)
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'somewhere2',
'mylib', 'position.tasks'),
m
)
#################################
# END
#################################
def test_inclusion_check_2():
"""
Test to demonstrate how to check if a file is used by a model.
This can be used by an IDE to determine, if a model has to be
updated/reloaded.
"""
#################################
# META MODEL DEF
#################################
my_meta_model = metamodel_from_file(
join(abspath(dirname(__file__)), 'issue66', 'task_specification.tx'))
search_path = [
join(abspath(dirname(__file__)), 'issue66', 'somewhere1'), # assembly
join(abspath(dirname(__file__)), 'issue66', 'somewhere2') # position
]
my_meta_model.register_scope_providers(
{"*.*": scoping_providers.PlainNameImportURI(search_path=search_path)})
#################################
# MODEL PARSING
#################################
# This model load two files
# * one file exists locally and in a search path --> the local one should
# be preferred.
# * one only exists locally.
m = my_meta_model.model_from_file(
join(abspath(dirname(__file__)),
'issue66', 'local', 'assembly_car3.prog'))
# the model file itself is "included" (special case)
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'assembly_car3.prog'),
m
)
# local file
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'mylib', 'local.tasks'),
m
)
# local file
assert is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'mylib', 'position.tasks'),
m
)
# distant file
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'somewhere1',
'mylib', 'assembly.tasks'),
m
)
# distant file
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'somewhere2',
'mylib', 'position.tasks'),
m
)
#################################
# END
#################################
def test_no_tx_model_repos():
from textx import metamodel_from_str
mm = metamodel_from_str("Model: 'A';")
m = mm.model_from_str("A")
assert not is_file_included(
join(abspath(dirname(__file__)), 'issue66', 'local',
'mylib', 'position.tasks'),
m
)
| 30.91195
| 79
| 0.562157
| 525
| 4,915
| 4.940952
| 0.171429
| 0.084811
| 0.138782
| 0.169622
| 0.900925
| 0.879337
| 0.879337
| 0.879337
| 0.868543
| 0.861989
| 0
| 0.014966
| 0.252289
| 4,915
| 158
| 80
| 31.107595
| 0.690884
| 0.194303
| 0
| 0.55914
| 0
| 0
| 0.164804
| 0.012038
| 0
| 0
| 0
| 0
| 0.129032
| 1
| 0.032258
| false
| 0
| 0.086022
| 0
| 0.11828
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 7
|
bd08d619c7bea561b026f933f1e4ba5091c354d8
| 2,935
|
py
|
Python
|
test/test_modify_group.py
|
insideout-oss/python_training
|
4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8
|
[
"Apache-2.0"
] | null | null | null |
test/test_modify_group.py
|
insideout-oss/python_training
|
4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8
|
[
"Apache-2.0"
] | null | null | null |
test/test_modify_group.py
|
insideout-oss/python_training
|
4ca8df1e8dea5e0e3cce99fc72db5a6c01b1bce8
|
[
"Apache-2.0"
] | null | null | null |
from random import randrange
import random
from model.group import Group
def test_modify_some_group(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(name="", header="", footer=""))
old_groups = db.get_group_list()
group_old = random.choice(old_groups)
group_mdf = Group(name="name_edited", header="header_edited", footer="footer_edited", id=group_old.id)
app.group.modify_group_by_id(group_mdf, group_old.id)
new_groups = db.get_group_list()
old_groups = list(map(lambda x: x if x != group_old else group_mdf, old_groups))
assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
if check_ui:
assert sorted(new_groups, key=Group.id_or_max) == sorted(app.group.get_group_list(), key=Group.id_or_max)
def test_modify_some_group_name(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(name="Needs to be modified"))
old_groups = db.get_group_list()
group_old = random.choice(old_groups)
group = Group(name="name_edited")
group.id = group_old.id
app.group.modify_group_by_id(group, group_old.id)
new_groups = db.get_group_list()
old_groups = list(map(lambda x: x if x != group_old else group, old_groups))
assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
if check_ui:
assert sorted(new_groups, key=Group.id_or_max) == sorted(app.group.get_group_list(), key=Group.id_or_max)
def test_modify_some_group_header(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(header="Needs to be modified"))
old_groups = db.get_group_list()
group_old = random.choice(old_groups)
group = Group(header="Header modified")
group.id = group_old.id
app.group.modify_group_by_id(group, group_old.id)
new_groups = db.get_group_list()
old_groups = list(map(lambda x: x if x != group_old else group, old_groups))
assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
if check_ui:
assert sorted(new_groups, key=Group.id_or_max) == sorted(app.group.get_group_list(), key=Group.id_or_max)
def test_modify_some_group_footer(app, db, check_ui):
if len(db.get_group_list()) == 0:
app.group.create(Group(footer="Needs to be modified"))
old_groups = db.get_group_list()
group_old = random.choice(old_groups)
group_mdf = Group(footer="Header modified")
group_mdf.id = group_old.id
app.group.modify_group_by_id(group_mdf, group_old.id)
new_groups = db.get_group_list()
old_groups = list(map(lambda x: x if x != group_old else group_mdf, old_groups))
assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
if check_ui:
assert sorted(new_groups, key=Group.id_or_max) == sorted(app.group.get_group_list(), key=Group.id_or_max)
| 46.587302
| 113
| 0.71925
| 496
| 2,935
| 3.9375
| 0.08871
| 0.092166
| 0.09831
| 0.09831
| 0.890425
| 0.87916
| 0.87916
| 0.87916
| 0.87916
| 0.87916
| 0
| 0.001616
| 0.156388
| 2,935
| 62
| 114
| 47.33871
| 0.787157
| 0
| 0
| 0.703704
| 0
| 0
| 0.047019
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 1
| 0.074074
| false
| 0
| 0.055556
| 0
| 0.12963
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
1fcc676893c0a90ec01eaef7c1d6ba11eb3c6a17
| 26,603
|
py
|
Python
|
attacks/injection.py
|
LFhase/GIA-HAO
|
d07e7dd76a86686faae4ebfc60b91128c170dbd4
|
[
"MIT"
] | 11
|
2022-01-29T12:01:51.000Z
|
2022-03-28T07:35:42.000Z
|
attacks/injection.py
|
LFhase/GIA-HAO
|
d07e7dd76a86686faae4ebfc60b91128c170dbd4
|
[
"MIT"
] | null | null | null |
attacks/injection.py
|
LFhase/GIA-HAO
|
d07e7dd76a86686faae4ebfc60b91128c170dbd4
|
[
"MIT"
] | null | null | null |
from operator import add
import random
from attacks import utils
import torch.nn.functional as F
import numpy as np
import torch
import scipy.sparse as sp
from attacks.attack import gcn_norm
def dice_injection(adj, n_inject, n_edge_max, origin_labels, target_idx, device):
n_classes = max(origin_labels)+1
class_pos = [[] for i in range(n_classes)]
for i in origin_labels:
class_id = origin_labels[i]
class_pos[class_id].append(i)
direct_edges = n_edge_max//2 # number of edges connect to target nodes
bridge_edges = n_edge_max-direct_edges # number of edges connect to different classes
n_node = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.shape[0]
new_edges_x = []
new_edges_y = []
new_data = []
# connect injected nodes to target nodes
for i in range(n_inject):
islinked = np.zeros(n_test)
for j in range(direct_edges):
x = i + n_node
yy = random.randint(0, n_test - 1)
while islinked[yy] > 0:
yy = random.randint(0, n_test - 1)
islinked[yy] = 1
y = target_idx[yy]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_node))
add2 = sp.csr_matrix((n_node + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
def random_class_injection(adj, n_inject, n_edge_max, origin_labels, target_idx, device, not_full=False):
n_classes = max(origin_labels)+1
class_pos = [[] for i in range(n_classes)]
min_class_len = len(target_idx)
for (i,pos) in enumerate(target_idx):
class_id = origin_labels[pos]
class_pos[class_id].append(i)
for c in class_pos:
min_class_len = min(min_class_len,len(class_pos[class_id]))
if not not_full:
assert min_class_len >= n_edge_max, print(f"min_class_len {min_class_len}")
n_node = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.shape[0]
new_edges_x = []
new_edges_y = []
new_data = []
for i in range(n_inject):
islinked = np.zeros(n_test)
class_id = random.randint(0, n_classes-1)
n_connections = min(len(class_pos[class_id]),n_edge_max)
for j in range(n_connections):
x = i + n_node
yy = random.randint(0, len(class_pos[class_id]) - 1)
while islinked[class_pos[class_id][yy]] > 0:
yy = random.randint(0, len(class_pos[class_id]) - 1)
islinked[class_pos[class_id][yy]] = 1
y = target_idx[class_pos[class_id][yy]]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_node))
add2 = sp.csr_matrix((n_node + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
def random_injection(adj, n_inject, n_edge_max, target_idx, device):
n_node = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.shape[0]
new_edges_x = []
new_edges_y = []
new_data = []
for i in range(n_inject):
islinked = np.zeros(n_test)
for j in range(n_edge_max):
x = i + n_node
yy = random.randint(0, n_test - 1)
while islinked[yy] > 0:
yy = random.randint(0, n_test - 1)
# BUG: never duplicating linked nodes
# solution
islinked[yy] = 1
y = target_idx[yy]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_node))
add2 = sp.csr_matrix((n_node + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
def tdgia_injection(adj, n_inject, n_edge_max, origin_labels, current_pred,
target_idx, device, self_connect_ratio=0.0, weight1=0.9, weight2=0.1):
n_current = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.size(0)
n_classes = origin_labels.max() + 1
n_connect = int(n_edge_max * (1 - self_connect_ratio))
n_self_connect = int(n_edge_max * self_connect_ratio)
new_edges_x = []
new_edges_y = []
new_data = []
add_score = np.zeros(n_test)
deg = np.array(adj.sum(axis=0))[0] + 1.0
for i in range(n_test):
it = target_idx[i]
label = origin_labels[it]
score = current_pred[it][label] + 2
add_score1 = score / deg[it]
add_score2 = score / np.sqrt(deg[it])
sc = weight1 * add_score1 + weight2 * add_score2 / np.sqrt(n_connect + n_self_connect)
add_score[i] = sc
# higher score is better
sorted_rank = add_score.argsort()
sorted_rank = sorted_rank[-n_inject * n_connect:]
labelgroup = np.zeros(n_classes)
# separate them by origin_labels
labelil = []
for i in range(n_classes):
labelil.append([])
random.shuffle(sorted_rank)
for i in sorted_rank:
label = origin_labels[target_idx[i]]
labelgroup[label] += 1
labelil[label].append(i)
pos = np.zeros(n_classes)
for i in range(n_inject):
for j in range(n_connect):
smallest = 1
small_id = 0
for k in range(n_classes):
if len(labelil[k]) > 0:
if (pos[k] / len(labelil[k])) < smallest:
smallest = pos[k] / len(labelil[k])
small_id = k
# print((k,smallest))
# if smallest == 1:
# for k in range(n_classes):
# print((pos[k],len(labelil[k])))
# print((len(target_idx),n_inject, n_edge_max))
tu = labelil[small_id][int(pos[small_id])]
pos[small_id] += 1
x = n_current + i
y = target_idx[tu]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
is_linked = np.zeros((n_inject, n_inject))
for i in range(n_inject):
rnd_times = 100
while np.sum(is_linked[i]) < n_self_connect and rnd_times > 0:
x = i + n_current
rnd_times = 100
yy = random.randint(0, n_inject - 1)
while (np.sum(is_linked[yy]) >= n_self_connect or yy == i or
is_linked[i][yy] == 1) and (rnd_times > 0):
yy = random.randint(0, n_inject - 1)
rnd_times -= 1
if rnd_times > 0:
y = n_current + yy
is_linked[i][yy] = 1
is_linked[yy][i] = 1
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_current))
add2 = sp.csr_matrix((n_current + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
def atdgia_injection(adj, n_inject, n_edge_max, origin_labels, current_pred,
target_idx, device, self_connect_ratio=0.0, weight1=0.9, weight2=0.1):
n_current = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.size(0)
n_classes = origin_labels.max() + 1
n_connect = int(n_edge_max * (1 - self_connect_ratio))
n_self_connect = int(n_edge_max * self_connect_ratio)
new_edges_x = []
new_edges_y = []
new_data = []
add_score = np.zeros(n_test)
deg = np.array(adj.sum(axis=0))[0] + 1.0
for i in range(n_test):
it = target_idx[i]
label = origin_labels[it]
cur_label = current_pred[it].argmax()
if cur_label==label:
score = 1.0 - current_pred[it][label]
else:
score = 0
# score = current_pred[it][label] + 2
add_score1 = score / deg[it]
add_score2 = score / np.sqrt(deg[it])
sc = weight1 * add_score1 + weight2 * add_score2 / np.sqrt(n_connect + n_self_connect)
add_score[i] = sc
# higher score is better
sorted_rank = add_score.argsort()
sorted_rank = sorted_rank[-n_inject * n_connect:]
labelgroup = np.zeros(n_classes)
# separate them by origin_labels
labelil = []
for i in range(n_classes):
labelil.append([])
random.shuffle(sorted_rank)
for i in sorted_rank:
label = origin_labels[target_idx[i]]
labelgroup[label] += 1
labelil[label].append(i)
pos = np.zeros(n_classes)
for i in range(n_inject):
for j in range(n_connect):
smallest = 1
small_id = 0
for k in range(n_classes):
if len(labelil[k]) > 0:
if (pos[k] / len(labelil[k])) < smallest:
smallest = pos[k] / len(labelil[k])
small_id = k
# print((k,smallest))
# if smallest == 1:
# for k in range(n_classes):
# print((pos[k],len(labelil[k])))
# print((len(target_idx),n_inject, n_edge_max))
tu = labelil[small_id][int(pos[small_id])]
pos[small_id] += 1
x = n_current + i
y = target_idx[tu]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
is_linked = np.zeros((n_inject, n_inject))
for i in range(n_inject):
rnd_times = 100
while np.sum(is_linked[i]) < n_self_connect and rnd_times > 0:
x = i + n_current
rnd_times = 100
yy = random.randint(0, n_inject - 1)
while (np.sum(is_linked[yy]) >= n_self_connect or yy == i or
is_linked[i][yy] == 1) and (rnd_times > 0):
yy = random.randint(0, n_inject - 1)
rnd_times -= 1
if rnd_times > 0:
y = n_current + yy
is_linked[i][yy] = 1
is_linked[yy][i] = 1
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_current))
add2 = sp.csr_matrix((n_current + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
def tdgia_ranking_select(adj, n_inject, n_edge_max, origin_labels, current_pred, target_idx, ratio=0.5, neg=False, weight1=0.9, weight2=0.1):
# ranking with tdgia vulnerability score
target_idx = target_idx.cpu()
n_test = target_idx.size(0)
n_connect = n_edge_max
add_score = np.zeros(n_test)
deg = np.array(adj.sum(-1).long().cpu()) + 1.0
for i in range(n_test):
it = target_idx[i]
label = origin_labels[it]
cur_label = current_pred[it].argmax()
score = current_pred[it][label] + 2
add_score1 = score / deg[it]
add_score2 = score / np.sqrt(deg[it])
sc = weight1 * add_score1 + weight2 * add_score2 / np.sqrt(n_connect)
add_score[i] = sc
if neg:
add_score = -add_score
sorted_rank = add_score.argsort()
sel_len = int(len(target_idx)*ratio)
sorted_rank = sorted_rank[-sel_len:]
sel_idx = target_idx[sorted_rank]
return sel_idx
def atdgia_ranking_select(adj, n_inject, n_edge_max, origin_labels, current_pred, target_idx, ratio=0.5, neg=False, weight1=0.9, weight2=0.1):
# ranking with tdgia+ vulnerability score
target_idx = target_idx.cpu()
n_test = target_idx.size(0)
n_connect = n_edge_max
add_score = np.zeros(n_test)
deg = np.array(adj.sum(-1).long().cpu()) + 1.0
for i in range(n_test):
it = target_idx[i]
label = origin_labels[it]
cur_label = current_pred[it].argmax()
if cur_label==label:
score = 1.0 - current_pred[it][label]
else:
score = 0
# score = current_pred[it][label] + 2
add_score1 = score / deg[it]
add_score2 = score / np.sqrt(deg[it])
sc = weight1 * add_score1 + weight2 * add_score2 / np.sqrt(n_connect)
add_score[i] = sc
if neg:
add_score = -add_score
sorted_rank = add_score.argsort()
sel_len = int(len(target_idx)*ratio)
sorted_rank = sorted_rank[-sel_len:]
sel_idx = target_idx[sorted_rank]
return sel_idx
def tdgia_class_injection(adj, n_inject, n_edge_max, origin_labels, current_pred,
target_idx, device, weight1=0.9, weight2=0.1):
n_current = adj.size(0)
adj=utils.tensor_to_adj(adj)
target_idx = target_idx.cpu()
n_test = target_idx.size(0)
n_classes = origin_labels.max() + 1
n_connect = n_edge_max
new_edges_x = []
new_edges_y = []
new_data = []
add_score = np.zeros(n_test)
deg = np.array(adj.sum(axis=0))[0] + 1.0
for i in range(n_test):
it = target_idx[i]
label = origin_labels[it]
score = current_pred[it][label] + 2
add_score1 = score / deg[it]
add_score2 = score / np.sqrt(deg[it])
sc = weight1 * add_score1 + weight2 * add_score2 / np.sqrt(n_connect + n_self_connect)
add_score[i] = sc
# higher score is better
sorted_rank = add_score.argsort()
sorted_rank = sorted_rank[-n_inject * n_connect:]
labelgroup = np.zeros(n_classes)
# separate them by origin_labels
labelil = []
for i in range(n_classes):
labelil.append([])
random.shuffle(sorted_rank)
for i in sorted_rank:
label = origin_labels[target_idx[i]]
labelgroup[label] += 1
labelil[label].append(i)
pos = np.zeros(n_classes)
for i in range(n_inject):
for j in range(n_connect):
smallest = 1
small_id = 0
for k in range(n_classes):
if len(labelil[k]) > 0:
if (pos[k] / len(labelil[k])) < smallest:
smallest = pos[k] / len(labelil[k])
small_id = k
# print((k,smallest))
# if smallest == 1:
# for k in range(n_classes):
# print((pos[k],len(labelil[k])))
# print((len(target_idx),n_inject, n_edge_max))
tu = labelil[small_id][int(pos[small_id])]
pos[small_id] += 1
x = n_current + i
y = target_idx[tu]
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
is_linked = np.zeros((n_inject, n_inject))
for i in range(n_inject):
rnd_times = 100
while np.sum(is_linked[i]) < n_self_connect and rnd_times > 0:
x = i + n_current
rnd_times = 100
yy = random.randint(0, n_inject - 1)
while (np.sum(is_linked[yy]) >= n_self_connect or yy == i or
is_linked[i][yy] == 1) and (rnd_times > 0):
yy = random.randint(0, n_inject - 1)
rnd_times -= 1
if rnd_times > 0:
y = n_current + yy
is_linked[i][yy] = 1
is_linked[yy][i] = 1
new_edges_x.extend([x, y])
new_edges_y.extend([y, x])
new_data.extend([1, 1])
add1 = sp.csr_matrix((n_inject, n_current))
add2 = sp.csr_matrix((n_current + n_inject, n_inject))
adj_attack = sp.vstack([adj, add1])
adj_attack = sp.hstack([adj_attack, add2])
adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
adj_attack.data = np.hstack([adj_attack.data, new_data])
adj_attack = utils.adj_to_tensor(adj_attack).to(device)
return adj_attack
from torch_sparse import SparseTensor
def agia_injection(attacker, model, adj, n_inject, n_edge_max, features, features_attack, target_idx, origin_labels,
device, optim="adam", old_reg=False, real_target_idx=None, homophily=None):
model.to(attacker.device)
model.eval()
n_epoch = attacker.n_epoch
n_total = features.size(0)
device = attacker.device
epsilon = attacker.epsilon
# setup the edge entries for optimization
new_x = torch.cat([torch.LongTensor([i+n_total]).repeat(target_idx.size(0))
for i in range(n_inject)]).to(device)
new_y = target_idx.repeat(n_inject).to(device)
assert new_x.size() == new_y.size()
vals = torch.zeros(new_x.size(0)).to(device)
print(f"#original edges {adj.nnz()}, #target idx {len(target_idx)}, #init edges {vals.size(0)}")
# jointly update adjecency matrix & features
if adj.size(0)>n_total:
print("init edge weights from the previous results")
# that's a attacked adj
orig_adj = adj[:n_total,:n_total]
x, y, z = orig_adj.coo()
# now we init val with the attacked graph
vals[:] = 0
x_inj, y_inj, _ = adj[n_total:,:].coo()
idx_map = {}
for (i, idx) in enumerate(target_idx):
idx_map[idx.item()] = i
for i in range(n_inject*n_edge_max):
xx, yy = x_inj[i], y_inj[i]
pos = xx*len(target_idx)+idx_map[yy.cpu().item()]
vals[pos] = 1
old_vals = vals.clone()
else:
old_vals = None
x, y, z = adj.coo()
z = torch.ones(x.size(0)).to(device) if z == None else z
isolate_idx = torch.nonzero((adj.sum(-1)==0)[:n_total].long(),as_tuple=True)[0].cpu()
makeup_x = []
makeup_y = []
makeup_z = []
for iidx in isolate_idx:
makeup_x.append(iidx)
makeup_y.append(iidx)
makeup_z.append(1)
x = torch.cat((x,torch.LongTensor(makeup_x).to(device)),dim=0)
y = torch.cat((y,torch.LongTensor(makeup_y).to(device)),dim=0)
z = torch.cat((z,torch.LongTensor(makeup_z).to(device)),dim=0)
print(f"add self-con for {len(isolate_idx)} nodes")
new_row = torch.cat((x, new_x, new_y), dim=0)
new_col = torch.cat((y, new_y, new_x), dim=0)
vals.requires_grad_(True)
vals.retain_grad()
adj_attack = SparseTensor(row=new_row, col=new_col, value=torch.cat((z, vals, vals), dim=0))
if optim == "adam":
optimizer_adj = torch.optim.Adam([vals],epsilon)
features_concat = torch.cat((features, features_attack), dim=0)
old_layer_output = None
orig_layer_output = None
real_target_idx = target_idx[target_idx<origin_labels.size(0)] if real_target_idx==None else real_target_idx
beta = 0.01 if n_edge_max >= 100 else 1
for i in range(attacker.a_epoch):
pred = model(features_concat, adj_attack)
pred_loss = attacker.loss(pred[:n_total][real_target_idx],
origin_labels[real_target_idx])
# sparsity loss for the adjacency matrix, based on L1 norm
if optim=="adam" and not model.use_ln:
sparsity_loss = beta*(n_edge_max*n_inject-torch.norm(vals,p=1))
else:
sparsity_loss = -0.01*abs(vals.view(n_inject,-1).sum(-1)-n_edge_max).mean()
pred_loss = -pred_loss-sparsity_loss
if optim == "adam":
optimizer_adj.zero_grad()
pred_loss.backward(retain_graph=True)
if optim == "adam":
optimizer_adj.step()
else:
grad = vals.grad.data
vals = vals.detach() - epsilon * grad.sign()
vals = torch.clamp(vals,0,1)
vals.requires_grad_(True)
vals.retain_grad()
adj_attack = SparseTensor(row=new_row, col=new_col, value=torch.cat((z, vals, vals), dim=0))
test_score = attacker.eval_metric(pred[:n_total][real_target_idx],
origin_labels[real_target_idx])
if attacker.verbose:
print("Attacking Edges: Epoch {}, Loss: {:.2f}, Surrogate test score: {:.2f}, injected edge {:}".format(
i, pred_loss, test_score, vals[:len(target_idx)].sum()),end='\r' if i != n_epoch - 1 else '\n')
# select edges with higher weights as the final injection matrix
tmp_vals = -vals.detach().view(n_inject, -1)
sel_idx = tmp_vals.argsort(dim=-1)[:, :n_edge_max]
sel_mask = torch.zeros(tmp_vals.size()).bool()
for i in range(sel_idx.size(0)):
sel_mask[i, sel_idx[i]] = True
sel_idx = torch.nonzero(sel_mask.view(-1)).squeeze()
new_x = new_x[sel_idx]
new_y = new_y[sel_idx]
print(f"Finally injected edges {len(new_x)}, minimum vals {vals[sel_idx].min()}, maximum vals {vals[sel_idx].max()}")
new_row = torch.cat((x, new_x, new_y), dim=0)
new_col = torch.cat((y, new_y, new_x), dim=0)
adj_attack = SparseTensor(row=new_row, col=new_col, value=torch.ones(new_row.size(0),device=device))
if old_vals!=None:
new_vals = torch.zeros(old_vals.size()).to(old_vals.device)
new_vals[sel_idx] = 1
print(f"number of modifications: {(old_vals-new_vals).abs().sum()}")
print(f"added: {((-old_vals+new_vals)>0).sum()}")
print(f"removed: {((old_vals-new_vals)>0).sum()}")
return adj_attack
def meta_injection(attacker, model, adj, n_inject, n_edge_max, features, features_attack, target_idx, origin_labels,
device, real_target_idx=None, homophily=None):
model.to(device)
model.eval()
n_total = features.size(0)
# setup the edge entries for optimization
new_x = torch.cat([torch.LongTensor([i+n_total]).repeat(target_idx.size(0))
for i in range(n_inject)]).to(device)
new_y = target_idx.repeat(n_inject).to(device)
assert new_x.size() == new_y.size()
vals = torch.zeros(new_x.size(0)).to(device)
print(f"#original edges {adj.nnz()}, #target idx {len(target_idx)}, #init edges {vals.size(0)}")
# jointly update adjecency matrix & features
if adj.size(0)>n_total:
print("init edge weights from the previous results")
# that's a attacked adj
orig_adj = adj[:n_total,:n_total]
x, y, z = orig_adj.coo()
# now we init val with the attacked graph
vals[:] = 0
x_inj, y_inj, _ = adj[n_total:,:].coo()
idx_map = {}
for (i, idx) in enumerate(target_idx):
idx_map[idx.item()] = i
for (xx,yy) in zip(x_inj,y_inj):
pos = xx*len(target_idx)+idx_map[yy.cpu().item()]
vals[pos] = 1
else:
x, y, z = adj.coo()
z = torch.ones(x.size(0)).to(device) if z == None else z
new_row = torch.cat((x, new_x, new_y), dim=0)
new_col = torch.cat((y, new_y, new_x), dim=0)
vals.requires_grad_(True)
adj_attack = SparseTensor(row=new_row, col=new_col, value=torch.cat((z, vals, vals), dim=0))
real_target_idx = target_idx[target_idx<origin_labels.size(0)] if real_target_idx==None else real_target_idx
features_concat = torch.cat((features, features_attack), dim=0)
pred = model(features_concat, adj_attack)
pred_loss = attacker.loss(pred[:n_total][real_target_idx],
origin_labels[real_target_idx]).to(device)
adj_meta_grad = torch.autograd.grad(pred_loss, vals, retain_graph=True)[0]
# select the edges with largest meta gradient and flip
vals = vals.detach().long()
grad_order = adj_meta_grad.abs().argsort(descending=True)
cnt_flip = 0 # count the number of flipped edges
cnt_left = attacker.step_size
flip_grad_sum = 0
for pos in grad_order:
if vals[pos] == 0 and adj_meta_grad[pos]>0:
vals[pos] = 1
cnt_flip += 1
cnt_left -= 1
flip_grad_sum += adj_meta_grad[pos]
elif vals[pos]>0 and adj_meta_grad[pos]<0:
vals[pos] = 0
cnt_flip -= 1
cnt_left -= 1
flip_grad_sum += adj_meta_grad[pos].item()
if cnt_left == 0:
break
# flip the lowest
low_grad_sum = 0
grad_order = adj_meta_grad.argsort(descending=False)
for pos in grad_order:
if cnt_flip > 0 and vals[pos]==1:
cnt_flip -= 1
vals[pos] = 0
low_grad_sum += adj_meta_grad[pos]
elif cnt_flip < 0 and vals[pos]==0:
vals[pos] = 1
cnt_flip += 1
low_grad_sum += adj_meta_grad[pos]
if cnt_flip == 0:
break
if low_grad_sum>=flip_grad_sum:
print("No upd onto edges")
return adj_attack.detach()
vals = vals.bool()
new_x = new_x[vals]
new_y = new_y[vals]
print(f"Finally injected edges {len(new_x)}")
new_row = torch.cat((x, new_x, new_y), dim=0)
new_col = torch.cat((y, new_y, new_x), dim=0)
adj_attack = SparseTensor(row=new_row, col=new_col, value=torch.ones(new_row.size(0),device=device))
pred = model(features_concat, adj_attack)
pred_loss_new = attacker.loss(pred[:n_total][real_target_idx],
origin_labels[real_target_idx]).to(device)
print(f"loss gain {pred_loss_new-pred_loss}")
return adj_attack
| 38.893275
| 142
| 0.598241
| 4,022
| 26,603
| 3.695922
| 0.068374
| 0.05449
| 0.01776
| 0.01776
| 0.8185
| 0.799125
| 0.783922
| 0.778338
| 0.764346
| 0.757888
| 0
| 0.017675
| 0.276924
| 26,603
| 683
| 143
| 38.95022
| 0.755095
| 0.055295
| 0
| 0.789292
| 0
| 0.005181
| 0.030732
| 0.006537
| 0
| 0
| 0
| 0
| 0.005181
| 1
| 0.017271
| false
| 0
| 0.015544
| 0
| 0.051813
| 0.02418
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
1fe7bb74c3fa714cbe197afeac5ca23012250774
| 4,347
|
py
|
Python
|
presqt/targets/utilities/tests/shared_upload_test_functions.py
|
craig-willis/presqt
|
b920527bf8998696f516d65a50f0a5c3862c4558
|
[
"Apache-2.0"
] | null | null | null |
presqt/targets/utilities/tests/shared_upload_test_functions.py
|
craig-willis/presqt
|
b920527bf8998696f516d65a50f0a5c3862c4558
|
[
"Apache-2.0"
] | null | null | null |
presqt/targets/utilities/tests/shared_upload_test_functions.py
|
craig-willis/presqt
|
b920527bf8998696f516d65a50f0a5c3862c4558
|
[
"Apache-2.0"
] | null | null | null |
import json
from presqt.utilities import read_file
def process_wait(process_info, ticket_path):
# Wait until the spawned off process finishes in the background to do further validation
while process_info['status'] == 'in_progress':
try:
process_info = read_file('{}/process_info.json'.format(ticket_path), True)
except json.decoder.JSONDecodeError:
# Pass while the process_info file is being written to
pass
def shared_upload_function_osf(test_case_instance):
test_case_instance.headers['HTTP_PRESQT_FILE_DUPLICATE_ACTION'] = test_case_instance.duplicate_action
response = test_case_instance.client.post(test_case_instance.url, {
'presqt-file': open(test_case_instance.file, 'rb')}, **test_case_instance.headers)
ticket_number = response.data['ticket_number']
test_case_instance.ticket_path = 'mediafiles/uploads/{}'.format(ticket_number)
# Verify status code and message
test_case_instance.assertEqual(response.status_code, 202)
test_case_instance.assertEqual(
response.data['message'], 'The server is processing the request.')
# Verify process_info file status is 'in_progress' initially
process_info = read_file('{}/process_info.json'.format(test_case_instance.ticket_path), True)
test_case_instance.assertEqual(process_info['status'], 'in_progress')
# Wait until the spawned off process finishes in the background to do further validation
process_wait(process_info, test_case_instance.ticket_path)
# Verify process_info.json file data
process_info = read_file('{}/process_info.json'.format(test_case_instance.ticket_path), True)
test_case_instance.assertEqual(process_info['status'], 'finished')
test_case_instance.assertEqual(process_info['message'], 'Upload successful.')
test_case_instance.assertEqual(process_info['status_code'], '200')
test_case_instance.assertEqual(process_info['failed_fixity'], [])
test_case_instance.assertEqual(
process_info['resources_ignored'], test_case_instance.resources_ignored)
test_case_instance.assertEqual(
process_info['resources_updated'], test_case_instance.resources_updated)
test_case_instance.assertEqual(
process_info['hash_algorithm'], test_case_instance.hash_algorithm)
def shared_upload_function_github(test_case_instance):
test_case_instance.headers['HTTP_PRESQT_FILE_DUPLICATE_ACTION'] = test_case_instance.duplicate_action
response = test_case_instance.client.post(test_case_instance.url, {'presqt-file': open(
test_case_instance.file, 'rb')}, **test_case_instance.headers)
ticket_number = response.data['ticket_number']
test_case_instance.ticket_path = 'mediafiles/uploads/{}'.format(ticket_number)
# Verify status code and message
test_case_instance.assertEqual(response.status_code, 202)
test_case_instance.assertEqual(
response.data['message'], 'The server is processing the request.')
# Verify process_info file status is 'in_progress' initially
process_info = read_file('{}/process_info.json'.format(test_case_instance.ticket_path), True)
test_case_instance.assertEqual(process_info['status'], 'in_progress')
# Wait until the spawned off process finishes in the background to do further validation
process_wait(process_info, test_case_instance.ticket_path)
# Verify process_info.json file data
process_info = read_file('{}/process_info.json'.format(test_case_instance.ticket_path), True)
test_case_instance.assertEqual(process_info['status'], 'finished')
test_case_instance.assertEqual(
process_info['message'],
"Upload successful. Fixity can't be determined because GitHub may not have provided a file checksum. See PRESQT_FTS_METADATA.json for more details.")
test_case_instance.assertEqual(process_info['status_code'], '200')
test_case_instance.assertNotEqual(process_info['failed_fixity'], [])
test_case_instance.assertEqual(
process_info['resources_ignored'], test_case_instance.resources_ignored)
test_case_instance.assertEqual(
process_info['resources_updated'], test_case_instance.resources_updated)
test_case_instance.assertEqual(
process_info['hash_algorithm'], test_case_instance.hash_algorithm)
| 51.75
| 157
| 0.761905
| 552
| 4,347
| 5.643116
| 0.175725
| 0.123274
| 0.246549
| 0.164687
| 0.886998
| 0.878331
| 0.874799
| 0.874799
| 0.861958
| 0.861958
| 0
| 0.003228
| 0.144928
| 4,347
| 83
| 158
| 52.373494
| 0.834813
| 0.129515
| 0
| 0.660714
| 0
| 0.017857
| 0.200106
| 0.034985
| 0
| 0
| 0
| 0
| 0.357143
| 1
| 0.053571
| false
| 0.017857
| 0.035714
| 0
| 0.089286
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 8
|
1f3c2f8e392fd22eb8a627ac98a0559323f250a6
| 12,966
|
py
|
Python
|
tests/test_algebra_onnx_operators_if.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | 1
|
2021-12-13T18:00:56.000Z
|
2021-12-13T18:00:56.000Z
|
tests/test_algebra_onnx_operators_if.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | null | null | null |
tests/test_algebra_onnx_operators_if.py
|
xiaowuhu/sklearn-onnx
|
e85674a67a0a043e19c2ffe181e5d31eca8ce40b
|
[
"Apache-2.0"
] | 2
|
2020-08-20T06:27:36.000Z
|
2021-09-06T09:09:50.000Z
|
# SPDX-License-Identifier: Apache-2.0
import unittest
from distutils.version import StrictVersion
import numpy as np
from numpy.testing import assert_almost_equal
import onnx
import onnx.helper
from onnx import TensorProto
from onnxruntime import InferenceSession, __version__ as ort_version
try:
# scikit-learn >= 0.22
from sklearn.utils._testing import ignore_warnings
except ImportError:
# scikit-learn < 0.22
from sklearn.utils.testing import ignore_warnings
from skl2onnx.common.data_types import FloatTensorType
from skl2onnx.algebra.onnx_ops import (
OnnxAdd, OnnxSub, OnnxIf, OnnxGreater,
OnnxReduceSum, OnnxMul, OnnxReduceMin)
from test_utils import TARGET_OPSET, TARGET_IR
ort_version = ".".join(ort_version.split('.')[:2])
class TestOnnxOperatorsIf(unittest.TestCase):
@ignore_warnings(category=DeprecationWarning)
@unittest.skipIf(StrictVersion(ort_version) < StrictVersion('1.5.0'),
reason="too old onnxruntime")
def test_onnx_if_test1(self):
then_out = onnx.helper.make_tensor_value_info(
'then_out', onnx.TensorProto.FLOAT, [5])
else_out = onnx.helper.make_tensor_value_info(
'else_out', onnx.TensorProto.FLOAT, [5])
x = np.array([1, 2, 3, 4, 5]).astype(np.float32)
y = np.array([5, 4, 3, 2, 1]).astype(np.float32)
then_const_node = onnx.helper.make_node(
'Constant', inputs=[], outputs=['then_out'],
value=onnx.numpy_helper.from_array(x))
else_const_node = onnx.helper.make_node(
'Constant', inputs=[], outputs=['else_out'],
value=onnx.numpy_helper.from_array(y))
then_body = onnx.helper.make_graph(
[then_const_node], 'then_body', [], [then_out])
else_body = onnx.helper.make_graph(
[else_const_node], 'else_body', [], [else_out])
if_node = onnx.helper.make_node(
'If', inputs=['cond'], outputs=['Z'],
then_branch=then_body, else_branch=else_body)
cond = onnx.helper.make_tensor_value_info('cond', TensorProto.BOOL, [])
Z = onnx.helper.make_tensor_value_info('Z', TensorProto.FLOAT, [None])
graph_def = onnx.helper.make_graph([if_node], 'example', [cond], [Z])
model_def = onnx.helper.make_model(graph_def, producer_name='skl2onnx')
del model_def.opset_import[:]
op_set = model_def.opset_import.add()
op_set.domain = ''
op_set.version = TARGET_OPSET
model_def.ir_version = TARGET_IR
cond = np.array(1).astype(bool)
expected = x if cond else y
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'cond': cond})
assert_almost_equal(expected, res[0])
@ignore_warnings(category=DeprecationWarning)
@unittest.skipIf(StrictVersion(ort_version) < StrictVersion('1.5.0'),
reason="too old onnxruntime")
def test_onnx_if_test2(self):
then_out = onnx.helper.make_tensor_value_info(
'then_out', onnx.TensorProto.FLOAT, [5])
else_out = onnx.helper.make_tensor_value_info(
'else_out', onnx.TensorProto.FLOAT, [5])
x = np.array([1, 2, 3, 4, 5]).astype(np.float32)
y = np.array([5, 4, 3, 2, 1]).astype(np.float32)
then_const_node = onnx.helper.make_node(
'Constant', inputs=[], outputs=['then_out'],
value=onnx.numpy_helper.from_array(x))
else_const_node = onnx.helper.make_node(
'Identity', inputs=['Y'], outputs=['else_out'])
then_body = onnx.helper.make_graph(
[then_const_node], 'then_body', [], [then_out])
else_body = onnx.helper.make_graph(
[else_const_node], 'else_body', [], [else_out])
if_node = onnx.helper.make_node(
'If', inputs=['cond'], outputs=['Z'],
then_branch=then_body, else_branch=else_body)
cond = onnx.helper.make_tensor_value_info('cond', TensorProto.BOOL, [])
Y = onnx.helper.make_tensor_value_info('Y', TensorProto.FLOAT, [None])
Z = onnx.helper.make_tensor_value_info('Z', TensorProto.FLOAT, [None])
graph_def = onnx.helper.make_graph(
[if_node], 'example', [cond, Y], [Z])
model_def = onnx.helper.make_model(graph_def, producer_name='skl2onnx')
del model_def.opset_import[:]
op_set = model_def.opset_import.add()
op_set.domain = ''
op_set.version = TARGET_OPSET
model_def.ir_version = TARGET_IR
cond = np.array(1).astype(bool)
expected = x if cond else y
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'cond': cond, 'Y': y})
assert_almost_equal(expected, res[0])
@ignore_warnings(category=DeprecationWarning)
def test_onnx_if_algebra_direct(self):
opv = TARGET_OPSET
x1 = np.array([[0, 3], [7, 0]], dtype=np.float32)
x2 = np.array([[1, 0], [2, 0]], dtype=np.float32)
node = OnnxAdd(
'x1', 'x2', output_names=['absxythen'], op_version=opv)
then_body = node.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxythen', FloatTensorType())])
node = OnnxSub(
'x1', 'x2', output_names=['absxyelse'], op_version=opv)
else_body = node.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxyelse', FloatTensorType())])
del else_body.graph.input[:]
del then_body.graph.input[:]
cond = OnnxGreater(
OnnxReduceSum('x1', op_version=opv),
OnnxReduceSum('x2', op_version=opv),
op_version=opv)
ifnode = OnnxIf(cond, then_branch=then_body.graph,
else_branch=else_body.graph,
op_version=opv, output_names=['y'])
model_def = ifnode.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('y', FloatTensorType())])
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'x1': x1, 'x2': x2})
assert_almost_equal(x1 + x2, res[0])
@ignore_warnings(category=DeprecationWarning)
def test_onnx_if_algebra_indirect(self):
opv = TARGET_OPSET
x1 = np.array([[0, 3], [7, 0]], dtype=np.float32)
x2 = np.array([[1, 0], [2, 0]], dtype=np.float32)
node_xy = OnnxMul(
'x1', 'x2', op_version=opv, output_names=['xy'])
node_then = OnnxAdd(
'x1', 'xy', output_names=['absxythen'], op_version=opv)
then_body = node_then.to_onnx(
{'x1': x1, 'xy': x2}, target_opset=opv,
outputs=[('absxythen', FloatTensorType())])
node_else = OnnxSub(
'x1', 'x2', output_names=['absxyelse'], op_version=opv)
else_body = node_else.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxyelse', FloatTensorType())])
del else_body.graph.input[:]
del then_body.graph.input[:]
cond = OnnxGreater(
OnnxReduceSum('x1', op_version=opv),
OnnxReduceSum('x2', op_version=opv),
op_version=opv)
ifnode = OnnxIf(cond, then_branch=then_body.graph,
else_branch=else_body.graph,
op_version=opv, output_names=['y'],
global_context={'xy': node_xy})
model_def = ifnode.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('y', FloatTensorType())])
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'x1': x1, 'x2': x2})
assert_almost_equal(x1 + x1 * x2, res[0])
@ignore_warnings(category=DeprecationWarning)
def test_onnx_if_algebra_indirect_unnamed(self):
opv = TARGET_OPSET
x1 = np.array([[0, 3], [7, 0]], dtype=np.float32)
x2 = np.array([[1, 0], [2, 0]], dtype=np.float32)
node_xy = OnnxMul('x1', 'x2', op_version=opv)
node_then = OnnxAdd(
'x1', 'xy', output_names=['absxythen'], op_version=opv)
then_body = node_then.to_onnx(
{'x1': x1, 'xy': x2}, target_opset=opv,
outputs=[('absxythen', FloatTensorType())])
node_else = OnnxSub(
'x1', 'x2', output_names=['absxyelse'], op_version=opv)
else_body = node_else.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxyelse', FloatTensorType())])
del else_body.graph.input[:]
del then_body.graph.input[:]
cond = OnnxGreater(
OnnxReduceSum('x1', op_version=opv),
OnnxReduceSum('x2', op_version=opv),
op_version=opv)
ifnode = OnnxIf(cond, then_branch=then_body.graph,
else_branch=else_body.graph,
op_version=opv, output_names=['y'],
global_context={'xy': node_xy})
model_def = ifnode.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('y', FloatTensorType())])
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'x1': x1, 'x2': x2})
assert_almost_equal(x1 + x1 * x2, res[0])
@ignore_warnings(category=DeprecationWarning)
def test_onnx_if_algebra_indirect_unnamed_clear_input(self):
opv = TARGET_OPSET
x1 = np.array([[0, 3], [7, 0]], dtype=np.float32)
x2 = np.array([[1, 0], [2, 0]], dtype=np.float32)
node_xy = OnnxMul('x1', 'x2', op_version=opv)
node_then = OnnxAdd(
'x1', 'xy', output_names=['absxythen'], op_version=opv)
then_body = node_then.to_onnx(
{'x1': x1, 'xy': x2}, target_opset=opv,
outputs=[('absxythen', FloatTensorType())])
node_else = OnnxSub(
'x1', 'x2', output_names=['absxyelse'], op_version=opv)
else_body = node_else.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxyelse', FloatTensorType())])
cond = OnnxGreater(
OnnxReduceSum('x1', op_version=opv),
OnnxReduceSum('x2', op_version=opv),
op_version=opv)
ifnode = OnnxIf(cond, then_branch=then_body.graph,
else_branch=else_body.graph,
op_version=opv, output_names=['y'],
global_context={'xy': node_xy},
clear_subgraph_inputs=True)
model_def = ifnode.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('y', FloatTensorType())])
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'x1': x1, 'x2': x2})
assert_almost_equal(x1 + x1 * x2, res[0])
@ignore_warnings(category=DeprecationWarning)
def test_onnx_if_algebra_indirect_unnamed_clear_input_recursive(self):
opv = TARGET_OPSET
x1 = np.array([[0, 3], [7, 0]], dtype=np.float32)
x2 = np.array([[1, 0], [2, 0]], dtype=np.float32)
node_xy = OnnxMul('x1', 'x2', op_version=opv)
node_then = OnnxAdd(
'x1', 'xy', output_names=['absxythen'], op_version=opv)
then_body = node_then.to_onnx(
{'x1': x1, 'xy': x2}, target_opset=opv,
outputs=[('absxythen', FloatTensorType())])
node_else = OnnxSub(
'x1', 'x2', output_names=['absxyelse'], op_version=opv)
else_body = node_else.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('absxyelse', FloatTensorType())])
cond = OnnxGreater(
OnnxReduceSum('x1', op_version=opv),
OnnxReduceSum('x2', op_version=opv),
op_version=opv)
ifnode = OnnxIf(cond, then_branch=then_body.graph,
else_branch=else_body.graph,
op_version=opv, output_names=['yt'],
clear_subgraph_inputs=True)
subgraph = ifnode.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('yt', FloatTensorType())])
cond2 = OnnxGreater(
OnnxReduceMin('x1', op_version=opv),
OnnxReduceMin('x2', op_version=opv),
op_version=opv)
ifnode2 = OnnxIf(cond2, then_branch=then_body.graph,
else_branch=subgraph.graph,
op_version=opv, output_names=['y'],
global_context={'xy': node_xy},
clear_subgraph_inputs=True)
model_def = ifnode2.to_onnx(
{'x1': x1, 'x2': x2}, target_opset=opv,
outputs=[('y', FloatTensorType())])
sess = InferenceSession(model_def.SerializeToString())
res = sess.run(None, {'x1': x1, 'x2': x2})
assert_almost_equal(x1 + x1 * x2, res[0])
if __name__ == "__main__":
unittest.main()
| 40.392523
| 79
| 0.586765
| 1,563
| 12,966
| 4.619322
| 0.088932
| 0.047368
| 0.063158
| 0.018837
| 0.892936
| 0.891413
| 0.887396
| 0.874792
| 0.870914
| 0.863019
| 0
| 0.028104
| 0.270014
| 12,966
| 320
| 80
| 40.51875
| 0.734707
| 0.005861
| 0
| 0.791667
| 0
| 0
| 0.048347
| 0
| 0
| 0
| 0
| 0
| 0.030303
| 1
| 0.026515
| false
| 0
| 0.068182
| 0
| 0.098485
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
1f6a44f48ca7f6c2404389fecefe79f00a807592
| 4,431
|
py
|
Python
|
socfaker/timestamp.py
|
priamai/soc-faker
|
51b587f0cec52212136905280406e915006d2afc
|
[
"MIT"
] | 122
|
2020-02-21T16:06:54.000Z
|
2022-03-21T13:53:03.000Z
|
socfaker/timestamp.py
|
priamai/soc-faker
|
51b587f0cec52212136905280406e915006d2afc
|
[
"MIT"
] | 13
|
2020-01-29T16:37:05.000Z
|
2022-01-27T21:30:10.000Z
|
socfaker/timestamp.py
|
priamai/soc-faker
|
51b587f0cec52212136905280406e915006d2afc
|
[
"MIT"
] | 20
|
2020-04-10T11:59:29.000Z
|
2022-02-10T09:20:26.000Z
|
import pendulum
from .baseclass import BaseClass
class Timestamp(BaseClass):
"""The Timestamp Class provides methods to generate timestamps
"""
def in_the_past_pendulum_object(self,
years=0,
months=BaseClass().random.randint(0,3),
days=BaseClass().random.randint(1,15),
hours=BaseClass().random.randint(1,24),
minutes=BaseClass().random.randint(1,60),
seconds=BaseClass().random.randint(1,60)):
return pendulum.now().subtract(
years=years,
months=months,
days=days,
hours=hours,
minutes=minutes,
seconds=seconds)
def in_the_past(self,
years=0,
months=BaseClass().random.randint(0,3),
days=BaseClass().random.randint(1,15),
hours=BaseClass().random.randint(1,24),
minutes=BaseClass().random.randint(1,60),
seconds=BaseClass().random.randint(1,60)):
"""Generates a timestamp in the past
Args:
years (int, optional): The number of years to subtract from the current time. Defaults to 0.
months ([type], optional): The number of months to subtract from the current time. Defaults to random.randint(0,3).
days ([type], optional): The number of days to subtract from the current time. Defaults to random.randint(1,15).
hours ([type], optional): The number of hours to subtract from the current time. Defaults to random.randint(1,24).
minutes ([type], optional): The number of minutes to subtract from the current time. Defaults to random.randint(1,60).
seconds ([type], optional): The number of seconds to subtract from the current time. Defaults to random.randint(1,60).
Returns:
str: Returns an ISO 8601 timestamp string
"""
return pendulum.now().subtract(
years=years,
months=months,
days=days,
hours=hours,
minutes=minutes,
seconds=seconds).to_iso8601_string()
def in_the_future(self,
years=0,
months=BaseClass().random.randint(0,3),
days=BaseClass().random.randint(1,15),
hours=BaseClass().random.randint(1,24),
minutes=BaseClass().random.randint(1,60),
seconds=BaseClass().random.randint(1,60)):
"""Generates a timestamp in the future
Args:
years (int, optional): The number of years to add from the current time. Defaults to 0.
months ([type], optional): The number of months to add from the current time. Defaults to random.randint(0,3).
days ([type], optional): The number of days to add from the current time. Defaults to random.randint(1,15).
hours ([type], optional): The number of hours to add from the current time. Defaults to random.randint(1,24).
minutes ([type], optional): The number of minutes to add from the current time. Defaults to random.randint(1,60).
seconds ([type], optional): The number of seconds to add from the current time. Defaults to random.randint(1,60).
Returns:
str: Returns an ISO 8601 timestamp string
"""
return pendulum.now().add(
years=years,
months=months,
days=days,
hours=hours,
minutes=minutes,
seconds=seconds).to_iso8601_string()
@property
def current(self):
"""The current timestamp
Returns:
str: Returns the current timestamp in ISO 8601 format
"""
return pendulum.now().to_iso8601_string()
def date_string(self,
years=BaseClass().random.randint(18,85),
months=BaseClass().random.randint(1,12),
days=BaseClass().random.randint(1,365)):
"""Returns a date string
Args:
years ([type], optional): The number of years subtracted from the current time. Defaults to random.randint(18,85).
months ([type], optional): The number of months subtracted from the current time. Defaults to random.randint(1,12).
days ([type], optional): The number of days subtracted from the current time. Defaults to random.randint(1,365).
Returns:
str: An date string for the generated timestamp
"""
return pendulum.now().subtract(years=years, months=months, days=days).to_date_string()
| 42.2
| 130
| 0.62153
| 562
| 4,431
| 4.870107
| 0.113879
| 0.147242
| 0.122762
| 0.104129
| 0.847643
| 0.8038
| 0.8038
| 0.779686
| 0.775667
| 0.729266
| 0
| 0.037485
| 0.271496
| 4,431
| 104
| 131
| 42.605769
| 0.810409
| 0.488603
| 0
| 0.698113
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.09434
| false
| 0
| 0.037736
| 0.018868
| 0.245283
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1f8de20821d67458a73f5d619eaadab9ab0336c7
| 388
|
py
|
Python
|
FixDataPoints.py
|
trojaxat/Assessment
|
4477cfb1ecf5506ec6122f53abf26e304460544b
|
[
"MIT"
] | null | null | null |
FixDataPoints.py
|
trojaxat/Assessment
|
4477cfb1ecf5506ec6122f53abf26e304460544b
|
[
"MIT"
] | null | null | null |
FixDataPoints.py
|
trojaxat/Assessment
|
4477cfb1ecf5506ec6122f53abf26e304460544b
|
[
"MIT"
] | null | null | null |
def changeValueA(actualDataFrame, changeValue):
predictedData = actualDataFrame.copy()
predictedData["y"] = [item*changeValue for item in actualDataFrame["x"]]
return predictedData
def changeValueB(actualDataFrame, changeValue):
predictedData = actualDataFrame.copy()
predictedData["y"] = [item+changeValue for item in actualDataFrame["x"]]
return predictedData
| 35.272727
| 76
| 0.752577
| 36
| 388
| 8.111111
| 0.361111
| 0.178082
| 0.267123
| 0.369863
| 0.89726
| 0.89726
| 0.89726
| 0.89726
| 0.89726
| 0.89726
| 0
| 0
| 0.14433
| 388
| 10
| 77
| 38.8
| 0.879518
| 0
| 0
| 0.5
| 0
| 0
| 0.010309
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2f34c2dafe6578891cf75c18e66800dc9cc9bb28
| 225
|
py
|
Python
|
Security/user/create.py
|
carloscarrillocarrillo/booksmarks
|
b0f4b851eaa400b88e6ba9ab2904a58394a434e6
|
[
"MIT"
] | null | null | null |
Security/user/create.py
|
carloscarrillocarrillo/booksmarks
|
b0f4b851eaa400b88e6ba9ab2904a58394a434e6
|
[
"MIT"
] | 2
|
2020-07-26T13:50:40.000Z
|
2020-07-26T14:00:27.000Z
|
Security/user/create.py
|
carloscarrillocarrillo/booksmarks
|
b0f4b851eaa400b88e6ba9ab2904a58394a434e6
|
[
"MIT"
] | null | null | null |
from Security.db.user.CreateUserInterface import CreateUserInterface
def create_user(create_user: CreateUserInterface ,username, password, confirm_password):
return create_user.create(username, password, confirm_password)
| 56.25
| 89
| 0.857778
| 25
| 225
| 7.52
| 0.48
| 0.159574
| 0.170213
| 0.329787
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075556
| 225
| 4
| 90
| 56.25
| 0.903846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.666667
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
|
0
| 8
|
2f7847ad438c4e3fd694ac93398ac3d594dc22e2
| 176
|
py
|
Python
|
src/ssp/spark/udf/tensorflow_serving_api_udf_test.py
|
gyan42/spark-streaming-playground
|
147ef9cbc31b7aed242663dee36143ebf0e8043f
|
[
"Apache-2.0"
] | 10
|
2020-03-12T11:51:46.000Z
|
2022-03-24T04:56:05.000Z
|
src/ssp/spark/udf/tensorflow_serving_api_udf_test.py
|
gyan42/spark-streaming-playground
|
147ef9cbc31b7aed242663dee36143ebf0e8043f
|
[
"Apache-2.0"
] | 12
|
2020-04-23T07:28:14.000Z
|
2022-03-12T00:20:24.000Z
|
src/ssp/spark/udf/tensorflow_serving_api_udf_test.py
|
gyan42/spark-streaming-playground
|
147ef9cbc31b7aed242663dee36143ebf0e8043f
|
[
"Apache-2.0"
] | 1
|
2020-04-20T14:48:38.000Z
|
2020-04-20T14:48:38.000Z
|
import pytest
from ssp.spark.udf.tensorflow_serving_api_udf import predict_text_class, get_text_classifier_udf
def test_tensorflow_serving_api_udf_imports():
assert True
| 25.142857
| 96
| 0.863636
| 27
| 176
| 5.148148
| 0.703704
| 0.244604
| 0.28777
| 0.330935
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096591
| 176
| 6
| 97
| 29.333333
| 0.874214
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| true
| 0
| 0.75
| 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
| 1
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 8
|
2f9a52f4961427d68a281d808d5a7630145f7c3a
| 180
|
py
|
Python
|
libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | 1
|
2018-01-18T00:46:19.000Z
|
2018-01-18T00:46:19.000Z
|
libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | null | null | null |
libfuturize/test_scripts/py2/stdlib_newstyleclass_printstatement.py
|
kojoidrissa/python-future
|
16635ad986ab10a337267f637a8b040a70bc5258
|
[
"MIT"
] | null | null | null |
from __future__ import print_function
from future import standard_library
from future.builtins import *
import configparser
class Blah(object):
pass
print('Hello', end=None)
| 18
| 37
| 0.8
| 24
| 180
| 5.75
| 0.666667
| 0.217391
| 0.231884
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.138889
| 180
| 9
| 38
| 20
| 0.890323
| 0
| 0
| 0
| 0
| 0
| 0.027778
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.142857
| 0.571429
| 0
| 0.714286
| 0.285714
| 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
| 1
| 0
| 1
| 0
|
0
| 8
|
c855746b247830c7fe2d77ed9cf43885d8cd0d85
| 28,787
|
py
|
Python
|
ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py
|
t-ikegami/WioTerminal-CircuitPython
|
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
|
[
"MIT"
] | null | null | null |
ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py
|
t-ikegami/WioTerminal-CircuitPython
|
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
|
[
"MIT"
] | 1
|
2022-01-19T00:16:02.000Z
|
2022-01-26T03:43:34.000Z
|
ATSAMD51P19A/libsrc/ATSAMD51P19A/SERCOM0_.py
|
t-ikegami/WioTerminal-CircuitPython
|
efbdc2e13ad969fe009d88f7ec4b836ca61ae973
|
[
"MIT"
] | null | null | null |
import uctypes as ct
SERCOM_I2CM = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'PINOUT' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'SDAHOLD' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'MEXTTOEN' : 0x00 | ct.BFUINT32 | 22 << ct.BF_POS | 1 << ct.BF_LEN,
'SEXTTOEN' : 0x00 | ct.BFUINT32 | 23 << ct.BF_POS | 1 << ct.BF_LEN,
'SPEED' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
'SCLSM' : 0x00 | ct.BFUINT32 | 27 << ct.BF_POS | 1 << ct.BF_LEN,
'INACTOUT' : 0x00 | ct.BFUINT32 | 28 << ct.BF_POS | 2 << ct.BF_LEN,
'LOWTOUTEN' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'SMEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'QCEN' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'CMD' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'ACKACT' : 0x00 | ct.BFUINT32 | 18 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'BAUD' : ( 0x0C, {
'reg' : 0x00 | ct.UINT32,
'BAUD' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'BAUDLOW' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 8 << ct.BF_LEN,
'HSBAUD' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 8 << ct.BF_LEN,
'HSBAUDLOW' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 8 << ct.BF_LEN,
}),
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'MB' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'SB' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'MB' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'SB' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'MB' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'SB' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'BUSERR' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ARBLOST' : 0x00 | ct.BFUINT16 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXNACK' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'BUSSTATE' : 0x00 | ct.BFUINT16 | 4 << ct.BF_POS | 2 << ct.BF_LEN,
'LOWTOUT' : 0x00 | ct.BFUINT16 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'CLKHOLD' : 0x00 | ct.BFUINT16 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'MEXTTOUT' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'SEXTTOUT' : 0x00 | ct.BFUINT16 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'LENERR' : 0x00 | ct.BFUINT16 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'SYSOP' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'ADDR' : ( 0x24, {
'reg' : 0x00 | ct.UINT32,
'ADDR' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 11 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 1 << ct.BF_LEN,
'HS' : 0x00 | ct.BFUINT32 | 14 << ct.BF_POS | 1 << ct.BF_LEN,
'TENBITEN' : 0x00 | ct.BFUINT32 | 15 << ct.BF_POS | 1 << ct.BF_LEN,
'LEN' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 8 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT8,
'DBGCTRL' : ( 0x30, {
'reg' : 0x00 | ct.UINT8,
'DBGSTOP' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
}),
}
SERCOM_I2CS = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'PINOUT' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'SDAHOLD' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'SEXTTOEN' : 0x00 | ct.BFUINT32 | 23 << ct.BF_POS | 1 << ct.BF_LEN,
'SPEED' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
'SCLSM' : 0x00 | ct.BFUINT32 | 27 << ct.BF_POS | 1 << ct.BF_LEN,
'LOWTOUTEN' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'SMEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'GCMD' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'AACKEN' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'AMODE' : 0x00 | ct.BFUINT32 | 14 << ct.BF_POS | 2 << ct.BF_LEN,
'CMD' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'ACKACT' : 0x00 | ct.BFUINT32 | 18 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'SDASETUP' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 4 << ct.BF_LEN,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'PREC' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'AMATCH' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'DRDY' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'PREC' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'AMATCH' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'DRDY' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'PREC' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'AMATCH' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'DRDY' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'BUSERR' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'COLL' : 0x00 | ct.BFUINT16 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXNACK' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'DIR' : 0x00 | ct.BFUINT16 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'SR' : 0x00 | ct.BFUINT16 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'LOWTOUT' : 0x00 | ct.BFUINT16 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'CLKHOLD' : 0x00 | ct.BFUINT16 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'SEXTTOUT' : 0x00 | ct.BFUINT16 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'HS' : 0x00 | ct.BFUINT16 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'LENERR' : 0x00 | ct.BFUINT16 | 11 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'LENGTH' : ( 0x22, {
'reg' : 0x00 | ct.UINT16,
'LEN' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'ADDR' : ( 0x24, {
'reg' : 0x00 | ct.UINT32,
'GENCEN' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ADDR' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 10 << ct.BF_LEN,
'TENBITEN' : 0x00 | ct.BFUINT32 | 15 << ct.BF_POS | 1 << ct.BF_LEN,
'ADDRMASK' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 10 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT32,
}
SERCOM_SPIS = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'IBON' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'DOPO' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'DIPO' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'FORM' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 4 << ct.BF_LEN,
'CPHA' : 0x00 | ct.BFUINT32 | 28 << ct.BF_POS | 1 << ct.BF_LEN,
'CPOL' : 0x00 | ct.BFUINT32 | 29 << ct.BF_POS | 1 << ct.BF_LEN,
'DORD' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'CHSIZE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'PLOADEN' : 0x00 | ct.BFUINT32 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'SSDE' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'MSSEN' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 1 << ct.BF_LEN,
'AMODE' : 0x00 | ct.BFUINT32 | 14 << ct.BF_POS | 2 << ct.BF_LEN,
'RXEN' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'ICSPACE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 6 << ct.BF_LEN,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'BAUD' : 0x0C | ct.UINT8,
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'BUFOVF' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'LENERR' : 0x00 | ct.BFUINT16 | 11 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'CTRLB' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'LENGTH' : ( 0x22, {
'reg' : 0x00 | ct.UINT16,
'LEN' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'ADDR' : ( 0x24, {
'reg' : 0x00 | ct.UINT32,
'ADDR' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'ADDRMASK' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 8 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT32,
'DBGCTRL' : ( 0x30, {
'reg' : 0x00 | ct.UINT8,
'DBGSTOP' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
}),
}
SERCOM_SPIM = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'IBON' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'DOPO' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'DIPO' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'FORM' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 4 << ct.BF_LEN,
'CPHA' : 0x00 | ct.BFUINT32 | 28 << ct.BF_POS | 1 << ct.BF_LEN,
'CPOL' : 0x00 | ct.BFUINT32 | 29 << ct.BF_POS | 1 << ct.BF_LEN,
'DORD' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'CHSIZE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'PLOADEN' : 0x00 | ct.BFUINT32 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'SSDE' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'MSSEN' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 1 << ct.BF_LEN,
'AMODE' : 0x00 | ct.BFUINT32 | 14 << ct.BF_POS | 2 << ct.BF_LEN,
'RXEN' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'ICSPACE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 6 << ct.BF_LEN,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'BAUD' : 0x0C | ct.UINT8,
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'SSL' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'BUFOVF' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'LENERR' : 0x00 | ct.BFUINT16 | 11 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'CTRLB' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'LENGTH' : ( 0x22, {
'reg' : 0x00 | ct.UINT16,
'LEN' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'ADDR' : ( 0x24, {
'reg' : 0x00 | ct.UINT32,
'ADDR' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'ADDRMASK' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 8 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT32,
'DBGCTRL' : ( 0x30, {
'reg' : 0x00 | ct.UINT8,
'DBGSTOP' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
}),
}
SERCOM_USART_EXT = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'IBON' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'TXINV' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'RXINV' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'SAMPR' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
'TXPO' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'RXPO' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'SAMPA' : 0x00 | ct.BFUINT32 | 22 << ct.BF_POS | 2 << ct.BF_LEN,
'FORM' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 4 << ct.BF_LEN,
'CMODE' : 0x00 | ct.BFUINT32 | 28 << ct.BF_POS | 1 << ct.BF_LEN,
'CPOL' : 0x00 | ct.BFUINT32 | 29 << ct.BF_POS | 1 << ct.BF_LEN,
'DORD' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'CHSIZE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'SBMODE' : 0x00 | ct.BFUINT32 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'COLDEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'SFDE' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'ENC' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'PMODE' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 1 << ct.BF_LEN,
'TXEN' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'RXEN' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
'LINCMD' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'GTIME' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'BRKLEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 2 << ct.BF_LEN,
'HDRDLY' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 2 << ct.BF_LEN,
'INACK' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'DSNACK' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
'MAXITER' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 3 << ct.BF_LEN,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'BAUD' : 0x0C | ct.UINT16,
'BAUD_FRAC_MODE' : ( 0x0C, {
'reg' : 0x00 | ct.UINT16,
'BAUD' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 13 << ct.BF_LEN,
'FP' : 0x00 | ct.BFUINT16 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
}),
'BAUD_FRACFP_MODE' : ( 0x0C, {
'reg' : 0x00 | ct.UINT16,
'BAUD' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 13 << ct.BF_LEN,
'FP' : 0x00 | ct.BFUINT16 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
}),
'BAUD_USARTFP_MODE' : 0x0C | ct.UINT16,
'RXPL' : 0x0E | ct.UINT8,
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'PERR' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'FERR' : 0x00 | ct.BFUINT16 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'BUFOVF' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'CTS' : 0x00 | ct.BFUINT16 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ISF' : 0x00 | ct.BFUINT16 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'COLL' : 0x00 | ct.BFUINT16 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'TXE' : 0x00 | ct.BFUINT16 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'ITER' : 0x00 | ct.BFUINT16 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'CTRLB' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXERRCNT' : 0x00 | ct.BFUINT32 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'RXERRCNT' : 0x20 | ct.UINT8,
'LENGTH' : ( 0x22, {
'reg' : 0x00 | ct.UINT16,
'LEN' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT32,
'DBGCTRL' : ( 0x30, {
'reg' : 0x00 | ct.UINT8,
'DBGSTOP' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
}),
}
SERCOM_USART_INT = {
'CTRLA' : ( 0x00, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'MODE' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 3 << ct.BF_LEN,
'RUNSTDBY' : 0x00 | ct.BFUINT32 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
'IBON' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'TXINV' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'RXINV' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'SAMPR' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
'TXPO' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 2 << ct.BF_LEN,
'RXPO' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 2 << ct.BF_LEN,
'SAMPA' : 0x00 | ct.BFUINT32 | 22 << ct.BF_POS | 2 << ct.BF_LEN,
'FORM' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 4 << ct.BF_LEN,
'CMODE' : 0x00 | ct.BFUINT32 | 28 << ct.BF_POS | 1 << ct.BF_LEN,
'CPOL' : 0x00 | ct.BFUINT32 | 29 << ct.BF_POS | 1 << ct.BF_LEN,
'DORD' : 0x00 | ct.BFUINT32 | 30 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'CTRLB' : ( 0x04, {
'reg' : 0x00 | ct.UINT32,
'CHSIZE' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'SBMODE' : 0x00 | ct.BFUINT32 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'COLDEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 1 << ct.BF_LEN,
'SFDE' : 0x00 | ct.BFUINT32 | 9 << ct.BF_POS | 1 << ct.BF_LEN,
'ENC' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 1 << ct.BF_LEN,
'PMODE' : 0x00 | ct.BFUINT32 | 13 << ct.BF_POS | 1 << ct.BF_LEN,
'TXEN' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'RXEN' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
'LINCMD' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'CTRLC' : ( 0x08, {
'reg' : 0x00 | ct.UINT32,
'GTIME' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 3 << ct.BF_LEN,
'BRKLEN' : 0x00 | ct.BFUINT32 | 8 << ct.BF_POS | 2 << ct.BF_LEN,
'HDRDLY' : 0x00 | ct.BFUINT32 | 10 << ct.BF_POS | 2 << ct.BF_LEN,
'INACK' : 0x00 | ct.BFUINT32 | 16 << ct.BF_POS | 1 << ct.BF_LEN,
'DSNACK' : 0x00 | ct.BFUINT32 | 17 << ct.BF_POS | 1 << ct.BF_LEN,
'MAXITER' : 0x00 | ct.BFUINT32 | 20 << ct.BF_POS | 3 << ct.BF_LEN,
'DATA32B' : 0x00 | ct.BFUINT32 | 24 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'BAUD' : 0x0C | ct.UINT16,
'BAUD_FRAC_MODE' : ( 0x0C, {
'reg' : 0x00 | ct.UINT16,
'BAUD' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 13 << ct.BF_LEN,
'FP' : 0x00 | ct.BFUINT16 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
}),
'BAUD_FRACFP_MODE' : ( 0x0C, {
'reg' : 0x00 | ct.UINT16,
'BAUD' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 13 << ct.BF_LEN,
'FP' : 0x00 | ct.BFUINT16 | 13 << ct.BF_POS | 3 << ct.BF_LEN,
}),
'BAUD_USARTFP_MODE' : 0x0C | ct.UINT16,
'RXPL' : 0x0E | ct.UINT8,
'INTENCLR' : ( 0x14, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTENSET' : ( 0x16, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'INTFLAG' : ( 0x18, {
'reg' : 0x00 | ct.UINT8,
'DRE' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'TXC' : 0x00 | ct.BFUINT8 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'RXC' : 0x00 | ct.BFUINT8 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXS' : 0x00 | ct.BFUINT8 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'CTSIC' : 0x00 | ct.BFUINT8 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'RXBRK' : 0x00 | ct.BFUINT8 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'ERROR' : 0x00 | ct.BFUINT8 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'STATUS' : ( 0x1A, {
'reg' : 0x00 | ct.UINT16,
'PERR' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'FERR' : 0x00 | ct.BFUINT16 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'BUFOVF' : 0x00 | ct.BFUINT16 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'CTS' : 0x00 | ct.BFUINT16 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'ISF' : 0x00 | ct.BFUINT16 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
'COLL' : 0x00 | ct.BFUINT16 | 5 << ct.BF_POS | 1 << ct.BF_LEN,
'TXE' : 0x00 | ct.BFUINT16 | 6 << ct.BF_POS | 1 << ct.BF_LEN,
'ITER' : 0x00 | ct.BFUINT16 | 7 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'SYNCBUSY' : ( 0x1C, {
'reg' : 0x00 | ct.UINT32,
'SWRST' : 0x00 | ct.BFUINT32 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
'ENABLE' : 0x00 | ct.BFUINT32 | 1 << ct.BF_POS | 1 << ct.BF_LEN,
'CTRLB' : 0x00 | ct.BFUINT32 | 2 << ct.BF_POS | 1 << ct.BF_LEN,
'RXERRCNT' : 0x00 | ct.BFUINT32 | 3 << ct.BF_POS | 1 << ct.BF_LEN,
'LENGTH' : 0x00 | ct.BFUINT32 | 4 << ct.BF_POS | 1 << ct.BF_LEN,
}),
'RXERRCNT' : 0x20 | ct.UINT8,
'LENGTH' : ( 0x22, {
'reg' : 0x00 | ct.UINT16,
'LEN' : 0x00 | ct.BFUINT16 | 0 << ct.BF_POS | 8 << ct.BF_LEN,
'LENEN' : 0x00 | ct.BFUINT16 | 8 << ct.BF_POS | 2 << ct.BF_LEN,
}),
'DATA' : 0x28 | ct.UINT32,
'DBGCTRL' : ( 0x30, {
'reg' : 0x00 | ct.UINT8,
'DBGSTOP' : 0x00 | ct.BFUINT8 | 0 << ct.BF_POS | 1 << ct.BF_LEN,
}),
}
SERCOM_ = {
'I2CM' : ( 0x00, SERCOM_I2CM ),
'I2CS' : ( 0x00, SERCOM_I2CS ),
'SPIS' : ( 0x00, SERCOM_SPIS ),
'SPIM' : ( 0x00, SERCOM_SPIM ),
'USART_EXT' : ( 0x00, SERCOM_USART_EXT ),
'USART_INT' : ( 0x00, SERCOM_USART_INT ),
}
SERCOM0 = ct.struct(0x40003000, SERCOM_)
| 49.632759
| 75
| 0.503456
| 4,514
| 28,787
| 3.056491
| 0.040097
| 0.192506
| 0.168442
| 0.146699
| 0.975792
| 0.975792
| 0.974922
| 0.957092
| 0.956802
| 0.954555
| 0
| 0.144707
| 0.294473
| 28,787
| 579
| 76
| 49.71848
| 0.534613
| 0
| 0
| 0.912434
| 0
| 0
| 0.083197
| 0
| 0
| 0
| 0.068156
| 0
| 0
| 1
| 0
| false
| 0
| 0.001751
| 0
| 0.001751
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
c85a46387134e5b8ab8d50ec1fa275845cd192c4
| 8,495
|
py
|
Python
|
tests/app_test.py
|
estepona/naive-file-splitter
|
965c5e8963ab32cd4156e1c689ebce8a7a1092cd
|
[
"MIT"
] | 1
|
2021-10-01T13:57:19.000Z
|
2021-10-01T13:57:19.000Z
|
tests/app_test.py
|
estepona/naive-file-splitter
|
965c5e8963ab32cd4156e1c689ebce8a7a1092cd
|
[
"MIT"
] | null | null | null |
tests/app_test.py
|
estepona/naive-file-splitter
|
965c5e8963ab32cd4156e1c689ebce8a7a1092cd
|
[
"MIT"
] | null | null | null |
import os
import pytest
from src.app import BYTES_PER_MB, SPLITTED_CHUNKS_PATTERN, read_in_chunks, get_path, split_, merge_
@pytest.mark.parametrize(
'dirpath, src, dst, chunk',
[
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
10,
),
],
)
def test_size(dirpath, src, dst, chunk):
split_(src, chunk, '')
merge_(dirpath, True)
srcfile_size = os.stat(src).st_size
dstfile_size = os.stat(dst).st_size
os.remove(dst)
assert srcfile_size == dstfile_size
@pytest.mark.parametrize(
'dirpath, src, name, chunk',
[
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'dup.mov',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'dup.mov',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'dup.mov',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'dup.mov',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'mgs1.mp4',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'mgs1.mp4',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'mgs1.mp4',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'mgs1.mp4',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'medium.webm',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'medium.webm',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'medium.webm',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'medium.webm',
10,
),
],
)
def test_chunk(dirpath, src, name, chunk):
split_(src, chunk, '')
dirpath_ = get_path(dirpath)
all_chunks = list(dirpath_.glob(SPLITTED_CHUNKS_PATTERN))
assert len(all_chunks) > 0
splitted = [p for p in all_chunks if p.stem == name]
assert len(splitted) == chunk
for s in splitted:
os.remove(s)
@pytest.mark.parametrize(
'dirpath, src, dst, chunk',
[
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/dup.mov',
'/mnt/c/Users/estep/Videos/Captures/dup_copy.mov',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/mgs1.mp4',
'/mnt/c/Users/estep/Videos/Captures/mgs1_copy.mp4',
10,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
3,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
5,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
7,
),
(
'/mnt/c/Users/estep/Videos/Captures',
'/mnt/c/Users/estep/Videos/Captures/medium.webm',
'/mnt/c/Users/estep/Videos/Captures/medium_copy.webm',
10,
),
],
)
def test_equal(dirpath, src, dst, chunk):
split_(src, chunk, '')
merge_(dirpath, True)
srcfile = open(src, 'rb')
dstfile = open(dst, 'rb')
src_chunk_gen = read_in_chunks(srcfile, BYTES_PER_MB)
dst_chunk_gen = read_in_chunks(dstfile, BYTES_PER_MB)
while True:
src_chunk = next(src_chunk_gen)
dst_chunk = next(dst_chunk_gen)
if (src_chunk is None) and (dst_chunk is None):
break
assert src_chunk == dst_chunk
srcfile.close()
dstfile.close()
os.remove(dst)
| 29.599303
| 99
| 0.512184
| 984
| 8,495
| 4.343496
| 0.073171
| 0.089846
| 0.202153
| 0.31446
| 0.855171
| 0.838559
| 0.838559
| 0.838559
| 0.838559
| 0.838559
| 0
| 0.016488
| 0.328899
| 8,495
| 286
| 100
| 29.702797
| 0.733205
| 0
| 0
| 0.733083
| 0
| 0
| 0.487934
| 0.466627
| 0
| 0
| 0
| 0
| 0.015038
| 1
| 0.011278
| false
| 0
| 0.011278
| 0
| 0.022556
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
c866176018303ce578b45937beccaf7a80f841d3
| 3,440
|
py
|
Python
|
tests/runtime/test_zero_division_error.py
|
MrGreenTea/friendly
|
091f6af1d3c2be8fee078e52db6e16074d5518e5
|
[
"MIT"
] | null | null | null |
tests/runtime/test_zero_division_error.py
|
MrGreenTea/friendly
|
091f6af1d3c2be8fee078e52db6e16074d5518e5
|
[
"MIT"
] | null | null | null |
tests/runtime/test_zero_division_error.py
|
MrGreenTea/friendly
|
091f6af1d3c2be8fee078e52db6e16074d5518e5
|
[
"MIT"
] | null | null | null |
import friendly
def test_Division_operator():
zero = 0
try:
1 / zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: division by zero" in result
if friendly.get_lang() == "en":
assert "You are dividing by the following term" in result
return result, message
def test_Integer_division_operator():
zero = 0
try:
1 // zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: integer division or modulo by zero" in result
if friendly.get_lang() == "en":
assert "You are dividing by the following term" in result
return result, message
def test_Modulo_operator():
zero = 0
try:
1 % zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: integer division or modulo by zero" in result
if friendly.get_lang() == "en":
assert "Using the modulo operator" in result
return result, message
def test_Divmod():
zero = 0
try:
divmod(1, zero)
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: integer division or modulo by zero" in result
if friendly.get_lang() == "en":
assert "The second argument of the `divmod()`" in result
return result, message
def test_Float_modulo():
zero = 0.
try:
1 % zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: float modulo" in result
if friendly.get_lang() == "en":
assert "Using the modulo operator" in result
return result, message
def test_Float_division():
zero = 0.
try:
1 / zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: float division by zero" in result
if friendly.get_lang() == "en":
assert "You are dividing by the following term" in result
return result, message
def test_Complex_division():
zero = 0j
try:
1 / zero
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "ZeroDivisionError: complex division by zero" in result
if friendly.get_lang() == "en":
assert "You are dividing by the following term" in result
return result, message
def test_Raise_zero_negative_power():
zero = 0
try:
zero ** -1
except ZeroDivisionError as e:
message = str(e)
friendly.explain_traceback(redirect="capture")
result = friendly.get_output()
assert "cannot be raised to a negative power" in result
if friendly.get_lang() == "en":
assert "You are attempting to raise the number 0 to a negative power" in result
return result, message
if __name__ == "__main__":
print(test_Division_operator()[0])
| 27.086614
| 87
| 0.656686
| 424
| 3,440
| 5.205189
| 0.141509
| 0.079746
| 0.090621
| 0.094246
| 0.890349
| 0.88174
| 0.863616
| 0.863616
| 0.843679
| 0.843679
| 0
| 0.007053
| 0.25814
| 3,440
| 126
| 88
| 27.301587
| 0.857759
| 0
| 0
| 0.777778
| 0
| 0
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 1
| 0.080808
| false
| 0
| 0.010101
| 0
| 0.171717
| 0.010101
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
c86a9d6a37d84ea9884e46cfb318f7404eaf21e1
| 3,850
|
py
|
Python
|
tamcolors/tests/tam_tools_tests/tam_print_tests.py
|
cmcmarrow/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 29
|
2020-07-17T23:46:17.000Z
|
2022-02-06T05:36:44.000Z
|
tamcolors/tests/tam_tools_tests/tam_print_tests.py
|
sudo-nikhil/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 42
|
2020-07-25T19:39:52.000Z
|
2021-02-24T01:19:58.000Z
|
tamcolors/tests/tam_tools_tests/tam_print_tests.py
|
sudo-nikhil/tamcolors
|
65a5f2455bbe35a739b98d14af158c3df7feb786
|
[
"Apache-2.0"
] | 8
|
2020-07-18T23:02:48.000Z
|
2020-12-30T04:07:35.000Z
|
# built in libraries
import unittest.mock
# tamcolors libraries
from tamcolors import tam_io
from tamcolors import tam_tools
from tamcolors.tam_io.tam_colors import *
class TAMPrintTests(unittest.TestCase):
def test_tam_print(self):
surface = tam_io.tam_surface.TAMSurface(6, 5, "@", RED, GREEN)
tam_tools.tam_print.tam_print(surface, 0, 1, "Test", YELLOW, BLUE)
self.assertEqual(surface.get_spot(0, 1), ("T", YELLOW, BLUE))
self.assertEqual(surface.get_spot(1, 1), ("e", YELLOW, BLUE))
self.assertEqual(surface.get_spot(2, 1), ("s", YELLOW, BLUE))
self.assertEqual(surface.get_spot(3, 1), ("t", YELLOW, BLUE))
self.assertEqual(surface.get_spot(4, 1), ("@", RED, GREEN))
def test_tam_print_2(self):
surface = tam_io.tam_surface.TAMSurface(7, 5, "@", RED, GREEN)
surface.set_spot(3, 1, "E", GRAY, LIGHT_RED)
tam_tools.tam_print.tam_print(surface, 2, 1, "Test", YELLOW, ALPHA)
self.assertEqual(surface.get_spot(2, 1), ("T", YELLOW, GREEN))
self.assertEqual(surface.get_spot(3, 1), ("e", YELLOW, LIGHT_RED))
self.assertEqual(surface.get_spot(4, 1), ("s", YELLOW, GREEN))
self.assertEqual(surface.get_spot(5, 1), ("t", YELLOW, GREEN))
self.assertEqual(surface.get_spot(6, 1), ("@", RED, GREEN))
def test_tam_print_3(self):
surface = tam_io.tam_surface.TAMSurface(7, 5, "@", RED, GREEN)
surface.set_spot(3, 1, "E", GRAY, LIGHT_RED)
tam_tools.tam_print.tam_print(surface, 2, 1, "Test\n\tcat", YELLOW, ALPHA)
self.assertEqual(surface.get_spot(2, 1), ("T", YELLOW, GREEN))
self.assertEqual(surface.get_spot(3, 1), ("e", YELLOW, LIGHT_RED))
self.assertEqual(surface.get_spot(4, 1), ("s", YELLOW, GREEN))
self.assertEqual(surface.get_spot(5, 1), ("t", YELLOW, GREEN))
self.assertEqual(surface.get_spot(6, 1), ("@", RED, GREEN))
self.assertEqual(surface.get_spot(2, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(3, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(4, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(5, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(6, 2), ("c", YELLOW, GREEN))
self.assertEqual(surface.get_spot(7, 2), None)
def test_tam_print_4(self):
surface = tam_io.tam_surface.TAMSurface(7, 5, "@", RED, GREEN)
surface.set_spot(3, 1, "E", GRAY, LIGHT_RED)
tam_tools.tam_print.tam_print(surface, 2, 1, "Test\n\r\tcat", YELLOW, ALPHA)
self.assertEqual(surface.get_spot(2, 1), ("T", YELLOW, GREEN))
self.assertEqual(surface.get_spot(3, 1), ("e", YELLOW, LIGHT_RED))
self.assertEqual(surface.get_spot(4, 1), ("s", YELLOW, GREEN))
self.assertEqual(surface.get_spot(5, 1), ("t", YELLOW, GREEN))
self.assertEqual(surface.get_spot(6, 1), ("@", RED, GREEN))
self.assertEqual(surface.get_spot(2, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(3, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(4, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(5, 2), (" ", YELLOW, GREEN))
self.assertEqual(surface.get_spot(6, 2), ("c", YELLOW, GREEN))
self.assertEqual(surface.get_spot(7, 2), None)
def test_tam_print_5(self):
surface = tam_io.tam_surface.TAMSurface(7, 5, "@", RED, GREEN)
surface.set_spot(3, 1, "E", GRAY, LIGHT_RED)
self.assertRaises(tam_tools.tam_str.TAMStrError,
tam_tools.tam_print.tam_print,
surface,
2,
1,
"Test\n\r\tcat",
3,
-1,
error_bad_char=True)
| 52.027027
| 84
| 0.605195
| 530
| 3,850
| 4.226415
| 0.103774
| 0.214286
| 0.314286
| 0.357143
| 0.879911
| 0.879911
| 0.879911
| 0.778571
| 0.778571
| 0.741964
| 0
| 0.033086
| 0.230649
| 3,850
| 73
| 85
| 52.739726
| 0.72316
| 0.00987
| 0
| 0.546875
| 0
| 0
| 0.022053
| 0
| 0
| 0
| 0
| 0
| 0.515625
| 1
| 0.078125
| false
| 0
| 0.0625
| 0
| 0.15625
| 0.15625
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
c0a51725733140efca24f97424298a7c4499ca51
| 33,117
|
py
|
Python
|
authors/apps/articles/tests/test_views.py
|
kimbugp/ah-haven-space-sprinters
|
00e08131d1c4d7785f127f8e1beb17488c8ca0fd
|
[
"BSD-3-Clause"
] | 4
|
2019-04-30T13:38:15.000Z
|
2021-04-22T08:56:54.000Z
|
authors/apps/articles/tests/test_views.py
|
kimbugp/ah-haven-space-sprinters
|
00e08131d1c4d7785f127f8e1beb17488c8ca0fd
|
[
"BSD-3-Clause"
] | 37
|
2019-03-19T09:33:42.000Z
|
2019-04-30T20:02:02.000Z
|
authors/apps/articles/tests/test_views.py
|
kimbugp/ah-haven-space-sprinters
|
00e08131d1c4d7785f127f8e1beb17488c8ca0fd
|
[
"BSD-3-Clause"
] | 4
|
2019-06-29T11:50:41.000Z
|
2019-12-09T02:17:05.000Z
|
import json
from django.urls import reverse
from django.core import mail
from rest_framework import status
from authors.apps.authentication.models import User
from authors.apps.articles.models import Article, ArticleLikes
from .test_base import BaseTestClass
from authors.apps.authentication.tests.test_base import BaseTestClass as BTC
class TestUserRoutes(BaseTestClass):
def test_create_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
self.assertEqual(response.status_code, 201)
def test_get_all_articles(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
response = self.client.get(
reverse('article:create_article'),
format='json')
self.assertEqual(response.status_code, 200)
def test_get_one_articles(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.get(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
def test_slug_does_not_exist(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.get(
reverse(
'article:get_article',
kwargs={
'slug': "how-t-trai-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 404)
self.assertIn('Not found.', str(response.data))
def test_delete_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.delete(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
self.assertIn('Article has been deleted', str(response.data))
def test_update_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.put(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
data=self.update_data,
format='json')
self.assertEqual(response.status_code, 200)
def test_delete_article_no_slug(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.delete(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon77"}),
format='json')
self.assertEqual(response.status_code, 404)
self.assertIn('Not found.', str(response.data))
def test_update_article_no_slug(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.put(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon88"}),
data=self.update_data,
format='json')
self.assertEqual(response.status_code, 404)
self.assertIn('Not found.', str(response.data))
def test_show_read_time(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.get(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
self.assertEqual(str(response.data['read_time']), "less than 1 min")
def test_show_read_time_more_than_a_minute(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article,
format='json')
response = self.client.get(
reverse(
'article:get_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
self.assertEqual(str(response.data['read_time']), "4 mins")
def test_share_facebook_link(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.post(
reverse(
'article:share_facebook',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
def test_share_twitter_link(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.post(
reverse(
'article:share_twitter',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
def test_share_article_via_mail(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
response = self.client.post(
reverse(
'article:share_email',
kwargs={
'slug': "how-to-train-your-dragon"}),
data=self.email_share,
format='json')
self.assertEqual(response.status_code, 200)
self.assertIn('Your article has been shared successfully',
str(response.data))
self.assertIn(
'Your article has been shared successfully', str(
response.data))
def test_get_all_tags(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data2,
format='json')
resp = self.client.get(
reverse('articles:get_tags'), format='json')
self.assertEqual(resp.status_code, 200)
def test_no_tags_available(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
reverse('article:create_article'),
data=self.article_data,
format='json')
resp = self.client.get(
reverse('articles:get_tags'), format='json')
self.assertIn('there are no tags available', str(resp.data))
def test_post_rating_article_unauthorized(self):
response = self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.6}))
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
def test_post_rating_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
response = self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.6}))
self.assertEqual(response.status_code, 201)
self.assertEqual('4.6', response.data['rating'])
def test_post_rating_article_same_authour(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
response = self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.6}))
message = {
'error': ['Rate an article that does not belong to you, Please']}
self.assertEqual(response.status_code, 400)
self.assertEqual(message, response.data['errors'])
def test_post_rating_article_exists(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.6}))
response = self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.7}))
message = {"error": ['Article rating already exists, Please']
}
self.assertEqual(response.status_code, 400)
self.assertEqual(response.data['errors'], message)
def test_get_rated_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.7}))
response = self.client.get(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
self.assertEqual(response.status_code, 200)
self.assertEqual('4.7', response.data['rating'])
def test_get_rated_article_unauthorized(self):
response = self.client.get(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
format='json')
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
def test_updated_rated_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.7}))
response = self.client.patch(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.8}))
self.assertEqual(response.status_code, 200)
self.assertEqual('4.8', response.data['rating'])
def test_updated_rated_article_unauthorized(self):
response = self.client.patch(
reverse(
'article:rate_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json', data=json.dumps({'rating': 4.6}))
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
def test_post_bookmark_article_unauthorized(self):
response = self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
def test_post_bookmark_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
response = self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
self.assertEqual(response.status_code, 201)
self.assertEqual(True, response.data['bookmark'])
def test_post_bookmark_article_error(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
response = self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train4-your-dragon"}),
content_type='application/json')
message = {'detail': 'Not found.'}
self.assertEqual(response.status_code, 404)
self.assertEqual(message, response.data)
def test_post_bookmark_article_exists(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
response = self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
message = {"error": ['Article bookmark already exists, Please']}
self.assertEqual(response.status_code, 400)
self.assertEqual(response.data['errors'], message)
def test_get_bookmarked_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
response = self.client.get(
reverse(
'article:bookmarked'),
format='json')
self.assertEqual(response.status_code, 200)
def test_get_bookmarked_article_unauthorized(self):
response = self.client.get(
reverse(
'article:bookmarked'),
format='json')
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
def test_un_bookmark_article(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
response = self.client.delete(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
self.assertEqual(response.status_code, 200)
self.assertEqual(False, response.data['bookmarked'])
def test_un_bookmark_article_error(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
response = self.client.delete(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
error = {
"error": [
"Article bookmark doesnot exists."]
}
self.assertEqual(response.status_code, 400)
self.assertEqual(error, response.data['errors'])
def test_un_bookmark_article_not_found(self):
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header)
self.client.post(reverse('article:create_article'),
data=self.article_data, format='json')
self.client.credentials(HTTP_AUTHORIZATION=self.auth_header3)
self.client.post(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
response = self.client.delete(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train7-your-dragon"}),
content_type='application/json')
message = {'detail': 'Not found.'}
self.assertEqual(response.status_code, 404)
self.assertEqual(message, response.data)
def test_un_bookmark_article_unauthorized(self):
response = self.client.delete(
reverse(
'article:bookmark_article',
kwargs={
'slug': "how-to-train-your-dragon"}),
content_type='application/json')
error = {"detail": "Authentication credentials were not provided."}
self.assertEqual(response.status_code, 403)
self.assertEqual(error, response.data)
class TestArticleLikes(BaseTestClass):
def test_like_article(self):
response = self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header2)
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data=self.like_request,
format='json'
)
self.assertEqual(like_response.status_code, status.HTTP_201_CREATED)
self.assertEqual(
like_response.data['message'], 'You have liked an article')
def test_like_article_doesnot_exist(self):
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data=self.like_request,
format='json'
)
self.assertEqual(like_response.status_code, 404)
def test_like_article_with_non_boolean_value(self):
response = self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header2)
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data={"like_article": "true"},
format='json'
)
expected_response = {
"errors": [
"Value of like_article should be a boolean"
]
}
self.assertEqual(like_response.status_code, 400)
self.assertEqual(like_response.data, expected_response)
def test_like_article_with_invalid_request_body(self):
response = self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header2)
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2
)
expected_response = {
"errors": [
"like_article field is required"
]
}
self.assertEqual(like_response.status_code, 400)
self.assertEqual(like_response.data, expected_response)
def test_like_article_already_liked(self):
response = self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header2)
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data=self.like_request,
format='json'
)
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data=self.like_request,
format='json'
)
self.assertEqual(like_response.status_code, status.HTTP_200_OK)
self.assertEqual(
like_response.data['message'],
'You have already liked the article')
def test_dislike_article(self):
response = self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header2)
like_response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
HTTP_AUTHORIZATION=self.auth_header2,
data=self.dislike_request,
format='json'
)
self.assertEqual(like_response.status_code, status.HTTP_201_CREATED)
self.assertEqual(
like_response.data['message'], 'You have disliked an article')
def test_list_of_users_liked_succeeds(self):
"""Tests an endpoint that lists users that liked/disliked"""
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.like_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.get(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
HTTP_AUTHORIZATION=self.auth_header)
self.assertEqual(response.status_code, 200)
self.assertListEqual(["sampleuser"],
response.data.get("likes"))
def test_get_like_article(self):
self.client.credentials(
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.url, data=self.article, format='json')
slug = response.data.get('slug')
like_url = reverse("article:article_likes", args=[slug])
self.client.put(like_url, format='json')
get_like_url = reverse("article:article_likes", args=[slug])
get_like_response = self.client.get(get_like_url, format='json')
self.assertEqual(get_like_response.status_code, status.HTTP_200_OK)
def test_unlike_an_article_succeeds(self):
"""Unlike an already liked article by the same user"""
self.client.credentials(
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.url, data=self.article, format='json')
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.like_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.delete(
self.like_url,
content_type='application/json',
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have unliked an article", response.data["message"])
def test_dislike_an_article_succeeds(self):
"""Tests an endpoint that dislikes an article"""
self.client.credentials(
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.url, data=self.article, format='json')
response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have disliked an article", response.data["message"])
def test_dislike_after_dislike_succeeds(self):
"""Dislike an already disliked article by the same user"""
self.client.credentials(
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.url, data=self.article, format='json')
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.put(
self.like_url,
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have already disliked the article",
response.data["message"])
def test_undislike_an_article_succeeds(self):
"""Remove a dislike from a disliked article by the same user"""
self.client.credentials(
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.url, data=self.article, format='json')
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.delete(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have un-disliked an article",
response.data["message"])
def test_like_after_dislike_an_article_succeeds(self):
"""like a formerly a disliked article by the same user"""
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.like_request),
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have liked an article", response.data["message"])
def test_dislike_after_like_an_article_succeeds(self):
"""Dislike a formerly a liked article by the same user"""
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.like_request),
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.put(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
data=json.dumps(self.dislike_request),
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("You have disliked an article", response.data["message"])
def test_remove_like_dislike_nonexixtent(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.delete(
'/api/articles/how-to-train-your-dragon/likes/',
content_type='application/json',
HTTP_AUTHORIZATION=self.auth_header)
expected_response = {
"errors": [
"There is no like or dislike to remove"
]
}
self.assertEqual(response.data, expected_response)
def test_report_creation(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.report_url, data={'reason': 'anything'}, format='json',
HTTP_AUTHORIZATION=self.auth_header3)
self.assertIn(
f"You have successfully reported article {self.slug}", str(response.data))
def test_report_on_article_again(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
self.report_url, data={'reason': 'anything'}, format='json',
HTTP_AUTHORIZATION=self.auth_header3)
response = self.client.post(
self.report_url, data={'reason': 'anything'}, format='json',
HTTP_AUTHORIZATION=self.auth_header3)
self.assertIn('you already reported this article', str(response.data))
def test_report_your_own_article(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
response = self.client.post(
self.report_url, data={'reason': 'anything'}, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn("you cannot report your own article", str(response.data))
def test_get_reports_admin(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.client.post(
self.report_url, data={'reason': 'anything'}, format='json',
HTTP_AUTHORIZATION=self.auth_header3)
user = User.objects.create_superuser(
username='samleuser',
email='use@sprinters.ug',
password='Butt3rfly1')
self.client.force_authenticate(user=user)
resp = self.client.get(reverse('article:get_reports'))
self.assertEqual(resp.status_code, 200)
def test_get_reports_non_admin(self):
self.client.post(
self.url, data=self.article, format='json',
HTTP_AUTHORIZATION=self.auth_header)
resp = self.client.get(
reverse('article:get_reports'), format='json',
HTTP_AUTHORIZATION=self.auth_header)
self.assertIn('permission denied login as admin', str(resp.data))
| 41.5
| 86
| 0.602228
| 3,543
| 33,117
| 5.456675
| 0.05899
| 0.081726
| 0.091243
| 0.108623
| 0.897791
| 0.878757
| 0.864325
| 0.854911
| 0.82548
| 0.800548
| 0
| 0.007797
| 0.28351
| 33,117
| 797
| 87
| 41.55207
| 0.806979
| 0.010901
| 0
| 0.796424
| 0
| 0
| 0.175061
| 0.080746
| 0
| 0
| 0
| 0
| 0.115543
| 1
| 0.072902
| false
| 0.001376
| 0.011004
| 0
| 0.086658
| 0.001376
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 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
| 7
|
c0c586afcbaa5be04df2a07bbcd4cbe92790ecb2
| 764
|
py
|
Python
|
eppy/tests/test_case_insensitive.py
|
hnagda/eppy
|
422399ada78eb9f39ae61f96b385fe41a0a19100
|
[
"MIT"
] | 116
|
2015-04-07T13:58:34.000Z
|
2022-02-23T15:52:35.000Z
|
eppy/tests/test_case_insensitive.py
|
hnagda/eppy
|
422399ada78eb9f39ae61f96b385fe41a0a19100
|
[
"MIT"
] | 324
|
2015-01-01T04:10:46.000Z
|
2022-03-16T16:28:13.000Z
|
eppy/tests/test_case_insensitive.py
|
hnagda/eppy
|
422399ada78eb9f39ae61f96b385fe41a0a19100
|
[
"MIT"
] | 65
|
2015-07-14T21:57:02.000Z
|
2022-02-14T08:39:02.000Z
|
import pytest
@pytest.mark.parametrize("key", ["BUILDING", "Building", "building", "BuIlDiNg"])
def test_get_and_set(base_idf, key):
idf = base_idf
idf.newidfobject(key, Name="Building")
buildings = idf.idfobjects["building"]
assert len(buildings) == 1
@pytest.mark.parametrize("key", ["BUILDING", "Building", "building", "BuIlDiNg"])
def test_contains(base_idf, key):
idf = base_idf
idf.newidfobject(key, Name="Building")
assert key in idf.idfobjects
@pytest.mark.parametrize("key", ["BUILDING", "Building", "building", "BuIlDiNg"])
def test_del(base_idf, key):
idf = base_idf
idf.newidfobject(key, Name="Building")
assert key in idf.idfobjects
del idf.idfobjects["building"]
assert key not in idf.idfobjects
| 29.384615
| 81
| 0.693717
| 98
| 764
| 5.295918
| 0.244898
| 0.277457
| 0.277457
| 0.138728
| 0.745665
| 0.745665
| 0.745665
| 0.745665
| 0.745665
| 0.745665
| 0
| 0.001546
| 0.153141
| 764
| 25
| 82
| 30.56
| 0.800618
| 0
| 0
| 0.578947
| 0
| 0
| 0.189791
| 0
| 0
| 0
| 0
| 0
| 0.210526
| 1
| 0.157895
| false
| 0
| 0.052632
| 0
| 0.210526
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c0d4d0151900f828636a6b8a82722ae41f8b1e19
| 47
|
py
|
Python
|
tests/functions.py
|
glebite/dikteh
|
c717696420901e7b19fc181ac4a853a698769616
|
[
"CC0-1.0"
] | null | null | null |
tests/functions.py
|
glebite/dikteh
|
c717696420901e7b19fc181ac4a853a698769616
|
[
"CC0-1.0"
] | null | null | null |
tests/functions.py
|
glebite/dikteh
|
c717696420901e7b19fc181ac4a853a698769616
|
[
"CC0-1.0"
] | null | null | null |
import os
def thingy():
return 'Windows'
| 7.833333
| 20
| 0.638298
| 6
| 47
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.255319
| 47
| 5
| 21
| 9.4
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0.148936
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 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
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 8
|
c0e42bcb627e13b9fab6a9fbb71e89baedc779d8
| 175
|
py
|
Python
|
sktime/datasets/__init__.py
|
fkiraly/sktime
|
3cd0064f7750844178b60d67422b083b5004131a
|
[
"BSD-3-Clause"
] | 2
|
2021-01-19T05:10:50.000Z
|
2021-01-22T18:39:56.000Z
|
sktime/datasets/__init__.py
|
fkiraly/sktime
|
3cd0064f7750844178b60d67422b083b5004131a
|
[
"BSD-3-Clause"
] | 1
|
2019-11-05T16:48:00.000Z
|
2019-11-05T16:48:00.000Z
|
sktime/datasets/__init__.py
|
jasonlines/sktime-workshop-shapelets
|
de18963af56a0f062b0a69cc6560611912a6778f
|
[
"BSD-3-Clause"
] | 1
|
2019-11-05T16:34:32.000Z
|
2019-11-05T16:34:32.000Z
|
from .base import load_gunpoint
from .base import load_italy_power_demand
from .base import load_arrow_head
from .base import load_shampoo_sales
from .base import load_longley
| 35
| 41
| 0.862857
| 29
| 175
| 4.896552
| 0.448276
| 0.28169
| 0.492958
| 0.633803
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108571
| 175
| 5
| 42
| 35
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 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
| 7
|
c0f8cffb500b899abd2afc2e3e66a8d747c357f1
| 6,503
|
py
|
Python
|
tests/snc/agents/hedgehog/test_minimum_draining_time.py
|
dmcnamee/snc
|
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
|
[
"Apache-2.0"
] | 5
|
2021-03-24T16:23:10.000Z
|
2021-11-17T12:44:51.000Z
|
tests/snc/agents/hedgehog/test_minimum_draining_time.py
|
dmcnamee/snc
|
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
|
[
"Apache-2.0"
] | 3
|
2021-03-26T01:16:08.000Z
|
2021-05-08T22:06:47.000Z
|
tests/snc/agents/hedgehog/test_minimum_draining_time.py
|
dmcnamee/snc
|
c2da8c1e9ecdc42c59b9de73224b3d50ee1c9786
|
[
"Apache-2.0"
] | 2
|
2021-03-24T17:20:06.000Z
|
2021-04-19T09:01:12.000Z
|
import numpy as np
import snc.agents.hedgehog.minimal_draining_time as mdt
from snc.agents.hedgehog.workload.workload import compute_load_workload_matrix
from snc.environments import examples
def test_compute_minimal_draining_time_push_model():
minimal_draining_time_theory = 20.
initial_state = np.array([[10.], [10.], [10.]])
env = examples.simple_reentrant_line_model(
alpha1=9, mu1=22, mu2=10, mu3=22, cost_per_buffer=np.ones((3, 1)),
initial_state=initial_state, capacity=np.ones((3, 1)) * np.inf, job_conservation_flag=True,
job_gen_seed=42)
workload_mat = compute_load_workload_matrix(
env=env, num_wl_vec=None, load_threshold=None, feasible_tol=1e-10).workload_mat
w = workload_mat @ initial_state
load = workload_mat @ env._job_generator.demand_rate
minimal_draining_time_theory /= env.job_generator.sim_time_interval
minimal_draining_time_directly_from_workload = \
mdt.compute_minimal_draining_time_from_workload(
w=w, load=load)
minimal_draining_time_from_workload = \
mdt.compute_minimal_draining_time_computing_workload_from_env(
initial_state=initial_state, env=env, demand_rate=env.job_generator.demand_rate)
minimal_draining_time_cvxpy = mdt.compute_minimal_draining_time_from_env_cvxpy(
initial_state=initial_state, env=env)
minimal_draining_time_cvxpy_dual = mdt.compute_dual_minimal_draining_time_from_env_cvxpy(
initial_state=initial_state, env=env)
minimal_draining_time_scipy = mdt.compute_minimal_draining_time_from_env_scipy(
initial_state=initial_state, env=env)
minimal_draining_time_scipy_dual = mdt.compute_dual_minimal_draining_time_scipy(
initial_state=initial_state, env=env)
np.testing.assert_almost_equal(minimal_draining_time_theory,
minimal_draining_time_directly_from_workload, decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_theory,
minimal_draining_time_from_workload, decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_theory, minimal_draining_time_cvxpy,
decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_theory, minimal_draining_time_cvxpy_dual,
decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_theory, minimal_draining_time_scipy)
np.testing.assert_almost_equal(minimal_draining_time_theory, minimal_draining_time_scipy_dual)
def perform_test_compute_minimal_draining_time_demand_model(env, initial_state,
minimal_draining_time_theory):
minimal_draining_time_from_workload = \
mdt.compute_minimal_draining_time_computing_workload_from_env(
initial_state=initial_state, env=env, demand_rate=env.job_generator.demand_rate)
minimal_draining_time_cvxpy = mdt.compute_minimal_draining_time_from_env_cvxpy(
initial_state=initial_state, env=env)
minimal_draining_time_cvxpy_dual = mdt.compute_dual_minimal_draining_time_from_env_cvxpy(
initial_state=initial_state, env=env)
minimal_draining_time_scipy = mdt.compute_minimal_draining_time_from_env_scipy(
initial_state=initial_state, env=env)
minimal_draining_time_scipy_dual = mdt.compute_dual_minimal_draining_time_scipy(
initial_state=initial_state, env=env)
# Since the single server with demand uses the scaled Bernoulli job generator, we have to scale
# the minimal draining time accordingly.
minimal_draining_time_cvxpy *= env.job_generator.sim_time_interval
minimal_draining_time_cvxpy_dual *= env.job_generator.sim_time_interval
minimal_draining_time_scipy *= env.job_generator.sim_time_interval
minimal_draining_time_scipy_dual *= env.job_generator.sim_time_interval
# For this model (demand) and this initial state, the max over the workload vectors should not
# work and instead Eq. (7.4) from CTCN book (online version) should be used.
if minimal_draining_time_theory:
assert np.abs(minimal_draining_time_theory - minimal_draining_time_from_workload) > 1e-1
minimal_draining_time_ref = minimal_draining_time_theory
else:
minimal_draining_time_ref = minimal_draining_time_scipy_dual
# The LP methods should still work for demand models.
np.testing.assert_almost_equal(minimal_draining_time_ref, minimal_draining_time_cvxpy,
decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_ref, minimal_draining_time_cvxpy_dual,
decimal=5)
np.testing.assert_almost_equal(minimal_draining_time_ref, minimal_draining_time_scipy)
np.testing.assert_almost_equal(minimal_draining_time_ref, minimal_draining_time_scipy_dual)
def test_compute_minimal_draining_time_demand_model_extra_supply():
initial_state = np.array([[10.], [0.], [0.]])
env = examples.single_station_demand_model(
alpha_d=9, mu=10, mus=1e2, mud=1e2, cost_per_buffer=np.array([1, 0.5, 10])[:, None],
initial_state=initial_state, capacity=np.ones((3, 1)) * np.inf,
job_conservation_flag=True, job_gen_seed=42)
perform_test_compute_minimal_draining_time_demand_model(env, initial_state, None)
def test_compute_minimal_draining_time_demand_model_extra_surplus():
minimal_draining_time_theory = 10./9.
initial_state = np.array([[0.], [10.], [0.]])
env = examples.single_station_demand_model(
alpha_d=9, mu=10, mus=1e2, mud=1e2, cost_per_buffer=np.array([1, 0.5, 10])[:, None],
initial_state=initial_state, capacity=np.ones((3, 1)) * np.inf,
job_conservation_flag=True, job_gen_seed=42)
perform_test_compute_minimal_draining_time_demand_model(env, initial_state,
minimal_draining_time_theory)
def test_compute_minimal_draining_time_demand_model_extra_demand():
alpha_d = 9
mu = 10
mus = 1e2
mud = 1e2
s0 = 10
initial_state = np.array([[0.], [0.], [s0]])
env = examples.single_station_demand_model(
alpha_d=alpha_d, mu=mu, mus=mus, mud=mud, cost_per_buffer=np.array([1, 0.5, 10])[:, None],
initial_state=initial_state, capacity=np.ones((3, 1)) * np.inf,
job_conservation_flag=True, job_gen_seed=42)
perform_test_compute_minimal_draining_time_demand_model(env, initial_state, None)
| 55.581197
| 99
| 0.746732
| 896
| 6,503
| 4.947545
| 0.147321
| 0.230092
| 0.29145
| 0.087977
| 0.804196
| 0.782766
| 0.769231
| 0.742161
| 0.722987
| 0.637717
| 0
| 0.01927
| 0.178072
| 6,503
| 116
| 100
| 56.060345
| 0.810103
| 0.054129
| 0
| 0.427083
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114583
| 1
| 0.052083
| false
| 0
| 0.041667
| 0
| 0.09375
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 8
|
23c3804bd3b6ebc5a0f3655a51abbe2e80bad2ff
| 10,262
|
py
|
Python
|
command/runner.py
|
Canon11/dj-cref
|
f139a2dcd31d7229293e7fe53ec5a21519024ad1
|
[
"MIT"
] | 1
|
2019-06-30T15:29:40.000Z
|
2019-06-30T15:29:40.000Z
|
command/runner.py
|
Canon11/dj-cref
|
f139a2dcd31d7229293e7fe53ec5a21519024ad1
|
[
"MIT"
] | null | null | null |
command/runner.py
|
Canon11/dj-cref
|
f139a2dcd31d7229293e7fe53ec5a21519024ad1
|
[
"MIT"
] | null | null | null |
from abc import abstractmethod, ABCMeta
import textwrap
class BaseView(metaclass=ABCMeta):
def get_import(self):
text = 'from django.views import %s' % self.__class__.__name__
return text
@abstractmethod
def get_main_text(self):
pass
def output(self, needs_import):
text = ""
if needs_import:
text += '%s\n\n\n' % self.get_import()
text += self.get_main_text()
print(text)
class View(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyView(View):
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def http_method_not_allowed(self, request, *args, **kwargs):
# please implement here
super().http_method_not_allowed(request, *args, **kwargs)
def get(self, request, *args, **kwargs):
# please implement here
pass
def post(self, request, *args, **kwargs):
# please implement here
pass
''')
return text
class FormView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyFormView(FormView):
# template_name = 'my_template.html'
# form_class = 'MyForm'
# success_url = '/my/success'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
def form_valid(self, form):
form = super().form_valid(form)
# please implement here
return form
def form_invalid(self, form):
form = super().form_invalid(form)
# please implement here
return form
def get_success_url(self):
url = super().get_success_url()
# please implement here
return url
''')
return text
class CreateView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyCreateView(CreateView):
# template_name = 'my_template.html'
# model = 'MyModel'
# fields = ['field1', 'field2']
# form_class = 'MyForm'
# success_url = '/my/success'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
def get_queryset(self):
queryset = self.get_queryset()
# please implement here
return queryset
def get_object(self, queryset=None):
obj = self.get_object(queryset)
# please implement here
retur obj
def form_valid(self, form):
form = super().form_valid(form)
# please implement here
return form
def form_invalid(self, form):
form = super().form_invalid(form)
# please implement here
return form
def get_success_url(self):
url = super().get_success_url()
# please implement here
return url
''')
return text
class UpdateView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyUpdateView(UpdateView):
# template_name = 'my_template.html'
# model = 'MyModel'
# fields = ['field1', 'field2']
# form_class = 'MyForm'
# success_url = '/my/success'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
def get_queryset(self):
queryset = self.get_queryset()
# please implement here
return queryset
def get_object(self, queryset=None):
obj = self.get_object(queryset)
# please implement here
retur obj
def form_valid(self, form):
form = super().form_valid(form)
# please implement here
return form
def form_invalid(self, form):
form = super().form_invalid(form)
# please implement here
return form
def get_success_url(self):
url = super().get_success_url()
# please implement here
return url
''')
return text
class DetailView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyDetailView(DetailView):
# template_name = 'my_template.html'
# model = 'MyModel'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_queryset(self):
queryset = self.get_queryset()
# please implement here
return queryset
def get_object(self, queryset=None):
obj = self.get_object(queryset)
# please implement here
retur obj
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
''')
return text
class DeleteView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyDeleteView(DeleteView):
# template_name = 'my_template.html'
# model = 'MyModel'
# success_url = '/my/success'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
def get_queryset(self):
queryset = self.get_queryset()
# please implement here
return queryset
def get_object(self, queryset=None):
obj = self.get_object(queryset)
# please implement here
retur obj
def get_success_url(self):
url = super().get_success_url()
# please implement here
return url
''')
return text
class TemplateView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyTemplateView(TemplateView):
# template_name = 'my_template.html'
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def http_method_not_allowed(self, request, *args, **kwargs):
# please implement here
super().http_method_not_allowed(request, *args, **kwargs)
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
''')
return text
class ListView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyListView(ListView):
# template_name = 'my_template.html'
# model = 'MyModel'
# allow_empty = True
# paginate_by = 10
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_queryset(self):
queryset = self.get_queryset()
# please implement here
return queryset
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
# please implement here
return context
''')
return text
class RedirectView(BaseView):
def get_main_text(self):
text = textwrap.dedent('''\
class MyRedirectView(RedirectView):
# url = '/redirect/url'
# pattern_name = 'article-detail'
# permanent = False
# query_string = True
def dispatch(self, request, *args, **kwargs):
super().dispatch(request, *args, **kwargs)
# please implement here
def get_redirect_url(self, *args, **kwargs):
# please implement here
return super().get_redirect_url(*args, **kwargs)
''')
return text
| 33.535948
| 77
| 0.479146
| 896
| 10,262
| 5.321429
| 0.102679
| 0.125839
| 0.159396
| 0.120596
| 0.854446
| 0.832425
| 0.832425
| 0.808515
| 0.790059
| 0.790059
| 0
| 0.001031
| 0.432762
| 10,262
| 305
| 78
| 33.645902
| 0.818073
| 0
| 0
| 0.834711
| 0
| 0
| 0.855389
| 0.140908
| 0
| 0
| 0
| 0
| 0
| 1
| 0.049587
| false
| 0.012397
| 0.028926
| 0
| 0.256198
| 0.004132
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f1d679b4230f64b9f019068584123a15c4f2aa81
| 440
|
py
|
Python
|
CreateCSV/settings.py
|
JacobRawling/MLTopReconstruction
|
8d498e8da6ce672615892d67a4678c873953f260
|
[
"MIT"
] | 1
|
2020-05-28T11:49:30.000Z
|
2020-05-28T11:49:30.000Z
|
CreateCSV/settings.py
|
JacobRawling/MLTopReconstruction
|
8d498e8da6ce672615892d67a4678c873953f260
|
[
"MIT"
] | null | null | null |
CreateCSV/settings.py
|
JacobRawling/MLTopReconstruction
|
8d498e8da6ce672615892d67a4678c873953f260
|
[
"MIT"
] | null | null | null |
input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/output.root"
input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/410501_minisample.root"
input_file = "/Users/jrawling/Documents/Physics/DeadConeAnalysis/ATLASWork/samples/ttj/410501.root"
detector_tuple_name = "nominal"
truth_tuple_name = "truth"
output_folder = "out/"
output_file_name = "ttj_mini.csv"
| 62.857143
| 113
| 0.802273
| 54
| 440
| 6.314815
| 0.425926
| 0.079179
| 0.123167
| 0.193548
| 0.70088
| 0.70088
| 0.70088
| 0.70088
| 0.70088
| 0.70088
| 0
| 0.029557
| 0.077273
| 440
| 7
| 114
| 62.857143
| 0.810345
| 0
| 0
| 0
| 0
| 0
| 0.659864
| 0.596372
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
9e4dc06c90301e66f54b59538a0d0e3faf972500
| 1,349
|
py
|
Python
|
tests/bpyutils/util/test_test.py
|
boilpy/bpyutils
|
9f81c544abaf7b3221f3c6783f293c344bd94544
|
[
"MIT"
] | null | null | null |
tests/bpyutils/util/test_test.py
|
boilpy/bpyutils
|
9f81c544abaf7b3221f3c6783f293c344bd94544
|
[
"MIT"
] | null | null | null |
tests/bpyutils/util/test_test.py
|
boilpy/bpyutils
|
9f81c544abaf7b3221f3c6783f293c344bd94544
|
[
"MIT"
] | null | null | null |
import pytest
from bpyutils.util.test import (
_class_name_to_fn,
_read_and_sanitize_file,
TestGenerator,
NodeFetcher,
generate_tests
)
def test__class_name_to_fn():
raise NotImplementedError
def test__read_and_sanitize_file():
raise NotImplementedError
def test_test_generator():
raise NotImplementedError
def test_test_generator___init__():
raise NotImplementedError
def test_test_generator_head():
raise NotImplementedError
def test_test_generator_body():
raise NotImplementedError
def test_test_generator_code():
raise NotImplementedError
def test_test_generator__add_test_fn():
raise NotImplementedError
def test_test_generator_visit_ClassDef():
raise NotImplementedError
def test_test_generator_visit_FunctionDef():
raise NotImplementedError
def test_node_fetcher():
raise NotImplementedError
def test_node_fetcher___init__():
raise NotImplementedError
def test_node_fetcher_functions():
raise NotImplementedError
def test_node_fetcher_imports():
raise NotImplementedError
def test_node_fetcher_imports_from():
raise NotImplementedError
def test_node_fetcher_visit_FunctionDef():
raise NotImplementedError
def test_node_fetcher_visit_Import():
raise NotImplementedError
def test_node_fetcher_visit_ImportFrom():
raise NotImplementedError
def test_generate_tests():
raise NotImplementedError
| 19.271429
| 44
| 0.848036
| 159
| 1,349
| 6.666667
| 0.220126
| 0.125472
| 0.458491
| 0.526415
| 0.74717
| 0.706604
| 0.378302
| 0.109434
| 0
| 0
| 0
| 0
| 0.103781
| 1,349
| 69
| 45
| 19.550725
| 0.876758
| 0
| 0
| 0.413043
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.413043
| true
| 0
| 0.130435
| 0
| 0.543478
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
7b88687c5a9f04a16b50e1659d8989de82cd7cf1
| 71
|
py
|
Python
|
settings.py
|
Jsinclairisto/pygame_project
|
307df339237b1766c45fed3f6f4f4adfc274d180
|
[
"MIT"
] | null | null | null |
settings.py
|
Jsinclairisto/pygame_project
|
307df339237b1766c45fed3f6f4f4adfc274d180
|
[
"MIT"
] | null | null | null |
settings.py
|
Jsinclairisto/pygame_project
|
307df339237b1766c45fed3f6f4f4adfc274d180
|
[
"MIT"
] | null | null | null |
import pygame, os
from pygame.locals import *
def constants():
pass
| 14.2
| 27
| 0.732394
| 10
| 71
| 5.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183099
| 71
| 5
| 28
| 14.2
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
7ba7885e62a4dd34d5872e2e1d9551cf1b13f492
| 248
|
py
|
Python
|
portality/api/v1/data_objects/__init__.py
|
glauberm/doaj
|
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
|
[
"Apache-2.0"
] | null | null | null |
portality/api/v1/data_objects/__init__.py
|
glauberm/doaj
|
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
|
[
"Apache-2.0"
] | null | null | null |
portality/api/v1/data_objects/__init__.py
|
glauberm/doaj
|
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
|
[
"Apache-2.0"
] | null | null | null |
from portality.api.v1.data_objects.journal import OutgoingJournal
from portality.api.v1.data_objects.application import IncomingApplication, OutgoingApplication
from portality.api.v1.data_objects.article import IncomingArticleDO, OutgoingArticleDO
| 62
| 94
| 0.887097
| 29
| 248
| 7.482759
| 0.517241
| 0.179724
| 0.221198
| 0.248848
| 0.400922
| 0.400922
| 0
| 0
| 0
| 0
| 0
| 0.012821
| 0.056452
| 248
| 3
| 95
| 82.666667
| 0.91453
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 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
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.